From 2a9d17c317d54a4dbe717d29ede39bf593bb45e3 Mon Sep 17 00:00:00 2001 From: Stratoula Kalafateli Date: Fri, 30 Jul 2021 16:22:20 +0300 Subject: [PATCH 01/40] [Lens] Formats correctly the falsy values on the x axis (#107134) * [Lens] Formats correctly the falsy values on the x axis * Address PR comments Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../xy_visualization/expression.test.tsx | 75 +++++++++++++++++++ .../public/xy_visualization/expression.tsx | 2 +- 2 files changed, 76 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/lens/public/xy_visualization/expression.test.tsx b/x-pack/plugins/lens/public/xy_visualization/expression.test.tsx index 291b536210de5..56a59bd7713b2 100644 --- a/x-pack/plugins/lens/public/xy_visualization/expression.test.tsx +++ b/x-pack/plugins/lens/public/xy_visualization/expression.test.tsx @@ -2489,6 +2489,81 @@ describe('xy_expression', () => { visible: true, }); }); + + test('it should format the boolean values correctly', () => { + const data: LensMultiTable = { + type: 'lens_multitable', + tables: { + first: { + type: 'datatable', + columns: [ + { + id: 'a', + name: 'a', + meta: { type: 'number', params: { id: 'number', params: { pattern: '0,0.000' } } }, + }, + { + id: 'b', + name: 'b', + meta: { type: 'number', params: { id: 'number', params: { pattern: '000,0' } } }, + }, + { + id: 'c', + name: 'c', + meta: { + type: 'boolean', + params: { id: 'boolean' }, + }, + }, + ], + rows: [ + { a: 5, b: 2, c: 0 }, + { a: 19, b: 5, c: 1 }, + ], + }, + }, + dateRange: { + fromDate: new Date('2019-01-02T05:00:00.000Z'), + toDate: new Date('2019-01-03T05:00:00.000Z'), + }, + }; + const timeSampleLayer: LayerArgs = { + layerId: 'first', + seriesType: 'line', + xAccessor: 'c', + accessors: ['a', 'b'], + xScaleType: 'ordinal', + yScaleType: 'linear', + isHistogram: false, + palette: mockPaletteOutput, + }; + const args = createArgsWithLayers([timeSampleLayer]); + + const getCustomFormatSpy = jest.fn(); + getCustomFormatSpy.mockReturnValue({ convert: jest.fn((x) => Boolean(x)) }); + + const component = shallow( + + ); + + expect(component.find(LineSeries).at(1).prop('data')).toEqual([ + { + a: 5, + b: 2, + c: false, + }, + { + a: 19, + b: 5, + c: true, + }, + ]); + }); }); describe('calculateMinInterval', () => { diff --git a/x-pack/plugins/lens/public/xy_visualization/expression.tsx b/x-pack/plugins/lens/public/xy_visualization/expression.tsx index 8eb7ec1e0f623..b7f22ebf8968d 100644 --- a/x-pack/plugins/lens/public/xy_visualization/expression.tsx +++ b/x-pack/plugins/lens/public/xy_visualization/expression.tsx @@ -616,7 +616,7 @@ export function XYChart({ for (const column of table.columns) { const record = newRow[column.id]; if ( - record && + record != null && // pre-format values for ordinal x axes because there can only be a single x axis formatter on chart level (!isPrimitive(record) || (column.id === xAccessor && xScaleType === 'ordinal')) ) { From efd254047dee6b76b8350bfd2d0dfd280abf6b95 Mon Sep 17 00:00:00 2001 From: Dario Gieselaar Date: Fri, 30 Jul 2021 15:23:45 +0200 Subject: [PATCH 02/40] [APM] Dependencies table for backend inventory/detail views (#106995) --- x-pack/plugins/apm/common/connections.ts | 67 +++ .../apm/common/utils/get_offset_in_ms.ts | 22 +- .../backend_detail_dependencies_table.tsx | 104 +++++ .../app/backend_detail_overview/index.tsx | 4 + .../index.tsx | 101 +++++ .../app/backend_inventory/index.tsx | 8 +- .../components/app/service_overview/index.tsx | 4 +- .../service_overview.test.tsx | 4 +- .../index.tsx | 400 ++++-------------- .../service_overview_errors_table/index.tsx | 6 +- .../index.tsx | 6 +- .../index.tsx | 6 +- .../components/routing/apm_route_config.tsx | 18 +- .../public/components/routing/home/index.tsx | 6 + .../public/components/shared/backend_link.tsx | 4 +- .../shared/dependencies_table/index.tsx | 217 ++++++++++ .../overview_table_container/index.tsx} | 10 +- .../public/components/shared/service_link.tsx | 4 +- .../get_latency_charts_for_backend.ts | 8 +- .../server/lib/backends/get_top_backends.ts | 42 ++ .../get_upstream_services_for_backend.ts | 45 ++ .../exclude_rum_exit_spans_query.ts | 29 ++ ...ection_stats_items_with_relative_impact.ts | 46 ++ .../get_destination_map.ts | 227 ++++++++++ .../get_connection_stats/get_stats.ts | 220 ++++++++++ .../connections/get_connection_stats/index.ts | 153 +++++++ .../lib/services/get_service_dependencies.ts | 45 ++ .../get_destination_map.ts | 213 ---------- .../get_service_dependencies/get_metrics.ts | 148 ------- .../get_service_dependencies/index.ts | 230 ---------- x-pack/plugins/apm/server/routes/backends.ts | 97 +++++ x-pack/plugins/apm/server/routes/services.ts | 32 +- .../translations/translations/ja-JP.json | 5 - .../translations/translations/zh-CN.json | 5 - .../service_overview/dependencies/index.ts | 87 ++-- 35 files changed, 1630 insertions(+), 993 deletions(-) create mode 100644 x-pack/plugins/apm/common/connections.ts create mode 100644 x-pack/plugins/apm/public/components/app/backend_detail_overview/backend_detail_dependencies_table.tsx create mode 100644 x-pack/plugins/apm/public/components/app/backend_inventory/backend_inventory_dependencies_table/index.tsx create mode 100644 x-pack/plugins/apm/public/components/shared/dependencies_table/index.tsx rename x-pack/plugins/apm/public/components/{app/service_overview/service_overview_table_container.tsx => shared/overview_table_container/index.tsx} (86%) create mode 100644 x-pack/plugins/apm/server/lib/backends/get_top_backends.ts create mode 100644 x-pack/plugins/apm/server/lib/backends/get_upstream_services_for_backend.ts create mode 100644 x-pack/plugins/apm/server/lib/connections/exclude_rum_exit_spans_query.ts create mode 100644 x-pack/plugins/apm/server/lib/connections/get_connection_stats/get_connection_stats_items_with_relative_impact.ts create mode 100644 x-pack/plugins/apm/server/lib/connections/get_connection_stats/get_destination_map.ts create mode 100644 x-pack/plugins/apm/server/lib/connections/get_connection_stats/get_stats.ts create mode 100644 x-pack/plugins/apm/server/lib/connections/get_connection_stats/index.ts create mode 100644 x-pack/plugins/apm/server/lib/services/get_service_dependencies.ts delete mode 100644 x-pack/plugins/apm/server/lib/services/get_service_dependencies/get_destination_map.ts delete mode 100644 x-pack/plugins/apm/server/lib/services/get_service_dependencies/get_metrics.ts delete mode 100644 x-pack/plugins/apm/server/lib/services/get_service_dependencies/index.ts diff --git a/x-pack/plugins/apm/common/connections.ts b/x-pack/plugins/apm/common/connections.ts new file mode 100644 index 0000000000000..aa3863374337c --- /dev/null +++ b/x-pack/plugins/apm/common/connections.ts @@ -0,0 +1,67 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ +import { AgentName } from '../typings/es_schemas/ui/fields/agent'; +import { Coordinate } from '../typings/timeseries'; + +export enum NodeType { + service = 'service', + backend = 'backend', +} + +interface NodeBase { + id: string; +} + +export interface ServiceNode extends NodeBase { + type: NodeType.service; + serviceName: string; + agentName: AgentName; + environment: string; +} + +export interface BackendNode extends NodeBase { + type: NodeType.backend; + backendName: string; + spanType: string; + spanSubtype: string; +} + +export type Node = ServiceNode | BackendNode; + +export interface ConnectionStatsItem { + location: Node; + stats: { + latency: { + value: number | null; + timeseries: Coordinate[]; + }; + throughput: { + value: number | null; + timeseries: Coordinate[]; + }; + errorRate: { + value: number | null; + timeseries: Coordinate[]; + }; + }; +} + +export interface ConnectionStatsItemWithImpact extends ConnectionStatsItem { + stats: ConnectionStatsItem['stats'] & { + impact: number; + }; +} + +export interface ConnectionStatsItemWithComparisonData { + location: Node; + currentStats: ConnectionStatsItemWithImpact['stats']; + previousStats: ConnectionStatsItemWithImpact['stats'] | null; +} + +export function getNodeName(node: Node) { + return node.type === NodeType.service ? node.serviceName : node.backendName; +} diff --git a/x-pack/plugins/apm/common/utils/get_offset_in_ms.ts b/x-pack/plugins/apm/common/utils/get_offset_in_ms.ts index ac662e211a6a1..f049ab9bb5488 100644 --- a/x-pack/plugins/apm/common/utils/get_offset_in_ms.ts +++ b/x-pack/plugins/apm/common/utils/get_offset_in_ms.ts @@ -7,9 +7,21 @@ import moment from 'moment'; import { parseInterval } from '../../../../../src/plugins/data/common'; -export function getOffsetInMs(start: number, offset?: string) { +export function getOffsetInMs({ + start, + end, + offset, +}: { + start: number; + end: number; + offset?: string; +}) { if (!offset) { - return 0; + return { + startWithOffset: start, + endWithOffset: end, + offsetInMs: 0, + }; } const interval = parseInterval(offset); @@ -20,5 +32,9 @@ export function getOffsetInMs(start: number, offset?: string) { const calculatedOffset = start - moment(start).subtract(interval).valueOf(); - return calculatedOffset; + return { + startWithOffset: start - calculatedOffset, + endWithOffset: end - calculatedOffset, + offsetInMs: calculatedOffset, + }; } diff --git a/x-pack/plugins/apm/public/components/app/backend_detail_overview/backend_detail_dependencies_table.tsx b/x-pack/plugins/apm/public/components/app/backend_detail_overview/backend_detail_dependencies_table.tsx new file mode 100644 index 0000000000000..1e3bf71cb87b0 --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/backend_detail_overview/backend_detail_dependencies_table.tsx @@ -0,0 +1,104 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { i18n } from '@kbn/i18n'; +import React from 'react'; +import { getNodeName, NodeType } from '../../../../common/connections'; +import { useApmParams } from '../../../hooks/use_apm_params'; +import { useUrlParams } from '../../../context/url_params_context/use_url_params'; +import { useFetcher } from '../../../hooks/use_fetcher'; +import { getTimeRangeComparison } from '../../shared/time_comparison/get_time_range_comparison'; +import { DependenciesTable } from '../../shared/dependencies_table'; +import { useApmBackendContext } from '../../../context/apm_backend/use_apm_backend_context'; +import { ServiceLink } from '../../shared/service_link'; + +export function BackendDetailDependenciesTable() { + const { + urlParams: { start, end, environment, comparisonEnabled, comparisonType }, + } = useUrlParams(); + + const { + query: { rangeFrom, rangeTo, kuery }, + } = useApmParams('/backends/:backendName/overview'); + + const { offset } = getTimeRangeComparison({ + start, + end, + comparisonEnabled, + comparisonType, + }); + + const { backendName } = useApmBackendContext(); + + const { data, status } = useFetcher( + (callApmApi) => { + if (!start || !end) { + return; + } + + return callApmApi({ + endpoint: 'GET /api/apm/backends/{backendName}/upstream_services', + params: { + path: { + backendName, + }, + query: { start, end, environment, numBuckets: 20, offset }, + }, + }); + }, + [start, end, environment, offset, backendName] + ); + + const dependencies = + data?.services.map((dependency) => { + const { location } = dependency; + const name = getNodeName(location); + + if (location.type !== NodeType.service) { + throw new Error('Expected a service node'); + } + + return { + name, + currentStats: dependency.currentStats, + previousStats: dependency.previousStats, + link: ( + + ), + }; + }) ?? []; + + return ( + + ); +} diff --git a/x-pack/plugins/apm/public/components/app/backend_detail_overview/index.tsx b/x-pack/plugins/apm/public/components/app/backend_detail_overview/index.tsx index 6a5725c9d88fd..7773506bc1eda 100644 --- a/x-pack/plugins/apm/public/components/app/backend_detail_overview/index.tsx +++ b/x-pack/plugins/apm/public/components/app/backend_detail_overview/index.tsx @@ -8,6 +8,7 @@ import { EuiFlexItem } from '@elastic/eui'; import { EuiPanel } from '@elastic/eui'; import { EuiFlexGroup } from '@elastic/eui'; import React from 'react'; +import { EuiSpacer } from '@elastic/eui'; import { ApmBackendContextProvider } from '../../../context/apm_backend/apm_backend_context'; import { useBreadcrumb } from '../../../context/breadcrumbs/use_breadcrumb'; import { ChartPointerEventContextProvider } from '../../../context/chart_pointer_event/chart_pointer_event_context'; @@ -17,6 +18,7 @@ import { ApmMainTemplate } from '../../routing/templates/apm_main_template'; import { SearchBar } from '../../shared/search_bar'; import { BackendLatencyChart } from './backend_latency_chart'; import { BackendInventoryTitle } from '../../routing/home'; +import { BackendDetailDependenciesTable } from './backend_detail_dependencies_table'; export function BackendDetailOverview() { const { @@ -53,6 +55,8 @@ export function BackendDetailOverview() { + + ); diff --git a/x-pack/plugins/apm/public/components/app/backend_inventory/backend_inventory_dependencies_table/index.tsx b/x-pack/plugins/apm/public/components/app/backend_inventory/backend_inventory_dependencies_table/index.tsx new file mode 100644 index 0000000000000..513daa9289c8f --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/backend_inventory/backend_inventory_dependencies_table/index.tsx @@ -0,0 +1,101 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { i18n } from '@kbn/i18n'; +import React from 'react'; +import { getNodeName, NodeType } from '../../../../../common/connections'; +import { useApmParams } from '../../../../hooks/use_apm_params'; +import { useUrlParams } from '../../../../context/url_params_context/use_url_params'; +import { useFetcher } from '../../../../hooks/use_fetcher'; +import { getTimeRangeComparison } from '../../../shared/time_comparison/get_time_range_comparison'; +import { DependenciesTable } from '../../../shared/dependencies_table'; +import { BackendLink } from '../../../shared/backend_link'; + +export function BackendInventoryDependenciesTable() { + const { + urlParams: { start, end, environment, comparisonEnabled, comparisonType }, + } = useUrlParams(); + + const { + query: { rangeFrom, rangeTo, kuery }, + } = useApmParams('/backends'); + + const { offset } = getTimeRangeComparison({ + start, + end, + comparisonEnabled, + comparisonType, + }); + + const { data, status } = useFetcher( + (callApmApi) => { + if (!start || !end) { + return; + } + + return callApmApi({ + endpoint: 'GET /api/apm/backends/top_backends', + params: { + query: { start, end, environment, numBuckets: 20, offset }, + }, + }); + }, + [start, end, environment, offset] + ); + + const dependencies = + data?.backends.map((dependency) => { + const { location } = dependency; + const name = getNodeName(location); + + if (location.type !== NodeType.backend) { + throw new Error('Expected a backend node'); + } + const link = ( + + ); + + return { + name, + currentStats: dependency.currentStats, + previousStats: dependency.previousStats, + link, + }; + }) ?? []; + + return ( + + ); +} diff --git a/x-pack/plugins/apm/public/components/app/backend_inventory/index.tsx b/x-pack/plugins/apm/public/components/app/backend_inventory/index.tsx index 115f4a56d360f..2a1f9e5f5b60d 100644 --- a/x-pack/plugins/apm/public/components/app/backend_inventory/index.tsx +++ b/x-pack/plugins/apm/public/components/app/backend_inventory/index.tsx @@ -7,7 +7,13 @@ import React from 'react'; import { SearchBar } from '../../shared/search_bar'; +import { BackendInventoryDependenciesTable } from './backend_inventory_dependencies_table'; export function BackendInventory() { - return ; + return ( + <> + + + + ); } diff --git a/x-pack/plugins/apm/public/components/app/service_overview/index.tsx b/x-pack/plugins/apm/public/components/app/service_overview/index.tsx index 803e9c73e9925..11cc569af8609 100644 --- a/x-pack/plugins/apm/public/components/app/service_overview/index.tsx +++ b/x-pack/plugins/apm/public/components/app/service_overview/index.tsx @@ -95,9 +95,7 @@ export function ServiceOverview() { {!isRumAgent && ( - + )} diff --git a/x-pack/plugins/apm/public/components/app/service_overview/service_overview.test.tsx b/x-pack/plugins/apm/public/components/app/service_overview/service_overview.test.tsx index d0b2722de126b..5f77583143d75 100644 --- a/x-pack/plugins/apm/public/components/app/service_overview/service_overview.test.tsx +++ b/x-pack/plugins/apm/public/components/app/service_overview/service_overview.test.tsx @@ -107,7 +107,9 @@ describe('ServiceOverview', () => { totalTransactionGroups: 0, isAggregationAccurate: true, }, - 'GET /api/apm/services/{serviceName}/dependencies': [], + 'GET /api/apm/services/{serviceName}/dependencies': { + serviceDependencies: [], + }, 'GET /api/apm/services/{serviceName}/service_overview_instances/main_statistics': [], 'GET /api/apm/services/{serviceName}/transactions/charts/latency': { currentPeriod: { diff --git a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_dependencies_table/index.tsx b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_dependencies_table/index.tsx index fb68f1266ee9a..c3d74ec4baeaf 100644 --- a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_dependencies_table/index.tsx +++ b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_dependencies_table/index.tsx @@ -5,249 +5,43 @@ * 2.0. */ -import { - EuiBasicTableColumn, - EuiFlexGroup, - EuiFlexItem, - EuiInMemoryTable, - EuiTitle, -} from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { keyBy } from 'lodash'; import React from 'react'; -import { getNextEnvironmentUrlParam } from '../../../../../common/environment_filter_values'; -import { - asMillisecondDuration, - asPercent, - asTransactionRate, -} from '../../../../../common/utils/formatters'; -import { offsetPreviousPeriodCoordinates } from '../../../../../common/utils/offset_previous_period_coordinate'; -// eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { ServiceDependencyItem } from '../../../../../server/lib/services/get_service_dependencies'; -import { Coordinate } from '../../../../../typings/timeseries'; +import { getNodeName, NodeType } from '../../../../../common/connections'; +import { useApmServiceContext } from '../../../../context/apm_service/use_apm_service_context'; import { useUrlParams } from '../../../../context/url_params_context/use_url_params'; import { useApmParams } from '../../../../hooks/use_apm_params'; -import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; -import { unit } from '../../../../utils/style'; +import { useFetcher } from '../../../../hooks/use_fetcher'; import { BackendLink } from '../../../shared/backend_link'; -import { SparkPlot } from '../../../shared/charts/spark_plot'; -import { ImpactBar } from '../../../shared/ImpactBar'; -import { ServiceMapLink } from '../../../shared/Links/apm/ServiceMapLink'; +import { DependenciesTable } from '../../../shared/dependencies_table'; import { ServiceLink } from '../../../shared/service_link'; -import { TableFetchWrapper } from '../../../shared/table_fetch_wrapper'; import { getTimeRangeComparison } from '../../../shared/time_comparison/get_time_range_comparison'; -import { TruncateWithTooltip } from '../../../shared/truncate_with_tooltip'; -import { ServiceOverviewTableContainer } from '../service_overview_table_container'; -interface Props { - serviceName: string; -} - -type ServiceDependencyPeriods = ServiceDependencyItem & { - latency: { previousPeriodTimeseries?: Coordinate[] }; - throughput: { previousPeriodTimeseries?: Coordinate[] }; - errorRate: { previousPeriodTimeseries?: Coordinate[] }; - previousPeriodImpact?: number; -}; - -function mergeCurrentAndPreviousPeriods({ - currentPeriod = [], - previousPeriod = [], -}: { - currentPeriod?: ServiceDependencyItem[]; - previousPeriod?: ServiceDependencyItem[]; -}): ServiceDependencyPeriods[] { - const previousPeriodMap = keyBy(previousPeriod, 'name'); - - return currentPeriod.map((currentDependency) => { - const previousDependency = previousPeriodMap[currentDependency.name]; - if (!previousDependency) { - return currentDependency; - } - return { - ...currentDependency, - latency: { - ...currentDependency.latency, - previousPeriodTimeseries: offsetPreviousPeriodCoordinates({ - currentPeriodTimeseries: currentDependency.latency.timeseries, - previousPeriodTimeseries: previousDependency.latency?.timeseries, - }), - }, - throughput: { - ...currentDependency.throughput, - previousPeriodTimeseries: offsetPreviousPeriodCoordinates({ - currentPeriodTimeseries: currentDependency.throughput.timeseries, - previousPeriodTimeseries: previousDependency.throughput?.timeseries, - }), - }, - errorRate: { - ...currentDependency.errorRate, - previousPeriodTimeseries: offsetPreviousPeriodCoordinates({ - currentPeriodTimeseries: currentDependency.errorRate.timeseries, - previousPeriodTimeseries: previousDependency.errorRate?.timeseries, - }), - }, - previousPeriodImpact: previousDependency.impact, - }; - }); -} - -export function ServiceOverviewDependenciesTable({ serviceName }: Props) { +export function ServiceOverviewDependenciesTable() { const { - urlParams: { start, end, environment, comparisonEnabled, comparisonType }, + urlParams: { + start, + end, + environment, + comparisonEnabled, + comparisonType, + latencyAggregationType, + }, } = useUrlParams(); - const { query } = useApmParams('/services/:serviceName/overview'); + const { + query: { kuery, rangeFrom, rangeTo }, + } = useApmParams('/services/:serviceName/overview'); - const { comparisonStart, comparisonEnd } = getTimeRangeComparison({ + const { offset } = getTimeRangeComparison({ start, end, comparisonEnabled, comparisonType, }); - const columns: Array> = [ - { - field: 'name', - name: i18n.translate( - 'xpack.apm.serviceOverview.dependenciesTableColumnBackend', - { - defaultMessage: 'Backend', - } - ), - render: (_, item) => { - return ( - - ) : ( - - ) - } - /> - ); - }, - sortable: true, - }, - { - field: 'latencyValue', - name: i18n.translate( - 'xpack.apm.serviceOverview.dependenciesTableColumnLatency', - { - defaultMessage: 'Latency (avg.)', - } - ), - width: `${unit * 10}px`, - render: (_, { latency }) => { - return ( - - ); - }, - sortable: true, - }, - { - field: 'throughputValue', - name: i18n.translate( - 'xpack.apm.serviceOverview.dependenciesTableColumnThroughput', - { defaultMessage: 'Throughput' } - ), - width: `${unit * 10}px`, - render: (_, { throughput }) => { - return ( - - ); - }, - sortable: true, - }, - { - field: 'errorRateValue', - name: i18n.translate( - 'xpack.apm.serviceOverview.dependenciesTableColumnErrorRate', - { - defaultMessage: 'Error rate', - } - ), - width: `${unit * 10}px`, - render: (_, { errorRate }) => { - return ( - - ); - }, - sortable: true, - }, - { - field: 'impactValue', - name: i18n.translate( - 'xpack.apm.serviceOverview.dependenciesTableColumnImpact', - { - defaultMessage: 'Impact', - } - ), - width: `${unit * 5}px`, - render: (_, { impact, previousPeriodImpact }) => { - return ( - - - - - {comparisonEnabled && previousPeriodImpact !== undefined && ( - - - - )} - - ); - }, - sortable: true, - }, - ]; - // Fetches current period dependencies + const { serviceName, transactionType } = useApmServiceContext(); + const { data, status } = useFetcher( (callApmApi) => { if (!start || !end) { @@ -258,108 +52,74 @@ export function ServiceOverviewDependenciesTable({ serviceName }: Props) { endpoint: 'GET /api/apm/services/{serviceName}/dependencies', params: { path: { serviceName }, - query: { start, end, environment, numBuckets: 20 }, - }, - }); - }, - [start, end, serviceName, environment] - ); - - // Fetches previous period dependencies - const { data: previousPeriodData, status: previousPeriodStatus } = useFetcher( - (callApmApi) => { - if (!comparisonStart || !comparisonEnd) { - return; - } - - return callApmApi({ - endpoint: 'GET /api/apm/services/{serviceName}/dependencies', - params: { - path: { serviceName }, - query: { - start: comparisonStart, - end: comparisonEnd, - environment, - numBuckets: 20, - }, + query: { start, end, environment, numBuckets: 20, offset }, }, }); }, - [comparisonStart, comparisonEnd, serviceName, environment] + [start, end, serviceName, environment, offset] ); - const serviceDependencies = mergeCurrentAndPreviousPeriods({ - currentPeriod: data?.serviceDependencies, - previousPeriod: previousPeriodData?.serviceDependencies, - }); + const dependencies = + data?.serviceDependencies.map((dependency) => { + const { location } = dependency; + const name = getNodeName(location); + const link = + location.type === NodeType.backend ? ( + + ) : ( + + ); - // need top-level sortable fields for the managed table - const items = serviceDependencies.map((item) => ({ - ...item, - errorRateValue: item.errorRate.value, - latencyValue: item.latency.value, - throughputValue: item.throughput.value, - impactValue: item.impact, - })); + return { + name, + currentStats: dependency.currentStats, + previousStats: dependency.previousStats, + link, + }; + }) ?? []; return ( - - - - - -

- {i18n.translate( - 'xpack.apm.serviceOverview.dependenciesTableTitle', - { - defaultMessage: 'Dependencies', - } - )} -

-
-
- - - {i18n.translate( - 'xpack.apm.serviceOverview.dependenciesTableLinkText', - { - defaultMessage: 'View service map', - } - )} - - -
-
- - - - - - - -
+ ); } diff --git a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_errors_table/index.tsx b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_errors_table/index.tsx index 7c222f85133e3..5c3384df567fe 100644 --- a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_errors_table/index.tsx +++ b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_errors_table/index.tsx @@ -22,7 +22,7 @@ import { APIReturnType } from '../../../../services/rest/createCallApmApi'; import { ErrorOverviewLink } from '../../../shared/Links/apm/ErrorOverviewLink'; import { TableFetchWrapper } from '../../../shared/table_fetch_wrapper'; import { getTimeRangeComparison } from '../../../shared/time_comparison/get_time_range_comparison'; -import { ServiceOverviewTableContainer } from '../service_overview_table_container'; +import { OverviewTableContainer } from '../../../shared/overview_table_container'; import { getColumns } from './get_column'; interface Props { @@ -205,7 +205,7 @@ export function ServiceOverviewErrorsTable({ serviceName }: Props) { - - + diff --git a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/index.tsx b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/index.tsx index 98443fdf0d0ea..bfd5fea82c6cd 100644 --- a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/index.tsx +++ b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/index.tsx @@ -24,7 +24,7 @@ import { SortDirection, SortField, } from '../service_overview_instances_chart_and_table'; -import { ServiceOverviewTableContainer } from '../service_overview_table_container'; +import { OverviewTableContainer } from '../../../shared/overview_table_container'; import { getColumns } from './get_columns'; import { InstanceDetails } from './intance_details'; @@ -140,7 +140,7 @@ export function ServiceOverviewInstancesTable({ - - + diff --git a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_transactions_table/index.tsx b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_transactions_table/index.tsx index 952bb339cf396..b2d7424f1aa49 100644 --- a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_transactions_table/index.tsx +++ b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_transactions_table/index.tsx @@ -22,7 +22,7 @@ import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; import { TransactionOverviewLink } from '../../../shared/Links/apm/transaction_overview_link'; import { TableFetchWrapper } from '../../../shared/table_fetch_wrapper'; import { getTimeRangeComparison } from '../../../shared/time_comparison/get_time_range_comparison'; -import { ServiceOverviewTableContainer } from '../service_overview_table_container'; +import { OverviewTableContainer } from '../../../shared/overview_table_container'; import { getColumns } from './get_columns'; type ApiResponse = APIReturnType<'GET /api/apm/services/{serviceName}/transactions/groups/main_statistics'>; @@ -226,7 +226,7 @@ export function ServiceOverviewTransactionsTable() { - - + diff --git a/x-pack/plugins/apm/public/components/routing/apm_route_config.tsx b/x-pack/plugins/apm/public/components/routing/apm_route_config.tsx index 099519416baf2..922662e25ab20 100644 --- a/x-pack/plugins/apm/public/components/routing/apm_route_config.tsx +++ b/x-pack/plugins/apm/public/components/routing/apm_route_config.tsx @@ -20,15 +20,6 @@ import { settings } from './settings'; * creates the routes. */ const apmRoutes = route([ - { - path: '/', - element: ( - - - - ), - children: [settings, serviceDetail, home], - }, { path: '/link-to/transaction/:transactionId', element: , @@ -63,6 +54,15 @@ const apmRoutes = route([ }), ]), }, + { + path: '/', + element: ( + + + + ), + children: [settings, serviceDetail, home], + }, ] as const); export type ApmRoutes = typeof apmRoutes; diff --git a/x-pack/plugins/apm/public/components/routing/home/index.tsx b/x-pack/plugins/apm/public/components/routing/home/index.tsx index 185fcd1f920fc..10f88d3e8b4cc 100644 --- a/x-pack/plugins/apm/public/components/routing/home/index.tsx +++ b/x-pack/plugins/apm/public/components/routing/home/index.tsx @@ -84,6 +84,12 @@ export const home = { { path: '/backends', element: , + params: t.partial({ + query: t.partial({ + comparisonEnabled: t.string, + comparisonType: t.string, + }), + }), children: [ { path: '/:backendName/overview', diff --git a/x-pack/plugins/apm/public/components/shared/backend_link.tsx b/x-pack/plugins/apm/public/components/shared/backend_link.tsx index c89a84e7c08d5..069631b9f17ac 100644 --- a/x-pack/plugins/apm/public/components/shared/backend_link.tsx +++ b/x-pack/plugins/apm/public/components/shared/backend_link.tsx @@ -6,17 +6,19 @@ */ import { EuiFlexGroup, EuiFlexItem, EuiLink } from '@elastic/eui'; +import { TypeOf } from '@kbn/typed-react-router-config'; import React from 'react'; import { euiStyled } from '../../../../../../src/plugins/kibana_react/common'; import { useApmRouter } from '../../hooks/use_apm_router'; import { truncate } from '../../utils/style'; +import { ApmRoutes } from '../routing/apm_route_config'; import { SpanIcon } from './span_icon'; const StyledLink = euiStyled(EuiLink)`${truncate('100%')};`; interface BackendLinkProps { backendName: string; - query: Record; + query?: TypeOf['query']; subtype?: string; type?: string; } diff --git a/x-pack/plugins/apm/public/components/shared/dependencies_table/index.tsx b/x-pack/plugins/apm/public/components/shared/dependencies_table/index.tsx new file mode 100644 index 0000000000000..5aeb9549fb3a2 --- /dev/null +++ b/x-pack/plugins/apm/public/components/shared/dependencies_table/index.tsx @@ -0,0 +1,217 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { + EuiBasicTableColumn, + EuiFlexGroup, + EuiFlexItem, + EuiInMemoryTable, + EuiTitle, +} from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; +import React from 'react'; +import { ConnectionStatsItemWithComparisonData } from '../../../../common/connections'; +import { + asMillisecondDuration, + asPercent, + asTransactionRate, +} from '../../../../common/utils/formatters'; +import { FETCH_STATUS } from '../../../hooks/use_fetcher'; +import { unit } from '../../../utils/style'; +import { SparkPlot } from '../charts/spark_plot'; +import { ImpactBar } from '../ImpactBar'; +import { ServiceMapLink } from '../Links/apm/ServiceMapLink'; +import { TableFetchWrapper } from '../table_fetch_wrapper'; +import { TruncateWithTooltip } from '../truncate_with_tooltip'; +import { OverviewTableContainer } from '../overview_table_container'; + +export type DependenciesItem = Omit< + ConnectionStatsItemWithComparisonData, + 'location' +> & { + name: string; + link: React.ReactElement; +}; + +interface Props { + dependencies: DependenciesItem[]; + serviceName?: string; + title: React.ReactNode; + nameColumnTitle: React.ReactNode; + status: FETCH_STATUS; + compact?: boolean; +} + +export function DependenciesTable(props: Props) { + const { + dependencies, + serviceName, + title, + nameColumnTitle, + status, + compact = true, + } = props; + + const pagination = compact + ? { + initialPageSize: 5, + pageSizeOptions: [5], + hidePerPageOptions: true, + } + : {}; + + const columns: Array> = [ + { + field: 'name', + name: nameColumnTitle, + render: (_, item) => { + const { name, link } = item; + return ; + }, + sortable: true, + }, + { + field: 'latencyValue', + name: i18n.translate('xpack.apm.dependenciesTable.columnLatency', { + defaultMessage: 'Latency (avg.)', + }), + width: `${unit * 10}px`, + render: (_, { currentStats, previousStats }) => { + return ( + + ); + }, + sortable: true, + }, + { + field: 'throughputValue', + name: i18n.translate('xpack.apm.dependenciesTable.columnThroughput', { + defaultMessage: 'Throughput', + }), + width: `${unit * 10}px`, + render: (_, { currentStats, previousStats }) => { + return ( + + ); + }, + sortable: true, + }, + { + field: 'errorRateValue', + name: i18n.translate('xpack.apm.dependenciesTable.columnErrorRate', { + defaultMessage: 'Error rate', + }), + width: `${unit * 10}px`, + render: (_, { currentStats, previousStats }) => { + return ( + + ); + }, + sortable: true, + }, + { + field: 'impactValue', + name: i18n.translate('xpack.apm.dependenciesTable.columnImpact', { + defaultMessage: 'Impact', + }), + width: `${unit * 5}px`, + render: (_, { currentStats, previousStats }) => { + return ( + + + + + {previousStats?.impact !== undefined && ( + + + + )} + + ); + }, + sortable: true, + }, + ]; + + // need top-level sortable fields for the managed table + const items = + dependencies.map((item) => ({ + ...item, + errorRateValue: item.currentStats.errorRate.value, + latencyValue: item.currentStats.latency.value, + throughputValue: item.currentStats.throughput.value, + impactValue: item.currentStats.impact, + })) ?? []; + + return ( + + + + + +

{title}

+
+
+ + + {i18n.translate( + 'xpack.apm.dependenciesTable.serviceMapLinkText', + { + defaultMessage: 'View service map', + } + )} + + +
+
+ + + + + + + +
+ ); +} diff --git a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_table_container.tsx b/x-pack/plugins/apm/public/components/shared/overview_table_container/index.tsx similarity index 86% rename from x-pack/plugins/apm/public/components/app/service_overview/service_overview_table_container.tsx rename to x-pack/plugins/apm/public/components/shared/overview_table_container/index.tsx index 64b6943e73260..303d281711aed 100644 --- a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_table_container.tsx +++ b/x-pack/plugins/apm/public/components/shared/overview_table_container/index.tsx @@ -10,7 +10,7 @@ import { euiStyled } from '../../../../../../../src/plugins/kibana_react/common' import { useBreakPoints } from '../../../hooks/use_break_points'; /** - * The height for a table on the overview page. Is the height of a 5-row basic + * The height for a table on a overview page. Is the height of a 5-row basic * table. */ const tableHeight = 282; @@ -24,7 +24,7 @@ const tableHeight = 282; * * Hide the empty message when we don't yet have any items and are still loading. */ -const ServiceOverviewTableContainerDiv = euiStyled.div<{ +const OverviewTableContainerDiv = euiStyled.div<{ isEmptyAndLoading: boolean; shouldUseMobileLayout: boolean; }>` @@ -52,7 +52,7 @@ const ServiceOverviewTableContainerDiv = euiStyled.div<{ } `; -export function ServiceOverviewTableContainer({ +export function OverviewTableContainer({ children, isEmptyAndLoading, }: { @@ -62,11 +62,11 @@ export function ServiceOverviewTableContainer({ const { isMedium } = useBreakPoints(); return ( - {children} - + ); } diff --git a/x-pack/plugins/apm/public/components/shared/service_link.tsx b/x-pack/plugins/apm/public/components/shared/service_link.tsx index 9a21438c08b83..d61f55fe53cf0 100644 --- a/x-pack/plugins/apm/public/components/shared/service_link.tsx +++ b/x-pack/plugins/apm/public/components/shared/service_link.tsx @@ -7,17 +7,19 @@ import { EuiFlexGroup, EuiFlexItem, EuiLink } from '@elastic/eui'; import React from 'react'; +import { TypeOf } from '@kbn/typed-react-router-config'; import { euiStyled } from '../../../../../../src/plugins/kibana_react/common'; import { truncate } from '../../utils/style'; import { useApmRouter } from '../../hooks/use_apm_router'; import { AgentIcon } from './agent_icon'; import { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; +import { ApmRoutes } from '../routing/apm_route_config'; const StyledLink = euiStyled(EuiLink)`${truncate('100%')};`; interface ServiceLinkProps { agentName?: AgentName; - query: Record; + query?: TypeOf['query']; serviceName: string; } diff --git a/x-pack/plugins/apm/server/lib/backends/get_latency_charts_for_backend.ts b/x-pack/plugins/apm/server/lib/backends/get_latency_charts_for_backend.ts index eed8a9a099536..79f3ee4dbef95 100644 --- a/x-pack/plugins/apm/server/lib/backends/get_latency_charts_for_backend.ts +++ b/x-pack/plugins/apm/server/lib/backends/get_latency_charts_for_backend.ts @@ -36,9 +36,11 @@ export async function getLatencyChartsForBackend({ }) { const { apmEventClient } = setup; - const offsetInMs = getOffsetInMs(start, offset); - const startWithOffset = start - offsetInMs; - const endWithOffset = end - offsetInMs; + const { offsetInMs, startWithOffset, endWithOffset } = getOffsetInMs({ + start, + end, + offset, + }); const response = await apmEventClient.search('get_latency_for_backend', { apm: { diff --git a/x-pack/plugins/apm/server/lib/backends/get_top_backends.ts b/x-pack/plugins/apm/server/lib/backends/get_top_backends.ts new file mode 100644 index 0000000000000..2f9af0bafd37c --- /dev/null +++ b/x-pack/plugins/apm/server/lib/backends/get_top_backends.ts @@ -0,0 +1,42 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { environmentQuery } from '../../../common/utils/environment_query'; +import { getConnectionStats } from '../connections/get_connection_stats'; +import { getConnectionStatsItemsWithRelativeImpact } from '../connections/get_connection_stats/get_connection_stats_items_with_relative_impact'; +import { NodeType } from '../../../common/connections'; +import { Setup } from '../helpers/setup_request'; + +export async function getTopBackends({ + setup, + start, + end, + numBuckets, + environment, + offset, +}: { + setup: Setup; + start: number; + end: number; + numBuckets: number; + environment?: string; + offset?: string; +}) { + const statsItems = await getConnectionStats({ + setup, + start, + end, + numBuckets, + filter: [...environmentQuery(environment)], + offset, + collapseBy: 'downstream', + }); + + return getConnectionStatsItemsWithRelativeImpact( + statsItems.filter((item) => item.location.type !== NodeType.service) + ); +} diff --git a/x-pack/plugins/apm/server/lib/backends/get_upstream_services_for_backend.ts b/x-pack/plugins/apm/server/lib/backends/get_upstream_services_for_backend.ts new file mode 100644 index 0000000000000..2105f389ef798 --- /dev/null +++ b/x-pack/plugins/apm/server/lib/backends/get_upstream_services_for_backend.ts @@ -0,0 +1,45 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { SPAN_DESTINATION_SERVICE_RESOURCE } from '../../../common/elasticsearch_fieldnames'; +import { environmentQuery } from '../../../common/utils/environment_query'; +import { getConnectionStats } from '../connections/get_connection_stats'; +import { getConnectionStatsItemsWithRelativeImpact } from '../connections/get_connection_stats/get_connection_stats_items_with_relative_impact'; +import { Setup } from '../helpers/setup_request'; + +export async function getUpstreamServicesForBackend({ + setup, + start, + end, + backendName, + numBuckets, + environment, + offset, +}: { + setup: Setup; + start: number; + end: number; + backendName: string; + numBuckets: number; + environment?: string; + offset?: string; +}) { + const statsItems = await getConnectionStats({ + setup, + start, + end, + filter: [ + { term: { [SPAN_DESTINATION_SERVICE_RESOURCE]: backendName } }, + ...environmentQuery(environment), + ], + collapseBy: 'upstream', + numBuckets, + offset, + }); + + return getConnectionStatsItemsWithRelativeImpact(statsItems); +} diff --git a/x-pack/plugins/apm/server/lib/connections/exclude_rum_exit_spans_query.ts b/x-pack/plugins/apm/server/lib/connections/exclude_rum_exit_spans_query.ts new file mode 100644 index 0000000000000..89a510fe508c6 --- /dev/null +++ b/x-pack/plugins/apm/server/lib/connections/exclude_rum_exit_spans_query.ts @@ -0,0 +1,29 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { QueryDslQueryContainer } from '@elastic/elasticsearch/api/types'; +import { AGENT_NAME } from '../../../common/elasticsearch_fieldnames'; +import { RUM_AGENT_NAMES } from '../../../common/agent_name'; + +// exclude RUM exit spans, as they're high cardinality and don't usually +// talk to databases directly + +export function excludeRumExitSpansQuery() { + return [ + { + bool: { + must_not: [ + { + terms: { + [AGENT_NAME]: RUM_AGENT_NAMES, + }, + }, + ], + }, + }, + ] as QueryDslQueryContainer[]; +} diff --git a/x-pack/plugins/apm/server/lib/connections/get_connection_stats/get_connection_stats_items_with_relative_impact.ts b/x-pack/plugins/apm/server/lib/connections/get_connection_stats/get_connection_stats_items_with_relative_impact.ts new file mode 100644 index 0000000000000..c5502e0e30b97 --- /dev/null +++ b/x-pack/plugins/apm/server/lib/connections/get_connection_stats/get_connection_stats_items_with_relative_impact.ts @@ -0,0 +1,46 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { isFiniteNumber } from '../../../../common/utils/is_finite_number'; +import { + ConnectionStatsItem, + ConnectionStatsItemWithImpact, +} from '../../../../common/connections'; + +export function getConnectionStatsItemsWithRelativeImpact( + items: ConnectionStatsItem[] +) { + const latencySums = items + .map( + ({ stats }) => (stats.latency.value ?? 0) * (stats.throughput.value ?? 0) + ) + .filter(isFiniteNumber); + + const minLatencySum = Math.min(...latencySums); + const maxLatencySum = Math.max(...latencySums); + + const itemsWithImpact: ConnectionStatsItemWithImpact[] = items.map((item) => { + const { stats } = item; + const impact = + isFiniteNumber(stats.latency.value) && + isFiniteNumber(stats.throughput.value) + ? ((stats.latency.value * stats.throughput.value - minLatencySum) / + (maxLatencySum - minLatencySum)) * + 100 + : 0; + + return { + ...item, + stats: { + ...stats, + impact, + }, + }; + }); + + return itemsWithImpact; +} diff --git a/x-pack/plugins/apm/server/lib/connections/get_connection_stats/get_destination_map.ts b/x-pack/plugins/apm/server/lib/connections/get_connection_stats/get_destination_map.ts new file mode 100644 index 0000000000000..a1f74441629d4 --- /dev/null +++ b/x-pack/plugins/apm/server/lib/connections/get_connection_stats/get_destination_map.ts @@ -0,0 +1,227 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { QueryDslQueryContainer } from '@elastic/elasticsearch/api/types'; +import objectHash from 'object-hash'; +import { getOffsetInMs } from '../../../../common/utils/get_offset_in_ms'; +import { ENVIRONMENT_NOT_DEFINED } from '../../../../common/environment_filter_values'; +import { asMutableArray } from '../../../../common/utils/as_mutable_array'; +import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; +import { + AGENT_NAME, + EVENT_OUTCOME, + PARENT_ID, + SERVICE_ENVIRONMENT, + SERVICE_NAME, + SPAN_DESTINATION_SERVICE_RESOURCE, + SPAN_ID, + SPAN_SUBTYPE, + SPAN_TYPE, +} from '../../../../common/elasticsearch_fieldnames'; +import { ProcessorEvent } from '../../../../common/processor_event'; +import { rangeQuery } from '../../../../../observability/server'; +import { Setup } from '../../helpers/setup_request'; +import { withApmSpan } from '../../../utils/with_apm_span'; +import { Node, NodeType } from '../../../../common/connections'; +import { excludeRumExitSpansQuery } from '../exclude_rum_exit_spans_query'; + +type Destination = { + backendName: string; + spanId: string; + spanType: string; + spanSubtype: string; +} & ( + | {} + | { + serviceName: string; + agentName: AgentName; + environment: string; + } +); + +// This operation tries to find a service for a backend, by: +// - getting a span for each value of span.destination.service.resource (which indicates an outgoing call) +// - for each span, find the transaction it creates +// - if there is a transaction, match the backend name (span.destination.service.resource) to a service +export const getDestinationMap = ({ + setup, + start, + end, + filter, + offset, +}: { + setup: Setup; + start: number; + end: number; + filter: QueryDslQueryContainer[]; + offset?: string; +}) => { + return withApmSpan('get_destination_map', async () => { + const { apmEventClient } = setup; + + const { startWithOffset, endWithOffset } = getOffsetInMs({ + start, + end, + offset, + }); + + const response = await apmEventClient.search('get_exit_span_samples', { + apm: { + events: [ProcessorEvent.span], + }, + body: { + size: 0, + query: { + bool: { + filter: [ + { exists: { field: SPAN_DESTINATION_SERVICE_RESOURCE } }, + ...rangeQuery(startWithOffset, endWithOffset), + ...filter, + ...excludeRumExitSpansQuery(), + ], + }, + }, + aggs: { + connections: { + composite: { + size: 10000, + sources: asMutableArray([ + { + backendName: { + terms: { field: SPAN_DESTINATION_SERVICE_RESOURCE }, + }, + }, + // make sure we get samples for both successful + // and failed calls + { eventOutcome: { terms: { field: EVENT_OUTCOME } } }, + ] as const), + }, + aggs: { + sample: { + top_metrics: { + size: 1, + metrics: asMutableArray([ + { field: SPAN_TYPE }, + { field: SPAN_SUBTYPE }, + { field: SPAN_ID }, + ] as const), + sort: [ + { + '@timestamp': 'desc' as const, + }, + ], + }, + }, + }, + }, + }, + }, + }); + + const destinationsBySpanId = new Map(); + + response.aggregations?.connections.buckets.forEach((bucket) => { + const sample = bucket.sample.top[0].metrics; + + const spanId = sample[SPAN_ID] as string; + + destinationsBySpanId.set(spanId, { + backendName: bucket.key.backendName as string, + spanId, + spanType: (sample[SPAN_TYPE] as string | null) || '', + spanSubtype: (sample[SPAN_SUBTYPE] as string | null) || '', + }); + }); + + const transactionResponse = await apmEventClient.search( + 'get_transactions_for_exit_spans', + { + apm: { + events: [ProcessorEvent.transaction], + }, + body: { + query: { + bool: { + filter: [ + { + terms: { + [PARENT_ID]: Array.from(destinationsBySpanId.keys()), + }, + }, + // add a 5m buffer at the end of the time range for long running spans + ...rangeQuery( + startWithOffset, + endWithOffset + 1000 * 1000 * 60 * 5 + ), + ], + }, + }, + size: destinationsBySpanId.size, + fields: asMutableArray([ + SERVICE_NAME, + SERVICE_ENVIRONMENT, + AGENT_NAME, + PARENT_ID, + ] as const), + _source: false, + }, + } + ); + + transactionResponse.hits.hits.forEach((hit) => { + const spanId = String(hit.fields[PARENT_ID]![0]); + const destination = destinationsBySpanId.get(spanId); + + if (destination) { + destinationsBySpanId.set(spanId, { + ...destination, + serviceName: String(hit.fields[SERVICE_NAME]![0]), + environment: String( + hit.fields[SERVICE_ENVIRONMENT]?.[0] ?? + ENVIRONMENT_NOT_DEFINED.value + ), + agentName: hit.fields[AGENT_NAME]![0] as AgentName, + }); + } + }); + + const nodesByBackendName = new Map(); + + destinationsBySpanId.forEach((destination) => { + const existingDestination = + nodesByBackendName.get(destination.backendName) ?? {}; + + const mergedDestination = { + ...existingDestination, + ...destination, + }; + + let node: Node; + if ('serviceName' in mergedDestination) { + node = { + serviceName: mergedDestination.serviceName, + agentName: mergedDestination.agentName, + environment: mergedDestination.environment, + id: objectHash({ serviceName: mergedDestination.serviceName }), + type: NodeType.service, + }; + } else { + node = { + backendName: mergedDestination.backendName, + spanType: mergedDestination.spanType, + spanSubtype: mergedDestination.spanSubtype, + id: objectHash({ backendName: mergedDestination.backendName }), + type: NodeType.backend, + }; + } + + nodesByBackendName.set(destination.backendName, node); + }); + + return nodesByBackendName; + }); +}; diff --git a/x-pack/plugins/apm/server/lib/connections/get_connection_stats/get_stats.ts b/x-pack/plugins/apm/server/lib/connections/get_connection_stats/get_stats.ts new file mode 100644 index 0000000000000..94a23f6218e5d --- /dev/null +++ b/x-pack/plugins/apm/server/lib/connections/get_connection_stats/get_stats.ts @@ -0,0 +1,220 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { sum } from 'lodash'; +import objectHash from 'object-hash'; +import { QueryDslQueryContainer } from '@elastic/elasticsearch/api/types'; +import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; +import { getOffsetInMs } from '../../../../common/utils/get_offset_in_ms'; +import { ENVIRONMENT_NOT_DEFINED } from '../../../../common/environment_filter_values'; +import { asMutableArray } from '../../../../common/utils/as_mutable_array'; +import { + AGENT_NAME, + EVENT_OUTCOME, + SERVICE_ENVIRONMENT, + SERVICE_NAME, + SPAN_DESTINATION_SERVICE_RESOURCE, + SPAN_DESTINATION_SERVICE_RESPONSE_TIME_COUNT, + SPAN_DESTINATION_SERVICE_RESPONSE_TIME_SUM, + SPAN_SUBTYPE, + SPAN_TYPE, +} from '../../../../common/elasticsearch_fieldnames'; +import { ProcessorEvent } from '../../../../common/processor_event'; +import { rangeQuery } from '../../../../../observability/server'; +import { getBucketSize } from '../../helpers/get_bucket_size'; +import { EventOutcome } from '../../../../common/event_outcome'; +import { Setup } from '../../helpers/setup_request'; +import { NodeType } from '../../../../common/connections'; +import { excludeRumExitSpansQuery } from '../exclude_rum_exit_spans_query'; + +export const getStats = async ({ + setup, + start, + end, + filter, + numBuckets, + offset, +}: { + setup: Setup; + start: number; + end: number; + filter: QueryDslQueryContainer[]; + numBuckets: number; + offset?: string; +}) => { + const { apmEventClient } = setup; + + const { offsetInMs, startWithOffset, endWithOffset } = getOffsetInMs({ + start, + end, + offset, + }); + + const response = await apmEventClient.search('get_connection_stats', { + apm: { + events: [ProcessorEvent.metric], + }, + body: { + track_total_hits: true, + size: 0, + query: { + bool: { + filter: [ + ...filter, + { + exists: { + field: SPAN_DESTINATION_SERVICE_RESPONSE_TIME_COUNT, + }, + }, + ...rangeQuery(startWithOffset, endWithOffset), + ...excludeRumExitSpansQuery(), + ], + }, + }, + aggs: { + connections: { + composite: { + size: 10000, + sources: asMutableArray([ + { + serviceName: { + terms: { + field: SERVICE_NAME, + }, + }, + }, + { + backendName: { + terms: { + field: SPAN_DESTINATION_SERVICE_RESOURCE, + }, + }, + }, + ] as const), + }, + aggs: { + sample: { + top_metrics: { + size: 1, + metrics: asMutableArray([ + { + field: SERVICE_ENVIRONMENT, + }, + { + field: AGENT_NAME, + }, + { + field: SPAN_TYPE, + }, + { + field: SPAN_SUBTYPE, + }, + ] as const), + sort: { + '@timestamp': 'desc', + }, + }, + }, + timeseries: { + date_histogram: { + field: '@timestamp', + fixed_interval: getBucketSize({ + start: startWithOffset, + end: endWithOffset, + numBuckets, + }).intervalString, + extended_bounds: { + min: startWithOffset, + max: endWithOffset, + }, + }, + aggs: { + latency_sum: { + sum: { + field: SPAN_DESTINATION_SERVICE_RESPONSE_TIME_SUM, + }, + }, + count: { + sum: { + field: SPAN_DESTINATION_SERVICE_RESPONSE_TIME_COUNT, + }, + }, + [EVENT_OUTCOME]: { + terms: { + field: EVENT_OUTCOME, + }, + aggs: { + count: { + sum: { + field: SPAN_DESTINATION_SERVICE_RESPONSE_TIME_COUNT, + }, + }, + }, + }, + }, + }, + }, + }, + }, + }, + }); + + return ( + response.aggregations?.connections.buckets.map((bucket) => { + const sample = bucket.sample.top[0].metrics; + const serviceName = bucket.key.serviceName as string; + const backendName = bucket.key.backendName as string; + + return { + from: { + id: objectHash({ serviceName }), + serviceName, + environment: (sample[SERVICE_ENVIRONMENT] || + ENVIRONMENT_NOT_DEFINED.value) as string, + agentName: sample[AGENT_NAME] as AgentName, + type: NodeType.service as const, + }, + to: { + id: objectHash({ backendName }), + backendName, + spanType: sample[SPAN_TYPE] as string, + spanSubtype: (sample[SPAN_SUBTYPE] || '') as string, + type: NodeType.backend as const, + }, + value: { + count: sum( + bucket.timeseries.buckets.map( + (dateBucket) => dateBucket.count.value ?? 0 + ) + ), + latency_sum: sum( + bucket.timeseries.buckets.map( + (dateBucket) => dateBucket.latency_sum.value ?? 0 + ) + ), + error_count: sum( + bucket.timeseries.buckets.flatMap( + (dateBucket) => + dateBucket[EVENT_OUTCOME].buckets.find( + (outcomeBucket) => outcomeBucket.key === EventOutcome.failure + )?.count.value ?? 0 + ) + ), + }, + timeseries: bucket.timeseries.buckets.map((dateBucket) => ({ + x: dateBucket.key + offsetInMs, + count: dateBucket.count.value ?? 0, + latency_sum: dateBucket.latency_sum.value ?? 0, + error_count: + dateBucket[EVENT_OUTCOME].buckets.find( + (outcomeBucket) => outcomeBucket.key === EventOutcome.failure + )?.count.value ?? 0, + })), + }; + }) ?? [] + ); +}; diff --git a/x-pack/plugins/apm/server/lib/connections/get_connection_stats/index.ts b/x-pack/plugins/apm/server/lib/connections/get_connection_stats/index.ts new file mode 100644 index 0000000000000..37fcd9877327b --- /dev/null +++ b/x-pack/plugins/apm/server/lib/connections/get_connection_stats/index.ts @@ -0,0 +1,153 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { ValuesType } from 'utility-types'; +import { merge } from 'lodash'; +import { QueryDslQueryContainer } from '@elastic/elasticsearch/api/types'; +import { joinByKey } from '../../../../common/utils/join_by_key'; +import { Setup } from '../../helpers/setup_request'; +import { getStats } from './get_stats'; +import { getDestinationMap } from './get_destination_map'; +import { calculateThroughput } from '../../helpers/calculate_throughput'; +import { withApmSpan } from '../../../utils/with_apm_span'; + +export function getConnectionStats({ + setup, + start, + end, + numBuckets, + filter, + collapseBy, + offset, +}: { + setup: Setup; + start: number; + end: number; + numBuckets: number; + filter: QueryDslQueryContainer[]; + collapseBy: 'upstream' | 'downstream'; + offset?: string; +}) { + return withApmSpan('get_connection_stats_and_map', async () => { + const [allMetrics, destinationMap] = await Promise.all([ + getStats({ + setup, + start, + end, + filter, + numBuckets, + offset, + }), + getDestinationMap({ + setup, + start, + end, + filter, + offset, + }), + ]); + + const statsWithLocationIds = allMetrics.map((statsItem) => { + const { from, timeseries, value } = statsItem; + const to = destinationMap.get(statsItem.to.backendName) ?? statsItem.to; + + const location = collapseBy === 'upstream' ? from : to; + + return { + location, + stats: [{ timeseries, value }], + id: location.id, + }; + }, []); + + const statsJoinedById = joinByKey(statsWithLocationIds, 'id', (a, b) => { + const { stats: statsA, ...itemA } = a; + const { stats: statsB, ...itemB } = b; + + return merge({}, itemA, itemB, { stats: statsA.concat(statsB) }); + }); + + const statsItems = statsJoinedById.map((item) => { + const mergedStats = item.stats.reduce>( + (prev, current) => { + return { + value: { + count: prev.value.count + current.value.count, + latency_sum: prev.value.latency_sum + current.value.latency_sum, + error_count: prev.value.error_count + current.value.error_count, + }, + timeseries: joinByKey( + [...prev.timeseries, ...current.timeseries], + 'x', + (a, b) => ({ + x: a.x, + count: a.count + b.count, + latency_sum: a.latency_sum + b.latency_sum, + error_count: a.error_count + b.error_count, + }) + ), + }; + }, + { + value: { + count: 0, + latency_sum: 0, + error_count: 0, + }, + timeseries: [], + } + ); + + const destStats = { + latency: { + value: + mergedStats.value.count > 0 + ? mergedStats.value.latency_sum / mergedStats.value.count + : null, + timeseries: mergedStats.timeseries.map((point) => ({ + x: point.x, + y: point.count > 0 ? point.latency_sum / point.count : null, + })), + }, + throughput: { + value: + mergedStats.value.count > 0 + ? calculateThroughput({ + start, + end, + value: mergedStats.value.count, + }) + : null, + timeseries: mergedStats.timeseries.map((point) => ({ + x: point.x, + y: + point.count > 0 + ? calculateThroughput({ start, end, value: point.count }) + : null, + })), + }, + errorRate: { + value: + mergedStats.value.count > 0 + ? (mergedStats.value.error_count ?? 0) / mergedStats.value.count + : null, + timeseries: mergedStats.timeseries.map((point) => ({ + x: point.x, + y: point.count > 0 ? (point.error_count ?? 0) / point.count : null, + })), + }, + }; + + return { + ...item, + stats: destStats, + }; + }); + + return statsItems; + }); +} diff --git a/x-pack/plugins/apm/server/lib/services/get_service_dependencies.ts b/x-pack/plugins/apm/server/lib/services/get_service_dependencies.ts new file mode 100644 index 0000000000000..1b3ffcab3f159 --- /dev/null +++ b/x-pack/plugins/apm/server/lib/services/get_service_dependencies.ts @@ -0,0 +1,45 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { SERVICE_NAME } from '../../../common/elasticsearch_fieldnames'; +import { environmentQuery } from '../../../common/utils/environment_query'; +import { getConnectionStats } from '../connections/get_connection_stats'; +import { getConnectionStatsItemsWithRelativeImpact } from '../connections/get_connection_stats/get_connection_stats_items_with_relative_impact'; +import { Setup } from '../helpers/setup_request'; + +export async function getServiceDependencies({ + setup, + start, + end, + serviceName, + numBuckets, + environment, + offset, +}: { + setup: Setup; + start: number; + end: number; + serviceName: string; + numBuckets: number; + environment?: string; + offset?: string; +}) { + const statsItems = await getConnectionStats({ + setup, + start, + end, + numBuckets, + filter: [ + { term: { [SERVICE_NAME]: serviceName } }, + ...environmentQuery(environment), + ], + offset, + collapseBy: 'downstream', + }); + + return getConnectionStatsItemsWithRelativeImpact(statsItems); +} diff --git a/x-pack/plugins/apm/server/lib/services/get_service_dependencies/get_destination_map.ts b/x-pack/plugins/apm/server/lib/services/get_service_dependencies/get_destination_map.ts deleted file mode 100644 index 8382ff820805e..0000000000000 --- a/x-pack/plugins/apm/server/lib/services/get_service_dependencies/get_destination_map.ts +++ /dev/null @@ -1,213 +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; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import { isEqual, keyBy, mapValues } from 'lodash'; -import { asMutableArray } from '../../../../common/utils/as_mutable_array'; -import { pickKeys } from '../../../../common/utils/pick_keys'; -import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; -import { - AGENT_NAME, - EVENT_OUTCOME, - PARENT_ID, - SERVICE_ENVIRONMENT, - SERVICE_NAME, - SPAN_DESTINATION_SERVICE_RESOURCE, - SPAN_ID, - SPAN_SUBTYPE, - SPAN_TYPE, -} from '../../../../common/elasticsearch_fieldnames'; -import { ProcessorEvent } from '../../../../common/processor_event'; -import { rangeQuery } from '../../../../../observability/server'; -import { environmentQuery } from '../../../../common/utils/environment_query'; -import { joinByKey } from '../../../../common/utils/join_by_key'; -import { Setup, SetupTimeRange } from '../../helpers/setup_request'; -import { withApmSpan } from '../../../utils/with_apm_span'; - -export const getDestinationMap = ({ - setup, - serviceName, - environment, -}: { - setup: Setup & SetupTimeRange; - serviceName: string; - environment?: string; -}) => { - return withApmSpan('get_service_destination_map', async () => { - const { start, end, apmEventClient } = setup; - - const response = await apmEventClient.search('get_exit_span_samples', { - apm: { - events: [ProcessorEvent.span], - }, - body: { - size: 0, - query: { - bool: { - filter: [ - { term: { [SERVICE_NAME]: serviceName } }, - { exists: { field: SPAN_DESTINATION_SERVICE_RESOURCE } }, - ...rangeQuery(start, end), - ...environmentQuery(environment), - ], - }, - }, - aggs: { - connections: { - composite: { - size: 1000, - sources: asMutableArray([ - { - [SPAN_DESTINATION_SERVICE_RESOURCE]: { - terms: { field: SPAN_DESTINATION_SERVICE_RESOURCE }, - }, - }, - // make sure we get samples for both successful - // and failed calls - { [EVENT_OUTCOME]: { terms: { field: EVENT_OUTCOME } } }, - ] as const), - }, - aggs: { - sample: { - top_hits: { - size: 1, - _source: [SPAN_TYPE, SPAN_SUBTYPE, SPAN_ID], - sort: [ - { - '@timestamp': 'desc' as const, - }, - ], - }, - }, - }, - }, - }, - }, - }); - - const outgoingConnections = - response.aggregations?.connections.buckets.map((bucket) => { - const sample = bucket.sample.hits.hits[0]._source; - - return { - [SPAN_DESTINATION_SERVICE_RESOURCE]: String( - bucket.key[SPAN_DESTINATION_SERVICE_RESOURCE] - ), - [SPAN_ID]: sample.span.id, - [SPAN_TYPE]: sample.span.type, - [SPAN_SUBTYPE]: sample.span.subtype, - }; - }) ?? []; - - const transactionResponse = await apmEventClient.search( - 'get_transactions_for_exit_spans', - { - apm: { - events: [ProcessorEvent.transaction], - }, - body: { - query: { - bool: { - filter: [ - { - terms: { - [PARENT_ID]: outgoingConnections.map( - (connection) => connection[SPAN_ID] - ), - }, - }, - ...rangeQuery(start, end), - ], - }, - }, - size: outgoingConnections.length, - docvalue_fields: asMutableArray([ - SERVICE_NAME, - SERVICE_ENVIRONMENT, - AGENT_NAME, - PARENT_ID, - ] as const), - _source: false, - }, - } - ); - - const incomingConnections = transactionResponse.hits.hits.map((hit) => ({ - [SPAN_ID]: String(hit.fields[PARENT_ID]![0]), - service: { - name: String(hit.fields[SERVICE_NAME]![0]), - environment: String(hit.fields[SERVICE_ENVIRONMENT]?.[0] ?? ''), - agentName: hit.fields[AGENT_NAME]![0] as AgentName, - }, - })); - - // merge outgoing spans with transactions by span.id/parent.id - const joinedBySpanId = joinByKey( - [...outgoingConnections, ...incomingConnections], - SPAN_ID - ); - - // we could have multiple connections per address because - // of multiple event outcomes - const dedupedConnectionsByAddress = joinByKey( - joinedBySpanId, - SPAN_DESTINATION_SERVICE_RESOURCE - ); - - // identify a connection by either service.name, service.environment, agent.name - // OR span.destination.service.resource - - const connectionsWithId = dedupedConnectionsByAddress.map((connection) => { - const id = - 'service' in connection - ? { service: connection.service } - : pickKeys(connection, SPAN_DESTINATION_SERVICE_RESOURCE); - - return { - ...connection, - id, - }; - }); - - const dedupedConnectionsById = joinByKey(connectionsWithId, 'id'); - - const connectionsByAddress = keyBy( - connectionsWithId, - SPAN_DESTINATION_SERVICE_RESOURCE - ); - - // per span.destination.service.resource, return merged/deduped item - return mapValues(connectionsByAddress, ({ id }) => { - const connection = dedupedConnectionsById.find((dedupedConnection) => - isEqual(id, dedupedConnection.id) - )!; - - return { - id, - span: { - type: connection[SPAN_TYPE], - subtype: connection[SPAN_SUBTYPE], - destination: { - service: { - resource: connection[SPAN_DESTINATION_SERVICE_RESOURCE], - }, - }, - }, - ...('service' in connection && connection.service - ? { - service: { - name: connection.service.name, - environment: connection.service.environment, - }, - agent: { - name: connection.service.agentName, - }, - } - : {}), - }; - }); - }); -}; diff --git a/x-pack/plugins/apm/server/lib/services/get_service_dependencies/get_metrics.ts b/x-pack/plugins/apm/server/lib/services/get_service_dependencies/get_metrics.ts deleted file mode 100644 index 52d3b41960a50..0000000000000 --- a/x-pack/plugins/apm/server/lib/services/get_service_dependencies/get_metrics.ts +++ /dev/null @@ -1,148 +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; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import { sum } from 'lodash'; -import { - EVENT_OUTCOME, - SERVICE_NAME, - SPAN_DESTINATION_SERVICE_RESOURCE, - SPAN_DESTINATION_SERVICE_RESPONSE_TIME_COUNT, - SPAN_DESTINATION_SERVICE_RESPONSE_TIME_SUM, -} from '../../../../common/elasticsearch_fieldnames'; -import { ProcessorEvent } from '../../../../common/processor_event'; -import { environmentQuery } from '../../../../common/utils/environment_query'; -import { rangeQuery } from '../../../../../observability/server'; -import { getBucketSize } from '../../helpers/get_bucket_size'; -import { EventOutcome } from '../../../../common/event_outcome'; -import { Setup, SetupTimeRange } from '../../helpers/setup_request'; - -export const getMetrics = async ({ - setup, - serviceName, - environment, - numBuckets, -}: { - setup: Setup & SetupTimeRange; - serviceName: string; - environment?: string; - numBuckets: number; -}) => { - const { start, end, apmEventClient } = setup; - - const response = await apmEventClient.search( - 'get_service_destination_metrics', - { - apm: { - events: [ProcessorEvent.metric], - }, - body: { - track_total_hits: true, - size: 0, - query: { - bool: { - filter: [ - { term: { [SERVICE_NAME]: serviceName } }, - { - exists: { - field: SPAN_DESTINATION_SERVICE_RESPONSE_TIME_COUNT, - }, - }, - ...rangeQuery(start, end), - ...environmentQuery(environment), - ], - }, - }, - aggs: { - connections: { - terms: { - field: SPAN_DESTINATION_SERVICE_RESOURCE, - size: 100, - }, - aggs: { - timeseries: { - date_histogram: { - field: '@timestamp', - fixed_interval: getBucketSize({ start, end, numBuckets }) - .intervalString, - extended_bounds: { - min: start, - max: end, - }, - }, - aggs: { - latency_sum: { - sum: { - field: SPAN_DESTINATION_SERVICE_RESPONSE_TIME_SUM, - }, - }, - count: { - sum: { - field: SPAN_DESTINATION_SERVICE_RESPONSE_TIME_COUNT, - }, - }, - [EVENT_OUTCOME]: { - terms: { - field: EVENT_OUTCOME, - }, - aggs: { - count: { - sum: { - field: SPAN_DESTINATION_SERVICE_RESPONSE_TIME_COUNT, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - } - ); - - return ( - response.aggregations?.connections.buckets.map((bucket) => ({ - span: { - destination: { - service: { - resource: String(bucket.key), - }, - }, - }, - value: { - count: sum( - bucket.timeseries.buckets.map( - (dateBucket) => dateBucket.count.value ?? 0 - ) - ), - latency_sum: sum( - bucket.timeseries.buckets.map( - (dateBucket) => dateBucket.latency_sum.value ?? 0 - ) - ), - error_count: sum( - bucket.timeseries.buckets.flatMap( - (dateBucket) => - dateBucket[EVENT_OUTCOME].buckets.find( - (outcomeBucket) => outcomeBucket.key === EventOutcome.failure - )?.count.value ?? 0 - ) - ), - }, - timeseries: bucket.timeseries.buckets.map((dateBucket) => ({ - x: dateBucket.key, - count: dateBucket.count.value ?? 0, - latency_sum: dateBucket.latency_sum.value ?? 0, - error_count: - dateBucket[EVENT_OUTCOME].buckets.find( - (outcomeBucket) => outcomeBucket.key === EventOutcome.failure - )?.count.value ?? 0, - })), - })) ?? [] - ); -}; diff --git a/x-pack/plugins/apm/server/lib/services/get_service_dependencies/index.ts b/x-pack/plugins/apm/server/lib/services/get_service_dependencies/index.ts deleted file mode 100644 index 724b5278d7edf..0000000000000 --- a/x-pack/plugins/apm/server/lib/services/get_service_dependencies/index.ts +++ /dev/null @@ -1,230 +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; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import { ValuesType } from 'utility-types'; -import { merge } from 'lodash'; -import { SPAN_DESTINATION_SERVICE_RESOURCE } from '../../../../common/elasticsearch_fieldnames'; -import { maybe } from '../../../../common/utils/maybe'; -import { isFiniteNumber } from '../../../../common/utils/is_finite_number'; -import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; -import { joinByKey } from '../../../../common/utils/join_by_key'; -import { Setup, SetupTimeRange } from '../../helpers/setup_request'; -import { getMetrics } from './get_metrics'; -import { getDestinationMap } from './get_destination_map'; -import { calculateThroughput } from '../../helpers/calculate_throughput'; -import { withApmSpan } from '../../../utils/with_apm_span'; - -export type ServiceDependencyItem = { - name: string; - latency: { - value: number | null; - timeseries: Array<{ x: number; y: number | null }>; - }; - throughput: { - value: number | null; - timeseries: Array<{ x: number; y: number | null }>; - }; - errorRate: { - value: number | null; - timeseries: Array<{ x: number; y: number | null }>; - }; - impact: number; -} & ( - | { - type: 'service'; - serviceName: string; - agentName: AgentName; - environment?: string; - } - | { type: 'external'; spanType?: string; spanSubtype?: string } -); - -export function getServiceDependencies({ - setup, - serviceName, - environment, - numBuckets, -}: { - serviceName: string; - setup: Setup & SetupTimeRange; - environment?: string; - numBuckets: number; -}): Promise { - return withApmSpan('get_service_dependencies', async () => { - const { start, end } = setup; - const [allMetrics, destinationMap] = await Promise.all([ - getMetrics({ - setup, - serviceName, - environment, - numBuckets, - }), - getDestinationMap({ - setup, - serviceName, - environment, - }), - ]); - - const metricsWithDestinationIds = allMetrics.map((metricItem) => { - const spanDestination = metricItem.span.destination.service.resource; - - const destination = maybe(destinationMap[spanDestination]); - const id = destination?.id || { - [SPAN_DESTINATION_SERVICE_RESOURCE]: spanDestination, - }; - - return merge( - { - id, - metrics: [metricItem], - span: { - destination: { - service: { - resource: spanDestination, - }, - }, - }, - }, - destination - ); - }, []); - - const metricsJoinedByDestinationId = joinByKey( - metricsWithDestinationIds, - 'id', - (a, b) => { - const { metrics: metricsA, ...itemA } = a; - const { metrics: metricsB, ...itemB } = b; - - return merge({}, itemA, itemB, { metrics: metricsA.concat(metricsB) }); - } - ); - - const metricsByResolvedAddress = metricsJoinedByDestinationId.map( - (item) => { - const mergedMetrics = item.metrics.reduce< - Omit, 'span'> - >( - (prev, current) => { - return { - value: { - count: prev.value.count + current.value.count, - latency_sum: prev.value.latency_sum + current.value.latency_sum, - error_count: prev.value.error_count + current.value.error_count, - }, - timeseries: joinByKey( - [...prev.timeseries, ...current.timeseries], - 'x', - (a, b) => ({ - x: a.x, - count: a.count + b.count, - latency_sum: a.latency_sum + b.latency_sum, - error_count: a.error_count + b.error_count, - }) - ), - }; - }, - { - value: { - count: 0, - latency_sum: 0, - error_count: 0, - }, - timeseries: [], - } - ); - - const destMetrics = { - latency: { - value: - mergedMetrics.value.count > 0 - ? mergedMetrics.value.latency_sum / mergedMetrics.value.count - : null, - timeseries: mergedMetrics.timeseries.map((point) => ({ - x: point.x, - y: point.count > 0 ? point.latency_sum / point.count : null, - })), - }, - throughput: { - value: - mergedMetrics.value.count > 0 - ? calculateThroughput({ - start, - end, - value: mergedMetrics.value.count, - }) - : null, - timeseries: mergedMetrics.timeseries.map((point) => ({ - x: point.x, - y: - point.count > 0 - ? calculateThroughput({ start, end, value: point.count }) - : null, - })), - }, - errorRate: { - value: - mergedMetrics.value.count > 0 - ? (mergedMetrics.value.error_count ?? 0) / - mergedMetrics.value.count - : null, - timeseries: mergedMetrics.timeseries.map((point) => ({ - x: point.x, - y: - point.count > 0 ? (point.error_count ?? 0) / point.count : null, - })), - }, - }; - - if (item.service) { - return { - name: item.service.name, - type: 'service' as const, - serviceName: item.service.name, - environment: item.service.environment, - // agent.name should always be there, type returned from joinByKey is too pessimistic - agentName: item.agent!.name, - ...destMetrics, - }; - } - - return { - name: item.span.destination.service.resource, - type: 'external' as const, - spanType: item.span.type, - spanSubtype: item.span.subtype, - ...destMetrics, - }; - } - ); - - const latencySums = metricsByResolvedAddress - .map( - (metric) => (metric.latency.value ?? 0) * (metric.throughput.value ?? 0) - ) - .filter(isFiniteNumber); - - const minLatencySum = Math.min(...latencySums); - const maxLatencySum = Math.max(...latencySums); - - return metricsByResolvedAddress.map((metric) => { - const impact = - isFiniteNumber(metric.latency.value) && - isFiniteNumber(metric.throughput.value) - ? ((metric.latency.value * metric.throughput.value - minLatencySum) / - (maxLatencySum - minLatencySum)) * - 100 - : 0; - - return { - ...metric, - impact, - }; - }); - }); -} diff --git a/x-pack/plugins/apm/server/routes/backends.ts b/x-pack/plugins/apm/server/routes/backends.ts index 3d0694425d3da..93d8bab3f80ff 100644 --- a/x-pack/plugins/apm/server/routes/backends.ts +++ b/x-pack/plugins/apm/server/routes/backends.ts @@ -6,12 +6,107 @@ */ import * as t from 'io-ts'; +import { toNumberRt } from '@kbn/io-ts-utils'; import { setupRequest } from '../lib/helpers/setup_request'; import { environmentRt, kueryRt, offsetRt, rangeRt } from './default_api_types'; import { createApmServerRoute } from './create_apm_server_route'; import { createApmServerRouteRepository } from './create_apm_server_route_repository'; import { getMetadataForBackend } from '../lib/backends/get_metadata_for_backend'; import { getLatencyChartsForBackend } from '../lib/backends/get_latency_charts_for_backend'; +import { getTopBackends } from '../lib/backends/get_top_backends'; +import { getUpstreamServicesForBackend } from '../lib/backends/get_upstream_services_for_backend'; + +const topBackendsRoute = createApmServerRoute({ + endpoint: 'GET /api/apm/backends/top_backends', + params: t.intersection([ + t.type({ + query: t.intersection([rangeRt, t.type({ numBuckets: toNumberRt })]), + }), + t.partial({ + query: t.intersection([environmentRt, offsetRt]), + }), + ]), + options: { + tags: ['access:apm'], + }, + handler: async (resources) => { + const setup = await setupRequest(resources); + + const { start, end } = setup; + const { environment, offset, numBuckets } = resources.params.query; + + const opts = { setup, start, end, numBuckets, environment }; + + const [currentBackends, previousBackends] = await Promise.all([ + getTopBackends(opts), + offset ? getTopBackends({ ...opts, offset }) : Promise.resolve([]), + ]); + + return { + backends: currentBackends.map((backend) => { + const { stats, ...rest } = backend; + const prev = previousBackends.find( + (item) => item.location.id === backend.location.id + ); + return { + ...rest, + currentStats: stats, + previousStats: prev?.stats ?? null, + }; + }), + }; + }, +}); + +const upstreamServicesForBackendRoute = createApmServerRoute({ + endpoint: 'GET /api/apm/backends/{backendName}/upstream_services', + params: t.intersection([ + t.type({ + path: t.type({ + backendName: t.string, + }), + query: t.intersection([rangeRt, t.type({ numBuckets: toNumberRt })]), + }), + t.partial({ + query: t.intersection([environmentRt, offsetRt]), + }), + ]), + options: { + tags: ['access:apm'], + }, + handler: async (resources) => { + const setup = await setupRequest(resources); + + const { start, end } = setup; + const { + path: { backendName }, + query: { environment, offset, numBuckets }, + } = resources.params; + + const opts = { backendName, setup, start, end, numBuckets, environment }; + + const [currentServices, previousServices] = await Promise.all([ + getUpstreamServicesForBackend(opts), + offset + ? getUpstreamServicesForBackend({ ...opts, offset }) + : Promise.resolve([]), + ]); + + return { + services: currentServices.map((service) => { + const { stats, ...rest } = service; + const prev = previousServices.find( + (item) => item.location.id === service.location.id + ); + return { + ...rest, + currentStats: stats, + previousStats: prev?.stats ?? null, + }; + }), + }; + }, +}); const backendMetadataRoute = createApmServerRoute({ endpoint: 'GET /api/apm/backends/{backendName}/metadata', @@ -88,5 +183,7 @@ const backendLatencyChartsRoute = createApmServerRoute({ }); export const backendsRouteRepository = createApmServerRouteRepository() + .add(topBackendsRoute) + .add(upstreamServicesForBackendRoute) .add(backendMetadataRoute) .add(backendLatencyChartsRoute); diff --git a/x-pack/plugins/apm/server/routes/services.ts b/x-pack/plugins/apm/server/routes/services.ts index 400fdd8bb67c0..460aa13feea2b 100644 --- a/x-pack/plugins/apm/server/routes/services.ts +++ b/x-pack/plugins/apm/server/routes/services.ts @@ -37,6 +37,7 @@ import { comparisonRangeRt, environmentRt, kueryRt, + offsetRt, rangeRt, } from './default_api_types'; import { offsetPreviousPeriodCoordinates } from '../../common/utils/offset_previous_period_coordinate'; @@ -611,6 +612,7 @@ export const serviceDependenciesRoute = createApmServerRoute({ }), environmentRt, rangeRt, + offsetRt, ]), }), options: { @@ -620,16 +622,36 @@ export const serviceDependenciesRoute = createApmServerRoute({ const setup = await setupRequest(resources); const { params } = resources; const { serviceName } = params.path; - const { environment, numBuckets } = params.query; + const { environment, numBuckets, start, end, offset } = params.query; - const serviceDependencies = await getServiceDependencies({ + const opts = { + setup, + start, + end, serviceName, environment, - setup, numBuckets, - }); + }; + + const [currentPeriod, previousPeriod] = await Promise.all([ + getServiceDependencies(opts), + ...(offset ? [getServiceDependencies({ ...opts, offset })] : [[]]), + ]); - return { serviceDependencies }; + return { + serviceDependencies: currentPeriod.map((item) => { + const { stats, ...rest } = item; + const previousPeriodItem = previousPeriod.find( + (prevItem) => item.location.id === prevItem.location.id + ); + + return { + ...rest, + currentStats: stats, + previousStats: previousPeriodItem?.stats || null, + }; + }), + }; }, }); diff --git a/x-pack/plugins/translations/translations/ja-JP.json b/x-pack/plugins/translations/translations/ja-JP.json index 0e8a0d8e45a7d..07511506402a6 100644 --- a/x-pack/plugins/translations/translations/ja-JP.json +++ b/x-pack/plugins/translations/translations/ja-JP.json @@ -5913,11 +5913,6 @@ "xpack.apm.serviceNodeNameMissing": " (空) ", "xpack.apm.serviceOveriew.errorsTableOccurrences": "{occurrencesCount} occ.", "xpack.apm.serviceOverview.dependenciesTableColumnBackend": "バックエンド", - "xpack.apm.serviceOverview.dependenciesTableColumnErrorRate": "エラー率", - "xpack.apm.serviceOverview.dependenciesTableColumnImpact": "インパクト", - "xpack.apm.serviceOverview.dependenciesTableColumnLatency": "レイテンシ (平均) ", - "xpack.apm.serviceOverview.dependenciesTableColumnThroughput": "スループット", - "xpack.apm.serviceOverview.dependenciesTableLinkText": "サービスマップを表示", "xpack.apm.serviceOverview.dependenciesTableTitle": "依存関係", "xpack.apm.serviceOverview.errorsTableColumnLastSeen": "前回の認識", "xpack.apm.serviceOverview.errorsTableColumnName": "名前", diff --git a/x-pack/plugins/translations/translations/zh-CN.json b/x-pack/plugins/translations/translations/zh-CN.json index 97302468aae47..4a35d27fbd8b0 100644 --- a/x-pack/plugins/translations/translations/zh-CN.json +++ b/x-pack/plugins/translations/translations/zh-CN.json @@ -5949,11 +5949,6 @@ "xpack.apm.serviceNodeNameMissing": "(空)", "xpack.apm.serviceOveriew.errorsTableOccurrences": "{occurrencesCount} 次", "xpack.apm.serviceOverview.dependenciesTableColumnBackend": "后端", - "xpack.apm.serviceOverview.dependenciesTableColumnErrorRate": "错误率", - "xpack.apm.serviceOverview.dependenciesTableColumnImpact": "影响", - "xpack.apm.serviceOverview.dependenciesTableColumnLatency": "延迟(平均值)", - "xpack.apm.serviceOverview.dependenciesTableColumnThroughput": "吞吐量", - "xpack.apm.serviceOverview.dependenciesTableLinkText": "查看服务地图", "xpack.apm.serviceOverview.dependenciesTableTitle": "依赖项", "xpack.apm.serviceOverview.errorsTableColumnLastSeen": "最后看到时间", "xpack.apm.serviceOverview.errorsTableColumnName": "名称", diff --git a/x-pack/test/apm_api_integration/tests/service_overview/dependencies/index.ts b/x-pack/test/apm_api_integration/tests/service_overview/dependencies/index.ts index 9319babc3896a..2ea0410419080 100644 --- a/x-pack/test/apm_api_integration/tests/service_overview/dependencies/index.ts +++ b/x-pack/test/apm_api_integration/tests/service_overview/dependencies/index.ts @@ -8,9 +8,13 @@ import expect from '@kbn/expect'; import { last, omit, pick, sortBy } from 'lodash'; import { ValuesType } from 'utility-types'; +import { Node, NodeType } from '../../../../../plugins/apm/common/connections'; import { createApmApiSupertest } from '../../../common/apm_api_supertest'; import { roundNumber } from '../../../utils'; -import { ENVIRONMENT_ALL } from '../../../../../plugins/apm/common/environment_filter_values'; +import { + ENVIRONMENT_ALL, + ENVIRONMENT_NOT_DEFINED, +} from '../../../../../plugins/apm/common/environment_filter_values'; import { APIReturnType } from '../../../../../plugins/apm/public/services/rest/createCallApmApi'; import archives from '../../../common/fixtures/es_archiver/archives_metadata'; import { FtrProviderContext } from '../../../common/ftr_provider_context'; @@ -24,6 +28,10 @@ export default function ApiTest({ getService }: FtrProviderContext) { const archiveName = 'apm_8.0.0'; const { start, end } = archives[archiveName]; + function getName(node: Node) { + return node.type === NodeType.service ? node.serviceName : node.backendName; + } + registry.when( 'Service overview dependencies when data is not loaded', { config: 'basic', archives: [] }, @@ -228,16 +236,17 @@ export default function ApiTest({ getService }: FtrProviderContext) { it('returns opbeans-node as a dependency', () => { const opbeansNode = response.body.serviceDependencies.find( - (item) => item.type === 'service' && item.serviceName === 'opbeans-node' + (item) => getName(item.location) === 'opbeans-node' ); expect(opbeansNode !== undefined).to.be(true); const values = { - latency: roundNumber(opbeansNode?.latency.value), - throughput: roundNumber(opbeansNode?.throughput.value), - errorRate: roundNumber(opbeansNode?.errorRate.value), - ...pick(opbeansNode, 'serviceName', 'type', 'agentName', 'environment', 'impact'), + latency: roundNumber(opbeansNode?.currentStats.latency.value), + throughput: roundNumber(opbeansNode?.currentStats.throughput.value), + errorRate: roundNumber(opbeansNode?.currentStats.errorRate.value), + impact: opbeansNode?.currentStats.impact, + ...pick(opbeansNode?.location, 'serviceName', 'type', 'agentName', 'environment'), }; const count = 4; @@ -246,7 +255,7 @@ export default function ApiTest({ getService }: FtrProviderContext) { expect(values).to.eql({ agentName: 'nodejs', - environment: '', + environment: ENVIRONMENT_NOT_DEFINED.value, serviceName: 'opbeans-node', type: 'service', errorRate: roundNumber(errors / count), @@ -255,8 +264,8 @@ export default function ApiTest({ getService }: FtrProviderContext) { impact: 100, }); - const firstValue = roundNumber(opbeansNode?.latency.timeseries[0].y); - const lastValue = roundNumber(last(opbeansNode?.latency.timeseries)?.y); + const firstValue = roundNumber(opbeansNode?.currentStats.latency.timeseries[0].y); + const lastValue = roundNumber(last(opbeansNode?.currentStats.latency.timeseries)?.y); expect(firstValue).to.be(roundNumber(20 / 3)); expect(lastValue).to.be('1.000'); @@ -264,16 +273,17 @@ export default function ApiTest({ getService }: FtrProviderContext) { it('returns postgres as an external dependency', () => { const postgres = response.body.serviceDependencies.find( - (item) => item.type === 'external' && item.name === 'postgres' + (item) => getName(item.location) === 'postgres' ); expect(postgres !== undefined).to.be(true); const values = { - latency: roundNumber(postgres?.latency.value), - throughput: roundNumber(postgres?.throughput.value), - errorRate: roundNumber(postgres?.errorRate.value), - ...pick(postgres, 'spanType', 'spanSubtype', 'name', 'impact', 'type'), + latency: roundNumber(postgres?.currentStats.latency.value), + throughput: roundNumber(postgres?.currentStats.throughput.value), + errorRate: roundNumber(postgres?.currentStats.errorRate.value), + impact: postgres?.currentStats.impact, + ...pick(postgres?.location, 'spanType', 'spanSubtype', 'backendName', 'type'), }; const count = 1; @@ -283,8 +293,8 @@ export default function ApiTest({ getService }: FtrProviderContext) { expect(values).to.eql({ spanType: 'external', spanSubtype: 'http', - name: 'postgres', - type: 'external', + backendName: 'postgres', + type: 'backend', errorRate: roundNumber(errors / count), latency: roundNumber(sum / count), throughput: roundNumber(count / ((endTime - startTime) / 1000 / 60)), @@ -325,8 +335,25 @@ export default function ApiTest({ getService }: FtrProviderContext) { it('returns at least one item', () => { expect(response.body.serviceDependencies.length).to.be.greaterThan(0); + expectSnapshot(response.body.serviceDependencies.length).toMatchInline(`4`); + + const { currentStats, ...firstItem } = sortBy( + response.body.serviceDependencies, + 'currentStats.impact' + ).reverse()[0]; + + expectSnapshot(firstItem.location).toMatchInline(` + Object { + "backendName": "postgresql", + "id": "d4e2a4d33829d41c096c26f8037921cfc7e566b2", + "spanSubtype": "postgresql", + "spanType": "db", + "type": "backend", + } + `); + expectSnapshot( - omit(response.body.serviceDependencies[0], [ + omit(currentStats, [ 'errorRate.timeseries', 'throughput.timeseries', 'latency.timeseries', @@ -340,19 +367,15 @@ export default function ApiTest({ getService }: FtrProviderContext) { "latency": Object { "value": 30177.8418777023, }, - "name": "postgresql", - "spanSubtype": "postgresql", - "spanType": "db", "throughput": Object { "value": 53.9666666666667, }, - "type": "external", } `); }); it('returns the right names', () => { - const names = response.body.serviceDependencies.map((item) => item.name); + const names = response.body.serviceDependencies.map((item) => getName(item.location)); expectSnapshot(names.sort()).toMatchInline(` Array [ "elasticsearch", @@ -365,7 +388,9 @@ export default function ApiTest({ getService }: FtrProviderContext) { it('returns the right service names', () => { const serviceNames = response.body.serviceDependencies - .map((item) => (item.type === 'service' ? item.serviceName : undefined)) + .map((item) => + item.location.type === NodeType.service ? getName(item.location) : undefined + ) .filter(Boolean); expectSnapshot(serviceNames.sort()).toMatchInline(` @@ -378,8 +403,8 @@ export default function ApiTest({ getService }: FtrProviderContext) { it('returns the right latency values', () => { const latencyValues = sortBy( response.body.serviceDependencies.map((item) => ({ - name: item.name, - latency: item.latency.value, + name: getName(item.location), + latency: item.currentStats.latency.value, })), 'name' ); @@ -409,8 +434,8 @@ export default function ApiTest({ getService }: FtrProviderContext) { it('returns the right throughput values', () => { const throughputValues = sortBy( response.body.serviceDependencies.map((item) => ({ - name: item.name, - throughput: item.throughput.value, + name: getName(item.location), + throughput: item.currentStats.throughput.value, })), 'name' ); @@ -440,10 +465,10 @@ export default function ApiTest({ getService }: FtrProviderContext) { it('returns the right impact values', () => { const impactValues = sortBy( response.body.serviceDependencies.map((item) => ({ - name: item.name, - impact: item.impact, - latency: item.latency.value, - throughput: item.throughput.value, + name: getName(item.location), + impact: item.currentStats.impact, + latency: item.currentStats.latency.value, + throughput: item.currentStats.throughput.value, })), 'name' ); From f21c7e1c479ea4b09b06049fbf403b8cdeec51e8 Mon Sep 17 00:00:00 2001 From: Tiago Costa Date: Fri, 30 Jul 2021 14:33:33 +0100 Subject: [PATCH 03/40] skip flaky suite (#96895) --- .../integration_tests/migration_7.7.2_xpack_100k.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/server/saved_objects/migrationsv2/integration_tests/migration_7.7.2_xpack_100k.test.ts b/src/core/server/saved_objects/migrationsv2/integration_tests/migration_7.7.2_xpack_100k.test.ts index 627a20148f943..bd021b7f073eb 100644 --- a/src/core/server/saved_objects/migrationsv2/integration_tests/migration_7.7.2_xpack_100k.test.ts +++ b/src/core/server/saved_objects/migrationsv2/integration_tests/migration_7.7.2_xpack_100k.test.ts @@ -24,7 +24,8 @@ async function removeLogFile() { await unlink(logFilePath).catch(() => void 0); } -describe('migration from 7.7.2-xpack with 100k objects', () => { +// FLAKY: https://github.com/elastic/kibana/issues/96895 +describe.skip('migration from 7.7.2-xpack with 100k objects', () => { let esServer: kbnTestServer.TestElasticsearchUtils; let root: Root; let coreStart: InternalCoreStart; From c330fc5a9a7e997fef644be30c2e4719b638463e Mon Sep 17 00:00:00 2001 From: Tre Date: Fri, 30 Jul 2021 14:47:50 +0100 Subject: [PATCH 04/40] [Archive Migration] x-pack..security/flstest (#107045) --- .../apps/security/field_level_security.js | 8 +- .../security/flstest/kibana/data.json | 19 - .../security/flstest/kibana/mappings.json | 413 ------------------ .../security/flstest/index_pattern.json | 15 + 4 files changed, 22 insertions(+), 433 deletions(-) delete mode 100644 x-pack/test/functional/es_archives/security/flstest/kibana/data.json delete mode 100644 x-pack/test/functional/es_archives/security/flstest/kibana/mappings.json create mode 100644 x-pack/test/functional/fixtures/kbn_archiver/security/flstest/index_pattern.json diff --git a/x-pack/test/functional/apps/security/field_level_security.js b/x-pack/test/functional/apps/security/field_level_security.js index f58e6837b9441..1f8ecb0df202c 100644 --- a/x-pack/test/functional/apps/security/field_level_security.js +++ b/x-pack/test/functional/apps/security/field_level_security.js @@ -14,11 +14,14 @@ export default function ({ getService, getPageObjects }) { const retry = getService('retry'); const log = getService('log'); const PageObjects = getPageObjects(['security', 'settings', 'common', 'discover', 'header']); + const kibanaServer = getService('kibanaServer'); describe('field_level_security', () => { before('initialize tests', async () => { await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/security/flstest/data'); //( data) - await esArchiver.load('x-pack/test/functional/es_archives/security/flstest/kibana'); //(savedobject) + await kibanaServer.importExport.load( + 'x-pack/test/functional/fixtures/kbn_archiver/security/flstest/index_pattern' + ); await browser.setWindowSize(1600, 1000); }); @@ -125,6 +128,9 @@ export default function ({ getService, getPageObjects }) { after(async function () { await PageObjects.security.forceLogout(); + await kibanaServer.importExport.unload( + 'x-pack/test/functional/fixtures/kbn_archiver/security/flstest/index_pattern' + ); }); }); } diff --git a/x-pack/test/functional/es_archives/security/flstest/kibana/data.json b/x-pack/test/functional/es_archives/security/flstest/kibana/data.json deleted file mode 100644 index ad52bd61c2ea5..0000000000000 --- a/x-pack/test/functional/es_archives/security/flstest/kibana/data.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "type": "doc", - "value": { - "id": "index-pattern:845f1970-6853-11e9-a554-c17eedfbe970", - "index": ".kibana", - "source": { - "index-pattern" : { - "title" : "flstest", - "fields" : "[{\"name\":\"_id\",\"type\":\"string\",\"esTypes\":[\"_id\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"_index\",\"type\":\"string\",\"esTypes\":[\"_index\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"_score\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"searchable\":false,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"_source\",\"type\":\"_source\",\"esTypes\":[\"_source\"],\"count\":0,\"scripted\":false,\"searchable\":false,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"_type\",\"type\":\"string\",\"esTypes\":[\"_type\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"customer_name\",\"type\":\"string\",\"esTypes\":[\"text\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"customer_name.keyword\",\"type\":\"string\",\"esTypes\":[\"keyword\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true,\"subType\":{\"multi\":{\"parent\": \"customer_name\"}}},{\"name\":\"customer_region\",\"type\":\"string\",\"esTypes\":[\"text\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"customer_region.keyword\",\"type\":\"string\",\"esTypes\":[\"keyword\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true,\"subType\":{\"multi\":{\"parent\": \"customer_region\"}}},{\"name\":\"customer_ssn\",\"type\":\"string\",\"esTypes\":[\"text\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"customer_ssn.keyword\",\"type\":\"string\",\"esTypes\":[\"keyword\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true,\"subType\":{\"multi\":{\"parent\": \"customer_ssn\"}}}]" - }, - "type" : "index-pattern", - "references" : [ ], - "migrationVersion" : { - "index-pattern" : "6.5.0" - }, - "updated_at" : "2019-04-26T18:45:54.517Z" - } - } -} diff --git a/x-pack/test/functional/es_archives/security/flstest/kibana/mappings.json b/x-pack/test/functional/es_archives/security/flstest/kibana/mappings.json deleted file mode 100644 index ca97d0505f5b1..0000000000000 --- a/x-pack/test/functional/es_archives/security/flstest/kibana/mappings.json +++ /dev/null @@ -1,413 +0,0 @@ -{ - "type": "index", - "value": { - "aliases": { - ".kibana": {} - }, - "index": ".kibana_1", - "mappings": { - "dynamic": "strict", - "properties": { - "canvas-workpad": { - "dynamic": "false", - "properties": { - "@created": { - "type": "date" - }, - "@timestamp": { - "type": "date" - }, - "id": { - "index": false, - "type": "text" - }, - "name": { - "fields": { - "keyword": { - "type": "keyword" - } - }, - "type": "text" - } - } - }, - "config": { - "dynamic": "true", - "properties": { - "buildNum": { - "type": "keyword" - }, - "defaultIndex": { - "fields": { - "keyword": { - "ignore_above": 256, - "type": "keyword" - } - }, - "type": "text" - } - } - }, - "dashboard": { - "properties": { - "description": { - "type": "text" - }, - "hits": { - "type": "integer" - }, - "kibanaSavedObjectMeta": { - "properties": { - "searchSourceJSON": { - "type": "text" - } - } - }, - "optionsJSON": { - "type": "text" - }, - "panelsJSON": { - "type": "text" - }, - "refreshInterval": { - "properties": { - "display": { - "type": "keyword" - }, - "pause": { - "type": "boolean" - }, - "section": { - "type": "integer" - }, - "value": { - "type": "integer" - } - } - }, - "timeFrom": { - "type": "keyword" - }, - "timeRestore": { - "type": "boolean" - }, - "timeTo": { - "type": "keyword" - }, - "title": { - "type": "text" - }, - "uiStateJSON": { - "type": "text" - }, - "version": { - "type": "integer" - } - } - }, - "graph-workspace": { - "properties": { - "description": { - "type": "text" - }, - "kibanaSavedObjectMeta": { - "properties": { - "searchSourceJSON": { - "type": "text" - } - } - }, - "numLinks": { - "type": "integer" - }, - "numVertices": { - "type": "integer" - }, - "title": { - "type": "text" - }, - "version": { - "type": "integer" - }, - "wsState": { - "type": "text" - } - } - }, - "index-pattern": { - "properties": { - "fieldFormatMap": { - "type": "text" - }, - "fields": { - "type": "text" - }, - "intervalName": { - "type": "keyword" - }, - "notExpandable": { - "type": "boolean" - }, - "sourceFilters": { - "type": "text" - }, - "timeFieldName": { - "type": "keyword" - }, - "title": { - "type": "text" - }, - "type": { - "type": "keyword" - }, - "typeMeta": { - "type": "keyword" - } - } - }, - "kql-telemetry": { - "properties": { - "optInCount": { - "type": "long" - }, - "optOutCount": { - "type": "long" - } - } - }, - "map": { - "properties": { - "bounds": { - "dynamic": false, - "properties": {} - }, - "description": { - "type": "text" - }, - "layerListJSON": { - "type": "text" - }, - "mapStateJSON": { - "type": "text" - }, - "title": { - "type": "text" - }, - "uiStateJSON": { - "type": "text" - }, - "version": { - "type": "integer" - } - } - }, - "migrationVersion": { - "dynamic": "true", - "properties": { - "index-pattern": { - "fields": { - "keyword": { - "ignore_above": 256, - "type": "keyword" - } - }, - "type": "text" - } - } - }, - "namespace": { - "type": "keyword" - }, - "references": { - "type": "nested", - "properties": { - "name": { - "type": "keyword" - }, - "type": { - "type": "keyword" - }, - "id": { - "type": "keyword" - } - } - }, - "search": { - "properties": { - "columns": { - "type": "keyword" - }, - "description": { - "type": "text" - }, - "hits": { - "type": "integer" - }, - "kibanaSavedObjectMeta": { - "properties": { - "searchSourceJSON": { - "type": "text" - } - } - }, - "sort": { - "type": "keyword" - }, - "title": { - "type": "text" - }, - "version": { - "type": "integer" - } - } - }, - "server": { - "properties": { - "uuid": { - "type": "keyword" - } - } - }, - "space": { - "properties": { - "_reserved": { - "type": "boolean" - }, - "color": { - "type": "keyword" - }, - "description": { - "type": "text" - }, - "initials": { - "type": "keyword" - }, - "disabledFeatures": { - "type": "keyword" - }, - "name": { - "fields": { - "keyword": { - "ignore_above": 2048, - "type": "keyword" - } - }, - "type": "text" - } - } - }, - "telemetry": { - "properties": { - "enabled": { - "type": "boolean" - } - } - }, - "timelion-sheet": { - "properties": { - "description": { - "type": "text" - }, - "hits": { - "type": "integer" - }, - "kibanaSavedObjectMeta": { - "properties": { - "searchSourceJSON": { - "type": "text" - } - } - }, - "timelion_chart_height": { - "type": "integer" - }, - "timelion_columns": { - "type": "integer" - }, - "timelion_interval": { - "type": "keyword" - }, - "timelion_other_interval": { - "type": "keyword" - }, - "timelion_rows": { - "type": "integer" - }, - "timelion_sheet": { - "type": "text" - }, - "title": { - "type": "text" - }, - "version": { - "type": "integer" - } - } - }, - "type": { - "type": "keyword" - }, - "updated_at": { - "type": "date" - }, - "url": { - "properties": { - "accessCount": { - "type": "long" - }, - "accessDate": { - "type": "date" - }, - "createDate": { - "type": "date" - }, - "url": { - "fields": { - "keyword": { - "ignore_above": 2048, - "type": "keyword" - } - }, - "type": "text" - } - } - }, - "visualization": { - "properties": { - "description": { - "type": "text" - }, - "kibanaSavedObjectMeta": { - "properties": { - "searchSourceJSON": { - "type": "text" - } - } - }, - "savedSearchId": { - "type": "keyword" - }, - "title": { - "type": "text" - }, - "uiStateJSON": { - "type": "text" - }, - "version": { - "type": "integer" - }, - "visState": { - "type": "text" - } - } - } - } - }, - "settings": { - "index": { - "number_of_replicas": "0", - "number_of_shards": "1" - } - } - } -} diff --git a/x-pack/test/functional/fixtures/kbn_archiver/security/flstest/index_pattern.json b/x-pack/test/functional/fixtures/kbn_archiver/security/flstest/index_pattern.json new file mode 100644 index 0000000000000..4715eec9ea7cc --- /dev/null +++ b/x-pack/test/functional/fixtures/kbn_archiver/security/flstest/index_pattern.json @@ -0,0 +1,15 @@ +{ + "attributes": { + "fields": "[{\"name\":\"_id\",\"type\":\"string\",\"esTypes\":[\"_id\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"_index\",\"type\":\"string\",\"esTypes\":[\"_index\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"_score\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"searchable\":false,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"_source\",\"type\":\"_source\",\"esTypes\":[\"_source\"],\"count\":0,\"scripted\":false,\"searchable\":false,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"_type\",\"type\":\"string\",\"esTypes\":[\"_type\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"customer_name\",\"type\":\"string\",\"esTypes\":[\"text\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"customer_name.keyword\",\"type\":\"string\",\"esTypes\":[\"keyword\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true,\"subType\":{\"multi\":{\"parent\":\"customer_name\"}}},{\"name\":\"customer_region\",\"type\":\"string\",\"esTypes\":[\"text\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"customer_region.keyword\",\"type\":\"string\",\"esTypes\":[\"keyword\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true,\"subType\":{\"multi\":{\"parent\":\"customer_region\"}}},{\"name\":\"customer_ssn\",\"type\":\"string\",\"esTypes\":[\"text\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"customer_ssn.keyword\",\"type\":\"string\",\"esTypes\":[\"keyword\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true,\"subType\":{\"multi\":{\"parent\":\"customer_ssn\"}}}]", + "title": "flstest" + }, + "coreMigrationVersion": "7.15.0", + "id": "845f1970-6853-11e9-a554-c17eedfbe970", + "migrationVersion": { + "index-pattern": "7.11.0" + }, + "references": [], + "type": "index-pattern", + "updated_at": "2019-04-26T18:45:54.517Z", + "version": "WzEsMl0=" +} \ No newline at end of file From b072a5d32bc9259d0d1e4a6bcc96a1f4faf51589 Mon Sep 17 00:00:00 2001 From: Matthew Kime Date: Fri, 30 Jul 2021 08:58:23 -0500 Subject: [PATCH 05/40] [index pattern managment] remove IFieldType references (#107239) * remove IFieldType references * typescript fixes * update snapshot --- .../components/step_time_field/step_time_field.test.tsx | 4 ++-- .../lib/extract_time_fields.test.ts | 5 +++-- .../create_index_pattern_wizard/lib/extract_time_fields.ts | 4 ++-- .../components/table/__snapshots__/table.test.tsx.snap | 3 --- .../indexed_fields_table/components/table/table.test.tsx | 3 --- .../edit_index_pattern/indexed_fields_table/types.ts | 7 +++++-- .../public/components/field_editor/field_editor.tsx | 5 ++--- 7 files changed, 14 insertions(+), 17 deletions(-) diff --git a/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/step_time_field.test.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/step_time_field.test.tsx index ac10957d68a47..fabc6ec69b0ee 100644 --- a/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/step_time_field.test.tsx +++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/step_time_field.test.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { IndexPatternCreationConfig } from '../../../../../../../plugins/index_pattern_management/public'; -import { IFieldType } from '../../../../../../../plugins/data/public'; +import { IndexPatternField } from '../../../../../../../plugins/data/public'; import { mockManagementPlugin } from '../../../../mocks'; import { createComponentWithContext } from '../../../test_utils'; @@ -20,7 +20,7 @@ jest.mock('./components/advanced_options', () => ({ AdvancedOptions: 'AdvancedOp jest.mock('./components/action_buttons', () => ({ ActionButtons: 'ActionButtons' })); jest.mock('./../../lib', () => ({ extractTimeFields: jest.requireActual('./../../lib').extractTimeFields, - ensureMinimumTime: async (fields: IFieldType) => Promise.resolve(fields), + ensureMinimumTime: async (fields: IndexPatternField) => Promise.resolve(fields), })); const mockIndexPatternCreationType = new IndexPatternCreationConfig({ diff --git a/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/lib/extract_time_fields.test.ts b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/lib/extract_time_fields.test.ts index 90070c37995af..071c21d229524 100644 --- a/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/lib/extract_time_fields.test.ts +++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/lib/extract_time_fields.test.ts @@ -7,13 +7,14 @@ */ import { extractTimeFields } from './extract_time_fields'; +import type { IndexPatternField } from 'src/plugins/data/public'; describe('extractTimeFields', () => { it('should handle no date fields', () => { const fields = [ { type: 'text', name: 'name' }, { type: 'text', name: 'name' }, - ]; + ] as IndexPatternField[]; expect(extractTimeFields(fields)).toEqual([ { display: `The indices which match this index pattern don't contain any time fields.` }, @@ -21,7 +22,7 @@ describe('extractTimeFields', () => { }); it('should add extra options', () => { - const fields = [{ type: 'date', name: '@timestamp' }]; + const fields = [{ type: 'date', name: '@timestamp' }] as IndexPatternField[]; expect(extractTimeFields(fields)).toEqual([ { display: '@timestamp', fieldName: '@timestamp' }, diff --git a/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/lib/extract_time_fields.ts b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/lib/extract_time_fields.ts index 1d7e25638412e..e2af9339e57a3 100644 --- a/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/lib/extract_time_fields.ts +++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/lib/extract_time_fields.ts @@ -7,9 +7,9 @@ */ import { i18n } from '@kbn/i18n'; -import { IFieldType } from '../../../../../../plugins/data/public'; +import { IndexPatternField } from '../../../../../../plugins/data/public'; -export function extractTimeFields(fields: IFieldType[]) { +export function extractTimeFields(fields: IndexPatternField[]) { const dateFields = fields.filter((field) => field.type === 'date'); const label = i18n.translate( 'indexPatternManagement.createIndexPattern.stepTime.noTimeFieldsLabel', diff --git a/src/plugins/index_pattern_management/public/components/edit_index_pattern/indexed_fields_table/components/table/__snapshots__/table.test.tsx.snap b/src/plugins/index_pattern_management/public/components/edit_index_pattern/indexed_fields_table/components/table/__snapshots__/table.test.tsx.snap index fc436faa6c755..95acb14282ba5 100644 --- a/src/plugins/index_pattern_management/public/components/edit_index_pattern/indexed_fields_table/components/table/__snapshots__/table.test.tsx.snap +++ b/src/plugins/index_pattern_management/public/components/edit_index_pattern/indexed_fields_table/components/table/__snapshots__/table.test.tsx.snap @@ -138,7 +138,6 @@ exports[`Table should render normally 1`] = ` Object { "displayName": "Elastic", "excluded": false, - "format": "", "hasRuntime": false, "info": Array [], "isMapped": true, @@ -150,7 +149,6 @@ exports[`Table should render normally 1`] = ` Object { "displayName": "timestamp", "excluded": false, - "format": "YYYY-MM-DD", "hasRuntime": false, "info": Array [], "isMapped": true, @@ -161,7 +159,6 @@ exports[`Table should render normally 1`] = ` Object { "displayName": "conflictingField", "excluded": false, - "format": "", "hasRuntime": false, "info": Array [], "isMapped": true, diff --git a/src/plugins/index_pattern_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.test.tsx b/src/plugins/index_pattern_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.test.tsx index 163152b52e80b..5fb2ba46882cc 100644 --- a/src/plugins/index_pattern_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.test.tsx +++ b/src/plugins/index_pattern_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.test.tsx @@ -25,7 +25,6 @@ const items: IndexedFieldItem[] = [ type: 'name', kbnType: 'string', excluded: false, - format: '', isMapped: true, hasRuntime: false, }, @@ -36,7 +35,6 @@ const items: IndexedFieldItem[] = [ kbnType: 'date', info: [], excluded: false, - format: 'YYYY-MM-DD', isMapped: true, hasRuntime: false, }, @@ -47,7 +45,6 @@ const items: IndexedFieldItem[] = [ kbnType: 'conflict', info: [], excluded: false, - format: '', isMapped: true, hasRuntime: false, }, diff --git a/src/plugins/index_pattern_management/public/components/edit_index_pattern/indexed_fields_table/types.ts b/src/plugins/index_pattern_management/public/components/edit_index_pattern/indexed_fields_table/types.ts index 4454651eff30a..662134a003eb6 100644 --- a/src/plugins/index_pattern_management/public/components/edit_index_pattern/indexed_fields_table/types.ts +++ b/src/plugins/index_pattern_management/public/components/edit_index_pattern/indexed_fields_table/types.ts @@ -6,9 +6,12 @@ * Side Public License, v 1. */ -import { IFieldType } from '../../../../../../plugins/data/public'; +import { IndexPatternFieldBase } from '@kbn/es-query'; +import { IndexPatternField } from '../../../../../../plugins/data/public'; -export interface IndexedFieldItem extends IFieldType { +type IndexedFieldItemBase = Partial & IndexPatternFieldBase; + +export interface IndexedFieldItem extends IndexedFieldItemBase { info: string[]; excluded: boolean; kbnType: string; diff --git a/src/plugins/index_pattern_management/public/components/field_editor/field_editor.tsx b/src/plugins/index_pattern_management/public/components/field_editor/field_editor.tsx index fc55e8a36c99e..b5c0186cd998c 100644 --- a/src/plugins/index_pattern_management/public/components/field_editor/field_editor.tsx +++ b/src/plugins/index_pattern_management/public/components/field_editor/field_editor.tsx @@ -39,10 +39,9 @@ import { getSupportedScriptingLanguages, } from '../../scripting_languages'; import { - IndexPatternField, FieldFormatInstanceType, IndexPattern, - IFieldType, + IndexPatternField, KBN_FIELD_TYPES, ES_FIELD_TYPES, DataPublicPluginStart, @@ -145,7 +144,7 @@ export class FieldEditor extends PureComponent f.name), + existingFieldNames: indexPattern.fields.getAll().map((f: IndexPatternField) => f.name), fieldFormatId: undefined, fieldFormatParams: {}, showScriptingHelp: false, From 121bccb4d3eaa8e1cd17b2a75b3afcd765b86cc8 Mon Sep 17 00:00:00 2001 From: Nathan L Smith Date: Fri, 30 Jul 2021 09:12:57 -0500 Subject: [PATCH 06/40] Add owner to APM and Observability plugin kibana.json (#107201) As described in #103016. --- src/plugins/apm_oss/kibana.json | 8 +++++--- x-pack/plugins/apm/kibana.json | 11 ++++++----- x-pack/plugins/observability/kibana.json | 23 +++++++---------------- 3 files changed, 18 insertions(+), 24 deletions(-) diff --git a/src/plugins/apm_oss/kibana.json b/src/plugins/apm_oss/kibana.json index 46fecb09c7fb6..4907be3580be8 100644 --- a/src/plugins/apm_oss/kibana.json +++ b/src/plugins/apm_oss/kibana.json @@ -1,11 +1,13 @@ { "id": "apmOss", + "owner": { + "name": "APM UI", + "gitHubTeam": "apm-ui" + }, "version": "8.0.0", "server": true, "kibanaVersion": "kibana", - "configPath": [ - "apm_oss" - ], + "configPath": ["apm_oss"], "ui": true, "requiredPlugins": ["home"] } diff --git a/x-pack/plugins/apm/kibana.json b/x-pack/plugins/apm/kibana.json index 9f661f13a491e..3c66515060d93 100644 --- a/x-pack/plugins/apm/kibana.json +++ b/x-pack/plugins/apm/kibana.json @@ -1,5 +1,9 @@ { "id": "apm", + "owner": { + "name": "APM UI", + "gitHubTeam": "apm-ui" + }, "version": "8.0.0", "kibanaVersion": "kibana", "requiredPlugins": [ @@ -28,10 +32,7 @@ ], "server": true, "ui": true, - "configPath": [ - "xpack", - "apm" - ], + "configPath": ["xpack", "apm"], "requiredBundles": [ "fleet", "home", @@ -41,4 +42,4 @@ "ml", "observability" ] -} \ No newline at end of file +} diff --git a/x-pack/plugins/observability/kibana.json b/x-pack/plugins/observability/kibana.json index f4b3754e4253e..b794f91231505 100644 --- a/x-pack/plugins/observability/kibana.json +++ b/x-pack/plugins/observability/kibana.json @@ -1,18 +1,13 @@ { "id": "observability", + "owner": { + "name": "Observability UI", + "gitHubTeam": "observability-ui" + }, "version": "8.0.0", "kibanaVersion": "kibana", - "configPath": [ - "xpack", - "observability" - ], - "optionalPlugins": [ - "home", - "discover", - "lens", - "licensing", - "usageCollection" - ], + "configPath": ["xpack", "observability"], + "optionalPlugins": ["home", "discover", "lens", "licensing", "usageCollection"], "requiredPlugins": [ "alerting", "cases", @@ -24,9 +19,5 @@ ], "ui": true, "server": true, - "requiredBundles": [ - "data", - "kibanaReact", - "kibanaUtils" - ] + "requiredBundles": ["data", "kibanaReact", "kibanaUtils"] } From faed2f6fe10d74273f9ff3a023fabd1c9fee849d Mon Sep 17 00:00:00 2001 From: Melissa Alvarez Date: Fri, 30 Jul 2021 11:04:46 -0400 Subject: [PATCH 07/40] [ML] Anomaly Detection: ability to clear warning notification from jobs list - improvements (#106879) * add isClearable function for checking notifications index * clear messages from multiple indices when messages stored in multiple indices * only return clearable indices. update disable clear button check * add unit test --- .../ml/common/constants/index_patterns.ts | 1 - .../job_details/job_messages_pane.tsx | 12 +++-- .../services/ml_api_service/jobs.ts | 6 +-- .../job_audit_messages/is_clearable.test.ts | 35 +++++++++++++ .../job_audit_messages.d.ts | 10 +++- .../job_audit_messages/job_audit_messages.js | 52 ++++++++++++------- .../ml/server/routes/job_audit_messages.ts | 4 +- .../schemas/job_audit_messages_schema.ts | 1 + 8 files changed, 91 insertions(+), 30 deletions(-) create mode 100644 x-pack/plugins/ml/server/models/job_audit_messages/is_clearable.test.ts diff --git a/x-pack/plugins/ml/common/constants/index_patterns.ts b/x-pack/plugins/ml/common/constants/index_patterns.ts index cec692217546d..d7d6c343e282b 100644 --- a/x-pack/plugins/ml/common/constants/index_patterns.ts +++ b/x-pack/plugins/ml/common/constants/index_patterns.ts @@ -11,4 +11,3 @@ export const ML_ANNOTATIONS_INDEX_PATTERN = '.ml-annotations-6'; export const ML_RESULTS_INDEX_PATTERN = '.ml-anomalies-*'; export const ML_NOTIFICATION_INDEX_PATTERN = '.ml-notifications*'; -export const ML_NOTIFICATION_INDEX_02 = '.ml-notifications-000002'; diff --git a/x-pack/plugins/ml/public/application/jobs/jobs_list/components/job_details/job_messages_pane.tsx b/x-pack/plugins/ml/public/application/jobs/jobs_list/components/job_details/job_messages_pane.tsx index 9a4d6036428f8..92662f409d0f3 100644 --- a/x-pack/plugins/ml/public/application/jobs/jobs_list/components/job_details/job_messages_pane.tsx +++ b/x-pack/plugins/ml/public/application/jobs/jobs_list/components/job_details/job_messages_pane.tsx @@ -30,6 +30,7 @@ export const JobMessagesPane: FC = React.memo( const canCreateJob = checkPermission('canCreateJob'); const [messages, setMessages] = useState([]); + const [notificationIndices, setNotificationIndices] = useState([]); const [isLoading, setIsLoading] = useState(false); const [errorMessage, setErrorMessage] = useState(''); const [isClearing, setIsClearing] = useState(false); @@ -42,7 +43,10 @@ export const JobMessagesPane: FC = React.memo( const fetchMessages = async () => { setIsLoading(true); try { - setMessages(await ml.jobs.jobAuditMessages({ jobId, start, end })); + const messagesResp = await ml.jobs.jobAuditMessages({ jobId, start, end }); + + setMessages(messagesResp.messages); + setNotificationIndices(messagesResp.notificationIndices); setIsLoading(false); } catch (error) { setIsLoading(false); @@ -63,7 +67,7 @@ export const JobMessagesPane: FC = React.memo( const clearMessages = useCallback(async () => { setIsClearing(true); try { - await clearJobAuditMessages(jobId); + await clearJobAuditMessages(jobId, notificationIndices); setIsClearing(false); if (typeof refreshJobList === 'function') { refreshJobList(); @@ -77,13 +81,13 @@ export const JobMessagesPane: FC = React.memo( }) ); } - }, [jobId]); + }, [jobId, JSON.stringify(notificationIndices)]); useEffect(() => { fetchMessages(); }, []); - const disabled = messages.length > 0 && messages[0].clearable === false; + const disabled = notificationIndices.length === 0; const clearButton = ( ({ ...(start !== undefined && end !== undefined ? { start, end } : {}), }; - return httpService.http({ + return httpService.http<{ messages: JobMessage[]; notificationIndices: string[] }>({ path: `${ML_BASE_PATH}/job_audit_messages/messages${jobIdString}`, method: 'GET', query, }); }, - clearJobAuditMessages(jobId: string) { - const body = JSON.stringify({ jobId }); + clearJobAuditMessages(jobId: string, notificationIndices: string[]) { + const body = JSON.stringify({ jobId, notificationIndices }); return httpService.http<{ success: boolean; latest_cleared: number }>({ path: `${ML_BASE_PATH}/job_audit_messages/clear_messages`, method: 'PUT', diff --git a/x-pack/plugins/ml/server/models/job_audit_messages/is_clearable.test.ts b/x-pack/plugins/ml/server/models/job_audit_messages/is_clearable.test.ts new file mode 100644 index 0000000000000..8b84bfeb888b2 --- /dev/null +++ b/x-pack/plugins/ml/server/models/job_audit_messages/is_clearable.test.ts @@ -0,0 +1,35 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { isClearable } from './job_audit_messages'; + +const supportedNotificationIndices = [ + '.ml-notifications-000002', + '.ml-notifications-000003', + '.ml-notifications-000004', +]; + +const unsupportedIndices = ['.ml-notifications-000001', 'index-does-not-exist']; + +describe('jobAuditMessages - isClearable', () => { + it('should return true for indices ending in a six digit number with the last number >= 2', () => { + supportedNotificationIndices.forEach((index) => { + expect(isClearable(index)).toEqual(true); + }); + }); + + it('should return false for indices not ending in a six digit number with the last number >= 2', () => { + unsupportedIndices.forEach((index) => { + expect(isClearable(index)).toEqual(false); + }); + }); + + it('should return false for empty string or missing argument', () => { + expect(isClearable('')).toEqual(false); + expect(isClearable()).toEqual(false); + }); +}); diff --git a/x-pack/plugins/ml/server/models/job_audit_messages/job_audit_messages.d.ts b/x-pack/plugins/ml/server/models/job_audit_messages/job_audit_messages.d.ts index 60ea866978f1a..d3748163957db 100644 --- a/x-pack/plugins/ml/server/models/job_audit_messages/job_audit_messages.d.ts +++ b/x-pack/plugins/ml/server/models/job_audit_messages/job_audit_messages.d.ts @@ -8,6 +8,9 @@ import { IScopedClusterClient } from 'kibana/server'; import type { MlClient } from '../../lib/ml_client'; import type { JobSavedObjectService } from '../../saved_objects'; +import { JobMessage } from '../../../common/types/audit_message'; + +export function isClearable(index?: string): boolean; export function jobAuditMessagesProvider( client: IScopedClusterClient, @@ -21,7 +24,10 @@ export function jobAuditMessagesProvider( start?: string; end?: string; } - ) => any; + ) => { messages: JobMessage[]; notificationIndices: string[] }; getAuditMessagesSummary: (jobIds?: string[]) => any; - clearJobAuditMessages: (jobId: string) => any; + clearJobAuditMessages: ( + jobId: string, + notificationIndices: string[] + ) => { success: boolean; last_cleared: number }; }; diff --git a/x-pack/plugins/ml/server/models/job_audit_messages/job_audit_messages.js b/x-pack/plugins/ml/server/models/job_audit_messages/job_audit_messages.js index 137df3a6f3151..311df2ac418c0 100644 --- a/x-pack/plugins/ml/server/models/job_audit_messages/job_audit_messages.js +++ b/x-pack/plugins/ml/server/models/job_audit_messages/job_audit_messages.js @@ -5,10 +5,7 @@ * 2.0. */ -import { - ML_NOTIFICATION_INDEX_PATTERN, - ML_NOTIFICATION_INDEX_02, -} from '../../../common/constants/index_patterns'; +import { ML_NOTIFICATION_INDEX_PATTERN } from '../../../common/constants/index_patterns'; import { MESSAGE_LEVEL } from '../../../common/constants/message_levels'; import moment from 'moment'; @@ -39,6 +36,14 @@ const anomalyDetectorTypeFilter = { }, }; +export function isClearable(index) { + if (typeof index === 'string') { + const match = index.match(/\d{6}$/); + return match !== null && match.length && Number(match[match.length - 1]) >= 2; + } + return false; +} + export function jobAuditMessagesProvider({ asInternalUser }, mlClient) { // search for audit messages, // jobId is optional. without it, all jobs will be listed. @@ -126,18 +131,25 @@ export function jobAuditMessagesProvider({ asInternalUser }, mlClient) { }); let messages = []; + const notificationIndices = []; + if (body.hits.total.value > 0) { - messages = body.hits.hits.map((hit) => ({ - clearable: hit._index === ML_NOTIFICATION_INDEX_02, - ...hit._source, - })); + let notificationIndex; + body.hits.hits.forEach((hit) => { + if (notificationIndex !== hit._index && isClearable(hit._index)) { + notificationIndices.push(hit._index); + notificationIndex = hit._index; + } + + messages.push(hit._source); + }); } messages = await jobSavedObjectService.filterJobsForSpace( 'anomaly-detector', messages, 'job_id' ); - return messages; + return { messages, notificationIndices }; } // search highest, most recent audit messages for all jobs for the last 24hrs. @@ -281,7 +293,7 @@ export function jobAuditMessagesProvider({ asInternalUser }, mlClient) { const clearedTime = new Date().getTime(); // Sets 'cleared' to true for messages in the last 24hrs and index new message for clear action - async function clearJobAuditMessages(jobId) { + async function clearJobAuditMessages(jobId, notificationIndices) { const newClearedMessage = { job_id: jobId, job_type: 'anomaly_detection', @@ -309,9 +321,9 @@ export function jobAuditMessagesProvider({ asInternalUser }, mlClient) { }, }; - await Promise.all([ + const promises = [ asInternalUser.updateByQuery({ - index: ML_NOTIFICATION_INDEX_02, + index: notificationIndices.join(','), ignore_unavailable: true, refresh: false, conflicts: 'proceed', @@ -323,12 +335,16 @@ export function jobAuditMessagesProvider({ asInternalUser }, mlClient) { }, }, }), - asInternalUser.index({ - index: ML_NOTIFICATION_INDEX_02, - body: newClearedMessage, - refresh: 'wait_for', - }), - ]); + ...notificationIndices.map((index) => + asInternalUser.index({ + index, + body: newClearedMessage, + refresh: 'wait_for', + }) + ), + ]; + + await Promise.all(promises); return { success: true, last_cleared: clearedTime }; } diff --git a/x-pack/plugins/ml/server/routes/job_audit_messages.ts b/x-pack/plugins/ml/server/routes/job_audit_messages.ts index 1548427797e16..4dcaca573fc17 100644 --- a/x-pack/plugins/ml/server/routes/job_audit_messages.ts +++ b/x-pack/plugins/ml/server/routes/job_audit_messages.ts @@ -121,8 +121,8 @@ export function jobAuditMessagesRoutes({ router, routeGuard }: RouteInitializati async ({ client, mlClient, request, response, jobSavedObjectService }) => { try { const { clearJobAuditMessages } = jobAuditMessagesProvider(client, mlClient); - const { jobId } = request.body; - const resp = await clearJobAuditMessages(jobId); + const { jobId, notificationIndices } = request.body; + const resp = await clearJobAuditMessages(jobId, notificationIndices); return response.ok({ body: resp, diff --git a/x-pack/plugins/ml/server/routes/schemas/job_audit_messages_schema.ts b/x-pack/plugins/ml/server/routes/schemas/job_audit_messages_schema.ts index 525ac73fde120..aeff76f057fc6 100644 --- a/x-pack/plugins/ml/server/routes/schemas/job_audit_messages_schema.ts +++ b/x-pack/plugins/ml/server/routes/schemas/job_audit_messages_schema.ts @@ -20,4 +20,5 @@ export const jobAuditMessagesQuerySchema = schema.object({ export const clearJobAuditMessagesBodySchema = schema.object({ jobId: schema.string(), + notificationIndices: schema.arrayOf(schema.string()), }); From 9dcecaedc61a4962b1cc0ce84aa16694a2ace5d9 Mon Sep 17 00:00:00 2001 From: Melissa Alvarez Date: Fri, 30 Jul 2021 11:12:52 -0400 Subject: [PATCH 08/40] [ML] Data frame analytics: ensure results view loads correctly for job created in dev tools (#107024) * check analyzed_fields exists * update DataFrameAnalyticsConfig type to make analyzed_fields optional * updating accessing analyzed_fields for type update --- x-pack/plugins/ml/common/types/data_frame_analytics.ts | 6 +++--- .../exploration_page_wrapper/exploration_page_wrapper.tsx | 4 ++-- .../components/outlier_exploration/outlier_exploration.tsx | 4 ++-- .../ml/server/models/data_frame_analytics/validation.ts | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/x-pack/plugins/ml/common/types/data_frame_analytics.ts b/x-pack/plugins/ml/common/types/data_frame_analytics.ts index 3305eeaaf4794..ec2a244c75468 100644 --- a/x-pack/plugins/ml/common/types/data_frame_analytics.ts +++ b/x-pack/plugins/ml/common/types/data_frame_analytics.ts @@ -80,9 +80,9 @@ export interface DataFrameAnalyticsConfig { runtime_mappings?: RuntimeMappings; }; analysis: AnalysisConfig; - analyzed_fields: { - includes: string[]; - excludes: string[]; + analyzed_fields?: { + includes?: string[]; + excludes?: string[]; }; model_memory_limit: string; max_num_threads?: number; diff --git a/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/exploration_page_wrapper/exploration_page_wrapper.tsx b/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/exploration_page_wrapper/exploration_page_wrapper.tsx index 6c158f103aade..48477acfe7be8 100644 --- a/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/exploration_page_wrapper/exploration_page_wrapper.tsx +++ b/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/exploration_page_wrapper/exploration_page_wrapper.tsx @@ -116,8 +116,8 @@ export const ExplorationPageWrapper: FC = ({ const resultsField = jobConfig?.dest.results_field ?? ''; const scatterplotFieldOptions = useScatterplotFieldOptions( indexPattern, - jobConfig?.analyzed_fields.includes, - jobConfig?.analyzed_fields.excludes, + jobConfig?.analyzed_fields?.includes, + jobConfig?.analyzed_fields?.excludes, resultsField ); diff --git a/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/outlier_exploration/outlier_exploration.tsx b/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/outlier_exploration/outlier_exploration.tsx index 5f013c634e4c4..abd1870babfb9 100644 --- a/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/outlier_exploration/outlier_exploration.tsx +++ b/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/outlier_exploration/outlier_exploration.tsx @@ -92,8 +92,8 @@ export const OutlierExploration: FC = React.memo(({ jobId }) = const scatterplotFieldOptions = useScatterplotFieldOptions( indexPattern, - jobConfig?.analyzed_fields.includes, - jobConfig?.analyzed_fields.excludes, + jobConfig?.analyzed_fields?.includes, + jobConfig?.analyzed_fields?.excludes, resultsField ); diff --git a/x-pack/plugins/ml/server/models/data_frame_analytics/validation.ts b/x-pack/plugins/ml/server/models/data_frame_analytics/validation.ts index 216a4379c7c89..b39debbe664d3 100644 --- a/x-pack/plugins/ml/server/models/data_frame_analytics/validation.ts +++ b/x-pack/plugins/ml/server/models/data_frame_analytics/validation.ts @@ -448,7 +448,7 @@ export async function validateAnalyticsJob( ) { const messages = await getValidationCheckMessages( client.asCurrentUser, - job.analyzed_fields.includes, + job?.analyzed_fields?.includes || [], job.analysis, job.source ); From 5294f1ca177fe15bde40e643eb08d0e0730ad983 Mon Sep 17 00:00:00 2001 From: Mikhail Shustov Date: Fri, 30 Jul 2021 18:15:50 +0300 Subject: [PATCH 09/40] remove elasticsearch package imports from reporting (#107126) * remove elasticsearch package imports from reporting * remove dead code --- .../generate_csv/generate_csv.ts | 10 ++++----- .../reporting/server/routes/generation.ts | 21 ------------------- 2 files changed, 5 insertions(+), 26 deletions(-) diff --git a/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts b/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts index 254bc0ae21f6c..a38e0d58abf89 100644 --- a/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts +++ b/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts @@ -6,7 +6,7 @@ */ import { i18n } from '@kbn/i18n'; -import { SearchResponse } from 'elasticsearch'; +import type { estypes } from '@elastic/elasticsearch'; import { IScopedClusterClient, IUiSettingsClient } from 'src/core/server'; import { IScopedSearchClient } from 'src/plugins/data/server'; import { Datatable } from 'src/plugins/expressions/server'; @@ -93,7 +93,7 @@ export class CsvGenerator { }; const results = ( await this.clients.data.search(searchParams, { strategy: ES_SEARCH_STRATEGY }).toPromise() - ).rawResponse as SearchResponse; + ).rawResponse as estypes.SearchResponse; return results; } @@ -107,7 +107,7 @@ export class CsvGenerator { scroll_id: scrollId, }, }) - ).body as SearchResponse; + ).body; return results; } @@ -321,13 +321,13 @@ export class CsvGenerator { if (this.cancellationToken.isCancelled()) { break; } - let results: SearchResponse | undefined; + let results: estypes.SearchResponse | undefined; if (scrollId == null) { // open a scroll cursor in Elasticsearch results = await this.scan(index, searchSource, scrollSettings); scrollId = results?._scroll_id; if (results.hits?.total != null) { - totalRecords = results.hits.total; + totalRecords = results.hits.total as number; this.logger.debug(`Total search results: ${totalRecords}`); } } else { diff --git a/x-pack/plugins/reporting/server/routes/generation.ts b/x-pack/plugins/reporting/server/routes/generation.ts index 5c9fd25b76c39..ce6d1a2f2641f 100644 --- a/x-pack/plugins/reporting/server/routes/generation.ts +++ b/x-pack/plugins/reporting/server/routes/generation.ts @@ -6,7 +6,6 @@ */ import Boom from '@hapi/boom'; -import { errors as elasticsearchErrors } from 'elasticsearch'; import { kibanaResponseFactory } from 'src/core/server'; import { ReportingCore } from '../'; import { API_BASE_URL } from '../../common/constants'; @@ -16,8 +15,6 @@ import { registerGenerateFromJobParams } from './generate_from_jobparams'; import { registerGenerateCsvFromSavedObjectImmediate } from './csv_searchsource_immediate'; import { HandlerFunction } from './types'; -const esErrors = elasticsearchErrors as Record; - const getDownloadBaseUrl = (reporting: ReportingCore) => { const config = reporting.getConfig(); return config.kbnConfig.get('server', 'basePath') + `${API_BASE_URL}/jobs/download`; @@ -77,24 +74,6 @@ export function registerJobGenerationRoutes(reporting: ReportingCore, logger: Lo }); } - if (err instanceof esErrors['401']) { - return res.unauthorized({ - body: `Sorry, you aren't authenticated`, - }); - } - - if (err instanceof esErrors['403']) { - return res.forbidden({ - body: `Sorry, you are not authorized`, - }); - } - - if (err instanceof esErrors['404']) { - return res.notFound({ - body: err.message, - }); - } - // unknown error, can't convert to 4xx throw err; } From 03ca8c7d35be09ee042d27cfd95226981180c2a3 Mon Sep 17 00:00:00 2001 From: Tim Sullivan Date: Fri, 30 Jul 2021 08:17:29 -0700 Subject: [PATCH 10/40] [Reporting CSV] Fix scroll ID bug for deprecated csv export (#106892) * [Reporting CSV] Fix scroll ID bug for deprecated csv export * fix unit test Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../server/export_types/csv/execute_job.test.ts | 10 +++++----- .../export_types/csv/generate_csv/hit_iterator.ts | 10 ++++++---- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/x-pack/plugins/reporting/server/export_types/csv/execute_job.test.ts b/x-pack/plugins/reporting/server/export_types/csv/execute_job.test.ts index 32b5370371cce..0e8a7016b853b 100644 --- a/x-pack/plugins/reporting/server/export_types/csv/execute_job.test.ts +++ b/x-pack/plugins/reporting/server/export_types/csv/execute_job.test.ts @@ -175,7 +175,7 @@ describe('CSV Execute Job', function () { ); expect(mockEsClient.scroll).toHaveBeenCalledWith( - expect.objectContaining({ scroll_id: scrollId }) + expect.objectContaining({ body: { scroll_id: scrollId } }) ); }); @@ -261,7 +261,7 @@ describe('CSV Execute Job', function () { ); expect(mockEsClient.clearScroll).toHaveBeenCalledWith( - expect.objectContaining({ scroll_id: lastScrollId }) + expect.objectContaining({ body: { scroll_id: lastScrollId } }) ); }); @@ -295,7 +295,7 @@ describe('CSV Execute Job', function () { ); expect(mockEsClient.clearScroll).toHaveBeenCalledWith( - expect.objectContaining({ scroll_id: lastScrollId }) + expect.objectContaining({ body: { scroll_id: lastScrollId } }) ); }); }); @@ -753,7 +753,7 @@ describe('CSV Execute Job', function () { expect(mockEsClient.clearScroll).toHaveBeenCalledWith( expect.objectContaining({ - scroll_id: scrollId, + body: { scroll_id: scrollId }, }) ); }); @@ -1150,7 +1150,7 @@ describe('CSV Execute Job', function () { await runTask('job123', jobParams, cancellationToken); expect(mockEsClient.scroll).toHaveBeenCalledWith( - expect.objectContaining({ scroll: scrollDuration }) + expect.objectContaining({ body: { scroll: scrollDuration, scroll_id: 'scrollId' } }) ); }); }); diff --git a/x-pack/plugins/reporting/server/export_types/csv/generate_csv/hit_iterator.ts b/x-pack/plugins/reporting/server/export_types/csv/generate_csv/hit_iterator.ts index 72935e64dd6b5..9014e4f85b3b2 100644 --- a/x-pack/plugins/reporting/server/export_types/csv/generate_csv/hit_iterator.ts +++ b/x-pack/plugins/reporting/server/export_types/csv/generate_csv/hit_iterator.ts @@ -60,12 +60,14 @@ export function createHitIterator(logger: LevelLogger) { ); } - async function scroll(scrollId: string | undefined) { + async function scroll(scrollId: string) { logger.debug('executing scroll request'); return parseResponse( await elasticsearchClient.scroll({ - scroll_id: scrollId, - scroll: scrollSettings.duration, + body: { + scroll_id: scrollId, + scroll: scrollSettings.duration, + }, }) ); } @@ -74,7 +76,7 @@ export function createHitIterator(logger: LevelLogger) { logger.debug('executing clearScroll request'); try { await elasticsearchClient.clearScroll({ - scroll_id: scrollId, + body: { scroll_id: scrollId }, }); } catch (err) { // Do not throw the error, as the job can still be completed successfully From 0f05ecf2c087699cde525672f47b514aa962a09c Mon Sep 17 00:00:00 2001 From: Pete Hampton Date: Fri, 30 Jul 2021 16:28:29 +0100 Subject: [PATCH 11/40] Security Telemetry: Trusted applications (#106526) * [7.15] Setup project for trusted apps telemetry. * Create dependency on exception list client + query trusted applications. * Add trusted telemetry apps task. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../server/lib/telemetry/mocks.ts | 9 ++ .../server/lib/telemetry/sender.ts | 33 +++-- .../lib/telemetry/trusted_apps_task.test.ts | 109 ++++++++++++++++ .../server/lib/telemetry/trusted_apps_task.ts | 122 ++++++++++++++++++ .../security_solution/server/plugin.ts | 7 +- 5 files changed, 270 insertions(+), 10 deletions(-) create mode 100644 x-pack/plugins/security_solution/server/lib/telemetry/trusted_apps_task.test.ts create mode 100644 x-pack/plugins/security_solution/server/lib/telemetry/trusted_apps_task.ts diff --git a/x-pack/plugins/security_solution/server/lib/telemetry/mocks.ts b/x-pack/plugins/security_solution/server/lib/telemetry/mocks.ts index 6e98dcd59e3ec..642be5fc737f7 100644 --- a/x-pack/plugins/security_solution/server/lib/telemetry/mocks.ts +++ b/x-pack/plugins/security_solution/server/lib/telemetry/mocks.ts @@ -9,6 +9,7 @@ import { TelemetryEventsSender } from './sender'; import { TelemetryDiagTask } from './diagnostic_task'; import { TelemetryEndpointTask } from './endpoint_task'; +import { TelemetryTrustedAppsTask } from './trusted_apps_task'; import { PackagePolicy } from '../../../../fleet/common/types/models/package_policy'; /** @@ -24,6 +25,7 @@ export const createMockTelemetryEventsSender = ( fetchDiagnosticAlerts: jest.fn(), fetchEndpointMetrics: jest.fn(), fetchEndpointPolicyResponses: jest.fn(), + fetchTrustedApplications: jest.fn(), queueTelemetryEvents: jest.fn(), processEvents: jest.fn(), isTelemetryOptedIn: jest.fn().mockReturnValue(enableTelemtry ?? jest.fn()), @@ -65,3 +67,10 @@ export class MockTelemetryDiagnosticTask extends TelemetryDiagTask { export class MockTelemetryEndpointTask extends TelemetryEndpointTask { public runTask = jest.fn(); } + +/** + * Creates a mocked Telemetry trusted app Task + */ +export class MockTelemetryTrustedAppTask extends TelemetryTrustedAppsTask { + public runTask = jest.fn(); +} diff --git a/x-pack/plugins/security_solution/server/lib/telemetry/sender.ts b/x-pack/plugins/security_solution/server/lib/telemetry/sender.ts index bdd301d9fea1d..e8ef18ec798ae 100644 --- a/x-pack/plugins/security_solution/server/lib/telemetry/sender.ts +++ b/x-pack/plugins/security_solution/server/lib/telemetry/sender.ts @@ -19,8 +19,11 @@ import { } from '../../../../task_manager/server'; import { TelemetryDiagTask } from './diagnostic_task'; import { TelemetryEndpointTask } from './endpoint_task'; +import { TelemetryTrustedAppsTask } from './trusted_apps_task'; import { EndpointAppContextService } from '../../endpoint/endpoint_app_context_services'; import { AgentService, AgentPolicyServiceInterface } from '../../../../fleet/server'; +import { ExceptionListClient } from '../../../../lists/server'; +import { getTrustedAppsList } from '../../endpoint/routes/trusted_apps/service'; type BaseSearchTypes = string | number | boolean | object; export type SearchTypes = BaseSearchTypes | BaseSearchTypes[] | undefined; @@ -57,10 +60,12 @@ export class TelemetryEventsSender { private isOptedIn?: boolean = true; // Assume true until the first check private diagTask?: TelemetryDiagTask; private epMetricsTask?: TelemetryEndpointTask; + private trustedAppsTask?: TelemetryTrustedAppsTask; private agentService?: AgentService; private agentPolicyService?: AgentPolicyServiceInterface; private esClient?: ElasticsearchClient; - private savedObjectClient?: SavedObjectsClientContract; + private savedObjectsClient?: SavedObjectsClientContract; + private exceptionListClient?: ExceptionListClient; constructor(logger: Logger) { this.logger = logger.get('telemetry_events'); @@ -72,6 +77,7 @@ export class TelemetryEventsSender { if (taskManager) { this.diagTask = new TelemetryDiagTask(this.logger, taskManager, this); this.epMetricsTask = new TelemetryEndpointTask(this.logger, taskManager, this); + this.trustedAppsTask = new TelemetryTrustedAppsTask(this.logger, taskManager, this); } } @@ -79,18 +85,21 @@ export class TelemetryEventsSender { core?: CoreStart, telemetryStart?: TelemetryPluginStart, taskManager?: TaskManagerStartContract, - endpointContextService?: EndpointAppContextService + endpointContextService?: EndpointAppContextService, + exceptionListClient?: ExceptionListClient ) { this.telemetryStart = telemetryStart; this.esClient = core?.elasticsearch.client.asInternalUser; this.agentService = endpointContextService?.getAgentService(); this.agentPolicyService = endpointContextService?.getAgentPolicyService(); - this.savedObjectClient = (core?.savedObjects.createInternalRepository() as unknown) as SavedObjectsClientContract; + this.savedObjectsClient = (core?.savedObjects.createInternalRepository() as unknown) as SavedObjectsClientContract; + this.exceptionListClient = exceptionListClient; if (taskManager && this.diagTask && this.epMetricsTask) { this.logger.debug(`Starting diagnostic and endpoint telemetry tasks`); this.diagTask.start(taskManager); this.epMetricsTask.start(taskManager); + this.trustedAppsTask?.start(taskManager); } this.logger.debug(`Starting local task`); @@ -139,7 +148,7 @@ export class TelemetryEventsSender { } public async fetchEndpointMetrics(executeFrom: string, executeTo: string) { - if (this.esClient === undefined) { + if (this.esClient === undefined || this.esClient === null) { throw Error('could not fetch policy responses. es client is not available'); } @@ -186,7 +195,7 @@ export class TelemetryEventsSender { } public async fetchFleetAgents() { - if (this.esClient === undefined) { + if (this.esClient === undefined || this.esClient === null) { throw Error('could not fetch policy responses. es client is not available'); } @@ -199,15 +208,15 @@ export class TelemetryEventsSender { } public async fetchPolicyConfigs(id: string) { - if (this.savedObjectClient === undefined) { + if (this.savedObjectsClient === undefined || this.savedObjectsClient === null) { throw Error('could not fetch endpoint policy configs. saved object client is not available'); } - return this.agentPolicyService?.get(this.savedObjectClient, id); + return this.agentPolicyService?.get(this.savedObjectsClient, id); } public async fetchEndpointPolicyResponses(executeFrom: string, executeTo: string) { - if (this.esClient === undefined) { + if (this.esClient === undefined || this.esClient === null) { throw Error('could not fetch policy responses. es client is not available'); } @@ -253,6 +262,14 @@ export class TelemetryEventsSender { return this.esClient.search(query); } + public async fetchTrustedApplications() { + if (this?.exceptionListClient === undefined || this?.exceptionListClient === null) { + throw Error('could not fetch trusted applications. exception list client not available.'); + } + + return getTrustedAppsList(this.exceptionListClient, { page: 1, per_page: 10_000 }); + } + public queueTelemetryEvents(events: TelemetryEvent[]) { const qlength = this.queue.length; diff --git a/x-pack/plugins/security_solution/server/lib/telemetry/trusted_apps_task.test.ts b/x-pack/plugins/security_solution/server/lib/telemetry/trusted_apps_task.test.ts new file mode 100644 index 0000000000000..5cd67a9c9c215 --- /dev/null +++ b/x-pack/plugins/security_solution/server/lib/telemetry/trusted_apps_task.test.ts @@ -0,0 +1,109 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { loggingSystemMock } from 'src/core/server/mocks'; +import { TaskStatus } from '../../../../task_manager/server'; +import { taskManagerMock } from '../../../../task_manager/server/mocks'; + +import { TelemetryTrustedAppsTask, TelemetryTrustedAppsTaskConstants } from './trusted_apps_task'; +import { createMockTelemetryEventsSender, MockTelemetryTrustedAppTask } from './mocks'; + +describe('test trusted apps telemetry task functionality', () => { + let logger: ReturnType; + + beforeEach(() => { + logger = loggingSystemMock.createLogger(); + }); + + test('the trusted apps task can register', () => { + const telemetryTrustedAppsTask = new TelemetryTrustedAppsTask( + logger, + taskManagerMock.createSetup(), + createMockTelemetryEventsSender(true) + ); + + expect(telemetryTrustedAppsTask).toBeInstanceOf(TelemetryTrustedAppsTask); + }); + + test('the trusted apps task should be registered', () => { + const mockTaskManager = taskManagerMock.createSetup(); + new TelemetryTrustedAppsTask(logger, mockTaskManager, createMockTelemetryEventsSender(true)); + + expect(mockTaskManager.registerTaskDefinitions).toHaveBeenCalled(); + }); + + test('the trusted apps task should be scheduled', async () => { + const mockTaskManagerSetup = taskManagerMock.createSetup(); + const telemetryTrustedAppsTask = new TelemetryTrustedAppsTask( + logger, + mockTaskManagerSetup, + createMockTelemetryEventsSender(true) + ); + + const mockTaskManagerStart = taskManagerMock.createStart(); + await telemetryTrustedAppsTask.start(mockTaskManagerStart); + expect(mockTaskManagerStart.ensureScheduled).toHaveBeenCalled(); + }); + + test('the trusted apps task should not query elastic if telemetry is not opted in', async () => { + const mockSender = createMockTelemetryEventsSender(false); + const mockTaskManager = taskManagerMock.createSetup(); + new MockTelemetryTrustedAppTask(logger, mockTaskManager, mockSender); + + const mockTaskInstance = { + id: TelemetryTrustedAppsTaskConstants.TYPE, + runAt: new Date(), + attempts: 0, + ownerId: '', + status: TaskStatus.Running, + startedAt: new Date(), + scheduledAt: new Date(), + retryAt: new Date(), + params: {}, + state: {}, + taskType: TelemetryTrustedAppsTaskConstants.TYPE, + }; + const createTaskRunner = + mockTaskManager.registerTaskDefinitions.mock.calls[0][0][ + TelemetryTrustedAppsTaskConstants.TYPE + ].createTaskRunner; + const taskRunner = createTaskRunner({ taskInstance: mockTaskInstance }); + await taskRunner.run(); + expect(mockSender.fetchTrustedApplications).not.toHaveBeenCalled(); + }); + + test('the trusted apps task should query elastic if telemetry opted in', async () => { + const mockSender = createMockTelemetryEventsSender(true); + const mockTaskManager = taskManagerMock.createSetup(); + const telemetryTrustedAppsTask = new MockTelemetryTrustedAppTask( + logger, + mockTaskManager, + mockSender + ); + + const mockTaskInstance = { + id: TelemetryTrustedAppsTaskConstants.TYPE, + runAt: new Date(), + attempts: 0, + ownerId: '', + status: TaskStatus.Running, + startedAt: new Date(), + scheduledAt: new Date(), + retryAt: new Date(), + params: {}, + state: {}, + taskType: TelemetryTrustedAppsTaskConstants.TYPE, + }; + const createTaskRunner = + mockTaskManager.registerTaskDefinitions.mock.calls[0][0][ + TelemetryTrustedAppsTaskConstants.TYPE + ].createTaskRunner; + const taskRunner = createTaskRunner({ taskInstance: mockTaskInstance }); + await taskRunner.run(); + expect(telemetryTrustedAppsTask.runTask).toHaveBeenCalled(); + }); +}); diff --git a/x-pack/plugins/security_solution/server/lib/telemetry/trusted_apps_task.ts b/x-pack/plugins/security_solution/server/lib/telemetry/trusted_apps_task.ts new file mode 100644 index 0000000000000..f91f3e8428d04 --- /dev/null +++ b/x-pack/plugins/security_solution/server/lib/telemetry/trusted_apps_task.ts @@ -0,0 +1,122 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import moment from 'moment'; +import { Logger } from 'src/core/server'; +import { + ConcreteTaskInstance, + TaskManagerSetupContract, + TaskManagerStartContract, +} from '../../../../task_manager/server'; + +import { getPreviousEpMetaTaskTimestamp, batchTelemetryRecords } from './helpers'; +import { TelemetryEventsSender } from './sender'; + +export const TelemetryTrustedAppsTaskConstants = { + TIMEOUT: '1m', + TYPE: 'security:trusted-apps-telemetry', + INTERVAL: '24h', + VERSION: '1.0.0', +}; + +/** Telemetry Trusted Apps Task + * + * The Trusted Apps task is a daily batch job that collects and transmits non-sensitive + * trusted apps hashes + file paths for supported operating systems. This helps test + * efficacy of our protections. + */ +export class TelemetryTrustedAppsTask { + private readonly logger: Logger; + private readonly sender: TelemetryEventsSender; + + constructor( + logger: Logger, + taskManager: TaskManagerSetupContract, + sender: TelemetryEventsSender + ) { + this.logger = logger; + this.sender = sender; + + taskManager.registerTaskDefinitions({ + [TelemetryTrustedAppsTaskConstants.TYPE]: { + title: 'Security Solution Telemetry Endpoint Metrics and Info task', + timeout: TelemetryTrustedAppsTaskConstants.TIMEOUT, + createTaskRunner: ({ taskInstance }: { taskInstance: ConcreteTaskInstance }) => { + const { state } = taskInstance; + + return { + run: async () => { + const taskExecutionTime = moment().utc().toISOString(); + const lastExecutionTimestamp = getPreviousEpMetaTaskTimestamp( + taskExecutionTime, + taskInstance.state?.lastExecutionTimestamp + ); + + const hits = await this.runTask( + taskInstance.id, + lastExecutionTimestamp, + taskExecutionTime + ); + + return { + state: { + lastExecutionTimestamp: taskExecutionTime, + runs: (state.runs || 0) + 1, + hits, + }, + }; + }, + cancel: async () => {}, + }; + }, + }, + }); + } + + public start = async (taskManager: TaskManagerStartContract) => { + try { + await taskManager.ensureScheduled({ + id: this.getTaskId(), + taskType: TelemetryTrustedAppsTaskConstants.TYPE, + scope: ['securitySolution'], + schedule: { + interval: TelemetryTrustedAppsTaskConstants.INTERVAL, + }, + state: { runs: 0 }, + params: { version: TelemetryTrustedAppsTaskConstants.VERSION }, + }); + } catch (e) { + this.logger.error(`Error scheduling task, received ${e.message}`); + } + }; + + private getTaskId = (): string => { + return `${TelemetryTrustedAppsTaskConstants.TYPE}:${TelemetryTrustedAppsTaskConstants.VERSION}`; + }; + + public runTask = async (taskId: string, executeFrom: string, executeTo: string) => { + if (taskId !== this.getTaskId()) { + this.logger.debug(`Outdated task running: ${taskId}`); + return 0; + } + + const isOptedIn = await this.sender.isTelemetryOptedIn(); + if (!isOptedIn) { + this.logger.debug(`Telemetry is not opted-in.`); + return 0; + } + + const response = await this.sender.fetchTrustedApplications(); + this.logger.debug(`Trusted Apps: ${response}`); + + batchTelemetryRecords(response.data, 1_000).forEach((telemetryBatch) => + this.sender.sendOnDemand('lists-trustedapps', telemetryBatch) + ); + + return response.data.length; + }; +} diff --git a/x-pack/plugins/security_solution/server/plugin.ts b/x-pack/plugins/security_solution/server/plugin.ts index 2c0be2ac93321..a68280379fad3 100644 --- a/x-pack/plugins/security_solution/server/plugin.ts +++ b/x-pack/plugins/security_solution/server/plugin.ts @@ -391,6 +391,8 @@ export class Plugin implements IPlugin Date: Fri, 30 Jul 2021 12:02:51 -0400 Subject: [PATCH 12/40] [Fleet] Missing SO Installation migration (#107214) --- .../plugins/fleet/server/saved_objects/index.ts | 5 ++++- .../saved_objects/migrations/to_v7_10_0.ts | 10 ---------- .../saved_objects/migrations/to_v7_14_0.ts | 16 +++++++++++++++- .../apis/epm/install_by_upload.ts | 1 + 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/x-pack/plugins/fleet/server/saved_objects/index.ts b/x-pack/plugins/fleet/server/saved_objects/index.ts index 9f9f0dab6efac..54cb0846207a3 100644 --- a/x-pack/plugins/fleet/server/saved_objects/index.ts +++ b/x-pack/plugins/fleet/server/saved_objects/index.ts @@ -42,7 +42,7 @@ import { migrateSettingsToV7130, migrateOutputToV7130, } from './migrations/to_v7_13_0'; -import { migratePackagePolicyToV7140 } from './migrations/to_v7_14_0'; +import { migratePackagePolicyToV7140, migrateInstallationToV7140 } from './migrations/to_v7_14_0'; import { migratePackagePolicyToV7150 } from './migrations/to_v7_15_0'; /* @@ -320,6 +320,9 @@ const getSavedObjectTypes = ( install_source: { type: 'keyword' }, }, }, + migrations: { + '7.14.0': migrateInstallationToV7140, + }, }, [ASSETS_SAVED_OBJECT_TYPE]: { name: ASSETS_SAVED_OBJECT_TYPE, diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_10_0.ts b/x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_10_0.ts index 39e65efcf2ab1..64338690977c9 100644 --- a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_10_0.ts +++ b/x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_10_0.ts @@ -15,7 +15,6 @@ import type { EnrollmentAPIKey, Settings, AgentAction, - Installation, } from '../../types'; export const migrateAgentToV7100: SavedObjectMigrationFn< @@ -127,12 +126,3 @@ export const migrateAgentActionToV7100 = ( }, }); }; - -export const migrateInstallationToV7100: SavedObjectMigrationFn< - Exclude, - Installation -> = (installationDoc) => { - installationDoc.attributes.install_source = 'registry'; - - return installationDoc; -}; diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_14_0.ts b/x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_14_0.ts index 3255e15c6ceec..90c9ac5f8e89b 100644 --- a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_14_0.ts +++ b/x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_14_0.ts @@ -7,7 +7,7 @@ import type { SavedObjectMigrationFn } from 'kibana/server'; -import type { PackagePolicy } from '../../../common'; +import type { PackagePolicy, Installation } from '../../../common'; import { migrateEndpointPackagePolicyToV7140 } from './security_solution'; @@ -27,3 +27,17 @@ export const migratePackagePolicyToV7140: SavedObjectMigrationFn = ( + doc +) => { + // Fix a missing migration for user that used Fleet before 7.9 + if (!doc.attributes.install_source) { + doc.attributes.install_source = 'registry'; + } + if (!doc.attributes.install_version) { + doc.attributes.install_version = doc.attributes.version; + } + + return doc; +}; diff --git a/x-pack/test/fleet_api_integration/apis/epm/install_by_upload.ts b/x-pack/test/fleet_api_integration/apis/epm/install_by_upload.ts index 182838f21dbda..06130775ec3cb 100644 --- a/x-pack/test/fleet_api_integration/apis/epm/install_by_upload.ts +++ b/x-pack/test/fleet_api_integration/apis/epm/install_by_upload.ts @@ -93,6 +93,7 @@ export default function (providerContext: FtrProviderContext) { delete packageInfoRes.body.response.savedObject.version; delete packageInfoRes.body.response.savedObject.updated_at; delete packageInfoRes.body.response.savedObject.coreMigrationVersion; + delete packageInfoRes.body.response.savedObject.migrationVersion; expectSnapshot(packageInfoRes.body.response).toMatch(); }); From e066a49e7c1b90a49a0284c49b9655562ad77e25 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 30 Jul 2021 19:06:21 +0200 Subject: [PATCH 13/40] [Reporting] Fix API client wrapper in the reporting diagnostics (#107282) --- .../reporting/public/management/report_diagnostic.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/reporting/public/management/report_diagnostic.tsx b/x-pack/plugins/reporting/public/management/report_diagnostic.tsx index c7f5518ec9c1f..7525cf3ba7303 100644 --- a/x-pack/plugins/reporting/public/management/report_diagnostic.tsx +++ b/x-pack/plugins/reporting/public/management/report_diagnostic.tsx @@ -120,7 +120,7 @@ export const ReportDiagnostic = ({ apiClient }: Props) => { apiClient.verifyConfig(), statuses.configStatus)} iconType={configStatus === 'complete' ? 'check' : undefined} > { apiClient.verifyBrowser(), statuses.chromeStatus)} isLoading={isBusy && chromeStatus === 'incomplete'} iconType={chromeStatus === 'complete' ? 'check' : undefined} > @@ -177,7 +177,7 @@ export const ReportDiagnostic = ({ apiClient }: Props) => { apiClient.verifyScreenCapture(), statuses.screenshotStatus)} isLoading={isBusy && screenshotStatus === 'incomplete'} iconType={screenshotStatus === 'complete' ? 'check' : undefined} > From 926db441b9cc7be71e6b40c8975bd70dc76b06de Mon Sep 17 00:00:00 2001 From: Spencer Date: Fri, 30 Jul 2021 10:22:18 -0700 Subject: [PATCH 14/40] [dev-utils/run] support --info flag when default log level changed (#107244) * [dev-utils/run] support --info flag when default log level changed * update kbn/pm dist and remove excess --debug flag Co-authored-by: spalger --- packages/kbn-dev-utils/src/run/flags.ts | 11 ++++-- packages/kbn-dev-utils/src/run/help.ts | 13 ++++--- packages/kbn-dev-utils/src/run/run.ts | 3 +- .../src/tooling_log/log_levels.ts | 33 ++++++++++++++++- packages/kbn-pm/dist/index.js | 35 +++++++++++++++++-- .../type_check_plugin_public_api_docs.sh | 3 +- 6 files changed, 85 insertions(+), 13 deletions(-) diff --git a/packages/kbn-dev-utils/src/run/flags.ts b/packages/kbn-dev-utils/src/run/flags.ts index e8f915ae73326..822ac261d4908 100644 --- a/packages/kbn-dev-utils/src/run/flags.ts +++ b/packages/kbn-dev-utils/src/run/flags.ts @@ -9,6 +9,7 @@ import getopts from 'getopts'; import { RunOptions } from './run'; +import { LOG_LEVEL_FLAGS, DEFAULT_LOG_LEVEL } from '../tooling_log/log_levels'; export interface Flags { verbose: boolean; @@ -52,12 +53,18 @@ export function mergeFlagOptions(global: FlagOptions = {}, local: FlagOptions = }; } -export function getFlags(argv: string[], flagOptions: RunOptions['flags'] = {}): Flags { +export function getFlags( + argv: string[], + flagOptions: RunOptions['flags'] = {}, + defaultLogLevel: string = DEFAULT_LOG_LEVEL +): Flags { const unexpectedNames = new Set(); + const logLevelFlags = LOG_LEVEL_FLAGS.map((f) => f.name).filter((f) => f !== defaultLogLevel); + const { verbose, quiet, silent, debug, help, _, ...others } = getopts(argv, { string: flagOptions.string, - boolean: [...(flagOptions.boolean || []), 'verbose', 'quiet', 'silent', 'debug', 'help'], + boolean: [...(flagOptions.boolean || []), ...logLevelFlags, 'help'], alias: { ...flagOptions.alias, v: 'verbose', diff --git a/packages/kbn-dev-utils/src/run/help.ts b/packages/kbn-dev-utils/src/run/help.ts index ea197d1813086..0da4e8146d198 100644 --- a/packages/kbn-dev-utils/src/run/help.ts +++ b/packages/kbn-dev-utils/src/run/help.ts @@ -13,13 +13,10 @@ import 'core-js/features/string/repeat'; import dedent from 'dedent'; import { Command } from './run_with_commands'; +import { getLogLevelFlagsHelp } from '../tooling_log/log_levels'; const DEFAULT_GLOBAL_USAGE = `node ${Path.relative(process.cwd(), process.argv[1])}`; export const GLOBAL_FLAGS = dedent` - --verbose, -v Log verbosely - --debug Log debug messages (less than verbose) - --quiet Only log errors - --silent Don't log anything --help Show this message `; @@ -39,12 +36,18 @@ export function getHelp({ description, usage, flagHelp, + defaultLogLevel, }: { description?: string; usage?: string; flagHelp?: string; + defaultLogLevel?: string; }) { - const optionHelp = joinAndTrimLines(dedent(flagHelp || ''), GLOBAL_FLAGS); + const optionHelp = joinAndTrimLines( + dedent(flagHelp || ''), + getLogLevelFlagsHelp(defaultLogLevel), + GLOBAL_FLAGS + ); return ` ${dedent(usage || '') || DEFAULT_GLOBAL_USAGE} diff --git a/packages/kbn-dev-utils/src/run/run.ts b/packages/kbn-dev-utils/src/run/run.ts index 3e82763cb5124..d5cba180d5099 100644 --- a/packages/kbn-dev-utils/src/run/run.ts +++ b/packages/kbn-dev-utils/src/run/run.ts @@ -31,11 +31,12 @@ export interface RunOptions { } export async function run(fn: RunFn, options: RunOptions = {}) { - const flags = getFlags(process.argv.slice(2), options.flags); + const flags = getFlags(process.argv.slice(2), options.flags, options.log?.defaultLevel); const helpText = getHelp({ description: options.description, usage: options.usage, flagHelp: options.flags?.help, + defaultLogLevel: options.log?.defaultLevel, }); const log = new ToolingLog({ diff --git a/packages/kbn-dev-utils/src/tooling_log/log_levels.ts b/packages/kbn-dev-utils/src/tooling_log/log_levels.ts index 3870b938c8f8e..c6653c5ed1a90 100644 --- a/packages/kbn-dev-utils/src/tooling_log/log_levels.ts +++ b/packages/kbn-dev-utils/src/tooling_log/log_levels.ts @@ -7,6 +7,7 @@ */ const LEVELS = ['silent', 'error', 'warning', 'success', 'info', 'debug', 'verbose'] as const; +export const DEFAULT_LOG_LEVEL = 'info' as const; export type LogLevel = typeof LEVELS[number]; export function pickLevelFromFlags( @@ -15,9 +16,39 @@ export function pickLevelFromFlags( ) { if (flags.verbose) return 'verbose'; if (flags.debug) return 'debug'; + if (flags.info) return 'info'; if (flags.quiet) return 'error'; if (flags.silent) return 'silent'; - return options.default || 'info'; + return options.default || DEFAULT_LOG_LEVEL; +} + +export const LOG_LEVEL_FLAGS = [ + { + name: 'verbose', + help: '--verbose, -v Log verbosely', + }, + { + name: 'info', + help: "--info Don't log debug messages", + }, + { + name: 'debug', + help: '--debug Log debug messages (less than verbose)', + }, + { + name: 'quiet', + help: '--quiet Only log errors', + }, + { + name: 'silent', + help: "--silent Don't log anything", + }, +]; + +export function getLogLevelFlagsHelp(defaultLogLevel: string = DEFAULT_LOG_LEVEL) { + return LOG_LEVEL_FLAGS.filter(({ name }) => name !== defaultLogLevel) + .map(({ help }) => help) + .join('\n'); } export type ParsedLogLevel = ReturnType; diff --git a/packages/kbn-pm/dist/index.js b/packages/kbn-pm/dist/index.js index 2a8c30e3a81ae..470eb3477b159 100644 --- a/packages/kbn-pm/dist/index.js +++ b/packages/kbn-pm/dist/index.js @@ -8769,20 +8769,51 @@ module.exports = (chalk, temporary) => { * Side Public License, v 1. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseLogLevel = exports.pickLevelFromFlags = void 0; +exports.parseLogLevel = exports.getLogLevelFlagsHelp = exports.LOG_LEVEL_FLAGS = exports.pickLevelFromFlags = exports.DEFAULT_LOG_LEVEL = void 0; const LEVELS = ['silent', 'error', 'warning', 'success', 'info', 'debug', 'verbose']; +exports.DEFAULT_LOG_LEVEL = 'info'; function pickLevelFromFlags(flags, options = {}) { if (flags.verbose) return 'verbose'; if (flags.debug) return 'debug'; + if (flags.info) + return 'info'; if (flags.quiet) return 'error'; if (flags.silent) return 'silent'; - return options.default || 'info'; + return options.default || exports.DEFAULT_LOG_LEVEL; } exports.pickLevelFromFlags = pickLevelFromFlags; +exports.LOG_LEVEL_FLAGS = [ + { + name: 'verbose', + help: '--verbose, -v Log verbosely', + }, + { + name: 'info', + help: "--info Don't log debug messages", + }, + { + name: 'debug', + help: '--debug Log debug messages (less than verbose)', + }, + { + name: 'quiet', + help: '--quiet Only log errors', + }, + { + name: 'silent', + help: "--silent Don't log anything", + }, +]; +function getLogLevelFlagsHelp(defaultLogLevel = exports.DEFAULT_LOG_LEVEL) { + return exports.LOG_LEVEL_FLAGS.filter(({ name }) => name !== defaultLogLevel) + .map(({ help }) => help) + .join('\n'); +} +exports.getLogLevelFlagsHelp = getLogLevelFlagsHelp; function parseLogLevel(name) { const i = LEVELS.indexOf(name); if (i === -1) { diff --git a/test/scripts/checks/type_check_plugin_public_api_docs.sh b/test/scripts/checks/type_check_plugin_public_api_docs.sh index 532c656c916a6..8acacb696c576 100755 --- a/test/scripts/checks/type_check_plugin_public_api_docs.sh +++ b/test/scripts/checks/type_check_plugin_public_api_docs.sh @@ -7,8 +7,7 @@ checks-reporter-with-killswitch "Build TS Refs" \ --ignore-type-failures \ --clean \ --no-cache \ - --force \ - --debug + --force checks-reporter-with-killswitch "Check Types" \ node scripts/type_check From e0ea3233d97723b58d2c6a352fc41598df81965f Mon Sep 17 00:00:00 2001 From: Tiago Costa Date: Fri, 30 Jul 2021 18:38:02 +0100 Subject: [PATCH 15/40] chore(NA): moving @kbn/es-query to babel transpiler (#107281) * chore(NA): moving @kbn/es-query to babel transpiler * chore(NA): update limits --- .../elastic-eslint-config-kibana/.eslintrc.js | 2 +- .../elastic-eslint-config-kibana/BUILD.bazel | 1 + packages/kbn-babel-preset/BUILD.bazel | 1 + .../styled_components_files.js | 20 +++++++ packages/kbn-babel-preset/webpack_preset.js | 2 +- packages/kbn-dev-utils/src/babel.ts | 11 ---- packages/kbn-es-query/.babelrc | 3 + packages/kbn-es-query/.babelrc.browser | 3 + packages/kbn-es-query/BUILD.bazel | 55 ++++++++----------- packages/kbn-es-query/tsconfig.browser.json | 21 ------- packages/kbn-es-query/tsconfig.json | 6 +- packages/kbn-optimizer/limits.yml | 2 +- 12 files changed, 58 insertions(+), 69 deletions(-) create mode 100644 packages/kbn-babel-preset/styled_components_files.js create mode 100644 packages/kbn-es-query/.babelrc create mode 100644 packages/kbn-es-query/.babelrc.browser delete mode 100644 packages/kbn-es-query/tsconfig.browser.json diff --git a/packages/elastic-eslint-config-kibana/.eslintrc.js b/packages/elastic-eslint-config-kibana/.eslintrc.js index d3cf7cf964a60..1b3e852e5a502 100644 --- a/packages/elastic-eslint-config-kibana/.eslintrc.js +++ b/packages/elastic-eslint-config-kibana/.eslintrc.js @@ -1,4 +1,4 @@ -const { USES_STYLED_COMPONENTS } = require('@kbn/dev-utils'); +const { USES_STYLED_COMPONENTS } = require('@kbn/babel-preset/styled_components_files'); module.exports = { extends: [ diff --git a/packages/elastic-eslint-config-kibana/BUILD.bazel b/packages/elastic-eslint-config-kibana/BUILD.bazel index 1745d919acdaa..628b3a8bf173c 100644 --- a/packages/elastic-eslint-config-kibana/BUILD.bazel +++ b/packages/elastic-eslint-config-kibana/BUILD.bazel @@ -25,6 +25,7 @@ NPM_MODULE_EXTRA_FILES = [ ] DEPS = [ + "//packages/kbn-babel-preset", "//packages/kbn-dev-utils", "@npm//eslint-config-prettier", "@npm//semver", diff --git a/packages/kbn-babel-preset/BUILD.bazel b/packages/kbn-babel-preset/BUILD.bazel index 11eae8bc55ca9..0aff32f584c66 100644 --- a/packages/kbn-babel-preset/BUILD.bazel +++ b/packages/kbn-babel-preset/BUILD.bazel @@ -8,6 +8,7 @@ SOURCE_FILES = glob([ "common_preset.js", "istanbul_preset.js", "node_preset.js", + "styled_components_files.js", "webpack_preset.js", ]) diff --git a/packages/kbn-babel-preset/styled_components_files.js b/packages/kbn-babel-preset/styled_components_files.js new file mode 100644 index 0000000000000..feff76605f457 --- /dev/null +++ b/packages/kbn-babel-preset/styled_components_files.js @@ -0,0 +1,20 @@ +/* + * 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 = { + /** + * Synchronized regex list of files that use `styled-components`. + * Used by `kbn-babel-preset` and `elastic-eslint-config-kibana`. + */ + USES_STYLED_COMPONENTS: [ + /packages[\/\\]kbn-ui-shared-deps[\/\\]/, + /src[\/\\]plugins[\/\\](data|kibana_react)[\/\\]/, + /x-pack[\/\\]plugins[\/\\](apm|beats_management|cases|fleet|infra|lists|observability|osquery|security_solution|timelines|uptime)[\/\\]/, + /x-pack[\/\\]test[\/\\]plugin_functional[\/\\]plugins[\/\\]resolver_test[\/\\]/, + ], +}; diff --git a/packages/kbn-babel-preset/webpack_preset.js b/packages/kbn-babel-preset/webpack_preset.js index 186ce87478828..0c949eae5b55b 100644 --- a/packages/kbn-babel-preset/webpack_preset.js +++ b/packages/kbn-babel-preset/webpack_preset.js @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -const { USES_STYLED_COMPONENTS } = require.resolve('@kbn/dev-utils'); +const { USES_STYLED_COMPONENTS } = require.resolve('./styled_components_files'); module.exports = () => { return { diff --git a/packages/kbn-dev-utils/src/babel.ts b/packages/kbn-dev-utils/src/babel.ts index 5570055a21d15..9daa7d9fe8d7a 100644 --- a/packages/kbn-dev-utils/src/babel.ts +++ b/packages/kbn-dev-utils/src/babel.ts @@ -46,14 +46,3 @@ export async function transformFileWithBabel(file: File) { file.extname = '.js'; transformedFiles.add(file); } - -/** - * Synchronized regex list of files that use `styled-components`. - * Used by `kbn-babel-preset` and `elastic-eslint-config-kibana`. - */ -export const USES_STYLED_COMPONENTS = [ - /packages[\/\\]kbn-ui-shared-deps[\/\\]/, - /src[\/\\]plugins[\/\\](data|kibana_react)[\/\\]/, - /x-pack[\/\\]plugins[\/\\](apm|beats_management|cases|fleet|infra|lists|observability|osquery|security_solution|timelines|uptime)[\/\\]/, - /x-pack[\/\\]test[\/\\]plugin_functional[\/\\]plugins[\/\\]resolver_test[\/\\]/, -]; diff --git a/packages/kbn-es-query/.babelrc b/packages/kbn-es-query/.babelrc new file mode 100644 index 0000000000000..7da72d1779128 --- /dev/null +++ b/packages/kbn-es-query/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["@kbn/babel-preset/node_preset"] +} diff --git a/packages/kbn-es-query/.babelrc.browser b/packages/kbn-es-query/.babelrc.browser new file mode 100644 index 0000000000000..dc6a77bbe0bcd --- /dev/null +++ b/packages/kbn-es-query/.babelrc.browser @@ -0,0 +1,3 @@ +{ + "presets": ["@kbn/babel-preset/webpack_preset"] +} diff --git a/packages/kbn-es-query/BUILD.bazel b/packages/kbn-es-query/BUILD.bazel index 9639a1057cac3..7d6e2b4683b9b 100644 --- a/packages/kbn-es-query/BUILD.bazel +++ b/packages/kbn-es-query/BUILD.bazel @@ -1,6 +1,7 @@ load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project") load("@npm//peggy:index.bzl", "peggy") load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm") +load("//src/dev/bazel:index.bzl", "jsts_transpiler") PKG_BASE_NAME = "kbn-es-query" PKG_REQUIRE_NAME = "@kbn/es-query" @@ -29,7 +30,7 @@ NPM_MODULE_EXTRA_FILES = [ "README.md", ] -SRC_DEPS = [ +RUNTIME_DEPS = [ "//packages/kbn-common-utils", "//packages/kbn-config-schema", "//packages/kbn-i18n", @@ -41,14 +42,15 @@ SRC_DEPS = [ ] TYPES_DEPS = [ + "//packages/kbn-common-utils", + "//packages/kbn-i18n", + "@npm//@elastic/elasticsearch", "@npm//@types/jest", "@npm//@types/lodash", "@npm//@types/moment-timezone", "@npm//@types/node", ] -DEPS = SRC_DEPS + TYPES_DEPS - peggy( name = "grammar", data = [ @@ -64,55 +66,46 @@ peggy( ], ) -ts_config( - name = "tsconfig", - src = "tsconfig.json", - deps = [ - "//:tsconfig.base.json", - ], +jsts_transpiler( + name = "target_node", + srcs = SRCS, + build_pkg_name = package_name(), +) + +jsts_transpiler( + name = "target_web", + srcs = SRCS, + build_pkg_name = package_name(), + config_file = ".babelrc.browser" ) ts_config( - name = "tsconfig_browser", - src = "tsconfig.browser.json", + name = "tsconfig", + src = "tsconfig.json", deps = [ "//:tsconfig.base.json", - "//:tsconfig.browser.json", ], ) ts_project( - name = "tsc", + name = "tsc_types", args = ['--pretty'], srcs = SRCS, - deps = DEPS, + deps = TYPES_DEPS, declaration = True, - declaration_dir = "target_types", declaration_map = True, - incremental = True, - out_dir = "target_node", + emit_declaration_only = True, + incremental = False, + out_dir = "target_types", source_map = True, root_dir = "src", tsconfig = ":tsconfig", ) -ts_project( - name = "tsc_browser", - args = ['--pretty'], - srcs = SRCS, - deps = DEPS, - declaration = False, - incremental = True, - out_dir = "target_web", - source_map = True, - root_dir = "src", - tsconfig = ":tsconfig_browser", -) - js_library( name = PKG_BASE_NAME, srcs = NPM_MODULE_EXTRA_FILES + [":grammar"], - deps = DEPS + [":tsc", ":tsc_browser"], + deps = RUNTIME_DEPS + [":target_node", ":target_web", ":tsc_types"], package_name = PKG_REQUIRE_NAME, visibility = ["//visibility:public"], ) diff --git a/packages/kbn-es-query/tsconfig.browser.json b/packages/kbn-es-query/tsconfig.browser.json deleted file mode 100644 index 0a1c21cc8e05b..0000000000000 --- a/packages/kbn-es-query/tsconfig.browser.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "extends": "../../tsconfig.browser.json", - "compilerOptions": { - "incremental": true, - "outDir": "./target_web", - "declaration": false, - "sourceMap": true, - "sourceRoot": "../../../../packages/kbn-es-query/src", - "types": [ - "jest", - "node" - ], - }, - "include": [ - "src/**/*" - ], - "exclude": [ - "**/__fixtures__/**/*", - "**/__mocks__/**/*" - ] -} diff --git a/packages/kbn-es-query/tsconfig.json b/packages/kbn-es-query/tsconfig.json index b48d90373e2cb..78e722884594e 100644 --- a/packages/kbn-es-query/tsconfig.json +++ b/packages/kbn-es-query/tsconfig.json @@ -1,11 +1,11 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "incremental": true, - "declarationDir": "./target_types", - "outDir": "./target_node", "declaration": true, "declarationMap": true, + "emitDeclarationOnly": true, + "incremental": false, + "outDir": "./target_types", "sourceMap": true, "sourceRoot": "../../../../packages/kbn-es-query/src", "types": [ diff --git a/packages/kbn-optimizer/limits.yml b/packages/kbn-optimizer/limits.yml index 5a0b376c4cbc5..7edca22dcad2f 100644 --- a/packages/kbn-optimizer/limits.yml +++ b/packages/kbn-optimizer/limits.yml @@ -13,7 +13,7 @@ pageLoadAssetSize: dashboard: 374194 dashboardEnhanced: 65646 dashboardMode: 22716 - data: 900000 + data: 943821 dataEnhanced: 50420 devTools: 38637 discover: 99999 From 561b89889fd740fe01a7ddfa3a742f9825b820ad Mon Sep 17 00:00:00 2001 From: Tiago Costa Date: Fri, 30 Jul 2021 18:43:50 +0100 Subject: [PATCH 16/40] chore(NA): moving @kbn/utility-types to babel transpiler (#107159) * chore(NA): moving @kbn/utility-types to babel transpiler * chore(NA): fix type imports * chore(NA): fix type imports * chore(NA): fix type imports * chore(NA): fix rootdir of tsd tests Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- packages/kbn-utility-types/.babelrc | 3 +++ packages/kbn-utility-types/BUILD.bazel | 27 ++++++++++++------- packages/kbn-utility-types/jest/package.json | 2 +- packages/kbn-utility-types/package.json | 6 ++--- packages/kbn-utility-types/{ => src}/index.ts | 0 .../kbn-utility-types/{ => src}/jest/index.ts | 0 .../{ => src}/tsd_tests/empty.d.ts | 0 .../{ => src}/tsd_tests/package.json | 2 +- .../tsd_tests/test_d/method_keys_of.ts | 2 +- .../tsd_tests/test_d/public_contract.ts | 2 +- .../{ => src}/tsd_tests/test_d/public_keys.ts | 2 +- .../tsd_tests/test_d/public_methods_of.ts | 2 +- .../tsd_tests/test_d/shallow_promise.ts | 2 +- .../tsd_tests/test_d/union_to_intersection.ts | 2 +- .../tsd_tests/test_d/unwrap_observable.ts | 2 +- .../tsd_tests/test_d/unwrap_promise.ts | 2 +- .../{ => src}/tsd_tests/test_d/values.ts | 2 +- .../{ => src}/tsd_tests/test_d/writable.ts | 2 +- packages/kbn-utility-types/tsconfig.json | 13 +++++---- ...collect_multi_namespace_references.test.ts | 2 +- .../service/lib/update_objects_spaces.test.ts | 2 +- .../public/search/expressions/esdsl.test.ts | 2 +- .../elasticsearch/transform/transform.test.ts | 2 +- .../share_saved_object_permissions.test.ts | 2 +- 24 files changed, 46 insertions(+), 37 deletions(-) create mode 100644 packages/kbn-utility-types/.babelrc rename packages/kbn-utility-types/{ => src}/index.ts (100%) rename packages/kbn-utility-types/{ => src}/jest/index.ts (100%) rename packages/kbn-utility-types/{ => src}/tsd_tests/empty.d.ts (100%) rename packages/kbn-utility-types/{ => src}/tsd_tests/package.json (81%) rename packages/kbn-utility-types/{ => src}/tsd_tests/test_d/method_keys_of.ts (93%) rename packages/kbn-utility-types/{ => src}/tsd_tests/test_d/public_contract.ts (93%) rename packages/kbn-utility-types/{ => src}/tsd_tests/test_d/public_keys.ts (93%) rename packages/kbn-utility-types/{ => src}/tsd_tests/test_d/public_methods_of.ts (95%) rename packages/kbn-utility-types/{ => src}/tsd_tests/test_d/shallow_promise.ts (94%) rename packages/kbn-utility-types/{ => src}/tsd_tests/test_d/union_to_intersection.ts (92%) rename packages/kbn-utility-types/{ => src}/tsd_tests/test_d/unwrap_observable.ts (89%) rename packages/kbn-utility-types/{ => src}/tsd_tests/test_d/unwrap_promise.ts (93%) rename packages/kbn-utility-types/{ => src}/tsd_tests/test_d/values.ts (95%) rename packages/kbn-utility-types/{ => src}/tsd_tests/test_d/writable.ts (94%) diff --git a/packages/kbn-utility-types/.babelrc b/packages/kbn-utility-types/.babelrc new file mode 100644 index 0000000000000..7da72d1779128 --- /dev/null +++ b/packages/kbn-utility-types/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["@kbn/babel-preset/node_preset"] +} diff --git a/packages/kbn-utility-types/BUILD.bazel b/packages/kbn-utility-types/BUILD.bazel index 46843b97e746f..047cbd77f81c0 100644 --- a/packages/kbn-utility-types/BUILD.bazel +++ b/packages/kbn-utility-types/BUILD.bazel @@ -1,12 +1,13 @@ 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-utility-types" PKG_REQUIRE_NAME = "@kbn/utility-types" SOURCE_FILES = glob([ - "jest/index.ts", - "index.ts" + "src/jest/index.ts", + "src/index.ts" ]) SRCS = SOURCE_FILES @@ -22,16 +23,21 @@ NPM_MODULE_EXTRA_FILES = [ "README.md", ] -SRC_DEPS = [ +RUNTIME_DEPS = [ "@npm//utility-types", ] TYPES_DEPS = [ + "@npm//utility-types", "@npm//@types/node", "@npm//@types/jest", ] -DEPS = SRC_DEPS + TYPES_DEPS +jsts_transpiler( + name = "target_node", + srcs = SRCS, + build_pkg_name = package_name(), +) ts_config( name = "tsconfig", @@ -42,23 +48,24 @@ ts_config( ) ts_project( - name = "tsc", + name = "tsc_types", args = ['--pretty'], srcs = SRCS, - deps = DEPS, + deps = TYPES_DEPS, declaration = True, declaration_map = True, - incremental = True, - out_dir = "target", + emit_declaration_only = True, + incremental = False, + out_dir = "target_types", source_map = True, - root_dir = ".", + root_dir = "src", tsconfig = ":tsconfig", ) js_library( name = PKG_BASE_NAME, srcs = NPM_MODULE_EXTRA_FILES, - deps = DEPS + [":tsc"], + deps = RUNTIME_DEPS + [":target_node", ":tsc_types"], package_name = "@kbn/utility-types", visibility = ["//visibility:public"], ) diff --git a/packages/kbn-utility-types/jest/package.json b/packages/kbn-utility-types/jest/package.json index 9f92fc5e94528..a5d6c9ef48887 100644 --- a/packages/kbn-utility-types/jest/package.json +++ b/packages/kbn-utility-types/jest/package.json @@ -1,3 +1,3 @@ { - "types": "../target/jest/index.d.ts" + "types": "../target_types/jest/index.d.ts" } diff --git a/packages/kbn-utility-types/package.json b/packages/kbn-utility-types/package.json index 95fbd5d00f395..61f5cd42c4f8b 100644 --- a/packages/kbn-utility-types/package.json +++ b/packages/kbn-utility-types/package.json @@ -3,12 +3,12 @@ "version": "1.0.0", "private": true, "license": "SSPL-1.0 OR Elastic License 2.0", - "main": "target/index.js", - "types": "target/index.d.ts", + "main": "target_node/index.js", + "types": "target_types/index.d.ts", "kibana": { "devOnly": false }, "scripts": { - "test": "../../node_modules/.bin/tsd tsd_tests" + "test": "../../node_modules/.bin/tsd src/tsd_tests" } } \ No newline at end of file diff --git a/packages/kbn-utility-types/index.ts b/packages/kbn-utility-types/src/index.ts similarity index 100% rename from packages/kbn-utility-types/index.ts rename to packages/kbn-utility-types/src/index.ts diff --git a/packages/kbn-utility-types/jest/index.ts b/packages/kbn-utility-types/src/jest/index.ts similarity index 100% rename from packages/kbn-utility-types/jest/index.ts rename to packages/kbn-utility-types/src/jest/index.ts diff --git a/packages/kbn-utility-types/tsd_tests/empty.d.ts b/packages/kbn-utility-types/src/tsd_tests/empty.d.ts similarity index 100% rename from packages/kbn-utility-types/tsd_tests/empty.d.ts rename to packages/kbn-utility-types/src/tsd_tests/empty.d.ts diff --git a/packages/kbn-utility-types/tsd_tests/package.json b/packages/kbn-utility-types/src/tsd_tests/package.json similarity index 81% rename from packages/kbn-utility-types/tsd_tests/package.json rename to packages/kbn-utility-types/src/tsd_tests/package.json index fb549abca3197..4a5d21166e2f8 100644 --- a/packages/kbn-utility-types/tsd_tests/package.json +++ b/packages/kbn-utility-types/src/tsd_tests/package.json @@ -3,7 +3,7 @@ "tsd": { "directory": "test_d", "compilerOptions": { - "rootDir": "../" + "rootDir": ".." } } } \ No newline at end of file diff --git a/packages/kbn-utility-types/tsd_tests/test_d/method_keys_of.ts b/packages/kbn-utility-types/src/tsd_tests/test_d/method_keys_of.ts similarity index 93% rename from packages/kbn-utility-types/tsd_tests/test_d/method_keys_of.ts rename to packages/kbn-utility-types/src/tsd_tests/test_d/method_keys_of.ts index 6169f2d92f81b..8438fd1a41dac 100644 --- a/packages/kbn-utility-types/tsd_tests/test_d/method_keys_of.ts +++ b/packages/kbn-utility-types/src/tsd_tests/test_d/method_keys_of.ts @@ -8,7 +8,7 @@ // eslint-disable-next-line import/no-extraneous-dependencies import { expectType } from 'tsd'; -import { MethodKeysOf } from '../../index'; +import { MethodKeysOf } from '../..'; class Test { public name: string = ''; diff --git a/packages/kbn-utility-types/tsd_tests/test_d/public_contract.ts b/packages/kbn-utility-types/src/tsd_tests/test_d/public_contract.ts similarity index 93% rename from packages/kbn-utility-types/tsd_tests/test_d/public_contract.ts rename to packages/kbn-utility-types/src/tsd_tests/test_d/public_contract.ts index ef488f42805ee..f0b5507a6f63d 100644 --- a/packages/kbn-utility-types/tsd_tests/test_d/public_contract.ts +++ b/packages/kbn-utility-types/src/tsd_tests/test_d/public_contract.ts @@ -8,7 +8,7 @@ // eslint-disable-next-line import/no-extraneous-dependencies import { expectType } from 'tsd'; -import { PublicContract } from '../../index'; +import { PublicContract } from '../..'; class Test { public str: string = ''; diff --git a/packages/kbn-utility-types/tsd_tests/test_d/public_keys.ts b/packages/kbn-utility-types/src/tsd_tests/test_d/public_keys.ts similarity index 93% rename from packages/kbn-utility-types/tsd_tests/test_d/public_keys.ts rename to packages/kbn-utility-types/src/tsd_tests/test_d/public_keys.ts index 1674520daffba..1916c7c0b7a02 100644 --- a/packages/kbn-utility-types/tsd_tests/test_d/public_keys.ts +++ b/packages/kbn-utility-types/src/tsd_tests/test_d/public_keys.ts @@ -8,7 +8,7 @@ // eslint-disable-next-line import/no-extraneous-dependencies import { expectType } from 'tsd'; -import { PublicKeys } from '../../index'; +import { PublicKeys } from '../..'; class Test { public str: string = ''; diff --git a/packages/kbn-utility-types/tsd_tests/test_d/public_methods_of.ts b/packages/kbn-utility-types/src/tsd_tests/test_d/public_methods_of.ts similarity index 95% rename from packages/kbn-utility-types/tsd_tests/test_d/public_methods_of.ts rename to packages/kbn-utility-types/src/tsd_tests/test_d/public_methods_of.ts index 5db1117bf47f3..fc2626179e7c8 100644 --- a/packages/kbn-utility-types/tsd_tests/test_d/public_methods_of.ts +++ b/packages/kbn-utility-types/src/tsd_tests/test_d/public_methods_of.ts @@ -8,7 +8,7 @@ // eslint-disable-next-line import/no-extraneous-dependencies import { expectAssignable, expectNotAssignable } from 'tsd'; -import { PublicMethodsOf } from '../../index'; +import { PublicMethodsOf } from '../..'; class Test { public name: string = ''; diff --git a/packages/kbn-utility-types/tsd_tests/test_d/shallow_promise.ts b/packages/kbn-utility-types/src/tsd_tests/test_d/shallow_promise.ts similarity index 94% rename from packages/kbn-utility-types/tsd_tests/test_d/shallow_promise.ts rename to packages/kbn-utility-types/src/tsd_tests/test_d/shallow_promise.ts index 712189f43bfe2..4bfd5b1826fba 100644 --- a/packages/kbn-utility-types/tsd_tests/test_d/shallow_promise.ts +++ b/packages/kbn-utility-types/src/tsd_tests/test_d/shallow_promise.ts @@ -8,7 +8,7 @@ // eslint-disable-next-line import/no-extraneous-dependencies import { expectType } from 'tsd'; -import { ShallowPromise } from '../../index'; +import { ShallowPromise } from '../..'; type P1 = ShallowPromise; type P2 = ShallowPromise>; diff --git a/packages/kbn-utility-types/tsd_tests/test_d/union_to_intersection.ts b/packages/kbn-utility-types/src/tsd_tests/test_d/union_to_intersection.ts similarity index 92% rename from packages/kbn-utility-types/tsd_tests/test_d/union_to_intersection.ts rename to packages/kbn-utility-types/src/tsd_tests/test_d/union_to_intersection.ts index a37cdc5160edb..776da8838ef52 100644 --- a/packages/kbn-utility-types/tsd_tests/test_d/union_to_intersection.ts +++ b/packages/kbn-utility-types/src/tsd_tests/test_d/union_to_intersection.ts @@ -8,7 +8,7 @@ // eslint-disable-next-line import/no-extraneous-dependencies import { expectAssignable } from 'tsd'; -import { UnionToIntersection } from '../../index'; +import { UnionToIntersection } from '../..'; type INTERSECTED = UnionToIntersection<{ foo: 'bar' } | { baz: 'qux' }>; diff --git a/packages/kbn-utility-types/tsd_tests/test_d/unwrap_observable.ts b/packages/kbn-utility-types/src/tsd_tests/test_d/unwrap_observable.ts similarity index 89% rename from packages/kbn-utility-types/tsd_tests/test_d/unwrap_observable.ts rename to packages/kbn-utility-types/src/tsd_tests/test_d/unwrap_observable.ts index beaf692341615..6f76fc7cf40fb 100644 --- a/packages/kbn-utility-types/tsd_tests/test_d/unwrap_observable.ts +++ b/packages/kbn-utility-types/src/tsd_tests/test_d/unwrap_observable.ts @@ -8,7 +8,7 @@ // eslint-disable-next-line import/no-extraneous-dependencies import { expectAssignable } from 'tsd'; -import { UnwrapObservable, ObservableLike } from '../../index'; +import { UnwrapObservable, ObservableLike } from '../..'; type STRING = UnwrapObservable>; diff --git a/packages/kbn-utility-types/tsd_tests/test_d/unwrap_promise.ts b/packages/kbn-utility-types/src/tsd_tests/test_d/unwrap_promise.ts similarity index 93% rename from packages/kbn-utility-types/tsd_tests/test_d/unwrap_promise.ts rename to packages/kbn-utility-types/src/tsd_tests/test_d/unwrap_promise.ts index 6491555b883bf..adb6c9a0018b9 100644 --- a/packages/kbn-utility-types/tsd_tests/test_d/unwrap_promise.ts +++ b/packages/kbn-utility-types/src/tsd_tests/test_d/unwrap_promise.ts @@ -8,7 +8,7 @@ // eslint-disable-next-line import/no-extraneous-dependencies import { expectAssignable } from 'tsd'; -import { UnwrapPromise } from '../../index'; +import { UnwrapPromise } from '../..'; type STRING = UnwrapPromise>; type TUPLE = UnwrapPromise>; diff --git a/packages/kbn-utility-types/tsd_tests/test_d/values.ts b/packages/kbn-utility-types/src/tsd_tests/test_d/values.ts similarity index 95% rename from packages/kbn-utility-types/tsd_tests/test_d/values.ts rename to packages/kbn-utility-types/src/tsd_tests/test_d/values.ts index aeb867b78e13d..5e9e0d73f5b91 100644 --- a/packages/kbn-utility-types/tsd_tests/test_d/values.ts +++ b/packages/kbn-utility-types/src/tsd_tests/test_d/values.ts @@ -8,7 +8,7 @@ // eslint-disable-next-line import/no-extraneous-dependencies import { expectAssignable } from 'tsd'; -import { Values } from '../../index'; +import { Values } from '../..'; // Arrays type STRING = Values; diff --git a/packages/kbn-utility-types/tsd_tests/test_d/writable.ts b/packages/kbn-utility-types/src/tsd_tests/test_d/writable.ts similarity index 94% rename from packages/kbn-utility-types/tsd_tests/test_d/writable.ts rename to packages/kbn-utility-types/src/tsd_tests/test_d/writable.ts index cfaba555a7980..db3f6460d1b32 100644 --- a/packages/kbn-utility-types/tsd_tests/test_d/writable.ts +++ b/packages/kbn-utility-types/src/tsd_tests/test_d/writable.ts @@ -8,7 +8,7 @@ // eslint-disable-next-line import/no-extraneous-dependencies import { expectAssignable } from 'tsd'; -import { Writable } from '../../index'; +import { Writable } from '../..'; type WritableArray = Writable; expectAssignable(['1']); diff --git a/packages/kbn-utility-types/tsconfig.json b/packages/kbn-utility-types/tsconfig.json index 50fa71155bee8..92fd810b389c8 100644 --- a/packages/kbn-utility-types/tsconfig.json +++ b/packages/kbn-utility-types/tsconfig.json @@ -1,22 +1,21 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "incremental": true, - "outDir": "./target", - "stripInternal": true, "declaration": true, "declarationMap": true, - "rootDir": "./", + "emitDeclarationOnly": true, + "incremental": false, + "outDir": "./target_types", + "rootDir": "./src", "sourceMap": true, "sourceRoot": "../../../../packages/kbn-utility-types", + "stripInternal": true, "types": [ "jest", "node" ] }, "include": [ - "index.ts", - "jest/**/*", - "tsd_tests/**/*" + "src/**/*", ] } diff --git a/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.test.ts b/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.test.ts index 00fc039ff005f..45794e25d00a6 100644 --- a/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.test.ts +++ b/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.test.ts @@ -8,7 +8,7 @@ import { mockRawDocExistsInNamespace } from './collect_multi_namespace_references.test.mock'; -import type { DeeplyMockedKeys } from '@kbn/utility-types/target/jest'; +import type { DeeplyMockedKeys } from '@kbn/utility-types/jest'; import type { ElasticsearchClient } from 'src/core/server/elasticsearch'; import { elasticsearchClientMock } from 'src/core/server/elasticsearch/client/mocks'; diff --git a/src/core/server/saved_objects/service/lib/update_objects_spaces.test.ts b/src/core/server/saved_objects/service/lib/update_objects_spaces.test.ts index 489432a4ab169..11dbe6149878c 100644 --- a/src/core/server/saved_objects/service/lib/update_objects_spaces.test.ts +++ b/src/core/server/saved_objects/service/lib/update_objects_spaces.test.ts @@ -12,7 +12,7 @@ import { mockRawDocExistsInNamespace, } from './update_objects_spaces.test.mock'; -import type { DeeplyMockedKeys } from '@kbn/utility-types/target/jest'; +import type { DeeplyMockedKeys } from '@kbn/utility-types/jest'; import type { ElasticsearchClient } from 'src/core/server/elasticsearch'; import { elasticsearchClientMock } from 'src/core/server/elasticsearch/client/mocks'; diff --git a/src/plugins/data/public/search/expressions/esdsl.test.ts b/src/plugins/data/public/search/expressions/esdsl.test.ts index 197957442cf30..f39b33c252ded 100644 --- a/src/plugins/data/public/search/expressions/esdsl.test.ts +++ b/src/plugins/data/public/search/expressions/esdsl.test.ts @@ -7,7 +7,7 @@ */ import { getEsdsl } from './esdsl'; -import { MockedKeys } from '@kbn/utility-types/target/jest'; +import { MockedKeys } from '@kbn/utility-types/jest'; import { EsdslExpressionFunctionDefinition } from '../../../common/search/expressions'; import { StartServicesAccessor } from 'kibana/public'; import { DataPublicPluginStart, DataStartDependencies } from '../../types'; diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/transform.test.ts b/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/transform.test.ts index 7fc8d59628738..6febd27286ad1 100644 --- a/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/transform.test.ts +++ b/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/transform.test.ts @@ -19,7 +19,7 @@ jest.mock('./common', () => { }); import { ResponseError } from '@elastic/elasticsearch/lib/errors'; -import type { DeeplyMockedKeys } from '@kbn/utility-types/target/jest'; +import type { DeeplyMockedKeys } from '@kbn/utility-types/jest'; import type { ElasticsearchClient, SavedObject, SavedObjectsClientContract } from 'kibana/server'; import { ElasticsearchAssetType } from '../../../../types'; diff --git a/x-pack/plugins/security/server/routes/authorization/spaces/share_saved_object_permissions.test.ts b/x-pack/plugins/security/server/routes/authorization/spaces/share_saved_object_permissions.test.ts index 03736c3bfb4bc..11849a1f50bce 100644 --- a/x-pack/plugins/security/server/routes/authorization/spaces/share_saved_object_permissions.test.ts +++ b/x-pack/plugins/security/server/routes/authorization/spaces/share_saved_object_permissions.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import type { DeeplyMockedKeys } from '@kbn/utility-types/target/jest'; +import type { DeeplyMockedKeys } from '@kbn/utility-types/jest'; import type { RequestHandler, RouteConfig } from 'src/core/server'; import { kibanaResponseFactory } from 'src/core/server'; import { httpServerMock } from 'src/core/server/mocks'; From 7aef1be90dfa94d6327676e55f47749e95dbe69b Mon Sep 17 00:00:00 2001 From: Mikhail Shustov Date: Fri, 30 Jul 2021 20:45:09 +0300 Subject: [PATCH 17/40] migrate integration tests to the new es client (#107130) * migrate integration tests to the new es client * error field does not exist on result Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../apis/metrics_ui/metrics_alerting.ts | 18 +++++++++--------- .../apis/monitoring/common/mappings_exist.js | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/x-pack/test/api_integration/apis/metrics_ui/metrics_alerting.ts b/x-pack/test/api_integration/apis/metrics_ui/metrics_alerting.ts index 6f9c0f5fc708f..31d4bd147f526 100644 --- a/x-pack/test/api_integration/apis/metrics_ui/metrics_alerting.ts +++ b/x-pack/test/api_integration/apis/metrics_ui/metrics_alerting.ts @@ -12,7 +12,7 @@ import { MetricExpressionParams } from '../../../../plugins/infra/server/lib/ale import { FtrProviderContext } from '../../ftr_provider_context'; export default function ({ getService }: FtrProviderContext) { - const client = getService('legacyEs'); + const client = getService('es'); const index = 'test-index'; const getSearchParams = (aggType: string) => ({ @@ -42,11 +42,11 @@ export default function ({ getService }: FtrProviderContext) { '@timestamp', timeframe ); - const result = await client.search({ + const { body: result } = await client.search({ index, body: searchBody, }); - expect(result.error).to.not.be.ok(); + expect(result.hits).to.be.ok(); expect(result.aggregations).to.be.ok(); }); @@ -63,11 +63,11 @@ export default function ({ getService }: FtrProviderContext) { undefined, '{"bool":{"should":[{"match_phrase":{"agent.hostname":"foo"}}],"minimum_should_match":1}}' ); - const result = await client.search({ + const { body: result } = await client.search({ index, body: searchBody, }); - expect(result.error).to.not.be.ok(); + expect(result.hits).to.be.ok(); expect(result.aggregations).to.be.ok(); }); @@ -85,11 +85,11 @@ export default function ({ getService }: FtrProviderContext) { timeframe, 'agent.id' ); - const result = await client.search({ + const { body: result } = await client.search({ index, body: searchBody, }); - expect(result.error).to.not.be.ok(); + expect(result.hits).to.be.ok(); expect(result.aggregations).to.be.ok(); }); @@ -106,11 +106,11 @@ export default function ({ getService }: FtrProviderContext) { 'agent.id', '{"bool":{"should":[{"match_phrase":{"agent.hostname":"foo"}}],"minimum_should_match":1}}' ); - const result = await client.search({ + const { body: result } = await client.search({ index, body: searchBody, }); - expect(result.error).to.not.be.ok(); + expect(result.hits).to.be.ok(); expect(result.aggregations).to.be.ok(); }); diff --git a/x-pack/test/api_integration/apis/monitoring/common/mappings_exist.js b/x-pack/test/api_integration/apis/monitoring/common/mappings_exist.js index 1f1151010cefb..f193e0dbe091a 100644 --- a/x-pack/test/api_integration/apis/monitoring/common/mappings_exist.js +++ b/x-pack/test/api_integration/apis/monitoring/common/mappings_exist.js @@ -14,7 +14,7 @@ import * as beatsMetrics from '../../../../../plugins/monitoring/server/lib/metr import * as apmMetrics from '../../../../../plugins/monitoring/server/lib/metrics/apm/metrics'; export default function ({ getService }) { - const es = getService('legacyEs'); + const es = getService('es'); const metricSets = [ { @@ -49,7 +49,7 @@ export default function ({ getService }) { let mappings; before('load mappings', async () => { - const template = await es.indices.getTemplate({ name: indexTemplate }); + const { body: template } = await es.indices.getTemplate({ name: indexTemplate }); mappings = get(template, [indexTemplate, 'mappings', 'properties']); }); From caee1257f4871b338bcbc8bd1968b3872f36a1b8 Mon Sep 17 00:00:00 2001 From: Chris Roberson Date: Fri, 30 Jul 2021 15:18:56 -0400 Subject: [PATCH 18/40] Fix broken health test (#107036) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- x-pack/plugins/task_manager/server/routes/health.test.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/task_manager/server/routes/health.test.ts b/x-pack/plugins/task_manager/server/routes/health.test.ts index 68913fef43a2a..01c1d6a5f3983 100644 --- a/x-pack/plugins/task_manager/server/routes/health.test.ts +++ b/x-pack/plugins/task_manager/server/routes/health.test.ts @@ -29,8 +29,7 @@ jest.mock('../lib/log_health_metrics', () => ({ logHealthMetrics: jest.fn(), })); -// FLAKY: https://github.com/elastic/kibana/issues/106388 -describe.skip('healthRoute', () => { +describe('healthRoute', () => { beforeEach(() => { jest.resetAllMocks(); }); @@ -161,7 +160,7 @@ describe.skip('healthRoute', () => { summarizeMonitoringStats(warnWorkloadStat, getTaskManagerConfig({})) ), }); - expect(logHealthMetrics.mock.calls[2][0]).toMatchObject({ + expect(logHealthMetrics.mock.calls[3][0]).toMatchObject({ id, timestamp: expect.any(String), status: expect.any(String), @@ -234,7 +233,7 @@ describe.skip('healthRoute', () => { summarizeMonitoringStats(errorWorkloadStat, getTaskManagerConfig({})) ), }); - expect(logHealthMetrics.mock.calls[2][0]).toMatchObject({ + expect(logHealthMetrics.mock.calls[3][0]).toMatchObject({ id, timestamp: expect.any(String), status: expect.any(String), From 01293bf86f67f19bddf7b3375e4f9b97a9a26261 Mon Sep 17 00:00:00 2001 From: Stacey Gammon Date: Fri, 30 Jul 2021 15:26:29 -0400 Subject: [PATCH 19/40] update api docs (#107312) --- api_docs/advanced_settings.mdx | 2 +- api_docs/alerting.json | 44 +- api_docs/apm.json | 136 +- api_docs/apm.mdx | 2 +- api_docs/apm_oss.mdx | 2 +- api_docs/cases.json | 149 +- api_docs/cases.mdx | 2 +- api_docs/charts.mdx | 2 +- api_docs/core.json | 128 +- api_docs/core.mdx | 2 +- api_docs/core_application.mdx | 2 +- api_docs/core_chrome.mdx | 2 +- api_docs/core_http.json | 16 +- api_docs/core_http.mdx | 2 +- api_docs/core_saved_objects.json | 303 +- api_docs/core_saved_objects.mdx | 2 +- api_docs/dashboard.json | 30 +- api_docs/dashboard.mdx | 2 +- api_docs/data.json | 7327 ++++++++++---------- api_docs/data.mdx | 2 +- api_docs/data_autocomplete.mdx | 2 +- api_docs/data_field_formats.json | 760 +- api_docs/data_field_formats.mdx | 2 +- api_docs/data_index_patterns.json | 81 +- api_docs/data_index_patterns.mdx | 2 +- api_docs/data_query.json | 975 +-- api_docs/data_query.mdx | 5 +- api_docs/data_search.json | 6591 +++++++++++++++--- api_docs/data_search.mdx | 2 +- api_docs/data_ui.json | 90 +- api_docs/data_ui.mdx | 2 +- api_docs/deprecations_by_api.mdx | 52 +- api_docs/deprecations_by_plugin.mdx | 89 +- api_docs/discover.json | 24 +- api_docs/discover.mdx | 2 +- api_docs/discover_enhanced.mdx | 2 +- api_docs/encrypted_saved_objects.json | 191 +- api_docs/encrypted_saved_objects.mdx | 5 +- api_docs/expressions.json | 226 +- api_docs/expressions.mdx | 2 +- api_docs/file_upload.json | 264 +- api_docs/fleet.json | 8 +- api_docs/index_management.json | 54 + api_docs/index_management.mdx | 2 +- api_docs/index_pattern_field_editor.json | 270 +- api_docs/index_pattern_field_editor.mdx | 5 +- api_docs/kibana_legacy.mdx | 2 +- api_docs/lens.json | 24 +- api_docs/licensing.json | 4 +- api_docs/lists.json | 62 +- api_docs/management.mdx | 2 +- api_docs/maps.json | 15 +- api_docs/metrics_entities.json | 2 +- api_docs/monitoring.json | 2 +- api_docs/observability.json | 2 +- api_docs/observability.mdx | 2 +- api_docs/reporting.json | 68 +- api_docs/rule_registry.json | 22 +- api_docs/security.json | 4 +- api_docs/security_solution.json | 147 +- api_docs/security_solution.mdx | 2 +- api_docs/spaces.json | 4 +- api_docs/telemetry_collection_manager.json | 2 +- api_docs/timelines.json | 472 +- api_docs/timelines.mdx | 2 +- api_docs/triggers_actions_ui.json | 16 +- api_docs/visualizations.json | 410 +- api_docs/visualizations.mdx | 8 +- 68 files changed, 11964 insertions(+), 7175 deletions(-) diff --git a/api_docs/advanced_settings.mdx b/api_docs/advanced_settings.mdx index 5be4696f40b3e..ae48f0931f67e 100644 --- a/api_docs/advanced_settings.mdx +++ b/api_docs/advanced_settings.mdx @@ -12,7 +12,7 @@ import advancedSettingsObj from './advanced_settings.json'; - +Contact [Kibana App](https://github.com/orgs/elastic/teams/kibana-app) for questions regarding this plugin. **Code health stats** diff --git a/api_docs/alerting.json b/api_docs/alerting.json index 147fecd20dff8..2f45b57616f32 100644 --- a/api_docs/alerting.json +++ b/api_docs/alerting.json @@ -289,7 +289,7 @@ "description": [], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 76 + "lineNumber": 78 }, "deprecated": false, "children": [ @@ -305,7 +305,7 @@ ], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 86 + "lineNumber": 88 }, "deprecated": false, "children": [ @@ -314,14 +314,14 @@ "id": "def-server.AlertingAuthorization.Unnamed.$1", "type": "Object", "tags": [], - "label": "{\n ruleTypeRegistry,\n request,\n authorization,\n features,\n auditLogger,\n getSpace,\n exemptConsumerIds,\n }", + "label": "{\n ruleTypeRegistry,\n request,\n authorization,\n features,\n auditLogger,\n getSpace,\n getSpaceId,\n exemptConsumerIds,\n }", "description": [], "signature": [ "ConstructorOptions" ], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 86 + "lineNumber": 88 }, "deprecated": false, "isRequired": true @@ -337,11 +337,11 @@ "label": "getSpaceId", "description": [], "signature": [ - "() => Promise" + "() => string | undefined" ], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 144 + "lineNumber": 147 }, "deprecated": false, "children": [], @@ -385,7 +385,7 @@ ], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 152 + "lineNumber": 155 }, "deprecated": false, "children": [ @@ -401,7 +401,7 @@ ], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 153 + "lineNumber": 156 }, "deprecated": false, "isRequired": true @@ -434,7 +434,7 @@ ], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 154 + "lineNumber": 157 }, "deprecated": false, "isRequired": true @@ -457,7 +457,7 @@ ], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 155 + "lineNumber": 158 }, "deprecated": false, "isRequired": true @@ -479,7 +479,7 @@ ], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 169 + "lineNumber": 172 }, "deprecated": false, "children": [ @@ -495,7 +495,7 @@ ], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 169 + "lineNumber": 172 }, "deprecated": false, "isRequired": true @@ -529,7 +529,7 @@ ], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 274 + "lineNumber": 277 }, "deprecated": false, "children": [ @@ -551,7 +551,7 @@ ], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 275 + "lineNumber": 278 }, "deprecated": false, "isRequired": true @@ -568,7 +568,7 @@ ], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 276 + "lineNumber": 279 }, "deprecated": false, "isRequired": true @@ -616,7 +616,7 @@ ], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 354 + "lineNumber": 359 }, "deprecated": false, "children": [ @@ -634,7 +634,7 @@ ], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 355 + "lineNumber": 360 }, "deprecated": false, "isRequired": true @@ -667,7 +667,7 @@ ], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 356 + "lineNumber": 361 }, "deprecated": false, "isRequired": true @@ -690,7 +690,7 @@ ], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 357 + "lineNumber": 362 }, "deprecated": false, "isRequired": true @@ -2006,7 +2006,7 @@ "description": [], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 24 + "lineNumber": 25 }, "deprecated": false, "initialIsOpen": false @@ -2034,7 +2034,7 @@ "description": [], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 29 + "lineNumber": 30 }, "deprecated": false, "initialIsOpen": false @@ -2048,7 +2048,7 @@ "description": [], "source": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 36 + "lineNumber": 37 }, "deprecated": false, "initialIsOpen": false diff --git a/api_docs/apm.json b/api_docs/apm.json index 6dfd3dc0f42fd..daf6170ffefa9 100644 --- a/api_docs/apm.json +++ b/api_docs/apm.json @@ -2207,7 +2207,11 @@ "Type", "; end: ", "Type", - "; }>]>; }>, ", + "; }>, ", + "PartialC", + "<{ offset: ", + "StringC", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -2215,9 +2219,21 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { serviceDependencies: ", - "ServiceDependencyItem", - "[]; }, ", + ", { serviceDependencies: { currentStats: { latency: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; throughput: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; errorRate: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; } & { impact: number; }; previousStats: ({ latency: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; throughput: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; errorRate: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; } & { impact: number; }) | null; location: ", + "Node", + "; }[]; }, ", "APMRouteCreateOptions", ">; } & { \"GET /api/apm/services/{serviceName}/profiling/timeline\": ", "ServerRoute", @@ -3753,6 +3769,118 @@ }, "; }, ", "APMRouteCreateOptions", + ">; } & { \"GET /api/apm/backends/top_backends\": ", + "ServerRoute", + "<\"GET /api/apm/backends/top_backends\", ", + "IntersectionC", + "<[", + "TypeC", + "<{ query: ", + "IntersectionC", + "<[", + "TypeC", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>, ", + "TypeC", + "<{ numBuckets: ", + "Type", + "; }>]>; }>, ", + "PartialC", + "<{ query: ", + "IntersectionC", + "<[", + "PartialC", + "<{ environment: ", + "StringC", + "; }>, ", + "PartialC", + "<{ offset: ", + "StringC", + "; }>]>; }>]>, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", { backends: { currentStats: { latency: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; throughput: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; errorRate: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; } & { impact: number; }; previousStats: ({ latency: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; throughput: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; errorRate: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; } & { impact: number; }) | null; location: ", + "Node", + "; }[]; }, ", + "APMRouteCreateOptions", + ">; } & { \"GET /api/apm/backends/{backendName}/upstream_services\": ", + "ServerRoute", + "<\"GET /api/apm/backends/{backendName}/upstream_services\", ", + "IntersectionC", + "<[", + "TypeC", + "<{ path: ", + "TypeC", + "<{ backendName: ", + "StringC", + "; }>; query: ", + "IntersectionC", + "<[", + "TypeC", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>, ", + "TypeC", + "<{ numBuckets: ", + "Type", + "; }>]>; }>, ", + "PartialC", + "<{ query: ", + "IntersectionC", + "<[", + "PartialC", + "<{ environment: ", + "StringC", + "; }>, ", + "PartialC", + "<{ offset: ", + "StringC", + "; }>]>; }>]>, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", { services: { currentStats: { latency: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; throughput: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; errorRate: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; } & { impact: number; }; previousStats: ({ latency: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; throughput: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; errorRate: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; } & { impact: number; }) | null; location: ", + "Node", + "; }[]; }, ", + "APMRouteCreateOptions", ">; } & { \"GET /api/apm/backends/{backendName}/metadata\": ", "ServerRoute", "<\"GET /api/apm/backends/{backendName}/metadata\", ", diff --git a/api_docs/apm.mdx b/api_docs/apm.mdx index f59432fcfd1c2..b2aabfd4b4214 100644 --- a/api_docs/apm.mdx +++ b/api_docs/apm.mdx @@ -12,7 +12,7 @@ import apmObj from './apm.json'; - +Contact APM UI for questions regarding this plugin. **Code health stats** diff --git a/api_docs/apm_oss.mdx b/api_docs/apm_oss.mdx index 21ea33f8e0a80..76ae19ec8f2cf 100644 --- a/api_docs/apm_oss.mdx +++ b/api_docs/apm_oss.mdx @@ -12,7 +12,7 @@ import apmOssObj from './apm_oss.json'; - +Contact APM UI for questions regarding this plugin. **Code health stats** diff --git a/api_docs/cases.json b/api_docs/cases.json index c5b74586e8442..9fde1aebaa8f4 100644 --- a/api_docs/cases.json +++ b/api_docs/cases.json @@ -673,7 +673,7 @@ ], "source": { "path": "x-pack/plugins/cases/public/components/configure_cases/index.tsx", - "lineNumber": 51 + "lineNumber": 52 }, "deprecated": false, "children": [ @@ -686,7 +686,7 @@ "description": [], "source": { "path": "x-pack/plugins/cases/public/components/configure_cases/index.tsx", - "lineNumber": 52 + "lineNumber": 53 }, "deprecated": false } @@ -1836,6 +1836,52 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "cases", + "id": "def-common.getAllConnectorsUrl", + "type": "Function", + "tags": [], + "label": "getAllConnectorsUrl", + "description": [ + "\n" + ], + "signature": [ + "() => string" + ], + "source": { + "path": "x-pack/plugins/cases/common/utils/connectors_api.ts", + "lineNumber": 38 + }, + "deprecated": false, + "children": [], + "returnComment": [ + "All connectors endpoint" + ], + "initialIsOpen": false + }, + { + "parentPluginId": "cases", + "id": "def-common.getAllConnectorTypesUrl", + "type": "Function", + "tags": [], + "label": "getAllConnectorTypesUrl", + "description": [ + "\n" + ], + "signature": [ + "() => string" + ], + "source": { + "path": "x-pack/plugins/cases/common/utils/connectors_api.ts", + "lineNumber": 18 + }, + "deprecated": false, + "children": [], + "returnComment": [ + "Connector types endpoint" + ], + "initialIsOpen": false + }, { "parentPluginId": "cases", "id": "def-common.getCaseCommentDetailsUrl", @@ -2129,6 +2175,70 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "cases", + "id": "def-common.getCreateConnectorUrl", + "type": "Function", + "tags": [], + "label": "getCreateConnectorUrl", + "description": [ + "\n" + ], + "signature": [ + "() => string" + ], + "source": { + "path": "x-pack/plugins/cases/common/utils/connectors_api.ts", + "lineNumber": 32 + }, + "deprecated": false, + "children": [], + "returnComment": [ + "Create connector endpoint" + ], + "initialIsOpen": false + }, + { + "parentPluginId": "cases", + "id": "def-common.getExecuteConnectorUrl", + "type": "Function", + "tags": [], + "label": "getExecuteConnectorUrl", + "description": [ + "\n" + ], + "signature": [ + "(connectorId: string) => string" + ], + "source": { + "path": "x-pack/plugins/cases/common/utils/connectors_api.ts", + "lineNumber": 25 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "cases", + "id": "def-common.getExecuteConnectorUrl.$1", + "type": "string", + "tags": [], + "label": "connectorId", + "description": [], + "signature": [ + "string" + ], + "source": { + "path": "x-pack/plugins/cases/common/utils/connectors_api.ts", + "lineNumber": 25 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [ + "Execute connector endpoint" + ], + "initialIsOpen": false + }, { "parentPluginId": "cases", "id": "def-common.getSubCaseDetailsUrl", @@ -4748,9 +4858,6 @@ "tags": [], "label": "ACTION_TYPES_URL", "description": [], - "signature": [ - "\"/api/actions/connector_types\"" - ], "source": { "path": "x-pack/plugins/cases/common/constants.ts", "lineNumber": 63 @@ -7891,6 +7998,20 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "cases", + "id": "def-common.CONNECTORS_URL", + "type": "string", + "tags": [], + "label": "CONNECTORS_URL", + "description": [], + "source": { + "path": "x-pack/plugins/cases/common/constants.ts", + "lineNumber": 64 + }, + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "cases", "id": "def-common.ConnectorServiceNowITSMTypeFields", @@ -8103,7 +8224,7 @@ ], "source": { "path": "x-pack/plugins/cases/common/constants.ts", - "lineNumber": 89 + "lineNumber": 91 }, "deprecated": false, "initialIsOpen": false @@ -8515,7 +8636,7 @@ ], "source": { "path": "x-pack/plugins/cases/common/constants.ts", - "lineNumber": 75 + "lineNumber": 77 }, "deprecated": false, "initialIsOpen": false @@ -8532,7 +8653,7 @@ ], "source": { "path": "x-pack/plugins/cases/common/constants.ts", - "lineNumber": 96 + "lineNumber": 98 }, "deprecated": false, "initialIsOpen": false @@ -8549,7 +8670,7 @@ ], "source": { "path": "x-pack/plugins/cases/common/constants.ts", - "lineNumber": 95 + "lineNumber": 97 }, "deprecated": false, "initialIsOpen": false @@ -8566,7 +8687,7 @@ ], "source": { "path": "x-pack/plugins/cases/common/constants.ts", - "lineNumber": 76 + "lineNumber": 78 }, "deprecated": false, "initialIsOpen": false @@ -8585,7 +8706,7 @@ ], "source": { "path": "x-pack/plugins/cases/common/constants.ts", - "lineNumber": 102 + "lineNumber": 104 }, "deprecated": false, "initialIsOpen": false @@ -8676,7 +8797,7 @@ ], "source": { "path": "x-pack/plugins/cases/common/constants.ts", - "lineNumber": 84 + "lineNumber": 86 }, "deprecated": false, "initialIsOpen": false @@ -9177,7 +9298,7 @@ ], "source": { "path": "x-pack/plugins/cases/common/constants.ts", - "lineNumber": 64 + "lineNumber": 66 }, "deprecated": false, "initialIsOpen": false @@ -25001,4 +25122,4 @@ } ] } -} +} \ No newline at end of file diff --git a/api_docs/cases.mdx b/api_docs/cases.mdx index 3e024102fd629..4358b94d4bf6f 100644 --- a/api_docs/cases.mdx +++ b/api_docs/cases.mdx @@ -18,7 +18,7 @@ Contact [Security Solution Threat Hunting](https://github.com/orgs/elastic/teams | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 445 | 0 | 407 | 14 | +| 451 | 0 | 409 | 14 | ## Client diff --git a/api_docs/charts.mdx b/api_docs/charts.mdx index 16f129214ca95..5a8c7838f7d9a 100644 --- a/api_docs/charts.mdx +++ b/api_docs/charts.mdx @@ -12,7 +12,7 @@ import chartsObj from './charts.json'; - +Contact [Kibana App](https://github.com/orgs/elastic/teams/kibana-app) for questions regarding this plugin. **Code health stats** diff --git a/api_docs/core.json b/api_docs/core.json index 7a8ea01d393d1..8e3dd5bc30728 100644 --- a/api_docs/core.json +++ b/api_docs/core.json @@ -1794,7 +1794,7 @@ "description": [], "source": { "path": "src/core/public/doc_links/doc_links_service.ts", - "lineNumber": 443 + "lineNumber": 444 }, "deprecated": false, "children": [ @@ -1807,7 +1807,7 @@ "description": [], "source": { "path": "src/core/public/doc_links/doc_links_service.ts", - "lineNumber": 444 + "lineNumber": 445 }, "deprecated": false }, @@ -1820,7 +1820,7 @@ "description": [], "source": { "path": "src/core/public/doc_links/doc_links_service.ts", - "lineNumber": 445 + "lineNumber": 446 }, "deprecated": false }, @@ -1832,11 +1832,11 @@ "label": "links", "description": [], "signature": [ - "{ readonly settings: string; readonly canvas: { readonly guide: string; }; readonly dashboard: { readonly guide: string; readonly drilldowns: string; readonly drilldownsTriggerPicker: string; readonly urlDrilldownTemplateSyntax: string; readonly urlDrilldownVariables: string; }; readonly discover: Record; readonly filebeat: { readonly base: string; readonly installation: string; readonly configuration: string; readonly elasticsearchOutput: string; readonly elasticsearchModule: string; readonly startup: string; readonly exportedFields: string; readonly suricataModule: string; readonly zeekModule: string; }; readonly auditbeat: { readonly base: string; readonly auditdModule: string; readonly systemModule: string; }; readonly metricbeat: { readonly base: string; readonly configure: string; readonly httpEndpoint: string; readonly install: string; readonly start: string; }; readonly enterpriseSearch: { readonly base: string; readonly appSearchBase: string; readonly workplaceSearchBase: string; }; readonly heartbeat: { readonly base: string; }; readonly libbeat: { readonly getStarted: string; }; readonly logstash: { readonly base: string; }; readonly functionbeat: { readonly base: string; }; readonly winlogbeat: { readonly base: string; }; readonly aggs: { readonly composite: string; readonly composite_missing_bucket: string; readonly date_histogram: string; readonly date_range: string; readonly date_format_pattern: string; readonly filter: string; readonly filters: string; readonly geohash_grid: string; readonly histogram: string; readonly ip_range: string; readonly range: string; readonly significant_terms: string; readonly terms: string; readonly avg: string; readonly avg_bucket: string; readonly max_bucket: string; readonly min_bucket: string; readonly sum_bucket: string; readonly cardinality: string; readonly count: string; readonly cumulative_sum: string; readonly derivative: string; readonly geo_bounds: string; readonly geo_centroid: string; readonly max: string; readonly median: string; readonly min: string; readonly moving_avg: string; readonly percentile_ranks: string; readonly serial_diff: string; readonly std_dev: string; readonly sum: string; readonly top_hits: string; }; readonly runtimeFields: { readonly overview: string; readonly mapping: string; }; readonly scriptedFields: { readonly scriptFields: string; readonly scriptAggs: string; readonly painless: string; readonly painlessApi: string; readonly painlessLangSpec: string; readonly painlessSyntax: string; readonly painlessWalkthrough: string; readonly luceneExpressions: string; }; readonly search: { readonly sessions: string; readonly sessionLimits: string; }; readonly indexPatterns: { readonly introduction: string; readonly fieldFormattersNumber: string; readonly fieldFormattersString: string; readonly runtimeFields: string; }; readonly addData: string; readonly kibana: string; readonly upgradeAssistant: string; readonly rollupJobs: string; readonly elasticsearch: Record; readonly siem: { readonly guide: string; readonly gettingStarted: string; readonly ml: string; readonly ruleChangeLog: string; readonly detectionsReq: string; readonly networkMap: string; }; readonly query: { readonly eql: string; readonly kueryQuerySyntax: string; readonly luceneQuerySyntax: string; readonly percolate: string; readonly queryDsl: string; }; readonly date: { readonly dateMath: string; readonly dateMathIndexNames: string; }; readonly management: Record; readonly ml: Record; readonly transforms: Record; readonly visualize: Record; readonly apis: Readonly<{ bulkIndexAlias: string; byteSizeUnits: string; createAutoFollowPattern: string; createFollower: string; createIndex: string; createSnapshotLifecyclePolicy: string; createRoleMapping: string; createRoleMappingTemplates: string; createRollupJobsRequest: string; createApiKey: string; createPipeline: string; createTransformRequest: string; cronExpressions: string; executeWatchActionModes: string; indexExists: string; openIndex: string; putComponentTemplate: string; painlessExecute: string; painlessExecuteAPIContexts: string; putComponentTemplateMetadata: string; putSnapshotLifecyclePolicy: string; putIndexTemplateV1: string; putWatch: string; simulatePipeline: string; timeUnits: string; updateTransform: string; }>; readonly observability: Record; readonly alerting: Record; readonly maps: Record; readonly monitoring: Record; readonly security: Readonly<{ apiKeyServiceSettings: string; clusterPrivileges: string; elasticsearchSettings: string; elasticsearchEnableSecurity: string; indicesPrivileges: string; kibanaTLS: string; kibanaPrivileges: string; mappingRoles: string; mappingRolesFieldRules: string; runAsPrivilege: string; }>; readonly watcher: Record; readonly ccs: Record; readonly plugins: Record; readonly snapshotRestore: Record; readonly ingest: Record; readonly fleet: Readonly<{ guide: string; fleetServer: string; fleetServerAddFleetServer: string; settings: string; settingsFleetServerHostSettings: string; troubleshooting: string; elasticAgent: string; datastreams: string; datastreamsNamingScheme: string; upgradeElasticAgent: string; upgradeElasticAgent712lower: string; }>; readonly ecs: { readonly guide: string; }; }" + "{ readonly settings: string; readonly canvas: { readonly guide: string; }; readonly dashboard: { readonly guide: string; readonly drilldowns: string; readonly drilldownsTriggerPicker: string; readonly urlDrilldownTemplateSyntax: string; readonly urlDrilldownVariables: string; }; readonly discover: Record; readonly filebeat: { readonly base: string; readonly installation: string; readonly configuration: string; readonly elasticsearchOutput: string; readonly elasticsearchModule: string; readonly startup: string; readonly exportedFields: string; readonly suricataModule: string; readonly zeekModule: string; }; readonly auditbeat: { readonly base: string; readonly auditdModule: string; readonly systemModule: string; }; readonly metricbeat: { readonly base: string; readonly configure: string; readonly httpEndpoint: string; readonly install: string; readonly start: string; }; readonly enterpriseSearch: { readonly base: string; readonly appSearchBase: string; readonly workplaceSearchBase: string; }; readonly heartbeat: { readonly base: string; }; readonly libbeat: { readonly getStarted: string; }; readonly logstash: { readonly base: string; }; readonly functionbeat: { readonly base: string; }; readonly winlogbeat: { readonly base: string; }; readonly aggs: { readonly composite: string; readonly composite_missing_bucket: string; readonly date_histogram: string; readonly date_range: string; readonly date_format_pattern: string; readonly filter: string; readonly filters: string; readonly geohash_grid: string; readonly histogram: string; readonly ip_range: string; readonly range: string; readonly significant_terms: string; readonly terms: string; readonly avg: string; readonly avg_bucket: string; readonly max_bucket: string; readonly min_bucket: string; readonly sum_bucket: string; readonly cardinality: string; readonly count: string; readonly cumulative_sum: string; readonly derivative: string; readonly geo_bounds: string; readonly geo_centroid: string; readonly max: string; readonly median: string; readonly min: string; readonly moving_avg: string; readonly percentile_ranks: string; readonly serial_diff: string; readonly std_dev: string; readonly sum: string; readonly top_hits: string; }; readonly runtimeFields: { readonly overview: string; readonly mapping: string; }; readonly scriptedFields: { readonly scriptFields: string; readonly scriptAggs: string; readonly painless: string; readonly painlessApi: string; readonly painlessLangSpec: string; readonly painlessSyntax: string; readonly painlessWalkthrough: string; readonly luceneExpressions: string; }; readonly search: { readonly sessions: string; readonly sessionLimits: string; }; readonly indexPatterns: { readonly introduction: string; readonly fieldFormattersNumber: string; readonly fieldFormattersString: string; readonly runtimeFields: string; }; readonly addData: string; readonly kibana: string; readonly upgradeAssistant: string; readonly rollupJobs: string; readonly elasticsearch: Record; readonly siem: { readonly guide: string; readonly gettingStarted: string; readonly ml: string; readonly ruleChangeLog: string; readonly detectionsReq: string; readonly networkMap: string; }; readonly query: { readonly eql: string; readonly kueryQuerySyntax: string; readonly luceneQuerySyntax: string; readonly percolate: string; readonly queryDsl: string; readonly autocompleteChanges: string; }; readonly date: { readonly dateMath: string; readonly dateMathIndexNames: string; }; readonly management: Record; readonly ml: Record; readonly transforms: Record; readonly visualize: Record; readonly apis: Readonly<{ bulkIndexAlias: string; byteSizeUnits: string; createAutoFollowPattern: string; createFollower: string; createIndex: string; createSnapshotLifecyclePolicy: string; createRoleMapping: string; createRoleMappingTemplates: string; createRollupJobsRequest: string; createApiKey: string; createPipeline: string; createTransformRequest: string; cronExpressions: string; executeWatchActionModes: string; indexExists: string; openIndex: string; putComponentTemplate: string; painlessExecute: string; painlessExecuteAPIContexts: string; putComponentTemplateMetadata: string; putSnapshotLifecyclePolicy: string; putIndexTemplateV1: string; putWatch: string; simulatePipeline: string; timeUnits: string; updateTransform: string; }>; readonly observability: Record; readonly alerting: Record; readonly maps: Record; readonly monitoring: Record; readonly security: Readonly<{ apiKeyServiceSettings: string; clusterPrivileges: string; elasticsearchSettings: string; elasticsearchEnableSecurity: string; indicesPrivileges: string; kibanaTLS: string; kibanaPrivileges: string; mappingRoles: string; mappingRolesFieldRules: string; runAsPrivilege: string; }>; readonly watcher: Record; readonly ccs: Record; readonly plugins: Record; readonly snapshotRestore: Record; readonly ingest: Record; readonly fleet: Readonly<{ guide: string; fleetServer: string; fleetServerAddFleetServer: string; settings: string; settingsFleetServerHostSettings: string; troubleshooting: string; elasticAgent: string; datastreams: string; datastreamsNamingScheme: string; upgradeElasticAgent: string; upgradeElasticAgent712lower: string; }>; readonly ecs: { readonly guide: string; }; }" ], "source": { "path": "src/core/public/doc_links/doc_links_service.ts", - "lineNumber": 446 + "lineNumber": 447 }, "deprecated": false } @@ -5386,7 +5386,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 162 + "lineNumber": 163 }, "deprecated": false, "children": [ @@ -5404,7 +5404,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 164 + "lineNumber": 165 }, "deprecated": false } @@ -5463,7 +5463,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 78 + "lineNumber": 79 }, "deprecated": false, "children": [ @@ -5479,7 +5479,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 79 + "lineNumber": 80 }, "deprecated": false }, @@ -5495,7 +5495,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 80 + "lineNumber": 81 }, "deprecated": false }, @@ -5511,7 +5511,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 81 + "lineNumber": 82 }, "deprecated": false }, @@ -5527,7 +5527,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 82 + "lineNumber": 83 }, "deprecated": false }, @@ -5543,7 +5543,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 83 + "lineNumber": 84 }, "deprecated": false }, @@ -5561,7 +5561,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 89 + "lineNumber": 90 }, "deprecated": false }, @@ -5579,7 +5579,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 91 + "lineNumber": 92 }, "deprecated": false }, @@ -5597,7 +5597,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 93 + "lineNumber": 94 }, "deprecated": false }, @@ -5615,7 +5615,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 97 + "lineNumber": 98 }, "deprecated": false }, @@ -5633,7 +5633,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 102 + "lineNumber": 103 }, "deprecated": false }, @@ -5666,7 +5666,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 108 + "lineNumber": 109 }, "deprecated": false }, @@ -5684,7 +5684,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 112 + "lineNumber": 113 }, "deprecated": false }, @@ -5702,7 +5702,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 117 + "lineNumber": 118 }, "deprecated": false }, @@ -5718,7 +5718,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 118 + "lineNumber": 119 }, "deprecated": false }, @@ -5740,7 +5740,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 140 + "lineNumber": 141 }, "deprecated": false }, @@ -5756,7 +5756,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 141 + "lineNumber": 142 }, "deprecated": false }, @@ -5774,7 +5774,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 149 + "lineNumber": 150 }, "deprecated": false }, @@ -5792,7 +5792,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 151 + "lineNumber": 152 }, "deprecated": false }, @@ -5817,7 +5817,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 155 + "lineNumber": 156 }, "deprecated": false } @@ -5833,7 +5833,7 @@ "description": [], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 61 + "lineNumber": 62 }, "deprecated": false, "children": [ @@ -5846,7 +5846,7 @@ "description": [], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 62 + "lineNumber": 63 }, "deprecated": false }, @@ -5859,7 +5859,7 @@ "description": [], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 63 + "lineNumber": 64 }, "deprecated": false } @@ -7717,7 +7717,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 249 + "lineNumber": 250 }, "deprecated": false, "initialIsOpen": false @@ -10823,7 +10823,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 484 + "lineNumber": 485 }, "deprecated": false, "children": [ @@ -10847,7 +10847,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 486 + "lineNumber": 487 }, "deprecated": false }, @@ -10871,7 +10871,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 488 + "lineNumber": 489 }, "deprecated": false }, @@ -10895,7 +10895,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 490 + "lineNumber": 491 }, "deprecated": false } @@ -10923,7 +10923,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 502 + "lineNumber": 503 }, "deprecated": false, "children": [ @@ -10947,7 +10947,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 504 + "lineNumber": 505 }, "deprecated": false }, @@ -10971,7 +10971,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 506 + "lineNumber": 507 }, "deprecated": false }, @@ -10995,7 +10995,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 508 + "lineNumber": 509 }, "deprecated": false }, @@ -11019,7 +11019,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 510 + "lineNumber": 511 }, "deprecated": false }, @@ -11052,7 +11052,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 512 + "lineNumber": 513 }, "deprecated": false }, @@ -11076,7 +11076,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 517 + "lineNumber": 518 }, "deprecated": false }, @@ -11100,7 +11100,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 519 + "lineNumber": 520 }, "deprecated": false }, @@ -11124,7 +11124,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 521 + "lineNumber": 522 }, "deprecated": false }, @@ -11148,7 +11148,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 523 + "lineNumber": 524 }, "deprecated": false }, @@ -11172,7 +11172,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 525 + "lineNumber": 526 }, "deprecated": false }, @@ -11196,7 +11196,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 527 + "lineNumber": 528 }, "deprecated": false }, @@ -11220,7 +11220,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 529 + "lineNumber": 530 }, "deprecated": false }, @@ -11246,7 +11246,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 531 + "lineNumber": 532 }, "deprecated": false, "returnComment": [], @@ -11266,7 +11266,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 552 + "lineNumber": 553 }, "deprecated": false, "children": [ @@ -11290,7 +11290,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 554 + "lineNumber": 555 }, "deprecated": false }, @@ -11314,7 +11314,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 556 + "lineNumber": 557 }, "deprecated": false }, @@ -11338,7 +11338,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 558 + "lineNumber": 559 }, "deprecated": false }, @@ -11362,7 +11362,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 560 + "lineNumber": 561 }, "deprecated": false }, @@ -11386,7 +11386,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 562 + "lineNumber": 563 }, "deprecated": false }, @@ -11410,7 +11410,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 564 + "lineNumber": 565 }, "deprecated": false }, @@ -11434,7 +11434,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 566 + "lineNumber": 567 }, "deprecated": false } @@ -14364,7 +14364,7 @@ "signature": [ "Pick<", "KibanaClient", - ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"helpers\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", + ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"helpers\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", "TransportRequestParams", ", options?: ", "TransportRequestOptions", @@ -15628,7 +15628,7 @@ "signature": [ "Pick<", "KibanaClient", - ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"helpers\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", + ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"helpers\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", "TransportRequestParams", ", options?: ", "TransportRequestOptions", @@ -15656,7 +15656,7 @@ "signature": [ "Pick<", "KibanaClient", - ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"helpers\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", + ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"helpers\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", "TransportRequestParams", ", options?: ", "TransportRequestOptions", @@ -20539,7 +20539,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 456 + "lineNumber": 457 }, "deprecated": false, "children": [ @@ -20643,7 +20643,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 457 + "lineNumber": 458 }, "deprecated": false } @@ -22434,7 +22434,7 @@ "signature": [ "Pick<", "KibanaClient", - ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"helpers\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", + ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"helpers\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", "TransportRequestParams", ", options?: ", "TransportRequestOptions", @@ -23778,7 +23778,7 @@ ], "source": { "path": "src/core/server/index.ts", - "lineNumber": 542 + "lineNumber": 543 }, "deprecated": false, "initialIsOpen": false diff --git a/api_docs/core.mdx b/api_docs/core.mdx index 92c0a868ff9be..7dbeb6f4c05c1 100644 --- a/api_docs/core.mdx +++ b/api_docs/core.mdx @@ -18,7 +18,7 @@ import coreObj from './core.json'; | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 2360 | 148 | 1081 | 31 | +| 2363 | 148 | 1081 | 31 | ## Client diff --git a/api_docs/core_application.mdx b/api_docs/core_application.mdx index 8f7213615707b..9ce48ced2d738 100644 --- a/api_docs/core_application.mdx +++ b/api_docs/core_application.mdx @@ -18,7 +18,7 @@ import coreApplicationObj from './core_application.json'; | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 2360 | 148 | 1081 | 31 | +| 2363 | 148 | 1081 | 31 | ## Client diff --git a/api_docs/core_chrome.mdx b/api_docs/core_chrome.mdx index fefb81a103829..d8c9cb76483c5 100644 --- a/api_docs/core_chrome.mdx +++ b/api_docs/core_chrome.mdx @@ -18,7 +18,7 @@ import coreChromeObj from './core_chrome.json'; | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 2360 | 148 | 1081 | 31 | +| 2363 | 148 | 1081 | 31 | ## Client diff --git a/api_docs/core_http.json b/api_docs/core_http.json index 797c0565e7324..654d0fabdd076 100644 --- a/api_docs/core_http.json +++ b/api_docs/core_http.json @@ -3973,7 +3973,7 @@ "section": "def-server.LegacyRequest", "text": "LegacyRequest" }, - ") => string; set: (request: ", + ") => string; prepend: (path: string) => string; set: (request: ", { "pluginId": "core", "scope": "server", @@ -3989,7 +3989,7 @@ "section": "def-server.LegacyRequest", "text": "LegacyRequest" }, - ", requestSpecificBasePath: string) => void; prepend: (path: string) => string; readonly serverBasePath: string; readonly publicBaseUrl?: string | undefined; }" + ", requestSpecificBasePath: string) => void; readonly serverBasePath: string; readonly publicBaseUrl?: string | undefined; }" ], "source": { "path": "src/core/server/http/types.ts", @@ -5002,7 +5002,7 @@ "section": "def-server.LegacyRequest", "text": "LegacyRequest" }, - ") => string; set: (request: ", + ") => string; prepend: (path: string) => string; set: (request: ", { "pluginId": "core", "scope": "server", @@ -5018,7 +5018,7 @@ "section": "def-server.LegacyRequest", "text": "LegacyRequest" }, - ", requestSpecificBasePath: string) => void; prepend: (path: string) => string; readonly serverBasePath: string; readonly publicBaseUrl?: string | undefined; }" + ", requestSpecificBasePath: string) => void; readonly serverBasePath: string; readonly publicBaseUrl?: string | undefined; }" ], "source": { "path": "src/core/server/http/types.ts", @@ -5448,7 +5448,7 @@ "section": "def-server.LegacyRequest", "text": "LegacyRequest" }, - ") => string; set: (request: ", + ") => string; prepend: (path: string) => string; set: (request: ", { "pluginId": "core", "scope": "server", @@ -5464,7 +5464,7 @@ "section": "def-server.LegacyRequest", "text": "LegacyRequest" }, - ", requestSpecificBasePath: string) => void; prepend: (path: string) => string; readonly serverBasePath: string; readonly publicBaseUrl?: string | undefined; }" + ", requestSpecificBasePath: string) => void; readonly serverBasePath: string; readonly publicBaseUrl?: string | undefined; }" ], "source": { "path": "src/core/server/http/types.ts", @@ -10658,7 +10658,7 @@ "section": "def-server.LegacyRequest", "text": "LegacyRequest" }, - ") => string; set: (request: ", + ") => string; prepend: (path: string) => string; set: (request: ", { "pluginId": "core", "scope": "server", @@ -10674,7 +10674,7 @@ "section": "def-server.LegacyRequest", "text": "LegacyRequest" }, - ", requestSpecificBasePath: string) => void; prepend: (path: string) => string; readonly serverBasePath: string; readonly publicBaseUrl?: string | undefined; }" + ", requestSpecificBasePath: string) => void; readonly serverBasePath: string; readonly publicBaseUrl?: string | undefined; }" ], "source": { "path": "src/core/server/http/base_path_service.ts", diff --git a/api_docs/core_http.mdx b/api_docs/core_http.mdx index 0d6e164c5aac8..99f0cdfbd708e 100644 --- a/api_docs/core_http.mdx +++ b/api_docs/core_http.mdx @@ -18,7 +18,7 @@ import coreHttpObj from './core_http.json'; | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 2360 | 148 | 1081 | 31 | +| 2363 | 148 | 1081 | 31 | ## Client diff --git a/api_docs/core_saved_objects.json b/api_docs/core_saved_objects.json index fbdb90400c3ca..55bf6649d28ba 100644 --- a/api_docs/core_saved_objects.json +++ b/api_docs/core_saved_objects.json @@ -13,7 +13,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 170 + "lineNumber": 169 }, "deprecated": false, "children": [ @@ -47,7 +47,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 225 + "lineNumber": 224 }, "deprecated": false, "children": [ @@ -63,7 +63,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 226 + "lineNumber": 225 }, "deprecated": false, "isRequired": true @@ -80,7 +80,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 227 + "lineNumber": 226 }, "deprecated": false, "isRequired": true @@ -103,7 +103,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 228 + "lineNumber": 227 }, "deprecated": false, "isRequired": true @@ -151,7 +151,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 260 + "lineNumber": 259 }, "deprecated": false, "children": [ @@ -176,7 +176,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 261 + "lineNumber": 260 }, "deprecated": false, "isRequired": true @@ -199,7 +199,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 262 + "lineNumber": 261 }, "deprecated": false, "isRequired": true @@ -225,7 +225,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 288 + "lineNumber": 287 }, "deprecated": false, "children": [ @@ -241,7 +241,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 289 + "lineNumber": 288 }, "deprecated": false, "isRequired": true @@ -258,7 +258,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 290 + "lineNumber": 289 }, "deprecated": false, "isRequired": true @@ -276,7 +276,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 291 + "lineNumber": 290 }, "deprecated": false, "isRequired": false @@ -322,7 +322,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 318 + "lineNumber": 317 }, "deprecated": false, "children": [ @@ -346,7 +346,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 319 + "lineNumber": 318 }, "deprecated": false, "isRequired": true @@ -378,7 +378,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 385 + "lineNumber": 384 }, "deprecated": false, "children": [ @@ -394,7 +394,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 385 + "lineNumber": 384 }, "deprecated": false, "isRequired": true @@ -411,7 +411,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 385 + "lineNumber": 384 }, "deprecated": false, "isRequired": true @@ -443,7 +443,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 408 + "lineNumber": 407 }, "deprecated": false, "children": [ @@ -461,7 +461,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 408 + "lineNumber": 407 }, "deprecated": false, "isRequired": true @@ -493,7 +493,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 435 + "lineNumber": 434 }, "deprecated": false, "children": [ @@ -509,7 +509,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 436 + "lineNumber": 435 }, "deprecated": false, "isRequired": true @@ -526,7 +526,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 437 + "lineNumber": 436 }, "deprecated": false, "isRequired": true @@ -569,7 +569,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 462 + "lineNumber": 461 }, "deprecated": false, "children": [ @@ -585,7 +585,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 463 + "lineNumber": 462 }, "deprecated": false, "isRequired": true @@ -602,7 +602,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 464 + "lineNumber": 463 }, "deprecated": false, "isRequired": true @@ -619,7 +619,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 465 + "lineNumber": 464 }, "deprecated": false, "isRequired": true @@ -643,7 +643,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 466 + "lineNumber": 465 }, "deprecated": false, "isRequired": true @@ -681,7 +681,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 494 + "lineNumber": 493 }, "deprecated": false, "children": [ @@ -706,7 +706,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 494 + "lineNumber": 493 }, "deprecated": false, "isRequired": true @@ -1232,7 +1232,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 91 + "lineNumber": 90 }, "deprecated": false, "children": [ @@ -1255,7 +1255,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 92 + "lineNumber": 91 }, "deprecated": false } @@ -1288,7 +1288,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 58 + "lineNumber": 57 }, "deprecated": false, "children": [ @@ -1301,7 +1301,7 @@ "description": [], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 59 + "lineNumber": 58 }, "deprecated": false }, @@ -1317,7 +1317,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 60 + "lineNumber": 59 }, "deprecated": false } @@ -1333,7 +1333,7 @@ "description": [], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 64 + "lineNumber": 63 }, "deprecated": false, "children": [ @@ -1351,7 +1351,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 66 + "lineNumber": 65 }, "deprecated": false } @@ -1377,7 +1377,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 70 + "lineNumber": 69 }, "deprecated": false, "children": [ @@ -1390,7 +1390,7 @@ "description": [], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 71 + "lineNumber": 70 }, "deprecated": false }, @@ -1403,7 +1403,7 @@ "description": [], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 72 + "lineNumber": 71 }, "deprecated": false }, @@ -1419,7 +1419,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 73 + "lineNumber": 72 }, "deprecated": false }, @@ -1435,7 +1435,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 74 + "lineNumber": 73 }, "deprecated": false }, @@ -1452,7 +1452,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 75 + "lineNumber": 74 }, "deprecated": false } @@ -1468,7 +1468,7 @@ "description": [], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 79 + "lineNumber": 78 }, "deprecated": false, "children": [ @@ -1484,7 +1484,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 80 + "lineNumber": 79 }, "deprecated": false } @@ -1500,7 +1500,7 @@ "description": [], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 38 + "lineNumber": 37 }, "deprecated": false, "children": [ @@ -1518,7 +1518,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 42 + "lineNumber": 41 }, "deprecated": false }, @@ -1536,7 +1536,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 44 + "lineNumber": 43 }, "deprecated": false }, @@ -1555,7 +1555,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 46 + "lineNumber": 45 }, "deprecated": false }, @@ -1573,7 +1573,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 48 + "lineNumber": 47 }, "deprecated": false }, @@ -1590,7 +1590,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 49 + "lineNumber": 48 }, "deprecated": false } @@ -1626,7 +1626,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 109 + "lineNumber": 108 }, "deprecated": false, "children": [ @@ -1642,7 +1642,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 111 + "lineNumber": 110 }, "deprecated": false }, @@ -1655,7 +1655,7 @@ "description": [], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 112 + "lineNumber": 111 }, "deprecated": false }, @@ -1668,7 +1668,7 @@ "description": [], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 113 + "lineNumber": 112 }, "deprecated": false }, @@ -1681,7 +1681,7 @@ "description": [], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 114 + "lineNumber": 113 }, "deprecated": false } @@ -1855,7 +1855,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 84 + "lineNumber": 83 }, "deprecated": false, "children": [ @@ -1871,7 +1871,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 85 + "lineNumber": 84 }, "deprecated": false }, @@ -1887,7 +1887,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 86 + "lineNumber": 85 }, "deprecated": false }, @@ -1904,7 +1904,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 87 + "lineNumber": 86 }, "deprecated": false } @@ -2042,7 +2042,7 @@ ], "source": { "path": "src/core/public/saved_objects/saved_objects_client.ts", - "lineNumber": 143 + "lineNumber": 142 }, "deprecated": false, "initialIsOpen": false @@ -10487,6 +10487,21 @@ "lineNumber": 67 }, "deprecated": false + }, + { + "parentPluginId": "core", + "id": "def-server.SavedObjectMigrationContext.isSingleNamespaceType", + "type": "boolean", + "tags": [], + "label": "isSingleNamespaceType", + "description": [ + "\nWhether this is a single-namespace type or not" + ], + "source": { + "path": "src/core/server/saved_objects/migrations/types.ts", + "lineNumber": 71 + }, + "deprecated": false } ], "initialIsOpen": false @@ -10502,7 +10517,7 @@ ], "source": { "path": "src/core/server/saved_objects/migrations/types.ts", - "lineNumber": 87 + "lineNumber": 91 }, "deprecated": false, "children": [ @@ -10518,7 +10533,7 @@ ], "source": { "path": "src/core/server/saved_objects/migrations/types.ts", - "lineNumber": 88 + "lineNumber": 92 }, "deprecated": false } @@ -10656,7 +10671,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 162 + "lineNumber": 163 }, "deprecated": false, "children": [ @@ -10674,7 +10689,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 164 + "lineNumber": 165 }, "deprecated": false } @@ -12711,7 +12726,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 78 + "lineNumber": 79 }, "deprecated": false, "children": [ @@ -12727,7 +12742,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 79 + "lineNumber": 80 }, "deprecated": false }, @@ -12743,7 +12758,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 80 + "lineNumber": 81 }, "deprecated": false }, @@ -12759,7 +12774,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 81 + "lineNumber": 82 }, "deprecated": false }, @@ -12775,7 +12790,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 82 + "lineNumber": 83 }, "deprecated": false }, @@ -12791,7 +12806,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 83 + "lineNumber": 84 }, "deprecated": false }, @@ -12809,7 +12824,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 89 + "lineNumber": 90 }, "deprecated": false }, @@ -12827,7 +12842,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 91 + "lineNumber": 92 }, "deprecated": false }, @@ -12845,7 +12860,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 93 + "lineNumber": 94 }, "deprecated": false }, @@ -12863,7 +12878,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 97 + "lineNumber": 98 }, "deprecated": false }, @@ -12881,7 +12896,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 102 + "lineNumber": 103 }, "deprecated": false }, @@ -12914,7 +12929,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 108 + "lineNumber": 109 }, "deprecated": false }, @@ -12932,7 +12947,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 112 + "lineNumber": 113 }, "deprecated": false }, @@ -12950,7 +12965,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 117 + "lineNumber": 118 }, "deprecated": false }, @@ -12966,7 +12981,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 118 + "lineNumber": 119 }, "deprecated": false }, @@ -12988,7 +13003,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 140 + "lineNumber": 141 }, "deprecated": false }, @@ -13004,7 +13019,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 141 + "lineNumber": 142 }, "deprecated": false }, @@ -13022,7 +13037,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 149 + "lineNumber": 150 }, "deprecated": false }, @@ -13040,7 +13055,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 151 + "lineNumber": 152 }, "deprecated": false }, @@ -13065,7 +13080,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 155 + "lineNumber": 156 }, "deprecated": false } @@ -13081,7 +13096,7 @@ "description": [], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 61 + "lineNumber": 62 }, "deprecated": false, "children": [ @@ -13094,7 +13109,7 @@ "description": [], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 62 + "lineNumber": 63 }, "deprecated": false }, @@ -13107,7 +13122,7 @@ "description": [], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 63 + "lineNumber": 64 }, "deprecated": false } @@ -14848,7 +14863,7 @@ "description": [], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 69 + "lineNumber": 70 }, "deprecated": false, "children": [ @@ -14861,7 +14876,7 @@ "description": [], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 70 + "lineNumber": 71 }, "deprecated": false }, @@ -14877,7 +14892,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 71 + "lineNumber": 72 }, "deprecated": false } @@ -16647,7 +16662,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 50 + "lineNumber": 51 }, "deprecated": false, "children": [ @@ -16663,7 +16678,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 51 + "lineNumber": 52 }, "deprecated": false } @@ -16689,7 +16704,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 256 + "lineNumber": 257 }, "deprecated": false, "children": [ @@ -16704,7 +16719,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 260 + "lineNumber": 261 }, "deprecated": false }, @@ -16719,7 +16734,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 267 + "lineNumber": 268 }, "deprecated": false }, @@ -16737,7 +16752,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 271 + "lineNumber": 272 }, "deprecated": false }, @@ -16755,7 +16770,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 275 + "lineNumber": 276 }, "deprecated": false }, @@ -16773,7 +16788,32 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 279 + "lineNumber": 280 + }, + "deprecated": false + }, + { + "parentPluginId": "core", + "id": "def-server.SavedObjectsType.excludeOnUpgrade", + "type": "Function", + "tags": [], + "label": "excludeOnUpgrade", + "description": [ + "\nIf defined, allows a type to exclude unneeded documents from the migration process and effectively be deleted.\nSee {@link SavedObjectTypeExcludeFromUpgradeFilterHook} for more details." + ], + "signature": [ + { + "pluginId": "core", + "scope": "server", + "docId": "kibCoreSavedObjectsPluginApi", + "section": "def-server.SavedObjectTypeExcludeFromUpgradeFilterHook", + "text": "SavedObjectTypeExcludeFromUpgradeFilterHook" + }, + " | undefined" + ], + "source": { + "path": "src/core/server/saved_objects/types.ts", + "lineNumber": 285 }, "deprecated": false }, @@ -16797,7 +16837,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 283 + "lineNumber": 289 }, "deprecated": false }, @@ -16830,7 +16870,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 287 + "lineNumber": 293 }, "deprecated": false }, @@ -16848,7 +16888,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 336 + "lineNumber": 342 }, "deprecated": false }, @@ -16873,7 +16913,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 340 + "lineNumber": 346 }, "deprecated": false } @@ -16901,7 +16941,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 348 + "lineNumber": 354 }, "deprecated": false, "children": [ @@ -16919,7 +16959,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 352 + "lineNumber": 358 }, "deprecated": false }, @@ -16937,7 +16977,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 356 + "lineNumber": 362 }, "deprecated": false }, @@ -16955,7 +16995,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 361 + "lineNumber": 367 }, "deprecated": false }, @@ -16975,7 +17015,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 366 + "lineNumber": 372 }, "deprecated": false }, @@ -16995,7 +17035,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 371 + "lineNumber": 377 }, "deprecated": false }, @@ -17015,7 +17055,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 380 + "lineNumber": 386 }, "deprecated": false }, @@ -17040,7 +17080,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 398 + "lineNumber": 404 }, "deprecated": false }, @@ -17065,7 +17105,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 441 + "lineNumber": 447 }, "deprecated": false }, @@ -17084,7 +17124,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 481 + "lineNumber": 487 }, "deprecated": false } @@ -18040,7 +18080,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 171 + "lineNumber": 172 }, "deprecated": false, "initialIsOpen": false @@ -18421,7 +18461,7 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 235 + "lineNumber": 236 }, "deprecated": false, "initialIsOpen": false @@ -18794,7 +18834,40 @@ ], "source": { "path": "src/core/server/saved_objects/types.ts", - "lineNumber": 249 + "lineNumber": 250 + }, + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "core", + "id": "def-server.SavedObjectTypeExcludeFromUpgradeFilterHook", + "type": "Type", + "tags": [ + "alpha" + ], + "label": "SavedObjectTypeExcludeFromUpgradeFilterHook", + "description": [ + "\nIf defined, allows a type to run a search query and return a query filter that may match any documents which may\nbe excluded from the next migration upgrade process. Useful for cleaning up large numbers of old documents which\nare no longer needed and may slow the migration process.\n\nIf this hook fails, the migration will proceed without these documents having been filtered out, so this\nshould not be used as a guarantee that these documents have been deleted.\n" + ], + "signature": [ + "(toolkit: { readonlyEsClient: Pick<", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.ElasticsearchClient", + "text": "ElasticsearchClient" + }, + ", \"search\">; }) => ", + "QueryDslQueryContainer", + " | Promise<", + "QueryDslQueryContainer", + ">" + ], + "source": { + "path": "src/core/server/saved_objects/types.ts", + "lineNumber": 508 }, "deprecated": false, "initialIsOpen": false diff --git a/api_docs/core_saved_objects.mdx b/api_docs/core_saved_objects.mdx index 095da64b2b7b9..bed2039941ed9 100644 --- a/api_docs/core_saved_objects.mdx +++ b/api_docs/core_saved_objects.mdx @@ -18,7 +18,7 @@ import coreSavedObjectsObj from './core_saved_objects.json'; | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 2360 | 148 | 1081 | 31 | +| 2363 | 148 | 1081 | 31 | ## Client diff --git a/api_docs/dashboard.json b/api_docs/dashboard.json index 4cf4500ec163d..156f9146cf83f 100644 --- a/api_docs/dashboard.json +++ b/api_docs/dashboard.json @@ -1378,8 +1378,7 @@ "\nOptionally apply filers. NOTE: if given and used in conjunction with `dashboardId`, and the\nsaved dashboard has filters saved with it, this will _replace_ those filters." ], "signature": [ - "Filter", - "[] | undefined" + "any[] | undefined" ], "source": { "path": "src/plugins/dashboard/public/locator.ts", @@ -1390,15 +1389,14 @@ { "parentPluginId": "dashboard", "id": "def-public.DashboardAppLocatorParams.query", - "type": "Object", + "type": "Any", "tags": [], "label": "query", "description": [ "\nOptionally set a query. NOTE: if given and used in conjunction with `dashboardId`, and the\nsaved dashboard has a query saved with it, this will _replace_ that query." ], "signature": [ - "Query", - " | undefined" + "any" ], "source": { "path": "src/plugins/dashboard/public/locator.ts", @@ -1747,8 +1745,7 @@ "label": "filters", "description": [], "signature": [ - "Filter", - "[]" + "any[]" ], "source": { "path": "src/plugins/dashboard/public/types.ts", @@ -1772,12 +1769,12 @@ { "parentPluginId": "dashboard", "id": "def-public.DashboardContainerInput.query", - "type": "Object", + "type": "Any", "tags": [], "label": "query", "description": [], "signature": [ - "{ query: string | { [key: string]: any; }; language: string; }" + "any" ], "source": { "path": "src/plugins/dashboard/public/types.ts", @@ -2231,8 +2228,7 @@ "label": "getQuery", "description": [], "signature": [ - "() => ", - "Query" + "() => any" ], "source": { "path": "src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts", @@ -2250,9 +2246,7 @@ "label": "getFilters", "description": [], "signature": [ - "() => ", - "Filter", - "[]" + "() => any[]" ], "source": { "path": "src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts", @@ -2394,8 +2388,7 @@ "\nOptionally apply filers. NOTE: if given and used in conjunction with `dashboardId`, and the\nsaved dashboard has filters saved with it, this will _replace_ those filters." ], "signature": [ - "Filter", - "[] | undefined" + "any[] | undefined" ], "source": { "path": "src/plugins/dashboard/public/url_generator.ts", @@ -2406,15 +2399,14 @@ { "parentPluginId": "dashboard", "id": "def-public.DashboardUrlGeneratorState.query", - "type": "Object", + "type": "Any", "tags": [], "label": "query", "description": [ "\nOptionally set a query. NOTE: if given and used in conjunction with `dashboardId`, and the\nsaved dashboard has a query saved with it, this will _replace_ that query." ], "signature": [ - "Query", - " | undefined" + "any" ], "source": { "path": "src/plugins/dashboard/public/url_generator.ts", diff --git a/api_docs/dashboard.mdx b/api_docs/dashboard.mdx index 2adae80a02061..1ada2f7a695bd 100644 --- a/api_docs/dashboard.mdx +++ b/api_docs/dashboard.mdx @@ -18,7 +18,7 @@ import dashboardObj from './dashboard.json'; | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 160 | 1 | 137 | 9 | +| 160 | 4 | 137 | 9 | ## Client diff --git a/api_docs/data.json b/api_docs/data.json index 3fe060d094224..90e3ded072b82 100644 --- a/api_docs/data.json +++ b/api_docs/data.json @@ -2276,9 +2276,7 @@ "label": "getSearchSourceTimeFilter", "description": [], "signature": [ - "(forceNow?: Date | undefined) => ", - "RangeFilter", - "[] | { meta: { index: string | undefined; params: {}; alias: string; disabled: boolean; negate: boolean; }; query: { bool: { should: { bool: { filter: { range: { [x: string]: { gte: string; lte: string; }; }; }[]; }; }[]; minimum_should_match: number; }; }; }[]" + "(forceNow?: Date | undefined) => any[]" ], "source": { "path": "src/plugins/data/common/search/aggs/agg_configs.ts", @@ -2764,7 +2762,7 @@ ], "source": { "path": "src/plugins/data/public/plugin.ts", - "lineNumber": 54 + "lineNumber": 55 }, "deprecated": false, "children": [ @@ -2780,7 +2778,7 @@ ], "source": { "path": "src/plugins/data/public/plugin.ts", - "lineNumber": 70 + "lineNumber": 71 }, "deprecated": false, "children": [ @@ -2799,19 +2797,11 @@ "section": "def-public.PluginInitializerContext", "text": "PluginInitializerContext" }, - "; }>; }>; autocomplete: Readonly<{} & { querySuggestions: Readonly<{} & { enabled: boolean; }>; valueSuggestions: Readonly<{} & { enabled: boolean; timeout: moment.Duration; method: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ValueSuggestionsMethod", - "text": "ValueSuggestionsMethod" - }, - "; tiers: string[]; terminateAfter: moment.Duration; }>; }>; }>>" + "; }>; }>; autocomplete: Readonly<{} & { querySuggestions: Readonly<{} & { enabled: boolean; }>; valueSuggestions: Readonly<{} & { enabled: boolean; timeout: moment.Duration; tiers: string[]; terminateAfter: moment.Duration; }>; }>; }>>" ], "source": { "path": "src/plugins/data/public/plugin.ts", - "lineNumber": 70 + "lineNumber": 71 }, "deprecated": false, "isRequired": true @@ -2858,7 +2848,7 @@ ], "source": { "path": "src/plugins/data/public/plugin.ts", - "lineNumber": 79 + "lineNumber": 81 }, "deprecated": false, "children": [ @@ -2891,7 +2881,7 @@ ], "source": { "path": "src/plugins/data/public/plugin.ts", - "lineNumber": 80 + "lineNumber": 82 }, "deprecated": false, "isRequired": true @@ -2908,7 +2898,7 @@ ], "source": { "path": "src/plugins/data/public/plugin.ts", - "lineNumber": 81 + "lineNumber": 83 }, "deprecated": false, "isRequired": true @@ -2945,7 +2935,7 @@ ], "source": { "path": "src/plugins/data/public/plugin.ts", - "lineNumber": 127 + "lineNumber": 136 }, "deprecated": false, "children": [ @@ -2967,7 +2957,7 @@ ], "source": { "path": "src/plugins/data/public/plugin.ts", - "lineNumber": 127 + "lineNumber": 136 }, "deprecated": false, "isRequired": true @@ -2984,7 +2974,7 @@ ], "source": { "path": "src/plugins/data/public/plugin.ts", - "lineNumber": 127 + "lineNumber": 136 }, "deprecated": false, "isRequired": true @@ -3004,7 +2994,7 @@ ], "source": { "path": "src/plugins/data/public/plugin.ts", - "lineNumber": 209 + "lineNumber": 218 }, "deprecated": false, "children": [], @@ -3104,6 +3094,24 @@ }, "deprecated": false }, + { + "parentPluginId": "data", + "id": "def-public.FieldFormat.hidden", + "type": "boolean", + "tags": [ + "property", + "static" + ], + "label": "hidden", + "description": [ + "\nHidden field formats can only be accessed directly by id,\nThey won't appear in field format editor UI,\nBut they can be accessed and used from code internally.\n" + ], + "source": { + "path": "src/plugins/data/common/field_formats/field_format.ts", + "lineNumber": 43 + }, + "deprecated": false + }, { "parentPluginId": "data", "id": "def-public.FieldFormat.title", @@ -3116,7 +3124,7 @@ "description": [], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 38 + "lineNumber": 50 }, "deprecated": false }, @@ -3135,7 +3143,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 44 + "lineNumber": 56 }, "deprecated": false }, @@ -3155,7 +3163,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 52 + "lineNumber": 64 }, "deprecated": false }, @@ -3175,7 +3183,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 60 + "lineNumber": 72 }, "deprecated": false }, @@ -3195,7 +3203,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 68 + "lineNumber": 80 }, "deprecated": false }, @@ -3214,7 +3222,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 74 + "lineNumber": 86 }, "deprecated": false }, @@ -3230,7 +3238,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 75 + "lineNumber": 87 }, "deprecated": false }, @@ -3246,7 +3254,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 77 + "lineNumber": 89 }, "deprecated": false }, @@ -3269,7 +3277,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 78 + "lineNumber": 90 }, "deprecated": false }, @@ -3285,7 +3293,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 80 + "lineNumber": 92 }, "deprecated": false, "children": [ @@ -3301,7 +3309,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 80 + "lineNumber": 92 }, "deprecated": false, "isRequired": true @@ -3325,7 +3333,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 80 + "lineNumber": 92 }, "deprecated": false, "isRequired": false @@ -3359,7 +3367,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 98 + "lineNumber": 110 }, "deprecated": false, "children": [ @@ -3375,7 +3383,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 99 + "lineNumber": 111 }, "deprecated": false, "isRequired": true @@ -3400,7 +3408,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 100 + "lineNumber": 112 }, "deprecated": false, "isRequired": true @@ -3419,7 +3427,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 101 + "lineNumber": 113 }, "deprecated": false, "isRequired": false @@ -3454,7 +3462,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 118 + "lineNumber": 130 }, "deprecated": false, "children": [ @@ -3476,7 +3484,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 119 + "lineNumber": 131 }, "deprecated": false, "isRequired": true @@ -3502,7 +3510,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 133 + "lineNumber": 145 }, "deprecated": false, "children": [], @@ -3526,7 +3534,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 144 + "lineNumber": 156 }, "deprecated": false, "children": [ @@ -3544,7 +3552,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 144 + "lineNumber": 156 }, "deprecated": false, "isRequired": true @@ -3568,7 +3576,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 161 + "lineNumber": 173 }, "deprecated": false, "children": [], @@ -3590,7 +3598,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 172 + "lineNumber": 184 }, "deprecated": false, "children": [], @@ -3611,7 +3619,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 193 + "lineNumber": 205 }, "deprecated": false, "children": [ @@ -3627,7 +3635,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 193 + "lineNumber": 205 }, "deprecated": false, "isRequired": true @@ -3648,7 +3656,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 197 + "lineNumber": 209 }, "deprecated": false, "children": [], @@ -3673,7 +3681,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 204 + "lineNumber": 216 }, "deprecated": false, "children": [ @@ -3689,7 +3697,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 204 + "lineNumber": 216 }, "deprecated": false, "isRequired": true @@ -8347,47 +8355,66 @@ "id": "def-public.castEsToKbnFieldTypeName", "type": "Function", "tags": [ - "return" + "deprecated" ], "label": "castEsToKbnFieldTypeName", - "description": [ - "\n Get the KbnFieldType name for an esType string\n" - ], + "description": [], "signature": [ "(esType: string) => ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - } + "KBN_FIELD_TYPES" ], "source": { - "path": "src/plugins/data/common/kbn_field_types/kbn_field_types.ts", - "lineNumber": 39 + "path": "src/plugins/data/common/kbn_field_types/index.ts", + "lineNumber": 22 }, - "deprecated": false, + "deprecated": true, + "removeBy": "8.0", + "references": [ + { + "plugin": "indexPatternFieldEditor", + "link": { + "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/field_format_editor.tsx", + "lineNumber": 22 + } + }, + { + "plugin": "indexPatternFieldEditor", + "link": { + "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/field_format_editor.tsx", + "lineNumber": 83 + } + }, + { + "plugin": "savedObjectsManagement", + "link": { + "path": "src/plugins/saved_objects_management/public/lib/create_field_list.ts", + "lineNumber": 11 + } + }, + { + "plugin": "savedObjectsManagement", + "link": { + "path": "src/plugins/saved_objects_management/public/lib/create_field_list.ts", + "lineNumber": 94 + } + } + ], + "returnComment": [], "children": [ { "parentPluginId": "data", - "id": "def-public.castEsToKbnFieldTypeName.$1", + "id": "def-public.esType", "type": "string", "tags": [], "label": "esType", "description": [], - "signature": [ - "string" - ], "source": { - "path": "src/plugins/data/common/kbn_field_types/kbn_field_types.ts", - "lineNumber": 39 + "path": "node_modules/@kbn/field-types/target_types/kbn_field_types.d.ts", + "lineNumber": 22 }, - "deprecated": false, - "isRequired": true + "deprecated": false } ], - "returnComment": [], "initialIsOpen": false }, { @@ -8527,27 +8554,65 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-public.getEsQueryConfig", + "type": "Function", + "tags": [], + "label": "getEsQueryConfig", + "description": [], + "signature": [ + "(config: KibanaConfig) => ", + "EsQueryConfig" + ], + "source": { + "path": "src/plugins/data/common/es_query/get_es_query_config.ts", + "lineNumber": 16 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-public.getEsQueryConfig.$1", + "type": "Object", + "tags": [], + "label": "config", + "description": [], + "signature": [ + "KibanaConfig" + ], + "source": { + "path": "src/plugins/data/common/es_query/get_es_query_config.ts", + "lineNumber": 16 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-public.getKbnTypeNames", "type": "Function", "tags": [ - "return" + "deprecated" ], "label": "getKbnTypeNames", - "description": [ - "\n Get the esTypes known by all kbnFieldTypes\n" - ], + "description": [], "signature": [ "() => string[]" ], "source": { - "path": "src/plugins/data/common/kbn_field_types/kbn_field_types.ts", - "lineNumber": 30 + "path": "src/plugins/data/common/kbn_field_types/index.ts", + "lineNumber": 40 }, - "deprecated": false, - "children": [], + "deprecated": true, + "removeBy": "8.0", + "references": [], "returnComment": [], + "children": [], "initialIsOpen": false }, { @@ -8689,9 +8754,7 @@ "section": "def-common.TimeRange", "text": "TimeRange" }, - ", options: { forceNow?: Date | undefined; fieldName?: string | undefined; } | undefined) => ", - "RangeFilter", - " | undefined" + ", options: { forceNow?: Date | undefined; fieldName?: string | undefined; } | undefined) => any" ], "source": { "path": "src/plugins/data/common/query/timefilter/get_time.ts", @@ -8994,12 +9057,11 @@ "label": "isFilter", "description": [], "signature": [ - "(x: unknown) => x is ", - "Filter" + "(x: unknown) => x is any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 69 + "lineNumber": 77 }, "deprecated": true, "references": [], @@ -9016,8 +9078,8 @@ "unknown" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/meta_filter.d.ts", - "lineNumber": 47 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/meta_filter.d.ts", + "lineNumber": 46 }, "deprecated": false } @@ -9034,13 +9096,11 @@ "label": "isFilters", "description": [], "signature": [ - "(x: unknown) => x is ", - "Filter", - "[]" + "(x: unknown) => x is any[]" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 130 + "lineNumber": 138 }, "deprecated": true, "references": [ @@ -9072,8 +9132,8 @@ "unknown" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/meta_filter.d.ts", - "lineNumber": 48 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/meta_filter.d.ts", + "lineNumber": 47 }, "deprecated": false } @@ -9142,8 +9202,7 @@ "label": "isQuery", "description": [], "signature": [ - "(x: unknown) => x is ", - "Query" + "(x: unknown) => x is any" ], "source": { "path": "src/plugins/data/common/query/is_query.ts", @@ -9273,7 +9332,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 196 + "lineNumber": 195 }, "deprecated": false, "children": [ @@ -9302,7 +9361,71 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".FILTER>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\"> & Pick<{ geo_bounding_box?: string | undefined; filter?: string | undefined; }, \"geo_bounding_box\"> & Pick<{ geo_bounding_box?: string | undefined; filter?: string | undefined; }, \"filter\">, \"enabled\" | \"id\" | \"filter\" | \"customLabel\" | \"schema\" | \"geo_bounding_box\" | \"json\" | \"timeShift\">, ", + ".FILTER>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\"> & Pick<{ geo_bounding_box?: ({ type: \"geo_bounding_box\"; } & GeoBox) | ({ type: \"geo_bounding_box\"; } & { top_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & { top_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & WellKnownText) | undefined; filter?: any; }, \"filter\" | \"geo_bounding_box\"> & Pick<{ geo_bounding_box?: ({ type: \"geo_bounding_box\"; } & GeoBox) | ({ type: \"geo_bounding_box\"; } & { top_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & { top_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & WellKnownText) | undefined; filter?: any; }, never>, \"enabled\" | \"id\" | \"filter\" | \"customLabel\" | \"schema\" | \"geo_bounding_box\" | \"json\" | \"timeShift\">, ", "AggExpressionType", ", ", { @@ -9326,7 +9449,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 197 + "lineNumber": 196 }, "deprecated": false }, @@ -9355,60 +9478,39 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".FILTERS>, \"enabled\" | \"id\" | \"schema\" | \"json\" | \"timeShift\"> & Pick<{ filters?: string | undefined; }, \"filters\"> & Pick<{ filters?: string | undefined; }, never>, \"enabled\" | \"filters\" | \"id\" | \"schema\" | \"json\" | \"timeShift\">, ", - "AggExpressionType", - ", ", + ".FILTERS>, \"enabled\" | \"id\" | \"schema\" | \"json\" | \"timeShift\"> & Pick<{ filters?: ", { "pluginId": "expressions", "scope": "common", "docId": "kibExpressionsPluginApi", - "section": "def-common.ExecutionContext", - "text": "ExecutionContext" + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" }, - "<", + "<\"kibana_query_filter\", ", { - "pluginId": "inspector", + "pluginId": "data", "scope": "common", - "docId": "kibInspectorPluginApi", - "section": "def-common.Adapters", - "text": "Adapters" + "docId": "kibDataSearchPluginApi", + "section": "def-common.QueryFilter", + "text": "QueryFilter" }, - ", ", - "SerializableState", - ">>" - ], - "source": { - "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 198 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-public.AggFunctionsMapping.aggSignificantTerms", - "type": "Object", - "tags": [], - "label": "aggSignificantTerms", - "description": [], - "signature": [ + ">[] | undefined; }, \"filters\"> & Pick<{ filters?: ", { "pluginId": "expressions", "scope": "common", "docId": "kibExpressionsPluginApi", - "section": "def-common.ExpressionFunctionDefinition", - "text": "ExpressionFunctionDefinition" + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" }, - "<\"aggSignificantTerms\", any, ", - "AggExpressionFunctionArgs", - "<", + "<\"kibana_query_filter\", ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.BUCKET_TYPES", - "text": "BUCKET_TYPES" + "section": "def-common.QueryFilter", + "text": "QueryFilter" }, - ".SIGNIFICANT_TERMS>, ", + ">[] | undefined; }, never>, \"enabled\" | \"filters\" | \"id\" | \"schema\" | \"json\" | \"timeShift\">, ", "AggExpressionType", ", ", { @@ -9432,7 +9534,60 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 199 + "lineNumber": 197 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-public.AggFunctionsMapping.aggSignificantTerms", + "type": "Object", + "tags": [], + "label": "aggSignificantTerms", + "description": [], + "signature": [ + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionFunctionDefinition", + "text": "ExpressionFunctionDefinition" + }, + "<\"aggSignificantTerms\", any, ", + "AggExpressionFunctionArgs", + "<", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.BUCKET_TYPES", + "text": "BUCKET_TYPES" + }, + ".SIGNIFICANT_TERMS>, ", + "AggExpressionType", + ", ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExecutionContext", + "text": "ExecutionContext" + }, + "<", + { + "pluginId": "inspector", + "scope": "common", + "docId": "kibInspectorPluginApi", + "section": "def-common.Adapters", + "text": "Adapters" + }, + ", ", + "SerializableState", + ">>" + ], + "source": { + "path": "src/plugins/data/common/search/aggs/types.ts", + "lineNumber": 198 }, "deprecated": false }, @@ -9461,7 +9616,71 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".IP_RANGE>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\"> & Pick<{ ranges?: string | undefined; ipRangeType?: string | undefined; }, \"ipRangeType\" | \"ranges\"> & Pick<{ ranges?: string | undefined; ipRangeType?: string | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"ipRangeType\" | \"ranges\">, ", + ".IP_RANGE>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\"> & Pick<{ ranges?: (", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"cidr\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.Cidr", + "text": "Cidr" + }, + "> | ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"ip_range\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.IpRange", + "text": "IpRange" + }, + ">)[] | undefined; ipRangeType?: string | undefined; }, \"ipRangeType\" | \"ranges\"> & Pick<{ ranges?: (", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"cidr\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.Cidr", + "text": "Cidr" + }, + "> | ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"ip_range\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.IpRange", + "text": "IpRange" + }, + ">)[] | undefined; ipRangeType?: string | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"ipRangeType\" | \"ranges\">, ", "AggExpressionType", ", ", { @@ -9485,7 +9704,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 200 + "lineNumber": 199 }, "deprecated": false }, @@ -9514,7 +9733,39 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".DATE_RANGE>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"time_zone\"> & Pick<{ ranges?: string | undefined; }, \"ranges\"> & Pick<{ ranges?: string | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"ranges\" | \"time_zone\">, ", + ".DATE_RANGE>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"time_zone\"> & Pick<{ ranges?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"date_range\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.DateRange", + "text": "DateRange" + }, + ">[] | undefined; }, \"ranges\"> & Pick<{ ranges?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"date_range\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.DateRange", + "text": "DateRange" + }, + ">[] | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"ranges\" | \"time_zone\">, ", "AggExpressionType", ", ", { @@ -9538,7 +9789,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 201 + "lineNumber": 200 }, "deprecated": false }, @@ -9567,7 +9818,39 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".RANGE>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\"> & Pick<{ ranges?: string | undefined; }, \"ranges\"> & Pick<{ ranges?: string | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"ranges\">, ", + ".RANGE>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\"> & Pick<{ ranges?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"numerical_range\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.NumericalRange", + "text": "NumericalRange" + }, + ">[] | undefined; }, \"ranges\"> & Pick<{ ranges?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"numerical_range\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.NumericalRange", + "text": "NumericalRange" + }, + ">[] | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"ranges\">, ", "AggExpressionType", ", ", { @@ -9591,7 +9874,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 202 + "lineNumber": 201 }, "deprecated": false }, @@ -9644,7 +9927,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 203 + "lineNumber": 202 }, "deprecated": false }, @@ -9673,7 +9956,71 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".GEOHASH_GRID>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"autoPrecision\" | \"precision\" | \"useGeocentroid\" | \"isFilteredByCollar\"> & Pick<{ boundingBox?: string | undefined; }, \"boundingBox\"> & Pick<{ boundingBox?: string | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"autoPrecision\" | \"precision\" | \"useGeocentroid\" | \"isFilteredByCollar\" | \"boundingBox\">, ", + ".GEOHASH_GRID>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"autoPrecision\" | \"precision\" | \"useGeocentroid\" | \"isFilteredByCollar\"> & Pick<{ boundingBox?: ({ type: \"geo_bounding_box\"; } & GeoBox) | ({ type: \"geo_bounding_box\"; } & { top_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & { top_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & WellKnownText) | undefined; }, \"boundingBox\"> & Pick<{ boundingBox?: ({ type: \"geo_bounding_box\"; } & GeoBox) | ({ type: \"geo_bounding_box\"; } & { top_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & { top_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & WellKnownText) | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"autoPrecision\" | \"precision\" | \"useGeocentroid\" | \"isFilteredByCollar\" | \"boundingBox\">, ", "AggExpressionType", ", ", { @@ -9697,7 +10044,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 204 + "lineNumber": 203 }, "deprecated": false }, @@ -9726,7 +10073,39 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".HISTOGRAM>, \"enabled\" | \"interval\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"used_interval\" | \"maxBars\" | \"intervalBase\" | \"min_doc_count\" | \"has_extended_bounds\"> & Pick<{ extended_bounds?: string | undefined; }, \"extended_bounds\"> & Pick<{ extended_bounds?: string | undefined; }, never>, \"enabled\" | \"interval\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"used_interval\" | \"maxBars\" | \"intervalBase\" | \"min_doc_count\" | \"has_extended_bounds\" | \"extended_bounds\">, ", + ".HISTOGRAM>, \"enabled\" | \"interval\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"used_interval\" | \"maxBars\" | \"intervalBase\" | \"min_doc_count\" | \"has_extended_bounds\"> & Pick<{ extended_bounds?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"extended_bounds\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + }, + "> | undefined; }, \"extended_bounds\"> & Pick<{ extended_bounds?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"extended_bounds\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + }, + "> | undefined; }, never>, \"enabled\" | \"interval\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"used_interval\" | \"maxBars\" | \"intervalBase\" | \"min_doc_count\" | \"has_extended_bounds\" | \"extended_bounds\">, ", "AggExpressionType", ", ", { @@ -9750,7 +10129,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 205 + "lineNumber": 204 }, "deprecated": false }, @@ -9779,7 +10158,71 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".DATE_HISTOGRAM>, \"enabled\" | \"interval\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"time_zone\" | \"used_interval\" | \"min_doc_count\" | \"useNormalizedEsInterval\" | \"scaleMetricValues\" | \"used_time_zone\" | \"drop_partials\" | \"format\"> & Pick<{ timeRange?: string | undefined; extended_bounds?: string | undefined; }, \"timeRange\" | \"extended_bounds\"> & Pick<{ timeRange?: string | undefined; extended_bounds?: string | undefined; }, never>, \"enabled\" | \"interval\" | \"timeRange\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"time_zone\" | \"used_interval\" | \"min_doc_count\" | \"extended_bounds\" | \"useNormalizedEsInterval\" | \"scaleMetricValues\" | \"used_time_zone\" | \"drop_partials\" | \"format\">, ", + ".DATE_HISTOGRAM>, \"enabled\" | \"interval\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"time_zone\" | \"used_interval\" | \"min_doc_count\" | \"useNormalizedEsInterval\" | \"scaleMetricValues\" | \"used_time_zone\" | \"drop_partials\" | \"format\"> & Pick<{ timeRange?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"timerange\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataQueryPluginApi", + "section": "def-common.TimeRange", + "text": "TimeRange" + }, + "> | undefined; extended_bounds?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"extended_bounds\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + }, + "> | undefined; }, \"timeRange\" | \"extended_bounds\"> & Pick<{ timeRange?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"timerange\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataQueryPluginApi", + "section": "def-common.TimeRange", + "text": "TimeRange" + }, + "> | undefined; extended_bounds?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"extended_bounds\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + }, + "> | undefined; }, never>, \"enabled\" | \"interval\" | \"timeRange\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"time_zone\" | \"used_interval\" | \"min_doc_count\" | \"extended_bounds\" | \"useNormalizedEsInterval\" | \"scaleMetricValues\" | \"used_time_zone\" | \"drop_partials\" | \"format\">, ", "AggExpressionType", ", ", { @@ -9803,7 +10246,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 206 + "lineNumber": 205 }, "deprecated": false }, @@ -9860,7 +10303,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 207 + "lineNumber": 206 }, "deprecated": false }, @@ -9913,7 +10356,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 208 + "lineNumber": 207 }, "deprecated": false }, @@ -9974,7 +10417,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 209 + "lineNumber": 208 }, "deprecated": false }, @@ -10035,7 +10478,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 210 + "lineNumber": 209 }, "deprecated": false }, @@ -10096,7 +10539,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 211 + "lineNumber": 210 }, "deprecated": false }, @@ -10157,7 +10600,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 212 + "lineNumber": 211 }, "deprecated": false }, @@ -10218,7 +10661,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 213 + "lineNumber": 212 }, "deprecated": false }, @@ -10271,7 +10714,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 214 + "lineNumber": 213 }, "deprecated": false }, @@ -10324,7 +10767,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 215 + "lineNumber": 214 }, "deprecated": false }, @@ -10381,7 +10824,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 216 + "lineNumber": 215 }, "deprecated": false }, @@ -10438,7 +10881,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 217 + "lineNumber": 216 }, "deprecated": false }, @@ -10491,7 +10934,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 218 + "lineNumber": 217 }, "deprecated": false }, @@ -10544,7 +10987,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 219 + "lineNumber": 218 }, "deprecated": false }, @@ -10597,7 +11040,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 220 + "lineNumber": 219 }, "deprecated": false }, @@ -10650,7 +11093,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 221 + "lineNumber": 220 }, "deprecated": false }, @@ -10703,7 +11146,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 222 + "lineNumber": 221 }, "deprecated": false }, @@ -10756,7 +11199,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 223 + "lineNumber": 222 }, "deprecated": false }, @@ -10813,7 +11256,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 224 + "lineNumber": 223 }, "deprecated": false }, @@ -10866,7 +11309,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 225 + "lineNumber": 224 }, "deprecated": false }, @@ -10919,7 +11362,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 226 + "lineNumber": 225 }, "deprecated": false }, @@ -10976,7 +11419,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 227 + "lineNumber": 226 }, "deprecated": false }, @@ -11029,7 +11472,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 228 + "lineNumber": 227 }, "deprecated": false }, @@ -11082,7 +11525,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 229 + "lineNumber": 228 }, "deprecated": false }, @@ -11135,7 +11578,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 230 + "lineNumber": 229 }, "deprecated": false } @@ -11255,8 +11698,7 @@ "label": "filters", "description": [], "signature": [ - "Filter", - "[]" + "any[]" ], "source": { "path": "src/plugins/data/public/actions/apply_filter_action.ts", @@ -11340,9 +11782,7 @@ "signature": [ "({ data, negate, }: ", "ValueClickDataContext", - ") => Promise<", - "Filter", - "[]>" + ") => Promise" ], "source": { "path": "src/plugins/data/public/types.ts", @@ -11379,9 +11819,7 @@ "signature": [ "(event: ", "RangeSelectDataContext", - ") => Promise<", - "Filter", - "[]>" + ") => Promise" ], "source": { "path": "src/plugins/data/public/types.ts", @@ -13546,41 +13984,6 @@ "lineNumber": 30 } }, - { - "plugin": "visualizations", - "link": { - "path": "src/plugins/visualizations/public/saved_visualizations/_saved_vis.ts", - "lineNumber": 22 - } - }, - { - "plugin": "visualizations", - "link": { - "path": "src/plugins/visualizations/public/saved_visualizations/_saved_vis.ts", - "lineNumber": 96 - } - }, - { - "plugin": "visualizations", - "link": { - "path": "src/plugins/visualizations/public/embeddable/visualize_embeddable.ts", - "lineNumber": 14 - } - }, - { - "plugin": "visualizations", - "link": { - "path": "src/plugins/visualizations/public/embeddable/visualize_embeddable.ts", - "lineNumber": 50 - } - }, - { - "plugin": "visualizations", - "link": { - "path": "src/plugins/visualizations/public/embeddable/visualize_embeddable.ts", - "lineNumber": 72 - } - }, { "plugin": "savedObjectsManagement", "link": { @@ -13725,21 +14128,21 @@ "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/helpers.tsx", - "lineNumber": 149 + "lineNumber": 148 } }, { "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx", - "lineNumber": 31 + "lineNumber": 29 } }, { "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx", - "lineNumber": 122 + "lineNumber": 120 } }, { @@ -14229,7 +14632,7 @@ "plugin": "securitySolution", "link": { "path": "x-pack/plugins/security_solution/public/common/components/top_n/top_n.tsx", - "lineNumber": 55 + "lineNumber": 56 } }, { @@ -14243,7 +14646,7 @@ "plugin": "securitySolution", "link": { "path": "x-pack/plugins/security_solution/public/common/components/top_n/index.tsx", - "lineNumber": 79 + "lineNumber": 80 } }, { @@ -14421,20 +14824,6 @@ "lineNumber": 54 } }, - { - "plugin": "uptime", - "link": { - "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts", - "lineNumber": 8 - } - }, - { - "plugin": "uptime", - "link": { - "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts", - "lineNumber": 28 - } - }, { "plugin": "timelines", "link": { @@ -15135,20 +15524,6 @@ "lineNumber": 405 } }, - { - "plugin": "uptime", - "link": { - "path": "x-pack/plugins/uptime/public/state/reducers/index_pattern.ts", - "lineNumber": 10 - } - }, - { - "plugin": "uptime", - "link": { - "path": "x-pack/plugins/uptime/public/state/reducers/index_pattern.ts", - "lineNumber": 13 - } - }, { "plugin": "ml", "link": { @@ -16724,7 +17099,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 26 + "lineNumber": 25 }, "deprecated": false, "children": [ @@ -16758,7 +17133,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 31 + "lineNumber": 30 }, "deprecated": false, "returnComment": [], @@ -16782,7 +17157,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 31 + "lineNumber": 30 }, "deprecated": false } @@ -16810,7 +17185,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 35 + "lineNumber": 34 }, "deprecated": false, "returnComment": [], @@ -17073,7 +17448,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 70 + "lineNumber": 69 }, "deprecated": false, "children": [ @@ -17089,51 +17464,43 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 71 + "lineNumber": 70 }, "deprecated": false }, { "parentPluginId": "data", "id": "def-public.SearchSourceFields.query", - "type": "Object", + "type": "Any", "tags": [], "label": "query", "description": [ "\n{@link Query}" ], "signature": [ - "Query", - " | undefined" + "any" ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 75 + "lineNumber": 74 }, "deprecated": false }, { "parentPluginId": "data", "id": "def-public.SearchSourceFields.filter", - "type": "CompoundType", + "type": "Any", "tags": [], "label": "filter", "description": [ "\n{@link Filter}" ], "signature": [ - "Filter", - " | ", - "Filter", - "[] | (() => ", - "Filter", - " | ", - "Filter", - "[] | undefined) | undefined" + "any" ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 79 + "lineNumber": 78 }, "deprecated": false }, @@ -17199,7 +17566,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 83 + "lineNumber": 82 }, "deprecated": false }, @@ -17215,7 +17582,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 84 + "lineNumber": 83 }, "deprecated": false }, @@ -17231,7 +17598,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 85 + "lineNumber": 84 }, "deprecated": false }, @@ -17247,7 +17614,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 86 + "lineNumber": 85 }, "deprecated": false }, @@ -17273,7 +17640,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 90 + "lineNumber": 89 }, "deprecated": false }, @@ -17289,7 +17656,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 91 + "lineNumber": 90 }, "deprecated": false }, @@ -17305,7 +17672,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 92 + "lineNumber": 91 }, "deprecated": false }, @@ -17321,7 +17688,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 93 + "lineNumber": 92 }, "deprecated": false }, @@ -17337,7 +17704,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 94 + "lineNumber": 93 }, "deprecated": false }, @@ -17362,7 +17729,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 98 + "lineNumber": 97 }, "deprecated": false }, @@ -17378,11 +17745,11 @@ "\nRetreive fields directly from _source (legacy behavior)\n" ], "signature": [ - "string | boolean | string[] | undefined" + "string | string[] | undefined" ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 104 + "lineNumber": 103 }, "deprecated": true, "references": [ @@ -17423,7 +17790,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 108 + "lineNumber": 107 }, "deprecated": false }, @@ -17446,7 +17813,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 109 + "lineNumber": 108 }, "deprecated": false }, @@ -17462,7 +17829,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 110 + "lineNumber": 109 }, "deprecated": false }, @@ -17478,7 +17845,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 111 + "lineNumber": 110 }, "deprecated": false }, @@ -17501,7 +17868,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 113 + "lineNumber": 112 }, "deprecated": false } @@ -17579,9 +17946,12 @@ "tags": [], "label": "ES_FIELD_TYPES", "description": [], + "signature": [ + "ES_FIELD_TYPES" + ], "source": { - "path": "src/plugins/data/common/kbn_field_types/types.ts", - "lineNumber": 18 + "path": "node_modules/@kbn/field-types/target_types/types.d.ts", + "lineNumber": 9 }, "deprecated": false, "initialIsOpen": false @@ -17607,9 +17977,12 @@ "tags": [], "label": "KBN_FIELD_TYPES", "description": [], + "signature": [ + "KBN_FIELD_TYPES" + ], "source": { - "path": "src/plugins/data/common/kbn_field_types/types.ts", - "lineNumber": 65 + "path": "node_modules/@kbn/field-types/target_types/types.d.ts", + "lineNumber": 47 }, "deprecated": false, "initialIsOpen": false @@ -17637,7 +18010,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 40 + "lineNumber": 39 }, "deprecated": false, "initialIsOpen": false @@ -17852,7 +18225,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 129 + "lineNumber": 128 }, "deprecated": false, "initialIsOpen": false @@ -17884,12 +18257,11 @@ "label": "CustomFilter", "description": [], "signature": [ - "Filter", - " & { query: any; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 270 + "lineNumber": 318 }, "deprecated": true, "references": [], @@ -18010,7 +18382,7 @@ ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 305 + "lineNumber": 353 }, "deprecated": true, "references": [ @@ -18081,7 +18453,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 55 + "lineNumber": 54 }, "deprecated": false, "initialIsOpen": false @@ -18134,13 +18506,7 @@ "label": "ExecutionContextSearch", "description": [], "signature": [ - "{ filters?: ", - "Filter", - "[] | undefined; query?: ", - "Query", - " | ", - "Query", - "[] | undefined; timeRange?: ", + "{ filters?: any[] | undefined; query?: any; timeRange?: ", { "pluginId": "data", "scope": "common", @@ -18167,16 +18533,11 @@ "label": "ExistsFilter", "description": [], "signature": [ - "Filter", - " & { meta: ", - "FilterMeta", - "; exists?: ", - "FilterExistsProperty", - " | undefined; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 245 + "lineNumber": 293 }, "deprecated": true, "references": [ @@ -18433,15 +18794,11 @@ "label": "Filter", "description": [], "signature": [ - "{ $state?: ", - "FilterState", - " | undefined; meta: ", - "FilterMeta", - "; query?: any; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 230 + "lineNumber": 278 }, "deprecated": true, "references": [ @@ -19023,35 +19380,35 @@ "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/store/t_grid/model.ts", - "lineNumber": 52 + "lineNumber": 54 } }, { "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx", - "lineNumber": 30 + "lineNumber": 28 } }, { "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx", - "lineNumber": 116 + "lineNumber": 114 } }, { "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx", - "lineNumber": 28 + "lineNumber": 27 } }, { "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx", - "lineNumber": 109 + "lineNumber": 108 } }, { @@ -19733,41 +20090,6 @@ "lineNumber": 183 } }, - { - "plugin": "securitySolution", - "link": { - "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/helpers.ts", - "lineNumber": 8 - } - }, - { - "plugin": "securitySolution", - "link": { - "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/helpers.ts", - "lineNumber": 14 - } - }, - { - "plugin": "securitySolution", - "link": { - "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/helpers.ts", - "lineNumber": 50 - } - }, - { - "plugin": "securitySolution", - "link": { - "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/index.tsx", - "lineNumber": 11 - } - }, - { - "plugin": "securitySolution", - "link": { - "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/index.tsx", - "lineNumber": 21 - } - }, { "plugin": "securitySolution", "link": { @@ -19936,6 +20258,41 @@ "lineNumber": 36 } }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/helpers.ts", + "lineNumber": 8 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/helpers.ts", + "lineNumber": 14 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/helpers.ts", + "lineNumber": 50 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/index.tsx", + "lineNumber": 11 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/index.tsx", + "lineNumber": 21 + } + }, { "plugin": "securitySolution", "link": { @@ -20093,29 +20450,29 @@ { "plugin": "securitySolution", "link": { - "path": "x-pack/plugins/security_solution/public/detections/components/alerts_histogram_panel/index.tsx", + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/index.tsx", "lineNumber": 22 } }, { "plugin": "securitySolution", "link": { - "path": "x-pack/plugins/security_solution/public/detections/components/alerts_histogram_panel/index.tsx", - "lineNumber": 63 + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/index.tsx", + "lineNumber": 62 } }, { "plugin": "securitySolution", "link": { "path": "x-pack/plugins/security_solution/public/overview/components/signals_by_category/index.tsx", - "lineNumber": 15 + "lineNumber": 14 } }, { "plugin": "securitySolution", "link": { "path": "x-pack/plugins/security_solution/public/overview/components/signals_by_category/index.tsx", - "lineNumber": 23 + "lineNumber": 22 } }, { @@ -20129,7 +20486,7 @@ "plugin": "securitySolution", "link": { "path": "x-pack/plugins/security_solution/public/common/components/top_n/top_n.tsx", - "lineNumber": 54 + "lineNumber": 55 } }, { @@ -20143,7 +20500,7 @@ "plugin": "securitySolution", "link": { "path": "x-pack/plugins/security_solution/public/common/components/top_n/index.tsx", - "lineNumber": 30 + "lineNumber": 31 } }, { @@ -20223,6 +20580,20 @@ "lineNumber": 114 } }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_count_panel/index.tsx", + "lineNumber": 23 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_count_panel/index.tsx", + "lineNumber": 30 + } + }, { "plugin": "securitySolution", "link": { @@ -21611,21 +21982,9 @@ "[]) => void; deserialize: ", "FormatFactory", "; getDefaultConfig: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", { "pluginId": "data", @@ -21639,71 +21998,23 @@ " | undefined; getTypeWithoutMetaParams: (formatId: string) => ", "FieldFormatInstanceType", " | undefined; getDefaultType: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", "FieldFormatInstanceType", " | undefined; getTypeNameByEsTypes: (esTypes: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", " | undefined; getDefaultTypeName: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", " | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "; getInstance: ((formatId: string, params?: Record) => ", { "pluginId": "data", @@ -21713,21 +22024,9 @@ "text": "FieldFormat" }, ") & _.MemoizedFunction; getDefaultInstancePlain: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined, params?: Record) => ", { "pluginId": "data", @@ -21737,47 +22036,17 @@ "text": "FieldFormat" }, "; getDefaultInstanceCacheResolver: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[]) => string; getByFieldType: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ") => ", "FieldFormatInstanceType", "[]; getDefaultInstance: ((fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined, params?: Record) => ", { "pluginId": "data", @@ -21786,7 +22055,7 @@ "section": "def-common.FieldFormat", "text": "FieldFormat" }, - ") & _.MemoizedFunction; parseDefaultTypeMap: (value: any) => void; }" + ") & _.MemoizedFunction; parseDefaultTypeMap: (value: any) => void; has: (id: string) => boolean; }" ], "source": { "path": "src/plugins/data/common/field_formats/index.ts", @@ -21832,7 +22101,7 @@ ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 300 + "lineNumber": 348 }, "deprecated": true, "references": [ @@ -22378,7 +22647,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 20 + "lineNumber": 19 }, "deprecated": false, "initialIsOpen": false @@ -22421,7 +22690,7 @@ ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 290 + "lineNumber": 338 }, "deprecated": true, "references": [ @@ -22446,39 +22715,18 @@ "lineNumber": 97 } }, - { - "plugin": "alerting", - "link": { - "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization_kuery.ts", - "lineNumber": 11 - } - }, - { - "plugin": "alerting", - "link": { - "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization_kuery.ts", - "lineNumber": 39 - } - }, - { - "plugin": "alerting", - "link": { - "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization_kuery.ts", - "lineNumber": 41 - } - }, { "plugin": "alerting", "link": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 22 + "lineNumber": 23 } }, { "plugin": "alerting", "link": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 278 + "lineNumber": 281 } }, { @@ -22548,28 +22796,28 @@ "plugin": "fleet", "link": { "path": "x-pack/plugins/fleet/server/services/agents/status.ts", - "lineNumber": 32 + "lineNumber": 31 } }, { "plugin": "fleet", "link": { "path": "x-pack/plugins/fleet/server/services/agents/status.ts", - "lineNumber": 32 + "lineNumber": 31 } }, { "plugin": "fleet", "link": { "path": "x-pack/plugins/fleet/server/services/agents/status.ts", - "lineNumber": 36 + "lineNumber": 35 } }, { "plugin": "fleet", "link": { "path": "x-pack/plugins/fleet/server/services/agents/status.ts", - "lineNumber": 49 + "lineNumber": 48 } }, { @@ -22991,14 +23239,11 @@ "label": "MatchAllFilter", "description": [], "signature": [ - "Filter", - " & { meta: ", - "MatchAllFilterMeta", - "; match_all: any; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 265 + "lineNumber": 313 }, "deprecated": true, "references": [ @@ -23048,14 +23293,11 @@ "label": "PhraseFilter", "description": [], "signature": [ - "Filter", - " & { meta: ", - "PhraseFilterMeta", - "; script?: { script: { source?: any; lang?: \"painless\" | \"expression\" | \"mustache\" | \"java\" | undefined; params: any; }; } | undefined; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 260 + "lineNumber": 308 }, "deprecated": true, "references": [], @@ -23071,36 +23313,16 @@ "label": "PhrasesFilter", "description": [], "signature": [ - "Filter", - " & { meta: ", - "PhrasesFilterMeta", - "; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 255 + "lineNumber": 303 }, "deprecated": true, "references": [], "initialIsOpen": false }, - { - "parentPluginId": "data", - "id": "def-public.Query", - "type": "Type", - "tags": [], - "label": "Query", - "description": [], - "signature": [ - "{ query: string | { [key: string]: any; }; language: string; }" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/types.d.ts", - "lineNumber": 48 - }, - "deprecated": false, - "initialIsOpen": false - }, { "parentPluginId": "data", "id": "def-public.RangeFilter", @@ -23111,18 +23333,11 @@ "label": "RangeFilter", "description": [], "signature": [ - "Filter", - " & ", - "EsRangeFilter", - " & { meta: ", - "RangeFilterMeta", - "; script?: { script: { params: any; lang: ", - "ScriptLanguage", - "; source: any; }; } | undefined; match_all?: any; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 280 + "lineNumber": 328 }, "deprecated": true, "references": [ @@ -23153,14 +23368,11 @@ "label": "RangeFilterMeta", "description": [], "signature": [ - "FilterMeta", - " & { params: ", - "RangeFilterParams", - "; field?: any; formattedValue?: string | undefined; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 235 + "lineNumber": 283 }, "deprecated": true, "references": [], @@ -23176,11 +23388,11 @@ "label": "RangeFilterParams", "description": [], "signature": [ - "RangeFilterParams" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 240 + "lineNumber": 288 }, "deprecated": true, "references": [], @@ -23281,429 +23493,830 @@ "parentPluginId": "data", "id": "def-public.esFilters", "type": "Object", - "tags": [], + "tags": [ + "deprecated" + ], "label": "esFilters", - "description": [], + "description": [ + "\nFilter helpers namespace:" + ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 67 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 93 }, - "deprecated": false, - "children": [ + "deprecated": true, + "references": [ { - "parentPluginId": "data", - "id": "def-public.esFilters.FilterLabel", - "type": "Function", - "tags": [], - "label": "FilterLabel", - "description": [], - "signature": [ - "(props: ", - "FilterLabelProps", - ") => JSX.Element" - ], - "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 68 - }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-public.props", - "type": "Object", - "tags": [], - "label": "props", - "description": [], - "signature": [ - "FilterLabelProps" - ], - "source": { - "path": "src/plugins/data/public/ui/filter_bar/index.tsx", - "lineNumber": 15 - }, - "deprecated": false - } - ] + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/url_generator.ts", + "lineNumber": 11 + } }, { - "parentPluginId": "data", - "id": "def-public.esFilters.FilterItem", - "type": "Function", - "tags": [], - "label": "FilterItem", - "description": [], - "signature": [ - "(props: ", - "FilterItemProps", - ") => JSX.Element" - ], - "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 69 - }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-public.props", - "type": "Object", - "tags": [], - "label": "props", - "description": [], - "signature": [ - "FilterItemProps" - ], - "source": { - "path": "src/plugins/data/public/ui/filter_bar/index.tsx", - "lineNumber": 24 - }, - "deprecated": false - } - ] + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/url_generator.ts", + "lineNumber": 121 + } }, { - "parentPluginId": "data", - "id": "def-public.esFilters.FILTERS", - "type": "Object", - "tags": [], - "label": "FILTERS", - "description": [], - "signature": [ - "typeof ", - "FILTERS" - ], - "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 71 - }, - "deprecated": false + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/url_generator.ts", + "lineNumber": 130 + } }, { - "parentPluginId": "data", - "id": "def-public.esFilters.FilterStateStore", - "type": "Object", - "tags": [], - "label": "FilterStateStore", - "description": [], - "signature": [ - "typeof ", - "FilterStateStore" - ], - "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 72 - }, - "deprecated": false + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/locator.ts", + "lineNumber": 12 + } }, { - "parentPluginId": "data", - "id": "def-public.esFilters.buildEmptyFilter", - "type": "Function", - "tags": [], - "label": "buildEmptyFilter", - "description": [], - "signature": [ - "(isPinned: boolean, index?: string | undefined) => ", - "Filter" - ], - "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 74 - }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-public.isPinned", - "type": "boolean", - "tags": [], - "label": "isPinned", - "description": [], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/meta_filter.d.ts", - "lineNumber": 2 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-public.index", - "type": "string", - "tags": [], - "label": "index", - "description": [], - "signature": [ - "string | undefined" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/meta_filter.d.ts", - "lineNumber": 2 - }, - "deprecated": false - } - ] + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/locator.ts", + "lineNumber": 120 + } }, { - "parentPluginId": "data", - "id": "def-public.esFilters.buildPhrasesFilter", - "type": "Function", - "tags": [], - "label": "buildPhrasesFilter", - "description": [], - "signature": [ - "(field: ", - "IndexPatternFieldBase", - ", params: any[], indexPattern: ", - "IndexPatternBase", - ") => ", - "PhrasesFilter" - ], - "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 75 - }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-public.field", - "type": "Object", - "tags": [], - "label": "field", - "description": [], - "signature": [ - "IndexPatternFieldBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrases_filter.d.ts", - "lineNumber": 12 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-public.params", - "type": "Array", - "tags": [], - "label": "params", - "description": [], - "signature": [ - "any[]" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrases_filter.d.ts", - "lineNumber": 12 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-public.indexPattern", - "type": "Object", - "tags": [], - "label": "indexPattern", - "description": [], - "signature": [ - "IndexPatternBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrases_filter.d.ts", - "lineNumber": 12 - }, - "deprecated": false - } - ] + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/locator.ts", + "lineNumber": 129 + } }, { - "parentPluginId": "data", - "id": "def-public.esFilters.buildExistsFilter", - "type": "Function", - "tags": [], - "label": "buildExistsFilter", - "description": [], - "signature": [ - "(field: ", - "IndexPatternFieldBase", - ", indexPattern: ", - "IndexPatternBase", - ") => ", - "ExistsFilter" - ], - "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 76 - }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-public.field", - "type": "Object", - "tags": [], - "label": "field", - "description": [], - "signature": [ - "IndexPatternFieldBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/exists_filter.d.ts", - "lineNumber": 13 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-public.indexPattern", - "type": "Object", - "tags": [], - "label": "indexPattern", - "description": [], - "signature": [ - "IndexPatternBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/exists_filter.d.ts", - "lineNumber": 13 - }, - "deprecated": false - } - ] + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/application/helpers/get_context_url.tsx", + "lineNumber": 12 + } }, { - "parentPluginId": "data", - "id": "def-public.esFilters.buildPhraseFilter", - "type": "Function", - "tags": [], - "label": "buildPhraseFilter", - "description": [], - "signature": [ - "(field: ", - "IndexPatternFieldBase", - ", value: any, indexPattern: ", - "IndexPatternBase", - ") => ", - "PhraseFilter" - ], - "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 77 - }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-public.field", - "type": "Object", - "tags": [], - "label": "field", - "description": [], - "signature": [ - "IndexPatternFieldBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrase_filter.d.ts", - "lineNumber": 26 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-public.value", - "type": "Any", - "tags": [], - "label": "value", - "description": [], - "signature": [ - "any" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrase_filter.d.ts", - "lineNumber": 26 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-public.indexPattern", - "type": "Object", - "tags": [], - "label": "indexPattern", - "description": [], - "signature": [ - "IndexPatternBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrase_filter.d.ts", - "lineNumber": 26 - }, - "deprecated": false - } - ] + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/application/helpers/get_context_url.tsx", + "lineNumber": 35 + } + }, + { + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/application/apps/main/services/discover_state.ts", + "lineNumber": 25 + } + }, + { + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/application/apps/main/services/discover_state.ts", + "lineNumber": 264 + } + }, + { + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/application/apps/main/services/discover_state.ts", + "lineNumber": 309 + } + }, + { + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/application/apps/main/services/discover_state.ts", + "lineNumber": 309 + } + }, + { + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/application/angular/context_state.ts", + "lineNumber": 19 + } + }, + { + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/application/angular/context_state.ts", + "lineNumber": 233 + } + }, + { + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/application/angular/context_state.ts", + "lineNumber": 233 + } }, + { + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/application/angular/context_state.ts", + "lineNumber": 250 + } + }, + { + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/application/angular/context_state.ts", + "lineNumber": 250 + } + }, + { + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx", + "lineNumber": 19 + } + }, + { + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx", + "lineNumber": 265 + } + }, + { + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx", + "lineNumber": 275 + } + }, + { + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx", + "lineNumber": 313 + } + }, + { + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/application/components/context_app/context_app.tsx", + "lineNumber": 15 + } + }, + { + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/application/components/context_app/context_app.tsx", + "lineNumber": 101 + } + }, + { + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/application/apps/main/components/layout/discover_layout.tsx", + "lineNumber": 29 + } + }, + { + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/application/apps/main/components/layout/discover_layout.tsx", + "lineNumber": 168 + } + }, + { + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/plugin.tsx", + "lineNumber": 32 + } + }, + { + "plugin": "discover", + "link": { + "path": "src/plugins/discover/public/plugin.tsx", + "lineNumber": 296 + } + }, + { + "plugin": "visualizations", + "link": { + "path": "src/plugins/visualizations/public/embeddable/visualize_embeddable.ts", + "lineNumber": 17 + } + }, + { + "plugin": "visualizations", + "link": { + "path": "src/plugins/visualizations/public/embeddable/visualize_embeddable.ts", + "lineNumber": 236 + } + }, + { + "plugin": "dashboard", + "link": { + "path": "src/plugins/dashboard/public/application/lib/save_dashboard.ts", + "lineNumber": 19 + } + }, + { + "plugin": "dashboard", + "link": { + "path": "src/plugins/dashboard/public/application/lib/save_dashboard.ts", + "lineNumber": 82 + } + }, + { + "plugin": "dashboard", + "link": { + "path": "src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts", + "lineNumber": 11 + } + }, + { + "plugin": "dashboard", + "link": { + "path": "src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts", + "lineNumber": 101 + } + }, + { + "plugin": "dashboard", + "link": { + "path": "src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts", + "lineNumber": 103 + } + }, + { + "plugin": "dashboard", + "link": { + "path": "src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts", + "lineNumber": 104 + } + }, + { + "plugin": "dashboard", + "link": { + "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts", + "lineNumber": 14 + } + }, + { + "plugin": "dashboard", + "link": { + "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts", + "lineNumber": 98 + } + }, + { + "plugin": "dashboard", + "link": { + "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts", + "lineNumber": 101 + } + }, + { + "plugin": "dashboard", + "link": { + "path": "src/plugins/dashboard/public/plugin.tsx", + "lineNumber": 37 + } + }, + { + "plugin": "dashboard", + "link": { + "path": "src/plugins/dashboard/public/plugin.tsx", + "lineNumber": 257 + } + }, + { + "plugin": "dashboard", + "link": { + "path": "src/plugins/dashboard/public/url_generator.ts", + "lineNumber": 13 + } + }, + { + "plugin": "dashboard", + "link": { + "path": "src/plugins/dashboard/public/url_generator.ts", + "lineNumber": 144 + } + }, + { + "plugin": "dashboard", + "link": { + "path": "src/plugins/dashboard/public/url_generator.ts", + "lineNumber": 157 + } + }, + { + "plugin": "dashboard", + "link": { + "path": "src/plugins/dashboard/public/locator.ts", + "lineNumber": 13 + } + }, + { + "plugin": "dashboard", + "link": { + "path": "src/plugins/dashboard/public/locator.ts", + "lineNumber": 130 + } + }, + { + "plugin": "dashboard", + "link": { + "path": "src/plugins/dashboard/public/locator.ts", + "lineNumber": 143 + } + }, + { + "plugin": "lens", + "link": { + "path": "x-pack/plugins/lens/public/app_plugin/save_modal_container.tsx", + "lineNumber": 19 + } + }, + { + "plugin": "lens", + "link": { + "path": "x-pack/plugins/lens/public/app_plugin/save_modal_container.tsx", + "lineNumber": 355 + } + }, + { + "plugin": "observability", + "link": { + "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts", + "lineNumber": 11 + } + }, + { + "plugin": "observability", + "link": { + "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts", + "lineNumber": 62 + } + }, + { + "plugin": "observability", + "link": { + "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts", + "lineNumber": 70 + } + }, + { + "plugin": "observability", + "link": { + "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts", + "lineNumber": 78 + } + }, + { + "plugin": "observability", + "link": { + "path": "x-pack/plugins/observability/public/components/shared/filter_value_label/filter_value_label.tsx", + "lineNumber": 10 + } + }, + { + "plugin": "observability", + "link": { + "path": "x-pack/plugins/observability/public/components/shared/filter_value_label/filter_value_label.tsx", + "lineNumber": 30 + } + }, + { + "plugin": "observability", + "link": { + "path": "x-pack/plugins/observability/public/components/shared/filter_value_label/filter_value_label.tsx", + "lineNumber": 31 + } + }, + { + "plugin": "observability", + "link": { + "path": "x-pack/plugins/observability/public/components/shared/filter_value_label/filter_value_label.tsx", + "lineNumber": 64 + } + }, + { + "plugin": "maps", + "link": { + "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts", + "lineNumber": 12 + } + }, + { + "plugin": "maps", + "link": { + "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts", + "lineNumber": 86 + } + }, + { + "plugin": "maps", + "link": { + "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts", + "lineNumber": 90 + } + }, + { + "plugin": "maps", + "link": { + "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx", + "lineNumber": 38 + } + }, + { + "plugin": "maps", + "link": { + "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx", + "lineNumber": 245 + } + }, + { + "plugin": "maps", + "link": { + "path": "x-pack/plugins/maps/public/routes/map_page/url_state/app_sync.ts", + "lineNumber": 9 + } + }, + { + "plugin": "maps", + "link": { + "path": "x-pack/plugins/maps/public/routes/map_page/url_state/app_sync.ts", + "lineNumber": 42 + } + }, + { + "plugin": "maps", + "link": { + "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx", + "lineNumber": 32 + } + }, + { + "plugin": "maps", + "link": { + "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx", + "lineNumber": 439 + } + }, + { + "plugin": "maps", + "link": { + "path": "x-pack/plugins/maps/public/embeddable/map_embeddable.tsx", + "lineNumber": 25 + } + }, + { + "plugin": "maps", + "link": { + "path": "x-pack/plugins/maps/public/embeddable/map_embeddable.tsx", + "lineNumber": 250 + } + }, + { + "plugin": "maps", + "link": { + "path": "x-pack/plugins/maps/public/locators.ts", + "lineNumber": 18 + } + }, + { + "plugin": "maps", + "link": { + "path": "x-pack/plugins/maps/public/locators.ts", + "lineNumber": 91 + } + }, + { + "plugin": "maps", + "link": { + "path": "x-pack/plugins/maps/public/locators.ts", + "lineNumber": 94 + } + }, + { + "plugin": "canvas", + "link": { + "path": "x-pack/plugins/canvas/public/lib/build_embeddable_filters.ts", + "lineNumber": 11 + } + }, + { + "plugin": "canvas", + "link": { + "path": "x-pack/plugins/canvas/public/lib/build_embeddable_filters.ts", + "lineNumber": 35 + } + }, + { + "plugin": "dashboardEnhanced", + "link": { + "path": "x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx", + "lineNumber": 13 + } + }, + { + "plugin": "dashboardEnhanced", + "link": { + "path": "x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx", + "lineNumber": 73 + } + }, + { + "plugin": "dashboardEnhanced", + "link": { + "path": "x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx", + "lineNumber": 79 + } + }, + { + "plugin": "discoverEnhanced", + "link": { + "path": "x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_chart_action.ts", + "lineNumber": 15 + } + }, + { + "plugin": "discoverEnhanced", + "link": { + "path": "x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_chart_action.ts", + "lineNumber": 57 + } + }, + { + "plugin": "maps", + "link": { + "path": "x-pack/plugins/maps/public/locators.test.ts", + "lineNumber": 9 + } + }, + { + "plugin": "maps", + "link": { + "path": "x-pack/plugins/maps/public/locators.test.ts", + "lineNumber": 103 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/timelines/components/timeline/query_bar/index.tsx", + "lineNumber": 19 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/timelines/components/timeline/query_bar/index.tsx", + "lineNumber": 312 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_table/helpers.ts", + "lineNumber": 13 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_table/helpers.ts", + "lineNumber": 246 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts", + "lineNumber": 34 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts", + "lineNumber": 382 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts", + "lineNumber": 383 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts", + "lineNumber": 384 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts", + "lineNumber": 385 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts", + "lineNumber": 398 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts", + "lineNumber": 403 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts", + "lineNumber": 406 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts", + "lineNumber": 409 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts", + "lineNumber": 414 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts", + "lineNumber": 417 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/components/rules/description_step/helpers.tsx", + "lineNumber": 31 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/components/rules/description_step/helpers.tsx", + "lineNumber": 85 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/components/rules/description_step/helpers.tsx", + "lineNumber": 87 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/components/rules/description_step/index.tsx", + "lineNumber": 17 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/components/rules/description_step/index.tsx", + "lineNumber": 151 + } + }, + { + "plugin": "lens", + "link": { + "path": "x-pack/plugins/lens/public/mocks.tsx", + "lineNumber": 24 + } + }, + { + "plugin": "lens", + "link": { + "path": "x-pack/plugins/lens/public/mocks.tsx", + "lineNumber": 249 + } + }, + { + "plugin": "lens", + "link": { + "path": "x-pack/plugins/lens/public/state_management/time_range_middleware.test.ts", + "lineNumber": 18 + } + }, + { + "plugin": "lens", + "link": { + "path": "x-pack/plugins/lens/public/state_management/time_range_middleware.test.ts", + "lineNumber": 62 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_table/helpers.test.ts", + "lineNumber": 9 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_table/helpers.test.ts", + "lineNumber": 570 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/timelines/store/timeline/epic.test.ts", + "lineNumber": 8 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/timelines/store/timeline/epic.test.ts", + "lineNumber": 106 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/timelines/store/timeline/epic.test.ts", + "lineNumber": 118 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/pages/detection_engine/rules/all/__mocks__/mock.ts", + "lineNumber": 8 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/pages/detection_engine/rules/all/__mocks__/mock.ts", + "lineNumber": 23 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/pages/detection_engine/rules/all/__mocks__/mock.ts", + "lineNumber": 97 + } + } + ], + "children": [ { "parentPluginId": "data", - "id": "def-public.esFilters.buildQueryFilter", + "id": "def-public.esFilters.FilterLabel", "type": "Function", "tags": [], - "label": "buildQueryFilter", + "label": "FilterLabel", "description": [], "signature": [ - "(query: any, index: string, alias: string) => ", - "QueryStringFilter" + "(props: ", + "FilterLabelProps", + ") => JSX.Element" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 78 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 94 }, "deprecated": false, "returnComment": [], "children": [ { "parentPluginId": "data", - "id": "def-public.query", - "type": "Any", + "id": "def-public.props", + "type": "Object", "tags": [], - "label": "query", + "label": "props", "description": [], "signature": [ - "any" + "FilterLabelProps" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/query_string_filter.d.ts", - "lineNumber": 12 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-public.index", - "type": "string", - "tags": [], - "label": "index", - "description": [], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/query_string_filter.d.ts", - "lineNumber": 12 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-public.alias", - "type": "string", - "tags": [], - "label": "alias", - "description": [], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/query_string_filter.d.ts", - "lineNumber": 12 + "path": "src/plugins/data/public/ui/filter_bar/index.tsx", + "lineNumber": 15 }, "deprecated": false } @@ -23711,345 +24324,282 @@ }, { "parentPluginId": "data", - "id": "def-public.esFilters.buildRangeFilter", + "id": "def-public.esFilters.FilterItem", "type": "Function", "tags": [], - "label": "buildRangeFilter", + "label": "FilterItem", "description": [], "signature": [ - "(field: ", - "IndexPatternFieldBase", - ", params: ", - "RangeFilterParams", - ", indexPattern: ", - "IndexPatternBase", - ", formattedValue?: string | undefined) => ", - "RangeFilter" + "(props: ", + "FilterItemProps", + ") => JSX.Element" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 79 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 95 }, "deprecated": false, "returnComment": [], "children": [ { "parentPluginId": "data", - "id": "def-public.field", - "type": "Object", - "tags": [], - "label": "field", - "description": [], - "signature": [ - "IndexPatternFieldBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/range_filter.d.ts", - "lineNumber": 37 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-public.params", - "type": "Object", - "tags": [], - "label": "params", - "description": [], - "signature": [ - "RangeFilterParams" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/range_filter.d.ts", - "lineNumber": 37 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-public.indexPattern", + "id": "def-public.props", "type": "Object", "tags": [], - "label": "indexPattern", - "description": [], - "signature": [ - "IndexPatternBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/range_filter.d.ts", - "lineNumber": 37 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-public.formattedValue", - "type": "string", - "tags": [], - "label": "formattedValue", + "label": "props", "description": [], "signature": [ - "string | undefined" + "FilterItemProps" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/range_filter.d.ts", - "lineNumber": 37 + "path": "src/plugins/data/public/ui/filter_bar/index.tsx", + "lineNumber": 24 }, "deprecated": false } ] }, + { + "parentPluginId": "data", + "id": "def-public.esFilters.FILTERS", + "type": "Object", + "tags": [], + "label": "FILTERS", + "description": [], + "signature": [ + "typeof ", + "FILTERS" + ], + "source": { + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 97 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-public.esFilters.FilterStateStore", + "type": "Object", + "tags": [], + "label": "FilterStateStore", + "description": [], + "signature": [ + "typeof ", + "FilterStateStore" + ], + "source": { + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 98 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-public.esFilters.buildEmptyFilter", + "type": "Any", + "tags": [], + "label": "buildEmptyFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 100 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-public.esFilters.buildPhrasesFilter", + "type": "Any", + "tags": [], + "label": "buildPhrasesFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 101 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-public.esFilters.buildExistsFilter", + "type": "Any", + "tags": [], + "label": "buildExistsFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 102 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-public.esFilters.buildPhraseFilter", + "type": "Any", + "tags": [], + "label": "buildPhraseFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 103 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-public.esFilters.buildQueryFilter", + "type": "Any", + "tags": [], + "label": "buildQueryFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 104 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-public.esFilters.buildRangeFilter", + "type": "Any", + "tags": [], + "label": "buildRangeFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 105 + }, + "deprecated": false + }, { "parentPluginId": "data", "id": "def-public.esFilters.isPhraseFilter", - "type": "Function", + "type": "Any", "tags": [], "label": "isPhraseFilter", "description": [], "signature": [ - "(filter: any) => filter is ", - "PhraseFilter" + "any" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 81 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 107 }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-public.filter", - "type": "Any", - "tags": [], - "label": "filter", - "description": [], - "signature": [ - "any" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrase_filter.d.ts", - "lineNumber": 22 - }, - "deprecated": false - } - ] + "deprecated": false }, { "parentPluginId": "data", "id": "def-public.esFilters.isExistsFilter", - "type": "Function", + "type": "Any", "tags": [], "label": "isExistsFilter", "description": [], "signature": [ - "(filter: any) => filter is ", - "ExistsFilter" + "any" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 82 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 108 }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-public.filter", - "type": "Any", - "tags": [], - "label": "filter", - "description": [], - "signature": [ - "any" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/exists_filter.d.ts", - "lineNumber": 11 - }, - "deprecated": false - } - ] + "deprecated": false }, { "parentPluginId": "data", "id": "def-public.esFilters.isPhrasesFilter", - "type": "Function", + "type": "Any", "tags": [], "label": "isPhrasesFilter", "description": [], "signature": [ - "(filter: any) => filter is ", - "PhrasesFilter" + "any" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 83 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 109 }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-public.filter", - "type": "Any", - "tags": [], - "label": "filter", - "description": [], - "signature": [ - "any" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrases_filter.d.ts", - "lineNumber": 10 - }, - "deprecated": false - } - ] + "deprecated": false }, { "parentPluginId": "data", "id": "def-public.esFilters.isRangeFilter", - "type": "Function", + "type": "Any", "tags": [], "label": "isRangeFilter", "description": [], "signature": [ - "(filter: any) => filter is ", - "RangeFilter" + "any" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 84 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 110 }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-public.filter", - "type": "Any", - "tags": [], - "label": "filter", - "description": [], - "signature": [ - "any" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/range_filter.d.ts", - "lineNumber": 34 - }, - "deprecated": false - } - ] + "deprecated": false }, { "parentPluginId": "data", "id": "def-public.esFilters.isMatchAllFilter", - "type": "Function", + "type": "Any", "tags": [], "label": "isMatchAllFilter", "description": [], "signature": [ - "(filter: any) => filter is ", - "MatchAllFilter" + "any" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 85 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 111 }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-public.filter", - "type": "Any", - "tags": [], - "label": "filter", - "description": [], - "signature": [ - "any" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/match_all_filter.d.ts", - "lineNumber": 10 - }, - "deprecated": false - } - ] + "deprecated": false }, { "parentPluginId": "data", "id": "def-public.esFilters.isMissingFilter", - "type": "Function", + "type": "Any", "tags": [], "label": "isMissingFilter", "description": [], "signature": [ - "(filter: any) => filter is ", - "MissingFilter" + "any" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 86 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 112 }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-public.filter", - "type": "Any", - "tags": [], - "label": "filter", - "description": [], - "signature": [ - "any" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/missing_filter.d.ts", - "lineNumber": 7 - }, - "deprecated": false - } - ] + "deprecated": false }, { "parentPluginId": "data", "id": "def-public.esFilters.isQueryStringFilter", - "type": "Function", + "type": "Any", "tags": [], "label": "isQueryStringFilter", "description": [], "signature": [ - "(filter: any) => filter is ", - "QueryStringFilter" + "any" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 87 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 113 }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-public.filter", - "type": "Any", - "tags": [], - "label": "filter", - "description": [], - "signature": [ - "any" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/query_string_filter.d.ts", - "lineNumber": 11 - }, - "deprecated": false - } - ] + "deprecated": false }, { "parentPluginId": "data", @@ -24059,13 +24609,11 @@ "label": "isFilterPinned", "description": [], "signature": [ - "(filter: ", - "Filter", - ") => boolean | undefined" + "(filter: any) => boolean | undefined" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 88 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 114 }, "deprecated": false, "returnComment": [], @@ -24073,20 +24621,16 @@ { "parentPluginId": "data", "id": "def-public.filter", - "type": "Object", + "type": "Any", "tags": [], "label": "filter", "description": [], "signature": [ - "{ $state?: ", - "FilterState", - " | undefined; meta: ", - "FilterMeta", - "; query?: any; }" + "any" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/meta_filter.d.ts", - "lineNumber": 3 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/meta_filter.d.ts", + "lineNumber": 2 }, "deprecated": false } @@ -24100,15 +24644,11 @@ "label": "toggleFilterNegated", "description": [], "signature": [ - "(filter: ", - "Filter", - ") => { meta: { negate: boolean; alias: string | null; disabled: boolean; controlledBy?: string | undefined; index?: string | undefined; isMultiIndex?: boolean | undefined; type?: string | undefined; key?: string | undefined; params?: any; value?: string | undefined; }; $state?: ", - "FilterState", - " | undefined; query?: any; }" + "(filter: any) => { meta: { negate: boolean; alias: string | null; disabled: boolean; controlledBy?: string | undefined; index?: string | undefined; isMultiIndex?: boolean | undefined; type?: string | undefined; key?: string | undefined; params?: any; value?: string | undefined; }; $state?: any; query?: any; }" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 90 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 116 }, "deprecated": false, "returnComment": [], @@ -24116,20 +24656,16 @@ { "parentPluginId": "data", "id": "def-public.filter", - "type": "Object", + "type": "Any", "tags": [], "label": "filter", "description": [], "signature": [ - "{ $state?: ", - "FilterState", - " | undefined; meta: ", - "FilterMeta", - "; query?: any; }" + "any" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/meta_filter.d.ts", - "lineNumber": 20 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/meta_filter.d.ts", + "lineNumber": 19 }, "deprecated": false } @@ -24143,14 +24679,11 @@ "label": "disableFilter", "description": [], "signature": [ - "(filter: ", - "Filter", - ") => ", - "Filter" + "(filter: any) => any" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 91 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 117 }, "deprecated": false, "returnComment": [], @@ -24158,20 +24691,16 @@ { "parentPluginId": "data", "id": "def-public.filter", - "type": "Object", + "type": "Any", "tags": [], "label": "filter", "description": [], "signature": [ - "{ $state?: ", - "FilterState", - " | undefined; meta: ", - "FilterMeta", - "; query?: any; }" + "any" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/meta_filter.d.ts", - "lineNumber": 44 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/meta_filter.d.ts", + "lineNumber": 43 }, "deprecated": false } @@ -24180,82 +24709,34 @@ { "parentPluginId": "data", "id": "def-public.esFilters.getPhraseFilterField", - "type": "Function", + "type": "Any", "tags": [], "label": "getPhraseFilterField", "description": [], "signature": [ - "(filter: ", - "PhraseFilter", - ") => string" + "any" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 92 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 118 }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-public.filter", - "type": "CompoundType", - "tags": [], - "label": "filter", - "description": [], - "signature": [ - "Filter", - " & { meta: ", - "PhraseFilterMeta", - "; script?: { script: { source?: any; lang?: \"painless\" | \"expression\" | \"mustache\" | \"java\" | undefined; params: any; }; } | undefined; }" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrase_filter.d.ts", - "lineNumber": 24 - }, - "deprecated": false - } - ] + "deprecated": false }, { "parentPluginId": "data", "id": "def-public.esFilters.getPhraseFilterValue", - "type": "Function", + "type": "Any", "tags": [], "label": "getPhraseFilterValue", "description": [], "signature": [ - "(filter: ", - "PhraseFilter", - ") => PhraseFilterValue" + "any" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 93 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 119 }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-public.filter", - "type": "CompoundType", - "tags": [], - "label": "filter", - "description": [], - "signature": [ - "Filter", - " & { meta: ", - "PhraseFilterMeta", - "; script?: { script: { source?: any; lang?: \"painless\" | \"expression\" | \"mustache\" | \"java\" | undefined; params: any; }; } | undefined; }" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrase_filter.d.ts", - "lineNumber": 25 - }, - "deprecated": false - } - ] + "deprecated": false }, { "parentPluginId": "data", @@ -24265,9 +24746,7 @@ "label": "getDisplayValueFromFilter", "description": [], "signature": [ - "(filter: ", - "Filter", - ", indexPatterns: ", + "(filter: any, indexPatterns: ", { "pluginId": "data", "scope": "common", @@ -24278,8 +24757,8 @@ "[]) => string" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 94 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 120 }, "deprecated": false, "returnComment": [], @@ -24287,16 +24766,12 @@ { "parentPluginId": "data", "id": "def-public.filter", - "type": "Object", + "type": "Any", "tags": [], "label": "filter", "description": [], "signature": [ - "{ $state?: ", - "FilterState", - " | undefined; meta: ", - "FilterMeta", - "; query?: any; }" + "any" ], "source": { "path": "src/plugins/data/public/query/filter_manager/lib/get_display_value.ts", @@ -24337,27 +24812,13 @@ "label": "compareFilters", "description": [], "signature": [ - "(first: ", - "Filter", - " | ", - "Filter", - "[], second: ", - "Filter", - " | ", - "Filter", - "[], comparatorOptions?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataQueryPluginApi", - "section": "def-common.FilterCompareOptions", - "text": "FilterCompareOptions" - }, - ") => boolean" + "(first: any, second: any, comparatorOptions?: ", + "FilterCompareOptions", + " | undefined) => boolean" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 96 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 122 }, "deprecated": false, "returnComment": [], @@ -24365,38 +24826,32 @@ { "parentPluginId": "data", "id": "def-public.first", - "type": "CompoundType", + "type": "Any", "tags": [], "label": "first", "description": [], "signature": [ - "Filter", - " | ", - "Filter", - "[]" + "any" ], "source": { - "path": "src/plugins/data/common/query/filter_manager/compare_filters.ts", - "lineNumber": 65 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/compare_filters.d.ts", + "lineNumber": 23 }, "deprecated": false }, { "parentPluginId": "data", "id": "def-public.second", - "type": "CompoundType", + "type": "Any", "tags": [], "label": "second", "description": [], "signature": [ - "Filter", - " | ", - "Filter", - "[]" + "any" ], "source": { - "path": "src/plugins/data/common/query/filter_manager/compare_filters.ts", - "lineNumber": 66 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/compare_filters.d.ts", + "lineNumber": 23 }, "deprecated": false }, @@ -24408,17 +24863,12 @@ "label": "comparatorOptions", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataQueryPluginApi", - "section": "def-common.FilterCompareOptions", - "text": "FilterCompareOptions" - } + "FilterCompareOptions", + " | undefined" ], "source": { - "path": "src/plugins/data/common/query/filter_manager/compare_filters.ts", - "lineNumber": 67 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/compare_filters.d.ts", + "lineNumber": 23 }, "deprecated": false } @@ -24432,17 +24882,11 @@ "label": "COMPARE_ALL_OPTIONS", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataQueryPluginApi", - "section": "def-common.FilterCompareOptions", - "text": "FilterCompareOptions" - } + "FilterCompareOptions" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 97 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 123 }, "deprecated": false }, @@ -24470,13 +24914,11 @@ "section": "def-common.IFieldType", "text": "IFieldType" }, - ", values: any, operation: string, index: string) => ", - "Filter", - "[]" + ", values: any, operation: string, index: string) => any[]" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 98 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 124 }, "deprecated": false, "returnComment": [], @@ -24578,15 +25020,11 @@ "label": "onlyDisabledFiltersChanged", "description": [], "signature": [ - "(newFilters?: ", - "Filter", - "[] | undefined, oldFilters?: ", - "Filter", - "[] | undefined) => boolean" + "(newFilters?: any[] | undefined, oldFilters?: any[] | undefined) => boolean" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 99 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 125 }, "deprecated": false, "returnComment": [], @@ -24599,12 +25037,11 @@ "label": "newFilters", "description": [], "signature": [ - "Filter", - "[] | undefined" + "any[] | undefined" ], "source": { - "path": "src/plugins/data/public/query/filter_manager/lib/only_disabled.ts", - "lineNumber": 19 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/only_disabled.d.ts", + "lineNumber": 7 }, "deprecated": false }, @@ -24616,12 +25053,11 @@ "label": "oldFilters", "description": [], "signature": [ - "Filter", - "[] | undefined" + "any[] | undefined" ], "source": { - "path": "src/plugins/data/public/query/filter_manager/lib/only_disabled.ts", - "lineNumber": 19 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/only_disabled.d.ts", + "lineNumber": 7 }, "deprecated": false } @@ -24637,13 +25073,11 @@ "signature": [ "(timeFilter: Pick<", "Timefilter", - ", \"isTimeRangeSelectorEnabled\" | \"isAutoRefreshSelectorEnabled\" | \"isTimeTouched\" | \"getEnabledUpdated$\" | \"getTimeUpdate$\" | \"getRefreshIntervalUpdate$\" | \"getAutoRefreshFetch$\" | \"getFetch$\" | \"getTime\" | \"getAbsoluteTime\" | \"setTime\" | \"getRefreshInterval\" | \"setRefreshInterval\" | \"createFilter\" | \"getBounds\" | \"calculateBounds\" | \"getActiveBounds\" | \"enableTimeRangeSelector\" | \"disableTimeRangeSelector\" | \"enableAutoRefreshSelector\" | \"disableAutoRefreshSelector\" | \"getTimeDefaults\" | \"getRefreshIntervalDefaults\">, filter: ", - "RangeFilter", - ") => void" + ", \"isTimeRangeSelectorEnabled\" | \"isAutoRefreshSelectorEnabled\" | \"isTimeTouched\" | \"getEnabledUpdated$\" | \"getTimeUpdate$\" | \"getRefreshIntervalUpdate$\" | \"getAutoRefreshFetch$\" | \"getFetch$\" | \"getTime\" | \"getAbsoluteTime\" | \"setTime\" | \"getRefreshInterval\" | \"setRefreshInterval\" | \"createFilter\" | \"getBounds\" | \"calculateBounds\" | \"getActiveBounds\" | \"enableTimeRangeSelector\" | \"disableTimeRangeSelector\" | \"enableAutoRefreshSelector\" | \"disableAutoRefreshSelector\" | \"getTimeDefaults\" | \"getRefreshIntervalDefaults\">, filter: any) => void" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 101 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 127 }, "deprecated": false, "returnComment": [], @@ -24730,9 +25164,7 @@ "section": "def-common.TimeRange", "text": "TimeRange" }, - " | undefined) => ", - "RangeFilter", - " | undefined; getBounds: () => ", + " | undefined) => any; getBounds: () => ", { "pluginId": "data", "scope": "common", @@ -24791,19 +25223,12 @@ { "parentPluginId": "data", "id": "def-public.filter", - "type": "CompoundType", + "type": "Any", "tags": [], "label": "filter", "description": [], "signature": [ - "Filter", - " & ", - "EsRangeFilter", - " & { meta: ", - "RangeFilterMeta", - "; script?: { script: { params: any; lang: ", - "ScriptLanguage", - "; source: any; }; } | undefined; match_all?: any; }" + "any" ], "source": { "path": "src/plugins/data/public/query/timefilter/lib/change_time_filter.ts", @@ -24821,9 +25246,7 @@ "label": "convertRangeFilterToTimeRangeString", "description": [], "signature": [ - "(filter: ", - "RangeFilter", - ") => ", + "(filter: any) => ", { "pluginId": "data", "scope": "common", @@ -24833,8 +25256,8 @@ } ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 102 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 128 }, "deprecated": false, "returnComment": [], @@ -24842,19 +25265,12 @@ { "parentPluginId": "data", "id": "def-public.filter", - "type": "CompoundType", + "type": "Any", "tags": [], "label": "filter", "description": [], "signature": [ - "Filter", - " & ", - "EsRangeFilter", - " & { meta: ", - "RangeFilterMeta", - "; script?: { script: { params: any; lang: ", - "ScriptLanguage", - "; source: any; }; } | undefined; match_all?: any; }" + "any" ], "source": { "path": "src/plugins/data/public/query/timefilter/lib/change_time_filter.ts", @@ -24872,15 +25288,11 @@ "label": "mapAndFlattenFilters", "description": [], "signature": [ - "(filters: ", - "Filter", - "[]) => ", - "Filter", - "[]" + "(filters: any[]) => any[]" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 103 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 129 }, "deprecated": false, "returnComment": [], @@ -24893,8 +25305,7 @@ "label": "filters", "description": [], "signature": [ - "Filter", - "[]" + "any[]" ], "source": { "path": "src/plugins/data/public/query/filter_manager/lib/map_and_flatten_filters.ts", @@ -24912,17 +25323,11 @@ "label": "extractTimeFilter", "description": [], "signature": [ - "(timeFieldName: string, filters: ", - "Filter", - "[]) => { restOfFilters: ", - "Filter", - "[]; timeRangeFilter: ", - "RangeFilter", - " | undefined; }" + "(timeFieldName: string, filters: any[]) => { restOfFilters: any[]; timeRangeFilter: any; }" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 104 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 130 }, "deprecated": false, "returnComment": [], @@ -24948,8 +25353,7 @@ "label": "filters", "description": [], "signature": [ - "Filter", - "[]" + "any[]" ], "source": { "path": "src/plugins/data/public/query/timefilter/lib/extract_time_filter.ts", @@ -24967,11 +25371,7 @@ "label": "extractTimeRange", "description": [], "signature": [ - "(filters: ", - "Filter", - "[], timeFieldName?: string | undefined) => { restOfFilters: ", - "Filter", - "[]; timeRange?: ", + "(filters: any[], timeFieldName?: string | undefined) => { restOfFilters: any[]; timeRange?: ", { "pluginId": "data", "scope": "common", @@ -24982,8 +25382,8 @@ " | undefined; }" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 105 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 131 }, "deprecated": false, "returnComment": [], @@ -24996,8 +25396,7 @@ "label": "filters", "description": [], "signature": [ - "Filter", - "[]" + "any[]" ], "source": { "path": "src/plugins/data/public/query/timefilter/lib/extract_time_filter.ts", @@ -25036,8 +25435,8 @@ "label": "esKuery", "description": [], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 129 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 156 }, "deprecated": true, "references": [ @@ -25087,14 +25486,14 @@ "plugin": "lens", "link": { "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filters.tsx", - "lineNumber": 63 + "lineNumber": 64 } }, { "plugin": "lens", "link": { "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filters.tsx", - "lineNumber": 63 + "lineNumber": 64 } }, { @@ -25472,14 +25871,14 @@ "plugin": "uptime", "link": { "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts", - "lineNumber": 41 + "lineNumber": 42 } }, { "plugin": "uptime", "link": { "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts", - "lineNumber": 43 + "lineNumber": 44 } }, { @@ -25523,8 +25922,8 @@ "NodeTypes" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 130 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 157 }, "deprecated": false }, @@ -25542,8 +25941,8 @@ "KueryNode" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 131 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 158 }, "deprecated": false, "returnComment": [], @@ -25600,8 +25999,8 @@ "JsonObject" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 132 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 159 }, "deprecated": false, "returnComment": [], @@ -25686,8 +26085,8 @@ "label": "esQuery", "description": [], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 138 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 165 }, "deprecated": true, "references": [ @@ -25716,7 +26115,7 @@ "plugin": "lens", "link": { "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filters.tsx", - "lineNumber": 65 + "lineNumber": 66 } }, { @@ -25800,28 +26199,28 @@ "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx", - "lineNumber": 29 + "lineNumber": 27 } }, { "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx", - "lineNumber": 203 + "lineNumber": 201 } }, { "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx", - "lineNumber": 27 + "lineNumber": 26 } }, { "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx", - "lineNumber": 179 + "lineNumber": 178 } }, { @@ -26072,22 +26471,22 @@ { "plugin": "securitySolution", "link": { - "path": "x-pack/plugins/security_solution/public/detections/components/alerts_histogram_panel/index.tsx", + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/index.tsx", "lineNumber": 22 } }, { "plugin": "securitySolution", "link": { - "path": "x-pack/plugins/security_solution/public/detections/components/alerts_histogram_panel/index.tsx", - "lineNumber": 255 + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/index.tsx", + "lineNumber": 208 } }, { "plugin": "securitySolution", "link": { - "path": "x-pack/plugins/security_solution/public/detections/components/alerts_histogram_panel/index.tsx", - "lineNumber": 260 + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/index.tsx", + "lineNumber": 213 } }, { @@ -26101,7 +26500,7 @@ "plugin": "securitySolution", "link": { "path": "x-pack/plugins/security_solution/public/common/components/top_n/index.tsx", - "lineNumber": 118 + "lineNumber": 119 } }, { @@ -26118,6 +26517,20 @@ "lineNumber": 117 } }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_count_panel/index.tsx", + "lineNumber": 23 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_count_panel/index.tsx", + "lineNumber": 48 + } + }, { "plugin": "securitySolution", "link": { @@ -26382,27 +26795,15 @@ "signature": [ "(indexPattern: ", "IndexPatternBase", - " | undefined, queries: ", - "Query", - " | ", - "Query", - "[], filters: ", - "Filter", - " | ", - "Filter", - "[], config?: ", + " | undefined, queries: any, filters: any, config?: ", "EsQueryConfig", " | undefined) => { bool: { must: ", "DslQuery", - "[]; filter: ", - "Filter", - "[]; should: never[]; must_not: ", - "Filter", - "[]; }; }" + "[]; filter: any[]; should: never[]; must_not: any[]; }; }" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 139 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 166 }, "deprecated": false, "returnComment": [], @@ -26427,15 +26828,12 @@ { "parentPluginId": "data", "id": "def-public.queries", - "type": "CompoundType", + "type": "Any", "tags": [], "label": "queries", "description": [], "signature": [ - "Query", - " | ", - "Query", - "[]" + "any" ], "source": { "path": "node_modules/@kbn/es-query/target_types/es_query/build_es_query.d.ts", @@ -26446,15 +26844,12 @@ { "parentPluginId": "data", "id": "def-public.filters", - "type": "CompoundType", + "type": "Any", "tags": [], "label": "filters", "description": [], "signature": [ - "Filter", - " | ", - "Filter", - "[]" + "any" ], "source": { "path": "node_modules/@kbn/es-query/target_types/es_query/build_es_query.d.ts", @@ -26493,8 +26888,8 @@ "EsQueryConfig" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 140 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 167 }, "deprecated": false, "returnComment": [], @@ -26525,19 +26920,13 @@ "label": "buildQueryFromFilters", "description": [], "signature": [ - "(filters: ", - "Filter", - "[] | undefined, indexPattern: ", + "(filters: any[] | undefined, indexPattern: ", "IndexPatternBase", - " | undefined, ignoreFilterIfFieldNotInIndex?: boolean | undefined) => { must: never[]; filter: ", - "Filter", - "[]; should: never[]; must_not: ", - "Filter", - "[]; }" + " | undefined, ignoreFilterIfFieldNotInIndex?: boolean | undefined) => { must: never[]; filter: any[]; should: never[]; must_not: any[]; }" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 141 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 168 }, "deprecated": false, "returnComment": [], @@ -26550,8 +26939,7 @@ "label": "filters", "description": [], "signature": [ - "Filter", - "[] | undefined" + "any[] | undefined" ], "source": { "path": "node_modules/@kbn/es-query/target_types/es_query/from_filters.d.ts", @@ -26606,8 +26994,8 @@ "DslQuery" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 142 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 169 }, "deprecated": false, "returnComment": [], @@ -26644,8 +27032,8 @@ "DslQuery" ], "source": { - "path": "src/plugins/data/public/index.ts", - "lineNumber": 143 + "path": "src/plugins/data/public/deprecated.ts", + "lineNumber": 170 }, "deprecated": false, "returnComment": [], @@ -26720,7 +27108,7 @@ "description": [], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 220 + "lineNumber": 100 }, "deprecated": false, "children": [ @@ -26744,7 +27132,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 221 + "lineNumber": 101 }, "deprecated": false, "returnComment": [], @@ -26798,7 +27186,7 @@ "description": [], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 222 + "lineNumber": 102 }, "deprecated": false }, @@ -26814,7 +27202,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 223 + "lineNumber": 103 }, "deprecated": false, "returnComment": [], @@ -26854,7 +27242,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 224 + "lineNumber": 104 }, "deprecated": false, "returnComment": [], @@ -26912,7 +27300,7 @@ "description": [], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 177 + "lineNumber": 57 }, "deprecated": false, "children": [ @@ -26935,7 +27323,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 178 + "lineNumber": 58 }, "deprecated": false }, @@ -26958,7 +27346,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 179 + "lineNumber": 59 }, "deprecated": false }, @@ -26974,7 +27362,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 181 + "lineNumber": 61 }, "deprecated": false }, @@ -26990,7 +27378,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 182 + "lineNumber": 62 }, "deprecated": false }, @@ -27006,7 +27394,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 183 + "lineNumber": 63 }, "deprecated": false }, @@ -27029,7 +27417,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 184 + "lineNumber": 64 }, "deprecated": false }, @@ -27052,7 +27440,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 186 + "lineNumber": 66 }, "deprecated": false }, @@ -27075,7 +27463,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 187 + "lineNumber": 67 }, "deprecated": false }, @@ -27098,7 +27486,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 188 + "lineNumber": 68 }, "deprecated": false }, @@ -27115,7 +27503,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 189 + "lineNumber": 69 }, "deprecated": false }, @@ -27132,7 +27520,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 190 + "lineNumber": 70 }, "deprecated": false }, @@ -27155,7 +27543,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 191 + "lineNumber": 71 }, "deprecated": false }, @@ -27178,7 +27566,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 192 + "lineNumber": 72 }, "deprecated": false }, @@ -27201,7 +27589,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 193 + "lineNumber": 73 }, "deprecated": false }, @@ -27224,7 +27612,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 194 + "lineNumber": 74 }, "deprecated": false }, @@ -27247,7 +27635,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 195 + "lineNumber": 75 }, "deprecated": false }, @@ -27270,7 +27658,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 196 + "lineNumber": 76 }, "deprecated": false }, @@ -27293,7 +27681,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 197 + "lineNumber": 77 }, "deprecated": false }, @@ -27316,7 +27704,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 198 + "lineNumber": 78 }, "deprecated": false }, @@ -27339,7 +27727,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 199 + "lineNumber": 79 }, "deprecated": false }, @@ -27362,7 +27750,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 200 + "lineNumber": 80 }, "deprecated": false }, @@ -27385,7 +27773,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 201 + "lineNumber": 81 }, "deprecated": false } @@ -27401,7 +27789,7 @@ "description": [], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 247 + "lineNumber": 127 }, "deprecated": false, "children": [ @@ -27414,7 +27802,7 @@ "description": [], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 248 + "lineNumber": 128 }, "deprecated": false }, @@ -27427,7 +27815,7 @@ "description": [], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 249 + "lineNumber": 129 }, "deprecated": false }, @@ -27443,7 +27831,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 250 + "lineNumber": 130 }, "deprecated": false }, @@ -27459,7 +27847,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 251 + "lineNumber": 131 }, "deprecated": false }, @@ -27483,7 +27871,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 252 + "lineNumber": 132 }, "deprecated": false, "returnComment": [], @@ -27532,7 +27920,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 253 + "lineNumber": 133 }, "deprecated": false, "returnComment": [], @@ -27581,7 +27969,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 254 + "lineNumber": 134 }, "deprecated": false, "returnComment": [], @@ -27622,7 +28010,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 255 + "lineNumber": 135 }, "deprecated": false, "returnComment": [], @@ -27662,7 +28050,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 256 + "lineNumber": 136 }, "deprecated": false, "returnComment": [], @@ -27743,7 +28131,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 257 + "lineNumber": 137 }, "deprecated": false, "returnComment": [], @@ -27800,7 +28188,7 @@ "description": [], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 418 + "lineNumber": 298 }, "deprecated": false, "children": [ @@ -27813,7 +28201,7 @@ "description": [], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 419 + "lineNumber": 299 }, "deprecated": false, "children": [ @@ -27836,7 +28224,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 420 + "lineNumber": 300 }, "deprecated": false }, @@ -27852,7 +28240,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 421 + "lineNumber": 301 }, "deprecated": false, "returnComment": [], @@ -27892,7 +28280,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 422 + "lineNumber": 302 }, "deprecated": false }, @@ -27915,7 +28303,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 423 + "lineNumber": 303 }, "deprecated": false }, @@ -27938,7 +28326,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 424 + "lineNumber": 304 }, "deprecated": false }, @@ -27961,7 +28349,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 425 + "lineNumber": 305 }, "deprecated": false }, @@ -27984,7 +28372,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 426 + "lineNumber": 306 }, "deprecated": false, "returnComment": [], @@ -28027,7 +28415,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 427 + "lineNumber": 307 }, "deprecated": false, "returnComment": [], @@ -28076,7 +28464,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 428 + "lineNumber": 308 }, "deprecated": false, "returnComment": [], @@ -28125,7 +28513,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 429 + "lineNumber": 309 }, "deprecated": false, "returnComment": [], @@ -28160,7 +28548,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 430 + "lineNumber": 310 }, "deprecated": false, "returnComment": [], @@ -28192,7 +28580,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 431 + "lineNumber": 311 }, "deprecated": false, "returnComment": [], @@ -28237,7 +28625,7 @@ "description": [], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 432 + "lineNumber": 312 }, "deprecated": false }, @@ -28255,7 +28643,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 433 + "lineNumber": 313 }, "deprecated": false, "returnComment": [], @@ -28287,7 +28675,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 434 + "lineNumber": 314 }, "deprecated": false, "returnComment": [], @@ -28319,7 +28707,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 435 + "lineNumber": 315 }, "deprecated": false, "returnComment": [], @@ -28351,7 +28739,7 @@ "description": [], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 436 + "lineNumber": 316 }, "deprecated": false }, @@ -28367,7 +28755,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 437 + "lineNumber": 317 }, "deprecated": false }, @@ -28391,7 +28779,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 438 + "lineNumber": 318 }, "deprecated": false, "returnComment": [], @@ -28426,7 +28814,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 439 + "lineNumber": 319 }, "deprecated": false }, @@ -28450,7 +28838,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 440 + "lineNumber": 320 }, "deprecated": false, "returnComment": [], @@ -28507,7 +28895,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 441 + "lineNumber": 321 }, "deprecated": false, "returnComment": [], @@ -28567,7 +28955,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 443 + "lineNumber": 323 }, "deprecated": false, "returnComment": [], @@ -28644,7 +29032,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 444 + "lineNumber": 324 }, "deprecated": false, "returnComment": [], @@ -28729,7 +29117,7 @@ ], "source": { "path": "src/plugins/data/public/index.ts", - "lineNumber": 445 + "lineNumber": 325 }, "deprecated": false, "returnComment": [], @@ -28783,7 +29171,7 @@ "label": "UI_SETTINGS", "description": [], "signature": [ - "{ readonly META_FIELDS: \"metaFields\"; readonly DOC_HIGHLIGHT: \"doc_table:highlight\"; readonly QUERY_STRING_OPTIONS: \"query:queryString:options\"; readonly QUERY_ALLOW_LEADING_WILDCARDS: \"query:allowLeadingWildcards\"; readonly SEARCH_QUERY_LANGUAGE: \"search:queryLanguage\"; readonly SORT_OPTIONS: \"sort:options\"; readonly COURIER_IGNORE_FILTER_IF_FIELD_NOT_IN_INDEX: \"courier:ignoreFilterIfFieldNotInIndex\"; readonly COURIER_SET_REQUEST_PREFERENCE: \"courier:setRequestPreference\"; readonly COURIER_CUSTOM_REQUEST_PREFERENCE: \"courier:customRequestPreference\"; readonly COURIER_MAX_CONCURRENT_SHARD_REQUESTS: \"courier:maxConcurrentShardRequests\"; readonly COURIER_BATCH_SEARCHES: \"courier:batchSearches\"; readonly SEARCH_INCLUDE_FROZEN: \"search:includeFrozen\"; readonly SEARCH_TIMEOUT: \"search:timeout\"; readonly HISTOGRAM_BAR_TARGET: \"histogram:barTarget\"; readonly HISTOGRAM_MAX_BARS: \"histogram:maxBars\"; readonly HISTORY_LIMIT: \"history:limit\"; readonly SHORT_DOTS_ENABLE: \"shortDots:enable\"; readonly FORMAT_DEFAULT_TYPE_MAP: \"format:defaultTypeMap\"; readonly FORMAT_NUMBER_DEFAULT_PATTERN: \"format:number:defaultPattern\"; readonly FORMAT_PERCENT_DEFAULT_PATTERN: \"format:percent:defaultPattern\"; readonly FORMAT_BYTES_DEFAULT_PATTERN: \"format:bytes:defaultPattern\"; readonly FORMAT_CURRENCY_DEFAULT_PATTERN: \"format:currency:defaultPattern\"; readonly FORMAT_NUMBER_DEFAULT_LOCALE: \"format:number:defaultLocale\"; readonly TIMEPICKER_REFRESH_INTERVAL_DEFAULTS: \"timepicker:refreshIntervalDefaults\"; readonly TIMEPICKER_QUICK_RANGES: \"timepicker:quickRanges\"; readonly TIMEPICKER_TIME_DEFAULTS: \"timepicker:timeDefaults\"; readonly INDEXPATTERN_PLACEHOLDER: \"indexPattern:placeholder\"; readonly FILTERS_PINNED_BY_DEFAULT: \"filters:pinnedByDefault\"; readonly FILTERS_EDITOR_SUGGEST_VALUES: \"filterEditor:suggestValues\"; readonly AUTOCOMPLETE_USE_TIMERANGE: \"autocomplete:useTimeRange\"; }" + "{ readonly META_FIELDS: \"metaFields\"; readonly DOC_HIGHLIGHT: \"doc_table:highlight\"; readonly QUERY_STRING_OPTIONS: \"query:queryString:options\"; readonly QUERY_ALLOW_LEADING_WILDCARDS: \"query:allowLeadingWildcards\"; readonly SEARCH_QUERY_LANGUAGE: \"search:queryLanguage\"; readonly SORT_OPTIONS: \"sort:options\"; readonly COURIER_IGNORE_FILTER_IF_FIELD_NOT_IN_INDEX: \"courier:ignoreFilterIfFieldNotInIndex\"; readonly COURIER_SET_REQUEST_PREFERENCE: \"courier:setRequestPreference\"; readonly COURIER_CUSTOM_REQUEST_PREFERENCE: \"courier:customRequestPreference\"; readonly COURIER_MAX_CONCURRENT_SHARD_REQUESTS: \"courier:maxConcurrentShardRequests\"; readonly COURIER_BATCH_SEARCHES: \"courier:batchSearches\"; readonly SEARCH_INCLUDE_FROZEN: \"search:includeFrozen\"; readonly SEARCH_TIMEOUT: \"search:timeout\"; readonly HISTOGRAM_BAR_TARGET: \"histogram:barTarget\"; readonly HISTOGRAM_MAX_BARS: \"histogram:maxBars\"; readonly HISTORY_LIMIT: \"history:limit\"; readonly SHORT_DOTS_ENABLE: \"shortDots:enable\"; readonly FORMAT_DEFAULT_TYPE_MAP: \"format:defaultTypeMap\"; readonly FORMAT_NUMBER_DEFAULT_PATTERN: \"format:number:defaultPattern\"; readonly FORMAT_PERCENT_DEFAULT_PATTERN: \"format:percent:defaultPattern\"; readonly FORMAT_BYTES_DEFAULT_PATTERN: \"format:bytes:defaultPattern\"; readonly FORMAT_CURRENCY_DEFAULT_PATTERN: \"format:currency:defaultPattern\"; readonly FORMAT_NUMBER_DEFAULT_LOCALE: \"format:number:defaultLocale\"; readonly TIMEPICKER_REFRESH_INTERVAL_DEFAULTS: \"timepicker:refreshIntervalDefaults\"; readonly TIMEPICKER_QUICK_RANGES: \"timepicker:quickRanges\"; readonly TIMEPICKER_TIME_DEFAULTS: \"timepicker:timeDefaults\"; readonly INDEXPATTERN_PLACEHOLDER: \"indexPattern:placeholder\"; readonly FILTERS_PINNED_BY_DEFAULT: \"filters:pinnedByDefault\"; readonly FILTERS_EDITOR_SUGGEST_VALUES: \"filterEditor:suggestValues\"; readonly AUTOCOMPLETE_USE_TIMERANGE: \"autocomplete:useTimeRange\"; readonly AUTOCOMPLETE_VALUE_SUGGESTION_METHOD: \"autocomplete:valueSuggestionMethod\"; }" ], "source": { "path": "src/plugins/data/common/constants.ts", @@ -28864,7 +29252,7 @@ "signature": [ "{ register: (fieldFormats: ", "FieldFormatInstanceType", - "[]) => void; }" + "[]) => void; has: (id: string) => boolean; }" ], "source": { "path": "src/plugins/data/public/types.ts", @@ -29217,7 +29605,7 @@ "section": "def-common.FieldFormatsRegistry", "text": "FieldFormatsRegistry" }, - ", \"init\" | \"register\" | \"deserialize\" | \"getDefaultConfig\" | \"getType\" | \"getTypeWithoutMetaParams\" | \"getDefaultType\" | \"getTypeNameByEsTypes\" | \"getDefaultTypeName\" | \"getInstance\" | \"getDefaultInstancePlain\" | \"getDefaultInstanceCacheResolver\" | \"getByFieldType\" | \"getDefaultInstance\" | \"parseDefaultTypeMap\"> & { deserialize: ", + ", \"deserialize\" | \"getDefaultConfig\" | \"getType\" | \"getTypeWithoutMetaParams\" | \"getDefaultType\" | \"getTypeNameByEsTypes\" | \"getDefaultTypeName\" | \"getInstance\" | \"getDefaultInstancePlain\" | \"getDefaultInstanceCacheResolver\" | \"getByFieldType\" | \"getDefaultInstance\" | \"parseDefaultTypeMap\" | \"has\"> & { deserialize: ", "FormatFactory", "; }" ], @@ -29237,9 +29625,7 @@ "\nquery service\n{@link QueryStart}" ], "signature": [ - "{ addToQueryLog: (appName: string, { language, query }: ", - "Query", - ") => void; filterManager: ", + "{ addToQueryLog: (appName: string, { language, query }: any) => void; filterManager: ", { "pluginId": "data", "scope": "public", @@ -29295,11 +29681,7 @@ }, " | undefined) => { bool: { must: ", "DslQuery", - "[]; filter: ", - "Filter", - "[]; should: never[]; must_not: ", - "Filter", - "[]; }; }; }" + "[]; filter: any[]; should: never[]; must_not: any[]; }; }; }" ], "source": { "path": "src/plugins/data/public/types.ts", @@ -29577,15 +29959,7 @@ "section": "def-server.PluginInitializerContext", "text": "PluginInitializerContext" }, - "; }>; }>; autocomplete: Readonly<{} & { querySuggestions: Readonly<{} & { enabled: boolean; }>; valueSuggestions: Readonly<{} & { enabled: boolean; timeout: moment.Duration; method: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ValueSuggestionsMethod", - "text": "ValueSuggestionsMethod" - }, - "; tiers: string[]; terminateAfter: moment.Duration; }>; }>; }>>" + "; }>; }>; autocomplete: Readonly<{} & { querySuggestions: Readonly<{} & { enabled: boolean; }>; valueSuggestions: Readonly<{} & { enabled: boolean; timeout: moment.Duration; tiers: string[]; terminateAfter: moment.Duration; }>; }>; }>>" ], "source": { "path": "src/plugins/data/server/plugin.ts", @@ -34015,46 +34389,177 @@ } ], "functions": [ + { + "parentPluginId": "data", + "id": "def-server.buildQueryFromFilters", + "type": "Function", + "tags": [ + "deprecated" + ], + "label": "buildQueryFromFilters", + "description": [], + "signature": [ + "(filters: any[] | undefined, indexPattern: ", + "IndexPatternBase", + " | undefined, ignoreFilterIfFieldNotInIndex?: boolean | undefined) => { must: never[]; filter: any[]; should: never[]; must_not: any[]; }" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 105 + }, + "deprecated": true, + "references": [], + "returnComment": [], + "children": [ + { + "parentPluginId": "data", + "id": "def-server.filters", + "type": "Array", + "tags": [], + "label": "filters", + "description": [], + "signature": [ + "any[] | undefined" + ], + "source": { + "path": "node_modules/@kbn/es-query/target_types/es_query/from_filters.d.ts", + "lineNumber": 3 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-server.indexPattern", + "type": "Object", + "tags": [], + "label": "indexPattern", + "description": [], + "signature": [ + "IndexPatternBase", + " | undefined" + ], + "source": { + "path": "node_modules/@kbn/es-query/target_types/es_query/from_filters.d.ts", + "lineNumber": 3 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-server.ignoreFilterIfFieldNotInIndex", + "type": "CompoundType", + "tags": [], + "label": "ignoreFilterIfFieldNotInIndex", + "description": [], + "signature": [ + "boolean | undefined" + ], + "source": { + "path": "node_modules/@kbn/es-query/target_types/es_query/from_filters.d.ts", + "lineNumber": 3 + }, + "deprecated": false + } + ], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-server.castEsToKbnFieldTypeName", "type": "Function", "tags": [ - "return" + "deprecated" ], "label": "castEsToKbnFieldTypeName", - "description": [ - "\n Get the KbnFieldType name for an esType string\n" - ], + "description": [], "signature": [ "(esType: string) => ", + "KBN_FIELD_TYPES" + ], + "source": { + "path": "src/plugins/data/common/kbn_field_types/index.ts", + "lineNumber": 22 + }, + "deprecated": true, + "removeBy": "8.0", + "references": [ { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" + "plugin": "indexPatternFieldEditor", + "link": { + "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/field_format_editor.tsx", + "lineNumber": 22 + } + }, + { + "plugin": "indexPatternFieldEditor", + "link": { + "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/field_format_editor.tsx", + "lineNumber": 83 + } + }, + { + "plugin": "savedObjectsManagement", + "link": { + "path": "src/plugins/saved_objects_management/public/lib/create_field_list.ts", + "lineNumber": 11 + } + }, + { + "plugin": "savedObjectsManagement", + "link": { + "path": "src/plugins/saved_objects_management/public/lib/create_field_list.ts", + "lineNumber": 94 + } } ], + "returnComment": [], + "children": [ + { + "parentPluginId": "data", + "id": "def-server.esType", + "type": "string", + "tags": [], + "label": "esType", + "description": [], + "source": { + "path": "node_modules/@kbn/field-types/target_types/kbn_field_types.d.ts", + "lineNumber": 22 + }, + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-server.getEsQueryConfig", + "type": "Function", + "tags": [], + "label": "getEsQueryConfig", + "description": [], + "signature": [ + "(config: KibanaConfig) => ", + "EsQueryConfig" + ], "source": { - "path": "src/plugins/data/common/kbn_field_types/kbn_field_types.ts", - "lineNumber": 39 + "path": "src/plugins/data/common/es_query/get_es_query_config.ts", + "lineNumber": 16 }, "deprecated": false, "children": [ { "parentPluginId": "data", - "id": "def-server.castEsToKbnFieldTypeName.$1", - "type": "string", + "id": "def-server.getEsQueryConfig.$1", + "type": "Object", "tags": [], - "label": "esType", + "label": "config", "description": [], "signature": [ - "string" + "KibanaConfig" ], "source": { - "path": "src/plugins/data/common/kbn_field_types/kbn_field_types.ts", - "lineNumber": 39 + "path": "src/plugins/data/common/es_query/get_es_query_config.ts", + "lineNumber": 16 }, "deprecated": false, "isRequired": true @@ -34087,9 +34592,7 @@ "section": "def-common.TimeRange", "text": "TimeRange" }, - ", options: { forceNow?: Date | undefined; fieldName?: string | undefined; } | undefined) => ", - "RangeFilter", - " | undefined" + ", options: { forceNow?: Date | undefined; fieldName?: string | undefined; } | undefined) => any" ], "source": { "path": "src/plugins/data/common/query/timefilter/get_time.ts", @@ -34245,7 +34748,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 196 + "lineNumber": 195 }, "deprecated": false, "children": [ @@ -34274,7 +34777,71 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".FILTER>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\"> & Pick<{ geo_bounding_box?: string | undefined; filter?: string | undefined; }, \"geo_bounding_box\"> & Pick<{ geo_bounding_box?: string | undefined; filter?: string | undefined; }, \"filter\">, \"enabled\" | \"id\" | \"filter\" | \"customLabel\" | \"schema\" | \"geo_bounding_box\" | \"json\" | \"timeShift\">, ", + ".FILTER>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\"> & Pick<{ geo_bounding_box?: ({ type: \"geo_bounding_box\"; } & GeoBox) | ({ type: \"geo_bounding_box\"; } & { top_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & { top_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & WellKnownText) | undefined; filter?: any; }, \"filter\" | \"geo_bounding_box\"> & Pick<{ geo_bounding_box?: ({ type: \"geo_bounding_box\"; } & GeoBox) | ({ type: \"geo_bounding_box\"; } & { top_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & { top_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & WellKnownText) | undefined; filter?: any; }, never>, \"enabled\" | \"id\" | \"filter\" | \"customLabel\" | \"schema\" | \"geo_bounding_box\" | \"json\" | \"timeShift\">, ", "AggExpressionType", ", ", { @@ -34298,7 +34865,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 197 + "lineNumber": 196 }, "deprecated": false }, @@ -34327,7 +34894,39 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".FILTERS>, \"enabled\" | \"id\" | \"schema\" | \"json\" | \"timeShift\"> & Pick<{ filters?: string | undefined; }, \"filters\"> & Pick<{ filters?: string | undefined; }, never>, \"enabled\" | \"filters\" | \"id\" | \"schema\" | \"json\" | \"timeShift\">, ", + ".FILTERS>, \"enabled\" | \"id\" | \"schema\" | \"json\" | \"timeShift\"> & Pick<{ filters?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"kibana_query_filter\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.QueryFilter", + "text": "QueryFilter" + }, + ">[] | undefined; }, \"filters\"> & Pick<{ filters?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"kibana_query_filter\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.QueryFilter", + "text": "QueryFilter" + }, + ">[] | undefined; }, never>, \"enabled\" | \"filters\" | \"id\" | \"schema\" | \"json\" | \"timeShift\">, ", "AggExpressionType", ", ", { @@ -34351,7 +34950,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 198 + "lineNumber": 197 }, "deprecated": false }, @@ -34404,7 +35003,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 199 + "lineNumber": 198 }, "deprecated": false }, @@ -34433,7 +35032,71 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".IP_RANGE>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\"> & Pick<{ ranges?: string | undefined; ipRangeType?: string | undefined; }, \"ipRangeType\" | \"ranges\"> & Pick<{ ranges?: string | undefined; ipRangeType?: string | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"ipRangeType\" | \"ranges\">, ", + ".IP_RANGE>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\"> & Pick<{ ranges?: (", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"cidr\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.Cidr", + "text": "Cidr" + }, + "> | ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"ip_range\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.IpRange", + "text": "IpRange" + }, + ">)[] | undefined; ipRangeType?: string | undefined; }, \"ipRangeType\" | \"ranges\"> & Pick<{ ranges?: (", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"cidr\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.Cidr", + "text": "Cidr" + }, + "> | ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"ip_range\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.IpRange", + "text": "IpRange" + }, + ">)[] | undefined; ipRangeType?: string | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"ipRangeType\" | \"ranges\">, ", "AggExpressionType", ", ", { @@ -34457,7 +35120,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 200 + "lineNumber": 199 }, "deprecated": false }, @@ -34486,7 +35149,39 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".DATE_RANGE>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"time_zone\"> & Pick<{ ranges?: string | undefined; }, \"ranges\"> & Pick<{ ranges?: string | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"ranges\" | \"time_zone\">, ", + ".DATE_RANGE>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"time_zone\"> & Pick<{ ranges?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"date_range\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.DateRange", + "text": "DateRange" + }, + ">[] | undefined; }, \"ranges\"> & Pick<{ ranges?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"date_range\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.DateRange", + "text": "DateRange" + }, + ">[] | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"ranges\" | \"time_zone\">, ", "AggExpressionType", ", ", { @@ -34510,7 +35205,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 201 + "lineNumber": 200 }, "deprecated": false }, @@ -34539,7 +35234,39 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".RANGE>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\"> & Pick<{ ranges?: string | undefined; }, \"ranges\"> & Pick<{ ranges?: string | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"ranges\">, ", + ".RANGE>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\"> & Pick<{ ranges?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"numerical_range\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.NumericalRange", + "text": "NumericalRange" + }, + ">[] | undefined; }, \"ranges\"> & Pick<{ ranges?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"numerical_range\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.NumericalRange", + "text": "NumericalRange" + }, + ">[] | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"ranges\">, ", "AggExpressionType", ", ", { @@ -34563,7 +35290,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 202 + "lineNumber": 201 }, "deprecated": false }, @@ -34616,7 +35343,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 203 + "lineNumber": 202 }, "deprecated": false }, @@ -34645,7 +35372,71 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".GEOHASH_GRID>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"autoPrecision\" | \"precision\" | \"useGeocentroid\" | \"isFilteredByCollar\"> & Pick<{ boundingBox?: string | undefined; }, \"boundingBox\"> & Pick<{ boundingBox?: string | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"autoPrecision\" | \"precision\" | \"useGeocentroid\" | \"isFilteredByCollar\" | \"boundingBox\">, ", + ".GEOHASH_GRID>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"autoPrecision\" | \"precision\" | \"useGeocentroid\" | \"isFilteredByCollar\"> & Pick<{ boundingBox?: ({ type: \"geo_bounding_box\"; } & GeoBox) | ({ type: \"geo_bounding_box\"; } & { top_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & { top_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & WellKnownText) | undefined; }, \"boundingBox\"> & Pick<{ boundingBox?: ({ type: \"geo_bounding_box\"; } & GeoBox) | ({ type: \"geo_bounding_box\"; } & { top_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & { top_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & WellKnownText) | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"autoPrecision\" | \"precision\" | \"useGeocentroid\" | \"isFilteredByCollar\" | \"boundingBox\">, ", "AggExpressionType", ", ", { @@ -34669,7 +35460,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 204 + "lineNumber": 203 }, "deprecated": false }, @@ -34698,7 +35489,39 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".HISTOGRAM>, \"enabled\" | \"interval\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"used_interval\" | \"maxBars\" | \"intervalBase\" | \"min_doc_count\" | \"has_extended_bounds\"> & Pick<{ extended_bounds?: string | undefined; }, \"extended_bounds\"> & Pick<{ extended_bounds?: string | undefined; }, never>, \"enabled\" | \"interval\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"used_interval\" | \"maxBars\" | \"intervalBase\" | \"min_doc_count\" | \"has_extended_bounds\" | \"extended_bounds\">, ", + ".HISTOGRAM>, \"enabled\" | \"interval\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"used_interval\" | \"maxBars\" | \"intervalBase\" | \"min_doc_count\" | \"has_extended_bounds\"> & Pick<{ extended_bounds?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"extended_bounds\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + }, + "> | undefined; }, \"extended_bounds\"> & Pick<{ extended_bounds?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"extended_bounds\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + }, + "> | undefined; }, never>, \"enabled\" | \"interval\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"used_interval\" | \"maxBars\" | \"intervalBase\" | \"min_doc_count\" | \"has_extended_bounds\" | \"extended_bounds\">, ", "AggExpressionType", ", ", { @@ -34722,7 +35545,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 205 + "lineNumber": 204 }, "deprecated": false }, @@ -34751,7 +35574,71 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".DATE_HISTOGRAM>, \"enabled\" | \"interval\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"time_zone\" | \"used_interval\" | \"min_doc_count\" | \"useNormalizedEsInterval\" | \"scaleMetricValues\" | \"used_time_zone\" | \"drop_partials\" | \"format\"> & Pick<{ timeRange?: string | undefined; extended_bounds?: string | undefined; }, \"timeRange\" | \"extended_bounds\"> & Pick<{ timeRange?: string | undefined; extended_bounds?: string | undefined; }, never>, \"enabled\" | \"interval\" | \"timeRange\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"time_zone\" | \"used_interval\" | \"min_doc_count\" | \"extended_bounds\" | \"useNormalizedEsInterval\" | \"scaleMetricValues\" | \"used_time_zone\" | \"drop_partials\" | \"format\">, ", + ".DATE_HISTOGRAM>, \"enabled\" | \"interval\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"time_zone\" | \"used_interval\" | \"min_doc_count\" | \"useNormalizedEsInterval\" | \"scaleMetricValues\" | \"used_time_zone\" | \"drop_partials\" | \"format\"> & Pick<{ timeRange?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"timerange\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataQueryPluginApi", + "section": "def-common.TimeRange", + "text": "TimeRange" + }, + "> | undefined; extended_bounds?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"extended_bounds\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + }, + "> | undefined; }, \"timeRange\" | \"extended_bounds\"> & Pick<{ timeRange?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"timerange\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataQueryPluginApi", + "section": "def-common.TimeRange", + "text": "TimeRange" + }, + "> | undefined; extended_bounds?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"extended_bounds\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + }, + "> | undefined; }, never>, \"enabled\" | \"interval\" | \"timeRange\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"time_zone\" | \"used_interval\" | \"min_doc_count\" | \"extended_bounds\" | \"useNormalizedEsInterval\" | \"scaleMetricValues\" | \"used_time_zone\" | \"drop_partials\" | \"format\">, ", "AggExpressionType", ", ", { @@ -34775,7 +35662,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 206 + "lineNumber": 205 }, "deprecated": false }, @@ -34832,7 +35719,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 207 + "lineNumber": 206 }, "deprecated": false }, @@ -34885,7 +35772,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 208 + "lineNumber": 207 }, "deprecated": false }, @@ -34946,7 +35833,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 209 + "lineNumber": 208 }, "deprecated": false }, @@ -35007,7 +35894,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 210 + "lineNumber": 209 }, "deprecated": false }, @@ -35068,7 +35955,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 211 + "lineNumber": 210 }, "deprecated": false }, @@ -35129,7 +36016,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 212 + "lineNumber": 211 }, "deprecated": false }, @@ -35190,7 +36077,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 213 + "lineNumber": 212 }, "deprecated": false }, @@ -35243,7 +36130,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 214 + "lineNumber": 213 }, "deprecated": false }, @@ -35296,7 +36183,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 215 + "lineNumber": 214 }, "deprecated": false }, @@ -35353,7 +36240,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 216 + "lineNumber": 215 }, "deprecated": false }, @@ -35410,7 +36297,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 217 + "lineNumber": 216 }, "deprecated": false }, @@ -35463,7 +36350,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 218 + "lineNumber": 217 }, "deprecated": false }, @@ -35516,7 +36403,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 219 + "lineNumber": 218 }, "deprecated": false }, @@ -35569,7 +36456,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 220 + "lineNumber": 219 }, "deprecated": false }, @@ -35622,7 +36509,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 221 + "lineNumber": 220 }, "deprecated": false }, @@ -35675,7 +36562,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 222 + "lineNumber": 221 }, "deprecated": false }, @@ -35728,7 +36615,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 223 + "lineNumber": 222 }, "deprecated": false }, @@ -35785,7 +36672,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 224 + "lineNumber": 223 }, "deprecated": false }, @@ -35838,7 +36725,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 225 + "lineNumber": 224 }, "deprecated": false }, @@ -35891,7 +36778,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 226 + "lineNumber": 225 }, "deprecated": false }, @@ -35948,7 +36835,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 227 + "lineNumber": 226 }, "deprecated": false }, @@ -36001,7 +36888,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 228 + "lineNumber": 227 }, "deprecated": false }, @@ -36054,7 +36941,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 229 + "lineNumber": 228 }, "deprecated": false }, @@ -36107,7 +36994,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 230 + "lineNumber": 229 }, "deprecated": false } @@ -38521,9 +39408,12 @@ "tags": [], "label": "ES_FIELD_TYPES", "description": [], + "signature": [ + "ES_FIELD_TYPES" + ], "source": { - "path": "src/plugins/data/common/kbn_field_types/types.ts", - "lineNumber": 18 + "path": "node_modules/@kbn/field-types/target_types/types.d.ts", + "lineNumber": 9 }, "deprecated": false, "initialIsOpen": false @@ -38535,9 +39425,12 @@ "tags": [], "label": "KBN_FIELD_TYPES", "description": [], + "signature": [ + "KBN_FIELD_TYPES" + ], "source": { - "path": "src/plugins/data/common/kbn_field_types/types.ts", - "lineNumber": 65 + "path": "node_modules/@kbn/field-types/target_types/types.d.ts", + "lineNumber": 47 }, "deprecated": false, "initialIsOpen": false @@ -38707,7 +39600,7 @@ ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 305 + "lineNumber": 353 }, "deprecated": true, "references": [ @@ -38750,13 +39643,7 @@ "label": "ExecutionContextSearch", "description": [], "signature": [ - "{ filters?: ", - "Filter", - "[] | undefined; query?: ", - "Query", - " | ", - "Query", - "[] | undefined; timeRange?: ", + "{ filters?: any[] | undefined; query?: any; timeRange?: ", { "pluginId": "data", "scope": "common", @@ -38952,15 +39839,11 @@ "label": "Filter", "description": [], "signature": [ - "{ $state?: ", - "FilterState", - " | undefined; meta: ", - "FilterMeta", - "; query?: any; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 230 + "lineNumber": 278 }, "deprecated": true, "references": [ @@ -39542,35 +40425,35 @@ "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/store/t_grid/model.ts", - "lineNumber": 52 + "lineNumber": 54 } }, { "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx", - "lineNumber": 30 + "lineNumber": 28 } }, { "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx", - "lineNumber": 116 + "lineNumber": 114 } }, { "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx", - "lineNumber": 28 + "lineNumber": 27 } }, { "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx", - "lineNumber": 109 + "lineNumber": 108 } }, { @@ -40252,41 +41135,6 @@ "lineNumber": 183 } }, - { - "plugin": "securitySolution", - "link": { - "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/helpers.ts", - "lineNumber": 8 - } - }, - { - "plugin": "securitySolution", - "link": { - "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/helpers.ts", - "lineNumber": 14 - } - }, - { - "plugin": "securitySolution", - "link": { - "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/helpers.ts", - "lineNumber": 50 - } - }, - { - "plugin": "securitySolution", - "link": { - "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/index.tsx", - "lineNumber": 11 - } - }, - { - "plugin": "securitySolution", - "link": { - "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/index.tsx", - "lineNumber": 21 - } - }, { "plugin": "securitySolution", "link": { @@ -40455,6 +41303,41 @@ "lineNumber": 36 } }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/helpers.ts", + "lineNumber": 8 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/helpers.ts", + "lineNumber": 14 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/helpers.ts", + "lineNumber": 50 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/index.tsx", + "lineNumber": 11 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/index.tsx", + "lineNumber": 21 + } + }, { "plugin": "securitySolution", "link": { @@ -40612,29 +41495,29 @@ { "plugin": "securitySolution", "link": { - "path": "x-pack/plugins/security_solution/public/detections/components/alerts_histogram_panel/index.tsx", + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/index.tsx", "lineNumber": 22 } }, { "plugin": "securitySolution", "link": { - "path": "x-pack/plugins/security_solution/public/detections/components/alerts_histogram_panel/index.tsx", - "lineNumber": 63 + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/index.tsx", + "lineNumber": 62 } }, { "plugin": "securitySolution", "link": { "path": "x-pack/plugins/security_solution/public/overview/components/signals_by_category/index.tsx", - "lineNumber": 15 + "lineNumber": 14 } }, { "plugin": "securitySolution", "link": { "path": "x-pack/plugins/security_solution/public/overview/components/signals_by_category/index.tsx", - "lineNumber": 23 + "lineNumber": 22 } }, { @@ -40648,7 +41531,7 @@ "plugin": "securitySolution", "link": { "path": "x-pack/plugins/security_solution/public/common/components/top_n/top_n.tsx", - "lineNumber": 54 + "lineNumber": 55 } }, { @@ -40662,7 +41545,7 @@ "plugin": "securitySolution", "link": { "path": "x-pack/plugins/security_solution/public/common/components/top_n/index.tsx", - "lineNumber": 30 + "lineNumber": 31 } }, { @@ -40742,6 +41625,20 @@ "lineNumber": 114 } }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_count_panel/index.tsx", + "lineNumber": 23 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_count_panel/index.tsx", + "lineNumber": 30 + } + }, { "plugin": "securitySolution", "link": { @@ -42107,21 +43004,9 @@ "[]) => void; deserialize: ", "FormatFactory", "; getDefaultConfig: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", { "pluginId": "data", @@ -42135,71 +43020,23 @@ " | undefined; getTypeWithoutMetaParams: (formatId: string) => ", "FieldFormatInstanceType", " | undefined; getDefaultType: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", "FieldFormatInstanceType", " | undefined; getTypeNameByEsTypes: (esTypes: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", " | undefined; getDefaultTypeName: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", " | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "; getInstance: ((formatId: string, params?: Record) => ", { "pluginId": "data", @@ -42209,21 +43046,9 @@ "text": "FieldFormat" }, ") & _.MemoizedFunction; getDefaultInstancePlain: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined, params?: Record) => ", { "pluginId": "data", @@ -42233,47 +43058,17 @@ "text": "FieldFormat" }, "; getDefaultInstanceCacheResolver: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[]) => string; getByFieldType: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ") => ", "FieldFormatInstanceType", "[]; getDefaultInstance: ((fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined, params?: Record) => ", { "pluginId": "data", @@ -42282,7 +43077,7 @@ "section": "def-common.FieldFormat", "text": "FieldFormat" }, - ") & _.MemoizedFunction; parseDefaultTypeMap: (value: any) => void; }" + ") & _.MemoizedFunction; parseDefaultTypeMap: (value: any) => void; has: (id: string) => boolean; }" ], "source": { "path": "src/plugins/data/common/field_formats/index.ts", @@ -42328,7 +43123,7 @@ ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 300 + "lineNumber": 348 }, "deprecated": true, "references": [ @@ -42478,7 +43273,7 @@ ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 290 + "lineNumber": 338 }, "deprecated": true, "references": [ @@ -42503,39 +43298,18 @@ "lineNumber": 97 } }, - { - "plugin": "alerting", - "link": { - "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization_kuery.ts", - "lineNumber": 11 - } - }, - { - "plugin": "alerting", - "link": { - "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization_kuery.ts", - "lineNumber": 39 - } - }, - { - "plugin": "alerting", - "link": { - "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization_kuery.ts", - "lineNumber": 41 - } - }, { "plugin": "alerting", "link": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 22 + "lineNumber": 23 } }, { "plugin": "alerting", "link": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 278 + "lineNumber": 281 } }, { @@ -42605,28 +43379,28 @@ "plugin": "fleet", "link": { "path": "x-pack/plugins/fleet/server/services/agents/status.ts", - "lineNumber": 32 + "lineNumber": 31 } }, { "plugin": "fleet", "link": { "path": "x-pack/plugins/fleet/server/services/agents/status.ts", - "lineNumber": 32 + "lineNumber": 31 } }, { "plugin": "fleet", "link": { "path": "x-pack/plugins/fleet/server/services/agents/status.ts", - "lineNumber": 36 + "lineNumber": 35 } }, { "plugin": "fleet", "link": { "path": "x-pack/plugins/fleet/server/services/agents/status.ts", - "lineNumber": 49 + "lineNumber": 48 } }, { @@ -43057,23 +43831,6 @@ "deprecated": false, "initialIsOpen": false }, - { - "parentPluginId": "data", - "id": "def-server.Query", - "type": "Type", - "tags": [], - "label": "Query", - "description": [], - "signature": [ - "{ query: string | { [key: string]: any; }; language: string; }" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/types.d.ts", - "lineNumber": 48 - }, - "deprecated": false, - "initialIsOpen": false - }, { "parentPluginId": "data", "id": "def-server.TimeRange", @@ -43173,72 +43930,26 @@ "label": "esFilters", "description": [], "source": { - "path": "src/plugins/data/server/index.ts", - "lineNumber": 33 + "path": "src/plugins/data/server/deprecated.ts", + "lineNumber": 29 }, "deprecated": false, "children": [ { "parentPluginId": "data", "id": "def-server.esFilters.buildQueryFilter", - "type": "Function", + "type": "Any", "tags": [], "label": "buildQueryFilter", "description": [], "signature": [ - "(query: any, index: string, alias: string) => ", - "QueryStringFilter" + "any" ], "source": { - "path": "src/plugins/data/server/index.ts", - "lineNumber": 34 + "path": "src/plugins/data/server/deprecated.ts", + "lineNumber": 30 }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-server.query", - "type": "Any", - "tags": [], - "label": "query", - "description": [], - "signature": [ - "any" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/query_string_filter.d.ts", - "lineNumber": 12 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-server.index", - "type": "string", - "tags": [], - "label": "index", - "description": [], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/query_string_filter.d.ts", - "lineNumber": 12 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-server.alias", - "type": "string", - "tags": [], - "label": "alias", - "description": [], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/query_string_filter.d.ts", - "lineNumber": 12 - }, - "deprecated": false - } - ] + "deprecated": false }, { "parentPluginId": "data", @@ -43250,12 +43961,11 @@ "signature": [ "(indexPatternString: string, queryDsl: any, disabled: boolean, negate: boolean, alias: string | null, store: ", "FilterStateStore", - ") => ", - "Filter" + ") => any" ], "source": { - "path": "src/plugins/data/server/index.ts", - "lineNumber": 35 + "path": "src/plugins/data/server/deprecated.ts", + "lineNumber": 31 }, "deprecated": false, "returnComment": [], @@ -43352,107 +44062,34 @@ { "parentPluginId": "data", "id": "def-server.esFilters.buildEmptyFilter", - "type": "Function", + "type": "Any", "tags": [], "label": "buildEmptyFilter", "description": [], "signature": [ - "(isPinned: boolean, index?: string | undefined) => ", - "Filter" + "any" ], "source": { - "path": "src/plugins/data/server/index.ts", - "lineNumber": 36 + "path": "src/plugins/data/server/deprecated.ts", + "lineNumber": 32 }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-server.isPinned", - "type": "boolean", - "tags": [], - "label": "isPinned", - "description": [], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/meta_filter.d.ts", - "lineNumber": 2 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-server.index", - "type": "string", - "tags": [], - "label": "index", - "description": [], - "signature": [ - "string | undefined" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/meta_filter.d.ts", - "lineNumber": 2 - }, - "deprecated": false - } - ] + "deprecated": false }, { "parentPluginId": "data", "id": "def-server.esFilters.buildExistsFilter", - "type": "Function", + "type": "Any", "tags": [], "label": "buildExistsFilter", "description": [], "signature": [ - "(field: ", - "IndexPatternFieldBase", - ", indexPattern: ", - "IndexPatternBase", - ") => ", - "ExistsFilter" + "any" ], "source": { - "path": "src/plugins/data/server/index.ts", - "lineNumber": 37 + "path": "src/plugins/data/server/deprecated.ts", + "lineNumber": 33 }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-server.field", - "type": "Object", - "tags": [], - "label": "field", - "description": [], - "signature": [ - "IndexPatternFieldBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/exists_filter.d.ts", - "lineNumber": 13 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-server.indexPattern", - "type": "Object", - "tags": [], - "label": "indexPattern", - "description": [], - "signature": [ - "IndexPatternBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/exists_filter.d.ts", - "lineNumber": 13 - }, - "deprecated": false - } - ] + "deprecated": false }, { "parentPluginId": "data", @@ -43470,12 +44107,11 @@ "FILTERS", ", negate: boolean, disabled: boolean, params: any, alias: string | null, store?: ", "FilterStateStore", - " | undefined) => ", - "Filter" + " | undefined) => any" ], "source": { - "path": "src/plugins/data/server/index.ts", - "lineNumber": 38 + "path": "src/plugins/data/server/deprecated.ts", + "lineNumber": 34 }, "deprecated": false, "returnComment": [], @@ -43608,236 +44244,50 @@ { "parentPluginId": "data", "id": "def-server.esFilters.buildPhraseFilter", - "type": "Function", + "type": "Any", "tags": [], "label": "buildPhraseFilter", "description": [], "signature": [ - "(field: ", - "IndexPatternFieldBase", - ", value: any, indexPattern: ", - "IndexPatternBase", - ") => ", - "PhraseFilter" + "any" ], "source": { - "path": "src/plugins/data/server/index.ts", - "lineNumber": 39 + "path": "src/plugins/data/server/deprecated.ts", + "lineNumber": 35 }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-server.field", - "type": "Object", - "tags": [], - "label": "field", - "description": [], - "signature": [ - "IndexPatternFieldBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrase_filter.d.ts", - "lineNumber": 26 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-server.value", - "type": "Any", - "tags": [], - "label": "value", - "description": [], - "signature": [ - "any" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrase_filter.d.ts", - "lineNumber": 26 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-server.indexPattern", - "type": "Object", - "tags": [], - "label": "indexPattern", - "description": [], - "signature": [ - "IndexPatternBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrase_filter.d.ts", - "lineNumber": 26 - }, - "deprecated": false - } - ] + "deprecated": false }, { "parentPluginId": "data", "id": "def-server.esFilters.buildPhrasesFilter", - "type": "Function", + "type": "Any", "tags": [], "label": "buildPhrasesFilter", "description": [], "signature": [ - "(field: ", - "IndexPatternFieldBase", - ", params: any[], indexPattern: ", - "IndexPatternBase", - ") => ", - "PhrasesFilter" + "any" ], "source": { - "path": "src/plugins/data/server/index.ts", - "lineNumber": 40 + "path": "src/plugins/data/server/deprecated.ts", + "lineNumber": 36 }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-server.field", - "type": "Object", - "tags": [], - "label": "field", - "description": [], - "signature": [ - "IndexPatternFieldBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrases_filter.d.ts", - "lineNumber": 12 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-server.params", - "type": "Array", - "tags": [], - "label": "params", - "description": [], - "signature": [ - "any[]" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrases_filter.d.ts", - "lineNumber": 12 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-server.indexPattern", - "type": "Object", - "tags": [], - "label": "indexPattern", - "description": [], - "signature": [ - "IndexPatternBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrases_filter.d.ts", - "lineNumber": 12 - }, - "deprecated": false - } - ] + "deprecated": false }, { "parentPluginId": "data", "id": "def-server.esFilters.buildRangeFilter", - "type": "Function", + "type": "Any", "tags": [], "label": "buildRangeFilter", "description": [], "signature": [ - "(field: ", - "IndexPatternFieldBase", - ", params: ", - "RangeFilterParams", - ", indexPattern: ", - "IndexPatternBase", - ", formattedValue?: string | undefined) => ", - "RangeFilter" + "any" ], "source": { - "path": "src/plugins/data/server/index.ts", - "lineNumber": 41 + "path": "src/plugins/data/server/deprecated.ts", + "lineNumber": 37 }, - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-server.field", - "type": "Object", - "tags": [], - "label": "field", - "description": [], - "signature": [ - "IndexPatternFieldBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/range_filter.d.ts", - "lineNumber": 37 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-server.params", - "type": "Object", - "tags": [], - "label": "params", - "description": [], - "signature": [ - "RangeFilterParams" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/range_filter.d.ts", - "lineNumber": 37 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-server.indexPattern", - "type": "Object", - "tags": [], - "label": "indexPattern", - "description": [], - "signature": [ - "IndexPatternBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/range_filter.d.ts", - "lineNumber": 37 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-server.formattedValue", - "type": "string", - "tags": [], - "label": "formattedValue", - "description": [], - "signature": [ - "string | undefined" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/range_filter.d.ts", - "lineNumber": 37 - }, - "deprecated": false - } - ] + "deprecated": false }, { "parentPluginId": "data", @@ -43847,13 +44297,11 @@ "label": "isFilterDisabled", "description": [], "signature": [ - "(filter: ", - "Filter", - ") => boolean" + "(filter: any) => boolean" ], "source": { - "path": "src/plugins/data/server/index.ts", - "lineNumber": 42 + "path": "src/plugins/data/server/deprecated.ts", + "lineNumber": 38 }, "deprecated": false, "returnComment": [], @@ -43861,20 +44309,16 @@ { "parentPluginId": "data", "id": "def-server.filter", - "type": "Object", + "type": "Any", "tags": [], "label": "filter", "description": [], "signature": [ - "{ $state?: ", - "FilterState", - " | undefined; meta: ", - "FilterMeta", - "; query?: any; }" + "any" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/index.d.ts", - "lineNumber": 23 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/meta_filter.d.ts", + "lineNumber": 54 }, "deprecated": false } @@ -43891,8 +44335,8 @@ "label": "esKuery", "description": [], "source": { - "path": "src/plugins/data/server/index.ts", - "lineNumber": 65 + "path": "src/plugins/data/server/deprecated.ts", + "lineNumber": 51 }, "deprecated": false, "children": [ @@ -43907,8 +44351,8 @@ "NodeTypes" ], "source": { - "path": "src/plugins/data/server/index.ts", - "lineNumber": 66 + "path": "src/plugins/data/server/deprecated.ts", + "lineNumber": 52 }, "deprecated": false }, @@ -43926,8 +44370,8 @@ "KueryNode" ], "source": { - "path": "src/plugins/data/server/index.ts", - "lineNumber": 67 + "path": "src/plugins/data/server/deprecated.ts", + "lineNumber": 53 }, "deprecated": false, "returnComment": [], @@ -43984,8 +44428,8 @@ "JsonObject" ], "source": { - "path": "src/plugins/data/server/index.ts", - "lineNumber": 68 + "path": "src/plugins/data/server/deprecated.ts", + "lineNumber": 54 }, "deprecated": false, "returnComment": [], @@ -44068,8 +44512,8 @@ "label": "esQuery", "description": [], "source": { - "path": "src/plugins/data/server/index.ts", - "lineNumber": 75 + "path": "src/plugins/data/server/deprecated.ts", + "lineNumber": 61 }, "deprecated": false, "children": [ @@ -44081,19 +44525,13 @@ "label": "buildQueryFromFilters", "description": [], "signature": [ - "(filters: ", - "Filter", - "[] | undefined, indexPattern: ", + "(filters: any[] | undefined, indexPattern: ", "IndexPatternBase", - " | undefined, ignoreFilterIfFieldNotInIndex?: boolean | undefined) => { must: never[]; filter: ", - "Filter", - "[]; should: never[]; must_not: ", - "Filter", - "[]; }" + " | undefined, ignoreFilterIfFieldNotInIndex?: boolean | undefined) => { must: never[]; filter: any[]; should: never[]; must_not: any[]; }" ], "source": { - "path": "src/plugins/data/server/index.ts", - "lineNumber": 76 + "path": "src/plugins/data/server/deprecated.ts", + "lineNumber": 62 }, "deprecated": false, "returnComment": [], @@ -44106,8 +44544,7 @@ "label": "filters", "description": [], "signature": [ - "Filter", - "[] | undefined" + "any[] | undefined" ], "source": { "path": "node_modules/@kbn/es-query/target_types/es_query/from_filters.d.ts", @@ -44162,8 +44599,8 @@ "EsQueryConfig" ], "source": { - "path": "src/plugins/data/server/index.ts", - "lineNumber": 77 + "path": "src/plugins/data/server/deprecated.ts", + "lineNumber": 63 }, "deprecated": false, "returnComment": [], @@ -44196,27 +44633,15 @@ "signature": [ "(indexPattern: ", "IndexPatternBase", - " | undefined, queries: ", - "Query", - " | ", - "Query", - "[], filters: ", - "Filter", - " | ", - "Filter", - "[], config?: ", + " | undefined, queries: any, filters: any, config?: ", "EsQueryConfig", " | undefined) => { bool: { must: ", "DslQuery", - "[]; filter: ", - "Filter", - "[]; should: never[]; must_not: ", - "Filter", - "[]; }; }" + "[]; filter: any[]; should: never[]; must_not: any[]; }; }" ], "source": { - "path": "src/plugins/data/server/index.ts", - "lineNumber": 78 + "path": "src/plugins/data/server/deprecated.ts", + "lineNumber": 64 }, "deprecated": false, "returnComment": [], @@ -44241,15 +44666,12 @@ { "parentPluginId": "data", "id": "def-server.queries", - "type": "CompoundType", + "type": "Any", "tags": [], "label": "queries", "description": [], "signature": [ - "Query", - " | ", - "Query", - "[]" + "any" ], "source": { "path": "node_modules/@kbn/es-query/target_types/es_query/build_es_query.d.ts", @@ -44260,15 +44682,12 @@ { "parentPluginId": "data", "id": "def-server.filters", - "type": "CompoundType", + "type": "Any", "tags": [], "label": "filters", "description": [], "signature": [ - "Filter", - " | ", - "Filter", - "[]" + "any" ], "source": { "path": "node_modules/@kbn/es-query/target_types/es_query/build_es_query.d.ts", @@ -44307,7 +44726,7 @@ "description": [], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 50 + "lineNumber": 21 }, "deprecated": false, "children": [ @@ -44331,7 +44750,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 51 + "lineNumber": 22 }, "deprecated": false, "returnComment": [], @@ -44385,7 +44804,7 @@ "description": [], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 52 + "lineNumber": 23 }, "deprecated": false } @@ -44401,7 +44820,7 @@ "description": [], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 106 + "lineNumber": 49 }, "deprecated": false, "children": [ @@ -44424,7 +44843,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 107 + "lineNumber": 50 }, "deprecated": false }, @@ -44447,7 +44866,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 108 + "lineNumber": 51 }, "deprecated": false }, @@ -44470,7 +44889,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 109 + "lineNumber": 52 }, "deprecated": false }, @@ -44493,7 +44912,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 110 + "lineNumber": 53 }, "deprecated": false }, @@ -44516,7 +44935,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 111 + "lineNumber": 54 }, "deprecated": false }, @@ -44539,7 +44958,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 112 + "lineNumber": 55 }, "deprecated": false }, @@ -44562,7 +44981,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 113 + "lineNumber": 56 }, "deprecated": false }, @@ -44585,7 +45004,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 114 + "lineNumber": 57 }, "deprecated": false }, @@ -44608,7 +45027,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 115 + "lineNumber": 58 }, "deprecated": false }, @@ -44631,7 +45050,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 116 + "lineNumber": 59 }, "deprecated": false }, @@ -44654,7 +45073,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 117 + "lineNumber": 60 }, "deprecated": false }, @@ -44677,7 +45096,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 118 + "lineNumber": 61 }, "deprecated": false }, @@ -44700,7 +45119,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 119 + "lineNumber": 62 }, "deprecated": false }, @@ -44723,7 +45142,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 120 + "lineNumber": 63 }, "deprecated": false }, @@ -44746,7 +45165,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 121 + "lineNumber": 64 }, "deprecated": false }, @@ -44769,7 +45188,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 122 + "lineNumber": 65 }, "deprecated": false } @@ -44785,7 +45204,7 @@ "description": [], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 138 + "lineNumber": 81 }, "deprecated": false, "children": [ @@ -44809,7 +45228,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 139 + "lineNumber": 82 }, "deprecated": false, "returnComment": [], @@ -44858,7 +45277,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 140 + "lineNumber": 83 }, "deprecated": false, "returnComment": [], @@ -44899,7 +45318,7 @@ "description": [], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 254 + "lineNumber": 197 }, "deprecated": false, "children": [ @@ -44912,7 +45331,7 @@ "description": [], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 255 + "lineNumber": 198 }, "deprecated": false, "children": [ @@ -44935,7 +45354,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 256 + "lineNumber": 199 }, "deprecated": false }, @@ -44951,7 +45370,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 257 + "lineNumber": 200 }, "deprecated": false, "returnComment": [], @@ -44991,7 +45410,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 258 + "lineNumber": 201 }, "deprecated": false }, @@ -45014,7 +45433,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 259 + "lineNumber": 202 }, "deprecated": false }, @@ -45037,7 +45456,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 260 + "lineNumber": 203 }, "deprecated": false }, @@ -45060,7 +45479,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 261 + "lineNumber": 204 }, "deprecated": false }, @@ -45084,7 +45503,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 262 + "lineNumber": 205 }, "deprecated": false, "returnComment": [], @@ -45133,7 +45552,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 263 + "lineNumber": 206 }, "deprecated": false, "returnComment": [], @@ -45182,7 +45601,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 264 + "lineNumber": 207 }, "deprecated": false, "returnComment": [], @@ -45217,7 +45636,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 265 + "lineNumber": 208 }, "deprecated": false, "returnComment": [], @@ -45249,7 +45668,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 266 + "lineNumber": 209 }, "deprecated": false, "returnComment": [], @@ -45294,7 +45713,7 @@ "description": [], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 267 + "lineNumber": 210 }, "deprecated": false }, @@ -45312,7 +45731,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 268 + "lineNumber": 211 }, "deprecated": false, "returnComment": [], @@ -45344,7 +45763,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 269 + "lineNumber": 212 }, "deprecated": false, "returnComment": [], @@ -45376,7 +45795,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 270 + "lineNumber": 213 }, "deprecated": false, "returnComment": [], @@ -45408,7 +45827,7 @@ "description": [], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 271 + "lineNumber": 214 }, "deprecated": false }, @@ -45424,7 +45843,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 272 + "lineNumber": 215 }, "deprecated": false }, @@ -45448,7 +45867,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 273 + "lineNumber": 216 }, "deprecated": false, "returnComment": [], @@ -45483,7 +45902,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 274 + "lineNumber": 217 }, "deprecated": false, "returnComment": [], @@ -45547,7 +45966,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 276 + "lineNumber": 219 }, "deprecated": false, "returnComment": [], @@ -45632,7 +46051,7 @@ ], "source": { "path": "src/plugins/data/server/index.ts", - "lineNumber": 277 + "lineNumber": 220 }, "deprecated": false, "returnComment": [], @@ -45686,7 +46105,7 @@ "label": "UI_SETTINGS", "description": [], "signature": [ - "{ readonly META_FIELDS: \"metaFields\"; readonly DOC_HIGHLIGHT: \"doc_table:highlight\"; readonly QUERY_STRING_OPTIONS: \"query:queryString:options\"; readonly QUERY_ALLOW_LEADING_WILDCARDS: \"query:allowLeadingWildcards\"; readonly SEARCH_QUERY_LANGUAGE: \"search:queryLanguage\"; readonly SORT_OPTIONS: \"sort:options\"; readonly COURIER_IGNORE_FILTER_IF_FIELD_NOT_IN_INDEX: \"courier:ignoreFilterIfFieldNotInIndex\"; readonly COURIER_SET_REQUEST_PREFERENCE: \"courier:setRequestPreference\"; readonly COURIER_CUSTOM_REQUEST_PREFERENCE: \"courier:customRequestPreference\"; readonly COURIER_MAX_CONCURRENT_SHARD_REQUESTS: \"courier:maxConcurrentShardRequests\"; readonly COURIER_BATCH_SEARCHES: \"courier:batchSearches\"; readonly SEARCH_INCLUDE_FROZEN: \"search:includeFrozen\"; readonly SEARCH_TIMEOUT: \"search:timeout\"; readonly HISTOGRAM_BAR_TARGET: \"histogram:barTarget\"; readonly HISTOGRAM_MAX_BARS: \"histogram:maxBars\"; readonly HISTORY_LIMIT: \"history:limit\"; readonly SHORT_DOTS_ENABLE: \"shortDots:enable\"; readonly FORMAT_DEFAULT_TYPE_MAP: \"format:defaultTypeMap\"; readonly FORMAT_NUMBER_DEFAULT_PATTERN: \"format:number:defaultPattern\"; readonly FORMAT_PERCENT_DEFAULT_PATTERN: \"format:percent:defaultPattern\"; readonly FORMAT_BYTES_DEFAULT_PATTERN: \"format:bytes:defaultPattern\"; readonly FORMAT_CURRENCY_DEFAULT_PATTERN: \"format:currency:defaultPattern\"; readonly FORMAT_NUMBER_DEFAULT_LOCALE: \"format:number:defaultLocale\"; readonly TIMEPICKER_REFRESH_INTERVAL_DEFAULTS: \"timepicker:refreshIntervalDefaults\"; readonly TIMEPICKER_QUICK_RANGES: \"timepicker:quickRanges\"; readonly TIMEPICKER_TIME_DEFAULTS: \"timepicker:timeDefaults\"; readonly INDEXPATTERN_PLACEHOLDER: \"indexPattern:placeholder\"; readonly FILTERS_PINNED_BY_DEFAULT: \"filters:pinnedByDefault\"; readonly FILTERS_EDITOR_SUGGEST_VALUES: \"filterEditor:suggestValues\"; readonly AUTOCOMPLETE_USE_TIMERANGE: \"autocomplete:useTimeRange\"; }" + "{ readonly META_FIELDS: \"metaFields\"; readonly DOC_HIGHLIGHT: \"doc_table:highlight\"; readonly QUERY_STRING_OPTIONS: \"query:queryString:options\"; readonly QUERY_ALLOW_LEADING_WILDCARDS: \"query:allowLeadingWildcards\"; readonly SEARCH_QUERY_LANGUAGE: \"search:queryLanguage\"; readonly SORT_OPTIONS: \"sort:options\"; readonly COURIER_IGNORE_FILTER_IF_FIELD_NOT_IN_INDEX: \"courier:ignoreFilterIfFieldNotInIndex\"; readonly COURIER_SET_REQUEST_PREFERENCE: \"courier:setRequestPreference\"; readonly COURIER_CUSTOM_REQUEST_PREFERENCE: \"courier:customRequestPreference\"; readonly COURIER_MAX_CONCURRENT_SHARD_REQUESTS: \"courier:maxConcurrentShardRequests\"; readonly COURIER_BATCH_SEARCHES: \"courier:batchSearches\"; readonly SEARCH_INCLUDE_FROZEN: \"search:includeFrozen\"; readonly SEARCH_TIMEOUT: \"search:timeout\"; readonly HISTOGRAM_BAR_TARGET: \"histogram:barTarget\"; readonly HISTOGRAM_MAX_BARS: \"histogram:maxBars\"; readonly HISTORY_LIMIT: \"history:limit\"; readonly SHORT_DOTS_ENABLE: \"shortDots:enable\"; readonly FORMAT_DEFAULT_TYPE_MAP: \"format:defaultTypeMap\"; readonly FORMAT_NUMBER_DEFAULT_PATTERN: \"format:number:defaultPattern\"; readonly FORMAT_PERCENT_DEFAULT_PATTERN: \"format:percent:defaultPattern\"; readonly FORMAT_BYTES_DEFAULT_PATTERN: \"format:bytes:defaultPattern\"; readonly FORMAT_CURRENCY_DEFAULT_PATTERN: \"format:currency:defaultPattern\"; readonly FORMAT_NUMBER_DEFAULT_LOCALE: \"format:number:defaultLocale\"; readonly TIMEPICKER_REFRESH_INTERVAL_DEFAULTS: \"timepicker:refreshIntervalDefaults\"; readonly TIMEPICKER_QUICK_RANGES: \"timepicker:quickRanges\"; readonly TIMEPICKER_TIME_DEFAULTS: \"timepicker:timeDefaults\"; readonly INDEXPATTERN_PLACEHOLDER: \"indexPattern:placeholder\"; readonly FILTERS_PINNED_BY_DEFAULT: \"filters:pinnedByDefault\"; readonly FILTERS_EDITOR_SUGGEST_VALUES: \"filterEditor:suggestValues\"; readonly AUTOCOMPLETE_USE_TIMERANGE: \"autocomplete:useTimeRange\"; readonly AUTOCOMPLETE_VALUE_SUGGESTION_METHOD: \"autocomplete:valueSuggestionMethod\"; }" ], "source": { "path": "src/plugins/data/common/constants.ts", @@ -45867,9 +46286,12 @@ "tags": [], "label": "KbnFieldType", "description": [], + "signature": [ + "KbnFieldType" + ], "source": { - "path": "src/plugins/data/common/kbn_field_types/kbn_field_type.ts", - "lineNumber": 11 + "path": "node_modules/@kbn/field-types/target_types/kbn_field_type.d.ts", + "lineNumber": 2 }, "deprecated": false, "children": [ @@ -45881,8 +46303,8 @@ "label": "name", "description": [], "source": { - "path": "src/plugins/data/common/kbn_field_types/kbn_field_type.ts", - "lineNumber": 12 + "path": "node_modules/@kbn/field-types/target_types/kbn_field_type.d.ts", + "lineNumber": 3 }, "deprecated": false }, @@ -45894,8 +46316,8 @@ "label": "sortable", "description": [], "source": { - "path": "src/plugins/data/common/kbn_field_types/kbn_field_type.ts", - "lineNumber": 13 + "path": "node_modules/@kbn/field-types/target_types/kbn_field_type.d.ts", + "lineNumber": 4 }, "deprecated": false }, @@ -45907,8 +46329,8 @@ "label": "filterable", "description": [], "source": { - "path": "src/plugins/data/common/kbn_field_types/kbn_field_type.ts", - "lineNumber": 14 + "path": "node_modules/@kbn/field-types/target_types/kbn_field_type.d.ts", + "lineNumber": 5 }, "deprecated": false }, @@ -45921,18 +46343,12 @@ "description": [], "signature": [ "readonly ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[]" ], "source": { - "path": "src/plugins/data/common/kbn_field_types/kbn_field_type.ts", - "lineNumber": 15 + "path": "node_modules/@kbn/field-types/target_types/kbn_field_type.d.ts", + "lineNumber": 6 }, "deprecated": false }, @@ -45947,8 +46363,8 @@ "any" ], "source": { - "path": "src/plugins/data/common/kbn_field_types/kbn_field_type.ts", - "lineNumber": 17 + "path": "node_modules/@kbn/field-types/target_types/kbn_field_type.d.ts", + "lineNumber": 7 }, "deprecated": false, "children": [ @@ -45961,21 +46377,15 @@ "description": [], "signature": [ "Partial<", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KbnFieldTypeOptions", - "text": "KbnFieldTypeOptions" - }, - ">" + "KbnFieldTypeOptions", + "> | undefined" ], "source": { - "path": "src/plugins/data/common/kbn_field_types/kbn_field_type.ts", - "lineNumber": 17 + "path": "node_modules/@kbn/field-types/target_types/kbn_field_type.d.ts", + "lineNumber": 7 }, "deprecated": false, - "isRequired": true + "isRequired": false } ], "returnComment": [] @@ -45997,12 +46407,11 @@ "signature": [ "(indexPatternString: string, queryDsl: any, disabled: boolean, negate: boolean, alias: string | null, store: ", "FilterStateStore", - ") => ", - "Filter" + ") => any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 200 + "lineNumber": 218 }, "deprecated": true, "references": [], @@ -46098,59 +46507,6 @@ ], "initialIsOpen": false }, - { - "parentPluginId": "data", - "id": "def-common.buildEmptyFilter", - "type": "Function", - "tags": [ - "deprecated" - ], - "label": "buildEmptyFilter", - "description": [], - "signature": [ - "(isPinned: boolean, index?: string | undefined) => ", - "Filter" - ], - "source": { - "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 210 - }, - "deprecated": true, - "references": [], - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-common.isPinned", - "type": "boolean", - "tags": [], - "label": "isPinned", - "description": [], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/meta_filter.d.ts", - "lineNumber": 2 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.index", - "type": "string", - "tags": [], - "label": "index", - "description": [], - "signature": [ - "string | undefined" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/meta_filter.d.ts", - "lineNumber": 2 - }, - "deprecated": false - } - ], - "initialIsOpen": false - }, { "parentPluginId": "data", "id": "def-common.buildEsQuery", @@ -46163,27 +46519,15 @@ "signature": [ "(indexPattern: ", "IndexPatternBase", - " | undefined, queries: ", - "Query", - " | ", - "Query", - "[], filters: ", - "Filter", - " | ", - "Filter", - "[], config?: ", + " | undefined, queries: any, filters: any, config?: ", "EsQueryConfig", " | undefined) => { bool: { must: ", "DslQuery", - "[]; filter: ", - "Filter", - "[]; should: never[]; must_not: ", - "Filter", - "[]; }; }" + "[]; filter: any[]; should: never[]; must_not: any[]; }; }" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 93 + "lineNumber": 101 }, "deprecated": true, "references": [], @@ -46209,15 +46553,12 @@ { "parentPluginId": "data", "id": "def-common.queries", - "type": "CompoundType", + "type": "Any", "tags": [], "label": "queries", "description": [], "signature": [ - "Query", - " | ", - "Query", - "[]" + "any" ], "source": { "path": "node_modules/@kbn/es-query/target_types/es_query/build_es_query.d.ts", @@ -46228,15 +46569,12 @@ { "parentPluginId": "data", "id": "def-common.filters", - "type": "CompoundType", + "type": "Any", "tags": [], "label": "filters", "description": [], "signature": [ - "Filter", - " | ", - "Filter", - "[]" + "any" ], "source": { "path": "node_modules/@kbn/es-query/target_types/es_query/build_es_query.d.ts", @@ -46256,299 +46594,8 @@ " | undefined" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/es_query/build_es_query.d.ts", - "lineNumber": 17 - }, - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "data", - "id": "def-common.buildExistsFilter", - "type": "Function", - "tags": [ - "deprecated" - ], - "label": "buildExistsFilter", - "description": [], - "signature": [ - "(field: ", - "IndexPatternFieldBase", - ", indexPattern: ", - "IndexPatternBase", - ") => ", - "ExistsFilter" - ], - "source": { - "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 215 - }, - "deprecated": true, - "references": [], - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-common.field", - "type": "Object", - "tags": [], - "label": "field", - "description": [], - "signature": [ - "IndexPatternFieldBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/exists_filter.d.ts", - "lineNumber": 13 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.indexPattern", - "type": "Object", - "tags": [], - "label": "indexPattern", - "description": [], - "signature": [ - "IndexPatternBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/exists_filter.d.ts", - "lineNumber": 13 - }, - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "data", - "id": "def-common.buildFilter", - "type": "Function", - "tags": [ - "deprecated" - ], - "label": "buildFilter", - "description": [], - "signature": [ - "(indexPattern: ", - "IndexPatternBase", - ", field: ", - "IndexPatternFieldBase", - ", type: ", - "FILTERS", - ", negate: boolean, disabled: boolean, params: any, alias: string | null, store?: ", - "FilterStateStore", - " | undefined) => ", - "Filter" - ], - "source": { - "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 205 - }, - "deprecated": true, - "references": [], - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-common.indexPattern", - "type": "Object", - "tags": [], - "label": "indexPattern", - "description": [], - "signature": [ - "IndexPatternBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/build_filters.d.ts", - "lineNumber": 4 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.field", - "type": "Object", - "tags": [], - "label": "field", - "description": [], - "signature": [ - "IndexPatternFieldBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/build_filters.d.ts", - "lineNumber": 4 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.type", - "type": "Enum", - "tags": [], - "label": "type", - "description": [], - "signature": [ - "FILTERS" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/build_filters.d.ts", - "lineNumber": 4 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.negate", - "type": "boolean", - "tags": [], - "label": "negate", - "description": [], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/build_filters.d.ts", - "lineNumber": 4 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.disabled", - "type": "boolean", - "tags": [], - "label": "disabled", - "description": [], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/build_filters.d.ts", - "lineNumber": 4 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.params", - "type": "Any", - "tags": [], - "label": "params", - "description": [], - "signature": [ - "any" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/build_filters.d.ts", - "lineNumber": 4 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.alias", - "type": "CompoundType", - "tags": [], - "label": "alias", - "description": [], - "signature": [ - "string | null" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/build_filters.d.ts", - "lineNumber": 4 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.store", - "type": "CompoundType", - "tags": [], - "label": "store", - "description": [], - "signature": [ - "FilterStateStore", - " | undefined" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/build_filters.d.ts", - "lineNumber": 4 - }, - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "data", - "id": "def-common.buildPhraseFilter", - "type": "Function", - "tags": [ - "deprecated" - ], - "label": "buildPhraseFilter", - "description": [], - "signature": [ - "(field: ", - "IndexPatternFieldBase", - ", value: any, indexPattern: ", - "IndexPatternBase", - ") => ", - "PhraseFilter" - ], - "source": { - "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 190 - }, - "deprecated": true, - "references": [], - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-common.field", - "type": "Object", - "tags": [], - "label": "field", - "description": [], - "signature": [ - "IndexPatternFieldBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrase_filter.d.ts", - "lineNumber": 26 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.value", - "type": "Any", - "tags": [], - "label": "value", - "description": [], - "signature": [ - "any" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrase_filter.d.ts", - "lineNumber": 26 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.indexPattern", - "type": "Object", - "tags": [], - "label": "indexPattern", - "description": [], - "signature": [ - "IndexPatternBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrase_filter.d.ts", - "lineNumber": 26 + "path": "node_modules/@kbn/es-query/target_types/es_query/build_es_query.d.ts", + "lineNumber": 17 }, "deprecated": false } @@ -46557,29 +46604,48 @@ }, { "parentPluginId": "data", - "id": "def-common.buildPhrasesFilter", + "id": "def-common.buildFilter", "type": "Function", "tags": [ "deprecated" ], - "label": "buildPhrasesFilter", + "label": "buildFilter", "description": [], "signature": [ - "(field: ", - "IndexPatternFieldBase", - ", params: any[], indexPattern: ", + "(indexPattern: ", "IndexPatternBase", - ") => ", - "PhrasesFilter" + ", field: ", + "IndexPatternFieldBase", + ", type: ", + "FILTERS", + ", negate: boolean, disabled: boolean, params: any, alias: string | null, store?: ", + "FilterStateStore", + " | undefined) => any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 185 + "lineNumber": 223 }, "deprecated": true, "references": [], "returnComment": [], "children": [ + { + "parentPluginId": "data", + "id": "def-common.indexPattern", + "type": "Object", + "tags": [], + "label": "indexPattern", + "description": [], + "signature": [ + "IndexPatternBase" + ], + "source": { + "path": "node_modules/@kbn/es-query/target_types/filters/build_filters.d.ts", + "lineNumber": 4 + }, + "deprecated": false + }, { "parentPluginId": "data", "id": "def-common.field", @@ -46591,106 +46657,99 @@ "IndexPatternFieldBase" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrases_filter.d.ts", - "lineNumber": 12 + "path": "node_modules/@kbn/es-query/target_types/filters/build_filters.d.ts", + "lineNumber": 4 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.params", - "type": "Array", + "id": "def-common.type", + "type": "Enum", "tags": [], - "label": "params", + "label": "type", "description": [], "signature": [ - "any[]" + "FILTERS" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrases_filter.d.ts", - "lineNumber": 12 + "path": "node_modules/@kbn/es-query/target_types/filters/build_filters.d.ts", + "lineNumber": 4 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.indexPattern", - "type": "Object", + "id": "def-common.negate", + "type": "boolean", "tags": [], - "label": "indexPattern", + "label": "negate", "description": [], - "signature": [ - "IndexPatternBase" - ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrases_filter.d.ts", - "lineNumber": 12 + "path": "node_modules/@kbn/es-query/target_types/filters/build_filters.d.ts", + "lineNumber": 4 }, "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "data", - "id": "def-common.buildQueryFilter", - "type": "Function", - "tags": [ - "deprecated" - ], - "label": "buildQueryFilter", - "description": [], - "signature": [ - "(query: any, index: string, alias: string) => ", - "QueryStringFilter" - ], - "source": { - "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 180 - }, - "deprecated": true, - "references": [], - "returnComment": [], - "children": [ + }, { "parentPluginId": "data", - "id": "def-common.query", + "id": "def-common.disabled", + "type": "boolean", + "tags": [], + "label": "disabled", + "description": [], + "source": { + "path": "node_modules/@kbn/es-query/target_types/filters/build_filters.d.ts", + "lineNumber": 4 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.params", "type": "Any", "tags": [], - "label": "query", + "label": "params", "description": [], "signature": [ "any" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/query_string_filter.d.ts", - "lineNumber": 12 + "path": "node_modules/@kbn/es-query/target_types/filters/build_filters.d.ts", + "lineNumber": 4 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.index", - "type": "string", + "id": "def-common.alias", + "type": "CompoundType", "tags": [], - "label": "index", + "label": "alias", "description": [], + "signature": [ + "string | null" + ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/query_string_filter.d.ts", - "lineNumber": 12 + "path": "node_modules/@kbn/es-query/target_types/filters/build_filters.d.ts", + "lineNumber": 4 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.alias", - "type": "string", + "id": "def-common.store", + "type": "CompoundType", "tags": [], - "label": "alias", + "label": "store", "description": [], + "signature": [ + "FilterStateStore", + " | undefined" + ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/query_string_filter.d.ts", - "lineNumber": 12 + "path": "node_modules/@kbn/es-query/target_types/filters/build_filters.d.ts", + "lineNumber": 4 }, "deprecated": false } @@ -46707,19 +46766,13 @@ "label": "buildQueryFromFilters", "description": [], "signature": [ - "(filters: ", - "Filter", - "[] | undefined, indexPattern: ", + "(filters: any[] | undefined, indexPattern: ", "IndexPatternBase", - " | undefined, ignoreFilterIfFieldNotInIndex?: boolean | undefined) => { must: never[]; filter: ", - "Filter", - "[]; should: never[]; must_not: ", - "Filter", - "[]; }" + " | undefined, ignoreFilterIfFieldNotInIndex?: boolean | undefined) => { must: never[]; filter: any[]; should: never[]; must_not: any[]; }" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 97 + "lineNumber": 105 }, "deprecated": true, "references": [], @@ -46733,8 +46786,7 @@ "label": "filters", "description": [], "signature": [ - "Filter", - "[] | undefined" + "any[] | undefined" ], "source": { "path": "node_modules/@kbn/es-query/target_types/es_query/from_filters.d.ts", @@ -46780,92 +46832,65 @@ }, { "parentPluginId": "data", - "id": "def-common.buildRangeFilter", + "id": "def-common.castEsToKbnFieldTypeName", "type": "Function", "tags": [ "deprecated" ], - "label": "buildRangeFilter", + "label": "castEsToKbnFieldTypeName", "description": [], "signature": [ - "(field: ", - "IndexPatternFieldBase", - ", params: ", - "RangeFilterParams", - ", indexPattern: ", - "IndexPatternBase", - ", formattedValue?: string | undefined) => ", - "RangeFilter" + "(esType: string) => ", + "KBN_FIELD_TYPES" ], "source": { - "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 195 + "path": "src/plugins/data/common/kbn_field_types/index.ts", + "lineNumber": 22 }, "deprecated": true, - "references": [], - "returnComment": [], - "children": [ + "removeBy": "8.0", + "references": [ { - "parentPluginId": "data", - "id": "def-common.field", - "type": "Object", - "tags": [], - "label": "field", - "description": [], - "signature": [ - "IndexPatternFieldBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/range_filter.d.ts", - "lineNumber": 37 - }, - "deprecated": false + "plugin": "indexPatternFieldEditor", + "link": { + "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/field_format_editor.tsx", + "lineNumber": 22 + } }, { - "parentPluginId": "data", - "id": "def-common.params", - "type": "Object", - "tags": [], - "label": "params", - "description": [], - "signature": [ - "RangeFilterParams" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/range_filter.d.ts", - "lineNumber": 37 - }, - "deprecated": false + "plugin": "indexPatternFieldEditor", + "link": { + "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/field_format_editor.tsx", + "lineNumber": 83 + } }, { - "parentPluginId": "data", - "id": "def-common.indexPattern", - "type": "Object", - "tags": [], - "label": "indexPattern", - "description": [], - "signature": [ - "IndexPatternBase" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/range_filter.d.ts", - "lineNumber": 37 - }, - "deprecated": false + "plugin": "savedObjectsManagement", + "link": { + "path": "src/plugins/saved_objects_management/public/lib/create_field_list.ts", + "lineNumber": 11 + } }, + { + "plugin": "savedObjectsManagement", + "link": { + "path": "src/plugins/saved_objects_management/public/lib/create_field_list.ts", + "lineNumber": 94 + } + } + ], + "returnComment": [], + "children": [ { "parentPluginId": "data", - "id": "def-common.formattedValue", + "id": "def-common.esType", "type": "string", "tags": [], - "label": "formattedValue", + "label": "esType", "description": [], - "signature": [ - "string | undefined" - ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/range_filter.d.ts", - "lineNumber": 37 + "path": "node_modules/@kbn/field-types/target_types/kbn_field_types.d.ts", + "lineNumber": 22 }, "deprecated": false } @@ -46874,44 +46899,33 @@ }, { "parentPluginId": "data", - "id": "def-common.castEsToKbnFieldTypeName", + "id": "def-common.cellHasFormulas", "type": "Function", - "tags": [ - "return" - ], - "label": "castEsToKbnFieldTypeName", - "description": [ - "\n Get the KbnFieldType name for an esType string\n" - ], + "tags": [], + "label": "cellHasFormulas", + "description": [], "signature": [ - "(esType: string) => ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - } + "(val: string) => boolean" ], "source": { - "path": "src/plugins/data/common/kbn_field_types/kbn_field_types.ts", - "lineNumber": 39 + "path": "src/plugins/data/common/exports/formula_checks.ts", + "lineNumber": 13 }, "deprecated": false, "children": [ { "parentPluginId": "data", - "id": "def-common.castEsToKbnFieldTypeName.$1", + "id": "def-common.cellHasFormulas.$1", "type": "string", "tags": [], - "label": "esType", + "label": "val", "description": [], "signature": [ "string" ], "source": { - "path": "src/plugins/data/common/kbn_field_types/kbn_field_types.ts", - "lineNumber": 39 + "path": "src/plugins/data/common/exports/formula_checks.ts", + "lineNumber": 13 }, "deprecated": false, "isRequired": true @@ -46922,39 +46936,76 @@ }, { "parentPluginId": "data", - "id": "def-common.cellHasFormulas", + "id": "def-common.compareFilters", "type": "Function", - "tags": [], - "label": "cellHasFormulas", + "tags": [ + "deprecated" + ], + "label": "compareFilters", "description": [], "signature": [ - "(val: string) => boolean" + "(first: any, second: any, comparatorOptions?: ", + "FilterCompareOptions", + " | undefined) => boolean" ], "source": { - "path": "src/plugins/data/common/exports/formula_checks.ts", - "lineNumber": 13 + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 258 }, - "deprecated": false, + "deprecated": true, + "references": [], + "returnComment": [], "children": [ { "parentPluginId": "data", - "id": "def-common.cellHasFormulas.$1", - "type": "string", + "id": "def-common.first", + "type": "Any", "tags": [], - "label": "val", + "label": "first", "description": [], "signature": [ - "string" + "any" ], "source": { - "path": "src/plugins/data/common/exports/formula_checks.ts", - "lineNumber": 13 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/compare_filters.d.ts", + "lineNumber": 23 }, - "deprecated": false, - "isRequired": true + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.second", + "type": "Any", + "tags": [], + "label": "second", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/compare_filters.d.ts", + "lineNumber": 23 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.comparatorOptions", + "type": "Object", + "tags": [], + "label": "comparatorOptions", + "description": [], + "signature": [ + "FilterCompareOptions", + " | undefined" + ], + "source": { + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/compare_filters.d.ts", + "lineNumber": 23 + }, + "deprecated": false } ], - "returnComment": [], "initialIsOpen": false }, { @@ -47096,7 +47147,7 @@ ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 105 + "lineNumber": 113 }, "deprecated": true, "references": [], @@ -47163,68 +47214,21 @@ }, { "parentPluginId": "data", - "id": "def-common.disableFilter", - "type": "Function", - "tags": [ - "deprecated" - ], - "label": "disableFilter", - "description": [], - "signature": [ - "(filter: ", - "Filter", - ") => ", - "Filter" - ], - "source": { - "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 77 - }, - "deprecated": true, - "references": [], - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-common.filter", - "type": "Object", - "tags": [], - "label": "filter", - "description": [], - "signature": [ - "{ $state?: ", - "FilterState", - " | undefined; meta: ", - "FilterMeta", - "; query?: any; }" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/meta_filter.d.ts", - "lineNumber": 44 - }, - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "data", - "id": "def-common.fromKueryExpression", + "id": "def-common.dedupFilters", "type": "Function", "tags": [ "deprecated" ], - "label": "fromKueryExpression", + "label": "dedupFilters", "description": [], "signature": [ - "(expression: any, parseOptions?: Partial<", - "KueryParseOptions", - "> | undefined) => ", - "KueryNode" + "(existingFilters: any[], filters: any[], comparatorOptions?: ", + "FilterCompareOptions", + " | undefined) => any[]" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 81 + "lineNumber": 263 }, "deprecated": true, "references": [], @@ -47232,211 +47236,50 @@ "children": [ { "parentPluginId": "data", - "id": "def-common.expression", - "type": "Any", + "id": "def-common.existingFilters", + "type": "Array", "tags": [], - "label": "expression", + "label": "existingFilters", "description": [], "signature": [ - "any" + "any[]" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/kuery/ast/ast.d.ts", - "lineNumber": 5 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/dedup_filters.d.ts", + "lineNumber": 12 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.parseOptions", - "type": "Object", + "id": "def-common.filters", + "type": "Array", "tags": [], - "label": "parseOptions", + "label": "filters", "description": [], "signature": [ - "Partial<", - "KueryParseOptions", - "> | undefined" + "any[]" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/kuery/ast/ast.d.ts", - "lineNumber": 5 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/dedup_filters.d.ts", + "lineNumber": 12 }, "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "data", - "id": "def-common.getEsQueryConfig", - "type": "Function", - "tags": [], - "label": "getEsQueryConfig", - "description": [], - "signature": [ - "(config: KibanaConfig) => ", - "EsQueryConfig" - ], - "source": { - "path": "src/plugins/data/common/es_query/get_es_query_config.ts", - "lineNumber": 16 - }, - "deprecated": false, - "children": [ + }, { "parentPluginId": "data", - "id": "def-common.getEsQueryConfig.$1", + "id": "def-common.comparatorOptions", "type": "Object", "tags": [], - "label": "config", - "description": [], - "signature": [ - "KibanaConfig" - ], - "source": { - "path": "src/plugins/data/common/es_query/get_es_query_config.ts", - "lineNumber": 16 - }, - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [], - "initialIsOpen": false - }, - { - "parentPluginId": "data", - "id": "def-common.getFilterableKbnTypeNames", - "type": "Function", - "tags": [ - "return" - ], - "label": "getFilterableKbnTypeNames", - "description": [ - "\n Get filterable KbnFieldTypes\n" - ], - "signature": [ - "() => string[]" - ], - "source": { - "path": "src/plugins/data/common/kbn_field_types/kbn_field_types.ts", - "lineNumber": 50 - }, - "deprecated": false, - "children": [], - "returnComment": [], - "initialIsOpen": false - }, - { - "parentPluginId": "data", - "id": "def-common.getKbnFieldType", - "type": "Function", - "tags": [ - "return" - ], - "label": "getKbnFieldType", - "description": [ - "\n Get a type object by name\n" - ], - "signature": [ - "(typeName: string) => ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KbnFieldType", - "text": "KbnFieldType" - } - ], - "source": { - "path": "src/plugins/data/common/kbn_field_types/kbn_field_types.ts", - "lineNumber": 22 - }, - "deprecated": false, - "children": [ - { - "parentPluginId": "data", - "id": "def-common.getKbnFieldType.$1", - "type": "string", - "tags": [], - "label": "typeName", - "description": [], - "signature": [ - "string" - ], - "source": { - "path": "src/plugins/data/common/kbn_field_types/kbn_field_types.ts", - "lineNumber": 22 - }, - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [], - "initialIsOpen": false - }, - { - "parentPluginId": "data", - "id": "def-common.getKbnTypeNames", - "type": "Function", - "tags": [ - "return" - ], - "label": "getKbnTypeNames", - "description": [ - "\n Get the esTypes known by all kbnFieldTypes\n" - ], - "signature": [ - "() => string[]" - ], - "source": { - "path": "src/plugins/data/common/kbn_field_types/kbn_field_types.ts", - "lineNumber": 30 - }, - "deprecated": false, - "children": [], - "returnComment": [], - "initialIsOpen": false - }, - { - "parentPluginId": "data", - "id": "def-common.getPhraseFilterField", - "type": "Function", - "tags": [ - "deprecated" - ], - "label": "getPhraseFilterField", - "description": [], - "signature": [ - "(filter: ", - "PhraseFilter", - ") => string" - ], - "source": { - "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 110 - }, - "deprecated": true, - "references": [], - "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-common.filter", - "type": "CompoundType", - "tags": [], - "label": "filter", + "label": "comparatorOptions", "description": [], "signature": [ - "Filter", - " & { meta: ", - "PhraseFilterMeta", - "; script?: { script: { source?: any; lang?: \"painless\" | \"expression\" | \"mustache\" | \"java\" | undefined; params: any; }; } | undefined; }" + "FilterCompareOptions", + " | undefined" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrase_filter.d.ts", - "lineNumber": 24 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/dedup_filters.d.ts", + "lineNumber": 12 }, "deprecated": false } @@ -47445,21 +47288,19 @@ }, { "parentPluginId": "data", - "id": "def-common.getPhraseFilterValue", + "id": "def-common.disableFilter", "type": "Function", "tags": [ "deprecated" ], - "label": "getPhraseFilterValue", + "label": "disableFilter", "description": [], "signature": [ - "(filter: ", - "PhraseFilter", - ") => PhraseFilterValue" + "(filter: any) => any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 115 + "lineNumber": 85 }, "deprecated": true, "references": [], @@ -47468,19 +47309,16 @@ { "parentPluginId": "data", "id": "def-common.filter", - "type": "CompoundType", + "type": "Any", "tags": [], "label": "filter", "description": [], "signature": [ - "Filter", - " & { meta: ", - "PhraseFilterMeta", - "; script?: { script: { source?: any; lang?: \"painless\" | \"expression\" | \"mustache\" | \"java\" | undefined; params: any; }; } | undefined; }" + "any" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrase_filter.d.ts", - "lineNumber": 25 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/meta_filter.d.ts", + "lineNumber": 43 }, "deprecated": false } @@ -47489,20 +47327,19 @@ }, { "parentPluginId": "data", - "id": "def-common.isExistsFilter", + "id": "def-common.enableFilter", "type": "Function", "tags": [ "deprecated" ], - "label": "isExistsFilter", + "label": "enableFilter", "description": [], "signature": [ - "(filter: any) => filter is ", - "ExistsFilter" + "(filter: any) => any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 135 + "lineNumber": 243 }, "deprecated": true, "references": [], @@ -47519,8 +47356,8 @@ "any" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/exists_filter.d.ts", - "lineNumber": 11 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/meta_filter.d.ts", + "lineNumber": 42 }, "deprecated": false } @@ -47529,20 +47366,22 @@ }, { "parentPluginId": "data", - "id": "def-common.isFilter", + "id": "def-common.fromKueryExpression", "type": "Function", "tags": [ "deprecated" ], - "label": "isFilter", + "label": "fromKueryExpression", "description": [], "signature": [ - "(x: unknown) => x is ", - "Filter" + "(expression: any, parseOptions?: Partial<", + "KueryParseOptions", + "> | undefined) => ", + "KueryNode" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 69 + "lineNumber": 89 }, "deprecated": true, "references": [], @@ -47550,62 +47389,35 @@ "children": [ { "parentPluginId": "data", - "id": "def-common.x", - "type": "Unknown", + "id": "def-common.expression", + "type": "Any", "tags": [], - "label": "x", + "label": "expression", "description": [], "signature": [ - "unknown" + "any" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/meta_filter.d.ts", - "lineNumber": 47 + "path": "node_modules/@kbn/es-query/target_types/kuery/ast/ast.d.ts", + "lineNumber": 5 }, "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "data", - "id": "def-common.isFilterDisabled", - "type": "Function", - "tags": [ - "deprecated" - ], - "label": "isFilterDisabled", - "description": [], - "signature": [ - "(filter: ", - "Filter", - ") => boolean" - ], - "source": { - "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 73 - }, - "deprecated": true, - "references": [], - "returnComment": [], - "children": [ + }, { "parentPluginId": "data", - "id": "def-common.filter", + "id": "def-common.parseOptions", "type": "Object", "tags": [], - "label": "filter", + "label": "parseOptions", "description": [], "signature": [ - "{ $state?: ", - "FilterState", - " | undefined; meta: ", - "FilterMeta", - "; query?: any; }" + "Partial<", + "KueryParseOptions", + "> | undefined" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/index.d.ts", - "lineNumber": 23 + "path": "node_modules/@kbn/es-query/target_types/kuery/ast/ast.d.ts", + "lineNumber": 5 }, "deprecated": false } @@ -47614,139 +47426,97 @@ }, { "parentPluginId": "data", - "id": "def-common.isFilterPinned", + "id": "def-common.getEsQueryConfig", "type": "Function", - "tags": [ - "deprecated" - ], - "label": "isFilterPinned", + "tags": [], + "label": "getEsQueryConfig", "description": [], "signature": [ - "(filter: ", - "Filter", - ") => boolean | undefined" + "(config: KibanaConfig) => ", + "EsQueryConfig" ], "source": { - "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 120 + "path": "src/plugins/data/common/es_query/get_es_query_config.ts", + "lineNumber": 16 }, - "deprecated": true, - "references": [], - "returnComment": [], + "deprecated": false, "children": [ { "parentPluginId": "data", - "id": "def-common.filter", + "id": "def-common.getEsQueryConfig.$1", "type": "Object", "tags": [], - "label": "filter", + "label": "config", "description": [], "signature": [ - "{ $state?: ", - "FilterState", - " | undefined; meta: ", - "FilterMeta", - "; query?: any; }" + "KibanaConfig" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/meta_filter.d.ts", - "lineNumber": 3 + "path": "src/plugins/data/common/es_query/get_es_query_config.ts", + "lineNumber": 16 }, - "deprecated": false + "deprecated": false, + "isRequired": true } ], + "returnComment": [], "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.isFilters", + "id": "def-common.getFilterableKbnTypeNames", "type": "Function", "tags": [ "deprecated" ], - "label": "isFilters", + "label": "getFilterableKbnTypeNames", "description": [], "signature": [ - "(x: unknown) => x is ", - "Filter", - "[]" + "() => string[]" ], "source": { - "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 130 + "path": "src/plugins/data/common/kbn_field_types/index.ts", + "lineNumber": 28 }, "deprecated": true, - "references": [ - { - "plugin": "dashboardEnhanced", - "link": { - "path": "x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx", - "lineNumber": 15 - } - }, - { - "plugin": "dashboardEnhanced", - "link": { - "path": "x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx", - "lineNumber": 70 - } - } - ], + "removeBy": "8.0", + "references": [], "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-common.x", - "type": "Unknown", - "tags": [], - "label": "x", - "description": [], - "signature": [ - "unknown" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/meta_filter.d.ts", - "lineNumber": 48 - }, - "deprecated": false - } - ], + "children": [], "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.isGeoBoundingBoxFilter", + "id": "def-common.getKbnFieldType", "type": "Function", "tags": [ "deprecated" ], - "label": "isGeoBoundingBoxFilter", + "label": "getKbnFieldType", "description": [], "signature": [ - "(filter: any) => filter is ", - "GeoBoundingBoxFilter" + "(typeName: string) => ", + "KbnFieldType" ], "source": { - "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 145 + "path": "src/plugins/data/common/kbn_field_types/index.ts", + "lineNumber": 34 }, "deprecated": true, + "removeBy": "8.0", "references": [], "returnComment": [], "children": [ { "parentPluginId": "data", - "id": "def-common.filter", - "type": "Any", + "id": "def-common.typeName", + "type": "string", "tags": [], - "label": "filter", + "label": "typeName", "description": [], - "signature": [ - "any" - ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/geo_bounding_box_filter.d.ts", - "lineNumber": 12 + "path": "node_modules/@kbn/field-types/target_types/kbn_field_types.d.ts", + "lineNumber": 9 }, "deprecated": false } @@ -47755,60 +47525,42 @@ }, { "parentPluginId": "data", - "id": "def-common.isGeoPolygonFilter", + "id": "def-common.getKbnTypeNames", "type": "Function", "tags": [ "deprecated" ], - "label": "isGeoPolygonFilter", + "label": "getKbnTypeNames", "description": [], "signature": [ - "(filter: any) => filter is ", - "GeoPolygonFilter" + "() => string[]" ], "source": { - "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 150 + "path": "src/plugins/data/common/kbn_field_types/index.ts", + "lineNumber": 40 }, "deprecated": true, + "removeBy": "8.0", "references": [], "returnComment": [], - "children": [ - { - "parentPluginId": "data", - "id": "def-common.filter", - "type": "Any", - "tags": [], - "label": "filter", - "description": [], - "signature": [ - "any" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/geo_polygon_filter.d.ts", - "lineNumber": 11 - }, - "deprecated": false - } - ], + "children": [], "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.isMatchAllFilter", + "id": "def-common.isFilter", "type": "Function", "tags": [ "deprecated" ], - "label": "isMatchAllFilter", + "label": "isFilter", "description": [], "signature": [ - "(filter: any) => filter is ", - "MatchAllFilter" + "(x: unknown) => x is any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 140 + "lineNumber": 77 }, "deprecated": true, "references": [], @@ -47816,17 +47568,17 @@ "children": [ { "parentPluginId": "data", - "id": "def-common.filter", - "type": "Any", + "id": "def-common.x", + "type": "Unknown", "tags": [], - "label": "filter", + "label": "x", "description": [], "signature": [ - "any" + "unknown" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/match_all_filter.d.ts", - "lineNumber": 10 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/meta_filter.d.ts", + "lineNumber": 46 }, "deprecated": false } @@ -47835,20 +47587,19 @@ }, { "parentPluginId": "data", - "id": "def-common.isMissingFilter", + "id": "def-common.isFilterDisabled", "type": "Function", "tags": [ "deprecated" ], - "label": "isMissingFilter", + "label": "isFilterDisabled", "description": [], "signature": [ - "(filter: any) => filter is ", - "MissingFilter" + "(filter: any) => boolean" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 155 + "lineNumber": 81 }, "deprecated": true, "references": [], @@ -47865,8 +47616,8 @@ "any" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/missing_filter.d.ts", - "lineNumber": 7 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/meta_filter.d.ts", + "lineNumber": 54 }, "deprecated": false } @@ -47875,20 +47626,19 @@ }, { "parentPluginId": "data", - "id": "def-common.isPhraseFilter", + "id": "def-common.isFilterPinned", "type": "Function", "tags": [ "deprecated" ], - "label": "isPhraseFilter", + "label": "isFilterPinned", "description": [], "signature": [ - "(filter: any) => filter is ", - "PhraseFilter" + "(filter: any) => boolean | undefined" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 160 + "lineNumber": 128 }, "deprecated": true, "references": [], @@ -47905,8 +47655,8 @@ "any" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrase_filter.d.ts", - "lineNumber": 22 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/meta_filter.d.ts", + "lineNumber": 2 }, "deprecated": false } @@ -47915,38 +47665,52 @@ }, { "parentPluginId": "data", - "id": "def-common.isPhrasesFilter", + "id": "def-common.isFilters", "type": "Function", "tags": [ "deprecated" ], - "label": "isPhrasesFilter", + "label": "isFilters", "description": [], "signature": [ - "(filter: any) => filter is ", - "PhrasesFilter" + "(x: unknown) => x is any[]" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 165 + "lineNumber": 138 }, "deprecated": true, - "references": [], + "references": [ + { + "plugin": "dashboardEnhanced", + "link": { + "path": "x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx", + "lineNumber": 15 + } + }, + { + "plugin": "dashboardEnhanced", + "link": { + "path": "x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx", + "lineNumber": 70 + } + } + ], "returnComment": [], "children": [ { "parentPluginId": "data", - "id": "def-common.filter", - "type": "Any", + "id": "def-common.x", + "type": "Unknown", "tags": [], - "label": "filter", + "label": "x", "description": [], "signature": [ - "any" + "unknown" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/phrases_filter.d.ts", - "lineNumber": 10 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/meta_filter.d.ts", + "lineNumber": 47 }, "deprecated": false } @@ -47955,20 +47719,20 @@ }, { "parentPluginId": "data", - "id": "def-common.isQueryStringFilter", + "id": "def-common.luceneStringToDsl", "type": "Function", "tags": [ "deprecated" ], - "label": "isQueryStringFilter", + "label": "luceneStringToDsl", "description": [], "signature": [ - "(filter: any) => filter is ", - "QueryStringFilter" + "(query: any) => ", + "DslQuery" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 175 + "lineNumber": 109 }, "deprecated": true, "references": [], @@ -47976,17 +47740,17 @@ "children": [ { "parentPluginId": "data", - "id": "def-common.filter", + "id": "def-common.query", "type": "Any", "tags": [], - "label": "filter", + "label": "query", "description": [], "signature": [ "any" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/query_string_filter.d.ts", - "lineNumber": 11 + "path": "node_modules/@kbn/es-query/target_types/es_query/lucene_string_to_dsl.d.ts", + "lineNumber": 2 }, "deprecated": false } @@ -47995,20 +47759,19 @@ }, { "parentPluginId": "data", - "id": "def-common.isRangeFilter", + "id": "def-common.onlyDisabledFiltersChanged", "type": "Function", "tags": [ "deprecated" ], - "label": "isRangeFilter", + "label": "onlyDisabledFiltersChanged", "description": [], "signature": [ - "(filter: any) => filter is ", - "RangeFilter" + "(newFilters?: any[] | undefined, oldFilters?: any[] | undefined) => boolean" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 170 + "lineNumber": 148 }, "deprecated": true, "references": [], @@ -48016,17 +47779,33 @@ "children": [ { "parentPluginId": "data", - "id": "def-common.filter", - "type": "Any", + "id": "def-common.newFilters", + "type": "Array", "tags": [], - "label": "filter", + "label": "newFilters", "description": [], "signature": [ - "any" + "any[] | undefined" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/range_filter.d.ts", - "lineNumber": 34 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/only_disabled.d.ts", + "lineNumber": 7 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.oldFilters", + "type": "Array", + "tags": [], + "label": "oldFilters", + "description": [], + "signature": [ + "any[] | undefined" + ], + "source": { + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/only_disabled.d.ts", + "lineNumber": 7 }, "deprecated": false } @@ -48035,20 +47814,19 @@ }, { "parentPluginId": "data", - "id": "def-common.luceneStringToDsl", + "id": "def-common.pinFilter", "type": "Function", "tags": [ "deprecated" ], - "label": "luceneStringToDsl", + "label": "pinFilter", "description": [], "signature": [ - "(query: any) => ", - "DslQuery" + "(filter: any) => any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 101 + "lineNumber": 248 }, "deprecated": true, "references": [], @@ -48056,17 +47834,17 @@ "children": [ { "parentPluginId": "data", - "id": "def-common.query", + "id": "def-common.filter", "type": "Any", "tags": [], - "label": "query", + "label": "filter", "description": [], "signature": [ "any" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/es_query/lucene_string_to_dsl.d.ts", - "lineNumber": 2 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/meta_filter.d.ts", + "lineNumber": 44 }, "deprecated": false } @@ -48202,7 +47980,7 @@ ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 85 + "lineNumber": 93 }, "deprecated": true, "references": [], @@ -48276,6 +48054,45 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.toggleFilterDisabled", + "type": "Function", + "tags": [ + "deprecated" + ], + "label": "toggleFilterDisabled", + "description": [], + "signature": [ + "(filter: any) => { meta: { disabled: boolean; alias: string | null; negate: boolean; controlledBy?: string | undefined; index?: string | undefined; isMultiIndex?: boolean | undefined; type?: string | undefined; key?: string | undefined; params?: any; value?: string | undefined; }; $state?: any; query?: any; }" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 253 + }, + "deprecated": true, + "references": [], + "returnComment": [], + "children": [ + { + "parentPluginId": "data", + "id": "def-common.filter", + "type": "Any", + "tags": [], + "label": "filter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/meta_filter.d.ts", + "lineNumber": 3 + }, + "deprecated": false + } + ], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.toggleFilterNegated", @@ -48286,15 +48103,11 @@ "label": "toggleFilterNegated", "description": [], "signature": [ - "(filter: ", - "Filter", - ") => { meta: { negate: boolean; alias: string | null; disabled: boolean; controlledBy?: string | undefined; index?: string | undefined; isMultiIndex?: boolean | undefined; type?: string | undefined; key?: string | undefined; params?: any; value?: string | undefined; }; $state?: ", - "FilterState", - " | undefined; query?: any; }" + "(filter: any) => { meta: { negate: boolean; alias: string | null; disabled: boolean; controlledBy?: string | undefined; index?: string | undefined; isMultiIndex?: boolean | undefined; type?: string | undefined; key?: string | undefined; params?: any; value?: string | undefined; }; $state?: any; query?: any; }" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 220 + "lineNumber": 238 }, "deprecated": true, "references": [], @@ -48303,20 +48116,71 @@ { "parentPluginId": "data", "id": "def-common.filter", - "type": "Object", + "type": "Any", "tags": [], "label": "filter", "description": [], "signature": [ - "{ $state?: ", - "FilterState", - " | undefined; meta: ", - "FilterMeta", - "; query?: any; }" + "any" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/meta_filter.d.ts", - "lineNumber": 20 + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/meta_filter.d.ts", + "lineNumber": 19 + }, + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.uniqFilters", + "type": "Function", + "tags": [ + "deprecated" + ], + "label": "uniqFilters", + "description": [], + "signature": [ + "(filters: any[], comparatorOptions?: any) => any[]" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 143 + }, + "deprecated": true, + "references": [], + "returnComment": [], + "children": [ + { + "parentPluginId": "data", + "id": "def-common.filters", + "type": "Array", + "tags": [], + "label": "filters", + "description": [], + "signature": [ + "any[]" + ], + "source": { + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/uniq_filters.d.ts", + "lineNumber": 10 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.comparatorOptions", + "type": "Any", + "tags": [], + "label": "comparatorOptions", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "node_modules/@kbn/es-query/target_types/filters/helpers/uniq_filters.d.ts", + "lineNumber": 10 }, "deprecated": false } @@ -48415,9 +48279,12 @@ "tags": [], "label": "KbnFieldTypeOptions", "description": [], + "signature": [ + "KbnFieldTypeOptions" + ], "source": { - "path": "src/plugins/data/common/kbn_field_types/types.ts", - "lineNumber": 10 + "path": "node_modules/@kbn/field-types/target_types/types.d.ts", + "lineNumber": 2 }, "deprecated": false, "children": [ @@ -48429,8 +48296,8 @@ "label": "sortable", "description": [], "source": { - "path": "src/plugins/data/common/kbn_field_types/types.ts", - "lineNumber": 11 + "path": "node_modules/@kbn/field-types/target_types/types.d.ts", + "lineNumber": 3 }, "deprecated": false }, @@ -48442,8 +48309,8 @@ "label": "filterable", "description": [], "source": { - "path": "src/plugins/data/common/kbn_field_types/types.ts", - "lineNumber": 12 + "path": "node_modules/@kbn/field-types/target_types/types.d.ts", + "lineNumber": 4 }, "deprecated": false }, @@ -48455,8 +48322,8 @@ "label": "name", "description": [], "source": { - "path": "src/plugins/data/common/kbn_field_types/types.ts", - "lineNumber": 13 + "path": "node_modules/@kbn/field-types/target_types/types.d.ts", + "lineNumber": 5 }, "deprecated": false }, @@ -48468,18 +48335,12 @@ "label": "esTypes", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[]" ], "source": { - "path": "src/plugins/data/common/kbn_field_types/types.ts", - "lineNumber": 14 + "path": "node_modules/@kbn/field-types/target_types/types.d.ts", + "lineNumber": 6 }, "deprecated": false } @@ -48708,9 +48569,12 @@ "tags": [], "label": "ES_FIELD_TYPES", "description": [], + "signature": [ + "ES_FIELD_TYPES" + ], "source": { - "path": "src/plugins/data/common/kbn_field_types/types.ts", - "lineNumber": 18 + "path": "node_modules/@kbn/field-types/target_types/types.d.ts", + "lineNumber": 9 }, "deprecated": false, "initialIsOpen": false @@ -48726,7 +48590,7 @@ "FilterStateStore" ], "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/types.d.ts", + "path": "node_modules/@kbn/es-query/target_types/filters/build_filters/types.d.ts", "lineNumber": 24 }, "deprecated": false, @@ -48739,15 +48603,138 @@ "tags": [], "label": "KBN_FIELD_TYPES", "description": [], + "signature": [ + "KBN_FIELD_TYPES" + ], "source": { - "path": "src/plugins/data/common/kbn_field_types/types.ts", - "lineNumber": 65 + "path": "node_modules/@kbn/field-types/target_types/types.d.ts", + "lineNumber": 47 }, "deprecated": false, "initialIsOpen": false } ], "misc": [ + { + "parentPluginId": "data", + "id": "def-common.buildEmptyFilter", + "type": "Any", + "tags": [ + "deprecated" + ], + "label": "buildEmptyFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 228 + }, + "deprecated": true, + "references": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.buildExistsFilter", + "type": "Any", + "tags": [ + "deprecated" + ], + "label": "buildExistsFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 233 + }, + "deprecated": true, + "references": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.buildPhraseFilter", + "type": "Any", + "tags": [ + "deprecated" + ], + "label": "buildPhraseFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 208 + }, + "deprecated": true, + "references": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.buildPhrasesFilter", + "type": "Any", + "tags": [ + "deprecated" + ], + "label": "buildPhrasesFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 203 + }, + "deprecated": true, + "references": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.buildQueryFilter", + "type": "Any", + "tags": [ + "deprecated" + ], + "label": "buildQueryFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 198 + }, + "deprecated": true, + "references": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.buildRangeFilter", + "type": "Any", + "tags": [ + "deprecated" + ], + "label": "buildRangeFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 213 + }, + "deprecated": true, + "references": [], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.CSV_FORMULA_CHARS", @@ -48792,12 +48779,11 @@ "label": "CustomFilter", "description": [], "signature": [ - "Filter", - " & { query: any; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 270 + "lineNumber": 318 }, "deprecated": true, "references": [], @@ -48834,7 +48820,7 @@ ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 305 + "lineNumber": 353 }, "deprecated": true, "references": [ @@ -48879,16 +48865,11 @@ "label": "ExistsFilter", "description": [], "signature": [ - "Filter", - " & { meta: ", - "FilterMeta", - "; exists?: ", - "FilterExistsProperty", - " | undefined; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 245 + "lineNumber": 293 }, "deprecated": true, "references": [ @@ -48940,15 +48921,11 @@ "label": "Filter", "description": [], "signature": [ - "{ $state?: ", - "FilterState", - " | undefined; meta: ", - "FilterMeta", - "; query?: any; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 230 + "lineNumber": 278 }, "deprecated": true, "references": [ @@ -49530,35 +49507,35 @@ "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/store/t_grid/model.ts", - "lineNumber": 52 + "lineNumber": 54 } }, { "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx", - "lineNumber": 30 + "lineNumber": 28 } }, { "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx", - "lineNumber": 116 + "lineNumber": 114 } }, { "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx", - "lineNumber": 28 + "lineNumber": 27 } }, { "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx", - "lineNumber": 109 + "lineNumber": 108 } }, { @@ -50240,41 +50217,6 @@ "lineNumber": 183 } }, - { - "plugin": "securitySolution", - "link": { - "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/helpers.ts", - "lineNumber": 8 - } - }, - { - "plugin": "securitySolution", - "link": { - "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/helpers.ts", - "lineNumber": 14 - } - }, - { - "plugin": "securitySolution", - "link": { - "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/helpers.ts", - "lineNumber": 50 - } - }, - { - "plugin": "securitySolution", - "link": { - "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/index.tsx", - "lineNumber": 11 - } - }, - { - "plugin": "securitySolution", - "link": { - "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/index.tsx", - "lineNumber": 21 - } - }, { "plugin": "securitySolution", "link": { @@ -50443,6 +50385,41 @@ "lineNumber": 36 } }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/helpers.ts", + "lineNumber": 8 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/helpers.ts", + "lineNumber": 14 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/helpers.ts", + "lineNumber": 50 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/index.tsx", + "lineNumber": 11 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/common/components/add_filter_to_global_search_bar/index.tsx", + "lineNumber": 21 + } + }, { "plugin": "securitySolution", "link": { @@ -50600,29 +50577,29 @@ { "plugin": "securitySolution", "link": { - "path": "x-pack/plugins/security_solution/public/detections/components/alerts_histogram_panel/index.tsx", + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/index.tsx", "lineNumber": 22 } }, { "plugin": "securitySolution", "link": { - "path": "x-pack/plugins/security_solution/public/detections/components/alerts_histogram_panel/index.tsx", - "lineNumber": 63 + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/index.tsx", + "lineNumber": 62 } }, { "plugin": "securitySolution", "link": { "path": "x-pack/plugins/security_solution/public/overview/components/signals_by_category/index.tsx", - "lineNumber": 15 + "lineNumber": 14 } }, { "plugin": "securitySolution", "link": { "path": "x-pack/plugins/security_solution/public/overview/components/signals_by_category/index.tsx", - "lineNumber": 23 + "lineNumber": 22 } }, { @@ -50636,7 +50613,7 @@ "plugin": "securitySolution", "link": { "path": "x-pack/plugins/security_solution/public/common/components/top_n/top_n.tsx", - "lineNumber": 54 + "lineNumber": 55 } }, { @@ -50650,7 +50627,7 @@ "plugin": "securitySolution", "link": { "path": "x-pack/plugins/security_solution/public/common/components/top_n/index.tsx", - "lineNumber": 30 + "lineNumber": 31 } }, { @@ -50730,6 +50707,20 @@ "lineNumber": 114 } }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_count_panel/index.tsx", + "lineNumber": 23 + } + }, + { + "plugin": "securitySolution", + "link": { + "path": "x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_count_panel/index.tsx", + "lineNumber": 30 + } + }, { "plugin": "securitySolution", "link": { @@ -51982,11 +51973,11 @@ "label": "FilterMeta", "description": [], "signature": [ - "{ alias: string | null; disabled: boolean; negate: boolean; controlledBy?: string | undefined; index?: string | undefined; isMultiIndex?: boolean | undefined; type?: string | undefined; key?: string | undefined; params?: any; value?: string | undefined; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 295 + "lineNumber": 343 }, "deprecated": true, "references": [ @@ -52017,14 +52008,11 @@ "label": "GeoBoundingBoxFilter", "description": [], "signature": [ - "Filter", - " & { meta: ", - "GeoBoundingBoxFilterMeta", - "; geo_bounding_box: any; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 285 + "lineNumber": 333 }, "deprecated": true, "references": [], @@ -52040,14 +52028,11 @@ "label": "GeoPolygonFilter", "description": [], "signature": [ - "Filter", - " & { meta: ", - "GeoPolygonFilterMeta", - "; geo_polygon: any; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 250 + "lineNumber": 298 }, "deprecated": true, "references": [], @@ -52072,6 +52057,46 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.getPhraseFilterField", + "type": "Any", + "tags": [ + "deprecated" + ], + "label": "getPhraseFilterField", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 118 + }, + "deprecated": true, + "references": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.getPhraseFilterValue", + "type": "Any", + "tags": [ + "deprecated" + ], + "label": "getPhraseFilterValue", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 123 + }, + "deprecated": true, + "references": [], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.IFieldSubType", @@ -52086,7 +52111,7 @@ ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 300 + "lineNumber": 348 }, "deprecated": true, "references": [ @@ -52124,6 +52149,186 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.isExistsFilter", + "type": "Any", + "tags": [ + "deprecated" + ], + "label": "isExistsFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 153 + }, + "deprecated": true, + "references": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.isGeoBoundingBoxFilter", + "type": "Any", + "tags": [ + "deprecated" + ], + "label": "isGeoBoundingBoxFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 163 + }, + "deprecated": true, + "references": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.isGeoPolygonFilter", + "type": "Any", + "tags": [ + "deprecated" + ], + "label": "isGeoPolygonFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 168 + }, + "deprecated": true, + "references": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.isMatchAllFilter", + "type": "Any", + "tags": [ + "deprecated" + ], + "label": "isMatchAllFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 158 + }, + "deprecated": true, + "references": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.isMissingFilter", + "type": "Any", + "tags": [ + "deprecated" + ], + "label": "isMissingFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 173 + }, + "deprecated": true, + "references": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.isPhraseFilter", + "type": "Any", + "tags": [ + "deprecated" + ], + "label": "isPhraseFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 178 + }, + "deprecated": true, + "references": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.isPhrasesFilter", + "type": "Any", + "tags": [ + "deprecated" + ], + "label": "isPhrasesFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 183 + }, + "deprecated": true, + "references": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.isQueryStringFilter", + "type": "Any", + "tags": [ + "deprecated" + ], + "label": "isQueryStringFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 193 + }, + "deprecated": true, + "references": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.isRangeFilter", + "type": "Any", + "tags": [ + "deprecated" + ], + "label": "isRangeFilter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 188 + }, + "deprecated": true, + "references": [], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.KIBANA_USER_QUERY_LANGUAGE_KEY", @@ -52155,7 +52360,7 @@ ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 290 + "lineNumber": 338 }, "deprecated": true, "references": [ @@ -52180,39 +52385,18 @@ "lineNumber": 97 } }, - { - "plugin": "alerting", - "link": { - "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization_kuery.ts", - "lineNumber": 11 - } - }, - { - "plugin": "alerting", - "link": { - "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization_kuery.ts", - "lineNumber": 39 - } - }, - { - "plugin": "alerting", - "link": { - "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization_kuery.ts", - "lineNumber": 41 - } - }, { "plugin": "alerting", "link": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 22 + "lineNumber": 23 } }, { "plugin": "alerting", "link": { "path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts", - "lineNumber": 278 + "lineNumber": 281 } }, { @@ -52282,28 +52466,28 @@ "plugin": "fleet", "link": { "path": "x-pack/plugins/fleet/server/services/agents/status.ts", - "lineNumber": 32 + "lineNumber": 31 } }, { "plugin": "fleet", "link": { "path": "x-pack/plugins/fleet/server/services/agents/status.ts", - "lineNumber": 32 + "lineNumber": 31 } }, { "plugin": "fleet", "link": { "path": "x-pack/plugins/fleet/server/services/agents/status.ts", - "lineNumber": 36 + "lineNumber": 35 } }, { "plugin": "fleet", "link": { "path": "x-pack/plugins/fleet/server/services/agents/status.ts", - "lineNumber": 49 + "lineNumber": 48 } }, { @@ -52725,14 +52909,11 @@ "label": "MatchAllFilter", "description": [], "signature": [ - "Filter", - " & { meta: ", - "MatchAllFilterMeta", - "; match_all: any; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 265 + "lineNumber": 313 }, "deprecated": true, "references": [ @@ -52763,14 +52944,11 @@ "label": "MissingFilter", "description": [], "signature": [ - "Filter", - " & { meta: ", - "FilterMeta", - "; missing: any; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 275 + "lineNumber": 323 }, "deprecated": true, "references": [], @@ -52786,14 +52964,11 @@ "label": "PhraseFilter", "description": [], "signature": [ - "Filter", - " & { meta: ", - "PhraseFilterMeta", - "; script?: { script: { source?: any; lang?: \"painless\" | \"expression\" | \"mustache\" | \"java\" | undefined; params: any; }; } | undefined; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 260 + "lineNumber": 308 }, "deprecated": true, "references": [], @@ -52809,36 +52984,16 @@ "label": "PhrasesFilter", "description": [], "signature": [ - "Filter", - " & { meta: ", - "PhrasesFilterMeta", - "; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 255 + "lineNumber": 303 }, "deprecated": true, "references": [], "initialIsOpen": false }, - { - "parentPluginId": "data", - "id": "def-common.Query", - "type": "Type", - "tags": [], - "label": "Query", - "description": [], - "signature": [ - "{ query: string | { [key: string]: any; }; language: string; }" - ], - "source": { - "path": "node_modules/@kbn/es-query/target_types/filters/types.d.ts", - "lineNumber": 48 - }, - "deprecated": false, - "initialIsOpen": false - }, { "parentPluginId": "data", "id": "def-common.RangeFilter", @@ -52849,18 +53004,11 @@ "label": "RangeFilter", "description": [], "signature": [ - "Filter", - " & ", - "EsRangeFilter", - " & { meta: ", - "RangeFilterMeta", - "; script?: { script: { params: any; lang: ", - "ScriptLanguage", - "; source: any; }; } | undefined; match_all?: any; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 280 + "lineNumber": 328 }, "deprecated": true, "references": [ @@ -52891,14 +53039,11 @@ "label": "RangeFilterMeta", "description": [], "signature": [ - "FilterMeta", - " & { params: ", - "RangeFilterParams", - "; field?: any; formattedValue?: string | undefined; }" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 235 + "lineNumber": 283 }, "deprecated": true, "references": [], @@ -52914,11 +53059,11 @@ "label": "RangeFilterParams", "description": [], "signature": [ - "RangeFilterParams" + "any" ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 240 + "lineNumber": 288 }, "deprecated": true, "references": [], @@ -52943,6 +53088,26 @@ } ], "objects": [ + { + "parentPluginId": "data", + "id": "def-common.COMPARE_ALL_OPTIONS", + "type": "Object", + "tags": [ + "deprecated" + ], + "label": "COMPARE_ALL_OPTIONS", + "description": [], + "signature": [ + "FilterCompareOptions" + ], + "source": { + "path": "src/plugins/data/common/es_query/index.ts", + "lineNumber": 268 + }, + "deprecated": true, + "references": [], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.FILTERS", @@ -52958,7 +53123,7 @@ ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 225 + "lineNumber": 273 }, "deprecated": true, "references": [], @@ -52990,7 +53155,7 @@ ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 125 + "lineNumber": 133 }, "deprecated": true, "references": [ @@ -53508,7 +53673,7 @@ ], "source": { "path": "src/plugins/data/common/es_query/index.ts", - "lineNumber": 89 + "lineNumber": 97 }, "deprecated": true, "references": [], @@ -53522,7 +53687,7 @@ "label": "UI_SETTINGS", "description": [], "signature": [ - "{ readonly META_FIELDS: \"metaFields\"; readonly DOC_HIGHLIGHT: \"doc_table:highlight\"; readonly QUERY_STRING_OPTIONS: \"query:queryString:options\"; readonly QUERY_ALLOW_LEADING_WILDCARDS: \"query:allowLeadingWildcards\"; readonly SEARCH_QUERY_LANGUAGE: \"search:queryLanguage\"; readonly SORT_OPTIONS: \"sort:options\"; readonly COURIER_IGNORE_FILTER_IF_FIELD_NOT_IN_INDEX: \"courier:ignoreFilterIfFieldNotInIndex\"; readonly COURIER_SET_REQUEST_PREFERENCE: \"courier:setRequestPreference\"; readonly COURIER_CUSTOM_REQUEST_PREFERENCE: \"courier:customRequestPreference\"; readonly COURIER_MAX_CONCURRENT_SHARD_REQUESTS: \"courier:maxConcurrentShardRequests\"; readonly COURIER_BATCH_SEARCHES: \"courier:batchSearches\"; readonly SEARCH_INCLUDE_FROZEN: \"search:includeFrozen\"; readonly SEARCH_TIMEOUT: \"search:timeout\"; readonly HISTOGRAM_BAR_TARGET: \"histogram:barTarget\"; readonly HISTOGRAM_MAX_BARS: \"histogram:maxBars\"; readonly HISTORY_LIMIT: \"history:limit\"; readonly SHORT_DOTS_ENABLE: \"shortDots:enable\"; readonly FORMAT_DEFAULT_TYPE_MAP: \"format:defaultTypeMap\"; readonly FORMAT_NUMBER_DEFAULT_PATTERN: \"format:number:defaultPattern\"; readonly FORMAT_PERCENT_DEFAULT_PATTERN: \"format:percent:defaultPattern\"; readonly FORMAT_BYTES_DEFAULT_PATTERN: \"format:bytes:defaultPattern\"; readonly FORMAT_CURRENCY_DEFAULT_PATTERN: \"format:currency:defaultPattern\"; readonly FORMAT_NUMBER_DEFAULT_LOCALE: \"format:number:defaultLocale\"; readonly TIMEPICKER_REFRESH_INTERVAL_DEFAULTS: \"timepicker:refreshIntervalDefaults\"; readonly TIMEPICKER_QUICK_RANGES: \"timepicker:quickRanges\"; readonly TIMEPICKER_TIME_DEFAULTS: \"timepicker:timeDefaults\"; readonly INDEXPATTERN_PLACEHOLDER: \"indexPattern:placeholder\"; readonly FILTERS_PINNED_BY_DEFAULT: \"filters:pinnedByDefault\"; readonly FILTERS_EDITOR_SUGGEST_VALUES: \"filterEditor:suggestValues\"; readonly AUTOCOMPLETE_USE_TIMERANGE: \"autocomplete:useTimeRange\"; }" + "{ readonly META_FIELDS: \"metaFields\"; readonly DOC_HIGHLIGHT: \"doc_table:highlight\"; readonly QUERY_STRING_OPTIONS: \"query:queryString:options\"; readonly QUERY_ALLOW_LEADING_WILDCARDS: \"query:allowLeadingWildcards\"; readonly SEARCH_QUERY_LANGUAGE: \"search:queryLanguage\"; readonly SORT_OPTIONS: \"sort:options\"; readonly COURIER_IGNORE_FILTER_IF_FIELD_NOT_IN_INDEX: \"courier:ignoreFilterIfFieldNotInIndex\"; readonly COURIER_SET_REQUEST_PREFERENCE: \"courier:setRequestPreference\"; readonly COURIER_CUSTOM_REQUEST_PREFERENCE: \"courier:customRequestPreference\"; readonly COURIER_MAX_CONCURRENT_SHARD_REQUESTS: \"courier:maxConcurrentShardRequests\"; readonly COURIER_BATCH_SEARCHES: \"courier:batchSearches\"; readonly SEARCH_INCLUDE_FROZEN: \"search:includeFrozen\"; readonly SEARCH_TIMEOUT: \"search:timeout\"; readonly HISTOGRAM_BAR_TARGET: \"histogram:barTarget\"; readonly HISTOGRAM_MAX_BARS: \"histogram:maxBars\"; readonly HISTORY_LIMIT: \"history:limit\"; readonly SHORT_DOTS_ENABLE: \"shortDots:enable\"; readonly FORMAT_DEFAULT_TYPE_MAP: \"format:defaultTypeMap\"; readonly FORMAT_NUMBER_DEFAULT_PATTERN: \"format:number:defaultPattern\"; readonly FORMAT_PERCENT_DEFAULT_PATTERN: \"format:percent:defaultPattern\"; readonly FORMAT_BYTES_DEFAULT_PATTERN: \"format:bytes:defaultPattern\"; readonly FORMAT_CURRENCY_DEFAULT_PATTERN: \"format:currency:defaultPattern\"; readonly FORMAT_NUMBER_DEFAULT_LOCALE: \"format:number:defaultLocale\"; readonly TIMEPICKER_REFRESH_INTERVAL_DEFAULTS: \"timepicker:refreshIntervalDefaults\"; readonly TIMEPICKER_QUICK_RANGES: \"timepicker:quickRanges\"; readonly TIMEPICKER_TIME_DEFAULTS: \"timepicker:timeDefaults\"; readonly INDEXPATTERN_PLACEHOLDER: \"indexPattern:placeholder\"; readonly FILTERS_PINNED_BY_DEFAULT: \"filters:pinnedByDefault\"; readonly FILTERS_EDITOR_SUGGEST_VALUES: \"filterEditor:suggestValues\"; readonly AUTOCOMPLETE_USE_TIMERANGE: \"autocomplete:useTimeRange\"; readonly AUTOCOMPLETE_VALUE_SUGGESTION_METHOD: \"autocomplete:valueSuggestionMethod\"; }" ], "source": { "path": "src/plugins/data/common/constants.ts", diff --git a/api_docs/data.mdx b/api_docs/data.mdx index 463da97db8230..2936c876c5852 100644 --- a/api_docs/data.mdx +++ b/api_docs/data.mdx @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 3716 | 98 | 3162 | 64 | +| 3870 | 151 | 3323 | 63 | ## Client diff --git a/api_docs/data_autocomplete.mdx b/api_docs/data_autocomplete.mdx index 68d1d8cd2444f..99a562e56afce 100644 --- a/api_docs/data_autocomplete.mdx +++ b/api_docs/data_autocomplete.mdx @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 3716 | 98 | 3162 | 64 | +| 3870 | 151 | 3323 | 63 | ## Client diff --git a/api_docs/data_field_formats.json b/api_docs/data_field_formats.json index f7df26b9b406d..96b435332cdda 100644 --- a/api_docs/data_field_formats.json +++ b/api_docs/data_field_formats.json @@ -45,13 +45,13 @@ "section": "def-common.FieldFormatsRegistry", "text": "FieldFormatsRegistry" }, - ", \"init\" | \"register\" | \"deserialize\" | \"getDefaultConfig\" | \"getType\" | \"getTypeWithoutMetaParams\" | \"getDefaultType\" | \"getTypeNameByEsTypes\" | \"getDefaultTypeName\" | \"getInstance\" | \"getDefaultInstancePlain\" | \"getDefaultInstanceCacheResolver\" | \"getByFieldType\" | \"getDefaultInstance\" | \"parseDefaultTypeMap\"> & { deserialize: ", + ", \"deserialize\" | \"getDefaultConfig\" | \"getType\" | \"getTypeWithoutMetaParams\" | \"getDefaultType\" | \"getTypeNameByEsTypes\" | \"getDefaultTypeName\" | \"getInstance\" | \"getDefaultInstancePlain\" | \"getDefaultInstanceCacheResolver\" | \"getByFieldType\" | \"getDefaultInstance\" | \"parseDefaultTypeMap\" | \"has\"> & { deserialize: ", "FormatFactory", "; }" ], "source": { "path": "src/plugins/data/public/field_formats/field_formats_service.ts", - "lineNumber": 55 + "lineNumber": 50 }, "deprecated": false, "initialIsOpen": false @@ -142,13 +142,7 @@ "label": "fieldType", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", "[]" ], "source": { @@ -379,13 +373,7 @@ "label": "fieldType", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", "[]" ], "source": { @@ -560,13 +548,7 @@ "label": "fieldType", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - } + "KBN_FIELD_TYPES" ], "source": { "path": "src/plugins/data/common/field_formats/converters/duration.ts", @@ -741,6 +723,24 @@ }, "deprecated": false }, + { + "parentPluginId": "data", + "id": "def-common.FieldFormat.hidden", + "type": "boolean", + "tags": [ + "property", + "static" + ], + "label": "hidden", + "description": [ + "\nHidden field formats can only be accessed directly by id,\nThey won't appear in field format editor UI,\nBut they can be accessed and used from code internally.\n" + ], + "source": { + "path": "src/plugins/data/common/field_formats/field_format.ts", + "lineNumber": 43 + }, + "deprecated": false + }, { "parentPluginId": "data", "id": "def-common.FieldFormat.title", @@ -753,7 +753,7 @@ "description": [], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 38 + "lineNumber": 50 }, "deprecated": false }, @@ -772,7 +772,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 44 + "lineNumber": 56 }, "deprecated": false }, @@ -792,7 +792,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 52 + "lineNumber": 64 }, "deprecated": false }, @@ -812,7 +812,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 60 + "lineNumber": 72 }, "deprecated": false }, @@ -832,7 +832,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 68 + "lineNumber": 80 }, "deprecated": false }, @@ -851,7 +851,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 74 + "lineNumber": 86 }, "deprecated": false }, @@ -867,7 +867,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 75 + "lineNumber": 87 }, "deprecated": false }, @@ -883,7 +883,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 77 + "lineNumber": 89 }, "deprecated": false }, @@ -906,7 +906,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 78 + "lineNumber": 90 }, "deprecated": false }, @@ -922,7 +922,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 80 + "lineNumber": 92 }, "deprecated": false, "children": [ @@ -938,7 +938,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 80 + "lineNumber": 92 }, "deprecated": false, "isRequired": true @@ -962,7 +962,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 80 + "lineNumber": 92 }, "deprecated": false, "isRequired": false @@ -996,7 +996,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 98 + "lineNumber": 110 }, "deprecated": false, "children": [ @@ -1012,7 +1012,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 99 + "lineNumber": 111 }, "deprecated": false, "isRequired": true @@ -1037,7 +1037,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 100 + "lineNumber": 112 }, "deprecated": false, "isRequired": true @@ -1056,7 +1056,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 101 + "lineNumber": 113 }, "deprecated": false, "isRequired": false @@ -1091,7 +1091,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 118 + "lineNumber": 130 }, "deprecated": false, "children": [ @@ -1113,7 +1113,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 119 + "lineNumber": 131 }, "deprecated": false, "isRequired": true @@ -1139,7 +1139,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 133 + "lineNumber": 145 }, "deprecated": false, "children": [], @@ -1163,7 +1163,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 144 + "lineNumber": 156 }, "deprecated": false, "children": [ @@ -1181,7 +1181,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 144 + "lineNumber": 156 }, "deprecated": false, "isRequired": true @@ -1205,7 +1205,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 161 + "lineNumber": 173 }, "deprecated": false, "children": [], @@ -1227,7 +1227,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 172 + "lineNumber": 184 }, "deprecated": false, "children": [], @@ -1248,7 +1248,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 193 + "lineNumber": 205 }, "deprecated": false, "children": [ @@ -1264,7 +1264,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 193 + "lineNumber": 205 }, "deprecated": false, "isRequired": true @@ -1285,7 +1285,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 197 + "lineNumber": 209 }, "deprecated": false, "children": [], @@ -1310,7 +1310,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 204 + "lineNumber": 216 }, "deprecated": false, "children": [ @@ -1326,7 +1326,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_format.ts", - "lineNumber": 204 + "lineNumber": 216 }, "deprecated": false, "isRequired": true @@ -1669,21 +1669,9 @@ ], "signature": [ "(fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", { "pluginId": "data", @@ -1709,13 +1697,7 @@ "- the field type" ], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - } + "KBN_FIELD_TYPES" ], "source": { "path": "src/plugins/data/common/field_formats/field_formats_registry.ts", @@ -1734,13 +1716,7 @@ "- Array of ES data types" ], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined" ], "source": { @@ -1848,21 +1824,9 @@ ], "signature": [ "(fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", "FieldFormatInstanceType", " | undefined" @@ -1881,13 +1845,7 @@ "label": "fieldType", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - } + "KBN_FIELD_TYPES" ], "source": { "path": "src/plugins/data/common/field_formats/field_formats_registry.ts", @@ -1906,13 +1864,7 @@ "- Array of ES data types" ], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined" ], "source": { @@ -1938,21 +1890,9 @@ ], "signature": [ "(esTypes: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", " | undefined" ], "source": { @@ -1971,13 +1911,7 @@ "- Array of ES data types" ], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined" ], "source": { @@ -2003,37 +1937,13 @@ ], "signature": [ "(fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", " | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - } + "ES_FIELD_TYPES" ], "source": { "path": "src/plugins/data/common/field_formats/field_formats_registry.ts", @@ -2049,13 +1959,7 @@ "label": "fieldType", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - } + "KBN_FIELD_TYPES" ], "source": { "path": "src/plugins/data/common/field_formats/field_formats_registry.ts", @@ -2072,13 +1976,7 @@ "label": "esTypes", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined" ], "source": { @@ -2164,21 +2062,9 @@ ], "signature": [ "(fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined, params?: Record) => ", { "pluginId": "data", @@ -2202,13 +2088,7 @@ "label": "fieldType", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - } + "KBN_FIELD_TYPES" ], "source": { "path": "src/plugins/data/common/field_formats/field_formats_registry.ts", @@ -2225,13 +2105,7 @@ "label": "esTypes", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined" ], "source": { @@ -2274,21 +2148,9 @@ ], "signature": [ "(fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[]) => string" ], "source": { @@ -2305,13 +2167,7 @@ "label": "fieldType", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - } + "KBN_FIELD_TYPES" ], "source": { "path": "src/plugins/data/common/field_formats/field_formats_registry.ts", @@ -2328,13 +2184,7 @@ "label": "esTypes", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[]" ], "source": { @@ -2356,24 +2206,18 @@ ], "label": "getByFieldType", "description": [ - "\nGet filtered list of field formats by format type\n" + "\nGet filtered list of field formats by format type,\nSkips hidden field formats\n" ], "signature": [ "(fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ") => ", "FieldFormatInstanceType", "[]" ], "source": { "path": "src/plugins/data/common/field_formats/field_formats_registry.ts", - "lineNumber": 223 + "lineNumber": 224 }, "deprecated": false, "children": [ @@ -2385,17 +2229,11 @@ "label": "fieldType", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - } + "KBN_FIELD_TYPES" ], "source": { "path": "src/plugins/data/common/field_formats/field_formats_registry.ts", - "lineNumber": 223 + "lineNumber": 224 }, "deprecated": false, "isRequired": true @@ -2416,21 +2254,9 @@ ], "signature": [ "((fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined, params?: Record) => ", { "pluginId": "data", @@ -2443,7 +2269,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_formats_registry.ts", - "lineNumber": 242 + "lineNumber": 244 }, "deprecated": false, "returnComment": [], @@ -2456,13 +2282,7 @@ "label": "fieldType", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - } + "KBN_FIELD_TYPES" ], "source": { "path": "src/plugins/data/common/field_formats/field_formats_registry.ts", @@ -2478,13 +2298,7 @@ "label": "esTypes", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined" ], "source": { @@ -2523,7 +2337,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_formats_registry.ts", - "lineNumber": 244 + "lineNumber": 246 }, "deprecated": false, "children": [ @@ -2539,7 +2353,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_formats_registry.ts", - "lineNumber": 244 + "lineNumber": 246 }, "deprecated": false, "isRequired": true @@ -2561,7 +2375,7 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_formats_registry.ts", - "lineNumber": 255 + "lineNumber": 257 }, "deprecated": false, "children": [ @@ -2578,7 +2392,45 @@ ], "source": { "path": "src/plugins/data/common/field_formats/field_formats_registry.ts", - "lineNumber": 255 + "lineNumber": 257 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "data", + "id": "def-common.FieldFormatsRegistry.has", + "type": "Function", + "tags": [], + "label": "has", + "description": [ + "\nChecks if field format with id already registered" + ], + "signature": [ + "(id: string) => boolean" + ], + "source": { + "path": "src/plugins/data/common/field_formats/field_formats_registry.ts", + "lineNumber": 271 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.FieldFormatsRegistry.has.$1", + "type": "string", + "tags": [], + "label": "id", + "description": [], + "signature": [ + "string" + ], + "source": { + "path": "src/plugins/data/common/field_formats/field_formats_registry.ts", + "lineNumber": 271 }, "deprecated": false, "isRequired": true @@ -2649,13 +2501,7 @@ "label": "fieldType", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - } + "KBN_FIELD_TYPES" ], "source": { "path": "src/plugins/data/common/field_formats/converters/histogram.ts", @@ -2854,13 +2700,7 @@ "label": "fieldType", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - } + "KBN_FIELD_TYPES" ], "source": { "path": "src/plugins/data/common/field_formats/converters/ip.ts", @@ -3254,13 +3094,7 @@ "label": "fieldType", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - } + "KBN_FIELD_TYPES" ], "source": { "path": "src/plugins/data/common/field_formats/converters/relative_date.ts", @@ -3380,13 +3214,7 @@ "label": "fieldType", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - } + "KBN_FIELD_TYPES" ], "source": { "path": "src/plugins/data/common/field_formats/converters/source.tsx", @@ -3562,13 +3390,7 @@ "label": "fieldType", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", "[]" ], "source": { @@ -3707,13 +3529,7 @@ "label": "fieldType", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", "[]" ], "source": { @@ -3924,13 +3740,7 @@ "label": "fieldType", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - } + "KBN_FIELD_TYPES" ], "source": { "path": "src/plugins/data/common/field_formats/converters/truncate.ts", @@ -4050,13 +3860,7 @@ "label": "fieldType", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", "[]" ], "source": { @@ -4446,36 +4250,12 @@ "label": "FieldFormatsStartCommon", "description": [], "signature": [ - "{ init: (getConfig: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.GetConfigFn", - "text": "GetConfigFn" - }, - ", metaParamsOptions?: Record, defaultFieldConverters?: ", - "FieldFormatInstanceType", - "[]) => void; register: (fieldFormats: ", - "FieldFormatInstanceType", - "[]) => void; deserialize: ", + "{ deserialize: ", "FormatFactory", "; getDefaultConfig: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", { "pluginId": "data", @@ -4489,71 +4269,23 @@ " | undefined; getTypeWithoutMetaParams: (formatId: string) => ", "FieldFormatInstanceType", " | undefined; getDefaultType: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", "FieldFormatInstanceType", " | undefined; getTypeNameByEsTypes: (esTypes: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", " | undefined; getDefaultTypeName: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", " | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "; getInstance: ((formatId: string, params?: Record) => ", { "pluginId": "data", @@ -4563,21 +4295,9 @@ "text": "FieldFormat" }, ") & _.MemoizedFunction; getDefaultInstancePlain: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined, params?: Record) => ", { "pluginId": "data", @@ -4587,47 +4307,17 @@ "text": "FieldFormat" }, "; getDefaultInstanceCacheResolver: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[]) => string; getByFieldType: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ") => ", "FieldFormatInstanceType", "[]; getDefaultInstance: ((fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined, params?: Record) => ", { "pluginId": "data", @@ -4636,11 +4326,11 @@ "section": "def-common.FieldFormat", "text": "FieldFormat" }, - ") & _.MemoizedFunction; parseDefaultTypeMap: (value: any) => void; }" + ") & _.MemoizedFunction; parseDefaultTypeMap: (value: any) => void; has: (id: string) => boolean; }" ], "source": { "path": "src/plugins/data/common/field_formats/types.ts", - "lineNumber": 97 + "lineNumber": 98 }, "deprecated": false, "initialIsOpen": false @@ -4708,21 +4398,9 @@ "[]) => void; deserialize: ", "FormatFactory", "; getDefaultConfig: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", { "pluginId": "data", @@ -4736,71 +4414,23 @@ " | undefined; getTypeWithoutMetaParams: (formatId: string) => ", "FieldFormatInstanceType", " | undefined; getDefaultType: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", "FieldFormatInstanceType", " | undefined; getTypeNameByEsTypes: (esTypes: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", " | undefined; getDefaultTypeName: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined) => ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", " | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "; getInstance: ((formatId: string, params?: Record) => ", { "pluginId": "data", @@ -4810,21 +4440,9 @@ "text": "FieldFormat" }, ") & _.MemoizedFunction; getDefaultInstancePlain: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined, params?: Record) => ", { "pluginId": "data", @@ -4834,47 +4452,17 @@ "text": "FieldFormat" }, "; getDefaultInstanceCacheResolver: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[]) => string; getByFieldType: (fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ") => ", "FieldFormatInstanceType", "[]; getDefaultInstance: ((fieldType: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", ", esTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", "[] | undefined, params?: Record) => ", { "pluginId": "data", @@ -4883,7 +4471,7 @@ "section": "def-common.FieldFormat", "text": "FieldFormat" }, - ") & _.MemoizedFunction; parseDefaultTypeMap: (value: any) => void; }" + ") & _.MemoizedFunction; parseDefaultTypeMap: (value: any) => void; has: (id: string) => boolean; }" ], "source": { "path": "src/plugins/data/common/field_formats/index.ts", diff --git a/api_docs/data_field_formats.mdx b/api_docs/data_field_formats.mdx index fdea9c8c7d4f5..6723bdc0fdca0 100644 --- a/api_docs/data_field_formats.mdx +++ b/api_docs/data_field_formats.mdx @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 3716 | 98 | 3162 | 64 | +| 3870 | 151 | 3323 | 63 | ## Client diff --git a/api_docs/data_index_patterns.json b/api_docs/data_index_patterns.json index 4a71c6d4c21cf..5e085d9490dfd 100644 --- a/api_docs/data_index_patterns.json +++ b/api_docs/data_index_patterns.json @@ -5214,13 +5214,7 @@ "label": "type", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - } + "KBN_FIELD_TYPES" ], "source": { "path": "src/plugins/data/common/index_patterns/types.ts", @@ -7269,41 +7263,6 @@ "lineNumber": 30 } }, - { - "plugin": "visualizations", - "link": { - "path": "src/plugins/visualizations/public/saved_visualizations/_saved_vis.ts", - "lineNumber": 22 - } - }, - { - "plugin": "visualizations", - "link": { - "path": "src/plugins/visualizations/public/saved_visualizations/_saved_vis.ts", - "lineNumber": 96 - } - }, - { - "plugin": "visualizations", - "link": { - "path": "src/plugins/visualizations/public/embeddable/visualize_embeddable.ts", - "lineNumber": 14 - } - }, - { - "plugin": "visualizations", - "link": { - "path": "src/plugins/visualizations/public/embeddable/visualize_embeddable.ts", - "lineNumber": 50 - } - }, - { - "plugin": "visualizations", - "link": { - "path": "src/plugins/visualizations/public/embeddable/visualize_embeddable.ts", - "lineNumber": 72 - } - }, { "plugin": "savedObjectsManagement", "link": { @@ -7448,21 +7407,21 @@ "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/helpers.tsx", - "lineNumber": 149 + "lineNumber": 148 } }, { "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx", - "lineNumber": 31 + "lineNumber": 29 } }, { "plugin": "timelines", "link": { "path": "x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx", - "lineNumber": 122 + "lineNumber": 120 } }, { @@ -7952,7 +7911,7 @@ "plugin": "securitySolution", "link": { "path": "x-pack/plugins/security_solution/public/common/components/top_n/top_n.tsx", - "lineNumber": 55 + "lineNumber": 56 } }, { @@ -7966,7 +7925,7 @@ "plugin": "securitySolution", "link": { "path": "x-pack/plugins/security_solution/public/common/components/top_n/index.tsx", - "lineNumber": 79 + "lineNumber": 80 } }, { @@ -8144,20 +8103,6 @@ "lineNumber": 54 } }, - { - "plugin": "uptime", - "link": { - "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts", - "lineNumber": 8 - } - }, - { - "plugin": "uptime", - "link": { - "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts", - "lineNumber": 28 - } - }, { "plugin": "timelines", "link": { @@ -8858,20 +8803,6 @@ "lineNumber": 405 } }, - { - "plugin": "uptime", - "link": { - "path": "x-pack/plugins/uptime/public/state/reducers/index_pattern.ts", - "lineNumber": 10 - } - }, - { - "plugin": "uptime", - "link": { - "path": "x-pack/plugins/uptime/public/state/reducers/index_pattern.ts", - "lineNumber": 13 - } - }, { "plugin": "ml", "link": { diff --git a/api_docs/data_index_patterns.mdx b/api_docs/data_index_patterns.mdx index 3980d5de3caf3..cdbe6af3d5761 100644 --- a/api_docs/data_index_patterns.mdx +++ b/api_docs/data_index_patterns.mdx @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 3716 | 98 | 3162 | 64 | +| 3870 | 151 | 3323 | 63 | ## Server diff --git a/api_docs/data_query.json b/api_docs/data_query.json index 5b777ef557779..705be474a8d07 100644 --- a/api_docs/data_query.json +++ b/api_docs/data_query.json @@ -37,7 +37,7 @@ ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 36 + "lineNumber": 35 }, "deprecated": false, "children": [ @@ -53,7 +53,7 @@ ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 42 + "lineNumber": 41 }, "deprecated": false, "children": [ @@ -75,7 +75,7 @@ ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 42 + "lineNumber": 41 }, "deprecated": false, "isRequired": true @@ -91,13 +91,11 @@ "label": "getFilters", "description": [], "signature": [ - "() => ", - "Filter", - "[]" + "() => any[]" ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 99 + "lineNumber": 98 }, "deprecated": false, "children": [], @@ -111,13 +109,11 @@ "label": "getAppFilters", "description": [], "signature": [ - "() => ", - "Filter", - "[]" + "() => any[]" ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 103 + "lineNumber": 102 }, "deprecated": false, "children": [], @@ -131,13 +127,11 @@ "label": "getGlobalFilters", "description": [], "signature": [ - "() => ", - "Filter", - "[]" + "() => any[]" ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 108 + "lineNumber": 107 }, "deprecated": false, "children": [], @@ -156,7 +150,7 @@ ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 113 + "lineNumber": 112 }, "deprecated": false, "children": [], @@ -176,7 +170,7 @@ ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 117 + "lineNumber": 116 }, "deprecated": false, "children": [], @@ -196,7 +190,7 @@ ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 121 + "lineNumber": 120 }, "deprecated": false, "children": [], @@ -210,34 +204,27 @@ "label": "addFilters", "description": [], "signature": [ - "(filters: ", - "Filter", - " | ", - "Filter", - "[], pinFilterStatus?: boolean) => void" + "(filters: any, pinFilterStatus?: boolean) => void" ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 127 + "lineNumber": 126 }, "deprecated": false, "children": [ { "parentPluginId": "data", "id": "def-public.FilterManager.addFilters.$1", - "type": "CompoundType", + "type": "Any", "tags": [], "label": "filters", "description": [], "signature": [ - "Filter", - " | ", - "Filter", - "[]" + "any" ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 128 + "lineNumber": 127 }, "deprecated": false, "isRequired": true @@ -254,7 +241,7 @@ ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 129 + "lineNumber": 128 }, "deprecated": false, "isRequired": true @@ -270,13 +257,11 @@ "label": "setFilters", "description": [], "signature": [ - "(newFilters: ", - "Filter", - "[], pinFilterStatus?: boolean) => void" + "(newFilters: any[], pinFilterStatus?: boolean) => void" ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 155 + "lineNumber": 154 }, "deprecated": false, "children": [ @@ -288,12 +273,11 @@ "label": "newFilters", "description": [], "signature": [ - "Filter", - "[]" + "any[]" ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 156 + "lineNumber": 155 }, "deprecated": false, "isRequired": true @@ -310,7 +294,7 @@ ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 157 + "lineNumber": 156 }, "deprecated": false, "isRequired": true @@ -328,13 +312,11 @@ "\nSets new global filters and leaves app filters untouched,\nRemoves app filters for which there is a duplicate within new global filters" ], "signature": [ - "(newGlobalFilters: ", - "Filter", - "[]) => void" + "(newGlobalFilters: any[]) => void" ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 174 + "lineNumber": 173 }, "deprecated": false, "children": [ @@ -346,12 +328,11 @@ "label": "newGlobalFilters", "description": [], "signature": [ - "Filter", - "[]" + "any[]" ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 174 + "lineNumber": 173 }, "deprecated": false, "isRequired": true @@ -369,13 +350,11 @@ "\nSets new app filters and leaves global filters untouched,\nRemoves app filters for which there is a duplicate within new global filters" ], "signature": [ - "(newAppFilters: ", - "Filter", - "[]) => void" + "(newAppFilters: any[]) => void" ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 191 + "lineNumber": 190 }, "deprecated": false, "children": [ @@ -387,12 +366,11 @@ "label": "newAppFilters", "description": [], "signature": [ - "Filter", - "[]" + "any[]" ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 191 + "lineNumber": 190 }, "deprecated": false, "isRequired": true @@ -408,29 +386,27 @@ "label": "removeFilter", "description": [], "signature": [ - "(filter: ", - "Filter", - ") => void" + "(filter: any) => void" ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 202 + "lineNumber": 201 }, "deprecated": false, "children": [ { "parentPluginId": "data", "id": "def-public.FilterManager.removeFilter.$1", - "type": "Object", + "type": "Any", "tags": [], "label": "filter", "description": [], "signature": [ - "Filter" + "any" ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 202 + "lineNumber": 201 }, "deprecated": false, "isRequired": true @@ -450,7 +426,7 @@ ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 214 + "lineNumber": 213 }, "deprecated": false, "children": [], @@ -464,15 +440,13 @@ "label": "setFiltersStore", "description": [], "signature": [ - "(filters: ", - "Filter", - "[], store: ", + "(filters: any[], store: ", "FilterStateStore", ", shouldOverrideStore?: boolean) => void" ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 218 + "lineNumber": 217 }, "deprecated": false, "children": [ @@ -484,12 +458,11 @@ "label": "filters", "description": [], "signature": [ - "Filter", - "[]" + "any[]" ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 219 + "lineNumber": 218 }, "deprecated": false, "isRequired": true @@ -506,7 +479,7 @@ ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 220 + "lineNumber": 219 }, "deprecated": false, "isRequired": true @@ -523,7 +496,7 @@ ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 221 + "lineNumber": 220 }, "deprecated": false, "isRequired": true @@ -543,7 +516,7 @@ ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 233 + "lineNumber": 232 }, "deprecated": false }, @@ -559,7 +532,7 @@ ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 236 + "lineNumber": 235 }, "deprecated": false }, @@ -583,7 +556,7 @@ ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 238 + "lineNumber": 237 }, "deprecated": false, "returnComment": [], @@ -642,7 +615,7 @@ ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 241 + "lineNumber": 240 }, "deprecated": false }, @@ -658,7 +631,7 @@ ], "source": { "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", - "lineNumber": 243 + "lineNumber": 242 }, "deprecated": false, "returnComment": [], @@ -822,9 +795,7 @@ "section": "def-public.QueryState", "text": "QueryState" }, - ">({ timefilter: { timefilter }, filterManager, queryString, state$, }: Pick<{ addToQueryLog: (appName: string, { language, query }: ", - "Query", - ") => void; filterManager: ", + ">({ timefilter: { timefilter }, filterManager, queryString, state$, }: Pick<{ addToQueryLog: (appName: string, { language, query }: any) => void; filterManager: ", { "pluginId": "data", "scope": "public", @@ -880,11 +851,7 @@ }, " | undefined) => { bool: { must: ", "DslQuery", - "[]; filter: ", - "Filter", - "[]; should: never[]; must_not: ", - "Filter", - "[]; }; }; } | { filterManager: ", + "[]; filter: any[]; should: never[]; must_not: any[]; }; }; } | { filterManager: ", { "pluginId": "data", "scope": "public", @@ -940,9 +907,7 @@ "label": "{\n timefilter: { timefilter },\n filterManager,\n queryString,\n state$,\n }", "description": [], "signature": [ - "Pick<{ addToQueryLog: (appName: string, { language, query }: ", - "Query", - ") => void; filterManager: ", + "Pick<{ addToQueryLog: (appName: string, { language, query }: any) => void; filterManager: ", { "pluginId": "data", "scope": "public", @@ -998,11 +963,7 @@ }, " | undefined) => { bool: { must: ", "DslQuery", - "[]; filter: ", - "Filter", - "[]; should: never[]; must_not: ", - "Filter", - "[]; }; }; } | { filterManager: ", + "[]; filter: any[]; should: never[]; must_not: any[]; }; }; } | { filterManager: ", { "pluginId": "data", "scope": "public", @@ -1212,6 +1173,216 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-public.extractTimeRange", + "type": "Function", + "tags": [], + "label": "extractTimeRange", + "description": [], + "signature": [ + "(filters: any[], timeFieldName: string | undefined) => { restOfFilters: any[]; timeRange?: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataQueryPluginApi", + "section": "def-common.TimeRange", + "text": "TimeRange" + }, + " | undefined; }" + ], + "source": { + "path": "src/plugins/data/public/query/timefilter/lib/extract_time_filter.ts", + "lineNumber": 31 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-public.extractTimeRange.$1", + "type": "Array", + "tags": [], + "label": "filters", + "description": [], + "signature": [ + "any[]" + ], + "source": { + "path": "src/plugins/data/public/query/timefilter/lib/extract_time_filter.ts", + "lineNumber": 32 + }, + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "data", + "id": "def-public.extractTimeRange.$2", + "type": "string", + "tags": [], + "label": "timeFieldName", + "description": [], + "signature": [ + "string | undefined" + ], + "source": { + "path": "src/plugins/data/public/query/timefilter/lib/extract_time_filter.ts", + "lineNumber": 33 + }, + "deprecated": false, + "isRequired": false + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-public.generateFilters", + "type": "Function", + "tags": [], + "label": "generateFilters", + "description": [ + "\nGenerate filter objects, as a result of triggering a filter action on a\nspecific index pattern field.\n" + ], + "signature": [ + "(filterManager: ", + { + "pluginId": "data", + "scope": "public", + "docId": "kibDataQueryPluginApi", + "section": "def-public.FilterManager", + "text": "FilterManager" + }, + ", field: string | ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataIndexPatternsPluginApi", + "section": "def-common.IFieldType", + "text": "IFieldType" + }, + ", values: any, operation: string, index: string) => any[]" + ], + "source": { + "path": "src/plugins/data/public/query/filter_manager/lib/generate_filters.ts", + "lineNumber": 67 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-public.generateFilters.$1", + "type": "Object", + "tags": [], + "label": "filterManager", + "description": [ + "- The active filter manager to lookup for existing filters" + ], + "signature": [ + { + "pluginId": "data", + "scope": "public", + "docId": "kibDataQueryPluginApi", + "section": "def-public.FilterManager", + "text": "FilterManager" + } + ], + "source": { + "path": "src/plugins/data/public/query/filter_manager/lib/generate_filters.ts", + "lineNumber": 68 + }, + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "data", + "id": "def-public.generateFilters.$2", + "type": "CompoundType", + "tags": [], + "label": "field", + "description": [ + "- The field for which filters should be generated" + ], + "signature": [ + "string | ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataIndexPatternsPluginApi", + "section": "def-common.IFieldType", + "text": "IFieldType" + } + ], + "source": { + "path": "src/plugins/data/public/query/filter_manager/lib/generate_filters.ts", + "lineNumber": 69 + }, + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "data", + "id": "def-public.generateFilters.$3", + "type": "Any", + "tags": [], + "label": "values", + "description": [ + "- One or more values to filter for." + ], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/public/query/filter_manager/lib/generate_filters.ts", + "lineNumber": 70 + }, + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "data", + "id": "def-public.generateFilters.$4", + "type": "string", + "tags": [], + "label": "operation", + "description": [ + "- \"-\" to create a negated filter" + ], + "signature": [ + "string" + ], + "source": { + "path": "src/plugins/data/public/query/filter_manager/lib/generate_filters.ts", + "lineNumber": 71 + }, + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "data", + "id": "def-public.generateFilters.$5", + "type": "string", + "tags": [], + "label": "index", + "description": [ + "- Index string to generate filters for" + ], + "signature": [ + "string" + ], + "source": { + "path": "src/plugins/data/public/query/filter_manager/lib/generate_filters.ts", + "lineNumber": 72 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [ + "An array of filters to be added back to filterManager" + ], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-public.getDefaultQuery", @@ -1253,6 +1424,75 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-public.getDisplayValueFromFilter", + "type": "Function", + "tags": [], + "label": "getDisplayValueFromFilter", + "description": [], + "signature": [ + "(filter: any, indexPatterns: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataIndexPatternsPluginApi", + "section": "def-common.IIndexPattern", + "text": "IIndexPattern" + }, + "[]) => string" + ], + "source": { + "path": "src/plugins/data/public/query/filter_manager/lib/get_display_value.ts", + "lineNumber": 30 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-public.getDisplayValueFromFilter.$1", + "type": "Any", + "tags": [], + "label": "filter", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/public/query/filter_manager/lib/get_display_value.ts", + "lineNumber": 30 + }, + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "data", + "id": "def-public.getDisplayValueFromFilter.$2", + "type": "Array", + "tags": [], + "label": "indexPatterns", + "description": [], + "signature": [ + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataIndexPatternsPluginApi", + "section": "def-common.IIndexPattern", + "text": "IIndexPattern" + }, + "[]" + ], + "source": { + "path": "src/plugins/data/public/query/filter_manager/lib/get_display_value.ts", + "lineNumber": 30 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-public.syncQueryStateWithUrl", @@ -1263,9 +1503,7 @@ "\nHelper to setup syncing of global data with the URL" ], "signature": [ - "(query: Pick<{ addToQueryLog: (appName: string, { language, query }: ", - "Query", - ") => void; filterManager: ", + "(query: Pick<{ addToQueryLog: (appName: string, { language, query }: any) => void; filterManager: ", { "pluginId": "data", "scope": "public", @@ -1321,11 +1559,7 @@ }, " | undefined) => { bool: { must: ", "DslQuery", - "[]; filter: ", - "Filter", - "[]; should: never[]; must_not: ", - "Filter", - "[]; }; }; } | { filterManager: ", + "[]; filter: any[]; should: never[]; must_not: any[]; }; }; } | { filterManager: ", { "pluginId": "data", "scope": "public", @@ -1379,9 +1613,7 @@ "label": "query", "description": [], "signature": [ - "Pick<{ addToQueryLog: (appName: string, { language, query }: ", - "Query", - ") => void; filterManager: ", + "Pick<{ addToQueryLog: (appName: string, { language, query }: any) => void; filterManager: ", { "pluginId": "data", "scope": "public", @@ -1437,11 +1669,7 @@ }, " | undefined) => { bool: { must: ", "DslQuery", - "[]; filter: ", - "Filter", - "[]; should: never[]; must_not: ", - "Filter", - "[]; }; }; } | { filterManager: ", + "[]; filter: any[]; should: never[]; must_not: any[]; }; }; } | { filterManager: ", { "pluginId": "data", "scope": "public", @@ -1580,8 +1808,7 @@ "label": "filters", "description": [], "signature": [ - "Filter", - "[] | undefined" + "any[] | undefined" ], "source": { "path": "src/plugins/data/public/query/state_sync/types.ts", @@ -1592,13 +1819,12 @@ { "parentPluginId": "data", "id": "def-public.QueryState.query", - "type": "Object", + "type": "Any", "tags": [], "label": "query", "description": [], "signature": [ - "Query", - " | undefined" + "any" ], "source": { "path": "src/plugins/data/public/query/state_sync/types.ts", @@ -2032,9 +2258,7 @@ "label": "QueryStart", "description": [], "signature": [ - "{ addToQueryLog: (appName: string, { language, query }: ", - "Query", - ") => void; filterManager: ", + "{ addToQueryLog: (appName: string, { language, query }: any) => void; filterManager: ", { "pluginId": "data", "scope": "public", @@ -2090,11 +2314,7 @@ }, " | undefined) => { bool: { must: ", "DslQuery", - "[]; filter: ", - "Filter", - "[]; should: never[]; must_not: ", - "Filter", - "[]; }; }; }" + "[]; filter: any[]; should: never[]; must_not: any[]; }; }; }" ], "source": { "path": "src/plugins/data/public/query/query_service.ts", @@ -2217,9 +2437,7 @@ "section": "def-common.TimeRange", "text": "TimeRange" }, - " | undefined) => ", - "RangeFilter", - " | undefined; getBounds: () => ", + " | undefined) => any; getBounds: () => ", { "pluginId": "data", "scope": "common", @@ -2400,240 +2618,28 @@ }, { "parentPluginId": "data", - "id": "def-common.compareFilters", + "id": "def-common.getAbsoluteTimeRange", "type": "Function", "tags": [], - "label": "compareFilters", - "description": [ - "\nCompare two filters or filter arrays to see if they match.\nFor filter arrays, the assumption is they are sorted.\n" - ], + "label": "getAbsoluteTimeRange", + "description": [], "signature": [ - "(first: ", - "Filter", - " | ", - "Filter", - "[], second: ", - "Filter", - " | ", - "Filter", - "[], comparatorOptions?: ", + "(timeRange: ", { "pluginId": "data", "scope": "common", "docId": "kibDataQueryPluginApi", - "section": "def-common.FilterCompareOptions", - "text": "FilterCompareOptions" + "section": "def-common.TimeRange", + "text": "TimeRange" }, - ") => boolean" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/compare_filters.ts", - "lineNumber": 64 - }, - "deprecated": false, - "children": [ - { - "parentPluginId": "data", - "id": "def-common.compareFilters.$1", - "type": "CompoundType", - "tags": [], - "label": "first", - "description": [ - "The first filter or filter array to compare" - ], - "signature": [ - "Filter", - " | ", - "Filter", - "[]" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/compare_filters.ts", - "lineNumber": 65 - }, - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "data", - "id": "def-common.compareFilters.$2", - "type": "CompoundType", - "tags": [], - "label": "second", - "description": [ - "The second filter or filter array to compare" - ], - "signature": [ - "Filter", - " | ", - "Filter", - "[]" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/compare_filters.ts", - "lineNumber": 66 - }, - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "data", - "id": "def-common.compareFilters.$3", - "type": "Object", - "tags": [], - "label": "comparatorOptions", - "description": [ - "Parameters to use for comparison" - ], - "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataQueryPluginApi", - "section": "def-common.FilterCompareOptions", - "text": "FilterCompareOptions" - } - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/compare_filters.ts", - "lineNumber": 67 - }, - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [ - "Filters are the same" - ], - "initialIsOpen": false - }, - { - "parentPluginId": "data", - "id": "def-common.dedupFilters", - "type": "Function", - "tags": [], - "label": "dedupFilters", - "description": [ - "\nCombine 2 filter collections, removing duplicates\n" - ], - "signature": [ - "(existingFilters: ", - "Filter", - "[], filters: ", - "Filter", - "[], comparatorOptions?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataQueryPluginApi", - "section": "def-common.FilterCompareOptions", - "text": "FilterCompareOptions" - }, - ") => ", - "Filter", - "[]" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/dedup_filters.ts", - "lineNumber": 22 - }, - "deprecated": false, - "children": [ - { - "parentPluginId": "data", - "id": "def-common.dedupFilters.$1", - "type": "Array", - "tags": [], - "label": "existingFilters", - "description": [ - "- The filters to compare to" - ], - "signature": [ - "Filter", - "[]" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/dedup_filters.ts", - "lineNumber": 23 - }, - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "data", - "id": "def-common.dedupFilters.$2", - "type": "Array", - "tags": [], - "label": "filters", - "description": [ - "- The filters being added" - ], - "signature": [ - "Filter", - "[]" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/dedup_filters.ts", - "lineNumber": 24 - }, - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "data", - "id": "def-common.dedupFilters.$3", - "type": "Object", - "tags": [], - "label": "comparatorOptions", - "description": [ - "- Parameters to use for comparison" - ], - "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataQueryPluginApi", - "section": "def-common.FilterCompareOptions", - "text": "FilterCompareOptions" - } - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/dedup_filters.ts", - "lineNumber": 25 - }, - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [ - "An array of filters that were not in existing" - ], - "initialIsOpen": false - }, - { - "parentPluginId": "data", - "id": "def-common.getAbsoluteTimeRange", - "type": "Function", - "tags": [], - "label": "getAbsoluteTimeRange", - "description": [], - "signature": [ - "(timeRange: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataQueryPluginApi", - "section": "def-common.TimeRange", - "text": "TimeRange" - }, - ", { forceNow }: { forceNow?: Date | undefined; }) => ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataQueryPluginApi", - "section": "def-common.TimeRange", - "text": "TimeRange" - } + ", { forceNow }: { forceNow?: Date | undefined; }) => ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataQueryPluginApi", + "section": "def-common.TimeRange", + "text": "TimeRange" + } ], "source": { "path": "src/plugins/data/common/query/timefilter/get_time.ts", @@ -2723,9 +2729,7 @@ "section": "def-common.TimeRange", "text": "TimeRange" }, - ", options: { forceNow?: Date | undefined; fieldName?: string | undefined; } | undefined) => ", - "RangeFilter", - " | undefined" + ", options: { forceNow?: Date | undefined; fieldName?: string | undefined; } | undefined) => any" ], "source": { "path": "src/plugins/data/common/query/timefilter/get_time.ts", @@ -2839,8 +2843,7 @@ "label": "isQuery", "description": [], "signature": [ - "(x: unknown) => x is ", - "Query" + "(x: unknown) => x is any" ], "source": { "path": "src/plugins/data/common/query/is_query.ts", @@ -2912,172 +2915,9 @@ ], "returnComment": [], "initialIsOpen": false - }, - { - "parentPluginId": "data", - "id": "def-common.uniqFilters", - "type": "Function", - "tags": [], - "label": "uniqFilters", - "description": [ - "\nRemove duplicate filters from an array of filters\n" - ], - "signature": [ - "(filters: ", - "Filter", - "[], comparatorOptions?: any) => ", - "Filter", - "[]" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/uniq_filters.ts", - "lineNumber": 21 - }, - "deprecated": false, - "children": [ - { - "parentPluginId": "data", - "id": "def-common.uniqFilters.$1", - "type": "Array", - "tags": [], - "label": "filters", - "description": [ - "The filters to remove duplicates from" - ], - "signature": [ - "Filter", - "[]" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/uniq_filters.ts", - "lineNumber": 21 - }, - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "data", - "id": "def-common.uniqFilters.$2", - "type": "Any", - "tags": [], - "label": "comparatorOptions", - "description": [ - "- Parameters to use for comparison" - ], - "signature": [ - "any" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/uniq_filters.ts", - "lineNumber": 21 - }, - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [ - "The original filters array with duplicates removed" - ], - "initialIsOpen": false } ], "interfaces": [ - { - "parentPluginId": "data", - "id": "def-common.FilterCompareOptions", - "type": "Interface", - "tags": [], - "label": "FilterCompareOptions", - "description": [], - "source": { - "path": "src/plugins/data/common/query/filter_manager/compare_filters.ts", - "lineNumber": 12 - }, - "deprecated": false, - "children": [ - { - "parentPluginId": "data", - "id": "def-common.FilterCompareOptions.index", - "type": "CompoundType", - "tags": [], - "label": "index", - "description": [], - "signature": [ - "boolean | undefined" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/compare_filters.ts", - "lineNumber": 13 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.FilterCompareOptions.disabled", - "type": "CompoundType", - "tags": [], - "label": "disabled", - "description": [], - "signature": [ - "boolean | undefined" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/compare_filters.ts", - "lineNumber": 14 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.FilterCompareOptions.negate", - "type": "CompoundType", - "tags": [], - "label": "negate", - "description": [], - "signature": [ - "boolean | undefined" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/compare_filters.ts", - "lineNumber": 15 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.FilterCompareOptions.state", - "type": "CompoundType", - "tags": [], - "label": "state", - "description": [], - "signature": [ - "boolean | undefined" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/compare_filters.ts", - "lineNumber": 16 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.FilterCompareOptions.alias", - "type": "CompoundType", - "tags": [], - "label": "alias", - "description": [], - "signature": [ - "boolean | undefined" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/compare_filters.ts", - "lineNumber": 17 - }, - "deprecated": false - } - ], - "initialIsOpen": false - }, { "parentPluginId": "data", "id": "def-common.RefreshInterval", @@ -3189,105 +3029,6 @@ "initialIsOpen": false } ], - "objects": [ - { - "parentPluginId": "data", - "id": "def-common.COMPARE_ALL_OPTIONS", - "type": "Object", - "tags": [], - "label": "COMPARE_ALL_OPTIONS", - "description": [ - "\nInclude disabled, negate and store when comparing filters" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/compare_filters.ts", - "lineNumber": 23 - }, - "deprecated": false, - "children": [ - { - "parentPluginId": "data", - "id": "def-common.COMPARE_ALL_OPTIONS.index", - "type": "boolean", - "tags": [], - "label": "index", - "description": [], - "signature": [ - "true" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/compare_filters.ts", - "lineNumber": 24 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.COMPARE_ALL_OPTIONS.disabled", - "type": "boolean", - "tags": [], - "label": "disabled", - "description": [], - "signature": [ - "true" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/compare_filters.ts", - "lineNumber": 25 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.COMPARE_ALL_OPTIONS.negate", - "type": "boolean", - "tags": [], - "label": "negate", - "description": [], - "signature": [ - "true" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/compare_filters.ts", - "lineNumber": 26 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.COMPARE_ALL_OPTIONS.state", - "type": "boolean", - "tags": [], - "label": "state", - "description": [], - "signature": [ - "true" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/compare_filters.ts", - "lineNumber": 27 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.COMPARE_ALL_OPTIONS.alias", - "type": "boolean", - "tags": [], - "label": "alias", - "description": [], - "signature": [ - "true" - ], - "source": { - "path": "src/plugins/data/common/query/filter_manager/compare_filters.ts", - "lineNumber": 28 - }, - "deprecated": false - } - ], - "initialIsOpen": false - } - ] + "objects": [] } } \ No newline at end of file diff --git a/api_docs/data_query.mdx b/api_docs/data_query.mdx index b7145952a1308..2f32f33248c7f 100644 --- a/api_docs/data_query.mdx +++ b/api_docs/data_query.mdx @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 3716 | 98 | 3162 | 64 | +| 3870 | 151 | 3323 | 63 | ## Client @@ -36,9 +36,6 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services ## Common -### Objects - - ### Functions diff --git a/api_docs/data_search.json b/api_docs/data_search.json index 95d3733201ba3..1c0569fe53fe5 100644 --- a/api_docs/data_search.json +++ b/api_docs/data_search.json @@ -2561,7 +2561,7 @@ ], "source": { "path": "src/plugins/data/server/search/strategies/ese_search/types.ts", - "lineNumber": 12 + "lineNumber": 11 }, "deprecated": false, "children": [ @@ -2577,7 +2577,7 @@ ], "source": { "path": "src/plugins/data/server/search/strategies/ese_search/types.ts", - "lineNumber": 13 + "lineNumber": 12 }, "deprecated": false }, @@ -2594,7 +2594,7 @@ ], "source": { "path": "src/plugins/data/server/search/strategies/ese_search/types.ts", - "lineNumber": 14 + "lineNumber": 13 }, "deprecated": false }, @@ -2607,7 +2607,7 @@ "description": [], "source": { "path": "src/plugins/data/server/search/strategies/ese_search/types.ts", - "lineNumber": 15 + "lineNumber": 14 }, "deprecated": false }, @@ -2620,7 +2620,7 @@ "description": [], "source": { "path": "src/plugins/data/server/search/strategies/ese_search/types.ts", - "lineNumber": 16 + "lineNumber": 15 }, "deprecated": false }, @@ -2633,7 +2633,7 @@ "description": [], "source": { "path": "src/plugins/data/server/search/strategies/ese_search/types.ts", - "lineNumber": 17 + "lineNumber": 16 }, "deprecated": false }, @@ -2646,7 +2646,7 @@ "description": [], "source": { "path": "src/plugins/data/server/search/strategies/ese_search/types.ts", - "lineNumber": 18 + "lineNumber": 17 }, "deprecated": false } @@ -2680,7 +2680,7 @@ ], "source": { "path": "src/plugins/data/server/search/strategies/ese_search/types.ts", - "lineNumber": 20 + "lineNumber": 19 }, "deprecated": false, "children": [ @@ -2693,7 +2693,7 @@ "description": [], "source": { "path": "src/plugins/data/server/search/strategies/ese_search/types.ts", - "lineNumber": 21 + "lineNumber": 20 }, "deprecated": false }, @@ -2705,11 +2705,11 @@ "label": "_shards", "description": [], "signature": [ - "ShardsResponse" + "ShardStatistics" ], "source": { "path": "src/plugins/data/server/search/strategies/ese_search/types.ts", - "lineNumber": 22 + "lineNumber": 21 }, "deprecated": false } @@ -3364,6 +3364,47 @@ }, "deprecated": false }, + { + "parentPluginId": "data", + "id": "def-server.ISearchStart.searchAsInternalUser", + "type": "Object", + "tags": [], + "label": "searchAsInternalUser", + "description": [ + "\nSearch as the internal Kibana system user. This is not a registered search strategy as we don't\nwant to allow access from the client." + ], + "signature": [ + { + "pluginId": "data", + "scope": "server", + "docId": "kibDataSearchPluginApi", + "section": "def-server.ISearchStrategy", + "text": "ISearchStrategy" + }, + "<", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.IEsSearchRequest", + "text": "IEsSearchRequest" + }, + ", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.IEsSearchResponse", + "text": "IEsSearchResponse" + }, + ">" + ], + "source": { + "path": "src/plugins/data/server/search/types.ts", + "lineNumber": 109 + }, + "deprecated": false + }, { "parentPluginId": "data", "id": "def-server.ISearchStart.getSearchStrategy", @@ -3386,7 +3427,7 @@ ], "source": { "path": "src/plugins/data/server/search/types.ts", - "lineNumber": 110 + "lineNumber": 115 }, "deprecated": false, "returnComment": [], @@ -3403,7 +3444,7 @@ ], "source": { "path": "src/plugins/data/server/search/types.ts", - "lineNumber": 111 + "lineNumber": 116 }, "deprecated": false } @@ -3436,7 +3477,7 @@ ], "source": { "path": "src/plugins/data/server/search/types.ts", - "lineNumber": 113 + "lineNumber": 118 }, "deprecated": false, "returnComment": [], @@ -3460,7 +3501,7 @@ ], "source": { "path": "src/plugins/data/server/search/types.ts", - "lineNumber": 113 + "lineNumber": 118 }, "deprecated": false } @@ -3494,7 +3535,7 @@ ], "source": { "path": "src/plugins/data/server/search/types.ts", - "lineNumber": 114 + "lineNumber": 119 }, "deprecated": false } @@ -4197,7 +4238,7 @@ ], "source": { "path": "src/plugins/data/server/search/types.ts", - "lineNumber": 119 + "lineNumber": 124 }, "deprecated": false, "initialIsOpen": false @@ -6481,9 +6522,7 @@ "label": "getSearchSourceTimeFilter", "description": [], "signature": [ - "(forceNow?: Date | undefined) => ", - "RangeFilter", - "[] | { meta: { index: string | undefined; params: {}; alias: string; disabled: boolean; negate: boolean; }; query: { bool: { should: { bool: { filter: { range: { [x: string]: { gte: string; lte: string; }; }; }[]; }; }[]; minimum_should_match: number; }; }; }[]" + "(forceNow?: Date | undefined) => any[]" ], "source": { "path": "src/plugins/data/common/search/aggs/agg_configs.ts", @@ -8470,7 +8509,15 @@ "section": "def-common.ExpressionAstExpression", "text": "ExpressionAstExpression" }, - " | undefined) | undefined" + " | ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + }, + "[] | undefined) | undefined" ], "source": { "path": "src/plugins/data/common/search/aggs/param_types/base.ts", @@ -9172,21 +9219,9 @@ "label": "filterFieldTypes", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", " | \"*\" | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", "[]" ], "source": { @@ -11454,7 +11489,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/date_histogram_fn.ts", - "lineNumber": 30 + "lineNumber": 34 }, "deprecated": false, "children": [], @@ -11473,7 +11508,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/date_range_fn.ts", - "lineNumber": 30 + "lineNumber": 31 }, "deprecated": false, "children": [], @@ -11511,7 +11546,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/filter_fn.ts", - "lineNumber": 30 + "lineNumber": 35 }, "deprecated": false, "children": [], @@ -11549,7 +11584,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/filters_fn.ts", - "lineNumber": 30 + "lineNumber": 32 }, "deprecated": false, "children": [], @@ -11606,7 +11641,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/geo_hash_fn.ts", - "lineNumber": 29 + "lineNumber": 31 }, "deprecated": false, "children": [], @@ -11644,7 +11679,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram_fn.ts", - "lineNumber": 30 + "lineNumber": 31 }, "deprecated": false, "children": [], @@ -11663,7 +11698,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/ip_range_fn.ts", - "lineNumber": 30 + "lineNumber": 34 }, "deprecated": false, "children": [], @@ -11796,7 +11831,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/range_fn.ts", - "lineNumber": 30 + "lineNumber": 31 }, "deprecated": false, "children": [], @@ -12056,6 +12091,64 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.cidrToAst", + "type": "Function", + "tags": [], + "label": "cidrToAst", + "description": [], + "signature": [ + "(cidr: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.Cidr", + "text": "Cidr" + }, + ") => ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/cidr_to_ast.ts", + "lineNumber": 12 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.cidrToAst.$1", + "type": "Object", + "tags": [], + "label": "cidr", + "description": [], + "signature": [ + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.Cidr", + "text": "Cidr" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/cidr_to_ast.ts", + "lineNumber": 12 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.convertDateRangeToString", @@ -12069,14 +12162,14 @@ "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.DateRangeKey", - "text": "DateRangeKey" + "section": "def-common.DateRange", + "text": "DateRange" }, ", format: (val: any) => string) => string" ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/lib/date_range.ts", - "lineNumber": 14 + "lineNumber": 11 }, "deprecated": false, "children": [ @@ -12092,13 +12185,13 @@ "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.DateRangeKey", - "text": "DateRangeKey" + "section": "def-common.DateRange", + "text": "DateRange" } ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/lib/date_range.ts", - "lineNumber": 14 + "lineNumber": 11 }, "deprecated": false, "isRequired": true @@ -12115,7 +12208,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/lib/date_range.ts", - "lineNumber": 14 + "lineNumber": 11 }, "deprecated": false, "isRequired": true @@ -12341,6 +12434,122 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.dateRangeToAst", + "type": "Function", + "tags": [], + "label": "dateRangeToAst", + "description": [], + "signature": [ + "(dateRange: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.DateRange", + "text": "DateRange" + }, + ") => ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range_to_ast.ts", + "lineNumber": 12 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.dateRangeToAst.$1", + "type": "Object", + "tags": [], + "label": "dateRange", + "description": [], + "signature": [ + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.DateRange", + "text": "DateRange" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range_to_ast.ts", + "lineNumber": 12 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.extendedBoundsToAst", + "type": "Function", + "tags": [], + "label": "extendedBoundsToAst", + "description": [], + "signature": [ + "(extendedBounds: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + }, + ") => ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/extended_bounds_to_ast.ts", + "lineNumber": 12 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.extendedBoundsToAst.$1", + "type": "Object", + "tags": [], + "label": "extendedBounds", + "description": [], + "signature": [ + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/extended_bounds_to_ast.ts", + "lineNumber": 12 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.extractReferences", @@ -12410,17 +12619,13 @@ "label": "filtersToAst", "description": [], "signature": [ - "(filters: ", - "Filter", - " | ", - "Filter", - "[]) => ", + "(filters: any) => ", { "pluginId": "expressions", "scope": "common", "docId": "kibExpressionsPluginApi", - "section": "def-common.ExpressionAstExpressionBuilder", - "text": "ExpressionAstExpressionBuilder" + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" }, "[]" ], @@ -12433,15 +12638,12 @@ { "parentPluginId": "data", "id": "def-common.filtersToAst.$1", - "type": "CompoundType", + "type": "Any", "tags": [], "label": "filters", "description": [], "signature": [ - "Filter", - " | ", - "Filter", - "[]" + "any" ], "source": { "path": "src/plugins/data/common/search/expressions/filters_to_ast.ts", @@ -12527,18 +12729,134 @@ }, { "parentPluginId": "data", - "id": "def-common.getAvgMetricAgg", + "id": "def-common.geoBoundingBoxToAst", "type": "Function", "tags": [], - "label": "getAvgMetricAgg", + "label": "geoBoundingBoxToAst", "description": [], "signature": [ - "() => ", + "(geoBoundingBox: ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.MetricAggType", + "section": "def-common.GeoBoundingBox", + "text": "GeoBoundingBox" + }, + ") => ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box_to_ast.ts", + "lineNumber": 16 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxToAst.$1", + "type": "CompoundType", + "tags": [], + "label": "geoBoundingBox", + "description": [], + "signature": [ + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoBoundingBox", + "text": "GeoBoundingBox" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box_to_ast.ts", + "lineNumber": 16 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.geoPointToAst", + "type": "Function", + "tags": [], + "label": "geoPointToAst", + "description": [], + "signature": [ + "(point: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + ") => ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_point_to_ast.ts", + "lineNumber": 12 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.geoPointToAst.$1", + "type": "CompoundType", + "tags": [], + "label": "point", + "description": [], + "signature": [ + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_point_to_ast.ts", + "lineNumber": 12 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.getAvgMetricAgg", + "type": "Function", + "tags": [], + "label": "getAvgMetricAgg", + "description": [], + "signature": [ + "() => ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.MetricAggType", "text": "MetricAggType" }, "<", @@ -13189,7 +13507,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/filter.ts", - "lineNumber": 27 + "lineNumber": 29 }, "deprecated": false, "children": [ @@ -13202,7 +13520,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/aggs/buckets/filter.ts", - "lineNumber": 27 + "lineNumber": 29 }, "deprecated": false, "children": [ @@ -13218,7 +13536,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/filter.ts", - "lineNumber": 27 + "lineNumber": 29 }, "deprecated": false, "returnComment": [], @@ -13232,7 +13550,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/aggs/buckets/filter.ts", - "lineNumber": 27 + "lineNumber": 29 }, "deprecated": false } @@ -13315,7 +13633,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/filters.ts", - "lineNumber": 44 + "lineNumber": 42 }, "deprecated": false, "children": [ @@ -13337,7 +13655,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/filters.ts", - "lineNumber": 44 + "lineNumber": 42 }, "deprecated": false, "isRequired": true @@ -13444,7 +13762,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/geo_hash.ts", - "lineNumber": 37 + "lineNumber": 38 }, "deprecated": false, "children": [], @@ -13514,7 +13832,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 51 + "lineNumber": 52 }, "deprecated": false, "children": [ @@ -13536,7 +13854,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 51 + "lineNumber": 52 }, "deprecated": false, "isRequired": true @@ -13573,7 +13891,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/ip_range.ts", - "lineNumber": 38 + "lineNumber": 39 }, "deprecated": false, "children": [], @@ -14014,7 +14332,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/range.ts", - "lineNumber": 38 + "lineNumber": 35 }, "deprecated": false, "children": [ @@ -14036,7 +14354,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/range.ts", - "lineNumber": 38 + "lineNumber": 35 }, "deprecated": false, "isRequired": true @@ -14772,6 +15090,64 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.ipRangeToAst", + "type": "Function", + "tags": [], + "label": "ipRangeToAst", + "description": [], + "signature": [ + "(ipRange: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.IpRange", + "text": "IpRange" + }, + ") => ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/ip_range_to_ast.ts", + "lineNumber": 12 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.ipRangeToAst.$1", + "type": "Object", + "tags": [], + "label": "ipRange", + "description": [], + "signature": [ + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.IpRange", + "text": "IpRange" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/ip_range_to_ast.ts", + "lineNumber": 12 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.isAutoInterval", @@ -15374,6 +15750,64 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.numericalRangeToAst", + "type": "Function", + "tags": [], + "label": "numericalRangeToAst", + "description": [], + "signature": [ + "(numericalRange: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.NumericalRange", + "text": "NumericalRange" + }, + ") => ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range_to_ast.ts", + "lineNumber": 12 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.numericalRangeToAst.$1", + "type": "Object", + "tags": [], + "label": "numericalRange", + "description": [], + "signature": [ + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.NumericalRange", + "text": "NumericalRange" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range_to_ast.ts", + "lineNumber": 12 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.parseEsInterval", @@ -15673,42 +16107,54 @@ }, { "parentPluginId": "data", - "id": "def-common.queryToAst", + "id": "def-common.queryFilterToAst", "type": "Function", "tags": [], - "label": "queryToAst", + "label": "queryFilterToAst", "description": [], "signature": [ - "(query: ", - "Query", + "({ input, label }: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.QueryFilter", + "text": "QueryFilter" + }, ") => ", { "pluginId": "expressions", "scope": "common", "docId": "kibExpressionsPluginApi", - "section": "def-common.ExpressionAstExpressionBuilder", - "text": "ExpressionAstExpressionBuilder" + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" } ], "source": { - "path": "src/plugins/data/common/search/expressions/query_to_ast.ts", - "lineNumber": 14 + "path": "src/plugins/data/common/search/expressions/query_filter_to_ast.ts", + "lineNumber": 13 }, "deprecated": false, "children": [ { "parentPluginId": "data", - "id": "def-common.queryToAst.$1", + "id": "def-common.queryFilterToAst.$1", "type": "Object", "tags": [], - "label": "query", + "label": "{ input, label }", "description": [], "signature": [ - "Query" + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.QueryFilter", + "text": "QueryFilter" + } ], "source": { - "path": "src/plugins/data/common/search/expressions/query_to_ast.ts", - "lineNumber": 14 + "path": "src/plugins/data/common/search/expressions/query_filter_to_ast.ts", + "lineNumber": 13 }, "deprecated": false, "isRequired": true @@ -15719,26 +16165,70 @@ }, { "parentPluginId": "data", - "id": "def-common.splitStringInterval", + "id": "def-common.queryToAst", "type": "Function", "tags": [], - "label": "splitStringInterval", + "label": "queryToAst", "description": [], "signature": [ - "(interval: string) => { value: number; unit: ", - "Unit", - "; } | null" + "(query: any) => ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + } ], "source": { - "path": "src/plugins/data/common/search/aggs/utils/date_interval_utils/parse_interval.ts", - "lineNumber": 16 + "path": "src/plugins/data/common/search/expressions/query_to_ast.ts", + "lineNumber": 14 }, "deprecated": false, "children": [ { "parentPluginId": "data", - "id": "def-common.splitStringInterval.$1", - "type": "string", + "id": "def-common.queryToAst.$1", + "type": "Any", + "tags": [], + "label": "query", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/query_to_ast.ts", + "lineNumber": 14 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.splitStringInterval", + "type": "Function", + "tags": [], + "label": "splitStringInterval", + "description": [], + "signature": [ + "(interval: string) => { value: number; unit: ", + "Unit", + "; } | null" + ], + "source": { + "path": "src/plugins/data/common/search/aggs/utils/date_interval_utils/parse_interval.ts", + "lineNumber": 16 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.splitStringInterval.$1", + "type": "string", "tags": [], "label": "interval", "description": [], @@ -16050,18 +16540,9 @@ "pluginId": "expressions", "scope": "common", "docId": "kibExpressionsPluginApi", - "section": "def-common.ExpressionAstFunctionBuilder", - "text": "ExpressionAstFunctionBuilder" - }, - "<", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataSearchPluginApi", - "section": "def-common.ExpressionFunctionKibanaTimerange", - "text": "ExpressionFunctionKibanaTimerange" - }, - ">" + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + } ], "source": { "path": "src/plugins/data/common/search/expressions/timerange_to_ast.ts", @@ -16208,7 +16689,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 196 + "lineNumber": 195 }, "deprecated": false, "children": [ @@ -16237,7 +16718,71 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".FILTER>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\"> & Pick<{ geo_bounding_box?: string | undefined; filter?: string | undefined; }, \"geo_bounding_box\"> & Pick<{ geo_bounding_box?: string | undefined; filter?: string | undefined; }, \"filter\">, \"enabled\" | \"id\" | \"filter\" | \"customLabel\" | \"schema\" | \"geo_bounding_box\" | \"json\" | \"timeShift\">, ", + ".FILTER>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\"> & Pick<{ geo_bounding_box?: ({ type: \"geo_bounding_box\"; } & GeoBox) | ({ type: \"geo_bounding_box\"; } & { top_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & { top_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & WellKnownText) | undefined; filter?: any; }, \"filter\" | \"geo_bounding_box\"> & Pick<{ geo_bounding_box?: ({ type: \"geo_bounding_box\"; } & GeoBox) | ({ type: \"geo_bounding_box\"; } & { top_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & { top_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & WellKnownText) | undefined; filter?: any; }, never>, \"enabled\" | \"id\" | \"filter\" | \"customLabel\" | \"schema\" | \"geo_bounding_box\" | \"json\" | \"timeShift\">, ", "AggExpressionType", ", ", { @@ -16261,7 +16806,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 197 + "lineNumber": 196 }, "deprecated": false }, @@ -16290,7 +16835,39 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".FILTERS>, \"enabled\" | \"id\" | \"schema\" | \"json\" | \"timeShift\"> & Pick<{ filters?: string | undefined; }, \"filters\"> & Pick<{ filters?: string | undefined; }, never>, \"enabled\" | \"filters\" | \"id\" | \"schema\" | \"json\" | \"timeShift\">, ", + ".FILTERS>, \"enabled\" | \"id\" | \"schema\" | \"json\" | \"timeShift\"> & Pick<{ filters?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"kibana_query_filter\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.QueryFilter", + "text": "QueryFilter" + }, + ">[] | undefined; }, \"filters\"> & Pick<{ filters?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"kibana_query_filter\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.QueryFilter", + "text": "QueryFilter" + }, + ">[] | undefined; }, never>, \"enabled\" | \"filters\" | \"id\" | \"schema\" | \"json\" | \"timeShift\">, ", "AggExpressionType", ", ", { @@ -16314,7 +16891,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 198 + "lineNumber": 197 }, "deprecated": false }, @@ -16367,7 +16944,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 199 + "lineNumber": 198 }, "deprecated": false }, @@ -16396,7 +16973,71 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".IP_RANGE>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\"> & Pick<{ ranges?: string | undefined; ipRangeType?: string | undefined; }, \"ipRangeType\" | \"ranges\"> & Pick<{ ranges?: string | undefined; ipRangeType?: string | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"ipRangeType\" | \"ranges\">, ", + ".IP_RANGE>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\"> & Pick<{ ranges?: (", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"cidr\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.Cidr", + "text": "Cidr" + }, + "> | ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"ip_range\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.IpRange", + "text": "IpRange" + }, + ">)[] | undefined; ipRangeType?: string | undefined; }, \"ipRangeType\" | \"ranges\"> & Pick<{ ranges?: (", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"cidr\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.Cidr", + "text": "Cidr" + }, + "> | ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"ip_range\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.IpRange", + "text": "IpRange" + }, + ">)[] | undefined; ipRangeType?: string | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"ipRangeType\" | \"ranges\">, ", "AggExpressionType", ", ", { @@ -16420,7 +17061,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 200 + "lineNumber": 199 }, "deprecated": false }, @@ -16449,7 +17090,39 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".DATE_RANGE>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"time_zone\"> & Pick<{ ranges?: string | undefined; }, \"ranges\"> & Pick<{ ranges?: string | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"ranges\" | \"time_zone\">, ", + ".DATE_RANGE>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"time_zone\"> & Pick<{ ranges?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"date_range\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.DateRange", + "text": "DateRange" + }, + ">[] | undefined; }, \"ranges\"> & Pick<{ ranges?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"date_range\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.DateRange", + "text": "DateRange" + }, + ">[] | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"ranges\" | \"time_zone\">, ", "AggExpressionType", ", ", { @@ -16473,7 +17146,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 201 + "lineNumber": 200 }, "deprecated": false }, @@ -16502,60 +17175,39 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".RANGE>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\"> & Pick<{ ranges?: string | undefined; }, \"ranges\"> & Pick<{ ranges?: string | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"ranges\">, ", - "AggExpressionType", - ", ", + ".RANGE>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\"> & Pick<{ ranges?: ", { "pluginId": "expressions", "scope": "common", "docId": "kibExpressionsPluginApi", - "section": "def-common.ExecutionContext", - "text": "ExecutionContext" + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" }, - "<", + "<\"numerical_range\", ", { - "pluginId": "inspector", + "pluginId": "data", "scope": "common", - "docId": "kibInspectorPluginApi", - "section": "def-common.Adapters", - "text": "Adapters" + "docId": "kibDataSearchPluginApi", + "section": "def-common.NumericalRange", + "text": "NumericalRange" }, - ", ", - "SerializableState", - ">>" - ], - "source": { - "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 202 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.AggFunctionsMapping.aggGeoTile", - "type": "Object", - "tags": [], - "label": "aggGeoTile", - "description": [], - "signature": [ + ">[] | undefined; }, \"ranges\"> & Pick<{ ranges?: ", { "pluginId": "expressions", "scope": "common", "docId": "kibExpressionsPluginApi", - "section": "def-common.ExpressionFunctionDefinition", - "text": "ExpressionFunctionDefinition" + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" }, - "<\"aggGeoTile\", any, ", - "AggExpressionFunctionArgs", - "<", + "<\"numerical_range\", ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.BUCKET_TYPES", - "text": "BUCKET_TYPES" + "section": "def-common.NumericalRange", + "text": "NumericalRange" }, - ".GEOTILE_GRID>, ", + ">[] | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"ranges\">, ", "AggExpressionType", ", ", { @@ -16579,16 +17231,16 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 203 + "lineNumber": 201 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.AggFunctionsMapping.aggGeoHash", + "id": "def-common.AggFunctionsMapping.aggGeoTile", "type": "Object", "tags": [], - "label": "aggGeoHash", + "label": "aggGeoTile", "description": [], "signature": [ { @@ -16598,7 +17250,7 @@ "section": "def-common.ExpressionFunctionDefinition", "text": "ExpressionFunctionDefinition" }, - "<\"aggGeoHash\", any, Pick, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"autoPrecision\" | \"precision\" | \"useGeocentroid\" | \"isFilteredByCollar\"> & Pick<{ boundingBox?: string | undefined; }, \"boundingBox\"> & Pick<{ boundingBox?: string | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"autoPrecision\" | \"precision\" | \"useGeocentroid\" | \"isFilteredByCollar\" | \"boundingBox\">, ", + ".GEOTILE_GRID>, ", "AggExpressionType", ", ", { @@ -16632,16 +17284,16 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 204 + "lineNumber": 202 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.AggFunctionsMapping.aggHistogram", + "id": "def-common.AggFunctionsMapping.aggGeoHash", "type": "Object", "tags": [], - "label": "aggHistogram", + "label": "aggGeoHash", "description": [], "signature": [ { @@ -16651,7 +17303,7 @@ "section": "def-common.ExpressionFunctionDefinition", "text": "ExpressionFunctionDefinition" }, - "<\"aggHistogram\", any, Pick, \"enabled\" | \"interval\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"used_interval\" | \"maxBars\" | \"intervalBase\" | \"min_doc_count\" | \"has_extended_bounds\"> & Pick<{ extended_bounds?: string | undefined; }, \"extended_bounds\"> & Pick<{ extended_bounds?: string | undefined; }, never>, \"enabled\" | \"interval\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"used_interval\" | \"maxBars\" | \"intervalBase\" | \"min_doc_count\" | \"has_extended_bounds\" | \"extended_bounds\">, ", + ".GEOHASH_GRID>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"autoPrecision\" | \"precision\" | \"useGeocentroid\" | \"isFilteredByCollar\"> & Pick<{ boundingBox?: ({ type: \"geo_bounding_box\"; } & GeoBox) | ({ type: \"geo_bounding_box\"; } & { top_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & { top_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & WellKnownText) | undefined; }, \"boundingBox\"> & Pick<{ boundingBox?: ({ type: \"geo_bounding_box\"; } & GeoBox) | ({ type: \"geo_bounding_box\"; } & { top_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & { top_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & WellKnownText) | undefined; }, never>, \"enabled\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"autoPrecision\" | \"precision\" | \"useGeocentroid\" | \"isFilteredByCollar\" | \"boundingBox\">, ", "AggExpressionType", ", ", { @@ -16685,7 +17401,92 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 205 + "lineNumber": 203 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.AggFunctionsMapping.aggHistogram", + "type": "Object", + "tags": [], + "label": "aggHistogram", + "description": [], + "signature": [ + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionFunctionDefinition", + "text": "ExpressionFunctionDefinition" + }, + "<\"aggHistogram\", any, Pick, \"enabled\" | \"interval\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"used_interval\" | \"maxBars\" | \"intervalBase\" | \"min_doc_count\" | \"has_extended_bounds\"> & Pick<{ extended_bounds?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"extended_bounds\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + }, + "> | undefined; }, \"extended_bounds\"> & Pick<{ extended_bounds?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"extended_bounds\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + }, + "> | undefined; }, never>, \"enabled\" | \"interval\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"used_interval\" | \"maxBars\" | \"intervalBase\" | \"min_doc_count\" | \"has_extended_bounds\" | \"extended_bounds\">, ", + "AggExpressionType", + ", ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExecutionContext", + "text": "ExecutionContext" + }, + "<", + { + "pluginId": "inspector", + "scope": "common", + "docId": "kibInspectorPluginApi", + "section": "def-common.Adapters", + "text": "Adapters" + }, + ", ", + "SerializableState", + ">>" + ], + "source": { + "path": "src/plugins/data/common/search/aggs/types.ts", + "lineNumber": 204 }, "deprecated": false }, @@ -16714,7 +17515,71 @@ "section": "def-common.BUCKET_TYPES", "text": "BUCKET_TYPES" }, - ".DATE_HISTOGRAM>, \"enabled\" | \"interval\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"time_zone\" | \"used_interval\" | \"min_doc_count\" | \"useNormalizedEsInterval\" | \"scaleMetricValues\" | \"used_time_zone\" | \"drop_partials\" | \"format\"> & Pick<{ timeRange?: string | undefined; extended_bounds?: string | undefined; }, \"timeRange\" | \"extended_bounds\"> & Pick<{ timeRange?: string | undefined; extended_bounds?: string | undefined; }, never>, \"enabled\" | \"interval\" | \"timeRange\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"time_zone\" | \"used_interval\" | \"min_doc_count\" | \"extended_bounds\" | \"useNormalizedEsInterval\" | \"scaleMetricValues\" | \"used_time_zone\" | \"drop_partials\" | \"format\">, ", + ".DATE_HISTOGRAM>, \"enabled\" | \"interval\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"time_zone\" | \"used_interval\" | \"min_doc_count\" | \"useNormalizedEsInterval\" | \"scaleMetricValues\" | \"used_time_zone\" | \"drop_partials\" | \"format\"> & Pick<{ timeRange?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"timerange\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataQueryPluginApi", + "section": "def-common.TimeRange", + "text": "TimeRange" + }, + "> | undefined; extended_bounds?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"extended_bounds\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + }, + "> | undefined; }, \"timeRange\" | \"extended_bounds\"> & Pick<{ timeRange?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"timerange\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataQueryPluginApi", + "section": "def-common.TimeRange", + "text": "TimeRange" + }, + "> | undefined; extended_bounds?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"extended_bounds\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + }, + "> | undefined; }, never>, \"enabled\" | \"interval\" | \"timeRange\" | \"id\" | \"customLabel\" | \"schema\" | \"json\" | \"timeShift\" | \"field\" | \"time_zone\" | \"used_interval\" | \"min_doc_count\" | \"extended_bounds\" | \"useNormalizedEsInterval\" | \"scaleMetricValues\" | \"used_time_zone\" | \"drop_partials\" | \"format\">, ", "AggExpressionType", ", ", { @@ -16738,7 +17603,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 206 + "lineNumber": 205 }, "deprecated": false }, @@ -16795,7 +17660,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 207 + "lineNumber": 206 }, "deprecated": false }, @@ -16848,7 +17713,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 208 + "lineNumber": 207 }, "deprecated": false }, @@ -16909,7 +17774,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 209 + "lineNumber": 208 }, "deprecated": false }, @@ -16970,7 +17835,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 210 + "lineNumber": 209 }, "deprecated": false }, @@ -17031,7 +17896,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 211 + "lineNumber": 210 }, "deprecated": false }, @@ -17092,7 +17957,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 212 + "lineNumber": 211 }, "deprecated": false }, @@ -17153,7 +18018,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 213 + "lineNumber": 212 }, "deprecated": false }, @@ -17206,7 +18071,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 214 + "lineNumber": 213 }, "deprecated": false }, @@ -17259,7 +18124,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 215 + "lineNumber": 214 }, "deprecated": false }, @@ -17316,7 +18181,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 216 + "lineNumber": 215 }, "deprecated": false }, @@ -17373,7 +18238,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 217 + "lineNumber": 216 }, "deprecated": false }, @@ -17426,7 +18291,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 218 + "lineNumber": 217 }, "deprecated": false }, @@ -17479,7 +18344,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 219 + "lineNumber": 218 }, "deprecated": false }, @@ -17532,7 +18397,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 220 + "lineNumber": 219 }, "deprecated": false }, @@ -17585,7 +18450,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 221 + "lineNumber": 220 }, "deprecated": false }, @@ -17638,7 +18503,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 222 + "lineNumber": 221 }, "deprecated": false }, @@ -17691,7 +18556,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 223 + "lineNumber": 222 }, "deprecated": false }, @@ -17748,7 +18613,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 224 + "lineNumber": 223 }, "deprecated": false }, @@ -17801,7 +18666,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 225 + "lineNumber": 224 }, "deprecated": false }, @@ -17854,7 +18719,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 226 + "lineNumber": 225 }, "deprecated": false }, @@ -17911,7 +18776,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 227 + "lineNumber": 226 }, "deprecated": false }, @@ -17964,7 +18829,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 228 + "lineNumber": 227 }, "deprecated": false }, @@ -18017,7 +18882,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 229 + "lineNumber": 228 }, "deprecated": false }, @@ -18070,7 +18935,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 230 + "lineNumber": 229 }, "deprecated": false } @@ -18801,7 +19666,13 @@ "label": "extended_bounds", "description": [], "signature": [ - "ExtendedBounds", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + }, " | undefined" ], "source": { @@ -18865,8 +19736,8 @@ "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.DateRangeKey", - "text": "DateRangeKey" + "section": "def-common.DateRange", + "text": "DateRange" }, "[] | undefined" ], @@ -18992,7 +19863,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/filter.ts", - "lineNumber": 23 + "lineNumber": 24 }, "deprecated": false, "children": [ @@ -19004,21 +19875,76 @@ "label": "geo_bounding_box", "description": [], "signature": [ - "Partial<{ top_left: GeoPoint; top_right: GeoPoint; bottom_right: GeoPoint; bottom_left: GeoPoint; }> | { wkt: string; } | GeoBox | undefined" + "GeoBox | { top_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; } | { top_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; } | WellKnownText | undefined" ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/filter.ts", - "lineNumber": 24 + "lineNumber": 25 }, "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "data", - "id": "def-common.AggParamsFilteredMetric", - "type": "Interface", + }, + { + "parentPluginId": "data", + "id": "def-common.AggParamsFilter.filter", + "type": "Object", + "tags": [], + "label": "filter", + "description": [], + "signature": [ + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.QueryFilter", + "text": "QueryFilter" + }, + " | undefined" + ], + "source": { + "path": "src/plugins/data/common/search/aggs/buckets/filter.ts", + "lineNumber": 26 + }, + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.AggParamsFilteredMetric", + "type": "Interface", "tags": [], "label": "AggParamsFilteredMetric", "description": [], @@ -19099,7 +20025,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/filters.ts", - "lineNumber": 37 + "lineNumber": 38 }, "deprecated": false, "children": [ @@ -19111,13 +20037,18 @@ "label": "filters", "description": [], "signature": [ - "{ input: ", - "Query", - "; label: string; }[] | undefined" + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.QueryFilter", + "text": "QueryFilter" + }, + "[] | undefined" ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/filters.ts", - "lineNumber": 38 + "lineNumber": 39 }, "deprecated": false } @@ -19224,7 +20155,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/geo_hash.ts", - "lineNumber": 28 + "lineNumber": 29 }, "deprecated": false, "children": [ @@ -19237,7 +20168,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/aggs/buckets/geo_hash.ts", - "lineNumber": 29 + "lineNumber": 30 }, "deprecated": false }, @@ -19253,7 +20184,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/geo_hash.ts", - "lineNumber": 30 + "lineNumber": 31 }, "deprecated": false }, @@ -19269,7 +20200,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/geo_hash.ts", - "lineNumber": 31 + "lineNumber": 32 }, "deprecated": false }, @@ -19285,7 +20216,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/geo_hash.ts", - "lineNumber": 32 + "lineNumber": 33 }, "deprecated": false }, @@ -19301,7 +20232,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/geo_hash.ts", - "lineNumber": 33 + "lineNumber": 34 }, "deprecated": false }, @@ -19313,11 +20244,43 @@ "label": "boundingBox", "description": [], "signature": [ - "Partial<{ top_left: GeoPoint; top_right: GeoPoint; bottom_right: GeoPoint; bottom_left: GeoPoint; }> | { wkt: string; } | GeoBox | undefined" + "GeoBox | { top_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; } | { top_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; } | WellKnownText | undefined" ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/geo_hash.ts", - "lineNumber": 34 + "lineNumber": 35 }, "deprecated": false } @@ -19416,7 +20379,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 40 + "lineNumber": 41 }, "deprecated": false, "children": [ @@ -19429,7 +20392,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 41 + "lineNumber": 42 }, "deprecated": false }, @@ -19445,7 +20408,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 42 + "lineNumber": 43 }, "deprecated": false }, @@ -19461,7 +20424,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 43 + "lineNumber": 44 }, "deprecated": false }, @@ -19477,7 +20440,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 44 + "lineNumber": 45 }, "deprecated": false }, @@ -19493,7 +20456,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 45 + "lineNumber": 46 }, "deprecated": false }, @@ -19509,7 +20472,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 46 + "lineNumber": 47 }, "deprecated": false }, @@ -19525,7 +20488,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 47 + "lineNumber": 48 }, "deprecated": false }, @@ -19537,12 +20500,18 @@ "label": "extended_bounds", "description": [], "signature": [ - "ExtendedBounds", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + }, " | undefined" ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 48 + "lineNumber": 49 }, "deprecated": false } @@ -19569,7 +20538,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/ip_range.ts", - "lineNumber": 29 + "lineNumber": 30 }, "deprecated": false, "children": [ @@ -19582,7 +20551,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/aggs/buckets/ip_range.ts", - "lineNumber": 30 + "lineNumber": 31 }, "deprecated": false }, @@ -19605,7 +20574,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/ip_range.ts", - "lineNumber": 31 + "lineNumber": 32 }, "deprecated": false }, @@ -19637,7 +20606,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/ip_range.ts", - "lineNumber": 32 + "lineNumber": 33 }, "deprecated": false } @@ -20005,7 +20974,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/range.ts", - "lineNumber": 29 + "lineNumber": 30 }, "deprecated": false, "children": [ @@ -20018,7 +20987,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/aggs/buckets/range.ts", - "lineNumber": 30 + "lineNumber": 31 }, "deprecated": false }, @@ -20030,11 +20999,18 @@ "label": "ranges", "description": [], "signature": [ - "{ from: number; to: number; label?: string | undefined; }[] | undefined" + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.NumericalRange", + "text": "NumericalRange" + }, + "[] | undefined" ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/range.ts", - "lineNumber": 31 + "lineNumber": 32 }, "deprecated": false } @@ -21028,7 +22004,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 25 + "lineNumber": 26 }, "deprecated": false, "children": [ @@ -21041,7 +22017,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 26 + "lineNumber": 27 }, "deprecated": false }, @@ -21054,7 +22030,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 27 + "lineNumber": 28 }, "deprecated": false } @@ -21116,21 +22092,9 @@ "label": "filterFieldTypes", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", " | \"*\" | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", "[] | undefined" ], "source": { @@ -21142,6 +22106,35 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.Cidr", + "type": "Interface", + "tags": [], + "label": "Cidr", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/cidr.ts", + "lineNumber": 12 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.Cidr.mask", + "type": "string", + "tags": [], + "label": "mask", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/cidr.ts", + "lineNumber": 13 + }, + "deprecated": false + } + ], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.CidrMaskIpRangeAggKey", @@ -21303,6 +22296,54 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.DateRange", + "type": "Interface", + "tags": [], + "label": "DateRange", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range.ts", + "lineNumber": 12 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.DateRange.from", + "type": "CompoundType", + "tags": [], + "label": "from", + "description": [], + "signature": [ + "string | number" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range.ts", + "lineNumber": 13 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.DateRange.to", + "type": "CompoundType", + "tags": [], + "label": "to", + "description": [], + "signature": [ + "string | number" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range.ts", + "lineNumber": 14 + }, + "deprecated": false + } + ], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.DateRangeBucketAggDependencies", @@ -21369,54 +22410,6 @@ ], "initialIsOpen": false }, - { - "parentPluginId": "data", - "id": "def-common.DateRangeKey", - "type": "Interface", - "tags": [], - "label": "DateRangeKey", - "description": [], - "source": { - "path": "src/plugins/data/common/search/aggs/buckets/lib/date_range.ts", - "lineNumber": 9 - }, - "deprecated": false, - "children": [ - { - "parentPluginId": "data", - "id": "def-common.DateRangeKey.from", - "type": "CompoundType", - "tags": [], - "label": "from", - "description": [], - "signature": [ - "string | number" - ], - "source": { - "path": "src/plugins/data/common/search/aggs/buckets/lib/date_range.ts", - "lineNumber": 10 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.DateRangeKey.to", - "type": "CompoundType", - "tags": [], - "label": "to", - "description": [], - "signature": [ - "string | number" - ], - "source": { - "path": "src/plugins/data/common/search/aggs/buckets/lib/date_range.ts", - "lineNumber": 11 - }, - "deprecated": false - } - ], - "initialIsOpen": false - }, { "parentPluginId": "data", "id": "def-common.EqlSearchStrategyRequest", @@ -21537,33 +22530,81 @@ }, { "parentPluginId": "data", - "id": "def-common.FetchHandlers", + "id": "def-common.ExtendedBounds", "type": "Interface", "tags": [], - "label": "FetchHandlers", + "label": "ExtendedBounds", "description": [], "source": { - "path": "src/plugins/data/common/search/search_source/fetch/types.ts", - "lineNumber": 21 + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 13 }, "deprecated": false, "children": [ { "parentPluginId": "data", - "id": "def-common.FetchHandlers.getConfig", - "type": "Function", + "id": "def-common.ExtendedBounds.min", + "type": "number", "tags": [], - "label": "getConfig", + "label": "min", "description": [], "signature": [ - "(key: string, defaultOverride?: T | undefined) => T" + "number | undefined" ], "source": { - "path": "src/plugins/data/common/search/search_source/fetch/types.ts", - "lineNumber": 22 + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 14 }, - "deprecated": false, - "returnComment": [], + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.ExtendedBounds.max", + "type": "number", + "tags": [], + "label": "max", + "description": [], + "signature": [ + "number | undefined" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 15 + }, + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.FetchHandlers", + "type": "Interface", + "tags": [], + "label": "FetchHandlers", + "description": [], + "source": { + "path": "src/plugins/data/common/search/search_source/fetch/types.ts", + "lineNumber": 21 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.FetchHandlers.getConfig", + "type": "Function", + "tags": [], + "label": "getConfig", + "description": [], + "signature": [ + "(key: string, defaultOverride?: T | undefined) => T" + ], + "source": { + "path": "src/plugins/data/common/search/search_source/fetch/types.ts", + "lineNumber": 22 + }, + "deprecated": false, + "returnComment": [], "children": [ { "parentPluginId": "data", @@ -21684,7 +22725,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/aggs/buckets/filters.ts", - "lineNumber": 33 + "lineNumber": 34 }, "deprecated": false, "children": [ @@ -21700,7 +22741,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/filters.ts", - "lineNumber": 34 + "lineNumber": 35 }, "deprecated": false, "returnComment": [], @@ -21714,7 +22755,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/aggs/buckets/filters.ts", - "lineNumber": 34 + "lineNumber": 35 }, "deprecated": false } @@ -21732,7 +22773,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 30 + "lineNumber": 31 }, "deprecated": false, "children": [ @@ -21748,7 +22789,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 31 + "lineNumber": 32 }, "deprecated": false, "returnComment": [], @@ -21762,7 +22803,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 31 + "lineNumber": 32 }, "deprecated": false } @@ -21784,11 +22825,11 @@ "section": "def-common.FieldFormatsRegistry", "text": "FieldFormatsRegistry" }, - ", \"init\" | \"register\" | \"deserialize\" | \"getDefaultConfig\" | \"getType\" | \"getTypeWithoutMetaParams\" | \"getDefaultType\" | \"getTypeNameByEsTypes\" | \"getDefaultTypeName\" | \"getInstance\" | \"getDefaultInstancePlain\" | \"getDefaultInstanceCacheResolver\" | \"getByFieldType\" | \"getDefaultInstance\" | \"parseDefaultTypeMap\">, \"deserialize\" | \"getDefaultInstance\">" + ", \"deserialize\" | \"getDefaultConfig\" | \"getType\" | \"getTypeWithoutMetaParams\" | \"getDefaultType\" | \"getTypeNameByEsTypes\" | \"getDefaultTypeName\" | \"getInstance\" | \"getDefaultInstancePlain\" | \"getDefaultInstanceCacheResolver\" | \"getByFieldType\" | \"getDefaultInstance\" | \"parseDefaultTypeMap\" | \"has\">, \"deserialize\" | \"getDefaultInstance\">" ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 32 + "lineNumber": 33 }, "deprecated": false, "returnComment": [], @@ -21987,7 +23028,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 35 + "lineNumber": 36 }, "deprecated": false, "children": [ @@ -22011,7 +23052,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 36 + "lineNumber": 37 }, "deprecated": false, "returnComment": [], @@ -22034,7 +23075,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 36 + "lineNumber": 37 }, "deprecated": false } @@ -22059,7 +23100,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram.ts", - "lineNumber": 37 + "lineNumber": 38 }, "deprecated": false, "returnComment": [], @@ -22486,6 +23527,48 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.IpRange", + "type": "Interface", + "tags": [], + "label": "IpRange", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/ip_range.ts", + "lineNumber": 12 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.IpRange.from", + "type": "string", + "tags": [], + "label": "from", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/ip_range.ts", + "lineNumber": 13 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.IpRange.to", + "type": "string", + "tags": [], + "label": "to", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/ip_range.ts", + "lineNumber": 14 + }, + "deprecated": false + } + ], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.ISearchClient", @@ -22947,7 +24030,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 26 + "lineNumber": 25 }, "deprecated": false, "children": [ @@ -22981,7 +24064,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 31 + "lineNumber": 30 }, "deprecated": false, "returnComment": [], @@ -23005,7 +24088,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 31 + "lineNumber": 30 }, "deprecated": false } @@ -23033,7 +24116,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 35 + "lineNumber": 34 }, "deprecated": false, "returnComment": [], @@ -23174,21 +24257,9 @@ "label": "filterFieldTypes", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", " | \"*\" | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", "[] | undefined" ], "source": { @@ -23283,6 +24354,70 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.NumericalRange", + "type": "Interface", + "tags": [], + "label": "NumericalRange", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 13 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.NumericalRange.from", + "type": "number", + "tags": [], + "label": "from", + "description": [], + "signature": [ + "number | undefined" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 14 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.NumericalRange.to", + "type": "number", + "tags": [], + "label": "to", + "description": [], + "signature": [ + "number | undefined" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 15 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.NumericalRange.label", + "type": "string", + "tags": [], + "label": "label", + "description": [], + "signature": [ + "string | undefined" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 16 + }, + "deprecated": false + } + ], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.OptionedValueProp", @@ -23419,7 +24554,7 @@ "section": "def-common.FieldFormatsRegistry", "text": "FieldFormatsRegistry" }, - ", \"init\" | \"register\" | \"deserialize\" | \"getDefaultConfig\" | \"getType\" | \"getTypeWithoutMetaParams\" | \"getDefaultType\" | \"getTypeNameByEsTypes\" | \"getDefaultTypeName\" | \"getInstance\" | \"getDefaultInstancePlain\" | \"getDefaultInstanceCacheResolver\" | \"getByFieldType\" | \"getDefaultInstance\" | \"parseDefaultTypeMap\">, \"deserialize\" | \"getDefaultInstance\">" + ", \"deserialize\" | \"getDefaultConfig\" | \"getType\" | \"getTypeWithoutMetaParams\" | \"getDefaultType\" | \"getTypeNameByEsTypes\" | \"getDefaultTypeName\" | \"getInstance\" | \"getDefaultInstancePlain\" | \"getDefaultInstanceCacheResolver\" | \"getByFieldType\" | \"getDefaultInstance\" | \"parseDefaultTypeMap\" | \"has\">, \"deserialize\" | \"getDefaultInstance\">" ], "source": { "path": "src/plugins/data/common/search/aggs/metrics/percentile_ranks.ts", @@ -23432,6 +24567,54 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.QueryFilter", + "type": "Interface", + "tags": [], + "label": "QueryFilter", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 15 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.QueryFilter.input", + "type": "Any", + "tags": [], + "label": "input", + "description": [], + "signature": [ + "any" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 16 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.QueryFilter.label", + "type": "string", + "tags": [], + "label": "label", + "description": [], + "signature": [ + "string | undefined" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 17 + }, + "deprecated": false + } + ], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.RangeBucketAggDependencies", @@ -23441,7 +24624,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/aggs/buckets/range.ts", - "lineNumber": 25 + "lineNumber": 26 }, "deprecated": false, "children": [ @@ -23461,11 +24644,11 @@ "section": "def-common.FieldFormatsRegistry", "text": "FieldFormatsRegistry" }, - ", \"init\" | \"register\" | \"deserialize\" | \"getDefaultConfig\" | \"getType\" | \"getTypeWithoutMetaParams\" | \"getDefaultType\" | \"getTypeNameByEsTypes\" | \"getDefaultTypeName\" | \"getInstance\" | \"getDefaultInstancePlain\" | \"getDefaultInstanceCacheResolver\" | \"getByFieldType\" | \"getDefaultInstance\" | \"parseDefaultTypeMap\">, \"deserialize\" | \"getDefaultInstance\">" + ", \"deserialize\" | \"getDefaultConfig\" | \"getType\" | \"getTypeWithoutMetaParams\" | \"getDefaultType\" | \"getTypeNameByEsTypes\" | \"getDefaultTypeName\" | \"getInstance\" | \"getDefaultInstancePlain\" | \"getDefaultInstanceCacheResolver\" | \"getByFieldType\" | \"getDefaultInstance\" | \"parseDefaultTypeMap\" | \"has\">, \"deserialize\" | \"getDefaultInstance\">" ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/range.ts", - "lineNumber": 26 + "lineNumber": 27 }, "deprecated": false, "returnComment": [], @@ -23541,7 +24724,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 131 + "lineNumber": 130 }, "deprecated": false, "children": [ @@ -23557,7 +24740,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 132 + "lineNumber": 131 }, "deprecated": false }, @@ -23573,7 +24756,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 133 + "lineNumber": 132 }, "deprecated": false }, @@ -23589,7 +24772,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 134 + "lineNumber": 133 }, "deprecated": false }, @@ -23605,7 +24788,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 135 + "lineNumber": 134 }, "deprecated": false }, @@ -23621,7 +24804,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 136 + "lineNumber": 135 }, "deprecated": false }, @@ -23637,7 +24820,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 137 + "lineNumber": 136 }, "deprecated": false } @@ -23653,7 +24836,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 140 + "lineNumber": 139 }, "deprecated": false, "children": [ @@ -23677,7 +24860,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 141 + "lineNumber": 140 }, "deprecated": false } @@ -24409,7 +25592,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 70 + "lineNumber": 69 }, "deprecated": false, "children": [ @@ -24425,51 +25608,43 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 71 + "lineNumber": 70 }, "deprecated": false }, { "parentPluginId": "data", "id": "def-common.SearchSourceFields.query", - "type": "Object", + "type": "Any", "tags": [], "label": "query", "description": [ "\n{@link Query}" ], "signature": [ - "Query", - " | undefined" + "any" ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 75 + "lineNumber": 74 }, "deprecated": false }, { "parentPluginId": "data", "id": "def-common.SearchSourceFields.filter", - "type": "CompoundType", + "type": "Any", "tags": [], "label": "filter", "description": [ "\n{@link Filter}" ], "signature": [ - "Filter", - " | ", - "Filter", - "[] | (() => ", - "Filter", - " | ", - "Filter", - "[] | undefined) | undefined" + "any" ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 79 + "lineNumber": 78 }, "deprecated": false }, @@ -24535,7 +25710,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 83 + "lineNumber": 82 }, "deprecated": false }, @@ -24551,7 +25726,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 84 + "lineNumber": 83 }, "deprecated": false }, @@ -24567,7 +25742,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 85 + "lineNumber": 84 }, "deprecated": false }, @@ -24583,7 +25758,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 86 + "lineNumber": 85 }, "deprecated": false }, @@ -24609,7 +25784,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 90 + "lineNumber": 89 }, "deprecated": false }, @@ -24625,7 +25800,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 91 + "lineNumber": 90 }, "deprecated": false }, @@ -24641,7 +25816,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 92 + "lineNumber": 91 }, "deprecated": false }, @@ -24657,7 +25832,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 93 + "lineNumber": 92 }, "deprecated": false }, @@ -24673,7 +25848,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 94 + "lineNumber": 93 }, "deprecated": false }, @@ -24698,7 +25873,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 98 + "lineNumber": 97 }, "deprecated": false }, @@ -24714,11 +25889,11 @@ "\nRetreive fields directly from _source (legacy behavior)\n" ], "signature": [ - "string | boolean | string[] | undefined" + "string | string[] | undefined" ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 104 + "lineNumber": 103 }, "deprecated": true, "references": [ @@ -24759,7 +25934,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 108 + "lineNumber": 107 }, "deprecated": false }, @@ -24782,7 +25957,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 109 + "lineNumber": 108 }, "deprecated": false }, @@ -24798,7 +25973,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 110 + "lineNumber": 109 }, "deprecated": false }, @@ -24814,7 +25989,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 111 + "lineNumber": 110 }, "deprecated": false }, @@ -24837,7 +26012,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 113 + "lineNumber": 112 }, "deprecated": false } @@ -24853,7 +26028,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 116 + "lineNumber": 115 }, "deprecated": false, "children": [ @@ -24869,7 +26044,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 117 + "lineNumber": 116 }, "deprecated": false } @@ -24885,7 +26060,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 150 + "lineNumber": 149 }, "deprecated": false, "children": [ @@ -24898,7 +26073,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 151 + "lineNumber": 150 }, "deprecated": false }, @@ -24911,7 +26086,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 152 + "lineNumber": 151 }, "deprecated": false }, @@ -24927,7 +26102,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 153 + "lineNumber": 152 }, "deprecated": false }, @@ -24940,7 +26115,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 164 + "lineNumber": 163 }, "deprecated": false } @@ -24956,7 +26131,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 45 + "lineNumber": 44 }, "deprecated": false, "children": [ @@ -24978,7 +26153,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 46 + "lineNumber": 45 }, "deprecated": false }, @@ -24994,7 +26169,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 47 + "lineNumber": 46 }, "deprecated": false } @@ -25010,7 +26185,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 50 + "lineNumber": 49 }, "deprecated": false, "children": [ @@ -25032,7 +26207,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 51 + "lineNumber": 50 }, "deprecated": false }, @@ -25048,7 +26223,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 52 + "lineNumber": 51 }, "deprecated": false } @@ -25064,7 +26239,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 120 + "lineNumber": 119 }, "deprecated": false, "children": [ @@ -25080,7 +26255,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 121 + "lineNumber": 120 }, "deprecated": false }, @@ -25096,7 +26271,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 122 + "lineNumber": 121 }, "deprecated": false }, @@ -25112,7 +26287,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 123 + "lineNumber": 122 }, "deprecated": false }, @@ -25128,7 +26303,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 124 + "lineNumber": 123 }, "deprecated": false }, @@ -25144,7 +26319,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 125 + "lineNumber": 124 }, "deprecated": false }, @@ -25160,7 +26335,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 126 + "lineNumber": 125 }, "deprecated": false }, @@ -25176,7 +26351,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 127 + "lineNumber": 126 }, "deprecated": false }, @@ -25192,7 +26367,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 128 + "lineNumber": 127 }, "deprecated": false } @@ -25224,7 +26399,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/aggs/buckets/ip_range.ts", - "lineNumber": 24 + "lineNumber": 25 }, "deprecated": false, "initialIsOpen": false @@ -25266,7 +26441,7 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 40 + "lineNumber": 39 }, "deprecated": false, "initialIsOpen": false @@ -25448,7 +26623,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/date_histogram_fn.ts", - "lineNumber": 15 + "lineNumber": 16 }, "deprecated": false, "initialIsOpen": false @@ -25465,7 +26640,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/date_range_fn.ts", - "lineNumber": 15 + "lineNumber": 16 }, "deprecated": false, "initialIsOpen": false @@ -25516,7 +26691,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/filter_fn.ts", - "lineNumber": 15 + "lineNumber": 17 }, "deprecated": false, "initialIsOpen": false @@ -25533,7 +26708,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/filters_fn.ts", - "lineNumber": 15 + "lineNumber": 17 }, "deprecated": false, "initialIsOpen": false @@ -25584,7 +26759,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/geo_hash_fn.ts", - "lineNumber": 15 + "lineNumber": 17 }, "deprecated": false, "initialIsOpen": false @@ -25635,7 +26810,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/histogram_fn.ts", - "lineNumber": 15 + "lineNumber": 16 }, "deprecated": false, "initialIsOpen": false @@ -25652,7 +26827,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/ip_range_fn.ts", - "lineNumber": 15 + "lineNumber": 16 }, "deprecated": false, "initialIsOpen": false @@ -25803,7 +26978,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/buckets/range_fn.ts", - "lineNumber": 15 + "lineNumber": 16 }, "deprecated": false, "initialIsOpen": false @@ -25957,7 +27132,7 @@ ], "source": { "path": "src/plugins/data/common/search/aggs/types.ts", - "lineNumber": 129 + "lineNumber": 128 }, "deprecated": false, "initialIsOpen": false @@ -26101,6 +27276,30 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.CidrOutput", + "type": "Type", + "tags": [], + "label": "CidrOutput", + "description": [], + "signature": [ + "{ type: \"cidr\"; } & ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.Cidr", + "text": "Cidr" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/cidr.ts", + "lineNumber": 16 + }, + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.CreateAggConfigParams", @@ -26128,6 +27327,30 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.DateRangeOutput", + "type": "Type", + "tags": [], + "label": "DateRangeOutput", + "description": [], + "signature": [ + "{ type: \"date_range\"; } & ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.DateRange", + "text": "DateRange" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range.ts", + "lineNumber": 17 + }, + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.ENHANCED_ES_SEARCH_STRATEGY", @@ -26319,7 +27542,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 38 + "lineNumber": 37 }, "deprecated": false, "initialIsOpen": false @@ -26360,7 +27583,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 55 + "lineNumber": 54 }, "deprecated": false, "initialIsOpen": false @@ -26413,13 +27636,7 @@ "label": "ExecutionContextSearch", "description": [], "signature": [ - "{ filters?: ", - "Filter", - "[] | undefined; query?: ", - "Query", - " | ", - "Query", - "[] | undefined; timeRange?: ", + "{ filters?: any[] | undefined; query?: any; timeRange?: ", { "pluginId": "data", "scope": "common", @@ -26438,10 +27655,10 @@ }, { "parentPluginId": "data", - "id": "def-common.ExpressionFunctionExistsFilter", + "id": "def-common.ExpressionFunctionCidr", "type": "Type", "tags": [], - "label": "ExpressionFunctionExistsFilter", + "label": "ExpressionFunctionCidr", "description": [], "signature": [ { @@ -26451,7 +27668,15 @@ "section": "def-common.ExpressionFunctionDefinition", "text": "ExpressionFunctionDefinition" }, - "<\"existsFilter\", null, Arguments, ", + "<\"cidr\", null, ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.Cidr", + "text": "Cidr" + }, + ", ", { "pluginId": "expressions", "scope": "common", @@ -26459,8 +27684,14 @@ "section": "def-common.ExpressionValueBoxed", "text": "ExpressionValueBoxed" }, - "<\"kibana_filter\", ", - "Filter", + "<\"cidr\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.Cidr", + "text": "Cidr" + }, ">, ", { "pluginId": "expressions", @@ -26482,18 +27713,18 @@ ">>" ], "source": { - "path": "src/plugins/data/common/search/expressions/exists_filter.ts", - "lineNumber": 20 + "path": "src/plugins/data/common/search/expressions/cidr.ts", + "lineNumber": 18 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.ExpressionFunctionField", + "id": "def-common.ExpressionFunctionDateRange", "type": "Type", "tags": [], - "label": "ExpressionFunctionField", + "label": "ExpressionFunctionDateRange", "description": [], "signature": [ { @@ -26503,7 +27734,15 @@ "section": "def-common.ExpressionFunctionDefinition", "text": "ExpressionFunctionDefinition" }, - "<\"field\", null, Arguments, ", + "<\"dateRange\", null, ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.DateRange", + "text": "DateRange" + }, + ", ", { "pluginId": "expressions", "scope": "common", @@ -26511,13 +27750,13 @@ "section": "def-common.ExpressionValueBoxed", "text": "ExpressionValueBoxed" }, - "<\"kibana_field\", ", + "<\"date_range\", ", { "pluginId": "data", "scope": "common", - "docId": "kibDataIndexPatternsPluginApi", - "section": "def-common.IndexPatternField", - "text": "IndexPatternField" + "docId": "kibDataSearchPluginApi", + "section": "def-common.DateRange", + "text": "DateRange" }, ">, ", { @@ -26540,7 +27779,7 @@ ">>" ], "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", + "path": "src/plugins/data/common/search/expressions/date_range.ts", "lineNumber": 19 }, "deprecated": false, @@ -26548,10 +27787,10 @@ }, { "parentPluginId": "data", - "id": "def-common.ExpressionFunctionKibana", + "id": "def-common.ExpressionFunctionExistsFilter", "type": "Type", "tags": [], - "label": "ExpressionFunctionKibana", + "label": "ExpressionFunctionExistsFilter", "description": [], "signature": [ { @@ -26561,23 +27800,7 @@ "section": "def-common.ExpressionFunctionDefinition", "text": "ExpressionFunctionDefinition" }, - "<\"kibana\", Input, object, ", - { - "pluginId": "expressions", - "scope": "common", - "docId": "kibExpressionsPluginApi", - "section": "def-common.ExpressionValueBoxed", - "text": "ExpressionValueBoxed" - }, - "<\"kibana_context\", ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataSearchPluginApi", - "section": "def-common.ExecutionContextSearch", - "text": "ExecutionContextSearch" - }, - ">, ", + "<\"existsFilter\", null, Arguments, any, ", { "pluginId": "expressions", "scope": "common", @@ -26594,28 +27817,22 @@ "text": "Adapters" }, ", ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataSearchPluginApi", - "section": "def-common.ExecutionContextSearch", - "text": "ExecutionContextSearch" - }, + "SerializableState", ">>" ], "source": { - "path": "src/plugins/data/common/search/expressions/kibana.ts", - "lineNumber": 17 + "path": "src/plugins/data/common/search/expressions/exists_filter.ts", + "lineNumber": 20 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.ExpressionFunctionKibanaContext", + "id": "def-common.ExpressionFunctionExtendedBounds", "type": "Type", "tags": [], - "label": "ExpressionFunctionKibanaContext", + "label": "ExpressionFunctionExtendedBounds", "description": [], "signature": [ { @@ -26625,7 +27842,15 @@ "section": "def-common.ExpressionFunctionDefinition", "text": "ExpressionFunctionDefinition" }, - "<\"kibana_context\", Input, Arguments, Promise<", + "<\"extendedBounds\", null, ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + }, + ", ", { "pluginId": "expressions", "scope": "common", @@ -26633,15 +27858,15 @@ "section": "def-common.ExpressionValueBoxed", "text": "ExpressionValueBoxed" }, - "<\"kibana_context\", ", + "<\"extended_bounds\", ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.ExecutionContextSearch", - "text": "ExecutionContextSearch" + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" }, - ">>, ", + ">, ", { "pluginId": "expressions", "scope": "common", @@ -26658,28 +27883,22 @@ "text": "Adapters" }, ", ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataSearchPluginApi", - "section": "def-common.ExecutionContextSearch", - "text": "ExecutionContextSearch" - }, + "SerializableState", ">>" ], "source": { - "path": "src/plugins/data/common/search/expressions/kibana_context.ts", - "lineNumber": 34 + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 20 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.ExpressionFunctionKibanaFilter", + "id": "def-common.ExpressionFunctionField", "type": "Type", "tags": [], - "label": "ExpressionFunctionKibanaFilter", + "label": "ExpressionFunctionField", "description": [], "signature": [ { @@ -26689,7 +27908,7 @@ "section": "def-common.ExpressionFunctionDefinition", "text": "ExpressionFunctionDefinition" }, - "<\"kibanaFilter\", null, Arguments, ", + "<\"field\", null, Arguments, ", { "pluginId": "expressions", "scope": "common", @@ -26697,8 +27916,14 @@ "section": "def-common.ExpressionValueBoxed", "text": "ExpressionValueBoxed" }, - "<\"kibana_filter\", ", - "Filter", + "<\"kibana_field\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataIndexPatternsPluginApi", + "section": "def-common.IndexPatternField", + "text": "IndexPatternField" + }, ">, ", { "pluginId": "expressions", @@ -26720,7 +27945,7 @@ ">>" ], "source": { - "path": "src/plugins/data/common/search/expressions/kibana_filter.ts", + "path": "src/plugins/data/common/search/expressions/field.ts", "lineNumber": 19 }, "deprecated": false, @@ -26728,10 +27953,10 @@ }, { "parentPluginId": "data", - "id": "def-common.ExpressionFunctionKibanaTimerange", + "id": "def-common.ExpressionFunctionGeoBoundingBox", "type": "Type", "tags": [], - "label": "ExpressionFunctionKibanaTimerange", + "label": "ExpressionFunctionGeoBoundingBox", "description": [], "signature": [ { @@ -26741,15 +27966,7 @@ "section": "def-common.ExpressionFunctionDefinition", "text": "ExpressionFunctionDefinition" }, - "<\"timerange\", null, ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataQueryPluginApi", - "section": "def-common.TimeRange", - "text": "TimeRange" - }, - ", ", + "<\"geoBoundingBox\", null, GeoBoundingBoxArguments, ", { "pluginId": "expressions", "scope": "common", @@ -26757,13 +27974,13 @@ "section": "def-common.ExpressionValueBoxed", "text": "ExpressionValueBoxed" }, - "<\"timerange\", ", + "<\"geo_bounding_box\", ", { "pluginId": "data", "scope": "common", - "docId": "kibDataQueryPluginApi", - "section": "def-common.TimeRange", - "text": "TimeRange" + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoBoundingBox", + "text": "GeoBoundingBox" }, ">, ", { @@ -26786,18 +28003,18 @@ ">>" ], "source": { - "path": "src/plugins/data/common/search/expressions/timerange.ts", - "lineNumber": 15 + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 111 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.ExpressionFunctionKql", + "id": "def-common.ExpressionFunctionGeoPoint", "type": "Type", "tags": [], - "label": "ExpressionFunctionKql", + "label": "ExpressionFunctionGeoPoint", "description": [], "signature": [ { @@ -26807,7 +28024,7 @@ "section": "def-common.ExpressionFunctionDefinition", "text": "ExpressionFunctionDefinition" }, - "<\"kql\", null, Arguments, ", + "<\"geoPoint\", null, GeoPointArguments, ", { "pluginId": "expressions", "scope": "common", @@ -26815,9 +28032,15 @@ "section": "def-common.ExpressionValueBoxed", "text": "ExpressionValueBoxed" }, - "<\"kibana_query\", ", - "Query", - ">, ", + "<\"geo_point\", { value: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }>, ", { "pluginId": "expressions", "scope": "common", @@ -26838,18 +28061,18 @@ ">>" ], "source": { - "path": "src/plugins/data/common/search/expressions/kql.ts", - "lineNumber": 17 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 25 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.ExpressionFunctionLucene", + "id": "def-common.ExpressionFunctionIpRange", "type": "Type", "tags": [], - "label": "ExpressionFunctionLucene", + "label": "ExpressionFunctionIpRange", "description": [], "signature": [ { @@ -26859,7 +28082,15 @@ "section": "def-common.ExpressionFunctionDefinition", "text": "ExpressionFunctionDefinition" }, - "<\"lucene\", null, Arguments, ", + "<\"ipRange\", null, ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.IpRange", + "text": "IpRange" + }, + ", ", { "pluginId": "expressions", "scope": "common", @@ -26867,11 +28098,17 @@ "section": "def-common.ExpressionValueBoxed", "text": "ExpressionValueBoxed" }, - "<\"kibana_query\", ", - "Query", - ">, ", + "<\"ip_range\", ", { - "pluginId": "expressions", + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.IpRange", + "text": "IpRange" + }, + ">, ", + { + "pluginId": "expressions", "scope": "common", "docId": "kibExpressionsPluginApi", "section": "def-common.ExecutionContext", @@ -26890,18 +28127,18 @@ ">>" ], "source": { - "path": "src/plugins/data/common/search/expressions/lucene.ts", - "lineNumber": 17 + "path": "src/plugins/data/common/search/expressions/ip_range.ts", + "lineNumber": 19 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.ExpressionFunctionPhraseFilter", + "id": "def-common.ExpressionFunctionKibana", "type": "Type", "tags": [], - "label": "ExpressionFunctionPhraseFilter", + "label": "ExpressionFunctionKibana", "description": [], "signature": [ { @@ -26911,7 +28148,7 @@ "section": "def-common.ExpressionFunctionDefinition", "text": "ExpressionFunctionDefinition" }, - "<\"rangeFilter\", null, Arguments, ", + "<\"kibana\", Input, object, ", { "pluginId": "expressions", "scope": "common", @@ -26919,8 +28156,14 @@ "section": "def-common.ExpressionValueBoxed", "text": "ExpressionValueBoxed" }, - "<\"kibana_filter\", ", - "Filter", + "<\"kibana_context\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExecutionContextSearch", + "text": "ExecutionContextSearch" + }, ">, ", { "pluginId": "expressions", @@ -26938,22 +28181,28 @@ "text": "Adapters" }, ", ", - "SerializableState", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExecutionContextSearch", + "text": "ExecutionContextSearch" + }, ">>" ], "source": { - "path": "src/plugins/data/common/search/expressions/phrase_filter.ts", - "lineNumber": 21 + "path": "src/plugins/data/common/search/expressions/kibana.ts", + "lineNumber": 17 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.ExpressionFunctionRange", + "id": "def-common.ExpressionFunctionKibanaContext", "type": "Type", "tags": [], - "label": "ExpressionFunctionRange", + "label": "ExpressionFunctionKibanaContext", "description": [], "signature": [ { @@ -26963,7 +28212,7 @@ "section": "def-common.ExpressionFunctionDefinition", "text": "ExpressionFunctionDefinition" }, - "<\"range\", null, Arguments, ", + "<\"kibana_context\", Input, Arguments, Promise<", { "pluginId": "expressions", "scope": "common", @@ -26971,7 +28220,63 @@ "section": "def-common.ExpressionValueBoxed", "text": "ExpressionValueBoxed" }, - "<\"kibana_range\", Arguments>, ", + "<\"kibana_context\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExecutionContextSearch", + "text": "ExecutionContextSearch" + }, + ">>, ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExecutionContext", + "text": "ExecutionContext" + }, + "<", + { + "pluginId": "inspector", + "scope": "common", + "docId": "kibInspectorPluginApi", + "section": "def-common.Adapters", + "text": "Adapters" + }, + ", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExecutionContextSearch", + "text": "ExecutionContextSearch" + }, + ">>" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/kibana_context.ts", + "lineNumber": 34 + }, + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.ExpressionFunctionKibanaFilter", + "type": "Type", + "tags": [], + "label": "ExpressionFunctionKibanaFilter", + "description": [], + "signature": [ + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionFunctionDefinition", + "text": "ExpressionFunctionDefinition" + }, + "<\"kibanaFilter\", null, Arguments, any, ", { "pluginId": "expressions", "scope": "common", @@ -26992,18 +28297,18 @@ ">>" ], "source": { - "path": "src/plugins/data/common/search/expressions/range.ts", - "lineNumber": 21 + "path": "src/plugins/data/common/search/expressions/kibana_filter.ts", + "lineNumber": 19 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.ExpressionFunctionRangeFilter", + "id": "def-common.ExpressionFunctionKibanaTimerange", "type": "Type", "tags": [], - "label": "ExpressionFunctionRangeFilter", + "label": "ExpressionFunctionKibanaTimerange", "description": [], "signature": [ { @@ -27013,7 +28318,15 @@ "section": "def-common.ExpressionFunctionDefinition", "text": "ExpressionFunctionDefinition" }, - "<\"rangeFilter\", null, Arguments, ", + "<\"timerange\", null, ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataQueryPluginApi", + "section": "def-common.TimeRange", + "text": "TimeRange" + }, + ", ", { "pluginId": "expressions", "scope": "common", @@ -27021,8 +28334,14 @@ "section": "def-common.ExpressionValueBoxed", "text": "ExpressionValueBoxed" }, - "<\"kibana_filter\", ", - "Filter", + "<\"timerange\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataQueryPluginApi", + "section": "def-common.TimeRange", + "text": "TimeRange" + }, ">, ", { "pluginId": "expressions", @@ -27044,244 +28363,349 @@ ">>" ], "source": { - "path": "src/plugins/data/common/search/expressions/range_filter.ts", - "lineNumber": 22 + "path": "src/plugins/data/common/search/expressions/timerange.ts", + "lineNumber": 15 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.ExpressionValueSearchContext", + "id": "def-common.ExpressionFunctionKql", "type": "Type", "tags": [], - "label": "ExpressionValueSearchContext", + "label": "ExpressionFunctionKql", "description": [], "signature": [ - "{ type: \"kibana_context\"; } & ", { - "pluginId": "data", + "pluginId": "expressions", "scope": "common", - "docId": "kibDataSearchPluginApi", - "section": "def-common.ExecutionContextSearch", - "text": "ExecutionContextSearch" - } + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionFunctionDefinition", + "text": "ExpressionFunctionDefinition" + }, + "<\"kql\", null, Arguments, any, ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExecutionContext", + "text": "ExecutionContext" + }, + "<", + { + "pluginId": "inspector", + "scope": "common", + "docId": "kibInspectorPluginApi", + "section": "def-common.Adapters", + "text": "Adapters" + }, + ", ", + "SerializableState", + ">>" ], "source": { - "path": "src/plugins/data/common/search/expressions/kibana_context_type.ts", - "lineNumber": 20 + "path": "src/plugins/data/common/search/expressions/kql.ts", + "lineNumber": 17 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.FieldTypes", + "id": "def-common.ExpressionFunctionLucene", "type": "Type", "tags": [], - "label": "FieldTypes", + "label": "ExpressionFunctionLucene", + "description": [], + "signature": [ + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionFunctionDefinition", + "text": "ExpressionFunctionDefinition" + }, + "<\"lucene\", null, Arguments, any, ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExecutionContext", + "text": "ExecutionContext" + }, + "<", + { + "pluginId": "inspector", + "scope": "common", + "docId": "kibInspectorPluginApi", + "section": "def-common.Adapters", + "text": "Adapters" + }, + ", ", + "SerializableState", + ">>" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/lucene.ts", + "lineNumber": 17 + }, + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.ExpressionFunctionNumericalRange", + "type": "Type", + "tags": [], + "label": "ExpressionFunctionNumericalRange", "description": [], "signature": [ + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionFunctionDefinition", + "text": "ExpressionFunctionDefinition" + }, + "<\"numericalRange\", null, ", { "pluginId": "data", "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" + "docId": "kibDataSearchPluginApi", + "section": "def-common.NumericalRange", + "text": "NumericalRange" }, - " | \"*\" | ", + ", ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"numerical_range\", ", { "pluginId": "data", "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" + "docId": "kibDataSearchPluginApi", + "section": "def-common.NumericalRange", + "text": "NumericalRange" }, - "[]" + ">, ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExecutionContext", + "text": "ExecutionContext" + }, + "<", + { + "pluginId": "inspector", + "scope": "common", + "docId": "kibInspectorPluginApi", + "section": "def-common.Adapters", + "text": "Adapters" + }, + ", ", + "SerializableState", + ">>" ], "source": { - "path": "src/plugins/data/common/search/aggs/param_types/field.ts", - "lineNumber": 22 + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 21 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.GenericBucket", + "id": "def-common.ExpressionFunctionPhraseFilter", "type": "Type", "tags": [], - "label": "GenericBucket", + "label": "ExpressionFunctionPhraseFilter", "description": [], "signature": [ - "(", - "AggregationsCompositeBucketKeys", - " & { [property: string]: ", - "AggregationsAggregate", - "; }) | ({ [property: string]: ", - "AggregationsAggregate", - "; } & { [property: string]: ", - "AggregationsAggregate", - "; }) | (", - "AggregationsDateHistogramBucketKeys", - " & { [property: string]: ", - "AggregationsAggregate", - "; }) | ({ [property: string]: ", - "AggregationsAggregate", - "; } & { [property: string]: ", - "AggregationsAggregate", - "; }) | (", - "AggregationsFiltersBucketItemKeys", - " & { [property: string]: ", - "AggregationsAggregate", - "; }) | ({ [property: string]: ", - "AggregationsAggregate", - "; } & { [property: string]: ", - "AggregationsAggregate", - "; }) | (", - "AggregationsIpRangeBucketKeys", - " & { [property: string]: ", - "AggregationsAggregate", - "; }) | ({ [property: string]: ", - "AggregationsAggregate", - "; } & { [property: string]: ", - "AggregationsAggregate", - "; }) | (", - "AggregationsRangeBucketKeys", - " & { [property: string]: ", - "AggregationsAggregate", - "; }) | ({ [property: string]: ", - "AggregationsAggregate", - "; } & { [property: string]: ", - "AggregationsAggregate", - "; }) | ({ [property: string]: ", - "AggregationsAggregate", - "; } & { [property: string]: ", - "AggregationsAggregate", - "; }) | (", - "AggregationsRareTermsBucketKeys", - " & { [property: string]: ", - "AggregationsAggregate", - "; }) | ({ [property: string]: ", - "AggregationsAggregate", - "; } & { [property: string]: ", - "AggregationsAggregate", - "; }) | (", - "AggregationsSignificantTermsBucketKeys", - " & { [property: string]: ", - "AggregationsAggregate", - "; }) | ({ [property: string]: ", - "AggregationsAggregate", - "; } & { [property: string]: ", - "AggregationsAggregate", - "; }) | (", - "AggregationsKeyedBucketKeys", - " & { [property: string]: ", - "AggregationsAggregate", - "; })" + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionFunctionDefinition", + "text": "ExpressionFunctionDefinition" + }, + "<\"rangeFilter\", null, Arguments, any, ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExecutionContext", + "text": "ExecutionContext" + }, + "<", + { + "pluginId": "inspector", + "scope": "common", + "docId": "kibInspectorPluginApi", + "section": "def-common.Adapters", + "text": "Adapters" + }, + ", ", + "SerializableState", + ">>" ], "source": { - "path": "src/plugins/data/common/search/aggs/agg_configs.ts", - "lineNumber": 61 + "path": "src/plugins/data/common/search/expressions/phrase_filter.ts", + "lineNumber": 21 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.IAggConfig", + "id": "def-common.ExpressionFunctionQueryFilter", "type": "Type", - "tags": [ - "name", - "description" - ], - "label": "IAggConfig", + "tags": [], + "label": "ExpressionFunctionQueryFilter", "description": [], "signature": [ + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionFunctionDefinition", + "text": "ExpressionFunctionDefinition" + }, + "<\"queryFilter\", null, QueryFilterArguments, ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"kibana_query_filter\", ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.AggConfig", - "text": "AggConfig" - } + "section": "def-common.QueryFilter", + "text": "QueryFilter" + }, + ">, ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExecutionContext", + "text": "ExecutionContext" + }, + "<", + { + "pluginId": "inspector", + "scope": "common", + "docId": "kibInspectorPluginApi", + "section": "def-common.Adapters", + "text": "Adapters" + }, + ", ", + "SerializableState", + ">>" ], "source": { - "path": "src/plugins/data/common/search/aggs/agg_config.ts", - "lineNumber": 55 + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 27 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.IAggType", + "id": "def-common.ExpressionFunctionRange", "type": "Type", "tags": [], - "label": "IAggType", + "label": "ExpressionFunctionRange", "description": [], "signature": [ { - "pluginId": "data", + "pluginId": "expressions", "scope": "common", - "docId": "kibDataSearchPluginApi", - "section": "def-common.AggType", - "text": "AggType" + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionFunctionDefinition", + "text": "ExpressionFunctionDefinition" }, - "<", + "<\"range\", null, Arguments, ", { - "pluginId": "data", + "pluginId": "expressions", "scope": "common", - "docId": "kibDataSearchPluginApi", - "section": "def-common.AggConfig", - "text": "AggConfig" + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" }, - ", ", + "<\"kibana_range\", Arguments>, ", { - "pluginId": "data", + "pluginId": "expressions", "scope": "common", - "docId": "kibDataSearchPluginApi", - "section": "def-common.AggParamType", - "text": "AggParamType" + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExecutionContext", + "text": "ExecutionContext" }, "<", { - "pluginId": "data", + "pluginId": "inspector", "scope": "common", - "docId": "kibDataSearchPluginApi", - "section": "def-common.AggConfig", - "text": "AggConfig" + "docId": "kibInspectorPluginApi", + "section": "def-common.Adapters", + "text": "Adapters" }, + ", ", + "SerializableState", ">>" ], "source": { - "path": "src/plugins/data/common/search/aggs/agg_type.ts", - "lineNumber": 62 + "path": "src/plugins/data/common/search/expressions/range.ts", + "lineNumber": 21 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.IEsSearchResponse", + "id": "def-common.ExpressionFunctionRangeFilter", "type": "Type", "tags": [], - "label": "IEsSearchResponse", + "label": "ExpressionFunctionRangeFilter", "description": [], "signature": [ { - "pluginId": "data", + "pluginId": "expressions", "scope": "common", - "docId": "kibDataSearchPluginApi", - "section": "def-common.IKibanaSearchResponse", - "text": "IKibanaSearchResponse" + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionFunctionDefinition", + "text": "ExpressionFunctionDefinition" + }, + "<\"rangeFilter\", null, Arguments, any, ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExecutionContext", + "text": "ExecutionContext" }, "<", - "SearchResponse", - ">" + { + "pluginId": "inspector", + "scope": "common", + "docId": "kibInspectorPluginApi", + "section": "def-common.Adapters", + "text": "Adapters" + }, + ", ", + "SerializableState", + ">>" ], "source": { - "path": "src/plugins/data/common/search/strategies/es_search/types.ts", + "path": "src/plugins/data/common/search/expressions/range_filter.ts", "lineNumber": 22 }, "deprecated": false, @@ -27289,428 +28713,655 @@ }, { "parentPluginId": "data", - "id": "def-common.IFieldParamType", + "id": "def-common.ExpressionValueSearchContext", "type": "Type", "tags": [], - "label": "IFieldParamType", + "label": "ExpressionValueSearchContext", "description": [], "signature": [ + "{ type: \"kibana_context\"; } & ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.FieldParamType", - "text": "FieldParamType" + "section": "def-common.ExecutionContextSearch", + "text": "ExecutionContextSearch" } ], "source": { - "path": "src/plugins/data/common/search/aggs/param_types/field.ts", - "lineNumber": 24 + "path": "src/plugins/data/common/search/expressions/kibana_context_type.ts", + "lineNumber": 20 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.IMetricAggType", + "id": "def-common.ExtendedBoundsOutput", "type": "Type", "tags": [], - "label": "IMetricAggType", + "label": "ExtendedBoundsOutput", "description": [], "signature": [ + "{ type: \"extended_bounds\"; } & ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.MetricAggType", - "text": "MetricAggType" - }, - "<", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataSearchPluginApi", - "section": "def-common.IMetricAggConfig", - "text": "IMetricAggConfig" - }, - ">" + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + } ], "source": { - "path": "src/plugins/data/common/search/aggs/metrics/metric_agg_type.ts", - "lineNumber": 36 + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 18 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.intervalOptions", - "type": "Array", + "id": "def-common.FieldTypes", + "type": "Type", "tags": [], - "label": "intervalOptions", + "label": "FieldTypes", "description": [], "signature": [ - "({ display: string; val: string; enabled(agg: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataSearchPluginApi", - "section": "def-common.IBucketAggConfig", - "text": "IBucketAggConfig" - }, - "): boolean; } | { display: string; val: string; })[]" + "KBN_FIELD_TYPES", + " | \"*\" | ", + "KBN_FIELD_TYPES", + "[]" ], "source": { - "path": "src/plugins/data/common/search/aggs/buckets/_interval_options.ts", - "lineNumber": 15 + "path": "src/plugins/data/common/search/aggs/param_types/field.ts", + "lineNumber": 22 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.IPercentileAggConfig", + "id": "def-common.GenericBucket", "type": "Type", "tags": [], - "label": "IPercentileAggConfig", + "label": "GenericBucket", "description": [], "signature": [ - "IResponseAggConfig" + "(", + "AggregationsCompositeBucketKeys", + " & { [property: string]: ", + "AggregationsAggregate", + "; }) | ({ [property: string]: ", + "AggregationsAggregate", + "; } & { [property: string]: ", + "AggregationsAggregate", + "; }) | (", + "AggregationsDateHistogramBucketKeys", + " & { [property: string]: ", + "AggregationsAggregate", + "; }) | ({ [property: string]: ", + "AggregationsAggregate", + "; } & { [property: string]: ", + "AggregationsAggregate", + "; }) | (", + "AggregationsFiltersBucketItemKeys", + " & { [property: string]: ", + "AggregationsAggregate", + "; }) | ({ [property: string]: ", + "AggregationsAggregate", + "; } & { [property: string]: ", + "AggregationsAggregate", + "; }) | (", + "AggregationsIpRangeBucketKeys", + " & { [property: string]: ", + "AggregationsAggregate", + "; }) | ({ [property: string]: ", + "AggregationsAggregate", + "; } & { [property: string]: ", + "AggregationsAggregate", + "; }) | (", + "AggregationsRangeBucketKeys", + " & { [property: string]: ", + "AggregationsAggregate", + "; }) | ({ [property: string]: ", + "AggregationsAggregate", + "; } & { [property: string]: ", + "AggregationsAggregate", + "; }) | ({ [property: string]: ", + "AggregationsAggregate", + "; } & { [property: string]: ", + "AggregationsAggregate", + "; }) | (", + "AggregationsRareTermsBucketKeys", + " & { [property: string]: ", + "AggregationsAggregate", + "; }) | ({ [property: string]: ", + "AggregationsAggregate", + "; } & { [property: string]: ", + "AggregationsAggregate", + "; }) | (", + "AggregationsSignificantTermsBucketKeys", + " & { [property: string]: ", + "AggregationsAggregate", + "; }) | ({ [property: string]: ", + "AggregationsAggregate", + "; } & { [property: string]: ", + "AggregationsAggregate", + "; }) | (", + "AggregationsKeyedBucketKeys", + " & { [property: string]: ", + "AggregationsAggregate", + "; })" ], "source": { - "path": "src/plugins/data/common/search/aggs/metrics/percentiles.ts", - "lineNumber": 24 + "path": "src/plugins/data/common/search/aggs/agg_configs.ts", + "lineNumber": 61 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.IPercentileRanksAggConfig", + "id": "def-common.GeoBoundingBox", "type": "Type", "tags": [], - "label": "IPercentileRanksAggConfig", - "description": [], + "label": "GeoBoundingBox", + "description": [ + "GeoBoundingBox Accepted Formats:\n Lat Lon As Properties:\n \"top_left\" : {\n \"lat\" : 40.73, \"lon\" : -74.1\n },\n \"bottom_right\" : {\n \"lat\" : 40.01, \"lon\" : -71.12\n }\n\n Lat Lon As Array:\n {\n \"top_left\" : [-74.1, 40.73],\n \"bottom_right\" : [-71.12, 40.01]\n }\n\n Lat Lon As String:\n {\n \"top_left\" : \"40.73, -74.1\",\n \"bottom_right\" : \"40.01, -71.12\"\n }\n\n Bounding Box as Well-Known Text (WKT):\n {\n \"wkt\" : \"BBOX (-74.1, -71.12, 40.73, 40.01)\"\n }\n\n Geohash:\n {\n \"top_right\" : \"dr5r9ydj2y73\",\n \"bottom_left\" : \"drj7teegpus6\"\n }\n\n Vertices:\n {\n \"top\" : 40.73,\n \"left\" : -74.1,\n \"bottom\" : 40.01,\n \"right\" : -71.12\n }\n" + ], "signature": [ - "IResponseAggConfig" + "GeoBox | { top_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; } | { top_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; } | WellKnownText" ], "source": { - "path": "src/plugins/data/common/search/aggs/metrics/percentile_ranks.ts", - "lineNumber": 27 + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 80 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.IpRangeKey", + "id": "def-common.GeoBoundingBoxOutput", "type": "Type", "tags": [], - "label": "IpRangeKey", + "label": "GeoBoundingBoxOutput", "description": [], "signature": [ + "({ type: \"geo_bounding_box\"; } & GeoBox) | ({ type: \"geo_bounding_box\"; } & { top_left: ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.CidrMaskIpRangeAggKey", - "text": "CidrMaskIpRangeAggKey" + "section": "def-common.GeoPoint", + "text": "GeoPoint" }, - " | ", + "; bottom_right: ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.RangeIpRangeAggKey", - "text": "RangeIpRangeAggKey" - } + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & { top_right: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; bottom_left: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }) | ({ type: \"geo_bounding_box\"; } & WellKnownText)" ], "source": { - "path": "src/plugins/data/common/search/aggs/buckets/lib/ip_range.ts", - "lineNumber": 20 + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 82 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.ISearchCancelGeneric", + "id": "def-common.GeoPoint", "type": "Type", "tags": [], - "label": "ISearchCancelGeneric", + "label": "GeoPoint", "description": [], "signature": [ - "(id: string, options?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataSearchPluginApi", - "section": "def-common.ISearchOptions", - "text": "ISearchOptions" - }, - " | undefined) => Promise" + "string | [number, number] | Point" ], "source": { - "path": "src/plugins/data/common/search/types.ts", - "lineNumber": 21 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 17 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.ISearchExtendGeneric", + "id": "def-common.GeoPointOutput", "type": "Type", "tags": [], - "label": "ISearchExtendGeneric", + "label": "GeoPointOutput", "description": [], "signature": [ - "(id: string, keepAlive: string, options?: ", + "{ type: \"geo_point\"; } & { value: ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.ISearchOptions", - "text": "ISearchOptions" + "section": "def-common.GeoPoint", + "text": "GeoPoint" }, - " | undefined) => Promise" + "; }" ], "source": { - "path": "src/plugins/data/common/search/types.ts", - "lineNumber": 22 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 19 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.ISearchGeneric", + "id": "def-common.IAggConfig", "type": "Type", - "tags": [], - "label": "ISearchGeneric", + "tags": [ + "name", + "description" + ], + "label": "IAggConfig", "description": [], "signature": [ - " = ", + "section": "def-common.AggConfig", + "text": "AggConfig" + } + ], + "source": { + "path": "src/plugins/data/common/search/aggs/agg_config.ts", + "lineNumber": 55 + }, + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.IAggType", + "type": "Type", + "tags": [], + "label": "IAggType", + "description": [], + "signature": [ { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.IEsSearchRequest", - "text": "IEsSearchRequest" + "section": "def-common.AggType", + "text": "AggType" }, - ", SearchStrategyResponse extends ", + "<", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.IKibanaSearchResponse", - "text": "IKibanaSearchResponse" + "section": "def-common.AggConfig", + "text": "AggConfig" }, - " = ", + ", ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.IEsSearchResponse", - "text": "IEsSearchResponse" + "section": "def-common.AggParamType", + "text": "AggParamType" }, - ">(request: SearchStrategyRequest, options?: ", + "<", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.ISearchOptions", - "text": "ISearchOptions" + "section": "def-common.AggConfig", + "text": "AggConfig" }, - " | undefined) => ", - "Observable", - "" + ">>" ], "source": { - "path": "src/plugins/data/common/search/types.ts", - "lineNumber": 13 + "path": "src/plugins/data/common/search/aggs/agg_type.ts", + "lineNumber": 62 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.ISearchOptionsSerializable", + "id": "def-common.IEsSearchResponse", "type": "Type", "tags": [], - "label": "ISearchOptionsSerializable", - "description": [ - "\nSame as `ISearchOptions`, but contains only serializable fields, which can\nbe sent over the network." - ], + "label": "IEsSearchResponse", + "description": [], "signature": [ - "{ isStored?: boolean | undefined; isRestore?: boolean | undefined; sessionId?: string | undefined; executionContext?: ", - "KibanaExecutionContext", - " | undefined; strategy?: string | undefined; legacyHitsTotal?: boolean | undefined; }" + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.IKibanaSearchResponse", + "text": "IKibanaSearchResponse" + }, + "<", + "SearchResponse", + ">" ], "source": { - "path": "src/plugins/data/common/search/types.ts", - "lineNumber": 145 + "path": "src/plugins/data/common/search/strategies/es_search/types.ts", + "lineNumber": 22 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.ISearchRequestParams", + "id": "def-common.IFieldParamType", "type": "Type", "tags": [], - "label": "ISearchRequestParams", + "label": "IFieldParamType", "description": [], "signature": [ - "{ trackTotalHits?: boolean | undefined; } & ", - "SearchRequest" + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.FieldParamType", + "text": "FieldParamType" + } ], "source": { - "path": "src/plugins/data/common/search/strategies/es_search/types.ts", - "lineNumber": 14 + "path": "src/plugins/data/common/search/aggs/param_types/field.ts", + "lineNumber": 24 }, "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.ISearchSource", + "id": "def-common.IMetricAggType", "type": "Type", "tags": [], - "label": "ISearchSource", - "description": [ - "\nsearch source interface" - ], + "label": "IMetricAggType", + "description": [], "signature": [ - "{ create: () => ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataSearchPluginApi", - "section": "def-common.SearchSource", - "text": "SearchSource" - }, - "; history: Record[]; setPreferredSearchStrategyId: (searchStrategyId: string) => void; setField: (field: K, value: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataSearchPluginApi", - "section": "def-common.SearchSourceFields", - "text": "SearchSourceFields" - }, - "[K]) => ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataSearchPluginApi", - "section": "def-common.SearchSource", - "text": "SearchSource" - }, - "; removeField: (field: K) => ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.SearchSource", - "text": "SearchSource" + "section": "def-common.MetricAggType", + "text": "MetricAggType" }, - "; setFields: (newFields: ", + "<", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.SearchSourceFields", - "text": "SearchSourceFields" + "section": "def-common.IMetricAggConfig", + "text": "IMetricAggConfig" }, - ") => ", + ">" + ], + "source": { + "path": "src/plugins/data/common/search/aggs/metrics/metric_agg_type.ts", + "lineNumber": 36 + }, + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.intervalOptions", + "type": "Array", + "tags": [], + "label": "intervalOptions", + "description": [], + "signature": [ + "({ display: string; val: string; enabled(agg: ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.SearchSource", - "text": "SearchSource" + "section": "def-common.IBucketAggConfig", + "text": "IBucketAggConfig" }, - "; getId: () => string; getFields: () => ", + "): boolean; } | { display: string; val: string; })[]" + ], + "source": { + "path": "src/plugins/data/common/search/aggs/buckets/_interval_options.ts", + "lineNumber": 15 + }, + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.IPercentileAggConfig", + "type": "Type", + "tags": [], + "label": "IPercentileAggConfig", + "description": [], + "signature": [ + "IResponseAggConfig" + ], + "source": { + "path": "src/plugins/data/common/search/aggs/metrics/percentiles.ts", + "lineNumber": 24 + }, + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.IPercentileRanksAggConfig", + "type": "Type", + "tags": [], + "label": "IPercentileRanksAggConfig", + "description": [], + "signature": [ + "IResponseAggConfig" + ], + "source": { + "path": "src/plugins/data/common/search/aggs/metrics/percentile_ranks.ts", + "lineNumber": 27 + }, + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.IpRangeKey", + "type": "Type", + "tags": [], + "label": "IpRangeKey", + "description": [], + "signature": [ { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.SearchSourceFields", - "text": "SearchSourceFields" + "section": "def-common.CidrMaskIpRangeAggKey", + "text": "CidrMaskIpRangeAggKey" }, - "; getField: (field: K, recurse?: boolean) => ", + " | ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.SearchSourceFields", - "text": "SearchSourceFields" - }, - "[K]; getOwnField: (field: K) => ", + "section": "def-common.RangeIpRangeAggKey", + "text": "RangeIpRangeAggKey" + } + ], + "source": { + "path": "src/plugins/data/common/search/aggs/buckets/lib/ip_range.ts", + "lineNumber": 20 + }, + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.IpRangeOutput", + "type": "Type", + "tags": [], + "label": "IpRangeOutput", + "description": [], + "signature": [ + "{ type: \"ip_range\"; } & ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.SearchSourceFields", - "text": "SearchSourceFields" - }, - "[K]; createCopy: () => ", + "section": "def-common.IpRange", + "text": "IpRange" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/ip_range.ts", + "lineNumber": 17 + }, + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.ISearchCancelGeneric", + "type": "Type", + "tags": [], + "label": "ISearchCancelGeneric", + "description": [], + "signature": [ + "(id: string, options?: ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.SearchSource", - "text": "SearchSource" + "section": "def-common.ISearchOptions", + "text": "ISearchOptions" }, - "; createChild: (options?: {}) => ", + " | undefined) => Promise" + ], + "source": { + "path": "src/plugins/data/common/search/types.ts", + "lineNumber": 21 + }, + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.ISearchExtendGeneric", + "type": "Type", + "tags": [], + "label": "ISearchExtendGeneric", + "description": [], + "signature": [ + "(id: string, keepAlive: string, options?: ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.SearchSource", - "text": "SearchSource" + "section": "def-common.ISearchOptions", + "text": "ISearchOptions" }, - "; setParent: (parent?: Pick<", + " | undefined) => Promise" + ], + "source": { + "path": "src/plugins/data/common/search/types.ts", + "lineNumber": 22 + }, + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.ISearchGeneric", + "type": "Type", + "tags": [], + "label": "ISearchGeneric", + "description": [], + "signature": [ + " | undefined, options?: ", + " = ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.SearchSourceOptions", - "text": "SearchSourceOptions" + "section": "def-common.IEsSearchRequest", + "text": "IEsSearchRequest" }, - ") => ", + ", SearchStrategyResponse extends ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.SearchSource", - "text": "SearchSource" + "section": "def-common.IKibanaSearchResponse", + "text": "IKibanaSearchResponse" }, - "; getParent: () => ", + " = ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.SearchSource", - "text": "SearchSource" + "section": "def-common.IEsSearchResponse", + "text": "IEsSearchResponse" }, - " | undefined; fetch$: (options?: ", + ">(request: SearchStrategyRequest, options?: ", { "pluginId": "data", "scope": "common", @@ -27718,15 +29369,203 @@ "section": "def-common.ISearchOptions", "text": "ISearchOptions" }, - ") => ", + " | undefined) => ", "Observable", - "<", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataSearchPluginApi", - "section": "def-common.IKibanaSearchResponse", - "text": "IKibanaSearchResponse" + "" + ], + "source": { + "path": "src/plugins/data/common/search/types.ts", + "lineNumber": 13 + }, + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.ISearchOptionsSerializable", + "type": "Type", + "tags": [], + "label": "ISearchOptionsSerializable", + "description": [ + "\nSame as `ISearchOptions`, but contains only serializable fields, which can\nbe sent over the network." + ], + "signature": [ + "{ isStored?: boolean | undefined; isRestore?: boolean | undefined; sessionId?: string | undefined; executionContext?: ", + "KibanaExecutionContext", + " | undefined; strategy?: string | undefined; legacyHitsTotal?: boolean | undefined; }" + ], + "source": { + "path": "src/plugins/data/common/search/types.ts", + "lineNumber": 145 + }, + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.ISearchRequestParams", + "type": "Type", + "tags": [], + "label": "ISearchRequestParams", + "description": [], + "signature": [ + "{ trackTotalHits?: boolean | undefined; } & ", + "SearchRequest" + ], + "source": { + "path": "src/plugins/data/common/search/strategies/es_search/types.ts", + "lineNumber": 14 + }, + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.ISearchSource", + "type": "Type", + "tags": [], + "label": "ISearchSource", + "description": [ + "\nsearch source interface" + ], + "signature": [ + "{ create: () => ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.SearchSource", + "text": "SearchSource" + }, + "; history: Record[]; setPreferredSearchStrategyId: (searchStrategyId: string) => void; setField: (field: K, value: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.SearchSourceFields", + "text": "SearchSourceFields" + }, + "[K]) => ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.SearchSource", + "text": "SearchSource" + }, + "; removeField: (field: K) => ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.SearchSource", + "text": "SearchSource" + }, + "; setFields: (newFields: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.SearchSourceFields", + "text": "SearchSourceFields" + }, + ") => ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.SearchSource", + "text": "SearchSource" + }, + "; getId: () => string; getFields: () => ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.SearchSourceFields", + "text": "SearchSourceFields" + }, + "; getField: (field: K, recurse?: boolean) => ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.SearchSourceFields", + "text": "SearchSourceFields" + }, + "[K]; getOwnField: (field: K) => ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.SearchSourceFields", + "text": "SearchSourceFields" + }, + "[K]; createCopy: () => ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.SearchSource", + "text": "SearchSource" + }, + "; createChild: (options?: {}) => ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.SearchSource", + "text": "SearchSource" + }, + "; setParent: (parent?: Pick<", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.SearchSource", + "text": "SearchSource" + }, + ", \"create\" | \"history\" | \"setPreferredSearchStrategyId\" | \"setField\" | \"removeField\" | \"setFields\" | \"getId\" | \"getFields\" | \"getField\" | \"getOwnField\" | \"createCopy\" | \"createChild\" | \"setParent\" | \"getParent\" | \"fetch$\" | \"fetch\" | \"onRequestStart\" | \"getSearchRequestBody\" | \"destroy\" | \"getSerializedFields\" | \"serialize\"> | undefined, options?: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.SearchSourceOptions", + "text": "SearchSourceOptions" + }, + ") => ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.SearchSource", + "text": "SearchSource" + }, + "; getParent: () => ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.SearchSource", + "text": "SearchSource" + }, + " | undefined; fetch$: (options?: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ISearchOptions", + "text": "ISearchOptions" + }, + ") => ", + "Observable", + "<", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.IKibanaSearchResponse", + "text": "IKibanaSearchResponse" }, "<", "SearchResponse", @@ -27770,7 +29609,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 20 + "lineNumber": 19 }, "deprecated": false, "initialIsOpen": false @@ -27848,8 +29687,7 @@ "label": "KibanaFilter", "description": [], "signature": [ - "{ type: \"kibana_filter\"; } & ", - "Filter" + "any" ], "source": { "path": "src/plugins/data/common/search/expressions/kibana_context_type.ts", @@ -27866,8 +29704,7 @@ "label": "KibanaQueryOutput", "description": [], "signature": [ - "{ type: \"kibana_query\"; } & ", - "Query" + "any" ], "source": { "path": "src/plugins/data/common/search/expressions/kibana_context_type.ts", @@ -27917,6 +29754,30 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.NumericalRangeOutput", + "type": "Type", + "tags": [], + "label": "NumericalRangeOutput", + "description": [], + "signature": [ + "{ type: \"numerical_range\"; } & ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.NumericalRange", + "text": "NumericalRange" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 19 + }, + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.parentPipelineType", @@ -27950,6 +29811,30 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.QueryFilterOutput", + "type": "Type", + "tags": [], + "label": "QueryFilterOutput", + "description": [], + "signature": [ + "{ type: \"kibana_query_filter\"; } & ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.QueryFilter", + "text": "QueryFilter" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 20 + }, + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.SEARCH_SESSION_TYPE", @@ -27996,7 +29881,7 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/types.ts", - "lineNumber": 65 + "lineNumber": 64 }, "deprecated": false, "initialIsOpen": false @@ -28108,150 +29993,2007 @@ }, { "parentPluginId": "data", - "id": "def-common.esRawResponse", + "id": "def-common.cidrFunction", "type": "Object", "tags": [], - "label": "esRawResponse", + "label": "cidrFunction", "description": [], "source": { - "path": "src/plugins/data/common/search/expressions/es_raw_response.ts", - "lineNumber": 63 + "path": "src/plugins/data/common/search/expressions/cidr.ts", + "lineNumber": 20 }, "deprecated": false, "children": [ { "parentPluginId": "data", - "id": "def-common.esRawResponse.name", + "id": "def-common.cidrFunction.name", "type": "string", "tags": [], "label": "name", "description": [], "signature": [ - "\"es_raw_response\"" + "\"cidr\"" ], "source": { - "path": "src/plugins/data/common/search/expressions/es_raw_response.ts", - "lineNumber": 64 + "path": "src/plugins/data/common/search/expressions/cidr.ts", + "lineNumber": 21 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.esRawResponse.to", - "type": "Object", + "id": "def-common.cidrFunction.type", + "type": "string", "tags": [], - "label": "to", + "label": "type", "description": [], + "signature": [ + "\"cidr\"" + ], "source": { - "path": "src/plugins/data/common/search/expressions/es_raw_response.ts", - "lineNumber": 65 + "path": "src/plugins/data/common/search/expressions/cidr.ts", + "lineNumber": 22 }, - "deprecated": false, - "children": [ + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.cidrFunction.inputTypes", + "type": "Array", + "tags": [], + "label": "inputTypes", + "description": [], + "signature": [ + "\"null\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/cidr.ts", + "lineNumber": 23 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.cidrFunction.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/cidr.ts", + "lineNumber": 24 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.cidrFunction.args", + "type": "Object", + "tags": [], + "label": "args", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/cidr.ts", + "lineNumber": 27 + }, + "deprecated": false, + "children": [ { "parentPluginId": "data", - "id": "def-common.esRawResponse.to.datatable", - "type": "Function", + "id": "def-common.cidrFunction.args.mask", + "type": "Object", "tags": [], - "label": "datatable", + "label": "mask", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/cidr.ts", + "lineNumber": 28 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.cidrFunction.args.mask.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"string\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/cidr.ts", + "lineNumber": 29 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.cidrFunction.args.mask.required", + "type": "boolean", + "tags": [], + "label": "required", + "description": [], + "signature": [ + "true" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/cidr.ts", + "lineNumber": 30 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.cidrFunction.args.mask.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/cidr.ts", + "lineNumber": 31 + }, + "deprecated": false + } + ] + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.cidrFunction.fn", + "type": "Function", + "tags": [], + "label": "fn", + "description": [], + "signature": [ + "(input: null, { mask }: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.Cidr", + "text": "Cidr" + }, + ") => { mask: string; type: \"cidr\"; }" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/cidr.ts", + "lineNumber": 37 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.cidrFunction.fn.$1", + "type": "Uncategorized", + "tags": [], + "label": "input", + "description": [], + "signature": [ + "null" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/cidr.ts", + "lineNumber": 37 + }, + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "data", + "id": "def-common.cidrFunction.fn.$2", + "type": "Object", + "tags": [], + "label": "{ mask }", "description": [], "signature": [ - "(context: ", { "pluginId": "data", "scope": "common", "docId": "kibDataSearchPluginApi", - "section": "def-common.EsRawResponse", - "text": "EsRawResponse" - }, - ") => { type: string; meta: { type: string; source: string; }; columns: { id: string; name: string; meta: { type: \"string\" | \"number\" | \"bigint\" | \"boolean\" | \"symbol\" | \"undefined\" | \"object\" | \"function\"; field: string; params: {}; }; }[]; rows: any[]; }" + "section": "def-common.Cidr", + "text": "Cidr" + } ], "source": { - "path": "src/plugins/data/common/search/expressions/es_raw_response.ts", - "lineNumber": 66 + "path": "src/plugins/data/common/search/expressions/cidr.ts", + "lineNumber": 37 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.dateRangeFunction", + "type": "Object", + "tags": [], + "label": "dateRangeFunction", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range.ts", + "lineNumber": 26 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.dateRangeFunction.name", + "type": "string", + "tags": [], + "label": "name", + "description": [], + "signature": [ + "\"dateRange\"" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range.ts", + "lineNumber": 27 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.dateRangeFunction.type", + "type": "string", + "tags": [], + "label": "type", + "description": [], + "signature": [ + "\"date_range\"" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range.ts", + "lineNumber": 28 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.dateRangeFunction.inputTypes", + "type": "Array", + "tags": [], + "label": "inputTypes", + "description": [], + "signature": [ + "\"null\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range.ts", + "lineNumber": 29 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.dateRangeFunction.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range.ts", + "lineNumber": 30 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.dateRangeFunction.args", + "type": "Object", + "tags": [], + "label": "args", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range.ts", + "lineNumber": 33 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.dateRangeFunction.args.from", + "type": "Object", + "tags": [], + "label": "from", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range.ts", + "lineNumber": 34 }, "deprecated": false, "children": [ { "parentPluginId": "data", - "id": "def-common.esRawResponse.to.datatable.$1", - "type": "Object", + "id": "def-common.dateRangeFunction.args.from.types", + "type": "Array", "tags": [], - "label": "context", + "label": "types", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataSearchPluginApi", - "section": "def-common.EsRawResponse", - "text": "EsRawResponse" - }, - "" + "(\"number\" | \"string\")[]" ], "source": { - "path": "src/plugins/data/common/search/expressions/es_raw_response.ts", - "lineNumber": 66 + "path": "src/plugins/data/common/search/expressions/date_range.ts", + "lineNumber": 35 }, - "deprecated": false, - "isRequired": true + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.dateRangeFunction.args.from.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range.ts", + "lineNumber": 36 + }, + "deprecated": false + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.dateRangeFunction.args.to", + "type": "Object", + "tags": [], + "label": "to", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range.ts", + "lineNumber": 40 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.dateRangeFunction.args.to.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "(\"number\" | \"string\")[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range.ts", + "lineNumber": 41 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.dateRangeFunction.args.to.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range.ts", + "lineNumber": 42 + }, + "deprecated": false + } + ] + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.dateRangeFunction.fn", + "type": "Function", + "tags": [], + "label": "fn", + "description": [], + "signature": [ + "(input: null, { from, to }: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.DateRange", + "text": "DateRange" + }, + ") => { from: React.ReactText; to: React.ReactText; type: \"date_range\"; }" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range.ts", + "lineNumber": 48 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.dateRangeFunction.fn.$1", + "type": "Uncategorized", + "tags": [], + "label": "input", + "description": [], + "signature": [ + "null" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range.ts", + "lineNumber": 48 + }, + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "data", + "id": "def-common.dateRangeFunction.fn.$2", + "type": "Object", + "tags": [], + "label": "{ from, to }", + "description": [], + "signature": [ + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.DateRange", + "text": "DateRange" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/date_range.ts", + "lineNumber": 48 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.esRawResponse", + "type": "Object", + "tags": [], + "label": "esRawResponse", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/es_raw_response.ts", + "lineNumber": 63 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.esRawResponse.name", + "type": "string", + "tags": [], + "label": "name", + "description": [], + "signature": [ + "\"es_raw_response\"" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/es_raw_response.ts", + "lineNumber": 64 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.esRawResponse.to", + "type": "Object", + "tags": [], + "label": "to", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/es_raw_response.ts", + "lineNumber": 65 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.esRawResponse.to.datatable", + "type": "Function", + "tags": [], + "label": "datatable", + "description": [], + "signature": [ + "(context: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.EsRawResponse", + "text": "EsRawResponse" + }, + ") => { type: string; meta: { type: string; source: string; }; columns: { id: string; name: string; meta: { type: \"string\" | \"number\" | \"bigint\" | \"boolean\" | \"symbol\" | \"undefined\" | \"object\" | \"function\"; field: string; params: {}; }; }[]; rows: any[]; }" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/es_raw_response.ts", + "lineNumber": 66 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.esRawResponse.to.datatable.$1", + "type": "Object", + "tags": [], + "label": "context", + "description": [], + "signature": [ + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.EsRawResponse", + "text": "EsRawResponse" + }, + "" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/es_raw_response.ts", + "lineNumber": 66 + }, + "deprecated": false, + "isRequired": true } ], "returnComment": [] } - ] + ] + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.existsFilterFunction", + "type": "Object", + "tags": [], + "label": "existsFilterFunction", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/exists_filter.ts", + "lineNumber": 27 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.existsFilterFunction.name", + "type": "string", + "tags": [], + "label": "name", + "description": [], + "signature": [ + "\"existsFilter\"" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/exists_filter.ts", + "lineNumber": 28 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.existsFilterFunction.type", + "type": "string", + "tags": [], + "label": "type", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/exists_filter.ts", + "lineNumber": 29 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.existsFilterFunction.inputTypes", + "type": "Array", + "tags": [], + "label": "inputTypes", + "description": [], + "signature": [ + "\"null\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/exists_filter.ts", + "lineNumber": 30 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.existsFilterFunction.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/exists_filter.ts", + "lineNumber": 31 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.existsFilterFunction.args", + "type": "Object", + "tags": [], + "label": "args", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/exists_filter.ts", + "lineNumber": 34 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.existsFilterFunction.args.field", + "type": "Object", + "tags": [], + "label": "field", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/exists_filter.ts", + "lineNumber": 35 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.existsFilterFunction.args.field.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"kibana_field\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/exists_filter.ts", + "lineNumber": 36 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.existsFilterFunction.args.field.required", + "type": "boolean", + "tags": [], + "label": "required", + "description": [], + "signature": [ + "true" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/exists_filter.ts", + "lineNumber": 37 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.existsFilterFunction.args.field.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/exists_filter.ts", + "lineNumber": 38 + }, + "deprecated": false + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.existsFilterFunction.args.negate", + "type": "Object", + "tags": [], + "label": "negate", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/exists_filter.ts", + "lineNumber": 42 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.existsFilterFunction.args.negate.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"boolean\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/exists_filter.ts", + "lineNumber": 43 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.existsFilterFunction.args.negate.default", + "type": "boolean", + "tags": [], + "label": "default", + "description": [], + "signature": [ + "false" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/exists_filter.ts", + "lineNumber": 44 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.existsFilterFunction.args.negate.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/exists_filter.ts", + "lineNumber": 45 + }, + "deprecated": false + } + ] + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.existsFilterFunction.fn", + "type": "Function", + "tags": [], + "label": "fn", + "description": [], + "signature": [ + "(input: null, args: Arguments) => any" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/exists_filter.ts", + "lineNumber": 51 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.existsFilterFunction.fn.$1", + "type": "Uncategorized", + "tags": [], + "label": "input", + "description": [], + "signature": [ + "null" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/exists_filter.ts", + "lineNumber": 51 + }, + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "data", + "id": "def-common.existsFilterFunction.fn.$2", + "type": "Object", + "tags": [], + "label": "args", + "description": [], + "signature": [ + "Arguments" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/exists_filter.ts", + "lineNumber": 51 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.extendedBoundsFunction", + "type": "Object", + "tags": [], + "label": "extendedBoundsFunction", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 27 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.extendedBoundsFunction.name", + "type": "string", + "tags": [], + "label": "name", + "description": [], + "signature": [ + "\"extendedBounds\"" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 28 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.extendedBoundsFunction.type", + "type": "string", + "tags": [], + "label": "type", + "description": [], + "signature": [ + "\"extended_bounds\"" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 29 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.extendedBoundsFunction.inputTypes", + "type": "Array", + "tags": [], + "label": "inputTypes", + "description": [], + "signature": [ + "\"null\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 30 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.extendedBoundsFunction.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 31 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.extendedBoundsFunction.args", + "type": "Object", + "tags": [], + "label": "args", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 34 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.extendedBoundsFunction.args.min", + "type": "Object", + "tags": [], + "label": "min", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 35 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.extendedBoundsFunction.args.min.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"number\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 36 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.extendedBoundsFunction.args.min.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 37 + }, + "deprecated": false + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.extendedBoundsFunction.args.max", + "type": "Object", + "tags": [], + "label": "max", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 41 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.extendedBoundsFunction.args.max.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"number\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 42 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.extendedBoundsFunction.args.max.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 43 + }, + "deprecated": false + } + ] + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.extendedBoundsFunction.fn", + "type": "Function", + "tags": [], + "label": "fn", + "description": [], + "signature": [ + "(input: null, { min, max }: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + }, + ") => { type: \"extended_bounds\"; }" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 49 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.extendedBoundsFunction.fn.$1", + "type": "Uncategorized", + "tags": [], + "label": "input", + "description": [], + "signature": [ + "null" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 49 + }, + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "data", + "id": "def-common.extendedBoundsFunction.fn.$2", + "type": "Object", + "tags": [], + "label": "{ min, max }", + "description": [], + "signature": [ + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExtendedBounds", + "text": "ExtendedBounds" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", + "lineNumber": 49 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.fieldFunction", + "type": "Object", + "tags": [], + "label": "fieldFunction", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 26 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.fieldFunction.name", + "type": "string", + "tags": [], + "label": "name", + "description": [], + "signature": [ + "\"field\"" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 27 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.fieldFunction.type", + "type": "string", + "tags": [], + "label": "type", + "description": [], + "signature": [ + "\"kibana_field\"" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 28 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.fieldFunction.inputTypes", + "type": "Array", + "tags": [], + "label": "inputTypes", + "description": [], + "signature": [ + "\"null\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 29 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.fieldFunction.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 30 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.fieldFunction.args", + "type": "Object", + "tags": [], + "label": "args", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 33 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.fieldFunction.args.name", + "type": "Object", + "tags": [], + "label": "name", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 34 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.fieldFunction.args.name.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"string\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 35 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.fieldFunction.args.name.required", + "type": "boolean", + "tags": [], + "label": "required", + "description": [], + "signature": [ + "true" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 36 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.fieldFunction.args.name.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 37 + }, + "deprecated": false + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.fieldFunction.args.type", + "type": "Object", + "tags": [], + "label": "type", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 41 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.fieldFunction.args.type.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"string\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 42 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.fieldFunction.args.type.required", + "type": "boolean", + "tags": [], + "label": "required", + "description": [], + "signature": [ + "true" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 43 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.fieldFunction.args.type.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 44 + }, + "deprecated": false + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.fieldFunction.args.script", + "type": "Object", + "tags": [], + "label": "script", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 48 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.fieldFunction.args.script.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"string\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 49 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.fieldFunction.args.script.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 50 + }, + "deprecated": false + } + ] + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.fieldFunction.fn", + "type": "Function", + "tags": [], + "label": "fn", + "description": [], + "signature": [ + "(input: null, args: Arguments) => ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"kibana_field\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataIndexPatternsPluginApi", + "section": "def-common.IndexPatternField", + "text": "IndexPatternField" + }, + ">" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 56 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.fieldFunction.fn.$1", + "type": "Uncategorized", + "tags": [], + "label": "input", + "description": [], + "signature": [ + "null" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 56 + }, + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "data", + "id": "def-common.fieldFunction.fn.$2", + "type": "Object", + "tags": [], + "label": "args", + "description": [], + "signature": [ + "Arguments" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/field.ts", + "lineNumber": 56 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction", + "type": "Object", + "tags": [], + "label": "geoBoundingBoxFunction", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 118 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.name", + "type": "string", + "tags": [], + "label": "name", + "description": [], + "signature": [ + "\"geoBoundingBox\"" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 119 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.type", + "type": "string", + "tags": [], + "label": "type", + "description": [], + "signature": [ + "\"geo_bounding_box\"" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 120 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.inputTypes", + "type": "Array", + "tags": [], + "label": "inputTypes", + "description": [], + "signature": [ + "\"null\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 121 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 122 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args", + "type": "Object", + "tags": [], + "label": "args", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 125 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.top", + "type": "Object", + "tags": [], + "label": "top", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 126 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.top.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"number\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 127 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.top.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 128 + }, + "deprecated": false + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.left", + "type": "Object", + "tags": [], + "label": "left", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 132 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.left.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"number\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 133 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.left.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 134 + }, + "deprecated": false + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.bottom", + "type": "Object", + "tags": [], + "label": "bottom", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 138 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.bottom.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"number\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 139 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.bottom.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 140 + }, + "deprecated": false + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.right", + "type": "Object", + "tags": [], + "label": "right", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 144 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.right.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"number\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 145 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.right.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 146 + }, + "deprecated": false + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.wkt", + "type": "Object", + "tags": [], + "label": "wkt", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 150 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.wkt.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"string\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 151 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.wkt.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 152 + }, + "deprecated": false + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.topLeft", + "type": "Object", + "tags": [], + "label": "topLeft", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 156 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.topLeft.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"geo_point\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 157 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.topLeft.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 158 + }, + "deprecated": false + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.bottomRight", + "type": "Object", + "tags": [], + "label": "bottomRight", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 162 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.bottomRight.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"geo_point\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 163 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.bottomRight.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 164 + }, + "deprecated": false + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.topRight", + "type": "Object", + "tags": [], + "label": "topRight", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 168 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.topRight.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"geo_point\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 169 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.topRight.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 170 + }, + "deprecated": false + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.bottomLeft", + "type": "Object", + "tags": [], + "label": "bottomLeft", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 174 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.bottomLeft.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"geo_point\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 175 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.args.bottomLeft.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 176 + }, + "deprecated": false + } + ] + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.fn", + "type": "Function", + "tags": [], + "label": "fn", + "description": [], + "signature": [ + "(input: null, args: GeoBoundingBoxArguments) => ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"geo_bounding_box\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoBoundingBox", + "text": "GeoBoundingBox" + }, + ">" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 182 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.fn.$1", + "type": "Uncategorized", + "tags": [], + "label": "input", + "description": [], + "signature": [ + "null" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 182 + }, + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "data", + "id": "def-common.geoBoundingBoxFunction.fn.$2", + "type": "CompoundType", + "tags": [], + "label": "args", + "description": [], + "signature": [ + "GeoBoundingBoxArguments" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", + "lineNumber": 182 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] } ], "initialIsOpen": false }, { "parentPluginId": "data", - "id": "def-common.existsFilterFunction", + "id": "def-common.geoPointFunction", "type": "Object", "tags": [], - "label": "existsFilterFunction", + "label": "geoPointFunction", "description": [], "source": { - "path": "src/plugins/data/common/search/expressions/exists_filter.ts", - "lineNumber": 27 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 32 }, "deprecated": false, "children": [ { "parentPluginId": "data", - "id": "def-common.existsFilterFunction.name", + "id": "def-common.geoPointFunction.name", "type": "string", "tags": [], "label": "name", "description": [], "signature": [ - "\"existsFilter\"" + "\"geoPoint\"" ], "source": { - "path": "src/plugins/data/common/search/expressions/exists_filter.ts", - "lineNumber": 28 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 33 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.existsFilterFunction.type", + "id": "def-common.geoPointFunction.type", "type": "string", "tags": [], "label": "type", "description": [], "signature": [ - "\"kibana_filter\"" + "\"geo_point\"" ], "source": { - "path": "src/plugins/data/common/search/expressions/exists_filter.ts", - "lineNumber": 29 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 34 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.existsFilterFunction.inputTypes", + "id": "def-common.geoPointFunction.inputTypes", "type": "Array", "tags": [], "label": "inputTypes", @@ -28260,92 +32002,120 @@ "\"null\"[]" ], "source": { - "path": "src/plugins/data/common/search/expressions/exists_filter.ts", - "lineNumber": 30 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 35 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.existsFilterFunction.help", + "id": "def-common.geoPointFunction.help", "type": "string", "tags": [], "label": "help", "description": [], "source": { - "path": "src/plugins/data/common/search/expressions/exists_filter.ts", - "lineNumber": 31 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 36 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.existsFilterFunction.args", + "id": "def-common.geoPointFunction.args", "type": "Object", "tags": [], "label": "args", "description": [], "source": { - "path": "src/plugins/data/common/search/expressions/exists_filter.ts", - "lineNumber": 34 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 39 }, "deprecated": false, "children": [ { "parentPluginId": "data", - "id": "def-common.existsFilterFunction.args.field", + "id": "def-common.geoPointFunction.args.lat", "type": "Object", "tags": [], - "label": "field", + "label": "lat", "description": [], "source": { - "path": "src/plugins/data/common/search/expressions/exists_filter.ts", - "lineNumber": 35 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 40 }, "deprecated": false, "children": [ { "parentPluginId": "data", - "id": "def-common.existsFilterFunction.args.field.types", + "id": "def-common.geoPointFunction.args.lat.types", "type": "Array", "tags": [], "label": "types", "description": [], "signature": [ - "\"kibana_field\"[]" + "\"number\"[]" ], "source": { - "path": "src/plugins/data/common/search/expressions/exists_filter.ts", - "lineNumber": 36 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 41 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.existsFilterFunction.args.field.required", - "type": "boolean", + "id": "def-common.geoPointFunction.args.lat.help", + "type": "string", "tags": [], - "label": "required", + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 42 + }, + "deprecated": false + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.geoPointFunction.args.lon", + "type": "Object", + "tags": [], + "label": "lon", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 46 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.geoPointFunction.args.lon.types", + "type": "Array", + "tags": [], + "label": "types", "description": [], "signature": [ - "true" + "\"number\"[]" ], "source": { - "path": "src/plugins/data/common/search/expressions/exists_filter.ts", - "lineNumber": 37 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 47 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.existsFilterFunction.args.field.help", + "id": "def-common.geoPointFunction.args.lon.help", "type": "string", "tags": [], "label": "help", "description": [], "source": { - "path": "src/plugins/data/common/search/expressions/exists_filter.ts", - "lineNumber": 38 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 48 }, "deprecated": false } @@ -28353,59 +32123,75 @@ }, { "parentPluginId": "data", - "id": "def-common.existsFilterFunction.args.negate", + "id": "def-common.geoPointFunction.args.point", "type": "Object", "tags": [], - "label": "negate", + "label": "point", "description": [], "source": { - "path": "src/plugins/data/common/search/expressions/exists_filter.ts", - "lineNumber": 42 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 52 }, "deprecated": false, "children": [ { "parentPluginId": "data", - "id": "def-common.existsFilterFunction.args.negate.types", + "id": "def-common.geoPointFunction.args.point.aliases", + "type": "Array", + "tags": [], + "label": "aliases", + "description": [], + "signature": [ + "string[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 53 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.geoPointFunction.args.point.types", "type": "Array", "tags": [], "label": "types", "description": [], "signature": [ - "\"boolean\"[]" + "(\"number\" | \"string\")[]" ], "source": { - "path": "src/plugins/data/common/search/expressions/exists_filter.ts", - "lineNumber": 43 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 54 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.existsFilterFunction.args.negate.default", + "id": "def-common.geoPointFunction.args.point.multi", "type": "boolean", "tags": [], - "label": "default", + "label": "multi", "description": [], "signature": [ - "false" + "true" ], "source": { - "path": "src/plugins/data/common/search/expressions/exists_filter.ts", - "lineNumber": 44 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 55 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.existsFilterFunction.args.negate.help", + "id": "def-common.geoPointFunction.args.point.help", "type": "string", "tags": [], "label": "help", "description": [], "source": { - "path": "src/plugins/data/common/search/expressions/exists_filter.ts", - "lineNumber": 45 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 56 }, "deprecated": false } @@ -28415,27 +32201,39 @@ }, { "parentPluginId": "data", - "id": "def-common.existsFilterFunction.fn", + "id": "def-common.geoPointFunction.fn", "type": "Function", "tags": [], "label": "fn", "description": [], "signature": [ - "(input: null, args: Arguments) => { $state?: ", - "FilterState", - " | undefined; meta: ", - "FilterMeta", - "; query?: any; type: \"kibana_filter\"; }" + "(input: null, { lat, lon, point }: GeoPointArguments) => ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"geo_point\", { value: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.GeoPoint", + "text": "GeoPoint" + }, + "; }>" ], "source": { - "path": "src/plugins/data/common/search/expressions/exists_filter.ts", - "lineNumber": 51 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 63 }, "deprecated": false, "children": [ { "parentPluginId": "data", - "id": "def-common.existsFilterFunction.fn.$1", + "id": "def-common.geoPointFunction.fn.$1", "type": "Uncategorized", "tags": [], "label": "input", @@ -28444,25 +32242,25 @@ "null" ], "source": { - "path": "src/plugins/data/common/search/expressions/exists_filter.ts", - "lineNumber": 51 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 63 }, "deprecated": false, "isRequired": true }, { "parentPluginId": "data", - "id": "def-common.existsFilterFunction.fn.$2", + "id": "def-common.geoPointFunction.fn.$2", "type": "Object", "tags": [], - "label": "args", + "label": "{ lat, lon, point }", "description": [], "signature": [ - "Arguments" + "GeoPointArguments" ], "source": { - "path": "src/plugins/data/common/search/expressions/exists_filter.ts", - "lineNumber": 51 + "path": "src/plugins/data/common/search/expressions/geo_point.ts", + "lineNumber": 63 }, "deprecated": false, "isRequired": true @@ -28475,52 +32273,52 @@ }, { "parentPluginId": "data", - "id": "def-common.fieldFunction", + "id": "def-common.ipRangeFunction", "type": "Object", "tags": [], - "label": "fieldFunction", + "label": "ipRangeFunction", "description": [], "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", + "path": "src/plugins/data/common/search/expressions/ip_range.ts", "lineNumber": 26 }, "deprecated": false, "children": [ { "parentPluginId": "data", - "id": "def-common.fieldFunction.name", + "id": "def-common.ipRangeFunction.name", "type": "string", "tags": [], "label": "name", "description": [], "signature": [ - "\"field\"" + "\"ipRange\"" ], "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", + "path": "src/plugins/data/common/search/expressions/ip_range.ts", "lineNumber": 27 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.fieldFunction.type", + "id": "def-common.ipRangeFunction.type", "type": "string", "tags": [], "label": "type", "description": [], "signature": [ - "\"kibana_field\"" + "\"ip_range\"" ], "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", + "path": "src/plugins/data/common/search/expressions/ip_range.ts", "lineNumber": 28 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.fieldFunction.inputTypes", + "id": "def-common.ipRangeFunction.inputTypes", "type": "Array", "tags": [], "label": "inputTypes", @@ -28529,53 +32327,53 @@ "\"null\"[]" ], "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", + "path": "src/plugins/data/common/search/expressions/ip_range.ts", "lineNumber": 29 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.fieldFunction.help", + "id": "def-common.ipRangeFunction.help", "type": "string", "tags": [], "label": "help", "description": [], "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", + "path": "src/plugins/data/common/search/expressions/ip_range.ts", "lineNumber": 30 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.fieldFunction.args", + "id": "def-common.ipRangeFunction.args", "type": "Object", "tags": [], "label": "args", "description": [], "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", + "path": "src/plugins/data/common/search/expressions/ip_range.ts", "lineNumber": 33 }, "deprecated": false, "children": [ { "parentPluginId": "data", - "id": "def-common.fieldFunction.args.name", + "id": "def-common.ipRangeFunction.args.from", "type": "Object", "tags": [], - "label": "name", + "label": "from", "description": [], "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", + "path": "src/plugins/data/common/search/expressions/ip_range.ts", "lineNumber": 34 }, "deprecated": false, "children": [ { "parentPluginId": "data", - "id": "def-common.fieldFunction.args.name.types", + "id": "def-common.ipRangeFunction.args.from.types", "type": "Array", "tags": [], "label": "types", @@ -28584,14 +32382,14 @@ "\"string\"[]" ], "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", + "path": "src/plugins/data/common/search/expressions/ip_range.ts", "lineNumber": 35 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.fieldFunction.args.name.required", + "id": "def-common.ipRangeFunction.args.from.required", "type": "boolean", "tags": [], "label": "required", @@ -28600,20 +32398,20 @@ "true" ], "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", + "path": "src/plugins/data/common/search/expressions/ip_range.ts", "lineNumber": 36 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.fieldFunction.args.name.help", + "id": "def-common.ipRangeFunction.args.from.help", "type": "string", "tags": [], "label": "help", "description": [], "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", + "path": "src/plugins/data/common/search/expressions/ip_range.ts", "lineNumber": 37 }, "deprecated": false @@ -28622,20 +32420,20 @@ }, { "parentPluginId": "data", - "id": "def-common.fieldFunction.args.type", + "id": "def-common.ipRangeFunction.args.to", "type": "Object", "tags": [], - "label": "type", + "label": "to", "description": [], "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", + "path": "src/plugins/data/common/search/expressions/ip_range.ts", "lineNumber": 41 }, "deprecated": false, "children": [ { "parentPluginId": "data", - "id": "def-common.fieldFunction.args.type.types", + "id": "def-common.ipRangeFunction.args.to.types", "type": "Array", "tags": [], "label": "types", @@ -28644,14 +32442,14 @@ "\"string\"[]" ], "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", + "path": "src/plugins/data/common/search/expressions/ip_range.ts", "lineNumber": 42 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.fieldFunction.args.type.required", + "id": "def-common.ipRangeFunction.args.to.required", "type": "boolean", "tags": [], "label": "required", @@ -28660,107 +32458,55 @@ "true" ], "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", + "path": "src/plugins/data/common/search/expressions/ip_range.ts", "lineNumber": 43 }, "deprecated": false }, { "parentPluginId": "data", - "id": "def-common.fieldFunction.args.type.help", + "id": "def-common.ipRangeFunction.args.to.help", "type": "string", "tags": [], "label": "help", "description": [], "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", + "path": "src/plugins/data/common/search/expressions/ip_range.ts", "lineNumber": 44 }, "deprecated": false } ] - }, - { - "parentPluginId": "data", - "id": "def-common.fieldFunction.args.script", - "type": "Object", - "tags": [], - "label": "script", - "description": [], - "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", - "lineNumber": 48 - }, - "deprecated": false, - "children": [ - { - "parentPluginId": "data", - "id": "def-common.fieldFunction.args.script.types", - "type": "Array", - "tags": [], - "label": "types", - "description": [], - "signature": [ - "\"string\"[]" - ], - "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", - "lineNumber": 49 - }, - "deprecated": false - }, - { - "parentPluginId": "data", - "id": "def-common.fieldFunction.args.script.help", - "type": "string", - "tags": [], - "label": "help", - "description": [], - "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", - "lineNumber": 50 - }, - "deprecated": false - } - ] } ] }, { "parentPluginId": "data", - "id": "def-common.fieldFunction.fn", + "id": "def-common.ipRangeFunction.fn", "type": "Function", "tags": [], "label": "fn", "description": [], "signature": [ - "(input: null, args: Arguments) => ", - { - "pluginId": "expressions", - "scope": "common", - "docId": "kibExpressionsPluginApi", - "section": "def-common.ExpressionValueBoxed", - "text": "ExpressionValueBoxed" - }, - "<\"kibana_field\", ", + "(input: null, { from, to }: ", { "pluginId": "data", "scope": "common", - "docId": "kibDataIndexPatternsPluginApi", - "section": "def-common.IndexPatternField", - "text": "IndexPatternField" + "docId": "kibDataSearchPluginApi", + "section": "def-common.IpRange", + "text": "IpRange" }, - ">" + ") => { from: string; to: string; type: \"ip_range\"; }" ], "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", - "lineNumber": 56 + "path": "src/plugins/data/common/search/expressions/ip_range.ts", + "lineNumber": 50 }, "deprecated": false, "children": [ { "parentPluginId": "data", - "id": "def-common.fieldFunction.fn.$1", + "id": "def-common.ipRangeFunction.fn.$1", "type": "Uncategorized", "tags": [], "label": "input", @@ -28769,25 +32515,31 @@ "null" ], "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", - "lineNumber": 56 + "path": "src/plugins/data/common/search/expressions/ip_range.ts", + "lineNumber": 50 }, "deprecated": false, "isRequired": true }, { "parentPluginId": "data", - "id": "def-common.fieldFunction.fn.$2", + "id": "def-common.ipRangeFunction.fn.$2", "type": "Object", "tags": [], - "label": "args", + "label": "{ from, to }", "description": [], "signature": [ - "Arguments" + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.IpRange", + "text": "IpRange" + } ], "source": { - "path": "src/plugins/data/common/search/expressions/field.ts", - "lineNumber": 56 + "path": "src/plugins/data/common/search/expressions/ip_range.ts", + "lineNumber": 50 }, "deprecated": false, "isRequired": true @@ -29153,9 +32905,6 @@ "tags": [], "label": "type", "description": [], - "signature": [ - "\"kibana_filter\"" - ], "source": { "path": "src/plugins/data/common/search/expressions/kibana_filter.ts", "lineNumber": 28 @@ -29833,9 +33582,6 @@ "tags": [], "label": "type", "description": [], - "signature": [ - "\"kibana_query\"" - ], "source": { "path": "src/plugins/data/common/search/expressions/kql.ts", "lineNumber": 26 @@ -29970,7 +33716,7 @@ "label": "fn", "description": [], "signature": [ - "(input: null, args: Arguments) => { type: \"kibana_query\"; language: string; query: string; }" + "(input: null, args: Arguments) => { type: string; language: string; query: string; }" ], "source": { "path": "src/plugins/data/common/search/expressions/kql.ts", @@ -30054,9 +33800,6 @@ "tags": [], "label": "type", "description": [], - "signature": [ - "\"kibana_query\"" - ], "source": { "path": "src/plugins/data/common/search/expressions/lucene.ts", "lineNumber": 26 @@ -30191,7 +33934,7 @@ "label": "fn", "description": [], "signature": [ - "(input: null, args: Arguments) => { type: \"kibana_query\"; language: string; query: any; }" + "(input: null, args: Arguments) => { type: string; language: string; query: any; }" ], "source": { "path": "src/plugins/data/common/search/expressions/lucene.ts", @@ -30248,21 +33991,9 @@ "description": [], "signature": [ "{ scriptable?: boolean | undefined; filterFieldTypes?: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", " | \"*\" | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.KBN_FIELD_TYPES", - "text": "KBN_FIELD_TYPES" - }, + "KBN_FIELD_TYPES", "[] | undefined; makeAgg?: ((agg: ", { "pluginId": "data", @@ -30321,7 +34052,15 @@ "section": "def-common.ExpressionAstExpression", "text": "ExpressionAstExpression" }, - " | undefined) | undefined; options?: any[] | undefined; valueType?: any; onChange?: ((agg: ", + " | ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + }, + "[] | undefined) | undefined; options?: any[] | undefined; valueType?: any; onChange?: ((agg: ", { "pluginId": "data", "scope": "common", @@ -30363,11 +34102,302 @@ }, " | undefined) => void) | undefined; }" ], - "source": { - "path": "src/plugins/data/common/search/aggs/buckets/migrate_include_exclude_format.ts", - "lineNumber": 25 - }, - "deprecated": false, + "source": { + "path": "src/plugins/data/common/search/aggs/buckets/migrate_include_exclude_format.ts", + "lineNumber": 25 + }, + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-common.numericalRangeFunction", + "type": "Object", + "tags": [], + "label": "numericalRangeFunction", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 28 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.numericalRangeFunction.name", + "type": "string", + "tags": [], + "label": "name", + "description": [], + "signature": [ + "\"numericalRange\"" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 29 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.numericalRangeFunction.type", + "type": "string", + "tags": [], + "label": "type", + "description": [], + "signature": [ + "\"numerical_range\"" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 30 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.numericalRangeFunction.inputTypes", + "type": "Array", + "tags": [], + "label": "inputTypes", + "description": [], + "signature": [ + "\"null\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 31 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.numericalRangeFunction.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 32 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.numericalRangeFunction.args", + "type": "Object", + "tags": [], + "label": "args", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 35 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.numericalRangeFunction.args.from", + "type": "Object", + "tags": [], + "label": "from", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 36 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.numericalRangeFunction.args.from.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"number\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 37 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.numericalRangeFunction.args.from.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 38 + }, + "deprecated": false + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.numericalRangeFunction.args.to", + "type": "Object", + "tags": [], + "label": "to", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 42 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.numericalRangeFunction.args.to.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"number\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 43 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.numericalRangeFunction.args.to.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 44 + }, + "deprecated": false + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.numericalRangeFunction.args.label", + "type": "Object", + "tags": [], + "label": "label", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 48 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.numericalRangeFunction.args.label.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"string\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 49 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.numericalRangeFunction.args.label.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 50 + }, + "deprecated": false + } + ] + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.numericalRangeFunction.fn", + "type": "Function", + "tags": [], + "label": "fn", + "description": [], + "signature": [ + "(input: null, { from, to, label }: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.NumericalRange", + "text": "NumericalRange" + }, + ") => { type: \"numerical_range\"; }" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 56 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.numericalRangeFunction.fn.$1", + "type": "Uncategorized", + "tags": [], + "label": "input", + "description": [], + "signature": [ + "null" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 56 + }, + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "data", + "id": "def-common.numericalRangeFunction.fn.$2", + "type": "Object", + "tags": [], + "label": "{ from, to, label }", + "description": [], + "signature": [ + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.NumericalRange", + "text": "NumericalRange" + } + ], + "source": { + "path": "src/plugins/data/common/search/expressions/numerical_range.ts", + "lineNumber": 56 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + } + ], "initialIsOpen": false }, { @@ -30519,9 +34549,6 @@ "tags": [], "label": "type", "description": [], - "signature": [ - "\"kibana_filter\"" - ], "source": { "path": "src/plugins/data/common/search/expressions/phrase_filter.ts", "lineNumber": 30 @@ -30776,11 +34803,7 @@ "label": "fn", "description": [], "signature": [ - "(input: null, args: Arguments) => { $state?: ", - "FilterState", - " | undefined; meta: ", - "FilterMeta", - "; query?: any; type: \"kibana_filter\"; }" + "(input: null, args: Arguments) => any" ], "source": { "path": "src/plugins/data/common/search/expressions/phrase_filter.ts", @@ -30828,6 +34851,287 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.queryFilterFunction", + "type": "Object", + "tags": [], + "label": "queryFilterFunction", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 34 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.queryFilterFunction.name", + "type": "string", + "tags": [], + "label": "name", + "description": [], + "signature": [ + "\"queryFilter\"" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 35 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.queryFilterFunction.type", + "type": "string", + "tags": [], + "label": "type", + "description": [], + "signature": [ + "\"kibana_query_filter\"" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 36 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.queryFilterFunction.inputTypes", + "type": "Array", + "tags": [], + "label": "inputTypes", + "description": [], + "signature": [ + "\"null\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 37 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.queryFilterFunction.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 38 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.queryFilterFunction.args", + "type": "Object", + "tags": [], + "label": "args", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 41 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.queryFilterFunction.args.input", + "type": "Object", + "tags": [], + "label": "input", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 42 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.queryFilterFunction.args.input.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"kibana_query\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 43 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.queryFilterFunction.args.input.aliases", + "type": "Array", + "tags": [], + "label": "aliases", + "description": [], + "signature": [ + "string[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 44 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.queryFilterFunction.args.input.required", + "type": "boolean", + "tags": [], + "label": "required", + "description": [], + "signature": [ + "true" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 45 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.queryFilterFunction.args.input.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 46 + }, + "deprecated": false + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.queryFilterFunction.args.label", + "type": "Object", + "tags": [], + "label": "label", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 50 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.queryFilterFunction.args.label.types", + "type": "Array", + "tags": [], + "label": "types", + "description": [], + "signature": [ + "\"string\"[]" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 51 + }, + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.queryFilterFunction.args.label.help", + "type": "string", + "tags": [], + "label": "help", + "description": [], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 52 + }, + "deprecated": false + } + ] + } + ] + }, + { + "parentPluginId": "data", + "id": "def-common.queryFilterFunction.fn", + "type": "Function", + "tags": [], + "label": "fn", + "description": [], + "signature": [ + "(_: null, { input, label }: QueryFilterArguments) => ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"kibana_query_filter\", ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.QueryFilter", + "text": "QueryFilter" + }, + ">" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 58 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.queryFilterFunction.fn.$1", + "type": "Uncategorized", + "tags": [], + "label": "_", + "description": [], + "signature": [ + "null" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 58 + }, + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "data", + "id": "def-common.queryFilterFunction.fn.$2", + "type": "Object", + "tags": [], + "label": "{ input, label }", + "description": [], + "signature": [ + "QueryFilterArguments" + ], + "source": { + "path": "src/plugins/data/common/search/expressions/query_filter.ts", + "lineNumber": 58 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + } + ], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.rangeFilterFunction", @@ -30864,9 +35168,6 @@ "tags": [], "label": "type", "description": [], - "signature": [ - "\"kibana_filter\"" - ], "source": { "path": "src/plugins/data/common/search/expressions/range_filter.ts", "lineNumber": 31 @@ -31105,11 +35406,7 @@ "label": "fn", "description": [], "signature": [ - "(input: null, args: Arguments) => { $state?: ", - "FilterState", - " | undefined; meta: ", - "FilterMeta", - "; query?: any; type: \"kibana_filter\"; }" + "(input: null, args: Arguments) => any" ], "source": { "path": "src/plugins/data/common/search/expressions/range_filter.ts", diff --git a/api_docs/data_search.mdx b/api_docs/data_search.mdx index 7b655c21c096e..7828294938057 100644 --- a/api_docs/data_search.mdx +++ b/api_docs/data_search.mdx @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 3716 | 98 | 3162 | 64 | +| 3870 | 151 | 3323 | 63 | ## Client diff --git a/api_docs/data_ui.json b/api_docs/data_ui.json index e2dfa821e7178..c088e81c3f2f8 100644 --- a/api_docs/data_ui.json +++ b/api_docs/data_ui.json @@ -3,6 +3,84 @@ "client": { "classes": [], "functions": [ + { + "parentPluginId": "data", + "id": "def-public.FilterItem", + "type": "Function", + "tags": [], + "label": "FilterItem", + "description": [], + "signature": [ + "(props: ", + "FilterItemProps", + ") => JSX.Element" + ], + "source": { + "path": "src/plugins/data/public/ui/filter_bar/index.tsx", + "lineNumber": 24 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-public.FilterItem.$1", + "type": "Object", + "tags": [], + "label": "props", + "description": [], + "signature": [ + "FilterItemProps" + ], + "source": { + "path": "src/plugins/data/public/ui/filter_bar/index.tsx", + "lineNumber": 24 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "data", + "id": "def-public.FilterLabel", + "type": "Function", + "tags": [], + "label": "FilterLabel", + "description": [], + "signature": [ + "(props: ", + "FilterLabelProps", + ") => JSX.Element" + ], + "source": { + "path": "src/plugins/data/public/ui/filter_bar/index.tsx", + "lineNumber": 15 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-public.FilterLabel.$1", + "type": "Object", + "tags": [], + "label": "props", + "description": [], + "signature": [ + "FilterLabelProps" + ], + "source": { + "path": "src/plugins/data/public/ui/filter_bar/index.tsx", + "lineNumber": 15 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-public.QueryStringInput", @@ -96,12 +174,12 @@ { "parentPluginId": "data", "id": "def-public.QueryStringInputProps.query", - "type": "Object", + "type": "Any", "tags": [], "label": "query", "description": [], "signature": [ - "{ query: string | { [key: string]: any; }; language: string; }" + "any" ], "source": { "path": "src/plugins/data/public/ui/query_string_input/query_string_input.tsx", @@ -262,9 +340,7 @@ "label": "onChange", "description": [], "signature": [ - "((query: ", - "Query", - ") => void) | undefined" + "((query: any) => void) | undefined" ], "source": { "path": "src/plugins/data/public/ui/query_string_input/query_string_input.tsx", @@ -296,9 +372,7 @@ "label": "onSubmit", "description": [], "signature": [ - "((query: ", - "Query", - ") => void) | undefined" + "((query: any) => void) | undefined" ], "source": { "path": "src/plugins/data/public/ui/query_string_input/query_string_input.tsx", diff --git a/api_docs/data_ui.mdx b/api_docs/data_ui.mdx index 8a3386132f150..077f492157e67 100644 --- a/api_docs/data_ui.mdx +++ b/api_docs/data_ui.mdx @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 3716 | 98 | 3162 | 64 | +| 3870 | 151 | 3323 | 63 | ## Client diff --git a/api_docs/deprecations_by_api.mdx b/api_docs/deprecations_by_api.mdx index 7fd02d4c3a94b..b5af0464730f4 100644 --- a/api_docs/deprecations_by_api.mdx +++ b/api_docs/deprecations_by_api.mdx @@ -11,44 +11,48 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Referencing plugin(s) | Remove By | | ---------------|-----------|-----------| +| | indexPatternFieldEditor, savedObjectsManagement | 8.0 | +| | indexPatternFieldEditor, savedObjectsManagement | 8.0 | +| | indexPatternFieldEditor, savedObjectsManagement | 8.0 | | | indexManagement | 7.16 | | | indexManagement | 7.16 | | | indexManagement, globalSearch | 7.16 | | | crossClusterReplication, indexLifecycleManagement | 7.16 | +| | savedObjects, discover, savedObjectsManagement, lens, observability, timelines, infra, ml, apm, securitySolution, maps, stackAlerts, transform | - | +| | savedObjects, discover, savedObjectsManagement, lens, observability, timelines, infra, ml, apm, securitySolution, maps, stackAlerts, transform | - | +| | discover, fleet, maps, ml, infra, stackAlerts, lens | - | +| | discover, visualizations, dashboard, lens, observability, maps, canvas, dashboardEnhanced, discoverEnhanced, securitySolution | - | +| | canvas, discover, visualizations, dashboard, lens, observability, timelines, maps, infra, dashboardEnhanced, discoverEnhanced, securitySolution, urlDrilldown, lists, ml, visTypeTimeseries | - | +| | canvas, discover, visualizations, dashboard, lens, observability, timelines, maps, infra, dashboardEnhanced, discoverEnhanced, securitySolution, urlDrilldown, lists, ml, visTypeTimeseries | - | +| | discover, fleet, maps, ml, infra, stackAlerts, lens | - | +| | discover, fleet, maps, ml, infra, stackAlerts, lens | - | +| | canvas, discover, visualizations, dashboard, lens, observability, timelines, maps, infra, dashboardEnhanced, discoverEnhanced, securitySolution, urlDrilldown, lists, ml, visTypeTimeseries | - | +| | embeddable, discover, presentationUtil, dashboard, graph | - | +| | visualizations, discover, dashboard, savedObjectsManagement | - | +| | savedObjectsTaggingOss, visualizations, discover, dashboard, savedObjectsManagement | - | +| | fleet, lens, timelines, infra, dataVisualizer, ml, apm, securitySolution, stackAlerts, transform, uptime | - | +| | lens, timelines, dataVisualizer, ml, infra, securitySolution, stackAlerts, transform | - | +| | lens | - | +| | observability | - | +| | observability | - | +| | timelines | - | +| | timelines | - | +| | timelines | - | | | securitySolution, alerting, fleet, cases, dataEnhanced | - | | | securitySolution | - | | | securitySolution, visTypeTimeseries | - | -| | fleet, lens, timelines, infra, dataVisualizer, ml, apm, securitySolution, stackAlerts, transform, uptime | - | -| | lens, timelines, dataVisualizer, ml, infra, securitySolution, stackAlerts, transform | - | -| | savedObjects, discover, visualizations, savedObjectsManagement, lens, observability, timelines, infra, ml, apm, securitySolution, uptime, maps, stackAlerts, transform | - | -| | canvas, discover, visualizations, dashboard, lens, observability, timelines, maps, infra, dashboardEnhanced, discoverEnhanced, securitySolution, urlDrilldown, lists, ml, visTypeTimeseries | - | -| | canvas, discover, visualizations, dashboard, lens, observability, timelines, maps, infra, dashboardEnhanced, discoverEnhanced, securitySolution, urlDrilldown, lists, ml, visTypeTimeseries | - | | | securitySolution | - | | | securitySolution, alerting, fleet, cases, dataEnhanced | - | | | securitySolution, visTypeTimeseries | - | -| | savedObjects, discover, visualizations, savedObjectsManagement, lens, observability, timelines, infra, ml, apm, securitySolution, uptime, maps, stackAlerts, transform | - | | | securitySolution, visTypeTimeseries | - | | | securitySolution, alerting, fleet, cases, dataEnhanced | - | -| | canvas, discover, visualizations, dashboard, lens, observability, timelines, maps, infra, dashboardEnhanced, discoverEnhanced, securitySolution, urlDrilldown, lists, ml, visTypeTimeseries | - | | | securitySolution | - | -| | actions, alerting, cases, dataEnhanced | - | -| | encryptedSavedObjects, actions, alerting | - | -| | discover, fleet, maps, ml, infra, stackAlerts, lens | - | -| | discover, fleet, maps, ml, infra, stackAlerts, lens | - | -| | discover, fleet, maps, ml, infra, stackAlerts, lens | - | | | fleet | - | -| | discoverEnhanced | - | -| | discoverEnhanced | - | -| | observability | - | -| | observability | - | -| | timelines | - | -| | timelines | - | -| | timelines | - | +| | canvas | - | | | dashboardEnhanced | - | | | dashboardEnhanced | - | -| | lens | - | -| | embeddable, discover, presentationUtil, dashboard, graph | - | -| | visualizations, discover, dashboard, savedObjectsManagement | - | -| | savedObjectsTaggingOss, visualizations, discover, dashboard, savedObjectsManagement | - | -| | canvas | - | +| | discoverEnhanced | - | +| | discoverEnhanced | - | +| | actions, alerting, cases, dataEnhanced | - | +| | encryptedSavedObjects, actions, alerting | - | | | security | - | \ No newline at end of file diff --git a/api_docs/deprecations_by_plugin.mdx b/api_docs/deprecations_by_plugin.mdx index c9c957387ee93..82ffc78870c78 100644 --- a/api_docs/deprecations_by_plugin.mdx +++ b/api_docs/deprecations_by_plugin.mdx @@ -22,10 +22,10 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [alerting_authorization_kuery.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization_kuery.ts#L11), [alerting_authorization_kuery.ts#L39](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization_kuery.ts#L39), [alerting_authorization_kuery.ts#L41](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization_kuery.ts#L41), [alerting_authorization.ts#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization.ts#L22), [alerting_authorization.ts#L278](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization.ts#L278), [rules_client.ts#L68](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L68), [rules_client.ts#L514](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L514), [rules_client.ts#L587](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L587) | - | +| | [alerting_authorization.ts#L23](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization.ts#L23), [alerting_authorization.ts#L281](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization.ts#L281), [rules_client.ts#L68](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L68), [rules_client.ts#L514](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L514), [rules_client.ts#L587](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L587) | - | | | [rules_client.ts#L68](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L68), [rules_client.ts#L512](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L512), [rules_client.ts#L585](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L585) | - | -| | [alerting_authorization_kuery.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization_kuery.ts#L11), [alerting_authorization_kuery.ts#L39](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization_kuery.ts#L39), [alerting_authorization_kuery.ts#L41](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization_kuery.ts#L41), [alerting_authorization.ts#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization.ts#L22), [alerting_authorization.ts#L278](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization.ts#L278), [rules_client.ts#L68](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L68), [rules_client.ts#L514](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L514), [rules_client.ts#L587](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L587) | - | -| | [alerting_authorization_kuery.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization_kuery.ts#L11), [alerting_authorization_kuery.ts#L39](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization_kuery.ts#L39), [alerting_authorization_kuery.ts#L41](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization_kuery.ts#L41), [alerting_authorization.ts#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization.ts#L22), [alerting_authorization.ts#L278](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization.ts#L278), [rules_client.ts#L68](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L68), [rules_client.ts#L514](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L514), [rules_client.ts#L587](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L587) | - | +| | [alerting_authorization.ts#L23](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization.ts#L23), [alerting_authorization.ts#L281](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization.ts#L281), [rules_client.ts#L68](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L68), [rules_client.ts#L514](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L514), [rules_client.ts#L587](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L587) | - | +| | [alerting_authorization.ts#L23](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization.ts#L23), [alerting_authorization.ts#L281](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/alerting_authorization.ts#L281), [rules_client.ts#L68](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L68), [rules_client.ts#L514](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L514), [rules_client.ts#L587](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client/rules_client.ts#L587) | - | | | [audit_logger.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/audit_logger.ts#L8), [audit_logger.ts#L21](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/audit_logger.ts#L21), [audit_logger.ts#L23](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/authorization/audit_logger.ts#L23), [rules_client_factory.test.ts#L23](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client_factory.test.ts#L23), [rules_client_factory.test.ts#L98](https://github.com/elastic/kibana/tree/master/x-pack/plugins/alerting/server/rules_client_factory.test.ts#L98) | - | @@ -34,8 +34,8 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [index.tsx#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx#L13), [index.tsx#L33](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx#L33), [index.tsx#L34](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx#L34) | - | | | [index.tsx#L14](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx#L14), [index.tsx#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx#L32) | - | +| | [index.tsx#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx#L13), [index.tsx#L33](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx#L33), [index.tsx#L34](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx#L34) | - | | | [index.tsx#L14](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx#L14), [index.tsx#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx#L32) | - | @@ -44,6 +44,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| +| | [build_embeddable_filters.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/build_embeddable_filters.ts#L11), [build_embeddable_filters.ts#L35](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/build_embeddable_filters.ts#L35) | - | | | [build_embeddable_filters.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/build_embeddable_filters.ts#L11), [saved_lens.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_lens.ts#L10), [saved_lens.d.ts#L3](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/target/types/canvas_plugin_src/functions/external/saved_lens.d.ts#L3), [build_embeddable_filters.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/build_embeddable_filters.ts#L11), [build_embeddable_filters.ts#L14](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/build_embeddable_filters.ts#L14), [build_embeddable_filters.ts#L33](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/build_embeddable_filters.ts#L33), [saved_lens.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_lens.ts#L10), [saved_lens.ts#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_lens.ts#L32), [saved_lens.d.ts#L3](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/target/types/canvas_plugin_src/functions/external/saved_lens.d.ts#L3), [saved_lens.d.ts#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/target/types/canvas_plugin_src/functions/external/saved_lens.d.ts#L16) | - | | | [build_embeddable_filters.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/build_embeddable_filters.ts#L11), [saved_lens.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_lens.ts#L10), [saved_lens.d.ts#L3](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/target/types/canvas_plugin_src/functions/external/saved_lens.d.ts#L3), [build_embeddable_filters.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/build_embeddable_filters.ts#L11), [build_embeddable_filters.ts#L14](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/build_embeddable_filters.ts#L14), [build_embeddable_filters.ts#L33](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/build_embeddable_filters.ts#L33), [saved_lens.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_lens.ts#L10), [saved_lens.ts#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_lens.ts#L32), [saved_lens.d.ts#L3](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/target/types/canvas_plugin_src/functions/external/saved_lens.d.ts#L3), [saved_lens.d.ts#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/target/types/canvas_plugin_src/functions/external/saved_lens.d.ts#L16) | - | | | [build_embeddable_filters.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/build_embeddable_filters.ts#L11), [saved_lens.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_lens.ts#L10), [saved_lens.d.ts#L3](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/target/types/canvas_plugin_src/functions/external/saved_lens.d.ts#L3), [build_embeddable_filters.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/build_embeddable_filters.ts#L11), [build_embeddable_filters.ts#L14](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/build_embeddable_filters.ts#L14), [build_embeddable_filters.ts#L33](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/build_embeddable_filters.ts#L33), [saved_lens.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_lens.ts#L10), [saved_lens.ts#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_lens.ts#L32), [saved_lens.d.ts#L3](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/target/types/canvas_plugin_src/functions/external/saved_lens.d.ts#L3), [saved_lens.d.ts#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/target/types/canvas_plugin_src/functions/external/saved_lens.d.ts#L16) | - | @@ -74,6 +75,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| +| | [save_dashboard.ts#L19](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/save_dashboard.ts#L19), [save_dashboard.ts#L82](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/save_dashboard.ts#L82), [diff_dashboard_state.ts#L11](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts#L11), [diff_dashboard_state.ts#L101](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts#L101), [diff_dashboard_state.ts#L103](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts#L103), [diff_dashboard_state.ts#L104](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts#L104), [sync_dashboard_container_input.ts#L14](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts#L14), [sync_dashboard_container_input.ts#L98](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts#L98), [sync_dashboard_container_input.ts#L101](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts#L101), [plugin.tsx#L37](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/plugin.tsx#L37)+ 7 more | - | | | [filter_utils.ts#L13](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#L13), [filter_utils.ts#L56](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#L56), [filter_utils.ts#L58](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#L58), [filter_utils.ts#L68](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#L68), [filter_utils.ts#L68](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#L68), [saved_dashboard.ts#L11](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#L11), [saved_dashboard.ts#L33](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#L33), [dashboard_state_slice.ts#L11](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#L11), [dashboard_state_slice.ts#L74](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#L74), [dashboard_state_slice.ts#L78](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#L78)+ 26 more | - | | | [filter_utils.ts#L13](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#L13), [filter_utils.ts#L56](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#L56), [filter_utils.ts#L58](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#L58), [filter_utils.ts#L68](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#L68), [filter_utils.ts#L68](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#L68), [saved_dashboard.ts#L11](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#L11), [saved_dashboard.ts#L33](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#L33), [dashboard_state_slice.ts#L11](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#L11), [dashboard_state_slice.ts#L74](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#L74), [dashboard_state_slice.ts#L78](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#L78)+ 26 more | - | | | [filter_utils.ts#L13](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#L13), [filter_utils.ts#L56](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#L56), [filter_utils.ts#L58](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#L58), [filter_utils.ts#L68](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#L68), [filter_utils.ts#L68](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#L68), [saved_dashboard.ts#L11](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#L11), [saved_dashboard.ts#L33](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#L33), [dashboard_state_slice.ts#L11](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#L11), [dashboard_state_slice.ts#L74](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#L74), [dashboard_state_slice.ts#L78](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#L78)+ 26 more | - | @@ -87,6 +89,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| +| | [embeddable_to_dashboard_drilldown.tsx#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx#L13), [embeddable_to_dashboard_drilldown.tsx#L73](https://github.com/elastic/kibana/tree/master/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx#L73), [embeddable_to_dashboard_drilldown.tsx#L79](https://github.com/elastic/kibana/tree/master/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx#L79) | - | | | [embeddable_to_dashboard_drilldown.tsx#L15](https://github.com/elastic/kibana/tree/master/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx#L15), [embeddable_to_dashboard_drilldown.tsx#L70](https://github.com/elastic/kibana/tree/master/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx#L70) | - | | | [embeddable_to_dashboard_drilldown.tsx#L14](https://github.com/elastic/kibana/tree/master/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx#L14), [embeddable_to_dashboard_drilldown.tsx#L33](https://github.com/elastic/kibana/tree/master/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx#L33) | - | | | [embeddable_to_dashboard_drilldown.tsx#L15](https://github.com/elastic/kibana/tree/master/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx#L15), [embeddable_to_dashboard_drilldown.tsx#L70](https://github.com/elastic/kibana/tree/master/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx#L70) | - | @@ -121,6 +124,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | ---------------|-----------|-----------| | | [kibana_services.ts#L101](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/kibana_services.ts#L101), [create_doc_table_react.tsx#L15](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/angular/doc_table/create_doc_table_react.tsx#L15), [create_doc_table_react.tsx#L25](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/angular/doc_table/create_doc_table_react.tsx#L25), [types.ts#L16](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/embeddable/types.ts#L16), [types.ts#L30](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/embeddable/types.ts#L30) | - | | | [kibana_services.ts#L104](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/kibana_services.ts#L104), [saved_search_embeddable.tsx#L25](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx#L25), [saved_search_embeddable.tsx#L53](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx#L53) | - | +| | [url_generator.ts#L11](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#L11), [url_generator.ts#L121](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#L121), [url_generator.ts#L130](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#L130), [locator.ts#L12](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#L12), [locator.ts#L120](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#L120), [locator.ts#L129](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#L129), [get_context_url.tsx#L12](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/helpers/get_context_url.tsx#L12), [get_context_url.tsx#L35](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/helpers/get_context_url.tsx#L35), [discover_state.ts#L25](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/apps/main/services/discover_state.ts#L25), [discover_state.ts#L264](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/apps/main/services/discover_state.ts#L264)+ 17 more | - | | | [url_generator.ts#L10](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#L10), [url_generator.ts#L40](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#L40), [url_generator.ts#L110](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#L110), [locator.ts#L10](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#L10), [locator.ts#L41](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#L41), [locator.ts#L109](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#L109), [types.ts#L16](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/embeddable/types.ts#L16), [types.ts#L22](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/embeddable/types.ts#L22), [context.ts#L10](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/angular/context/api/context.ts#L10), [context.ts#L57](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/angular/context/api/context.ts#L57)+ 15 more | - | | | [url_generator.ts#L10](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#L10), [url_generator.ts#L40](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#L40), [url_generator.ts#L110](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#L110), [locator.ts#L10](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#L10), [locator.ts#L41](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#L41), [locator.ts#L109](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#L109), [types.ts#L16](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/embeddable/types.ts#L16), [types.ts#L22](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/embeddable/types.ts#L22), [context.ts#L10](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/angular/context/api/context.ts#L10), [context.ts#L57](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/angular/context/api/context.ts#L57)+ 15 more | - | | | [kibana_services.ts#L104](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/kibana_services.ts#L104), [saved_search_embeddable.tsx#L25](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx#L25), [saved_search_embeddable.tsx#L53](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx#L53) | - | @@ -137,6 +141,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| +| | [explore_data_chart_action.ts#L15](https://github.com/elastic/kibana/tree/master/x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_chart_action.ts#L15), [explore_data_chart_action.ts#L57](https://github.com/elastic/kibana/tree/master/x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_chart_action.ts#L57) | - | | | [explore_data_chart_action.test.ts#L18](https://github.com/elastic/kibana/tree/master/x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_chart_action.test.ts#L18), [explore_data_chart_action.test.ts#L237](https://github.com/elastic/kibana/tree/master/x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_chart_action.test.ts#L237) | - | | | [explore_data_context_menu_action.ts#L14](https://github.com/elastic/kibana/tree/master/x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_context_menu_action.ts#L14), [explore_data_context_menu_action.ts#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_context_menu_action.ts#L22), [explore_data_chart_action.test.ts#L18](https://github.com/elastic/kibana/tree/master/x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_chart_action.test.ts#L18), [explore_data_chart_action.test.ts#L41](https://github.com/elastic/kibana/tree/master/x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_chart_action.test.ts#L41), [explore_data_chart_action.test.ts#L237](https://github.com/elastic/kibana/tree/master/x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_chart_action.test.ts#L237) | - | | | [explore_data_context_menu_action.ts#L14](https://github.com/elastic/kibana/tree/master/x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_context_menu_action.ts#L14), [explore_data_context_menu_action.ts#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_context_menu_action.ts#L22), [explore_data_chart_action.test.ts#L18](https://github.com/elastic/kibana/tree/master/x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_chart_action.test.ts#L18), [explore_data_chart_action.test.ts#L41](https://github.com/elastic/kibana/tree/master/x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_chart_action.test.ts#L41), [explore_data_chart_action.test.ts#L237](https://github.com/elastic/kibana/tree/master/x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_chart_action.test.ts#L237) | - | @@ -165,13 +170,13 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [crud.ts#L18](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L18), [crud.ts#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L27), [crud.ts#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L27), [crud.ts#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L31), [crud.ts#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L31), [crud.ts#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L32), [crud.ts#L37](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L37), [crud.ts#L51](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L51), [status.ts#L15](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/status.ts#L15), [status.ts#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/status.ts#L32)+ 11 more | - | -| | [search_bar.tsx#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.tsx#L11), [search_bar.tsx#L41](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.tsx#L41), [agent_logs.tsx#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/agent_logs.tsx#L32), [agent_logs.tsx#L174](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/agent_logs.tsx#L174) | - | | | [search_bar.tsx#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.tsx#L10), [search_bar.tsx#L33](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.tsx#L33), [search_bar.tsx#L51](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.tsx#L51), [query_bar.tsx#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/query_bar.tsx#L11), [query_bar.tsx#L30](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/query_bar.tsx#L30), [query_bar.tsx#L38](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/query_bar.tsx#L38) | - | -| | [crud.ts#L18](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L18), [crud.ts#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L27), [crud.ts#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L27), [crud.ts#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L31), [crud.ts#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L31), [crud.ts#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L32), [crud.ts#L37](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L37), [crud.ts#L51](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L51), [status.ts#L15](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/status.ts#L15), [status.ts#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/status.ts#L32)+ 11 more | - | +| | [crud.ts#L18](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L18), [crud.ts#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L27), [crud.ts#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L27), [crud.ts#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L31), [crud.ts#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L31), [crud.ts#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L32), [crud.ts#L37](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L37), [crud.ts#L51](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L51), [status.ts#L15](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/status.ts#L15), [status.ts#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/status.ts#L31)+ 11 more | - | +| | [search_bar.tsx#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.tsx#L11), [search_bar.tsx#L41](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.tsx#L41), [agent_logs.tsx#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/agent_logs.tsx#L32), [agent_logs.tsx#L174](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/agent_logs.tsx#L174) | - | +| | [crud.ts#L18](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L18), [crud.ts#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L27), [crud.ts#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L27), [crud.ts#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L31), [crud.ts#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L31), [crud.ts#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L32), [crud.ts#L37](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L37), [crud.ts#L51](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L51), [status.ts#L15](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/status.ts#L15), [status.ts#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/status.ts#L31)+ 11 more | - | | | [search_bar.tsx#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.tsx#L10), [search_bar.tsx#L33](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.tsx#L33), [search_bar.tsx#L51](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.tsx#L51), [query_bar.tsx#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/query_bar.tsx#L11), [query_bar.tsx#L30](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/query_bar.tsx#L30), [query_bar.tsx#L38](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/query_bar.tsx#L38) | - | -| | [crud.ts#L18](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L18), [crud.ts#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L27), [crud.ts#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L27), [crud.ts#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L31), [crud.ts#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L31), [crud.ts#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L32), [crud.ts#L37](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L37), [crud.ts#L51](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L51), [status.ts#L15](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/status.ts#L15), [status.ts#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/status.ts#L32)+ 11 more | - | | | [search_bar.tsx#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.tsx#L10), [search_bar.tsx#L33](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.tsx#L33), [search_bar.tsx#L51](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.tsx#L51), [query_bar.tsx#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/query_bar.tsx#L11), [query_bar.tsx#L30](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/query_bar.tsx#L30), [query_bar.tsx#L38](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/query_bar.tsx#L38) | - | +| | [crud.ts#L18](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L18), [crud.ts#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L27), [crud.ts#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L27), [crud.ts#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L31), [crud.ts#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L31), [crud.ts#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L32), [crud.ts#L37](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L37), [crud.ts#L51](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/crud.ts#L51), [status.ts#L15](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/status.ts#L15), [status.ts#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/services/agents/status.ts#L31)+ 11 more | - | | | [plugin.ts#L14](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/plugin.ts#L14), [plugin.ts#L184](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/server/plugin.ts#L184), [plugin.d.ts#L2](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/target/types/server/plugin.d.ts#L2), [plugin.d.ts#L84](https://github.com/elastic/kibana/tree/master/x-pack/plugins/fleet/target/types/server/plugin.d.ts#L84) | - | @@ -210,14 +215,24 @@ warning: This document is auto-generated and is meant to be viewed inside our ex +## indexPatternFieldEditor + +| Deprecated API | Reference location(s) | Remove By | +| ---------------|-----------|-----------| +| | [field_format_editor.tsx#L22](https://github.com/elastic/kibana/tree/master/src/plugins/index_pattern_field_editor/public/components/field_format_editor/field_format_editor.tsx#L22), [field_format_editor.tsx#L83](https://github.com/elastic/kibana/tree/master/src/plugins/index_pattern_field_editor/public/components/field_format_editor/field_format_editor.tsx#L83) | 8.0 | +| | [field_format_editor.tsx#L22](https://github.com/elastic/kibana/tree/master/src/plugins/index_pattern_field_editor/public/components/field_format_editor/field_format_editor.tsx#L22), [field_format_editor.tsx#L83](https://github.com/elastic/kibana/tree/master/src/plugins/index_pattern_field_editor/public/components/field_format_editor/field_format_editor.tsx#L83) | 8.0 | +| | [field_format_editor.tsx#L22](https://github.com/elastic/kibana/tree/master/src/plugins/index_pattern_field_editor/public/components/field_format_editor/field_format_editor.tsx#L22), [field_format_editor.tsx#L83](https://github.com/elastic/kibana/tree/master/src/plugins/index_pattern_field_editor/public/components/field_format_editor/field_format_editor.tsx#L83) | 8.0 | + + + ## infra | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [kuery_bar.tsx#L14](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/metrics_explorer/components/kuery_bar.tsx#L14), [kuery_bar.tsx#L38](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/metrics_explorer/components/kuery_bar.tsx#L38), [kuery.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/utils/kuery.ts#L8), [kuery.ts#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/utils/kuery.ts#L17), [kuery.ts#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/utils/kuery.ts#L17), [use_waffle_filters.ts#L18](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_filters.ts#L18), [use_waffle_filters.ts#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_filters.ts#L22) | - | -| | [index.ts#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/containers/logs/log_stream/index.ts#L13), [index.ts#L21](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/containers/logs/log_stream/index.ts#L21), [log_stream.tsx#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/components/log_stream/log_stream.tsx#L11), [log_stream.tsx#L126](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/components/log_stream/log_stream.tsx#L126), [log_stream.tsx#L128](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/components/log_stream/log_stream.tsx#L128), [log_filter_state.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/containers/logs/log_filter/log_filter_state.ts#L11), [log_filter_state.ts#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/containers/logs/log_filter/log_filter_state.ts#L13), [log_filter_state.ts#L40](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/containers/logs/log_filter/log_filter_state.ts#L40) | - | | | [with_kuery_autocompletion.tsx#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/containers/with_kuery_autocompletion.tsx#L9), [with_kuery_autocompletion.tsx#L24](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/containers/with_kuery_autocompletion.tsx#L24), [kuery_bar.tsx#L15](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/metrics_explorer/components/kuery_bar.tsx#L15), [kuery_bar.tsx#L28](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/metrics_explorer/components/kuery_bar.tsx#L28), [toolbar.tsx#L21](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/toolbar.tsx#L21), [toolbar.tsx#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/toolbar.tsx#L27), [kuery.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/utils/kuery.ts#L8), [kuery.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/utils/kuery.ts#L12), [use_metrics_explorer_data.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metrics_explorer_data.ts#L11), [use_metrics_explorer_data.ts#L30](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metrics_explorer_data.ts#L30)+ 34 more | - | | | [custom_metric_form.tsx#L23](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/custom_metric_form.tsx#L23), [custom_metric_form.tsx#L56](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/custom_metric_form.tsx#L56), [index.tsx#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/index.tsx#L11), [index.tsx#L29](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/index.tsx#L29), [custom_field_panel.tsx#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/custom_field_panel.tsx#L11), [custom_field_panel.tsx#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/custom_field_panel.tsx#L16), [waffle_group_by_controls.tsx#L18](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_group_by_controls.tsx#L18), [waffle_group_by_controls.tsx#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_group_by_controls.tsx#L32), [metric.tsx#L25](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/alerting/inventory/components/metric.tsx#L25), [metric.tsx#L45](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/alerting/inventory/components/metric.tsx#L45)+ 46 more | - | +| | [kuery_bar.tsx#L14](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/metrics_explorer/components/kuery_bar.tsx#L14), [kuery_bar.tsx#L38](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/metrics_explorer/components/kuery_bar.tsx#L38), [kuery.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/utils/kuery.ts#L8), [kuery.ts#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/utils/kuery.ts#L17), [kuery.ts#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/utils/kuery.ts#L17), [use_waffle_filters.ts#L18](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_filters.ts#L18), [use_waffle_filters.ts#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_filters.ts#L22) | - | +| | [index.ts#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/containers/logs/log_stream/index.ts#L13), [index.ts#L21](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/containers/logs/log_stream/index.ts#L21), [log_stream.tsx#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/components/log_stream/log_stream.tsx#L11), [log_stream.tsx#L126](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/components/log_stream/log_stream.tsx#L126), [log_stream.tsx#L128](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/components/log_stream/log_stream.tsx#L128), [log_filter_state.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/containers/logs/log_filter/log_filter_state.ts#L11), [log_filter_state.ts#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/containers/logs/log_filter/log_filter_state.ts#L13), [log_filter_state.ts#L40](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/containers/logs/log_filter/log_filter_state.ts#L40) | - | | | [log_stream.tsx#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/components/log_stream/log_stream.tsx#L11), [log_stream.tsx#L70](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/components/log_stream/log_stream.tsx#L70), [log_stream_embeddable.tsx#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/components/log_stream/log_stream_embeddable.tsx#L12), [log_stream_embeddable.tsx#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/components/log_stream/log_stream_embeddable.tsx#L27), [use_dataset_filtering.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/logs/log_entry_rate/use_dataset_filtering.ts#L10), [use_dataset_filtering.ts#L15](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/logs/log_entry_rate/use_dataset_filtering.ts#L15), [use_dataset_filtering.ts#L20](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/logs/log_entry_rate/use_dataset_filtering.ts#L20) | - | | | [log_stream.tsx#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/components/log_stream/log_stream.tsx#L11), [log_stream.tsx#L70](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/components/log_stream/log_stream.tsx#L70), [log_stream_embeddable.tsx#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/components/log_stream/log_stream_embeddable.tsx#L12), [log_stream_embeddable.tsx#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/components/log_stream/log_stream_embeddable.tsx#L27), [use_dataset_filtering.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/logs/log_entry_rate/use_dataset_filtering.ts#L10), [use_dataset_filtering.ts#L15](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/logs/log_entry_rate/use_dataset_filtering.ts#L15), [use_dataset_filtering.ts#L20](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/logs/log_entry_rate/use_dataset_filtering.ts#L20) | - | | | [custom_metric_form.tsx#L23](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/custom_metric_form.tsx#L23), [custom_metric_form.tsx#L56](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/custom_metric_form.tsx#L56), [index.tsx#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/index.tsx#L11), [index.tsx#L29](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/index.tsx#L29), [custom_field_panel.tsx#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/custom_field_panel.tsx#L11), [custom_field_panel.tsx#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/custom_field_panel.tsx#L16), [waffle_group_by_controls.tsx#L18](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_group_by_controls.tsx#L18), [waffle_group_by_controls.tsx#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_group_by_controls.tsx#L32), [metric.tsx#L25](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/alerting/inventory/components/metric.tsx#L25), [metric.tsx#L45](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/alerting/inventory/components/metric.tsx#L45)+ 46 more | - | @@ -231,10 +246,11 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [validation.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula/validation.ts#L12), [validation.ts#L185](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula/validation.ts#L185), [validation.ts#L185](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula/validation.ts#L185), [filters.tsx#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filters.tsx#L22), [filters.tsx#L63](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filters.tsx#L63), [filters.tsx#L63](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filters.tsx#L63) | - | -| | [validation.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula/validation.ts#L12), [validation.ts#L187](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula/validation.ts#L187), [filters.tsx#L23](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filters.tsx#L23), [filters.tsx#L65](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filters.tsx#L65), [index.tsx#L24](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/index.tsx#L24), [index.tsx#L101](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/index.tsx#L101), [index.tsx#L105](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/index.tsx#L105), [field_item.tsx#L46](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/field_item.tsx#L46), [field_item.tsx#L171](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/field_item.tsx#L171), [field_item.tsx#L175](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/field_item.tsx#L175)+ 3 more | - | | | [index.tsx#L25](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/index.tsx#L25), [index.tsx#L102](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/index.tsx#L102), [field_item.tsx#L47](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/field_item.tsx#L47), [field_item.tsx#L172](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/field_item.tsx#L172), [datapanel.tsx#L43](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/datapanel.tsx#L43), [datapanel.tsx#L97](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/datapanel.tsx#L97), [datapanel.tsx#L167](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/datapanel.tsx#L167), [embeddable.tsx#L15](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#L15), [embeddable.tsx#L86](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#L86), [embeddable.d.ts#L3](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/public/embeddable/embeddable.d.ts#L3)+ 1 more | - | | | [types.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/types.ts#L8), [types.ts#L60](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/types.ts#L60), [types.d.ts#L1](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/public/indexpattern_datasource/types.d.ts#L1), [types.d.ts#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/public/indexpattern_datasource/types.d.ts#L22) | - | +| | [save_modal_container.tsx#L19](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/app_plugin/save_modal_container.tsx#L19), [save_modal_container.tsx#L355](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/app_plugin/save_modal_container.tsx#L355), [mocks.tsx#L24](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/mocks.tsx#L24), [mocks.tsx#L249](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/mocks.tsx#L249), [time_range_middleware.test.ts#L18](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/state_management/time_range_middleware.test.ts#L18), [time_range_middleware.test.ts#L62](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/state_management/time_range_middleware.test.ts#L62) | - | +| | [validation.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula/validation.ts#L12), [validation.ts#L185](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula/validation.ts#L185), [validation.ts#L185](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula/validation.ts#L185), [filters.tsx#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filters.tsx#L22), [filters.tsx#L64](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filters.tsx#L64), [filters.tsx#L64](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filters.tsx#L64) | - | +| | [validation.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula/validation.ts#L12), [validation.ts#L187](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula/validation.ts#L187), [filters.tsx#L23](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filters.tsx#L23), [filters.tsx#L66](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filters.tsx#L66), [index.tsx#L24](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/index.tsx#L24), [index.tsx#L101](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/index.tsx#L101), [index.tsx#L105](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/index.tsx#L105), [field_item.tsx#L46](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/field_item.tsx#L46), [field_item.tsx#L171](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/field_item.tsx#L171), [field_item.tsx#L175](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/field_item.tsx#L175)+ 3 more | - | | | [types.ts#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/types.ts#L22), [types.ts#L273](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/types.ts#L273), [types.ts#L518](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/types.ts#L518), [filter_references.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/persistence/filter_references.ts#L8), [filter_references.ts#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/persistence/filter_references.ts#L13), [filter_references.ts#L49](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/persistence/filter_references.ts#L49), [utils.ts#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/utils.ts#L13), [utils.ts#L72](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/utils.ts#L72), [field_item.tsx#L45](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/field_item.tsx#L45), [field_item.tsx#L73](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/field_item.tsx#L73)+ 25 more | - | | | [types.ts#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/types.ts#L22), [types.ts#L273](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/types.ts#L273), [types.ts#L518](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/types.ts#L518), [filter_references.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/persistence/filter_references.ts#L8), [filter_references.ts#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/persistence/filter_references.ts#L13), [filter_references.ts#L49](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/persistence/filter_references.ts#L49), [utils.ts#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/utils.ts#L13), [utils.ts#L72](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/utils.ts#L72), [field_item.tsx#L45](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/field_item.tsx#L45), [field_item.tsx#L73](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/field_item.tsx#L73)+ 25 more | - | | | [types.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/common/types.ts#L8), [types.ts#L23](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/common/types.ts#L23) | - | @@ -261,6 +277,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | ---------------|-----------|-----------| | | [types.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#L8), [types.ts#L44](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#L44) | - | | | [es_doc_field.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/es_doc_field.ts#L12), [es_doc_field.ts#L45](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/es_doc_field.ts#L45), [es_source.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts#L10), [es_source.ts#L367](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts#L367), [index_pattern_util.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/index_pattern_util.ts#L8), [index_pattern_util.ts#L15](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/index_pattern_util.ts#L15), [index_pattern_util.ts#L49](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/index_pattern_util.ts#L49), [index_pattern_util.ts#L49](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/index_pattern_util.ts#L49), [index_pattern_util.ts#L59](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/index_pattern_util.ts#L59), [index_pattern_util.ts#L59](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/index_pattern_util.ts#L59)+ 84 more | - | +| | [es_tooltip_property.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts#L12), [es_tooltip_property.ts#L86](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts#L86), [es_tooltip_property.ts#L90](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts#L90), [es_geo_line_source.tsx#L38](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx#L38), [es_geo_line_source.tsx#L245](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx#L245), [app_sync.ts#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/url_state/app_sync.ts#L9), [app_sync.ts#L42](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/url_state/app_sync.ts#L42), [map_app.tsx#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#L32), [map_app.tsx#L439](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#L439), [map_embeddable.tsx#L25](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/map_embeddable.tsx#L25)+ 6 more | - | | | [types.ts#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/reducers/map/types.ts#L22), [types.ts#L37](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/reducers/map/types.ts#L37), [tooltip_property.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/tooltip_property.ts#L10), [tooltip_property.ts#L21](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/tooltip_property.ts#L21), [tooltip_property.ts#L35](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/tooltip_property.ts#L35), [tooltip_property.ts#L94](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/tooltip_property.ts#L94), [vector_source.tsx#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/vector_source/vector_source.tsx#L9), [vector_source.tsx#L40](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/vector_source/vector_source.tsx#L40), [es_tooltip_property.ts#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts#L13), [es_tooltip_property.ts#L78](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts#L78)+ 92 more | - | | | [types.ts#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/reducers/map/types.ts#L22), [types.ts#L37](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/reducers/map/types.ts#L37), [tooltip_property.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/tooltip_property.ts#L10), [tooltip_property.ts#L21](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/tooltip_property.ts#L21), [tooltip_property.ts#L35](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/tooltip_property.ts#L35), [tooltip_property.ts#L94](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/tooltip_property.ts#L94), [vector_source.tsx#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/vector_source/vector_source.tsx#L9), [vector_source.tsx#L40](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/vector_source/vector_source.tsx#L40), [es_tooltip_property.ts#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts#L13), [es_tooltip_property.ts#L78](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts#L78)+ 92 more | - | | | [es_doc_field.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/es_doc_field.ts#L12), [es_doc_field.ts#L45](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/es_doc_field.ts#L45), [es_source.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts#L10), [es_source.ts#L367](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts#L367), [index_pattern_util.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/index_pattern_util.ts#L8), [index_pattern_util.ts#L15](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/index_pattern_util.ts#L15), [index_pattern_util.ts#L49](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/index_pattern_util.ts#L49), [index_pattern_util.ts#L49](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/index_pattern_util.ts#L49), [index_pattern_util.ts#L59](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/index_pattern_util.ts#L59), [index_pattern_util.ts#L59](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/index_pattern_util.ts#L59)+ 84 more | - | @@ -274,10 +291,10 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [new_job_utils.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/jobs/new_job/utils/new_job_utils.ts#L10), [new_job_utils.ts#L56](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/jobs/new_job/utils/new_job_utils.ts#L56), [new_job_utils.ts#L58](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/jobs/new_job/utils/new_job_utils.ts#L58), [exploration_query_bar.tsx#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/exploration_query_bar/exploration_query_bar.tsx#L16), [exploration_query_bar.tsx#L99](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/exploration_query_bar/exploration_query_bar.tsx#L99), [exploration_query_bar.tsx#L100](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/exploration_query_bar/exploration_query_bar.tsx#L100), [use_saved_search.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_creation/components/configuration_step/use_saved_search.ts#L10), [use_saved_search.ts#L42](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_creation/components/configuration_step/use_saved_search.ts#L42), [use_saved_search.ts#L43](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_creation/components/configuration_step/use_saved_search.ts#L43), [process_filters.ts#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/embeddables/common/process_filters.ts#L9)+ 6 more | - | -| | [new_job_utils.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/jobs/new_job/utils/new_job_utils.ts#L10), [new_job_utils.ts#L60](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/jobs/new_job/utils/new_job_utils.ts#L60), [new_job_utils.ts#L75](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/jobs/new_job/utils/new_job_utils.ts#L75), [new_job_utils.ts#L76](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/jobs/new_job/utils/new_job_utils.ts#L76), [exploration_query_bar.tsx#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/exploration_query_bar/exploration_query_bar.tsx#L17), [exploration_query_bar.tsx#L105](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/exploration_query_bar/exploration_query_bar.tsx#L105), [use_saved_search.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_creation/components/configuration_step/use_saved_search.ts#L10), [use_saved_search.ts#L45](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_creation/components/configuration_step/use_saved_search.ts#L45), [use_saved_search.ts#L46](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_creation/components/configuration_step/use_saved_search.ts#L46), [process_filters.ts#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/embeddables/common/process_filters.ts#L9)+ 3 more | - | | | [index_utils.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/util/index_utils.ts#L11), [index_utils.ts#L79](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/util/index_utils.ts#L79), [new_job_capabilities_service_analytics.ts#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/services/new_job_capabilities/new_job_capabilities_service_analytics.ts#L9), [new_job_capabilities_service_analytics.ts#L45](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/services/new_job_capabilities/new_job_capabilities_service_analytics.ts#L45), [data_recognizer.d.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/components/data_recognizer/data_recognizer.d.ts#L10), [data_recognizer.d.ts#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/components/data_recognizer/data_recognizer.d.ts#L13), [new_job_capabilities_service.ts#L14](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/services/new_job_capabilities/new_job_capabilities_service.ts#L14), [new_job_capabilities_service.ts#L39](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/services/new_job_capabilities/new_job_capabilities_service.ts#L39), [load_new_job_capabilities.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/services/new_job_capabilities/load_new_job_capabilities.ts#L8), [load_new_job_capabilities.ts#L30](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/services/new_job_capabilities/load_new_job_capabilities.ts#L30)+ 26 more | - | | | [common.ts#L24](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/components/data_grid/common.ts#L24), [common.ts#L222](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/components/data_grid/common.ts#L222), [field_types_utils.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/util/field_types_utils.ts#L11), [field_types_utils.ts#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/util/field_types_utils.ts#L16), [field_types_utils.test.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/util/field_types_utils.test.ts#L8), [field_types_utils.test.ts#L19](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/util/field_types_utils.test.ts#L19), [field_types_utils.test.ts#L40](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/util/field_types_utils.test.ts#L40), [field_types_utils.test.ts#L49](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/util/field_types_utils.test.ts#L49), [field_types_utils.test.ts#L58](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/util/field_types_utils.test.ts#L58) | - | +| | [new_job_utils.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/jobs/new_job/utils/new_job_utils.ts#L10), [new_job_utils.ts#L56](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/jobs/new_job/utils/new_job_utils.ts#L56), [new_job_utils.ts#L58](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/jobs/new_job/utils/new_job_utils.ts#L58), [exploration_query_bar.tsx#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/exploration_query_bar/exploration_query_bar.tsx#L16), [exploration_query_bar.tsx#L99](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/exploration_query_bar/exploration_query_bar.tsx#L99), [exploration_query_bar.tsx#L100](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/exploration_query_bar/exploration_query_bar.tsx#L100), [use_saved_search.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_creation/components/configuration_step/use_saved_search.ts#L10), [use_saved_search.ts#L42](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_creation/components/configuration_step/use_saved_search.ts#L42), [use_saved_search.ts#L43](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_creation/components/configuration_step/use_saved_search.ts#L43), [process_filters.ts#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/embeddables/common/process_filters.ts#L9)+ 6 more | - | +| | [new_job_utils.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/jobs/new_job/utils/new_job_utils.ts#L10), [new_job_utils.ts#L60](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/jobs/new_job/utils/new_job_utils.ts#L60), [new_job_utils.ts#L75](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/jobs/new_job/utils/new_job_utils.ts#L75), [new_job_utils.ts#L76](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/jobs/new_job/utils/new_job_utils.ts#L76), [exploration_query_bar.tsx#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/exploration_query_bar/exploration_query_bar.tsx#L17), [exploration_query_bar.tsx#L105](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/exploration_query_bar/exploration_query_bar.tsx#L105), [use_saved_search.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_creation/components/configuration_step/use_saved_search.ts#L10), [use_saved_search.ts#L45](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_creation/components/configuration_step/use_saved_search.ts#L45), [use_saved_search.ts#L46](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_creation/components/configuration_step/use_saved_search.ts#L46), [process_filters.ts#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/embeddables/common/process_filters.ts#L9)+ 3 more | - | | | [apply_influencer_filters_action.tsx#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/ui_actions/apply_influencer_filters_action.tsx#L12), [apply_influencer_filters_action.tsx#L40](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/ui_actions/apply_influencer_filters_action.tsx#L40), [apply_entity_filters_action.tsx#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/ui_actions/apply_entity_filters_action.tsx#L11), [apply_entity_filters_action.tsx#L45](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/ui_actions/apply_entity_filters_action.tsx#L45) | - | | | [apply_influencer_filters_action.tsx#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/ui_actions/apply_influencer_filters_action.tsx#L12), [apply_influencer_filters_action.tsx#L40](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/ui_actions/apply_influencer_filters_action.tsx#L40), [apply_entity_filters_action.tsx#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/ui_actions/apply_entity_filters_action.tsx#L11), [apply_entity_filters_action.tsx#L45](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/ui_actions/apply_entity_filters_action.tsx#L45) | - | | | [common.ts#L24](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/components/data_grid/common.ts#L24), [common.ts#L222](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/components/data_grid/common.ts#L222), [field_types_utils.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/util/field_types_utils.ts#L11), [field_types_utils.ts#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/util/field_types_utils.ts#L16), [field_types_utils.test.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/util/field_types_utils.test.ts#L8), [field_types_utils.test.ts#L19](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/util/field_types_utils.test.ts#L19), [field_types_utils.test.ts#L40](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/util/field_types_utils.test.ts#L40), [field_types_utils.test.ts#L49](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/util/field_types_utils.test.ts#L49), [field_types_utils.test.ts#L58](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/util/field_types_utils.test.ts#L58) | - | @@ -291,8 +308,9 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [utils.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#L11), [utils.ts#L83](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#L83), [lens_attributes.ts#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#L32), [lens_attributes.ts#L481](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#L481), [lens_attributes.ts#L510](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#L510) | - | | | [types.ts#L20](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/types.ts#L20), [types.ts#L95](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/types.ts#L95), [alerts_search_bar.tsx#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/pages/alerts/alerts_search_bar.tsx#L10), [alerts_search_bar.tsx#L20](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/pages/alerts/alerts_search_bar.tsx#L20), [utils.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#L10), [utils.ts#L59](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#L59), [utils.ts#L67](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#L67), [utils.ts#L75](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#L75), [utils.ts#L92](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#L92) | - | +| | [utils.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#L11), [utils.ts#L62](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#L62), [utils.ts#L70](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#L70), [utils.ts#L78](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#L78), [filter_value_label.tsx#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/filter_value_label/filter_value_label.tsx#L10), [filter_value_label.tsx#L30](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/filter_value_label/filter_value_label.tsx#L30), [filter_value_label.tsx#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/filter_value_label/filter_value_label.tsx#L31), [filter_value_label.tsx#L64](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/filter_value_label/filter_value_label.tsx#L64) | - | +| | [utils.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#L11), [utils.ts#L83](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#L83), [lens_attributes.ts#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#L32), [lens_attributes.ts#L481](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#L481), [lens_attributes.ts#L510](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#L510) | - | | | [filter_value_label.tsx#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/filter_value_label/filter_value_label.tsx#L10), [filter_value_label.tsx#L80](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/filter_value_label/filter_value_label.tsx#L80) | - | | | [filter_value_label.tsx#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/filter_value_label/filter_value_label.tsx#L10), [filter_value_label.tsx#L80](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/filter_value_label/filter_value_label.tsx#L80) | - | | | [utils.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#L11), [utils.ts#L83](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#L83), [lens_attributes.ts#L32](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#L32), [lens_attributes.ts#L481](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#L481), [lens_attributes.ts#L510](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#L510) | - | @@ -323,7 +341,10 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| | | [flyout.tsx#L37](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx#L37), [flyout.tsx#L89](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx#L89) | - | +| | [create_field_list.ts#L11](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/lib/create_field_list.ts#L11), [create_field_list.ts#L94](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/lib/create_field_list.ts#L94) | 8.0 | | | [flyout.tsx#L37](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx#L37), [flyout.tsx#L89](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx#L89) | - | +| | [create_field_list.ts#L11](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/lib/create_field_list.ts#L11), [create_field_list.ts#L94](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/lib/create_field_list.ts#L94) | 8.0 | +| | [create_field_list.ts#L11](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/lib/create_field_list.ts#L11), [create_field_list.ts#L94](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/lib/create_field_list.ts#L94) | 8.0 | | | [service_registry.ts#L10](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/services/service_registry.ts#L10), [service_registry.ts#L14](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/services/service_registry.ts#L14), [resolve_saved_objects.ts#L12](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/lib/resolve_saved_objects.ts#L12), [resolve_saved_objects.ts#L24](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/lib/resolve_saved_objects.ts#L24), [resolve_saved_objects.ts#L239](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/lib/resolve_saved_objects.ts#L239), [resolve_saved_objects.ts#L260](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/lib/resolve_saved_objects.ts#L260), [create_field_list.ts#L13](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/lib/create_field_list.ts#L13), [create_field_list.ts#L20](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/lib/create_field_list.ts#L20), [form.tsx#L23](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/management_section/object_view/components/form.tsx#L23), [form.tsx#L31](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/management_section/object_view/components/form.tsx#L31) | - | | | [resolve_saved_objects.ts#L12](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/lib/resolve_saved_objects.ts#L12), [resolve_saved_objects.ts#L125](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/lib/resolve_saved_objects.ts#L125), [resolve_saved_objects.ts#L223](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/lib/resolve_saved_objects.ts#L223), [resolve_saved_objects.ts#L233](https://github.com/elastic/kibana/tree/master/src/plugins/saved_objects_management/public/lib/resolve_saved_objects.ts#L233) | - | @@ -349,21 +370,22 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| +| | [index.ts#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/search_strategy/index_fields/index.ts#L9), [index.ts#L81](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/search_strategy/index_fields/index.ts#L81), [types.ts#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/types.ts#L22), [types.ts#L82](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/types.ts#L82), [action.ts#L19](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/store/action.ts#L19), [action.ts#L98](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/store/action.ts#L98), [index.tsx#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/containers/source/index.tsx#L12), [index.tsx#L48](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/containers/source/index.tsx#L48), [index.tsx#L122](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/containers/source/index.tsx#L122), [index.ts#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/lib/keury/index.ts#L17)+ 81 more | - | +| | [index.tsx#L19](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/components/timeline/query_bar/index.tsx#L19), [index.tsx#L312](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/components/timeline/query_bar/index.tsx#L312), [helpers.ts#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/alerts_table/helpers.ts#L13), [helpers.ts#L246](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/alerts_table/helpers.ts#L246), [epic.ts#L34](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts#L34), [epic.ts#L382](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts#L382), [epic.ts#L383](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts#L383), [epic.ts#L384](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts#L384), [epic.ts#L385](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts#L385), [epic.ts#L398](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts#L398)+ 18 more | - | | | [helpers.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/alerts_table/helpers.ts#L12), [helpers.ts#L83](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/alerts_table/helpers.ts#L83), [helpers.ts#L97](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/alerts_table/helpers.ts#L97) | - | | | [epic.ts#L36](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts#L36), [epic.ts#L400](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts#L400) | - | | | [index.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/lib/keury/index.ts#L12), [index.ts#L79](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/lib/keury/index.ts#L79) | - | | | [index.ts#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/lib/keury/index.ts#L16), [index.ts#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/lib/keury/index.ts#L27), [index.ts#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/lib/keury/index.ts#L27), [index.ts#L41](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/lib/keury/index.ts#L41), [index.ts#L41](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/lib/keury/index.ts#L41), [helpers.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/alerts_table/helpers.ts#L11), [helpers.ts#L123](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/alerts_table/helpers.ts#L123), [schema.tsx#L20](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/rules/step_define_rule/schema.tsx#L20), [schema.tsx#L110](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/rules/step_define_rule/schema.tsx#L110), [schema.tsx#L468](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/rules/step_define_rule/schema.tsx#L468) | - | -| | [index.ts#L15](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/lib/keury/index.ts#L15), [index.ts#L87](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/lib/keury/index.ts#L87), [expandable_network.tsx#L26](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/components/side_panel/network_details/expandable_network.tsx#L26), [expandable_network.tsx#L102](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/components/side_panel/network_details/expandable_network.tsx#L102), [events_viewer.tsx#L35](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/components/events_viewer/events_viewer.tsx#L35), [events_viewer.tsx#L200](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/components/events_viewer/events_viewer.tsx#L200), [index.tsx#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/overview/components/events_by_dataset/index.tsx#L27), [index.tsx#L123](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/overview/components/events_by_dataset/index.tsx#L123), [index.tsx#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/alerts_histogram_panel/index.tsx#L22), [index.tsx#L255](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/alerts_histogram_panel/index.tsx#L255)+ 32 more | - | -| | [index.ts#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/search_strategy/index_fields/index.ts#L9), [index.ts#L81](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/search_strategy/index_fields/index.ts#L81), [types.ts#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/types.ts#L22), [types.ts#L82](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/types.ts#L82), [action.ts#L19](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/store/action.ts#L19), [action.ts#L98](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/store/action.ts#L98), [index.tsx#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/containers/source/index.tsx#L12), [index.tsx#L48](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/containers/source/index.tsx#L48), [index.tsx#L122](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/containers/source/index.tsx#L122), [index.ts#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/lib/keury/index.ts#L17)+ 81 more | - | -| | [store.ts#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/types/timeline/store.ts#L16), [store.ts#L49](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/types/timeline/store.ts#L49), [model.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/model.ts#L11), [model.ts#L83](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/model.ts#L83), [actions.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/actions.ts#L12), [actions.ts#L93](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/actions.ts#L93), [selectors.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/selectors.ts#L10), [selectors.ts#L77](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/selectors.ts#L77), [actions.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/actions.ts#L10), [actions.ts#L183](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/actions.ts#L183)+ 168 more | - | -| | [store.ts#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/types/timeline/store.ts#L16), [store.ts#L49](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/types/timeline/store.ts#L49), [model.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/model.ts#L11), [model.ts#L83](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/model.ts#L83), [actions.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/actions.ts#L12), [actions.ts#L93](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/actions.ts#L93), [selectors.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/selectors.ts#L10), [selectors.ts#L77](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/selectors.ts#L77), [actions.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/actions.ts#L10), [actions.ts#L183](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/actions.ts#L183)+ 168 more | - | +| | [index.ts#L15](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/lib/keury/index.ts#L15), [index.ts#L87](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/lib/keury/index.ts#L87), [expandable_network.tsx#L26](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/components/side_panel/network_details/expandable_network.tsx#L26), [expandable_network.tsx#L102](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/components/side_panel/network_details/expandable_network.tsx#L102), [events_viewer.tsx#L35](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/components/events_viewer/events_viewer.tsx#L35), [events_viewer.tsx#L200](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/components/events_viewer/events_viewer.tsx#L200), [index.tsx#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/overview/components/events_by_dataset/index.tsx#L27), [index.tsx#L123](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/overview/components/events_by_dataset/index.tsx#L123), [index.tsx#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/index.tsx#L22), [index.tsx#L208](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/index.tsx#L208)+ 34 more | - | +| | [store.ts#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/types/timeline/store.ts#L16), [store.ts#L49](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/types/timeline/store.ts#L49), [model.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/model.ts#L11), [model.ts#L83](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/model.ts#L83), [actions.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/actions.ts#L12), [actions.ts#L93](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/actions.ts#L93), [selectors.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/selectors.ts#L10), [selectors.ts#L77](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/selectors.ts#L77), [actions.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/actions.ts#L10), [actions.ts#L183](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/actions.ts#L183)+ 170 more | - | +| | [store.ts#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/types/timeline/store.ts#L16), [store.ts#L49](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/types/timeline/store.ts#L49), [model.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/model.ts#L11), [model.ts#L83](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/model.ts#L83), [actions.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/actions.ts#L12), [actions.ts#L93](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/actions.ts#L93), [selectors.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/selectors.ts#L10), [selectors.ts#L77](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/selectors.ts#L77), [actions.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/actions.ts#L10), [actions.ts#L183](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/actions.ts#L183)+ 170 more | - | | | [epic.ts#L36](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts#L36), [epic.ts#L400](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/epic.ts#L400) | - | | | [helpers.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/alerts_table/helpers.ts#L12), [helpers.ts#L83](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/alerts_table/helpers.ts#L83), [helpers.ts#L97](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/alerts_table/helpers.ts#L97) | - | | | [index.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/lib/keury/index.ts#L12), [index.ts#L79](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/lib/keury/index.ts#L79) | - | | | [index.ts#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/search_strategy/index_fields/index.ts#L9), [index.ts#L81](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/search_strategy/index_fields/index.ts#L81), [types.ts#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/types.ts#L22), [types.ts#L82](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/types.ts#L82), [action.ts#L19](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/store/action.ts#L19), [action.ts#L98](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/store/action.ts#L98), [index.tsx#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/containers/source/index.tsx#L12), [index.tsx#L48](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/containers/source/index.tsx#L48), [index.tsx#L122](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/containers/source/index.tsx#L122), [index.ts#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/lib/keury/index.ts#L17)+ 81 more | - | +| | [store.ts#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/types/timeline/store.ts#L16), [store.ts#L49](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/types/timeline/store.ts#L49), [model.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/model.ts#L11), [model.ts#L83](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/model.ts#L83), [actions.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/actions.ts#L12), [actions.ts#L93](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/actions.ts#L93), [selectors.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/selectors.ts#L10), [selectors.ts#L77](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/selectors.ts#L77), [actions.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/actions.ts#L10), [actions.ts#L183](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/actions.ts#L183)+ 170 more | - | | | [index.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/lib/keury/index.ts#L12), [index.ts#L79](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/lib/keury/index.ts#L79) | - | | | [helpers.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/alerts_table/helpers.ts#L12), [helpers.ts#L83](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/alerts_table/helpers.ts#L83), [helpers.ts#L97](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/detections/components/alerts_table/helpers.ts#L97) | - | -| | [store.ts#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/types/timeline/store.ts#L16), [store.ts#L49](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/types/timeline/store.ts#L49), [model.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/model.ts#L11), [model.ts#L83](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/model.ts#L83), [actions.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/actions.ts#L12), [actions.ts#L93](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/actions.ts#L93), [selectors.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/selectors.ts#L10), [selectors.ts#L77](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/store/inputs/selectors.ts#L77), [actions.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/actions.ts#L10), [actions.ts#L183](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/store/timeline/actions.ts#L183)+ 168 more | - | | | [index.tsx#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/components/flyout/index.tsx#L13), [index.tsx#L23](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/components/flyout/index.tsx#L23), [index.tsx#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/app/home/template_wrapper/bottom_bar/index.tsx#L13), [index.tsx#L23](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/app/home/template_wrapper/bottom_bar/index.tsx#L23), [index.tsx#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/app/home/template_wrapper/index.tsx#L12), [index.tsx#L66](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/app/home/template_wrapper/index.tsx#L66), [index.tsx#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/app/home/index.tsx#L12), [index.tsx#L28](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/app/home/index.tsx#L28), [routes.tsx#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/app/routes.tsx#L13), [routes.tsx#L23](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/app/routes.tsx#L23)+ 3 more | - | @@ -372,10 +394,10 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [index.tsx#L20](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx#L20), [index.tsx#L44](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx#L44) | - | -| | [index.tsx#L19](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx#L19), [index.tsx#L45](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx#L45) | - | | | [entity_index_expression.tsx#L24](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_index_expression.tsx#L24), [entity_index_expression.tsx#L33](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_index_expression.tsx#L33), [entity_index_expression.tsx#L34](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_index_expression.tsx#L34), [boundary_index_expression.tsx#L20](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/boundary_index_expression.tsx#L20), [boundary_index_expression.tsx#L25](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/boundary_index_expression.tsx#L25), [boundary_index_expression.tsx#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/boundary_index_expression.tsx#L27), [index.tsx#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx#L17), [index.tsx#L70](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx#L70), [index.tsx#L75](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx#L75), [index.tsx#L92](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx#L92)+ 1 more | - | | | [single_field_select.tsx#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L17), [single_field_select.tsx#L20](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L20), [single_field_select.tsx#L20](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L20), [single_field_select.tsx#L39](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L39), [single_field_select.tsx#L44](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L44), [single_field_select.tsx#L60](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L60), [single_field_select.tsx#L64](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L64), [single_field_select.tsx#L66](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L66), [single_field_select.d.ts#L1](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/single_field_select.d.ts#L1), [single_field_select.d.ts#L6](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/single_field_select.d.ts#L6)+ 16 more | - | +| | [index.tsx#L20](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx#L20), [index.tsx#L44](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx#L44) | - | +| | [index.tsx#L19](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx#L19), [index.tsx#L45](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx#L45) | - | | | [single_field_select.tsx#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L17), [single_field_select.tsx#L20](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L20), [single_field_select.tsx#L20](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L20), [single_field_select.tsx#L39](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L39), [single_field_select.tsx#L44](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L44), [single_field_select.tsx#L60](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L60), [single_field_select.tsx#L64](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L64), [single_field_select.tsx#L66](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L66), [single_field_select.d.ts#L1](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/single_field_select.d.ts#L1), [single_field_select.d.ts#L6](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/single_field_select.d.ts#L6)+ 16 more | - | | | [entity_index_expression.tsx#L24](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_index_expression.tsx#L24), [entity_index_expression.tsx#L33](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_index_expression.tsx#L33), [entity_index_expression.tsx#L34](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_index_expression.tsx#L34), [boundary_index_expression.tsx#L20](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/boundary_index_expression.tsx#L20), [boundary_index_expression.tsx#L25](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/boundary_index_expression.tsx#L25), [boundary_index_expression.tsx#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/boundary_index_expression.tsx#L27), [index.tsx#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx#L17), [index.tsx#L70](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx#L70), [index.tsx#L75](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx#L75), [index.tsx#L92](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx#L92)+ 1 more | - | | | [single_field_select.tsx#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L17), [single_field_select.tsx#L20](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L20), [single_field_select.tsx#L20](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L20), [single_field_select.tsx#L39](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L39), [single_field_select.tsx#L44](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L44), [single_field_select.tsx#L60](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L60), [single_field_select.tsx#L64](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L64), [single_field_select.tsx#L66](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx#L66), [single_field_select.d.ts#L1](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/single_field_select.d.ts#L1), [single_field_select.d.ts#L6](https://github.com/elastic/kibana/tree/master/x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/single_field_select.d.ts#L6)+ 16 more | - | @@ -386,16 +408,16 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| +| | [index.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L12), [index.ts#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L16), [index.ts#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L31), [index.ts#L74](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L74), [helpers.tsx#L18](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/helpers.tsx#L18), [helpers.tsx#L148](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/helpers.tsx#L148), [index.tsx#L29](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L29), [index.tsx#L120](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L120), [index.tsx#L24](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/container/source/index.tsx#L24), [index.tsx#L40](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/container/source/index.tsx#L40)+ 3 more | - | | | [index.ts#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/common/types/timeline/columns/index.ts#L9), [index.ts#L30](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/common/types/timeline/columns/index.ts#L30) | - | | | [index.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L12), [index.ts#L21](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L21), [index.ts#L21](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L21), [index.ts#L35](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L35), [index.ts#L35](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L35) | - | -| | [index.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L12), [index.ts#L80](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L80), [index.tsx#L29](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L29), [index.tsx#L203](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L203), [index.tsx#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx#L27), [index.tsx#L179](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx#L179) | - | -| | [index.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L12), [index.ts#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L16), [index.ts#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L31), [index.ts#L74](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L74), [helpers.tsx#L18](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/helpers.tsx#L18), [helpers.tsx#L149](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/helpers.tsx#L149), [index.tsx#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L31), [index.tsx#L122](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L122), [index.tsx#L24](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/container/source/index.tsx#L24), [index.tsx#L40](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/container/source/index.tsx#L40)+ 3 more | - | -| | [store.ts#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/common/types/timeline/store.ts#L17), [store.ts#L50](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/common/types/timeline/store.ts#L50), [model.ts#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/store/t_grid/model.ts#L9), [model.ts#L52](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/store/t_grid/model.ts#L52), [index.tsx#L30](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L30), [index.tsx#L116](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L116), [index.tsx#L28](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx#L28), [index.tsx#L109](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx#L109), [utils.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/hover_actions/utils.ts#L8), [utils.ts#L28](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/hover_actions/utils.ts#L28)+ 1 more | - | -| | [store.ts#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/common/types/timeline/store.ts#L17), [store.ts#L50](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/common/types/timeline/store.ts#L50), [model.ts#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/store/t_grid/model.ts#L9), [model.ts#L52](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/store/t_grid/model.ts#L52), [index.tsx#L30](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L30), [index.tsx#L116](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L116), [index.tsx#L28](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx#L28), [index.tsx#L109](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx#L109), [utils.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/hover_actions/utils.ts#L8), [utils.ts#L28](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/hover_actions/utils.ts#L28)+ 1 more | - | +| | [index.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L12), [index.ts#L80](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L80), [index.tsx#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L27), [index.tsx#L201](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L201), [index.tsx#L26](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx#L26), [index.tsx#L178](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx#L178) | - | +| | [store.ts#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/common/types/timeline/store.ts#L17), [store.ts#L50](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/common/types/timeline/store.ts#L50), [model.ts#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/store/t_grid/model.ts#L9), [model.ts#L54](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/store/t_grid/model.ts#L54), [index.tsx#L28](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L28), [index.tsx#L114](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L114), [index.tsx#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx#L27), [index.tsx#L108](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx#L108), [utils.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/hover_actions/utils.ts#L8), [utils.ts#L28](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/hover_actions/utils.ts#L28)+ 1 more | - | +| | [store.ts#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/common/types/timeline/store.ts#L17), [store.ts#L50](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/common/types/timeline/store.ts#L50), [model.ts#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/store/t_grid/model.ts#L9), [model.ts#L54](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/store/t_grid/model.ts#L54), [index.tsx#L28](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L28), [index.tsx#L114](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L114), [index.tsx#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx#L27), [index.tsx#L108](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx#L108), [utils.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/hover_actions/utils.ts#L8), [utils.ts#L28](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/hover_actions/utils.ts#L28)+ 1 more | - | | | [index.ts#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/common/types/timeline/columns/index.ts#L9), [index.ts#L30](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/common/types/timeline/columns/index.ts#L30) | - | -| | [index.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L12), [index.ts#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L16), [index.ts#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L31), [index.ts#L74](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L74), [helpers.tsx#L18](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/helpers.tsx#L18), [helpers.tsx#L149](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/helpers.tsx#L149), [index.tsx#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L31), [index.tsx#L122](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L122), [index.tsx#L24](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/container/source/index.tsx#L24), [index.tsx#L40](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/container/source/index.tsx#L40)+ 3 more | - | +| | [index.ts#L12](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L12), [index.ts#L16](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L16), [index.ts#L31](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L31), [index.ts#L74](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/utils/keury/index.ts#L74), [helpers.tsx#L18](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/helpers.tsx#L18), [helpers.tsx#L148](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/helpers.tsx#L148), [index.tsx#L29](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L29), [index.tsx#L120](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L120), [index.tsx#L24](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/container/source/index.tsx#L24), [index.tsx#L40](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/container/source/index.tsx#L40)+ 3 more | - | +| | [store.ts#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/common/types/timeline/store.ts#L17), [store.ts#L50](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/common/types/timeline/store.ts#L50), [model.ts#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/store/t_grid/model.ts#L9), [model.ts#L54](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/store/t_grid/model.ts#L54), [index.tsx#L28](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L28), [index.tsx#L114](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L114), [index.tsx#L27](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx#L27), [index.tsx#L108](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx#L108), [utils.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/hover_actions/utils.ts#L8), [utils.ts#L28](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/hover_actions/utils.ts#L28)+ 1 more | - | | | [index.ts#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/common/types/timeline/columns/index.ts#L9), [index.ts#L30](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/common/types/timeline/columns/index.ts#L30) | - | -| | [store.ts#L17](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/common/types/timeline/store.ts#L17), [store.ts#L50](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/common/types/timeline/store.ts#L50), [model.ts#L9](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/store/t_grid/model.ts#L9), [model.ts#L52](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/store/t_grid/model.ts#L52), [index.tsx#L30](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L30), [index.tsx#L116](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L116), [index.tsx#L28](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx#L28), [index.tsx#L109](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx#L109), [utils.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/hover_actions/utils.ts#L8), [utils.ts#L28](https://github.com/elastic/kibana/tree/master/x-pack/plugins/timelines/public/components/hover_actions/utils.ts#L28)+ 1 more | - | @@ -403,9 +425,9 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| +| | [es_index_service.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/services/es_index_service.ts#L10), [es_index_service.ts#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/services/es_index_service.ts#L22), [transforms.ts#L63](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/server/routes/api/transforms.ts#L63), [transforms.ts#L405](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/server/routes/api/transforms.ts#L405) | - | | | [use_search_bar.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/hooks/use_search_bar.ts#L10), [use_search_bar.ts#L55](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/hooks/use_search_bar.ts#L55), [use_search_bar.ts#L56](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/hooks/use_search_bar.ts#L56) | - | | | [use_search_bar.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/hooks/use_search_bar.ts#L10), [use_search_bar.ts#L62](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/hooks/use_search_bar.ts#L62), [common.ts#L11](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/hooks/use_search_items/common.ts#L11), [common.ts#L121](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/hooks/use_search_items/common.ts#L121), [common.ts#L122](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/hooks/use_search_items/common.ts#L122) | - | -| | [es_index_service.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/services/es_index_service.ts#L10), [es_index_service.ts#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/services/es_index_service.ts#L22), [transforms.ts#L63](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/server/routes/api/transforms.ts#L63), [transforms.ts#L405](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/server/routes/api/transforms.ts#L405) | - | | | [es_index_service.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/services/es_index_service.ts#L10), [es_index_service.ts#L22](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/services/es_index_service.ts#L22), [transforms.ts#L63](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/server/routes/api/transforms.ts#L63), [transforms.ts#L405](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/server/routes/api/transforms.ts#L405) | - | @@ -414,9 +436,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [update_kuery_string.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#L8), [update_kuery_string.ts#L41](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#L41), [update_kuery_string.ts#L43](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#L43) | - | -| | [update_kuery_string.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#L8), [update_kuery_string.ts#L28](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#L28), [index_pattern.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/state/reducers/index_pattern.ts#L10), [index_pattern.ts#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/state/reducers/index_pattern.ts#L13) | - | -| | [update_kuery_string.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#L8), [update_kuery_string.ts#L28](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#L28), [index_pattern.ts#L10](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/state/reducers/index_pattern.ts#L10), [index_pattern.ts#L13](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/state/reducers/index_pattern.ts#L13) | - | +| | [update_kuery_string.ts#L8](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#L8), [update_kuery_string.ts#L42](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#L42), [update_kuery_string.ts#L44](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#L44) | - | @@ -438,8 +458,8 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [index.ts#L9](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timeseries/common/types/index.ts#L9), [index.ts#L43](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timeseries/common/types/index.ts#L43) | - | | | [index.ts#L9](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timeseries/common/types/index.ts#L9), [index.ts#L43](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timeseries/common/types/index.ts#L43) | - | | | [types.ts#L11](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timeseries/server/lib/vis_data/request_processors/table/types.ts#L11), [types.ts#L21](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timeseries/server/lib/vis_data/request_processors/table/types.ts#L21) | - | -| | [types.ts#L11](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timeseries/server/lib/vis_data/request_processors/table/types.ts#L11), [types.ts#L21](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timeseries/server/lib/vis_data/request_processors/table/types.ts#L21) | - | | | [index.ts#L9](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timeseries/common/types/index.ts#L9), [index.ts#L43](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timeseries/common/types/index.ts#L43) | - | +| | [types.ts#L11](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timeseries/server/lib/vis_data/request_processors/table/types.ts#L11), [types.ts#L21](https://github.com/elastic/kibana/tree/master/src/plugins/vis_type_timeseries/server/lib/vis_data/request_processors/table/types.ts#L21) | - | @@ -447,10 +467,9 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [_saved_vis.ts#L22](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/saved_visualizations/_saved_vis.ts#L22), [_saved_vis.ts#L96](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/saved_visualizations/_saved_vis.ts#L96), [visualize_embeddable.ts#L14](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts#L14), [visualize_embeddable.ts#L50](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts#L50), [visualize_embeddable.ts#L72](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts#L72) | - | +| | [visualize_embeddable.ts#L17](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts#L17), [visualize_embeddable.ts#L236](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts#L236) | - | | | [visualize_embeddable.ts#L18](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts#L18), [visualize_embeddable.ts#L64](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts#L64), [visualize_embeddable.ts#L93](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts#L93) | - | | | [visualize_embeddable.ts#L18](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts#L18), [visualize_embeddable.ts#L64](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts#L64), [visualize_embeddable.ts#L93](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts#L93) | - | -| | [_saved_vis.ts#L22](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/saved_visualizations/_saved_vis.ts#L22), [_saved_vis.ts#L96](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/saved_visualizations/_saved_vis.ts#L96), [visualize_embeddable.ts#L14](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts#L14), [visualize_embeddable.ts#L50](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts#L50), [visualize_embeddable.ts#L72](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts#L72) | - | | | [visualize_embeddable.ts#L18](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts#L18), [visualize_embeddable.ts#L64](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts#L64), [visualize_embeddable.ts#L93](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts#L93) | - | | | [find_list_items.ts#L16](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/saved_visualizations/find_list_items.ts#L16), [find_list_items.ts#L35](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/saved_visualizations/find_list_items.ts#L35), [saved_visualizations.ts#L10](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/saved_visualizations/saved_visualizations.ts#L10), [saved_visualizations.ts#L28](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/saved_visualizations/saved_visualizations.ts#L28), [saved_visualizations.ts#L85](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/saved_visualizations/saved_visualizations.ts#L85), [services.ts#L26](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/services.ts#L26), [services.ts#L72](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/services.ts#L72) | - | | | [types.ts#L9](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/types.ts#L9), [types.ts#L41](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/types.ts#L41), [_saved_vis.ts#L16](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/saved_visualizations/_saved_vis.ts#L16), [_saved_vis.ts#L105](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/saved_visualizations/_saved_vis.ts#L105), [_saved_vis.ts#L114](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/saved_visualizations/_saved_vis.ts#L114), [_saved_vis.ts#L124](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/saved_visualizations/_saved_vis.ts#L124) | - | \ No newline at end of file diff --git a/api_docs/discover.json b/api_docs/discover.json index cb9332adda00b..d4e0150ea0239 100644 --- a/api_docs/discover.json +++ b/api_docs/discover.json @@ -205,8 +205,7 @@ "\nOptionally apply filters." ], "signature": [ - "Filter", - "[] | undefined" + "any[] | undefined" ], "source": { "path": "src/plugins/discover/public/locator.ts", @@ -217,15 +216,14 @@ { "parentPluginId": "discover", "id": "def-public.DiscoverAppLocatorParams.query", - "type": "Object", + "type": "Any", "tags": [], "label": "query", "description": [ "\nOptionally set a query." ], "signature": [ - "Query", - " | undefined" + "any" ], "source": { "path": "src/plugins/discover/public/locator.ts", @@ -461,8 +459,7 @@ "\nOptionally apply filters." ], "signature": [ - "Filter", - "[] | undefined" + "any[] | undefined" ], "source": { "path": "src/plugins/discover/public/url_generator.ts", @@ -473,15 +470,14 @@ { "parentPluginId": "discover", "id": "def-public.DiscoverUrlGeneratorState.query", - "type": "Object", + "type": "Any", "tags": [], "label": "query", "description": [ "\nOptionally set a query. NOTE: if given and used in conjunction with `dashboardId`, and the\nsaved dashboard has a query saved with it, this will _replace_ that query." ], "signature": [ - "Query", - " | undefined" + "any" ], "source": { "path": "src/plugins/discover/public/url_generator.ts", @@ -1050,13 +1046,12 @@ { "parentPluginId": "discover", "id": "def-public.SearchInput.query", - "type": "Object", + "type": "Any", "tags": [], "label": "query", "description": [], "signature": [ - "Query", - " | undefined" + "any" ], "source": { "path": "src/plugins/discover/public/application/embeddable/types.ts", @@ -1072,8 +1067,7 @@ "label": "filters", "description": [], "signature": [ - "Filter", - "[] | undefined" + "any[] | undefined" ], "source": { "path": "src/plugins/discover/public/application/embeddable/types.ts", diff --git a/api_docs/discover.mdx b/api_docs/discover.mdx index 610ec5d90f267..9e3ae166da774 100644 --- a/api_docs/discover.mdx +++ b/api_docs/discover.mdx @@ -18,7 +18,7 @@ Contact [Kibana App](https://github.com/orgs/elastic/teams/kibana-app) for quest | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 81 | 0 | 55 | 6 | +| 81 | 3 | 55 | 6 | ## Client diff --git a/api_docs/discover_enhanced.mdx b/api_docs/discover_enhanced.mdx index 3f9ab4d4068a7..ecba2f6d0f805 100644 --- a/api_docs/discover_enhanced.mdx +++ b/api_docs/discover_enhanced.mdx @@ -12,7 +12,7 @@ import discoverEnhancedObj from './discover_enhanced.json'; - +Contact [Kibana App](https://github.com/orgs/elastic/teams/kibana-app) for questions regarding this plugin. **Code health stats** diff --git a/api_docs/encrypted_saved_objects.json b/api_docs/encrypted_saved_objects.json index 6a699e3534d4b..371f4baccd6d5 100644 --- a/api_docs/encrypted_saved_objects.json +++ b/api_docs/encrypted_saved_objects.json @@ -305,7 +305,49 @@ } ], "enums": [], - "misc": [], + "misc": [ + { + "parentPluginId": "encryptedSavedObjects", + "id": "def-server.IsMigrationNeededPredicate", + "type": "Type", + "tags": [], + "label": "IsMigrationNeededPredicate", + "description": [], + "signature": [ + "(encryptedDoc: ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCoreSavedObjectsPluginApi", + "section": "def-server.SavedObjectUnsanitizedDoc", + "text": "SavedObjectUnsanitizedDoc" + }, + " | ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCoreSavedObjectsPluginApi", + "section": "def-server.SavedObjectUnsanitizedDoc", + "text": "SavedObjectUnsanitizedDoc" + }, + ") => encryptedDoc is ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCoreSavedObjectsPluginApi", + "section": "def-server.SavedObjectUnsanitizedDoc", + "text": "SavedObjectUnsanitizedDoc" + }, + "" + ], + "source": { + "path": "x-pack/plugins/encrypted_saved_objects/server/create_migration.ts", + "lineNumber": 25 + }, + "deprecated": false, + "initialIsOpen": false + } + ], "objects": [], "setup": { "parentPluginId": "encryptedSavedObjects", @@ -392,31 +434,9 @@ "label": "createMigration", "description": [], "signature": [ - "(isMigrationNeededPredicate: IsMigrationNeededPredicate, migration: ", - { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectMigrationFn", - "text": "SavedObjectMigrationFn" - }, - ", inputType?: ", - { - "pluginId": "encryptedSavedObjects", - "scope": "server", - "docId": "kibEncryptedSavedObjectsPluginApi", - "section": "def-server.EncryptedSavedObjectTypeRegistration", - "text": "EncryptedSavedObjectTypeRegistration" - }, - " | undefined, migratedType?: ", - { - "pluginId": "encryptedSavedObjects", - "scope": "server", - "docId": "kibEncryptedSavedObjectsPluginApi", - "section": "def-server.EncryptedSavedObjectTypeRegistration", - "text": "EncryptedSavedObjectTypeRegistration" - }, - " | undefined) => SavedObjectOptionalMigrationFn" + "(opts: ", + "CreateEncryptedSavedObjectsMigrationFnOpts", + ") => SavedObjectOptionalMigrationFn" ], "source": { "path": "x-pack/plugins/encrypted_saved_objects/server/plugin.ts", @@ -427,127 +447,18 @@ "children": [ { "parentPluginId": "encryptedSavedObjects", - "id": "def-server.isMigrationNeededPredicate", - "type": "Function", - "tags": [], - "label": "isMigrationNeededPredicate", - "description": [], - "signature": [ - "(encryptedDoc: ", - { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectUnsanitizedDoc", - "text": "SavedObjectUnsanitizedDoc" - }, - " | ", - { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectUnsanitizedDoc", - "text": "SavedObjectUnsanitizedDoc" - }, - ") => encryptedDoc is ", - { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectUnsanitizedDoc", - "text": "SavedObjectUnsanitizedDoc" - }, - "" - ], - "source": { - "path": "x-pack/plugins/encrypted_saved_objects/server/create_migration.ts", - "lineNumber": 32 - }, - "deprecated": false - }, - { - "parentPluginId": "encryptedSavedObjects", - "id": "def-server.migration", - "type": "Function", - "tags": [], - "label": "migration", - "description": [], - "signature": [ - "(doc: ", - { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectUnsanitizedDoc", - "text": "SavedObjectUnsanitizedDoc" - }, - ", context: ", - { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectMigrationContext", - "text": "SavedObjectMigrationContext" - }, - ") => ", - { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectUnsanitizedDoc", - "text": "SavedObjectUnsanitizedDoc" - }, - "" - ], - "source": { - "path": "x-pack/plugins/encrypted_saved_objects/server/create_migration.ts", - "lineNumber": 33 - }, - "deprecated": false - }, - { - "parentPluginId": "encryptedSavedObjects", - "id": "def-server.inputType", - "type": "Object", - "tags": [], - "label": "inputType", - "description": [], - "signature": [ - { - "pluginId": "encryptedSavedObjects", - "scope": "server", - "docId": "kibEncryptedSavedObjectsPluginApi", - "section": "def-server.EncryptedSavedObjectTypeRegistration", - "text": "EncryptedSavedObjectTypeRegistration" - }, - " | undefined" - ], - "source": { - "path": "x-pack/plugins/encrypted_saved_objects/server/create_migration.ts", - "lineNumber": 34 - }, - "deprecated": false - }, - { - "parentPluginId": "encryptedSavedObjects", - "id": "def-server.migratedType", + "id": "def-server.opts", "type": "Object", "tags": [], - "label": "migratedType", + "label": "opts", "description": [], "signature": [ - { - "pluginId": "encryptedSavedObjects", - "scope": "server", - "docId": "kibEncryptedSavedObjectsPluginApi", - "section": "def-server.EncryptedSavedObjectTypeRegistration", - "text": "EncryptedSavedObjectTypeRegistration" - }, - " | undefined" + "CreateEncryptedSavedObjectsMigrationFnOpts", + "" ], "source": { "path": "x-pack/plugins/encrypted_saved_objects/server/create_migration.ts", - "lineNumber": 35 + "lineNumber": 46 }, "deprecated": false } diff --git a/api_docs/encrypted_saved_objects.mdx b/api_docs/encrypted_saved_objects.mdx index 02cbf225c355d..d274500438ba5 100644 --- a/api_docs/encrypted_saved_objects.mdx +++ b/api_docs/encrypted_saved_objects.mdx @@ -18,7 +18,7 @@ Contact [Platform Security](https://github.com/orgs/elastic/teams/kibana-securit | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 30 | 0 | 28 | 3 | +| 28 | 0 | 26 | 4 | ## Server @@ -34,3 +34,6 @@ Contact [Platform Security](https://github.com/orgs/elastic/teams/kibana-securit ### Interfaces +### Consts, variables and types + + diff --git a/api_docs/expressions.json b/api_docs/expressions.json index 2c095859821f3..87929dbb00790 100644 --- a/api_docs/expressions.json +++ b/api_docs/expressions.json @@ -6637,7 +6637,23 @@ "section": "def-common.InferFunctionDefinition", "text": "InferFunctionDefinition" }, - "[\"name\"], initialArgs: { [K in keyof FunctionArgs]: FunctionArgs[K] | ", + "[\"name\"], initialArgs: { [K in keyof FunctionArgs]: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + }, + " | ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + }, + "[] | FunctionArgs[K] | ", { "pluginId": "expressions", "scope": "common", @@ -6705,7 +6721,23 @@ "Object containing the arguments to this function." ], "signature": [ - "{ [K in keyof FunctionArgs]: FunctionArgs[K] | ", + "{ [K in keyof FunctionArgs]: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + }, + " | ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + }, + "[] | FunctionArgs[K] | ", { "pluginId": "expressions", "scope": "common", @@ -7087,7 +7119,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 98 + "lineNumber": 102 }, "deprecated": false, "children": [ @@ -7103,7 +7135,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 99 + "lineNumber": 103 }, "deprecated": false }, @@ -7126,7 +7158,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 100 + "lineNumber": 104 }, "deprecated": false }, @@ -7142,7 +7174,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 101 + "lineNumber": 105 }, "deprecated": false } @@ -7160,7 +7192,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 89 + "lineNumber": 93 }, "deprecated": false, "children": [ @@ -7173,7 +7205,7 @@ "description": [], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 90 + "lineNumber": 94 }, "deprecated": false }, @@ -7186,7 +7218,7 @@ "description": [], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 91 + "lineNumber": 95 }, "deprecated": false }, @@ -7208,7 +7240,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 92 + "lineNumber": 96 }, "deprecated": false } @@ -11255,7 +11287,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 104 + "lineNumber": 108 }, "deprecated": false, "children": [ @@ -11271,7 +11303,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 105 + "lineNumber": 109 }, "deprecated": false } @@ -17527,7 +17559,23 @@ "section": "def-common.InferFunctionDefinition", "text": "InferFunctionDefinition" }, - "[\"name\"], initialArgs: { [K in keyof FunctionArgs]: FunctionArgs[K] | ", + "[\"name\"], initialArgs: { [K in keyof FunctionArgs]: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + }, + " | ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + }, + "[] | FunctionArgs[K] | ", { "pluginId": "expressions", "scope": "common", @@ -17595,7 +17643,23 @@ "Object containing the arguments to this function." ], "signature": [ - "{ [K in keyof FunctionArgs]: FunctionArgs[K] | ", + "{ [K in keyof FunctionArgs]: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + }, + " | ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + }, + "[] | FunctionArgs[K] | ", { "pluginId": "expressions", "scope": "common", @@ -17926,7 +17990,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 98 + "lineNumber": 102 }, "deprecated": false, "children": [ @@ -17942,7 +18006,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 99 + "lineNumber": 103 }, "deprecated": false }, @@ -17965,7 +18029,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 100 + "lineNumber": 104 }, "deprecated": false }, @@ -17981,7 +18045,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 101 + "lineNumber": 105 }, "deprecated": false } @@ -17999,7 +18063,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 89 + "lineNumber": 93 }, "deprecated": false, "children": [ @@ -18012,7 +18076,7 @@ "description": [], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 90 + "lineNumber": 94 }, "deprecated": false }, @@ -18025,7 +18089,7 @@ "description": [], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 91 + "lineNumber": 95 }, "deprecated": false }, @@ -18047,7 +18111,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 92 + "lineNumber": 96 }, "deprecated": false } @@ -21026,7 +21090,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 104 + "lineNumber": 108 }, "deprecated": false, "children": [ @@ -21042,7 +21106,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 105 + "lineNumber": 109 }, "deprecated": false } @@ -28133,7 +28197,23 @@ "section": "def-common.InferFunctionDefinition", "text": "InferFunctionDefinition" }, - "[\"name\"], initialArgs: { [K in keyof FunctionArgs]: FunctionArgs[K] | ", + "[\"name\"], initialArgs: { [K in keyof FunctionArgs]: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + }, + " | ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + }, + "[] | FunctionArgs[K] | ", { "pluginId": "expressions", "scope": "common", @@ -28201,7 +28281,23 @@ "Object containing the arguments to this function." ], "signature": [ - "{ [K in keyof FunctionArgs]: FunctionArgs[K] | ", + "{ [K in keyof FunctionArgs]: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + }, + " | ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + }, + "[] | FunctionArgs[K] | ", { "pluginId": "expressions", "scope": "common", @@ -29823,7 +29919,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 98 + "lineNumber": 102 }, "deprecated": false, "children": [ @@ -29839,7 +29935,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 99 + "lineNumber": 103 }, "deprecated": false }, @@ -29862,7 +29958,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 100 + "lineNumber": 104 }, "deprecated": false }, @@ -29878,7 +29974,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 101 + "lineNumber": 105 }, "deprecated": false } @@ -29896,7 +29992,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 89 + "lineNumber": 93 }, "deprecated": false, "children": [ @@ -29909,7 +30005,7 @@ "description": [], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 90 + "lineNumber": 94 }, "deprecated": false }, @@ -29922,7 +30018,7 @@ "description": [], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 91 + "lineNumber": 95 }, "deprecated": false }, @@ -29944,7 +30040,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 92 + "lineNumber": 96 }, "deprecated": false } @@ -30018,6 +30114,24 @@ }, "deprecated": false }, + { + "parentPluginId": "expressions", + "id": "def-common.DatatableColumnMeta.dimensionName", + "type": "string", + "tags": [], + "label": "dimensionName", + "description": [ + "\nnames the domain this column represents" + ], + "signature": [ + "string | undefined" + ], + "source": { + "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", + "lineNumber": 75 + }, + "deprecated": false + }, { "parentPluginId": "expressions", "id": "def-common.DatatableColumnMeta.params", @@ -30039,7 +30153,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 75 + "lineNumber": 79 }, "deprecated": false }, @@ -30057,7 +30171,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 79 + "lineNumber": 83 }, "deprecated": false }, @@ -30076,7 +30190,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 83 + "lineNumber": 87 }, "deprecated": false } @@ -34830,7 +34944,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 104 + "lineNumber": 108 }, "deprecated": false, "children": [ @@ -34846,7 +34960,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 105 + "lineNumber": 109 }, "deprecated": false } @@ -38321,7 +38435,7 @@ "description": [], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 115 + "lineNumber": 119 }, "deprecated": false, "children": [ @@ -38337,7 +38451,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 116 + "lineNumber": 120 }, "deprecated": false }, @@ -38353,7 +38467,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 117 + "lineNumber": 121 }, "deprecated": false, "children": [ @@ -38369,7 +38483,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 117 + "lineNumber": 121 }, "deprecated": false, "isRequired": true @@ -38405,7 +38519,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 127 + "lineNumber": 131 }, "deprecated": false, "children": [ @@ -38427,7 +38541,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 127 + "lineNumber": 131 }, "deprecated": false, "isRequired": true @@ -38463,7 +38577,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 136 + "lineNumber": 140 }, "deprecated": false, "children": [ @@ -38485,7 +38599,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 136 + "lineNumber": 140 }, "deprecated": false, "isRequired": true @@ -38502,7 +38616,7 @@ "description": [], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 145 + "lineNumber": 149 }, "deprecated": false, "children": [ @@ -38518,7 +38632,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 146 + "lineNumber": 150 }, "deprecated": false, "children": [], @@ -38552,7 +38666,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 152 + "lineNumber": 156 }, "deprecated": false, "children": [ @@ -38583,7 +38697,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 152 + "lineNumber": 156 }, "deprecated": false, "isRequired": true @@ -38602,7 +38716,7 @@ "description": [], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 161 + "lineNumber": 165 }, "deprecated": false, "children": [ @@ -38634,7 +38748,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 162 + "lineNumber": 166 }, "deprecated": false, "children": [ @@ -38656,7 +38770,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 162 + "lineNumber": 166 }, "deprecated": false, "isRequired": true @@ -38700,7 +38814,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 172 + "lineNumber": 176 }, "deprecated": false, "children": [ @@ -38722,7 +38836,7 @@ ], "source": { "path": "src/plugins/expressions/common/expression_types/specs/datatable.ts", - "lineNumber": 172 + "lineNumber": 176 }, "deprecated": false, "isRequired": true diff --git a/api_docs/expressions.mdx b/api_docs/expressions.mdx index 6ff430ddcfaa8..abac2ad5cd8b9 100644 --- a/api_docs/expressions.mdx +++ b/api_docs/expressions.mdx @@ -18,7 +18,7 @@ import expressionsObj from './expressions.json'; | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 2003 | 58 | 1569 | 5 | +| 2004 | 58 | 1569 | 5 | ## Client diff --git a/api_docs/file_upload.json b/api_docs/file_upload.json index ee3af81c4daca..75c7d5fb3dec4 100644 --- a/api_docs/file_upload.json +++ b/api_docs/file_upload.json @@ -343,21 +343,9 @@ "label": "geoFieldType", "description": [], "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".GEO_POINT | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".GEO_SHAPE" ], "source": { @@ -1317,253 +1305,67 @@ "description": [], "signature": [ "{ properties: { [fieldName: string]: { type: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".STRING | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".TEXT | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".KEYWORD | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".VERSION | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".BOOLEAN | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".OBJECT | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".DATE | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".DATE_NANOS | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".DATE_RANGE | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".GEO_POINT | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".GEO_SHAPE | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".FLOAT | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".HALF_FLOAT | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".SCALED_FLOAT | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".DOUBLE | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".INTEGER | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".LONG | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".SHORT | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".UNSIGNED_LONG | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".FLOAT_RANGE | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".DOUBLE_RANGE | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".INTEGER_RANGE | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".LONG_RANGE | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".NESTED | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".BYTE | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".IP | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".IP_RANGE | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".ATTACHMENT | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".TOKEN_COUNT | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".MURMUR3 | ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataPluginApi", - "section": "def-common.ES_FIELD_TYPES", - "text": "ES_FIELD_TYPES" - }, + "ES_FIELD_TYPES", ".HISTOGRAM; format?: string | undefined; }; }; }" ], "source": { diff --git a/api_docs/fleet.json b/api_docs/fleet.json index cf5cedd94b9e3..2eed10bb4a68c 100644 --- a/api_docs/fleet.json +++ b/api_docs/fleet.json @@ -4503,7 +4503,7 @@ "signature": [ "Pick<", "KibanaClient", - ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"helpers\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", + ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"helpers\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", "TransportRequestParams", ", options?: ", "TransportRequestOptions", @@ -4748,7 +4748,7 @@ "signature": [ "Pick<", "KibanaClient", - ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"helpers\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", + ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"helpers\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", "TransportRequestParams", ", options?: ", "TransportRequestOptions", @@ -7544,12 +7544,12 @@ { "parentPluginId": "fleet", "id": "def-common.Agent.status", - "type": "string", + "type": "CompoundType", "tags": [], "label": "status", "description": [], "signature": [ - "string | undefined" + "\"warning\" | \"offline\" | \"online\" | \"error\" | \"inactive\" | \"enrolling\" | \"unenrolling\" | \"updating\" | \"degraded\" | undefined" ], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", diff --git a/api_docs/index_management.json b/api_docs/index_management.json index 9dc02a51148bc..5e7156b47cb45 100644 --- a/api_docs/index_management.json +++ b/api_docs/index_management.json @@ -56,6 +56,60 @@ ], "returnComment": [], "initialIsOpen": false + }, + { + "parentPluginId": "indexManagement", + "id": "def-public.getTemplateDetailsLink", + "type": "Function", + "tags": [], + "label": "getTemplateDetailsLink", + "description": [], + "signature": [ + "(name: string, isLegacy?: boolean | undefined) => string" + ], + "source": { + "path": "x-pack/plugins/index_management/public/application/services/routing.ts", + "lineNumber": 10 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "indexManagement", + "id": "def-public.getTemplateDetailsLink.$1", + "type": "string", + "tags": [], + "label": "name", + "description": [], + "signature": [ + "string" + ], + "source": { + "path": "x-pack/plugins/index_management/public/application/services/routing.ts", + "lineNumber": 10 + }, + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "indexManagement", + "id": "def-public.getTemplateDetailsLink.$2", + "type": "CompoundType", + "tags": [], + "label": "isLegacy", + "description": [], + "signature": [ + "boolean | undefined" + ], + "source": { + "path": "x-pack/plugins/index_management/public/application/services/routing.ts", + "lineNumber": 10 + }, + "deprecated": false, + "isRequired": false + } + ], + "returnComment": [], + "initialIsOpen": false } ], "interfaces": [ diff --git a/api_docs/index_management.mdx b/api_docs/index_management.mdx index 42414651d4d4b..d97582e62523d 100644 --- a/api_docs/index_management.mdx +++ b/api_docs/index_management.mdx @@ -18,7 +18,7 @@ import indexManagementObj from './index_management.json'; | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 162 | 12 | 157 | 3 | +| 165 | 12 | 160 | 3 | ## Client diff --git a/api_docs/index_pattern_field_editor.json b/api_docs/index_pattern_field_editor.json index d7afa005cf2da..e1ad62b534d2d 100644 --- a/api_docs/index_pattern_field_editor.json +++ b/api_docs/index_pattern_field_editor.json @@ -18,14 +18,20 @@ "text": "DefaultFormatEditor" }, " extends React.PureComponent<", - "FormatEditorProps", + { + "pluginId": "indexPatternFieldEditor", + "scope": "public", + "docId": "kibIndexPatternFieldEditorPluginApi", + "section": "def-public.FormatEditorProps", + "text": "FormatEditorProps" + }, "

, ", "FormatEditorState", " & S, any>" ], "source": { "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/default/default.tsx", - "lineNumber": 71 + "lineNumber": 64 }, "deprecated": false, "children": [ @@ -38,7 +44,7 @@ "description": [], "source": { "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/default/default.tsx", - "lineNumber": 75 + "lineNumber": 68 }, "deprecated": false }, @@ -55,7 +61,7 @@ ], "source": { "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/default/default.tsx", - "lineNumber": 76 + "lineNumber": 69 }, "deprecated": false }, @@ -68,7 +74,13 @@ "description": [], "signature": [ "(nextProps: ", - "FormatEditorProps", + { + "pluginId": "indexPatternFieldEditor", + "scope": "public", + "docId": "kibIndexPatternFieldEditorPluginApi", + "section": "def-public.FormatEditorProps", + "text": "FormatEditorProps" + }, "<{}>, state: ", "FormatEditorState", ") => { error: string | undefined; samples: ", @@ -77,7 +89,7 @@ ], "source": { "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/default/default.tsx", - "lineNumber": 78 + "lineNumber": 71 }, "deprecated": false, "children": [ @@ -89,12 +101,18 @@ "label": "nextProps", "description": [], "signature": [ - "FormatEditorProps", + { + "pluginId": "indexPatternFieldEditor", + "scope": "public", + "docId": "kibIndexPatternFieldEditorPluginApi", + "section": "def-public.FormatEditorProps", + "text": "FormatEditorProps" + }, "<{}>" ], "source": { "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/default/default.tsx", - "lineNumber": 78 + "lineNumber": 71 }, "deprecated": false, "isRequired": true @@ -111,7 +129,7 @@ ], "source": { "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/default/default.tsx", - "lineNumber": 78 + "lineNumber": 71 }, "deprecated": false, "isRequired": true @@ -131,7 +149,7 @@ ], "source": { "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/default/default.tsx", - "lineNumber": 90 + "lineNumber": 83 }, "deprecated": false, "children": [ @@ -147,7 +165,7 @@ ], "source": { "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/default/default.tsx", - "lineNumber": 90 + "lineNumber": 83 }, "deprecated": false, "isRequired": true @@ -167,7 +185,7 @@ ], "source": { "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/default/default.tsx", - "lineNumber": 99 + "lineNumber": 92 }, "deprecated": false, "children": [], @@ -259,6 +277,155 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "indexPatternFieldEditor", + "id": "def-public.FormatEditorProps", + "type": "Interface", + "tags": [], + "label": "FormatEditorProps", + "description": [ + "\nProps for received by {@link FieldFormatEditor}" + ], + "signature": [ + { + "pluginId": "indexPatternFieldEditor", + "scope": "public", + "docId": "kibIndexPatternFieldEditorPluginApi", + "section": "def-public.FormatEditorProps", + "text": "FormatEditorProps" + }, + "

" + ], + "source": { + "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/types.ts", + "lineNumber": 17 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "indexPatternFieldEditor", + "id": "def-public.FormatEditorProps.fieldType", + "type": "string", + "tags": [], + "label": "fieldType", + "description": [], + "source": { + "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/types.ts", + "lineNumber": 18 + }, + "deprecated": false + }, + { + "parentPluginId": "indexPatternFieldEditor", + "id": "def-public.FormatEditorProps.format", + "type": "Object", + "tags": [], + "label": "format", + "description": [], + "signature": [ + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataFieldFormatsPluginApi", + "section": "def-common.FieldFormat", + "text": "FieldFormat" + } + ], + "source": { + "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/types.ts", + "lineNumber": 19 + }, + "deprecated": false + }, + { + "parentPluginId": "indexPatternFieldEditor", + "id": "def-public.FormatEditorProps.formatParams", + "type": "CompoundType", + "tags": [], + "label": "formatParams", + "description": [], + "signature": [ + "{ type?: string | undefined; } & P" + ], + "source": { + "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/types.ts", + "lineNumber": 20 + }, + "deprecated": false + }, + { + "parentPluginId": "indexPatternFieldEditor", + "id": "def-public.FormatEditorProps.onChange", + "type": "Function", + "tags": [], + "label": "onChange", + "description": [], + "signature": [ + "(newParams: { [key: string]: any; }) => void" + ], + "source": { + "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/types.ts", + "lineNumber": 21 + }, + "deprecated": false, + "returnComment": [], + "children": [ + { + "parentPluginId": "indexPatternFieldEditor", + "id": "def-public.newParams", + "type": "Object", + "tags": [], + "label": "newParams", + "description": [], + "signature": [ + "{ [key: string]: any; }" + ], + "source": { + "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/types.ts", + "lineNumber": 21 + }, + "deprecated": false + } + ] + }, + { + "parentPluginId": "indexPatternFieldEditor", + "id": "def-public.FormatEditorProps.onError", + "type": "Function", + "tags": [], + "label": "onError", + "description": [], + "signature": [ + "(error?: string | undefined) => void" + ], + "source": { + "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/types.ts", + "lineNumber": 22 + }, + "deprecated": false, + "returnComment": [], + "children": [ + { + "parentPluginId": "indexPatternFieldEditor", + "id": "def-public.error", + "type": "string", + "tags": [], + "label": "error", + "description": [], + "signature": [ + "string | undefined" + ], + "source": { + "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/field_format_editor.tsx", + "lineNumber": 34 + }, + "deprecated": false + } + ] + } + ], + "initialIsOpen": false + }, { "parentPluginId": "indexPatternFieldEditor", "id": "def-public.OpenFieldDeleteModalOptions", @@ -413,7 +580,70 @@ } ], "enums": [], - "misc": [], + "misc": [ + { + "parentPluginId": "indexPatternFieldEditor", + "id": "def-public.FieldFormatEditor", + "type": "Type", + "tags": [], + "label": "FieldFormatEditor", + "description": [ + "\nA React component for editing custom field format params" + ], + "signature": [ + "(React.ComponentClass<", + { + "pluginId": "indexPatternFieldEditor", + "scope": "public", + "docId": "kibIndexPatternFieldEditorPluginApi", + "section": "def-public.FormatEditorProps", + "text": "FormatEditorProps" + }, + ", any> & { formatId: string; }) | (React.FunctionComponent<", + { + "pluginId": "indexPatternFieldEditor", + "scope": "public", + "docId": "kibIndexPatternFieldEditorPluginApi", + "section": "def-public.FormatEditorProps", + "text": "FormatEditorProps" + }, + "> & { formatId: string; })" + ], + "source": { + "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/types.ts", + "lineNumber": 29 + }, + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "indexPatternFieldEditor", + "id": "def-public.FieldFormatEditorFactory", + "type": "Type", + "tags": [], + "label": "FieldFormatEditorFactory", + "description": [ + "\nA factory for registering field format editor for a field format with `formatId`" + ], + "signature": [ + "(() => Promise<", + { + "pluginId": "indexPatternFieldEditor", + "scope": "public", + "docId": "kibIndexPatternFieldEditorPluginApi", + "section": "def-public.FieldFormatEditor", + "text": "FieldFormatEditor" + }, + ">) & { formatId: string; }" + ], + "source": { + "path": "src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/types.ts", + "lineNumber": 37 + }, + "deprecated": false, + "initialIsOpen": false + } + ], "objects": [], "start": { "parentPluginId": "indexPatternFieldEditor", @@ -536,23 +766,23 @@ "label": "fieldFormatEditors", "description": [], "signature": [ - "{ getAll: () => typeof ", + "{ getAll: () => ", { "pluginId": "indexPatternFieldEditor", "scope": "public", "docId": "kibIndexPatternFieldEditorPluginApi", - "section": "def-public.DefaultFormatEditor", - "text": "DefaultFormatEditor" + "section": "def-public.FieldFormatEditorFactory", + "text": "FieldFormatEditorFactory" }, - "[]; getById: (id: string) => typeof ", + "[]; getById: (id: string) => ", { "pluginId": "indexPatternFieldEditor", "scope": "public", "docId": "kibIndexPatternFieldEditorPluginApi", - "section": "def-public.DefaultFormatEditor", - "text": "DefaultFormatEditor" + "section": "def-public.FieldFormatEditorFactory", + "text": "FieldFormatEditorFactory" }, - " | undefined; }" + " | undefined; }" ], "source": { "path": "src/plugins/index_pattern_field_editor/public/types.ts", diff --git a/api_docs/index_pattern_field_editor.mdx b/api_docs/index_pattern_field_editor.mdx index b2808ecb30245..a231ac79bd77b 100644 --- a/api_docs/index_pattern_field_editor.mdx +++ b/api_docs/index_pattern_field_editor.mdx @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 31 | 1 | 29 | 4 | +| 41 | 1 | 36 | 3 | ## Client @@ -31,3 +31,6 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services ### Interfaces +### Consts, variables and types + + diff --git a/api_docs/kibana_legacy.mdx b/api_docs/kibana_legacy.mdx index b5c4fd37b252a..0cd1ce47b6b88 100644 --- a/api_docs/kibana_legacy.mdx +++ b/api_docs/kibana_legacy.mdx @@ -12,7 +12,7 @@ import kibanaLegacyObj from './kibana_legacy.json'; - +Contact [Kibana App](https://github.com/orgs/elastic/teams/kibana-app) for questions regarding this plugin. **Code health stats** diff --git a/api_docs/lens.json b/api_docs/lens.json index 6fcd02dedc702..0ee635231b78d 100644 --- a/api_docs/lens.json +++ b/api_docs/lens.json @@ -199,7 +199,7 @@ ], "source": { "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/date_histogram.tsx", - "lineNumber": 44 + "lineNumber": 45 }, "deprecated": false, "children": [ @@ -215,7 +215,7 @@ ], "source": { "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/date_histogram.tsx", - "lineNumber": 45 + "lineNumber": 46 }, "deprecated": false }, @@ -231,7 +231,7 @@ ], "source": { "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/date_histogram.tsx", - "lineNumber": 46 + "lineNumber": 47 }, "deprecated": false } @@ -258,7 +258,7 @@ ], "source": { "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filters.tsx", - "lineNumber": 73 + "lineNumber": 74 }, "deprecated": false, "children": [ @@ -274,7 +274,7 @@ ], "source": { "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filters.tsx", - "lineNumber": 74 + "lineNumber": 75 }, "deprecated": false }, @@ -292,7 +292,7 @@ ], "source": { "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filters.tsx", - "lineNumber": 75 + "lineNumber": 76 }, "deprecated": false } @@ -1163,7 +1163,7 @@ ], "source": { "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/ranges/ranges.tsx", - "lineNumber": 36 + "lineNumber": 40 }, "deprecated": false, "children": [ @@ -1179,7 +1179,7 @@ ], "source": { "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/ranges/ranges.tsx", - "lineNumber": 37 + "lineNumber": 41 }, "deprecated": false }, @@ -1199,7 +1199,7 @@ ], "source": { "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/ranges/ranges.tsx", - "lineNumber": 38 + "lineNumber": 42 }, "deprecated": false } @@ -4032,8 +4032,7 @@ "section": "def-common.PersistableFilter", "text": "PersistableFilter" }, - " extends ", - "Filter" + " extends any" ], "source": { "path": "x-pack/plugins/lens/common/types.ts", @@ -4081,8 +4080,7 @@ "section": "def-common.PersistableFilterMeta", "text": "PersistableFilterMeta" }, - " extends ", - "FilterMeta" + " extends any" ], "source": { "path": "x-pack/plugins/lens/common/types.ts", diff --git a/api_docs/licensing.json b/api_docs/licensing.json index b4a779fc90aa2..b54c2b749e3fe 100644 --- a/api_docs/licensing.json +++ b/api_docs/licensing.json @@ -1007,8 +1007,8 @@ { "plugin": "reporting", "link": { - "path": "x-pack/plugins/reporting/public/management/report_listing.tsx", - "lineNumber": 44 + "path": "x-pack/plugins/reporting/public/management/index.ts", + "lineNumber": 20 } }, { diff --git a/api_docs/lists.json b/api_docs/lists.json index 36fb301ac0d6a..7e6ff37d439ee 100644 --- a/api_docs/lists.json +++ b/api_docs/lists.json @@ -467,7 +467,7 @@ "signature": [ "({ itemId, id, namespaceType, }: ", "GetExceptionListItemOptions", - ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>" + ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>" ], "source": { "path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts", @@ -549,7 +549,7 @@ "signature": [ "({ comments, description, entries, itemId, meta, name, osTypes, tags, type, }: ", "CreateEndpointListItemOptions", - ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>" + ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>" ], "source": { "path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts", @@ -589,7 +589,7 @@ "signature": [ "({ _version, comments, description, entries, id, itemId, meta, name, osTypes, tags, type, }: ", "UpdateEndpointListItemOptions", - ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>" + ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>" ], "source": { "path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts", @@ -629,7 +629,7 @@ "signature": [ "({ itemId, id, }: ", "GetEndpointListItemOptions", - ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>" + ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>" ], "source": { "path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts", @@ -787,7 +787,7 @@ "section": "def-server.CreateExceptionListItemOptions", "text": "CreateExceptionListItemOptions" }, - ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>" + ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>" ], "source": { "path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts", @@ -837,7 +837,7 @@ "section": "def-server.UpdateExceptionListItemOptions", "text": "UpdateExceptionListItemOptions" }, - ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>" + ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>" ], "source": { "path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts", @@ -881,7 +881,7 @@ "signature": [ "({ id, itemId, namespaceType, }: ", "DeleteExceptionListItemOptions", - ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>" + ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>" ], "source": { "path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts", @@ -959,7 +959,7 @@ "signature": [ "({ id, itemId, }: ", "DeleteEndpointListItemOptions", - ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>" + ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>" ], "source": { "path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts", @@ -997,7 +997,7 @@ "signature": [ "({ listId, filter, perPage, page, sortField, sortOrder, namespaceType, }: ", "FindExceptionListItemOptions", - ") => Promise<{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; } | null>" + ") => Promise<{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; } | null>" ], "source": { "path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts", @@ -1035,7 +1035,7 @@ "signature": [ "({ listId, filter, perPage, page, sortField, sortOrder, namespaceType, }: ", "FindExceptionListsItemOptions", - ") => Promise<{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; } | null>" + ") => Promise<{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; } | null>" ], "source": { "path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts", @@ -1073,7 +1073,7 @@ "signature": [ "({ perPage, page, sortField, sortOrder, valueListId, }: ", "FindValueListExceptionListsItems", - ") => Promise<{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; } | null>" + ") => Promise<{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; } | null>" ], "source": { "path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts", @@ -1151,7 +1151,7 @@ "signature": [ "({ filter, perPage, page, sortField, sortOrder, }: ", "FindEndpointListItemOptions", - ") => Promise<{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; } | null>" + ") => Promise<{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; } | null>" ], "source": { "path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts", @@ -1277,7 +1277,7 @@ "signature": [ "({ id }: ", "GetListOptions", - ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; } | null>" + ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; } | null>" ], "source": { "path": "x-pack/plugins/lists/server/services/lists/list_client.ts", @@ -1315,7 +1315,7 @@ "signature": [ "({ id, deserializer, immutable, serializer, name, description, type, meta, version, }: ", "CreateListOptions", - ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }>" + ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }>" ], "source": { "path": "x-pack/plugins/lists/server/services/lists/list_client.ts", @@ -1353,7 +1353,7 @@ "signature": [ "({ id, deserializer, serializer, name, description, immutable, type, meta, version, }: ", "CreateListIfItDoesNotExistOptions", - ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }>" + ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }>" ], "source": { "path": "x-pack/plugins/lists/server/services/lists/list_client.ts", @@ -1751,7 +1751,7 @@ "signature": [ "({ id }: ", "DeleteListItemOptions", - ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; } | null>" + ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; } | null>" ], "source": { "path": "x-pack/plugins/lists/server/services/lists/list_client.ts", @@ -1789,7 +1789,7 @@ "signature": [ "({ listId, value, type, }: ", "DeleteListItemByValueOptions", - ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }[]>" + ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }[]>" ], "source": { "path": "x-pack/plugins/lists/server/services/lists/list_client.ts", @@ -1827,7 +1827,7 @@ "signature": [ "({ id }: ", "DeleteListOptions", - ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; } | null>" + ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; } | null>" ], "source": { "path": "x-pack/plugins/lists/server/services/lists/list_client.ts", @@ -1903,7 +1903,7 @@ "signature": [ "({ deserializer, serializer, type, listId, stream, meta, version, }: ", "ImportListItemsToStreamOptions", - ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; } | null>" + ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; } | null>" ], "source": { "path": "x-pack/plugins/lists/server/services/lists/list_client.ts", @@ -1941,7 +1941,7 @@ "signature": [ "({ listId, value, type, }: ", "GetListItemByValueOptions", - ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }[]>" + ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }[]>" ], "source": { "path": "x-pack/plugins/lists/server/services/lists/list_client.ts", @@ -1979,7 +1979,7 @@ "signature": [ "({ id, deserializer, serializer, listId, value, type, meta, }: ", "CreateListItemOptions", - ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; } | null>" + ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; } | null>" ], "source": { "path": "x-pack/plugins/lists/server/services/lists/list_client.ts", @@ -2017,7 +2017,7 @@ "signature": [ "({ _version, id, value, meta, }: ", "UpdateListItemOptions", - ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; } | null>" + ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; } | null>" ], "source": { "path": "x-pack/plugins/lists/server/services/lists/list_client.ts", @@ -2055,7 +2055,7 @@ "signature": [ "({ _version, id, name, description, meta, version, }: ", "UpdateListOptions", - ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; } | null>" + ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; } | null>" ], "source": { "path": "x-pack/plugins/lists/server/services/lists/list_client.ts", @@ -2093,7 +2093,7 @@ "signature": [ "({ id }: ", "GetListItemOptions", - ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; } | null>" + ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; } | null>" ], "source": { "path": "x-pack/plugins/lists/server/services/lists/list_client.ts", @@ -2131,7 +2131,7 @@ "signature": [ "({ type, listId, value, }: ", "GetListItemsByValueOptions", - ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }[]>" + ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }[]>" ], "source": { "path": "x-pack/plugins/lists/server/services/lists/list_client.ts", @@ -2169,7 +2169,7 @@ "signature": [ "({ type, listId, value, }: ", "SearchListItemByValuesOptions", - ") => Promise<{ items: { _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }[]; value: unknown; }[]>" + ") => Promise<{ items: { _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }[]; value: unknown; }[]>" ], "source": { "path": "x-pack/plugins/lists/server/services/lists/list_client.ts", @@ -2207,7 +2207,7 @@ "signature": [ "({ filter, currentIndexPosition, perPage, page, sortField, sortOrder, searchAfter, }: ", "FindListOptions", - ") => Promise<{ cursor: string; data: { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }[]; page: number; per_page: number; total: number; }>" + ") => Promise<{ cursor: string; data: { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }[]; page: number; per_page: number; total: number; }>" ], "source": { "path": "x-pack/plugins/lists/server/services/lists/list_client.ts", @@ -2245,7 +2245,7 @@ "signature": [ "({ listId, filter, currentIndexPosition, perPage, page, sortField, sortOrder, searchAfter, }: ", "FindListItemOptions", - ") => Promise<{ cursor: string; data: { _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }[]; page: number; per_page: number; total: number; } | null>" + ") => Promise<{ cursor: string; data: { _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }[]; page: number; per_page: number; total: number; } | null>" ], "source": { "path": "x-pack/plugins/lists/server/services/lists/list_client.ts", @@ -2316,7 +2316,7 @@ "label": "entries", "description": [], "signature": [ - "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]" + "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]" ], "source": { "path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client_types.ts", @@ -2877,7 +2877,7 @@ "signature": [ "Pick<", "KibanaClient", - ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"helpers\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", + ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"helpers\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", "TransportRequestParams", ", options?: ", "TransportRequestOptions", @@ -3043,7 +3043,7 @@ "label": "entries", "description": [], "signature": [ - "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"date_range\" | \"ip_range\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]" + "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"date\" | \"keyword\" | \"text\" | \"long\" | \"double\" | \"ip\" | \"date_nanos\" | \"ip_range\" | \"date_range\" | \"geo_point\" | \"geo_shape\" | \"binary\" | \"short\" | \"shape\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]" ], "source": { "path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client_types.ts", diff --git a/api_docs/management.mdx b/api_docs/management.mdx index fff52d8d9bf07..36cc53caa1b74 100644 --- a/api_docs/management.mdx +++ b/api_docs/management.mdx @@ -12,7 +12,7 @@ import managementObj from './management.json'; - +Contact [Kibana App](https://github.com/orgs/elastic/teams/kibana-app) for questions regarding this plugin. **Code health stats** diff --git a/api_docs/maps.json b/api_docs/maps.json index 1171ccf406c56..71cfab6e7ba1d 100644 --- a/api_docs/maps.json +++ b/api_docs/maps.json @@ -427,9 +427,7 @@ "label": "_getFilters", "description": [], "signature": [ - "() => ", - "Filter", - "[]" + "() => any[]" ], "source": { "path": "x-pack/plugins/maps/public/embeddable/map_embeddable.tsx", @@ -709,9 +707,7 @@ "label": "addFilters", "description": [], "signature": [ - "(filters: ", - "Filter", - "[], actionId?: string) => Promise" + "(filters: any[], actionId?: string) => Promise" ], "source": { "path": "x-pack/plugins/maps/public/embeddable/map_embeddable.tsx", @@ -727,8 +723,7 @@ "label": "filters", "description": [], "signature": [ - "Filter", - "[]" + "any[]" ], "source": { "path": "x-pack/plugins/maps/public/embeddable/map_embeddable.tsx", @@ -968,9 +963,7 @@ "label": "addFilters", "description": [], "signature": [ - "((filters: ", - "Filter", - "[], actionId: string) => Promise) | null" + "((filters: any[], actionId: string) => Promise) | null" ], "source": { "path": "x-pack/plugins/maps/public/classes/tooltips/tooltip_property.ts", diff --git a/api_docs/metrics_entities.json b/api_docs/metrics_entities.json index b78278a84162a..a5e6da4a47f6a 100644 --- a/api_docs/metrics_entities.json +++ b/api_docs/metrics_entities.json @@ -64,7 +64,7 @@ "signature": [ "Pick<", "KibanaClient", - ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"helpers\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", + ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"helpers\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", "TransportRequestParams", ", options?: ", "TransportRequestOptions", diff --git a/api_docs/monitoring.json b/api_docs/monitoring.json index 17d4bc7eac006..5918561f10e14 100644 --- a/api_docs/monitoring.json +++ b/api_docs/monitoring.json @@ -96,7 +96,7 @@ "signature": [ "Pick<", "KibanaClient", - ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"helpers\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", + ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"helpers\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", "TransportRequestParams", ", options?: ", "TransportRequestOptions", diff --git a/api_docs/observability.json b/api_docs/observability.json index 2680face23d92..c862a60d56971 100644 --- a/api_docs/observability.json +++ b/api_docs/observability.json @@ -3883,7 +3883,7 @@ "signature": [ "Pick<", "KibanaClient", - ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"helpers\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", + ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"helpers\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", "TransportRequestParams", ", options?: ", "TransportRequestOptions", diff --git a/api_docs/observability.mdx b/api_docs/observability.mdx index 30c1673d360e9..bb0545f4adf87 100644 --- a/api_docs/observability.mdx +++ b/api_docs/observability.mdx @@ -12,7 +12,7 @@ import observabilityObj from './observability.json'; - +Contact Observability UI for questions regarding this plugin. **Code health stats** diff --git a/api_docs/reporting.json b/api_docs/reporting.json index b77e76a76ab00..328d872aa11f7 100644 --- a/api_docs/reporting.json +++ b/api_docs/reporting.json @@ -21,7 +21,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 63 + "lineNumber": 59 }, "deprecated": false, "children": [ @@ -37,7 +37,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 66 + "lineNumber": 62 }, "deprecated": false, "children": [ @@ -59,7 +59,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 66 + "lineNumber": 62 }, "deprecated": false, "isRequired": true @@ -79,7 +79,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 70 + "lineNumber": 66 }, "deprecated": false, "children": [ @@ -95,7 +95,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 70 + "lineNumber": 66 }, "deprecated": false, "isRequired": true @@ -115,7 +115,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 77 + "lineNumber": 73 }, "deprecated": false, "children": [ @@ -131,7 +131,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 77 + "lineNumber": 73 }, "deprecated": false, "isRequired": true @@ -151,7 +151,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 83 + "lineNumber": 79 }, "deprecated": false, "children": [ @@ -167,7 +167,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 83 + "lineNumber": 79 }, "deprecated": false, "isRequired": true @@ -189,7 +189,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 89 + "lineNumber": 85 }, "deprecated": false, "children": [ @@ -205,7 +205,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 89 + "lineNumber": 85 }, "deprecated": false, "isRequired": true @@ -222,7 +222,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 89 + "lineNumber": 85 }, "deprecated": false, "isRequired": true @@ -242,7 +242,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 104 + "lineNumber": 100 }, "deprecated": false, "children": [], @@ -256,11 +256,11 @@ "label": "getError", "description": [], "signature": [ - "(jobId: string) => Promise" + "(jobId: string) => Promise" ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 110 + "lineNumber": 106 }, "deprecated": false, "children": [ @@ -276,7 +276,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 110 + "lineNumber": 106 }, "deprecated": false, "isRequired": true @@ -298,7 +298,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 116 + "lineNumber": 120 }, "deprecated": false, "children": [ @@ -314,7 +314,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 116 + "lineNumber": 120 }, "deprecated": false, "isRequired": true @@ -336,7 +336,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 123 + "lineNumber": 127 }, "deprecated": false, "children": [ @@ -352,7 +352,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 123 + "lineNumber": 127 }, "deprecated": false, "isRequired": true @@ -372,7 +372,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 131 + "lineNumber": 135 }, "deprecated": false, "children": [ @@ -388,7 +388,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 131 + "lineNumber": 135 }, "deprecated": false, "isRequired": true @@ -405,7 +405,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 131 + "lineNumber": 135 }, "deprecated": false, "isRequired": true @@ -427,7 +427,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 136 + "lineNumber": 140 }, "deprecated": false, "children": [ @@ -443,7 +443,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 136 + "lineNumber": 140 }, "deprecated": false, "isRequired": true @@ -460,7 +460,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 136 + "lineNumber": 140 }, "deprecated": false, "isRequired": true @@ -480,7 +480,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 153 + "lineNumber": 157 }, "deprecated": false, "children": [], @@ -498,7 +498,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 156 + "lineNumber": 160 }, "deprecated": false, "children": [ @@ -514,7 +514,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 156 + "lineNumber": 160 }, "deprecated": false, "isRequired": true @@ -534,7 +534,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 159 + "lineNumber": 163 }, "deprecated": false, "children": [], @@ -552,7 +552,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 161 + "lineNumber": 165 }, "deprecated": false, "children": [], @@ -570,7 +570,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 167 + "lineNumber": 171 }, "deprecated": false, "children": [], @@ -588,7 +588,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 173 + "lineNumber": 177 }, "deprecated": false, "children": [], @@ -606,7 +606,7 @@ ], "source": { "path": "x-pack/plugins/reporting/public/lib/reporting_api_client/reporting_api_client.ts", - "lineNumber": 179 + "lineNumber": 183 }, "deprecated": false, "children": [], diff --git a/api_docs/rule_registry.json b/api_docs/rule_registry.json index 9462f8712d139..7b69dea910833 100644 --- a/api_docs/rule_registry.json +++ b/api_docs/rule_registry.json @@ -638,7 +638,7 @@ "description": [], "source": { "path": "x-pack/plugins/rule_registry/server/rule_data_client/types.ts", - "lineNumber": 35 + "lineNumber": 36 }, "deprecated": false, "children": [ @@ -655,7 +655,7 @@ ], "source": { "path": "x-pack/plugins/rule_registry/server/rule_data_client/types.ts", - "lineNumber": 36 + "lineNumber": 37 }, "deprecated": false, "children": [ @@ -668,7 +668,7 @@ "description": [], "source": { "path": "x-pack/plugins/rule_registry/server/rule_data_client/types.ts", - "lineNumber": 36 + "lineNumber": 37 }, "deprecated": false, "children": [ @@ -684,7 +684,7 @@ ], "source": { "path": "x-pack/plugins/rule_registry/server/rule_data_client/types.ts", - "lineNumber": 36 + "lineNumber": 37 }, "deprecated": false } @@ -706,7 +706,7 @@ ], "source": { "path": "x-pack/plugins/rule_registry/server/rule_data_client/types.ts", - "lineNumber": 37 + "lineNumber": 38 }, "deprecated": false, "children": [ @@ -719,7 +719,7 @@ "description": [], "source": { "path": "x-pack/plugins/rule_registry/server/rule_data_client/types.ts", - "lineNumber": 37 + "lineNumber": 38 }, "deprecated": false, "children": [ @@ -735,7 +735,7 @@ ], "source": { "path": "x-pack/plugins/rule_registry/server/rule_data_client/types.ts", - "lineNumber": 37 + "lineNumber": 38 }, "deprecated": false } @@ -756,7 +756,7 @@ ], "source": { "path": "x-pack/plugins/rule_registry/server/rule_data_client/types.ts", - "lineNumber": 38 + "lineNumber": 39 }, "deprecated": false, "children": [], @@ -774,7 +774,7 @@ ], "source": { "path": "x-pack/plugins/rule_registry/server/rule_data_client/types.ts", - "lineNumber": 39 + "lineNumber": 40 }, "deprecated": false, "children": [ @@ -787,7 +787,7 @@ "description": [], "source": { "path": "x-pack/plugins/rule_registry/server/rule_data_client/types.ts", - "lineNumber": 39 + "lineNumber": 40 }, "deprecated": false, "children": [ @@ -803,7 +803,7 @@ ], "source": { "path": "x-pack/plugins/rule_registry/server/rule_data_client/types.ts", - "lineNumber": 39 + "lineNumber": 40 }, "deprecated": false } diff --git a/api_docs/security.json b/api_docs/security.json index 97605c3ca755a..1a7e3f5568f8d 100644 --- a/api_docs/security.json +++ b/api_docs/security.json @@ -1946,7 +1946,7 @@ "plugin": "actions", "link": { "path": "x-pack/plugins/actions/server/plugin.ts", - "lineNumber": 453 + "lineNumber": 458 } }, { @@ -2035,7 +2035,7 @@ "plugin": "actions", "link": { "path": "x-pack/plugins/actions/server/plugin.ts", - "lineNumber": 452 + "lineNumber": 457 } }, { diff --git a/api_docs/security_solution.json b/api_docs/security_solution.json index cc27e10835515..ca408f9deb3cb 100644 --- a/api_docs/security_solution.json +++ b/api_docs/security_solution.json @@ -309,7 +309,7 @@ "signature": [ "Pick<", "TGridModel", - ", \"columns\" | \"filters\" | \"title\" | \"id\" | \"sort\" | \"version\" | \"isLoading\" | \"savedObjectId\" | \"dateRange\" | \"deletedEventIds\" | \"excludedRowRendererIds\" | \"expandedDetail\" | \"graphEventId\" | \"kqlQuery\" | \"indexNames\" | \"isSelectAllChecked\" | \"itemsPerPage\" | \"itemsPerPageOptions\" | \"loadingEventIds\" | \"showCheckboxes\" | \"selectedEventIds\"> & { activeTab: ", + ", \"columns\" | \"filters\" | \"title\" | \"id\" | \"sort\" | \"version\" | \"isLoading\" | \"dateRange\" | \"savedObjectId\" | \"dataProviders\" | \"deletedEventIds\" | \"excludedRowRendererIds\" | \"expandedDetail\" | \"graphEventId\" | \"kqlQuery\" | \"indexNames\" | \"isSelectAllChecked\" | \"itemsPerPage\" | \"itemsPerPageOptions\" | \"loadingEventIds\" | \"showCheckboxes\" | \"selectedEventIds\"> & { activeTab: ", { "pluginId": "securitySolution", "scope": "common", @@ -325,9 +325,7 @@ "section": "def-common.TimelineTabs", "text": "TimelineTabs" }, - "; createdBy?: string | undefined; dataProviders: ", - "DataProvider", - "[]; description: string; eqlOptions: ", + "; createdBy?: string | undefined; description: string; eqlOptions: ", { "pluginId": "timelines", "scope": "common", @@ -359,7 +357,7 @@ ], "source": { "path": "x-pack/plugins/security_solution/public/timelines/store/timeline/model.ts", - "lineNumber": 23 + "lineNumber": 22 }, "deprecated": false, "initialIsOpen": false @@ -540,7 +538,7 @@ ], "source": { "path": "x-pack/plugins/security_solution/server/plugin.ts", - "lineNumber": 125 + "lineNumber": 129 }, "deprecated": false, "children": [ @@ -556,7 +554,7 @@ ], "source": { "path": "x-pack/plugins/security_solution/server/plugin.ts", - "lineNumber": 141 + "lineNumber": 145 }, "deprecated": false, "children": [ @@ -579,7 +577,7 @@ ], "source": { "path": "x-pack/plugins/security_solution/server/plugin.ts", - "lineNumber": 141 + "lineNumber": 145 }, "deprecated": false, "isRequired": true @@ -619,7 +617,7 @@ ], "source": { "path": "x-pack/plugins/security_solution/server/plugin.ts", - "lineNumber": 153 + "lineNumber": 157 }, "deprecated": false, "children": [ @@ -652,7 +650,7 @@ ], "source": { "path": "x-pack/plugins/security_solution/server/plugin.ts", - "lineNumber": 153 + "lineNumber": 157 }, "deprecated": false, "isRequired": true @@ -669,7 +667,7 @@ ], "source": { "path": "x-pack/plugins/security_solution/server/plugin.ts", - "lineNumber": 153 + "lineNumber": 157 }, "deprecated": false, "isRequired": true @@ -699,7 +697,7 @@ ], "source": { "path": "x-pack/plugins/security_solution/server/plugin.ts", - "lineNumber": 336 + "lineNumber": 341 }, "deprecated": false, "children": [ @@ -721,7 +719,7 @@ ], "source": { "path": "x-pack/plugins/security_solution/server/plugin.ts", - "lineNumber": 336 + "lineNumber": 341 }, "deprecated": false, "isRequired": true @@ -738,7 +736,7 @@ ], "source": { "path": "x-pack/plugins/security_solution/server/plugin.ts", - "lineNumber": 336 + "lineNumber": 341 }, "deprecated": false, "isRequired": true @@ -758,7 +756,7 @@ ], "source": { "path": "x-pack/plugins/security_solution/server/plugin.ts", - "lineNumber": 416 + "lineNumber": 429 }, "deprecated": false, "children": [], @@ -842,7 +840,7 @@ "description": [], "source": { "path": "x-pack/plugins/security_solution/server/plugin.ts", - "lineNumber": 121 + "lineNumber": 125 }, "deprecated": false, "children": [], @@ -858,7 +856,7 @@ "description": [], "source": { "path": "x-pack/plugins/security_solution/server/plugin.ts", - "lineNumber": 124 + "lineNumber": 128 }, "deprecated": false, "children": [], @@ -17056,7 +17054,7 @@ "label": "renderRow", "description": [], "signature": [ - "({ browserFields, data, timelineId, }: { browserFields: Readonly>>; data: ", "Ecs", - "; timelineId: string; }) => React.ReactNode" + "; isDraggable: boolean; timelineId: string; }) => React.ReactNode" ], "source": { "path": "x-pack/plugins/timelines/common/types/timeline/rows/index.ts", @@ -17093,7 +17091,7 @@ }, ">>>; data: ", "Ecs", - "; timelineId: string; }" + "; isDraggable: boolean; timelineId: string; }" ], "source": { "path": "x-pack/plugins/timelines/common/types/timeline/rows/index.ts", @@ -17751,7 +17749,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 13 + "lineNumber": 15 }, "deprecated": false, "children": [ @@ -17773,7 +17771,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 14 + "lineNumber": 16 }, "deprecated": false }, @@ -17795,7 +17793,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 15 + "lineNumber": 17 }, "deprecated": false } @@ -17833,7 +17831,7 @@ "section": "def-common.TimelineEventsAllRequestOptions", "text": "TimelineEventsAllRequestOptions" }, - ", \"id\" | \"sort\" | \"fields\" | \"language\" | \"timerange\" | \"defaultIndex\" | \"pagination\" | \"filterQuery\" | \"docValueFields\" | \"factoryQueryType\" | \"indexType\" | \"fieldRequested\" | \"excludeEcsData\">" + ", \"id\" | \"sort\" | \"fields\" | \"timerange\" | \"language\" | \"defaultIndex\" | \"pagination\" | \"filterQuery\" | \"docValueFields\" | \"factoryQueryType\" | \"indexType\" | \"entityType\" | \"alertConsumers\" | \"fieldRequested\" | \"excludeEcsData\" | \"authFilter\">" ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/eql/index.ts", @@ -18052,7 +18050,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 37 + "lineNumber": 39 }, "deprecated": false, "children": [ @@ -18068,7 +18066,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 38 + "lineNumber": 40 }, "deprecated": false }, @@ -18084,7 +18082,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 39 + "lineNumber": 41 }, "deprecated": false }, @@ -18100,7 +18098,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 40 + "lineNumber": 42 }, "deprecated": false }, @@ -18116,7 +18114,24 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 41 + "lineNumber": 43 + }, + "deprecated": false + }, + { + "parentPluginId": "securitySolution", + "id": "def-common.TimelineEventsAllRequestOptions.authFilter", + "type": "Object", + "tags": [], + "label": "authFilter", + "description": [], + "signature": [ + "JsonObject", + " | undefined" + ], + "source": { + "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", + "lineNumber": 44 }, "deprecated": false } @@ -18150,7 +18165,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 30 + "lineNumber": 32 }, "deprecated": false, "children": [ @@ -18173,7 +18188,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 31 + "lineNumber": 33 }, "deprecated": false }, @@ -18186,7 +18201,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 32 + "lineNumber": 34 }, "deprecated": false }, @@ -18202,7 +18217,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 33 + "lineNumber": 35 }, "deprecated": false }, @@ -18225,7 +18240,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 34 + "lineNumber": 36 }, "deprecated": false } @@ -18241,7 +18256,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 12 + "lineNumber": 14 }, "deprecated": false, "children": [ @@ -18257,7 +18272,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 13 + "lineNumber": 15 }, "deprecated": false }, @@ -18273,7 +18288,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 14 + "lineNumber": 16 }, "deprecated": false }, @@ -18286,7 +18301,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 15 + "lineNumber": 17 }, "deprecated": false }, @@ -18302,7 +18317,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 16 + "lineNumber": 18 }, "deprecated": false }, @@ -18318,7 +18333,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 18 + "lineNumber": 20 }, "deprecated": false }, @@ -18331,7 +18346,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 19 + "lineNumber": 21 }, "deprecated": false } @@ -18365,7 +18380,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 27 + "lineNumber": 29 }, "deprecated": false, "children": [ @@ -18378,7 +18393,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 29 + "lineNumber": 31 }, "deprecated": false }, @@ -18391,7 +18406,24 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 30 + "lineNumber": 32 + }, + "deprecated": false + }, + { + "parentPluginId": "securitySolution", + "id": "def-common.TimelineEventsDetailsRequestOptions.authFilter", + "type": "Object", + "tags": [], + "label": "authFilter", + "description": [], + "signature": [ + "JsonObject", + " | undefined" + ], + "source": { + "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", + "lineNumber": 33 }, "deprecated": false } @@ -18425,7 +18457,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 22 + "lineNumber": 24 }, "deprecated": false, "children": [ @@ -18448,7 +18480,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 23 + "lineNumber": 25 }, "deprecated": false }, @@ -18471,7 +18503,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 24 + "lineNumber": 26 }, "deprecated": false } @@ -18501,7 +18533,7 @@ "section": "def-common.TimelineRequestBasicOptions", "text": "TimelineRequestBasicOptions" }, - ", \"id\" | \"params\" | \"defaultIndex\" | \"docValueFields\" | \"factoryQueryType\" | \"indexType\">" + ", \"id\" | \"params\" | \"defaultIndex\" | \"docValueFields\" | \"factoryQueryType\" | \"indexType\" | \"entityType\" | \"alertConsumers\">" ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/last_event_time/index.ts", @@ -19012,7 +19044,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 18 + "lineNumber": 20 }, "deprecated": false, "children": [ @@ -19025,7 +19057,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 19 + "lineNumber": 21 }, "deprecated": false }, @@ -19041,7 +19073,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 20 + "lineNumber": 22 }, "deprecated": false }, @@ -19064,7 +19096,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 21 + "lineNumber": 23 }, "deprecated": false }, @@ -19080,7 +19112,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 22 + "lineNumber": 24 }, "deprecated": false } @@ -19218,7 +19250,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 25 + "lineNumber": 27 }, "deprecated": false, "children": [ @@ -19231,7 +19263,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 26 + "lineNumber": 28 }, "deprecated": false }, @@ -19247,7 +19279,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 27 + "lineNumber": 29 }, "deprecated": false } @@ -19373,8 +19405,7 @@ "label": "filters", "description": [], "signature": [ - "Filter", - "[] | undefined" + "any[] | undefined" ], "source": { "path": "x-pack/plugins/security_solution/common/types/timeline/store.ts", diff --git a/api_docs/security_solution.mdx b/api_docs/security_solution.mdx index 00953ef3bbee5..c61a6e7d8e28f 100644 --- a/api_docs/security_solution.mdx +++ b/api_docs/security_solution.mdx @@ -18,7 +18,7 @@ import securitySolutionObj from './security_solution.json'; | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 1296 | 8 | 1245 | 28 | +| 1298 | 8 | 1247 | 27 | ## Client diff --git a/api_docs/spaces.json b/api_docs/spaces.json index cecc76168520f..7db86ee4786e2 100644 --- a/api_docs/spaces.json +++ b/api_docs/spaces.json @@ -1363,7 +1363,7 @@ "plugin": "securitySolution", "link": { "path": "x-pack/plugins/security_solution/server/plugin.ts", - "lineNumber": 187 + "lineNumber": 191 } }, { @@ -2204,7 +2204,7 @@ "plugin": "securitySolution", "link": { "path": "x-pack/plugins/security_solution/server/plugin.ts", - "lineNumber": 187 + "lineNumber": 191 } } ] diff --git a/api_docs/telemetry_collection_manager.json b/api_docs/telemetry_collection_manager.json index 681e10bd3ffaa..8fecd9f54d513 100644 --- a/api_docs/telemetry_collection_manager.json +++ b/api_docs/telemetry_collection_manager.json @@ -86,7 +86,7 @@ "signature": [ "Pick<", "KibanaClient", - ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"helpers\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", + ", \"get\" | \"delete\" | \"create\" | \"index\" | \"update\" | \"closePointInTime\" | \"count\" | \"search\" | \"security\" | \"eql\" | \"on\" | \"off\" | \"transform\" | \"helpers\" | \"emit\" | \"once\" | \"asyncSearch\" | \"autoscaling\" | \"bulk\" | \"cat\" | \"ccr\" | \"clearScroll\" | \"cluster\" | \"danglingIndices\" | \"dataFrameTransformDeprecated\" | \"deleteByQuery\" | \"deleteByQueryRethrottle\" | \"deleteScript\" | \"enrich\" | \"exists\" | \"existsSource\" | \"explain\" | \"features\" | \"fieldCaps\" | \"fleet\" | \"getScript\" | \"getScriptContext\" | \"getScriptLanguages\" | \"getSource\" | \"graph\" | \"ilm\" | \"indices\" | \"info\" | \"ingest\" | \"license\" | \"logstash\" | \"mget\" | \"migration\" | \"ml\" | \"monitoring\" | \"msearch\" | \"msearchTemplate\" | \"mtermvectors\" | \"nodes\" | \"openPointInTime\" | \"ping\" | \"putScript\" | \"rankEval\" | \"reindex\" | \"reindexRethrottle\" | \"renderSearchTemplate\" | \"rollup\" | \"scriptsPainlessExecute\" | \"scroll\" | \"searchShards\" | \"searchTemplate\" | \"searchableSnapshots\" | \"shutdown\" | \"slm\" | \"snapshot\" | \"sql\" | \"ssl\" | \"tasks\" | \"termsEnum\" | \"termvectors\" | \"textStructure\" | \"updateByQuery\" | \"updateByQueryRethrottle\" | \"watcher\" | \"xpack\"> & { transport: { request(params: ", "TransportRequestParams", ", options?: ", "TransportRequestOptions", diff --git a/api_docs/timelines.json b/api_docs/timelines.json index 6ce01a8cadfb8..321ebb422a3a3 100644 --- a/api_docs/timelines.json +++ b/api_docs/timelines.json @@ -15,7 +15,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/components/drag_and_drop/helpers.ts", - "lineNumber": 160 + "lineNumber": 159 }, "deprecated": false, "children": [ @@ -31,7 +31,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/components/drag_and_drop/helpers.ts", - "lineNumber": 160 + "lineNumber": 159 }, "deprecated": false, "isRequired": true @@ -605,7 +605,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/components/drag_and_drop/helpers.ts", - "lineNumber": 210 + "lineNumber": 209 }, "deprecated": false, "children": [ @@ -621,7 +621,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/components/drag_and_drop/helpers.ts", - "lineNumber": 210 + "lineNumber": 209 }, "deprecated": false, "isRequired": true @@ -1258,7 +1258,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/store/t_grid/reducer.ts", - "lineNumber": 53 + "lineNumber": 55 }, "deprecated": false, "returnComment": [], @@ -1820,9 +1820,7 @@ "section": "def-common.ColumnHeaderOptions", "text": "ColumnHeaderOptions" }, - "[]; filters?: ", - "Filter", - "[] | undefined; title: string; id: string; sort: ", + "[]; filters?: any[] | undefined; title: string; id: string; sort: ", { "pluginId": "timelines", "scope": "common", @@ -1830,7 +1828,15 @@ "section": "def-common.SortColumnTimeline", "text": "SortColumnTimeline" }, - "[]; version: string | null; isLoading: boolean; savedObjectId: string | null; dateRange: { start: string; end: string; }; deletedEventIds: string[]; excludedRowRendererIds: ", + "[]; version: string | null; isLoading: boolean; dateRange: { start: string; end: string; }; savedObjectId: string | null; dataProviders: ", + { + "pluginId": "timelines", + "scope": "common", + "docId": "kibTimelinesPluginApi", + "section": "def-common.DataProvider", + "text": "DataProvider" + }, + "[]; deletedEventIds: string[]; excludedRowRendererIds: ", { "pluginId": "timelines", "scope": "common", @@ -1866,7 +1872,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/store/t_grid/model.ts", - "lineNumber": 82 + "lineNumber": 84 }, "deprecated": false, "initialIsOpen": false @@ -1919,7 +1925,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/public/types.ts", - "lineNumber": 23 + "lineNumber": 27 }, "deprecated": false, "children": [ @@ -1936,7 +1942,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/types.ts", - "lineNumber": 24 + "lineNumber": 28 }, "deprecated": false, "returnComment": [], @@ -1960,7 +1966,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/types.ts", - "lineNumber": 25 + "lineNumber": 29 }, "deprecated": false, "returnComment": [], @@ -1977,7 +1983,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/types.ts", - "lineNumber": 26 + "lineNumber": 30 }, "deprecated": false } @@ -1995,7 +2001,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/types.ts", - "lineNumber": 29 + "lineNumber": 33 }, "deprecated": false, "returnComment": [], @@ -2017,7 +2023,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/types.ts", - "lineNumber": 30 + "lineNumber": 34 }, "deprecated": false, "returnComment": [], @@ -2034,7 +2040,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/types.ts", - "lineNumber": 30 + "lineNumber": 34 }, "deprecated": false } @@ -2056,7 +2062,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/types.ts", - "lineNumber": 31 + "lineNumber": 35 }, "deprecated": false, "returnComment": [], @@ -2073,7 +2079,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/types.ts", - "lineNumber": 31 + "lineNumber": 35 }, "deprecated": false } @@ -2095,7 +2101,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/types.ts", - "lineNumber": 32 + "lineNumber": 36 }, "deprecated": false, "returnComment": [], @@ -2114,7 +2120,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/types.ts", - "lineNumber": 32 + "lineNumber": 36 }, "deprecated": false } @@ -2135,7 +2141,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/types.ts", - "lineNumber": 33 + "lineNumber": 37 }, "deprecated": false, "returnComment": [], @@ -2155,7 +2161,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/types.ts", - "lineNumber": 34 + "lineNumber": 38 }, "deprecated": false, "returnComment": [], @@ -2176,7 +2182,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/types.ts", - "lineNumber": 35 + "lineNumber": 39 }, "deprecated": false, "returnComment": [], @@ -2198,7 +2204,7 @@ ], "source": { "path": "x-pack/plugins/timelines/public/types.ts", - "lineNumber": 38 + "lineNumber": 42 }, "deprecated": false, "returnComment": [], @@ -2218,7 +2224,46 @@ ], "source": { "path": "x-pack/plugins/timelines/public/types.ts", - "lineNumber": 38 + "lineNumber": 42 + }, + "deprecated": false + } + ] + }, + { + "parentPluginId": "timelines", + "id": "def-public.TimelinesUIStart.getAddToCaseAction", + "type": "Function", + "tags": [], + "label": "getAddToCaseAction", + "description": [], + "signature": [ + "(props: ", + "AddToCaseActionProps", + ") => React.ReactElement<", + "AddToCaseActionProps", + ">" + ], + "source": { + "path": "x-pack/plugins/timelines/public/types.ts", + "lineNumber": 43 + }, + "deprecated": false, + "returnComment": [], + "children": [ + { + "parentPluginId": "timelines", + "id": "def-public.props", + "type": "Object", + "tags": [], + "label": "props", + "description": [], + "signature": [ + "AddToCaseActionProps" + ], + "source": { + "path": "x-pack/plugins/timelines/public/types.ts", + "lineNumber": 43 }, "deprecated": false } @@ -2245,7 +2290,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/server/types.ts", - "lineNumber": 12 + "lineNumber": 13 }, "deprecated": false, "children": [], @@ -2261,7 +2306,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/server/types.ts", - "lineNumber": 14 + "lineNumber": 15 }, "deprecated": false, "children": [], @@ -6219,7 +6264,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 80 + "lineNumber": 84 }, "deprecated": false, "children": [ @@ -6235,7 +6280,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 81 + "lineNumber": 85 }, "deprecated": false }, @@ -6251,7 +6296,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 82 + "lineNumber": 86 }, "deprecated": false }, @@ -6267,7 +6312,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 83 + "lineNumber": 87 }, "deprecated": false }, @@ -6283,7 +6328,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 84 + "lineNumber": 88 }, "deprecated": false }, @@ -6299,7 +6344,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 85 + "lineNumber": 89 }, "deprecated": false }, @@ -6315,7 +6360,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 86 + "lineNumber": 90 }, "deprecated": false }, @@ -6331,7 +6376,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 87 + "lineNumber": 91 }, "deprecated": false }, @@ -6347,7 +6392,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 88 + "lineNumber": 92 }, "deprecated": false }, @@ -6363,7 +6408,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 89 + "lineNumber": 93 }, "deprecated": false }, @@ -6379,7 +6424,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 90 + "lineNumber": 94 }, "deprecated": false }, @@ -6395,7 +6440,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 91 + "lineNumber": 95 }, "deprecated": false } @@ -6947,7 +6992,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 106 + "lineNumber": 110 }, "deprecated": false, "children": [ @@ -6963,7 +7008,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 107 + "lineNumber": 111 }, "deprecated": false }, @@ -6979,7 +7024,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 108 + "lineNumber": 112 }, "deprecated": false }, @@ -6995,7 +7040,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 109 + "lineNumber": 113 }, "deprecated": false }, @@ -7011,7 +7056,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 110 + "lineNumber": 114 }, "deprecated": false }, @@ -7027,7 +7072,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 111 + "lineNumber": 115 }, "deprecated": false }, @@ -7050,7 +7095,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 112 + "lineNumber": 116 }, "deprecated": false }, @@ -7073,7 +7118,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 113 + "lineNumber": 117 }, "deprecated": false }, @@ -7096,7 +7141,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 114 + "lineNumber": 118 }, "deprecated": false } @@ -7277,7 +7322,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 163 + "lineNumber": 167 }, "deprecated": false, "children": [ @@ -7293,7 +7338,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 164 + "lineNumber": 168 }, "deprecated": false }, @@ -7309,7 +7354,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 165 + "lineNumber": 169 }, "deprecated": false } @@ -7440,7 +7485,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 117 + "lineNumber": 121 }, "deprecated": false, "children": [ @@ -7456,7 +7501,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 118 + "lineNumber": 122 }, "deprecated": false }, @@ -7472,7 +7517,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 119 + "lineNumber": 123 }, "deprecated": false }, @@ -7488,7 +7533,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 120 + "lineNumber": 124 }, "deprecated": false }, @@ -7504,7 +7549,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 121 + "lineNumber": 125 }, "deprecated": false }, @@ -7520,7 +7565,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 122 + "lineNumber": 126 }, "deprecated": false } @@ -8183,7 +8228,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 125 + "lineNumber": 129 }, "deprecated": false, "children": [ @@ -8199,7 +8244,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 126 + "lineNumber": 130 }, "deprecated": false }, @@ -8215,7 +8260,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 127 + "lineNumber": 131 }, "deprecated": false }, @@ -8231,7 +8276,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 128 + "lineNumber": 132 }, "deprecated": false }, @@ -8247,7 +8292,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 129 + "lineNumber": 133 }, "deprecated": false }, @@ -8263,7 +8308,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 130 + "lineNumber": 134 }, "deprecated": false }, @@ -8279,7 +8324,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 131 + "lineNumber": 135 }, "deprecated": false }, @@ -8295,7 +8340,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 132 + "lineNumber": 136 }, "deprecated": false }, @@ -8311,7 +8356,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 133 + "lineNumber": 137 }, "deprecated": false }, @@ -8327,7 +8372,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 134 + "lineNumber": 138 }, "deprecated": false }, @@ -8343,7 +8388,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 135 + "lineNumber": 139 }, "deprecated": false }, @@ -8359,7 +8404,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 136 + "lineNumber": 140 }, "deprecated": false } @@ -8567,7 +8612,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 139 + "lineNumber": 143 }, "deprecated": false, "children": [ @@ -8583,7 +8628,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 140 + "lineNumber": 144 }, "deprecated": false }, @@ -8606,7 +8651,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 141 + "lineNumber": 145 }, "deprecated": false }, @@ -8622,7 +8667,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 142 + "lineNumber": 146 }, "deprecated": false }, @@ -8638,7 +8683,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 143 + "lineNumber": 147 }, "deprecated": false }, @@ -8654,7 +8699,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 144 + "lineNumber": 148 }, "deprecated": false }, @@ -8670,7 +8715,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 145 + "lineNumber": 149 }, "deprecated": false }, @@ -8686,7 +8731,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 146 + "lineNumber": 150 }, "deprecated": false } @@ -9621,7 +9666,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 158 + "lineNumber": 162 }, "deprecated": false, "children": [ @@ -9637,7 +9682,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 159 + "lineNumber": 163 }, "deprecated": false }, @@ -9653,7 +9698,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 160 + "lineNumber": 164 }, "deprecated": false } @@ -9976,7 +10021,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 94 + "lineNumber": 98 }, "deprecated": false, "children": [ @@ -9992,7 +10037,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 95 + "lineNumber": 99 }, "deprecated": false }, @@ -10008,7 +10053,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 97 + "lineNumber": 101 }, "deprecated": false }, @@ -10024,7 +10069,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 99 + "lineNumber": 103 }, "deprecated": false }, @@ -10040,7 +10085,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 101 + "lineNumber": 105 }, "deprecated": false }, @@ -10056,7 +10101,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 103 + "lineNumber": 107 }, "deprecated": false } @@ -10309,7 +10354,7 @@ "label": "renderRow", "description": [], "signature": [ - "({ browserFields, data, timelineId, }: { browserFields: Readonly>>; data: ", "Ecs", - "; timelineId: string; }) => React.ReactNode" + "; isDraggable: boolean; timelineId: string; }) => React.ReactNode" ], "source": { "path": "x-pack/plugins/timelines/common/types/timeline/rows/index.ts", @@ -10346,7 +10391,7 @@ }, ">>>; data: ", "Ecs", - "; timelineId: string; }" + "; isDraggable: boolean; timelineId: string; }" ], "source": { "path": "x-pack/plugins/timelines/common/types/timeline/rows/index.ts", @@ -10420,7 +10465,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 149 + "lineNumber": 153 }, "deprecated": false, "children": [ @@ -10443,7 +10488,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 150 + "lineNumber": 154 }, "deprecated": false } @@ -10498,7 +10543,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 153 + "lineNumber": 157 }, "deprecated": false, "children": [ @@ -10521,7 +10566,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 154 + "lineNumber": 158 }, "deprecated": false }, @@ -10537,7 +10582,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 155 + "lineNumber": 159 }, "deprecated": false } @@ -10797,7 +10842,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 168 + "lineNumber": 172 }, "deprecated": false, "children": [ @@ -10813,7 +10858,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 169 + "lineNumber": 173 }, "deprecated": false }, @@ -10829,7 +10874,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 170 + "lineNumber": 174 }, "deprecated": false } @@ -10845,7 +10890,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 13 + "lineNumber": 15 }, "deprecated": false, "children": [ @@ -10867,7 +10912,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 14 + "lineNumber": 16 }, "deprecated": false }, @@ -10889,7 +10934,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 15 + "lineNumber": 17 }, "deprecated": false } @@ -10927,7 +10972,7 @@ "section": "def-common.TimelineEventsAllRequestOptions", "text": "TimelineEventsAllRequestOptions" }, - ", \"id\" | \"sort\" | \"fields\" | \"language\" | \"timerange\" | \"defaultIndex\" | \"pagination\" | \"filterQuery\" | \"docValueFields\" | \"factoryQueryType\" | \"indexType\" | \"fieldRequested\" | \"excludeEcsData\">" + ", \"id\" | \"sort\" | \"fields\" | \"timerange\" | \"language\" | \"defaultIndex\" | \"pagination\" | \"filterQuery\" | \"docValueFields\" | \"factoryQueryType\" | \"indexType\" | \"entityType\" | \"alertConsumers\" | \"fieldRequested\" | \"excludeEcsData\" | \"authFilter\">" ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/eql/index.ts", @@ -11146,7 +11191,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 37 + "lineNumber": 39 }, "deprecated": false, "children": [ @@ -11162,7 +11207,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 38 + "lineNumber": 40 }, "deprecated": false }, @@ -11178,7 +11223,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 39 + "lineNumber": 41 }, "deprecated": false }, @@ -11194,7 +11239,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 40 + "lineNumber": 42 }, "deprecated": false }, @@ -11210,7 +11255,24 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 41 + "lineNumber": 43 + }, + "deprecated": false + }, + { + "parentPluginId": "timelines", + "id": "def-common.TimelineEventsAllRequestOptions.authFilter", + "type": "Object", + "tags": [], + "label": "authFilter", + "description": [], + "signature": [ + "JsonObject", + " | undefined" + ], + "source": { + "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", + "lineNumber": 44 }, "deprecated": false } @@ -11244,7 +11306,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 30 + "lineNumber": 32 }, "deprecated": false, "children": [ @@ -11267,7 +11329,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 31 + "lineNumber": 33 }, "deprecated": false }, @@ -11280,7 +11342,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 32 + "lineNumber": 34 }, "deprecated": false }, @@ -11296,7 +11358,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 33 + "lineNumber": 35 }, "deprecated": false }, @@ -11319,7 +11381,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 34 + "lineNumber": 36 }, "deprecated": false } @@ -11335,7 +11397,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 12 + "lineNumber": 14 }, "deprecated": false, "children": [ @@ -11351,7 +11413,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 13 + "lineNumber": 15 }, "deprecated": false }, @@ -11367,7 +11429,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 14 + "lineNumber": 16 }, "deprecated": false }, @@ -11380,7 +11442,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 15 + "lineNumber": 17 }, "deprecated": false }, @@ -11396,7 +11458,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 16 + "lineNumber": 18 }, "deprecated": false }, @@ -11412,7 +11474,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 18 + "lineNumber": 20 }, "deprecated": false }, @@ -11425,7 +11487,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 19 + "lineNumber": 21 }, "deprecated": false } @@ -11459,7 +11521,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 27 + "lineNumber": 29 }, "deprecated": false, "children": [ @@ -11472,7 +11534,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 29 + "lineNumber": 31 }, "deprecated": false }, @@ -11485,7 +11547,24 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 30 + "lineNumber": 32 + }, + "deprecated": false + }, + { + "parentPluginId": "timelines", + "id": "def-common.TimelineEventsDetailsRequestOptions.authFilter", + "type": "Object", + "tags": [], + "label": "authFilter", + "description": [], + "signature": [ + "JsonObject", + " | undefined" + ], + "source": { + "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", + "lineNumber": 33 }, "deprecated": false } @@ -11519,7 +11598,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 22 + "lineNumber": 24 }, "deprecated": false, "children": [ @@ -11542,7 +11621,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 23 + "lineNumber": 25 }, "deprecated": false }, @@ -11565,7 +11644,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/details/index.ts", - "lineNumber": 24 + "lineNumber": 26 }, "deprecated": false } @@ -11595,7 +11674,7 @@ "section": "def-common.TimelineRequestBasicOptions", "text": "TimelineRequestBasicOptions" }, - ", \"id\" | \"params\" | \"defaultIndex\" | \"docValueFields\" | \"factoryQueryType\" | \"indexType\">" + ", \"id\" | \"params\" | \"defaultIndex\" | \"docValueFields\" | \"factoryQueryType\" | \"indexType\" | \"entityType\" | \"alertConsumers\">" ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/last_event_time/index.ts", @@ -11732,7 +11811,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 173 + "lineNumber": 177 }, "deprecated": false, "children": [ @@ -11755,7 +11834,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 174 + "lineNumber": 178 }, "deprecated": false }, @@ -11778,7 +11857,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 175 + "lineNumber": 179 }, "deprecated": false }, @@ -11794,7 +11873,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 176 + "lineNumber": 180 }, "deprecated": false }, @@ -11817,7 +11896,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 177 + "lineNumber": 181 }, "deprecated": false }, @@ -11833,7 +11912,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 178 + "lineNumber": 182 }, "deprecated": false }, @@ -11856,7 +11935,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 179 + "lineNumber": 183 }, "deprecated": false }, @@ -11879,7 +11958,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 180 + "lineNumber": 184 }, "deprecated": false }, @@ -11895,7 +11974,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 181 + "lineNumber": 185 }, "deprecated": false }, @@ -11918,7 +11997,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 182 + "lineNumber": 186 }, "deprecated": false }, @@ -11934,7 +12013,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 183 + "lineNumber": 187 }, "deprecated": false }, @@ -11950,7 +12029,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 184 + "lineNumber": 188 }, "deprecated": false }, @@ -11966,7 +12045,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 185 + "lineNumber": 189 }, "deprecated": false }, @@ -11982,7 +12061,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 186 + "lineNumber": 190 }, "deprecated": false }, @@ -12005,7 +12084,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 187 + "lineNumber": 191 }, "deprecated": false }, @@ -12028,7 +12107,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 188 + "lineNumber": 192 }, "deprecated": false }, @@ -12044,7 +12123,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 189 + "lineNumber": 193 }, "deprecated": false }, @@ -12067,7 +12146,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 190 + "lineNumber": 194 }, "deprecated": false }, @@ -12090,7 +12169,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 191 + "lineNumber": 195 }, "deprecated": false } @@ -12106,7 +12185,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 18 + "lineNumber": 20 }, "deprecated": false, "children": [ @@ -12119,7 +12198,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 19 + "lineNumber": 21 }, "deprecated": false }, @@ -12135,7 +12214,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 20 + "lineNumber": 22 }, "deprecated": false }, @@ -12158,7 +12237,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 21 + "lineNumber": 23 }, "deprecated": false }, @@ -12174,7 +12253,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 22 + "lineNumber": 24 }, "deprecated": false } @@ -12312,7 +12391,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 25 + "lineNumber": 27 }, "deprecated": false, "children": [ @@ -12325,7 +12404,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 26 + "lineNumber": 28 }, "deprecated": false }, @@ -12341,7 +12420,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/all/index.ts", - "lineNumber": 27 + "lineNumber": 29 }, "deprecated": false } @@ -12467,8 +12546,7 @@ "label": "filters", "description": [], "signature": [ - "Filter", - "[] | undefined" + "any[] | undefined" ], "source": { "path": "x-pack/plugins/timelines/common/types/timeline/store.ts", @@ -12687,7 +12765,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 38 + "lineNumber": 40 }, "deprecated": false, "children": [ @@ -12709,7 +12787,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 39 + "lineNumber": 41 }, "deprecated": false }, @@ -12737,7 +12815,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 40 + "lineNumber": 42 }, "deprecated": false }, @@ -12753,7 +12831,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 41 + "lineNumber": 43 }, "deprecated": false }, @@ -12770,7 +12848,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 42 + "lineNumber": 44 }, "deprecated": false }, @@ -12793,7 +12871,47 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 43 + "lineNumber": 45 + }, + "deprecated": false + }, + { + "parentPluginId": "timelines", + "id": "def-common.TimelineRequestBasicOptions.entityType", + "type": "CompoundType", + "tags": [], + "label": "entityType", + "description": [], + "signature": [ + { + "pluginId": "timelines", + "scope": "common", + "docId": "kibTimelinesPluginApi", + "section": "def-common.EntityType", + "text": "EntityType" + }, + " | undefined" + ], + "source": { + "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", + "lineNumber": 46 + }, + "deprecated": false + }, + { + "parentPluginId": "timelines", + "id": "def-common.TimelineRequestBasicOptions.alertConsumers", + "type": "Array", + "tags": [], + "label": "alertConsumers", + "description": [], + "signature": [ + "ALERTS_CONSUMERS", + "[] | undefined" + ], + "source": { + "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", + "lineNumber": 47 }, "deprecated": false } @@ -12826,7 +12944,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 50 + "lineNumber": 54 }, "deprecated": false, "children": [ @@ -12842,7 +12960,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 52 + "lineNumber": 56 }, "deprecated": false }, @@ -12865,7 +12983,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 53 + "lineNumber": 57 }, "deprecated": false } @@ -12899,7 +13017,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 46 + "lineNumber": 50 }, "deprecated": false, "children": [ @@ -12912,7 +13030,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 47 + "lineNumber": 51 }, "deprecated": false } @@ -13640,6 +13758,20 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "timelines", + "id": "def-common.EntityType", + "type": "Enum", + "tags": [], + "label": "EntityType", + "description": [], + "source": { + "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/index.ts", + "lineNumber": 20 + }, + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "timelines", "id": "def-common.FlowDirection", @@ -13649,7 +13781,7 @@ "description": [], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 194 + "lineNumber": 198 }, "deprecated": false, "initialIsOpen": false @@ -15481,7 +15613,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 36 + "lineNumber": 38 }, "deprecated": false, "initialIsOpen": false @@ -15787,7 +15919,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 68 + "lineNumber": 72 }, "deprecated": false, "initialIsOpen": false @@ -15868,7 +16000,7 @@ ], "source": { "path": "x-pack/plugins/timelines/common/search_strategy/timeline/index.ts", - "lineNumber": 56 + "lineNumber": 60 }, "deprecated": false, "initialIsOpen": false diff --git a/api_docs/timelines.mdx b/api_docs/timelines.mdx index 6e48be17ba601..78b00340cc544 100644 --- a/api_docs/timelines.mdx +++ b/api_docs/timelines.mdx @@ -18,7 +18,7 @@ import timelinesObj from './timelines.json'; | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 882 | 6 | 763 | 25 | +| 889 | 6 | 770 | 26 | ## Client diff --git a/api_docs/triggers_actions_ui.json b/api_docs/triggers_actions_ui.json index 1c7b699984873..ef489c8ef2f96 100644 --- a/api_docs/triggers_actions_ui.json +++ b/api_docs/triggers_actions_ui.json @@ -2175,9 +2175,9 @@ "ActionTypeModel", "; register: (objectType: ", "ActionTypeModel", - ") => void; list: () => ", + ") => void; has: (id: string) => boolean; list: () => ", "ActionTypeModel", - "[]; has: (id: string) => boolean; }" + "[]; }" ], "source": { "path": "x-pack/plugins/triggers_actions_ui/public/application/app.tsx", @@ -2209,7 +2209,7 @@ "section": "def-public.AlertTypeModel", "text": "AlertTypeModel" }, - ">) => void; list: () => ", + ">) => void; has: (id: string) => boolean; list: () => ", { "pluginId": "triggersActionsUi", "scope": "public", @@ -2217,7 +2217,7 @@ "section": "def-public.AlertTypeModel", "text": "AlertTypeModel" }, - ">[]; has: (id: string) => boolean; }" + ">[]; }" ], "source": { "path": "x-pack/plugins/triggers_actions_ui/public/application/app.tsx", @@ -2447,9 +2447,9 @@ "ActionTypeModel", "; register: (objectType: ", "ActionTypeModel", - ") => void; list: () => ", + ") => void; has: (id: string) => boolean; list: () => ", "ActionTypeModel", - "[]; has: (id: string) => boolean; }" + "[]; }" ], "source": { "path": "x-pack/plugins/triggers_actions_ui/public/types.ts", @@ -2591,7 +2591,7 @@ "section": "def-public.AlertTypeModel", "text": "AlertTypeModel" }, - ">) => void; list: () => ", + ">) => void; has: (id: string) => boolean; list: () => ", { "pluginId": "triggersActionsUi", "scope": "public", @@ -2599,7 +2599,7 @@ "section": "def-public.AlertTypeModel", "text": "AlertTypeModel" }, - ">[]; has: (id: string) => boolean; }" + ">[]; }" ], "source": { "path": "x-pack/plugins/triggers_actions_ui/public/types.ts", diff --git a/api_docs/visualizations.json b/api_docs/visualizations.json index 4bc734b27d487..c29cbdf4719c1 100644 --- a/api_docs/visualizations.json +++ b/api_docs/visualizations.json @@ -1416,6 +1416,107 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "visualizations", + "id": "def-public.prepareLogTable", + "type": "Function", + "tags": [], + "label": "prepareLogTable", + "description": [], + "signature": [ + "(datatable: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.Datatable", + "text": "Datatable" + }, + ", dimensions: ", + { + "pluginId": "visualizations", + "scope": "common", + "docId": "kibVisualizationsPluginApi", + "section": "def-common.Dimension", + "text": "Dimension" + }, + "[]) => { columns: { meta: { dimensionName: string | undefined; type: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.DatatableColumnType", + "text": "DatatableColumnType" + }, + "; field?: string | undefined; index?: string | undefined; params?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.SerializedFieldFormat", + "text": "SerializedFieldFormat" + }, + "> | undefined; source?: string | undefined; sourceParams?: ", + "SerializableState", + " | undefined; }; id: string; name: string; }[]; type: \"datatable\"; rows: Record[]; }" + ], + "source": { + "path": "src/plugins/visualizations/common/prepare_log_table.ts", + "lineNumber": 22 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "visualizations", + "id": "def-public.prepareLogTable.$1", + "type": "Object", + "tags": [], + "label": "datatable", + "description": [], + "signature": [ + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.Datatable", + "text": "Datatable" + } + ], + "source": { + "path": "src/plugins/visualizations/common/prepare_log_table.ts", + "lineNumber": 22 + }, + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "visualizations", + "id": "def-public.prepareLogTable.$2", + "type": "Array", + "tags": [], + "label": "dimensions", + "description": [], + "signature": [ + { + "pluginId": "visualizations", + "scope": "common", + "docId": "kibVisualizationsPluginApi", + "section": "def-common.Dimension", + "text": "Dimension" + }, + "[]" + ], + "source": { + "path": "src/plugins/visualizations/common/prepare_log_table.ts", + "lineNumber": 22 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "visualizations", "id": "def-public.updateOldState", @@ -2959,9 +3060,7 @@ "section": "def-common.TimeRange", "text": "TimeRange" }, - " | undefined) => ", - "RangeFilter", - " | undefined; getBounds: () => ", + " | undefined) => any; getBounds: () => ", { "pluginId": "data", "scope": "common", @@ -4124,13 +4223,12 @@ { "parentPluginId": "visualizations", "id": "def-public.VisualizeInput.query", - "type": "Object", + "type": "Any", "tags": [], "label": "query", "description": [], "signature": [ - "Query", - " | undefined" + "any" ], "source": { "path": "src/plugins/visualizations/public/embeddable/visualize_embeddable.ts", @@ -4146,8 +4244,7 @@ "label": "filters", "description": [], "signature": [ - "Filter", - "[] | undefined" + "any[] | undefined" ], "source": { "path": "src/plugins/visualizations/public/embeddable/visualize_embeddable.ts", @@ -4218,7 +4315,7 @@ "; format: { id?: string | undefined; params: Record; }; }" ], "source": { - "path": "src/plugins/visualizations/public/expression_functions/vis_dimension.ts", + "path": "src/plugins/visualizations/common/expression_functions/vis_dimension.ts", "lineNumber": 23 }, "deprecated": false, @@ -5292,7 +5389,239 @@ }, "common": { "classes": [], - "functions": [], + "functions": [ + { + "parentPluginId": "visualizations", + "id": "def-common.prepareLogTable", + "type": "Function", + "tags": [], + "label": "prepareLogTable", + "description": [], + "signature": [ + "(datatable: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.Datatable", + "text": "Datatable" + }, + ", dimensions: ", + { + "pluginId": "visualizations", + "scope": "common", + "docId": "kibVisualizationsPluginApi", + "section": "def-common.Dimension", + "text": "Dimension" + }, + "[]) => { columns: { meta: { dimensionName: string | undefined; type: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.DatatableColumnType", + "text": "DatatableColumnType" + }, + "; field?: string | undefined; index?: string | undefined; params?: ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.SerializedFieldFormat", + "text": "SerializedFieldFormat" + }, + "> | undefined; source?: string | undefined; sourceParams?: ", + "SerializableState", + " | undefined; }; id: string; name: string; }[]; type: \"datatable\"; rows: Record[]; }" + ], + "source": { + "path": "src/plugins/visualizations/common/prepare_log_table.ts", + "lineNumber": 22 + }, + "deprecated": false, + "children": [ + { + "parentPluginId": "visualizations", + "id": "def-common.prepareLogTable.$1", + "type": "Object", + "tags": [], + "label": "datatable", + "description": [], + "signature": [ + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.Datatable", + "text": "Datatable" + } + ], + "source": { + "path": "src/plugins/visualizations/common/prepare_log_table.ts", + "lineNumber": 22 + }, + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "visualizations", + "id": "def-common.prepareLogTable.$2", + "type": "Array", + "tags": [], + "label": "dimensions", + "description": [], + "signature": [ + { + "pluginId": "visualizations", + "scope": "common", + "docId": "kibVisualizationsPluginApi", + "section": "def-common.Dimension", + "text": "Dimension" + }, + "[]" + ], + "source": { + "path": "src/plugins/visualizations/common/prepare_log_table.ts", + "lineNumber": 22 + }, + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "visualizations", + "id": "def-common.range", + "type": "Function", + "tags": [], + "label": "range", + "description": [], + "signature": [ + "() => ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionFunctionDefinition", + "text": "ExpressionFunctionDefinition" + }, + "<\"range\", ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.Datatable", + "text": "Datatable" + }, + " | null, Arguments, ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.Range", + "text": "Range" + }, + ", ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExecutionContext", + "text": "ExecutionContext" + }, + "<", + { + "pluginId": "inspector", + "scope": "common", + "docId": "kibInspectorPluginApi", + "section": "def-common.Adapters", + "text": "Adapters" + }, + ", ", + "SerializableState", + ">>" + ], + "source": { + "path": "src/plugins/visualizations/common/expression_functions/range.ts", + "lineNumber": 17 + }, + "deprecated": false, + "children": [], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "visualizations", + "id": "def-common.visDimension", + "type": "Function", + "tags": [], + "label": "visDimension", + "description": [], + "signature": [ + "() => ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionFunctionDefinition", + "text": "ExpressionFunctionDefinition" + }, + "<\"visdimension\", ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.Datatable", + "text": "Datatable" + }, + ", Arguments, ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"vis_dimension\", { accessor: number | ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.DatatableColumn", + "text": "DatatableColumn" + }, + "; format: { id?: string | undefined; params: Record; }; }>, ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExecutionContext", + "text": "ExecutionContext" + }, + "<", + { + "pluginId": "inspector", + "scope": "common", + "docId": "kibInspectorPluginApi", + "section": "def-common.Adapters", + "text": "Adapters" + }, + ", ", + "SerializableState", + ">>" + ], + "source": { + "path": "src/plugins/visualizations/common/expression_functions/vis_dimension.ts", + "lineNumber": 34 + }, + "deprecated": false, + "children": [], + "returnComment": [], + "initialIsOpen": false + } + ], "interfaces": [ { "parentPluginId": "visualizations", @@ -5538,7 +5867,66 @@ } ], "enums": [], - "misc": [], + "misc": [ + { + "parentPluginId": "visualizations", + "id": "def-common.Dimension", + "type": "Type", + "tags": [], + "label": "Dimension", + "description": [], + "signature": [ + "[", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueBoxed", + "text": "ExpressionValueBoxed" + }, + "<\"vis_dimension\", { accessor: number | ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.DatatableColumn", + "text": "DatatableColumn" + }, + "; format: { id?: string | undefined; params: Record; }; }>[] | undefined, string]" + ], + "source": { + "path": "src/plugins/visualizations/common/prepare_log_table.ts", + "lineNumber": 12 + }, + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "visualizations", + "id": "def-common.ExpressionValueVisDimension", + "type": "Type", + "tags": [], + "label": "ExpressionValueVisDimension", + "description": [], + "signature": [ + "{ type: \"vis_dimension\"; } & { accessor: number | ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.DatatableColumn", + "text": "DatatableColumn" + }, + "; format: { id?: string | undefined; params: Record; }; }" + ], + "source": { + "path": "src/plugins/visualizations/common/expression_functions/vis_dimension.ts", + "lineNumber": 23 + }, + "deprecated": false, + "initialIsOpen": false + } + ], "objects": [] } } \ No newline at end of file diff --git a/api_docs/visualizations.mdx b/api_docs/visualizations.mdx index a7dab0c029cc8..4686c5b64f936 100644 --- a/api_docs/visualizations.mdx +++ b/api_docs/visualizations.mdx @@ -18,7 +18,7 @@ Contact [Kibana App](https://github.com/orgs/elastic/teams/kibana-app) for quest | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 247 | 13 | 229 | 12 | +| 257 | 14 | 239 | 12 | ## Client @@ -48,6 +48,12 @@ Contact [Kibana App](https://github.com/orgs/elastic/teams/kibana-app) for quest ## Common +### Functions + + ### Interfaces +### Consts, variables and types + + From b9acd3ce749927b18976419b9e719cc640ef9ea9 Mon Sep 17 00:00:00 2001 From: Tiago Costa Date: Fri, 30 Jul 2021 21:03:42 +0100 Subject: [PATCH 20/40] chore(NA): moving @kbn/dev-utils to babel transpiler (#107245) * chore(NA): moving @kbn/dev-utils to babel transpiler * chore(NA): fix types field on tsconfig files for packages missing it * chore(NA): update package.jsons * chore(NA): update kbn/pm dist * chore(NA): update types field on package jsons Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- docs/developer/plugin-list.asciidoc | 2 +- .../kbn-cli-dev-mode/src/cli_dev_mode.test.ts | 4 +- packages/kbn-crypto/BUILD.bazel | 1 - packages/kbn-crypto/tsconfig.json | 6 +- packages/kbn-dev-utils/.babelrc | 3 + packages/kbn-dev-utils/BUILD.bazel | 33 +- .../ci_stats_reporter/package.json | 3 +- packages/kbn-dev-utils/package.json | 4 +- packages/kbn-dev-utils/stdio/package.json | 3 +- .../kbn-dev-utils/tooling_log/package.json | 3 +- packages/kbn-dev-utils/tsconfig.json | 9 +- packages/kbn-optimizer/tsconfig.json | 6 +- packages/kbn-pm/dist/index.js | 6475 ++++++++--------- packages/kbn-server-http-tools/tsconfig.json | 6 +- packages/kbn-telemetry-tools/BUILD.bazel | 1 - packages/kbn-telemetry-tools/tsconfig.json | 6 +- packages/kbn-test/BUILD.bazel | 1 + scripts/register_git_hook.js | 2 +- 18 files changed, 3266 insertions(+), 3302 deletions(-) create mode 100644 packages/kbn-dev-utils/.babelrc diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index ba594b1f312e9..1548669b1c060 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -6,7 +6,7 @@ NOTE: node scripts/build_plugin_list_docs - You can update the template within node_modules/@kbn/dev-utils/target/plugin_list/generate_plugin_list.js + You can update the template within node_modules/@kbn/dev-utils/target_node/plugin_list/generate_plugin_list.js //// diff --git a/packages/kbn-cli-dev-mode/src/cli_dev_mode.test.ts b/packages/kbn-cli-dev-mode/src/cli_dev_mode.test.ts index 3471e69846226..8937eadfa4ee3 100644 --- a/packages/kbn-cli-dev-mode/src/cli_dev_mode.test.ts +++ b/packages/kbn-cli-dev-mode/src/cli_dev_mode.test.ts @@ -34,8 +34,8 @@ const { DevServer } = jest.requireMock('./dev_server'); jest.mock('./base_path_proxy_server'); const { BasePathProxyServer } = jest.requireMock('./base_path_proxy_server'); -jest.mock('@kbn/dev-utils/target/ci_stats_reporter'); -const { CiStatsReporter } = jest.requireMock('@kbn/dev-utils/target/ci_stats_reporter'); +jest.mock('@kbn/dev-utils/ci_stats_reporter'); +const { CiStatsReporter } = jest.requireMock('@kbn/dev-utils/ci_stats_reporter'); jest.mock('./get_server_watch_paths', () => ({ getServerWatchPaths: jest.fn(() => ({ diff --git a/packages/kbn-crypto/BUILD.bazel b/packages/kbn-crypto/BUILD.bazel index bf1ed3f778975..7419145f62888 100644 --- a/packages/kbn-crypto/BUILD.bazel +++ b/packages/kbn-crypto/BUILD.bazel @@ -28,7 +28,6 @@ NPM_MODULE_EXTRA_FILES = [ SRC_DEPS = [ "//packages/kbn-dev-utils", - "@npm//jest-styled-components", "@npm//node-forge", ] diff --git a/packages/kbn-crypto/tsconfig.json b/packages/kbn-crypto/tsconfig.json index a9f18fde1bba0..8b7be5e8a3c9b 100644 --- a/packages/kbn-crypto/tsconfig.json +++ b/packages/kbn-crypto/tsconfig.json @@ -7,7 +7,11 @@ "declarationMap": true, "rootDir": "src", "sourceMap": true, - "sourceRoot": "../../../../packages/kbn-crypto/src" + "sourceRoot": "../../../../packages/kbn-crypto/src", + "types": [ + "jest", + "node" + ] }, "include": ["src/**/*"] } diff --git a/packages/kbn-dev-utils/.babelrc b/packages/kbn-dev-utils/.babelrc new file mode 100644 index 0000000000000..7da72d1779128 --- /dev/null +++ b/packages/kbn-dev-utils/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["@kbn/babel-preset/node_preset"] +} diff --git a/packages/kbn-dev-utils/BUILD.bazel b/packages/kbn-dev-utils/BUILD.bazel index 7c9beafc711ee..65935a0d73868 100644 --- a/packages/kbn-dev-utils/BUILD.bazel +++ b/packages/kbn-dev-utils/BUILD.bazel @@ -1,5 +1,6 @@ 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-dev-utils" PKG_REQUIRE_NAME = "@kbn/dev-utils" @@ -41,21 +42,18 @@ NPM_MODULE_EXTRA_FILES = [ "tooling_log/package.json" ] -SRC_DEPS = [ - "//packages/kbn-expect", +RUNTIME_DEPS = [ "//packages/kbn-std", "//packages/kbn-utils", "@npm//@babel/core", "@npm//axios", "@npm//chalk", - "@npm//chance", "@npm//cheerio", "@npm//dedent", "@npm//execa", "@npm//exit-hook", "@npm//getopts", "@npm//globby", - "@npm//jest-styled-components", "@npm//load-json-file", "@npm//markdown-it", "@npm//moment", @@ -63,13 +61,19 @@ SRC_DEPS = [ "@npm//rxjs", "@npm//tar", "@npm//tree-kill", - "@npm//tslib", - "@npm//typescript", "@npm//vinyl", "@npm//yauzl" ] TYPES_DEPS = [ + "//packages/kbn-std", + "//packages/kbn-utils", + "@npm//axios", + "@npm//execa", + "@npm//exit-hook", + "@npm//getopts", + "@npm//rxjs", + "@npm//tree-kill", "@npm//@types/babel__core", "@npm//@types/cheerio", "@npm//@types/dedent", @@ -85,7 +89,11 @@ TYPES_DEPS = [ "@npm//@types/yauzl" ] -DEPS = SRC_DEPS + TYPES_DEPS +jsts_transpiler( + name = "target_node", + srcs = SRCS, + build_pkg_name = package_name(), +) ts_config( name = "tsconfig", @@ -96,14 +104,15 @@ ts_config( ) ts_project( - name = "tsc", + name = "tsc_types", args = ['--pretty'], srcs = SRCS, - deps = DEPS, + deps = TYPES_DEPS, declaration = True, declaration_map = True, - incremental = True, - out_dir = "target", + emit_declaration_only = True, + incremental = False, + out_dir = "target_types", source_map = True, root_dir = "src", tsconfig = ":tsconfig", @@ -112,7 +121,7 @@ ts_project( js_library( name = PKG_BASE_NAME, srcs = NPM_MODULE_EXTRA_FILES, - deps = DEPS + [":tsc"], + deps = RUNTIME_DEPS + [":target_node", ":tsc_types"], package_name = PKG_REQUIRE_NAME, visibility = ["//visibility:public"], ) diff --git a/packages/kbn-dev-utils/ci_stats_reporter/package.json b/packages/kbn-dev-utils/ci_stats_reporter/package.json index a4f86a9239e31..e20bd531a77ef 100644 --- a/packages/kbn-dev-utils/ci_stats_reporter/package.json +++ b/packages/kbn-dev-utils/ci_stats_reporter/package.json @@ -1,3 +1,4 @@ { - "main": "../target/ci_stats_reporter/ci_stats_reporter" + "main": "../target_node/ci_stats_reporter/ci_stats_reporter", + "types": "../target_types/ci_stats_reporter/ci_stats_reporter" } \ No newline at end of file diff --git a/packages/kbn-dev-utils/package.json b/packages/kbn-dev-utils/package.json index 90c5ef17d1859..9d6e6dde86fac 100644 --- a/packages/kbn-dev-utils/package.json +++ b/packages/kbn-dev-utils/package.json @@ -3,8 +3,8 @@ "version": "1.0.0", "private": true, "license": "SSPL-1.0 OR Elastic License 2.0", - "main": "./target/index.js", - "types": "./target/index.d.ts", + "main": "./target_node/index.js", + "types": "./target_types/index.d.ts", "kibana": { "devOnly": true } diff --git a/packages/kbn-dev-utils/stdio/package.json b/packages/kbn-dev-utils/stdio/package.json index 415ab0e6de316..9aa2d96e19f3f 100644 --- a/packages/kbn-dev-utils/stdio/package.json +++ b/packages/kbn-dev-utils/stdio/package.json @@ -1,3 +1,4 @@ { - "main": "../target/stdio" + "main": "../target_node/stdio", + "types": "../target_types/stdio" } \ No newline at end of file diff --git a/packages/kbn-dev-utils/tooling_log/package.json b/packages/kbn-dev-utils/tooling_log/package.json index 51ee1a38b873e..711a55b9ba335 100644 --- a/packages/kbn-dev-utils/tooling_log/package.json +++ b/packages/kbn-dev-utils/tooling_log/package.json @@ -1,3 +1,4 @@ { - "main": "../target/tooling_log" + "main": "../target_node/tooling_log", + "types": "../target_types/tooling_log" } \ No newline at end of file diff --git a/packages/kbn-dev-utils/tsconfig.json b/packages/kbn-dev-utils/tsconfig.json index 5bb7bd0424daf..56843918d88b1 100644 --- a/packages/kbn-dev-utils/tsconfig.json +++ b/packages/kbn-dev-utils/tsconfig.json @@ -1,15 +1,16 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "incremental": true, - "outDir": "target", - "stripInternal": false, - "target": "ES2019", "declaration": true, "declarationMap": true, + "emitDeclarationOnly": true, + "incremental": false, + "outDir": "target_types", "rootDir": "src", "sourceMap": true, "sourceRoot": "../../../../packages/kbn-dev-utils/src", + "stripInternal": false, + "target": "ES2019", "types": [ "jest", "node" diff --git a/packages/kbn-optimizer/tsconfig.json b/packages/kbn-optimizer/tsconfig.json index 76beaf7689fd4..e7471846beca2 100644 --- a/packages/kbn-optimizer/tsconfig.json +++ b/packages/kbn-optimizer/tsconfig.json @@ -7,7 +7,11 @@ "declarationMap": true, "rootDir": "./src", "sourceMap": true, - "sourceRoot": "../../../../packages/kbn-optimizer/src" + "sourceRoot": "../../../../packages/kbn-optimizer/src", + "types": [ + "jest", + "node" + ] }, "include": [ "src/**/*" diff --git a/packages/kbn-pm/dist/index.js b/packages/kbn-pm/dist/index.js index 470eb3477b159..f78104be83666 100644 --- a/packages/kbn-pm/dist/index.js +++ b/packages/kbn-pm/dist/index.js @@ -94,21 +94,21 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _cli__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "run", function() { return _cli__WEBPACK_IMPORTED_MODULE_0__["run"]; }); -/* harmony import */ var _production__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(563); +/* harmony import */ var _production__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(562); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buildBazelProductionProjects", function() { return _production__WEBPACK_IMPORTED_MODULE_1__["buildBazelProductionProjects"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buildNonBazelProductionProjects", function() { return _production__WEBPACK_IMPORTED_MODULE_1__["buildNonBazelProductionProjects"]; }); -/* harmony import */ var _utils_projects__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(248); +/* harmony import */ var _utils_projects__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(247); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getProjects", function() { return _utils_projects__WEBPACK_IMPORTED_MODULE_2__["getProjects"]; }); -/* harmony import */ var _utils_project__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(250); +/* harmony import */ var _utils_project__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(249); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Project", function() { return _utils_project__WEBPACK_IMPORTED_MODULE_3__["Project"]; }); -/* harmony import */ var _utils_package_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(251); +/* harmony import */ var _utils_package_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(250); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transformDependencies", function() { return _utils_package_json__WEBPACK_IMPORTED_MODULE_4__["transformDependencies"]; }); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(562); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(561); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getProjectPaths", function() { return _config__WEBPACK_IMPORTED_MODULE_5__["getProjectPaths"]; }); /* @@ -140,9 +140,9 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _kbn_dev_utils_tooling_log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5); /* harmony import */ var _kbn_dev_utils_tooling_log__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_kbn_dev_utils_tooling_log__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _commands__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(128); -/* harmony import */ var _run__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(514); -/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(246); +/* harmony import */ var _commands__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(127); +/* harmony import */ var _run__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(513); +/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(245); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -532,25 +532,66 @@ module.exports = require("path"); "use strict"; -/* - * 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. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ToolingLogCollectingWriter = exports.parseLogLevel = exports.pickLevelFromFlags = exports.ToolingLogTextWriter = exports.ToolingLog = void 0; -var tooling_log_1 = __webpack_require__(6); -Object.defineProperty(exports, "ToolingLog", { enumerable: true, get: function () { return tooling_log_1.ToolingLog; } }); -var tooling_log_text_writer_1 = __webpack_require__(111); -Object.defineProperty(exports, "ToolingLogTextWriter", { enumerable: true, get: function () { return tooling_log_text_writer_1.ToolingLogTextWriter; } }); -var log_levels_1 = __webpack_require__(126); -Object.defineProperty(exports, "pickLevelFromFlags", { enumerable: true, get: function () { return log_levels_1.pickLevelFromFlags; } }); -Object.defineProperty(exports, "parseLogLevel", { enumerable: true, get: function () { return log_levels_1.parseLogLevel; } }); -var tooling_log_collecting_writer_1 = __webpack_require__(127); -Object.defineProperty(exports, "ToolingLogCollectingWriter", { enumerable: true, get: function () { return tooling_log_collecting_writer_1.ToolingLogCollectingWriter; } }); -//# sourceMappingURL=index.js.map + +Object.defineProperty(exports, "__esModule", { + value: true +}); +Object.defineProperty(exports, "ToolingLog", { + enumerable: true, + get: function () { + return _tooling_log.ToolingLog; + } +}); +Object.defineProperty(exports, "ToolingLogTextWriter", { + enumerable: true, + get: function () { + return _tooling_log_text_writer.ToolingLogTextWriter; + } +}); +Object.defineProperty(exports, "ToolingLogTextWriterConfig", { + enumerable: true, + get: function () { + return _tooling_log_text_writer.ToolingLogTextWriterConfig; + } +}); +Object.defineProperty(exports, "pickLevelFromFlags", { + enumerable: true, + get: function () { + return _log_levels.pickLevelFromFlags; + } +}); +Object.defineProperty(exports, "parseLogLevel", { + enumerable: true, + get: function () { + return _log_levels.parseLogLevel; + } +}); +Object.defineProperty(exports, "LogLevel", { + enumerable: true, + get: function () { + return _log_levels.LogLevel; + } +}); +Object.defineProperty(exports, "ParsedLogLevel", { + enumerable: true, + get: function () { + return _log_levels.ParsedLogLevel; + } +}); +Object.defineProperty(exports, "ToolingLogCollectingWriter", { + enumerable: true, + get: function () { + return _tooling_log_collecting_writer.ToolingLogCollectingWriter; + } +}); + +var _tooling_log = __webpack_require__(6); + +var _tooling_log_text_writer = __webpack_require__(110); + +var _log_levels = __webpack_require__(125); + +var _tooling_log_collecting_writer = __webpack_require__(126); /***/ }), /* 6 */ @@ -558,77 +599,101 @@ Object.defineProperty(exports, "ToolingLogCollectingWriter", { enumerable: true, "use strict"; -/* - * 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. - */ -Object.defineProperty(exports, "__esModule", { value: true }); + +Object.defineProperty(exports, "__esModule", { + value: true +}); exports.ToolingLog = void 0; -const tslib_1 = __webpack_require__(7); -const Rx = tslib_1.__importStar(__webpack_require__(8)); -const tooling_log_text_writer_1 = __webpack_require__(111); + +var Rx = _interopRequireWildcard(__webpack_require__(7)); + +var _tooling_log_text_writer = __webpack_require__(110); + +function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } + +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + class ToolingLog { - constructor(writerConfig) { - this.identWidth = 0; - this.writers = writerConfig ? [new tooling_log_text_writer_1.ToolingLogTextWriter(writerConfig)] : []; - this.written$ = new Rx.Subject(); - } - indent(delta = 0) { - this.identWidth = Math.max(this.identWidth + delta, 0); - return this.identWidth; - } - verbose(...args) { - this.sendToWriters('verbose', args); - } - debug(...args) { - this.sendToWriters('debug', args); - } - info(...args) { - this.sendToWriters('info', args); - } - success(...args) { - this.sendToWriters('success', args); - } - warning(...args) { - this.sendToWriters('warning', args); - } - error(error) { - this.sendToWriters('error', [error]); - } - write(...args) { - this.sendToWriters('write', args); - } - getWriters() { - return this.writers.slice(0); - } - setWriters(writers) { - this.writers = [...writers]; - } - getWritten$() { - return this.written$.asObservable(); + constructor(writerConfig) { + _defineProperty(this, "identWidth", 0); + + _defineProperty(this, "writers", void 0); + + _defineProperty(this, "written$", void 0); + + this.writers = writerConfig ? [new _tooling_log_text_writer.ToolingLogTextWriter(writerConfig)] : []; + this.written$ = new Rx.Subject(); + } + + indent(delta = 0) { + this.identWidth = Math.max(this.identWidth + delta, 0); + return this.identWidth; + } + + verbose(...args) { + this.sendToWriters('verbose', args); + } + + debug(...args) { + this.sendToWriters('debug', args); + } + + info(...args) { + this.sendToWriters('info', args); + } + + success(...args) { + this.sendToWriters('success', args); + } + + warning(...args) { + this.sendToWriters('warning', args); + } + + error(error) { + this.sendToWriters('error', [error]); + } + + write(...args) { + this.sendToWriters('write', args); + } + + getWriters() { + return this.writers.slice(0); + } + + setWriters(writers) { + this.writers = [...writers]; + } + + getWritten$() { + return this.written$.asObservable(); + } + + sendToWriters(type, args) { + const msg = { + type, + indent: this.identWidth, + args + }; + let written = false; + + for (const writer of this.writers) { + if (writer.write(msg)) { + written = true; + } } - sendToWriters(type, args) { - const msg = { - type, - indent: this.identWidth, - args, - }; - let written = false; - for (const writer of this.writers) { - if (writer.write(msg)) { - written = true; - } - } - if (written) { - this.written$.next(msg); - } + + if (written) { + this.written$.next(msg); } + } + } + exports.ToolingLog = ToolingLog; -//# sourceMappingURL=tooling_log.js.map /***/ }), /* 7 */ @@ -636,446 +701,179 @@ exports.ToolingLog = ToolingLog; "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArray", function() { return __spreadArray; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; }); -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global Reflect, Promise */ - -var extendStatics = function(d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); -}; - -function __extends(d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} - -var __assign = function() { - __assign = Object.assign || function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - } - return __assign.apply(this, arguments); -} - -function __rest(s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -} - -function __decorate(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -} - -function __param(paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } -} - -function __metadata(metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); -} - -function __awaiter(thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} - -function __generator(thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -} - -var __createBinding = Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -}); - -function __exportStar(m, o) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); -} - -function __values(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -} - -function __read(o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -} - -/** @deprecated */ -function __spread() { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; -} - -/** @deprecated */ -function __spreadArrays() { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -} - -function __spreadArray(to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -} - -function __await(v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); -} - -function __asyncGenerator(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -} - -function __asyncDelegator(o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } -} - -function __asyncValues(o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -} - -function __makeTemplateObject(cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; -}; - -var __setModuleDefault = Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}; - -function __importStar(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -} - -function __importDefault(mod) { - return (mod && mod.__esModule) ? mod : { default: mod }; -} - -function __classPrivateFieldGet(receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -} - -function __classPrivateFieldSet(receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -} - - -/***/ }), -/* 8 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _internal_Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); +/* harmony import */ var _internal_Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Observable", function() { return _internal_Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]; }); -/* harmony import */ var _internal_observable_ConnectableObservable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26); +/* harmony import */ var _internal_observable_ConnectableObservable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConnectableObservable", function() { return _internal_observable_ConnectableObservable__WEBPACK_IMPORTED_MODULE_1__["ConnectableObservable"]; }); -/* harmony import */ var _internal_operators_groupBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(31); +/* harmony import */ var _internal_operators_groupBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GroupedObservable", function() { return _internal_operators_groupBy__WEBPACK_IMPORTED_MODULE_2__["GroupedObservable"]; }); -/* harmony import */ var _internal_symbol_observable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23); +/* harmony import */ var _internal_symbol_observable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "observable", function() { return _internal_symbol_observable__WEBPACK_IMPORTED_MODULE_3__["observable"]; }); -/* harmony import */ var _internal_Subject__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(27); +/* harmony import */ var _internal_Subject__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(26); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Subject", function() { return _internal_Subject__WEBPACK_IMPORTED_MODULE_4__["Subject"]; }); -/* harmony import */ var _internal_BehaviorSubject__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(32); +/* harmony import */ var _internal_BehaviorSubject__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BehaviorSubject", function() { return _internal_BehaviorSubject__WEBPACK_IMPORTED_MODULE_5__["BehaviorSubject"]; }); -/* harmony import */ var _internal_ReplaySubject__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(33); +/* harmony import */ var _internal_ReplaySubject__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(32); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReplaySubject", function() { return _internal_ReplaySubject__WEBPACK_IMPORTED_MODULE_6__["ReplaySubject"]; }); -/* harmony import */ var _internal_AsyncSubject__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(50); +/* harmony import */ var _internal_AsyncSubject__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(49); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AsyncSubject", function() { return _internal_AsyncSubject__WEBPACK_IMPORTED_MODULE_7__["AsyncSubject"]; }); -/* harmony import */ var _internal_scheduler_asap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(51); +/* harmony import */ var _internal_scheduler_asap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "asap", function() { return _internal_scheduler_asap__WEBPACK_IMPORTED_MODULE_8__["asap"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "asapScheduler", function() { return _internal_scheduler_asap__WEBPACK_IMPORTED_MODULE_8__["asapScheduler"]; }); -/* harmony import */ var _internal_scheduler_async__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(55); +/* harmony import */ var _internal_scheduler_async__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(54); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "async", function() { return _internal_scheduler_async__WEBPACK_IMPORTED_MODULE_9__["async"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "asyncScheduler", function() { return _internal_scheduler_async__WEBPACK_IMPORTED_MODULE_9__["asyncScheduler"]; }); -/* harmony import */ var _internal_scheduler_queue__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(34); +/* harmony import */ var _internal_scheduler_queue__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(33); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "queue", function() { return _internal_scheduler_queue__WEBPACK_IMPORTED_MODULE_10__["queue"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "queueScheduler", function() { return _internal_scheduler_queue__WEBPACK_IMPORTED_MODULE_10__["queueScheduler"]; }); -/* harmony import */ var _internal_scheduler_animationFrame__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(56); +/* harmony import */ var _internal_scheduler_animationFrame__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(55); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "animationFrame", function() { return _internal_scheduler_animationFrame__WEBPACK_IMPORTED_MODULE_11__["animationFrame"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "animationFrameScheduler", function() { return _internal_scheduler_animationFrame__WEBPACK_IMPORTED_MODULE_11__["animationFrameScheduler"]; }); -/* harmony import */ var _internal_scheduler_VirtualTimeScheduler__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(59); +/* harmony import */ var _internal_scheduler_VirtualTimeScheduler__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(58); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VirtualTimeScheduler", function() { return _internal_scheduler_VirtualTimeScheduler__WEBPACK_IMPORTED_MODULE_12__["VirtualTimeScheduler"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VirtualAction", function() { return _internal_scheduler_VirtualTimeScheduler__WEBPACK_IMPORTED_MODULE_12__["VirtualAction"]; }); -/* harmony import */ var _internal_Scheduler__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(40); +/* harmony import */ var _internal_Scheduler__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(39); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Scheduler", function() { return _internal_Scheduler__WEBPACK_IMPORTED_MODULE_13__["Scheduler"]; }); -/* harmony import */ var _internal_Subscription__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(17); +/* harmony import */ var _internal_Subscription__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(16); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Subscription", function() { return _internal_Subscription__WEBPACK_IMPORTED_MODULE_14__["Subscription"]; }); -/* harmony import */ var _internal_Subscriber__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(11); +/* harmony import */ var _internal_Subscriber__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(10); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Subscriber", function() { return _internal_Subscriber__WEBPACK_IMPORTED_MODULE_15__["Subscriber"]; }); -/* harmony import */ var _internal_Notification__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(42); +/* harmony import */ var _internal_Notification__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(41); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Notification", function() { return _internal_Notification__WEBPACK_IMPORTED_MODULE_16__["Notification"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationKind", function() { return _internal_Notification__WEBPACK_IMPORTED_MODULE_16__["NotificationKind"]; }); -/* harmony import */ var _internal_util_pipe__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(24); +/* harmony import */ var _internal_util_pipe__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(23); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pipe", function() { return _internal_util_pipe__WEBPACK_IMPORTED_MODULE_17__["pipe"]; }); -/* harmony import */ var _internal_util_noop__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(60); +/* harmony import */ var _internal_util_noop__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(59); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return _internal_util_noop__WEBPACK_IMPORTED_MODULE_18__["noop"]; }); -/* harmony import */ var _internal_util_identity__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(25); +/* harmony import */ var _internal_util_identity__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(24); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "identity", function() { return _internal_util_identity__WEBPACK_IMPORTED_MODULE_19__["identity"]; }); -/* harmony import */ var _internal_util_isObservable__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(61); +/* harmony import */ var _internal_util_isObservable__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(60); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isObservable", function() { return _internal_util_isObservable__WEBPACK_IMPORTED_MODULE_20__["isObservable"]; }); -/* harmony import */ var _internal_util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(62); +/* harmony import */ var _internal_util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(61); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ArgumentOutOfRangeError", function() { return _internal_util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_21__["ArgumentOutOfRangeError"]; }); -/* harmony import */ var _internal_util_EmptyError__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(63); +/* harmony import */ var _internal_util_EmptyError__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(62); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyError", function() { return _internal_util_EmptyError__WEBPACK_IMPORTED_MODULE_22__["EmptyError"]; }); -/* harmony import */ var _internal_util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(28); +/* harmony import */ var _internal_util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(27); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectUnsubscribedError", function() { return _internal_util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_23__["ObjectUnsubscribedError"]; }); -/* harmony import */ var _internal_util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(20); +/* harmony import */ var _internal_util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(19); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UnsubscriptionError", function() { return _internal_util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_24__["UnsubscriptionError"]; }); -/* harmony import */ var _internal_util_TimeoutError__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(64); +/* harmony import */ var _internal_util_TimeoutError__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(63); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimeoutError", function() { return _internal_util_TimeoutError__WEBPACK_IMPORTED_MODULE_25__["TimeoutError"]; }); -/* harmony import */ var _internal_observable_bindCallback__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(65); +/* harmony import */ var _internal_observable_bindCallback__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(64); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bindCallback", function() { return _internal_observable_bindCallback__WEBPACK_IMPORTED_MODULE_26__["bindCallback"]; }); -/* harmony import */ var _internal_observable_bindNodeCallback__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(67); +/* harmony import */ var _internal_observable_bindNodeCallback__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(66); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bindNodeCallback", function() { return _internal_observable_bindNodeCallback__WEBPACK_IMPORTED_MODULE_27__["bindNodeCallback"]; }); -/* harmony import */ var _internal_observable_combineLatest__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(68); +/* harmony import */ var _internal_observable_combineLatest__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(67); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "combineLatest", function() { return _internal_observable_combineLatest__WEBPACK_IMPORTED_MODULE_28__["combineLatest"]; }); -/* harmony import */ var _internal_observable_concat__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(79); +/* harmony import */ var _internal_observable_concat__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(78); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "concat", function() { return _internal_observable_concat__WEBPACK_IMPORTED_MODULE_29__["concat"]; }); -/* harmony import */ var _internal_observable_defer__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(91); +/* harmony import */ var _internal_observable_defer__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(90); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defer", function() { return _internal_observable_defer__WEBPACK_IMPORTED_MODULE_30__["defer"]; }); -/* harmony import */ var _internal_observable_empty__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(43); +/* harmony import */ var _internal_observable_empty__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(42); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "empty", function() { return _internal_observable_empty__WEBPACK_IMPORTED_MODULE_31__["empty"]; }); -/* harmony import */ var _internal_observable_forkJoin__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(92); +/* harmony import */ var _internal_observable_forkJoin__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(91); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forkJoin", function() { return _internal_observable_forkJoin__WEBPACK_IMPORTED_MODULE_32__["forkJoin"]; }); -/* harmony import */ var _internal_observable_from__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(83); +/* harmony import */ var _internal_observable_from__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(82); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "from", function() { return _internal_observable_from__WEBPACK_IMPORTED_MODULE_33__["from"]; }); -/* harmony import */ var _internal_observable_fromEvent__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(93); +/* harmony import */ var _internal_observable_fromEvent__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(92); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "fromEvent", function() { return _internal_observable_fromEvent__WEBPACK_IMPORTED_MODULE_34__["fromEvent"]; }); -/* harmony import */ var _internal_observable_fromEventPattern__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(94); +/* harmony import */ var _internal_observable_fromEventPattern__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(93); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "fromEventPattern", function() { return _internal_observable_fromEventPattern__WEBPACK_IMPORTED_MODULE_35__["fromEventPattern"]; }); -/* harmony import */ var _internal_observable_generate__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(95); +/* harmony import */ var _internal_observable_generate__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(94); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "generate", function() { return _internal_observable_generate__WEBPACK_IMPORTED_MODULE_36__["generate"]; }); -/* harmony import */ var _internal_observable_iif__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(96); +/* harmony import */ var _internal_observable_iif__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(95); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "iif", function() { return _internal_observable_iif__WEBPACK_IMPORTED_MODULE_37__["iif"]; }); -/* harmony import */ var _internal_observable_interval__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(97); +/* harmony import */ var _internal_observable_interval__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(96); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interval", function() { return _internal_observable_interval__WEBPACK_IMPORTED_MODULE_38__["interval"]; }); -/* harmony import */ var _internal_observable_merge__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(99); +/* harmony import */ var _internal_observable_merge__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(98); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return _internal_observable_merge__WEBPACK_IMPORTED_MODULE_39__["merge"]; }); -/* harmony import */ var _internal_observable_never__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(100); +/* harmony import */ var _internal_observable_never__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(99); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "never", function() { return _internal_observable_never__WEBPACK_IMPORTED_MODULE_40__["never"]; }); -/* harmony import */ var _internal_observable_of__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(44); +/* harmony import */ var _internal_observable_of__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(43); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "of", function() { return _internal_observable_of__WEBPACK_IMPORTED_MODULE_41__["of"]; }); -/* harmony import */ var _internal_observable_onErrorResumeNext__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(101); +/* harmony import */ var _internal_observable_onErrorResumeNext__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(100); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "onErrorResumeNext", function() { return _internal_observable_onErrorResumeNext__WEBPACK_IMPORTED_MODULE_42__["onErrorResumeNext"]; }); -/* harmony import */ var _internal_observable_pairs__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(102); +/* harmony import */ var _internal_observable_pairs__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(101); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pairs", function() { return _internal_observable_pairs__WEBPACK_IMPORTED_MODULE_43__["pairs"]; }); -/* harmony import */ var _internal_observable_partition__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(103); +/* harmony import */ var _internal_observable_partition__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(102); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "partition", function() { return _internal_observable_partition__WEBPACK_IMPORTED_MODULE_44__["partition"]; }); -/* harmony import */ var _internal_observable_race__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(106); +/* harmony import */ var _internal_observable_race__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(105); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "race", function() { return _internal_observable_race__WEBPACK_IMPORTED_MODULE_45__["race"]; }); -/* harmony import */ var _internal_observable_range__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(107); +/* harmony import */ var _internal_observable_range__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(106); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "range", function() { return _internal_observable_range__WEBPACK_IMPORTED_MODULE_46__["range"]; }); -/* harmony import */ var _internal_observable_throwError__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(49); +/* harmony import */ var _internal_observable_throwError__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(48); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "throwError", function() { return _internal_observable_throwError__WEBPACK_IMPORTED_MODULE_47__["throwError"]; }); -/* harmony import */ var _internal_observable_timer__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(108); +/* harmony import */ var _internal_observable_timer__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(107); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timer", function() { return _internal_observable_timer__WEBPACK_IMPORTED_MODULE_48__["timer"]; }); -/* harmony import */ var _internal_observable_using__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(109); +/* harmony import */ var _internal_observable_using__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(108); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "using", function() { return _internal_observable_using__WEBPACK_IMPORTED_MODULE_49__["using"]; }); -/* harmony import */ var _internal_observable_zip__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(110); +/* harmony import */ var _internal_observable_zip__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(109); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return _internal_observable_zip__WEBPACK_IMPORTED_MODULE_50__["zip"]; }); -/* harmony import */ var _internal_scheduled_scheduled__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(84); +/* harmony import */ var _internal_scheduled_scheduled__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(83); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scheduled", function() { return _internal_scheduled_scheduled__WEBPACK_IMPORTED_MODULE_51__["scheduled"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EMPTY", function() { return _internal_observable_empty__WEBPACK_IMPORTED_MODULE_31__["EMPTY"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NEVER", function() { return _internal_observable_never__WEBPACK_IMPORTED_MODULE_40__["NEVER"]; }); -/* harmony import */ var _internal_config__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(15); +/* harmony import */ var _internal_config__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(14); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "config", function() { return _internal_config__WEBPACK_IMPORTED_MODULE_52__["config"]; }); /** PURE_IMPORTS_START PURE_IMPORTS_END */ @@ -1138,17 +936,17 @@ __webpack_require__.r(__webpack_exports__); /***/ }), -/* 9 */ +/* 8 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Observable", function() { return Observable; }); -/* harmony import */ var _util_canReportError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10); -/* harmony import */ var _util_toSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22); -/* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23); -/* harmony import */ var _util_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(15); +/* harmony import */ var _util_canReportError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); +/* harmony import */ var _util_toSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21); +/* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22); +/* harmony import */ var _util_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(14); /** PURE_IMPORTS_START _util_canReportError,_util_toSubscriber,_symbol_observable,_util_pipe,_config PURE_IMPORTS_END */ @@ -1268,13 +1066,13 @@ function getPromiseCtor(promiseCtor) { /***/ }), -/* 10 */ +/* 9 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "canReportError", function() { return canReportError; }); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10); /** PURE_IMPORTS_START _Subscriber PURE_IMPORTS_END */ function canReportError(observer) { @@ -1296,20 +1094,20 @@ function canReportError(observer) { /***/ }), -/* 11 */ +/* 10 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Subscriber", function() { return Subscriber; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SafeSubscriber", function() { return SafeSubscriber; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13); -/* harmony import */ var _Observer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14); -/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17); -/* harmony import */ var _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(15); -/* harmony import */ var _util_hostReportError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(16); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12); +/* harmony import */ var _Observer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13); +/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16); +/* harmony import */ var _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(14); +/* harmony import */ var _util_hostReportError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(15); /** PURE_IMPORTS_START tslib,_util_isFunction,_Observer,_Subscription,_internal_symbol_rxSubscriber,_config,_util_hostReportError PURE_IMPORTS_END */ @@ -1546,7 +1344,7 @@ var SafeSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 12 */ +/* 11 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1795,7 +1593,7 @@ function __classPrivateFieldSet(receiver, privateMap, value) { /***/ }), -/* 13 */ +/* 12 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1809,14 +1607,14 @@ function isFunction(x) { /***/ }), -/* 14 */ +/* 13 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "empty", function() { return empty; }); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); -/* harmony import */ var _util_hostReportError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14); +/* harmony import */ var _util_hostReportError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); /** PURE_IMPORTS_START _config,_util_hostReportError PURE_IMPORTS_END */ @@ -1837,7 +1635,7 @@ var empty = { /***/ }), -/* 15 */ +/* 14 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1865,7 +1663,7 @@ var config = { /***/ }), -/* 16 */ +/* 15 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1879,16 +1677,16 @@ function hostReportError(err) { /***/ }), -/* 17 */ +/* 16 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Subscription", function() { return Subscription; }); -/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18); -/* harmony import */ var _util_isObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19); -/* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13); -/* harmony import */ var _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20); +/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); +/* harmony import */ var _util_isObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18); +/* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12); +/* harmony import */ var _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19); /** PURE_IMPORTS_START _util_isArray,_util_isObject,_util_isFunction,_util_UnsubscriptionError PURE_IMPORTS_END */ @@ -2032,7 +1830,7 @@ function flattenUnsubscriptionErrors(errors) { /***/ }), -/* 18 */ +/* 17 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2044,7 +1842,7 @@ var isArray = /*@__PURE__*/ (function () { return Array.isArray || (function (x) /***/ }), -/* 19 */ +/* 18 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2058,7 +1856,7 @@ function isObject(x) { /***/ }), -/* 20 */ +/* 19 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2082,7 +1880,7 @@ var UnsubscriptionError = UnsubscriptionErrorImpl; /***/ }), -/* 21 */ +/* 20 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2100,15 +1898,15 @@ var $$rxSubscriber = rxSubscriber; /***/ }), -/* 22 */ +/* 21 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toSubscriber", function() { return toSubscriber; }); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); -/* harmony import */ var _symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21); -/* harmony import */ var _Observer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10); +/* harmony import */ var _symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20); +/* harmony import */ var _Observer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13); /** PURE_IMPORTS_START _Subscriber,_symbol_rxSubscriber,_Observer PURE_IMPORTS_END */ @@ -2131,7 +1929,7 @@ function toSubscriber(nextOrObserver, error, complete) { /***/ }), -/* 23 */ +/* 22 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2143,14 +1941,14 @@ var observable = /*@__PURE__*/ (function () { return typeof Symbol === 'function /***/ }), -/* 24 */ +/* 23 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pipe", function() { return pipe; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pipeFromArray", function() { return pipeFromArray; }); -/* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25); +/* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24); /** PURE_IMPORTS_START _identity PURE_IMPORTS_END */ function pipe() { @@ -2175,7 +1973,7 @@ function pipeFromArray(fns) { /***/ }), -/* 25 */ +/* 24 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2189,19 +1987,19 @@ function identity(x) { /***/ }), -/* 26 */ +/* 25 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConnectableObservable", function() { return ConnectableObservable; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "connectableObservableDescriptor", function() { return connectableObservableDescriptor; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(11); -/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17); -/* harmony import */ var _operators_refCount__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(30); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10); +/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16); +/* harmony import */ var _operators_refCount__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29); /** PURE_IMPORTS_START tslib,_Subject,_Observable,_Subscriber,_Subscription,_operators_refCount PURE_IMPORTS_END */ @@ -2347,7 +2145,7 @@ var RefCountSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 27 */ +/* 26 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2355,13 +2153,13 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubjectSubscriber", function() { return SubjectSubscriber; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Subject", function() { return Subject; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnonymousSubject", function() { return AnonymousSubject; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11); -/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17); -/* harmony import */ var _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28); -/* harmony import */ var _SubjectSubscription__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29); -/* harmony import */ var _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(21); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10); +/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16); +/* harmony import */ var _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(27); +/* harmony import */ var _SubjectSubscription__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28); +/* harmony import */ var _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(20); /** PURE_IMPORTS_START tslib,_Observable,_Subscriber,_Subscription,_util_ObjectUnsubscribedError,_SubjectSubscription,_internal_symbol_rxSubscriber PURE_IMPORTS_END */ @@ -2523,7 +2321,7 @@ var AnonymousSubject = /*@__PURE__*/ (function (_super) { /***/ }), -/* 28 */ +/* 27 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2545,14 +2343,14 @@ var ObjectUnsubscribedError = ObjectUnsubscribedErrorImpl; /***/ }), -/* 29 */ +/* 28 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubjectSubscription", function() { return SubjectSubscription; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); /** PURE_IMPORTS_START tslib,_Subscription PURE_IMPORTS_END */ @@ -2588,14 +2386,14 @@ var SubjectSubscription = /*@__PURE__*/ (function (_super) { /***/ }), -/* 30 */ +/* 29 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "refCount", function() { return refCount; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -2657,18 +2455,18 @@ var RefCountSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 31 */ +/* 30 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "groupBy", function() { return groupBy; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GroupedObservable", function() { return GroupedObservable; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); -/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9); -/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(27); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); +/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8); +/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(26); /** PURE_IMPORTS_START tslib,_Subscriber,_Subscription,_Observable,_Subject PURE_IMPORTS_END */ @@ -2854,15 +2652,15 @@ var InnerRefCountSubscription = /*@__PURE__*/ (function (_super) { /***/ }), -/* 32 */ +/* 31 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BehaviorSubject", function() { return BehaviorSubject; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27); -/* harmony import */ var _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26); +/* harmony import */ var _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27); /** PURE_IMPORTS_START tslib,_Subject,_util_ObjectUnsubscribedError PURE_IMPORTS_END */ @@ -2909,19 +2707,19 @@ var BehaviorSubject = /*@__PURE__*/ (function (_super) { /***/ }), -/* 33 */ +/* 32 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplaySubject", function() { return ReplaySubject; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27); -/* harmony import */ var _scheduler_queue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(34); -/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17); -/* harmony import */ var _operators_observeOn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41); -/* harmony import */ var _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28); -/* harmony import */ var _SubjectSubscription__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(29); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26); +/* harmony import */ var _scheduler_queue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33); +/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16); +/* harmony import */ var _operators_observeOn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(40); +/* harmony import */ var _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(27); +/* harmony import */ var _SubjectSubscription__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(28); /** PURE_IMPORTS_START tslib,_Subject,_scheduler_queue,_Subscription,_operators_observeOn,_util_ObjectUnsubscribedError,_SubjectSubscription PURE_IMPORTS_END */ @@ -3046,15 +2844,15 @@ var ReplayEvent = /*@__PURE__*/ (function () { /***/ }), -/* 34 */ +/* 33 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "queueScheduler", function() { return queueScheduler; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "queue", function() { return queue; }); -/* harmony import */ var _QueueAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(35); -/* harmony import */ var _QueueScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38); +/* harmony import */ var _QueueAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(34); +/* harmony import */ var _QueueScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37); /** PURE_IMPORTS_START _QueueAction,_QueueScheduler PURE_IMPORTS_END */ @@ -3064,14 +2862,14 @@ var queue = queueScheduler; /***/ }), -/* 35 */ +/* 34 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QueueAction", function() { return QueueAction; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(35); /** PURE_IMPORTS_START tslib,_AsyncAction PURE_IMPORTS_END */ @@ -3116,14 +2914,14 @@ var QueueAction = /*@__PURE__*/ (function (_super) { /***/ }), -/* 36 */ +/* 35 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsyncAction", function() { return AsyncAction; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36); /** PURE_IMPORTS_START tslib,_Action PURE_IMPORTS_END */ @@ -3222,14 +3020,14 @@ var AsyncAction = /*@__PURE__*/ (function (_super) { /***/ }), -/* 37 */ +/* 36 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Action", function() { return Action; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); /** PURE_IMPORTS_START tslib,_Subscription PURE_IMPORTS_END */ @@ -3251,14 +3049,14 @@ var Action = /*@__PURE__*/ (function (_super) { /***/ }), -/* 38 */ +/* 37 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QueueScheduler", function() { return QueueScheduler; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38); /** PURE_IMPORTS_START tslib,_AsyncScheduler PURE_IMPORTS_END */ @@ -3274,14 +3072,14 @@ var QueueScheduler = /*@__PURE__*/ (function (_super) { /***/ }), -/* 39 */ +/* 38 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsyncScheduler", function() { return AsyncScheduler; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Scheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(40); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Scheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39); /** PURE_IMPORTS_START tslib,_Scheduler PURE_IMPORTS_END */ @@ -3343,7 +3141,7 @@ var AsyncScheduler = /*@__PURE__*/ (function (_super) { /***/ }), -/* 40 */ +/* 39 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -3371,7 +3169,7 @@ var Scheduler = /*@__PURE__*/ (function () { /***/ }), -/* 41 */ +/* 40 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -3380,9 +3178,9 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ObserveOnOperator", function() { return ObserveOnOperator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ObserveOnSubscriber", function() { return ObserveOnSubscriber; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ObserveOnMessage", function() { return ObserveOnMessage; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); -/* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); +/* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41); /** PURE_IMPORTS_START tslib,_Subscriber,_Notification PURE_IMPORTS_END */ @@ -3455,16 +3253,16 @@ var ObserveOnMessage = /*@__PURE__*/ (function () { /***/ }), -/* 42 */ +/* 41 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationKind", function() { return NotificationKind; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Notification", function() { return Notification; }); -/* harmony import */ var _observable_empty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43); -/* harmony import */ var _observable_of__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44); -/* harmony import */ var _observable_throwError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49); +/* harmony import */ var _observable_empty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); +/* harmony import */ var _observable_of__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(43); +/* harmony import */ var _observable_throwError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48); /** PURE_IMPORTS_START _observable_empty,_observable_of,_observable_throwError PURE_IMPORTS_END */ @@ -3544,14 +3342,14 @@ var Notification = /*@__PURE__*/ (function () { /***/ }), -/* 43 */ +/* 42 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EMPTY", function() { return EMPTY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "empty", function() { return empty; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); /** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */ var EMPTY = /*@__PURE__*/ new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) { return subscriber.complete(); }); @@ -3565,15 +3363,15 @@ function emptyScheduled(scheduler) { /***/ }), -/* 44 */ +/* 43 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "of", function() { return of; }); -/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45); -/* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(46); -/* harmony import */ var _scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48); +/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44); +/* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45); +/* harmony import */ var _scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(47); /** PURE_IMPORTS_START _util_isScheduler,_fromArray,_scheduled_scheduleArray PURE_IMPORTS_END */ @@ -3596,7 +3394,7 @@ function of() { /***/ }), -/* 45 */ +/* 44 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -3610,15 +3408,15 @@ function isScheduler(value) { /***/ }), -/* 46 */ +/* 45 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromArray", function() { return fromArray; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _util_subscribeToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(47); -/* harmony import */ var _scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _util_subscribeToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(46); +/* harmony import */ var _scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(47); /** PURE_IMPORTS_START _Observable,_util_subscribeToArray,_scheduled_scheduleArray PURE_IMPORTS_END */ @@ -3635,7 +3433,7 @@ function fromArray(input, scheduler) { /***/ }), -/* 47 */ +/* 46 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -3654,14 +3452,14 @@ var subscribeToArray = function (array) { /***/ }), -/* 48 */ +/* 47 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheduleArray", function() { return scheduleArray; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); /** PURE_IMPORTS_START _Observable,_Subscription PURE_IMPORTS_END */ @@ -3686,13 +3484,13 @@ function scheduleArray(input, scheduler) { /***/ }), -/* 49 */ +/* 48 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "throwError", function() { return throwError; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); /** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */ function throwError(error, scheduler) { @@ -3711,15 +3509,15 @@ function dispatch(_a) { /***/ }), -/* 50 */ +/* 49 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsyncSubject", function() { return AsyncSubject; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27); -/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26); +/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16); /** PURE_IMPORTS_START tslib,_Subject,_Subscription PURE_IMPORTS_END */ @@ -3770,15 +3568,15 @@ var AsyncSubject = /*@__PURE__*/ (function (_super) { /***/ }), -/* 51 */ +/* 50 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "asapScheduler", function() { return asapScheduler; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "asap", function() { return asap; }); -/* harmony import */ var _AsapAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52); -/* harmony import */ var _AsapScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54); +/* harmony import */ var _AsapAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51); +/* harmony import */ var _AsapScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53); /** PURE_IMPORTS_START _AsapAction,_AsapScheduler PURE_IMPORTS_END */ @@ -3788,15 +3586,15 @@ var asap = asapScheduler; /***/ }), -/* 52 */ +/* 51 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsapAction", function() { return AsapAction; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _util_Immediate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53); -/* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _util_Immediate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52); +/* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(35); /** PURE_IMPORTS_START tslib,_util_Immediate,_AsyncAction PURE_IMPORTS_END */ @@ -3839,7 +3637,7 @@ var AsapAction = /*@__PURE__*/ (function (_super) { /***/ }), -/* 53 */ +/* 52 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -3877,14 +3675,14 @@ var TestTools = { /***/ }), -/* 54 */ +/* 53 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsapScheduler", function() { return AsapScheduler; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38); /** PURE_IMPORTS_START tslib,_AsyncScheduler PURE_IMPORTS_END */ @@ -3921,15 +3719,15 @@ var AsapScheduler = /*@__PURE__*/ (function (_super) { /***/ }), -/* 55 */ +/* 54 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "asyncScheduler", function() { return asyncScheduler; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "async", function() { return async; }); -/* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36); -/* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39); +/* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(35); +/* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38); /** PURE_IMPORTS_START _AsyncAction,_AsyncScheduler PURE_IMPORTS_END */ @@ -3939,15 +3737,15 @@ var async = asyncScheduler; /***/ }), -/* 56 */ +/* 55 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "animationFrameScheduler", function() { return animationFrameScheduler; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "animationFrame", function() { return animationFrame; }); -/* harmony import */ var _AnimationFrameAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57); -/* harmony import */ var _AnimationFrameScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58); +/* harmony import */ var _AnimationFrameAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56); +/* harmony import */ var _AnimationFrameScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(57); /** PURE_IMPORTS_START _AnimationFrameAction,_AnimationFrameScheduler PURE_IMPORTS_END */ @@ -3957,14 +3755,14 @@ var animationFrame = animationFrameScheduler; /***/ }), -/* 57 */ +/* 56 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationFrameAction", function() { return AnimationFrameAction; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(35); /** PURE_IMPORTS_START tslib,_AsyncAction PURE_IMPORTS_END */ @@ -4006,14 +3804,14 @@ var AnimationFrameAction = /*@__PURE__*/ (function (_super) { /***/ }), -/* 58 */ +/* 57 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationFrameScheduler", function() { return AnimationFrameScheduler; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38); /** PURE_IMPORTS_START tslib,_AsyncScheduler PURE_IMPORTS_END */ @@ -4050,16 +3848,16 @@ var AnimationFrameScheduler = /*@__PURE__*/ (function (_super) { /***/ }), -/* 59 */ +/* 58 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VirtualTimeScheduler", function() { return VirtualTimeScheduler; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VirtualAction", function() { return VirtualAction; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36); -/* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(35); +/* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(38); /** PURE_IMPORTS_START tslib,_AsyncAction,_AsyncScheduler PURE_IMPORTS_END */ @@ -4173,7 +3971,7 @@ var VirtualAction = /*@__PURE__*/ (function (_super) { /***/ }), -/* 60 */ +/* 59 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4185,13 +3983,13 @@ function noop() { } /***/ }), -/* 61 */ +/* 60 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isObservable", function() { return isObservable; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); /** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */ function isObservable(obj) { @@ -4201,7 +3999,7 @@ function isObservable(obj) { /***/ }), -/* 62 */ +/* 61 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4223,7 +4021,7 @@ var ArgumentOutOfRangeError = ArgumentOutOfRangeErrorImpl; /***/ }), -/* 63 */ +/* 62 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4245,7 +4043,7 @@ var EmptyError = EmptyErrorImpl; /***/ }), -/* 64 */ +/* 63 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4267,18 +4065,18 @@ var TimeoutError = TimeoutErrorImpl; /***/ }), -/* 65 */ +/* 64 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bindCallback", function() { return bindCallback; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); -/* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(66); -/* harmony import */ var _util_canReportError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10); -/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18); -/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(45); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49); +/* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65); +/* harmony import */ var _util_canReportError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9); +/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17); +/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(44); /** PURE_IMPORTS_START _Observable,_AsyncSubject,_operators_map,_util_canReportError,_util_isArray,_util_isScheduler PURE_IMPORTS_END */ @@ -4387,15 +4185,15 @@ function dispatchError(state) { /***/ }), -/* 66 */ +/* 65 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "map", function() { return map; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MapOperator", function() { return MapOperator; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -4444,18 +4242,18 @@ var MapSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 67 */ +/* 66 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bindNodeCallback", function() { return bindNodeCallback; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); -/* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(66); -/* harmony import */ var _util_canReportError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10); -/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(45); -/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(18); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49); +/* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65); +/* harmony import */ var _util_canReportError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9); +/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(44); +/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17); /** PURE_IMPORTS_START _Observable,_AsyncSubject,_operators_map,_util_canReportError,_util_isScheduler,_util_isArray PURE_IMPORTS_END */ @@ -4572,7 +4370,7 @@ function dispatchError(arg) { /***/ }), -/* 68 */ +/* 67 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4580,12 +4378,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "combineLatest", function() { return combineLatest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CombineLatestOperator", function() { return CombineLatestOperator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CombineLatestSubscriber", function() { return CombineLatestSubscriber; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45); -/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18); -/* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(69); -/* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(70); -/* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(46); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44); +/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17); +/* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(68); +/* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(69); +/* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(45); /** PURE_IMPORTS_START tslib,_util_isScheduler,_util_isArray,_OuterSubscriber,_util_subscribeToResult,_fromArray PURE_IMPORTS_END */ @@ -4690,14 +4488,14 @@ var CombineLatestSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 69 */ +/* 68 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OuterSubscriber", function() { return OuterSubscriber; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -4722,15 +4520,15 @@ var OuterSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 70 */ +/* 69 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subscribeToResult", function() { return subscribeToResult; }); -/* harmony import */ var _InnerSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71); -/* harmony import */ var _subscribeTo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9); +/* harmony import */ var _InnerSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70); +/* harmony import */ var _subscribeTo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8); /** PURE_IMPORTS_START _InnerSubscriber,_subscribeTo,_Observable PURE_IMPORTS_END */ @@ -4751,14 +4549,14 @@ function subscribeToResult(outerSubscriber, result, outerValue, outerIndex, inne /***/ }), -/* 71 */ +/* 70 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InnerSubscriber", function() { return InnerSubscriber; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -4790,21 +4588,21 @@ var InnerSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 72 */ +/* 71 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subscribeTo", function() { return subscribeTo; }); -/* harmony import */ var _subscribeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(47); -/* harmony import */ var _subscribeToPromise__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73); -/* harmony import */ var _subscribeToIterable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(74); -/* harmony import */ var _subscribeToObservable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(76); -/* harmony import */ var _isArrayLike__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(77); -/* harmony import */ var _isPromise__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(78); -/* harmony import */ var _isObject__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(19); -/* harmony import */ var _symbol_iterator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75); -/* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(23); +/* harmony import */ var _subscribeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(46); +/* harmony import */ var _subscribeToPromise__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72); +/* harmony import */ var _subscribeToIterable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(73); +/* harmony import */ var _subscribeToObservable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(75); +/* harmony import */ var _isArrayLike__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76); +/* harmony import */ var _isPromise__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77); +/* harmony import */ var _isObject__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(18); +/* harmony import */ var _symbol_iterator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(74); +/* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(22); /** PURE_IMPORTS_START _subscribeToArray,_subscribeToPromise,_subscribeToIterable,_subscribeToObservable,_isArrayLike,_isPromise,_isObject,_symbol_iterator,_symbol_observable PURE_IMPORTS_END */ @@ -4839,13 +4637,13 @@ var subscribeTo = function (result) { /***/ }), -/* 73 */ +/* 72 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subscribeToPromise", function() { return subscribeToPromise; }); -/* harmony import */ var _hostReportError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); +/* harmony import */ var _hostReportError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); /** PURE_IMPORTS_START _hostReportError PURE_IMPORTS_END */ var subscribeToPromise = function (promise) { @@ -4864,13 +4662,13 @@ var subscribeToPromise = function (promise) { /***/ }), -/* 74 */ +/* 73 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subscribeToIterable", function() { return subscribeToIterable; }); -/* harmony import */ var _symbol_iterator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75); +/* harmony import */ var _symbol_iterator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(74); /** PURE_IMPORTS_START _symbol_iterator PURE_IMPORTS_END */ var subscribeToIterable = function (iterable) { @@ -4908,7 +4706,7 @@ var subscribeToIterable = function (iterable) { /***/ }), -/* 75 */ +/* 74 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4929,13 +4727,13 @@ var $$iterator = iterator; /***/ }), -/* 76 */ +/* 75 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subscribeToObservable", function() { return subscribeToObservable; }); -/* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23); +/* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22); /** PURE_IMPORTS_START _symbol_observable PURE_IMPORTS_END */ var subscribeToObservable = function (obj) { @@ -4953,7 +4751,7 @@ var subscribeToObservable = function (obj) { /***/ }), -/* 77 */ +/* 76 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4965,7 +4763,7 @@ var isArrayLike = (function (x) { return x && typeof x.length === 'number' && ty /***/ }), -/* 78 */ +/* 77 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4979,14 +4777,14 @@ function isPromise(value) { /***/ }), -/* 79 */ +/* 78 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concat", function() { return concat; }); -/* harmony import */ var _of__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44); -/* harmony import */ var _operators_concatAll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80); +/* harmony import */ var _of__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43); +/* harmony import */ var _operators_concatAll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(79); /** PURE_IMPORTS_START _of,_operators_concatAll PURE_IMPORTS_END */ @@ -5001,13 +4799,13 @@ function concat() { /***/ }), -/* 80 */ +/* 79 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concatAll", function() { return concatAll; }); -/* harmony import */ var _mergeAll__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81); +/* harmony import */ var _mergeAll__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80); /** PURE_IMPORTS_START _mergeAll PURE_IMPORTS_END */ function concatAll() { @@ -5017,14 +4815,14 @@ function concatAll() { /***/ }), -/* 81 */ +/* 80 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeAll", function() { return mergeAll; }); -/* harmony import */ var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82); -/* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25); +/* harmony import */ var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81); +/* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24); /** PURE_IMPORTS_START _mergeMap,_util_identity PURE_IMPORTS_END */ @@ -5038,7 +4836,7 @@ function mergeAll(concurrent) { /***/ }), -/* 82 */ +/* 81 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -5047,10 +4845,10 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeMapOperator", function() { return MergeMapOperator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeMapSubscriber", function() { return MergeMapSubscriber; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flatMap", function() { return flatMap; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66); -/* harmony import */ var _observable_from__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(83); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65); +/* harmony import */ var _observable_from__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_map,_observable_from,_innerSubscribe PURE_IMPORTS_END */ @@ -5155,15 +4953,15 @@ var flatMap = mergeMap; /***/ }), -/* 83 */ +/* 82 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "from", function() { return from; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72); -/* harmony import */ var _scheduled_scheduled__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71); +/* harmony import */ var _scheduled_scheduled__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(83); /** PURE_IMPORTS_START _Observable,_util_subscribeTo,_scheduled_scheduled PURE_IMPORTS_END */ @@ -5183,20 +4981,20 @@ function from(input, scheduler) { /***/ }), -/* 84 */ +/* 83 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheduled", function() { return scheduled; }); -/* harmony import */ var _scheduleObservable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85); -/* harmony import */ var _schedulePromise__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(86); -/* harmony import */ var _scheduleArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48); -/* harmony import */ var _scheduleIterable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(87); -/* harmony import */ var _util_isInteropObservable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(88); -/* harmony import */ var _util_isPromise__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(78); -/* harmony import */ var _util_isArrayLike__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77); -/* harmony import */ var _util_isIterable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(89); +/* harmony import */ var _scheduleObservable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84); +/* harmony import */ var _schedulePromise__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85); +/* harmony import */ var _scheduleArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(47); +/* harmony import */ var _scheduleIterable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(86); +/* harmony import */ var _util_isInteropObservable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(87); +/* harmony import */ var _util_isPromise__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77); +/* harmony import */ var _util_isArrayLike__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(76); +/* harmony import */ var _util_isIterable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(88); /** PURE_IMPORTS_START _scheduleObservable,_schedulePromise,_scheduleArray,_scheduleIterable,_util_isInteropObservable,_util_isPromise,_util_isArrayLike,_util_isIterable PURE_IMPORTS_END */ @@ -5227,15 +5025,15 @@ function scheduled(input, scheduler) { /***/ }), -/* 85 */ +/* 84 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheduleObservable", function() { return scheduleObservable; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17); -/* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); +/* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22); /** PURE_IMPORTS_START _Observable,_Subscription,_symbol_observable PURE_IMPORTS_END */ @@ -5258,14 +5056,14 @@ function scheduleObservable(input, scheduler) { /***/ }), -/* 86 */ +/* 85 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "schedulePromise", function() { return schedulePromise; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); /** PURE_IMPORTS_START _Observable,_Subscription PURE_IMPORTS_END */ @@ -5289,15 +5087,15 @@ function schedulePromise(input, scheduler) { /***/ }), -/* 87 */ +/* 86 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheduleIterable", function() { return scheduleIterable; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17); -/* harmony import */ var _symbol_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(75); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); +/* harmony import */ var _symbol_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(74); /** PURE_IMPORTS_START _Observable,_Subscription,_symbol_iterator PURE_IMPORTS_END */ @@ -5347,13 +5145,13 @@ function scheduleIterable(input, scheduler) { /***/ }), -/* 88 */ +/* 87 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isInteropObservable", function() { return isInteropObservable; }); -/* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23); +/* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22); /** PURE_IMPORTS_START _symbol_observable PURE_IMPORTS_END */ function isInteropObservable(input) { @@ -5363,13 +5161,13 @@ function isInteropObservable(input) { /***/ }), -/* 89 */ +/* 88 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIterable", function() { return isIterable; }); -/* harmony import */ var _symbol_iterator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75); +/* harmony import */ var _symbol_iterator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(74); /** PURE_IMPORTS_START _symbol_iterator PURE_IMPORTS_END */ function isIterable(input) { @@ -5379,7 +5177,7 @@ function isIterable(input) { /***/ }), -/* 90 */ +/* 89 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -5389,10 +5187,10 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SimpleOuterSubscriber", function() { return SimpleOuterSubscriber; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ComplexOuterSubscriber", function() { return ComplexOuterSubscriber; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "innerSubscribe", function() { return innerSubscribe; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9); -/* harmony import */ var _util_subscribeTo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8); +/* harmony import */ var _util_subscribeTo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71); /** PURE_IMPORTS_START tslib,_Subscriber,_Observable,_util_subscribeTo PURE_IMPORTS_END */ @@ -5489,15 +5287,15 @@ function innerSubscribe(result, innerSubscriber) { /***/ }), -/* 91 */ +/* 90 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defer", function() { return defer; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(83); -/* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(43); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82); +/* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42); /** PURE_IMPORTS_START _Observable,_from,_empty PURE_IMPORTS_END */ @@ -5520,17 +5318,17 @@ function defer(observableFactory) { /***/ }), -/* 92 */ +/* 91 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "forkJoin", function() { return forkJoin; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18); -/* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(66); -/* harmony import */ var _util_isObject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19); -/* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(83); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17); +/* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65); +/* harmony import */ var _util_isObject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18); +/* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82); /** PURE_IMPORTS_START _Observable,_util_isArray,_operators_map,_util_isObject,_from PURE_IMPORTS_END */ @@ -5603,16 +5401,16 @@ function forkJoinInternal(sources, keys) { /***/ }), -/* 93 */ +/* 92 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromEvent", function() { return fromEvent; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18); -/* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13); -/* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17); +/* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12); +/* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65); /** PURE_IMPORTS_START _Observable,_util_isArray,_util_isFunction,_operators_map PURE_IMPORTS_END */ @@ -5679,16 +5477,16 @@ function isEventTarget(sourceObj) { /***/ }), -/* 94 */ +/* 93 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromEventPattern", function() { return fromEventPattern; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18); -/* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13); -/* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17); +/* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12); +/* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65); /** PURE_IMPORTS_START _Observable,_util_isArray,_util_isFunction,_operators_map PURE_IMPORTS_END */ @@ -5724,15 +5522,15 @@ function fromEventPattern(addHandler, removeHandler, resultSelector) { /***/ }), -/* 95 */ +/* 94 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generate", function() { return generate; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25); -/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(45); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24); +/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(44); /** PURE_IMPORTS_START _Observable,_util_identity,_util_isScheduler PURE_IMPORTS_END */ @@ -5861,14 +5659,14 @@ function dispatch(state) { /***/ }), -/* 96 */ +/* 95 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "iif", function() { return iif; }); -/* harmony import */ var _defer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91); -/* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(43); +/* harmony import */ var _defer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(90); +/* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(42); /** PURE_IMPORTS_START _defer,_empty PURE_IMPORTS_END */ @@ -5885,15 +5683,15 @@ function iif(condition, trueResult, falseResult) { /***/ }), -/* 97 */ +/* 96 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "interval", function() { return interval; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55); -/* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54); +/* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97); /** PURE_IMPORTS_START _Observable,_scheduler_async,_util_isNumeric PURE_IMPORTS_END */ @@ -5925,13 +5723,13 @@ function dispatch(state) { /***/ }), -/* 98 */ +/* 97 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNumeric", function() { return isNumeric; }); -/* harmony import */ var _isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18); +/* harmony import */ var _isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); /** PURE_IMPORTS_START _isArray PURE_IMPORTS_END */ function isNumeric(val) { @@ -5941,16 +5739,16 @@ function isNumeric(val) { /***/ }), -/* 99 */ +/* 98 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return merge; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45); -/* harmony import */ var _operators_mergeAll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81); -/* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(46); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44); +/* harmony import */ var _operators_mergeAll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80); +/* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45); /** PURE_IMPORTS_START _Observable,_util_isScheduler,_operators_mergeAll,_fromArray PURE_IMPORTS_END */ @@ -5982,15 +5780,15 @@ function merge() { /***/ }), -/* 100 */ +/* 99 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NEVER", function() { return NEVER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "never", function() { return never; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _util_noop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(60); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _util_noop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59); /** PURE_IMPORTS_START _Observable,_util_noop PURE_IMPORTS_END */ @@ -6002,16 +5800,16 @@ function never() { /***/ }), -/* 101 */ +/* 100 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onErrorResumeNext", function() { return onErrorResumeNext; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(83); -/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18); -/* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(43); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82); +/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17); +/* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(42); /** PURE_IMPORTS_START _Observable,_from,_util_isArray,_empty PURE_IMPORTS_END */ @@ -6042,15 +5840,15 @@ function onErrorResumeNext() { /***/ }), -/* 102 */ +/* 101 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pairs", function() { return pairs; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dispatch", function() { return dispatch; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); /** PURE_IMPORTS_START _Observable,_Subscription PURE_IMPORTS_END */ @@ -6093,16 +5891,16 @@ function dispatch(state) { /***/ }), -/* 103 */ +/* 102 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "partition", function() { return partition; }); -/* harmony import */ var _util_not__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(104); -/* harmony import */ var _util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72); -/* harmony import */ var _operators_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(105); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9); +/* harmony import */ var _util_not__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(103); +/* harmony import */ var _util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71); +/* harmony import */ var _operators_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(104); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8); /** PURE_IMPORTS_START _util_not,_util_subscribeTo,_operators_filter,_Observable PURE_IMPORTS_END */ @@ -6118,7 +5916,7 @@ function partition(source, predicate, thisArg) { /***/ }), -/* 104 */ +/* 103 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -6137,14 +5935,14 @@ function not(pred, thisArg) { /***/ }), -/* 105 */ +/* 104 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filter", function() { return filter; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -6191,7 +5989,7 @@ var FilterSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 106 */ +/* 105 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -6199,11 +5997,11 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "race", function() { return race; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RaceOperator", function() { return RaceOperator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RaceSubscriber", function() { return RaceSubscriber; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18); -/* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46); -/* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(69); -/* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(70); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17); +/* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(45); +/* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(68); +/* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(69); /** PURE_IMPORTS_START tslib,_util_isArray,_fromArray,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -6285,14 +6083,14 @@ var RaceSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 107 */ +/* 106 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "range", function() { return range; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dispatch", function() { return dispatch; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); /** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */ function range(start, count, scheduler) { @@ -6344,16 +6142,16 @@ function dispatch(state) { /***/ }), -/* 108 */ +/* 107 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timer", function() { return timer; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55); -/* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98); -/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54); +/* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97); +/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(44); /** PURE_IMPORTS_START _Observable,_scheduler_async,_util_isNumeric,_util_isScheduler PURE_IMPORTS_END */ @@ -6398,15 +6196,15 @@ function dispatch(state) { /***/ }), -/* 109 */ +/* 108 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "using", function() { return using; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9); -/* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(83); -/* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(43); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82); +/* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42); /** PURE_IMPORTS_START _Observable,_from,_empty PURE_IMPORTS_END */ @@ -6443,7 +6241,7 @@ function using(resourceFactory, observableFactory) { /***/ }), -/* 110 */ +/* 109 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -6451,12 +6249,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return zip; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ZipOperator", function() { return ZipOperator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ZipSubscriber", function() { return ZipSubscriber; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(46); -/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(11); -/* harmony import */ var _internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(75); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45); +/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10); +/* harmony import */ var _internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_fromArray,_util_isArray,_Subscriber,_.._internal_symbol_iterator,_innerSubscribe PURE_IMPORTS_END */ @@ -6677,107 +6475,134 @@ var ZipBufferIterator = /*@__PURE__*/ (function (_super) { /***/ }), -/* 111 */ +/* 110 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -/* - * 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. - */ -Object.defineProperty(exports, "__esModule", { value: true }); + +Object.defineProperty(exports, "__esModule", { + value: true +}); exports.ToolingLogTextWriter = void 0; -const tslib_1 = __webpack_require__(7); -const util_1 = __webpack_require__(112); -const chalk_1 = tslib_1.__importDefault(__webpack_require__(113)); -const log_levels_1 = __webpack_require__(126); -const { magentaBright, yellow, red, blue, green, dim } = chalk_1.default; + +var _util = __webpack_require__(111); + +var _chalk = _interopRequireDefault(__webpack_require__(112)); + +var _log_levels = __webpack_require__(125); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +const { + magentaBright, + yellow, + red, + blue, + green, + dim +} = _chalk.default; const PREFIX_INDENT = ' '.repeat(6); const MSG_PREFIXES = { - verbose: ` ${magentaBright('sill')} `, - debug: ` ${dim('debg')} `, - info: ` ${blue('info')} `, - success: ` ${green('succ')} `, - warning: ` ${yellow('warn')} `, - error: `${red('ERROR')} `, + verbose: ` ${magentaBright('sill')} `, + debug: ` ${dim('debg')} `, + info: ` ${blue('info')} `, + success: ` ${green('succ')} `, + warning: ` ${yellow('warn')} `, + error: `${red('ERROR')} ` }; + const has = (obj, key) => obj.hasOwnProperty(key); + function shouldWriteType(level, type) { - if (type === 'write') { - return level.name !== 'silent'; - } - return Boolean(level.flags[type === 'success' ? 'info' : type]); + if (type === 'write') { + return level.name !== 'silent'; + } + + return Boolean(level.flags[type === 'success' ? 'info' : type]); } + function stringifyError(error) { - if (typeof error !== 'string' && !(error instanceof Error)) { - error = new Error(`"${error}" thrown`); - } - if (typeof error === 'string') { - return error; - } - return error.stack || error.message || error; + if (typeof error !== 'string' && !(error instanceof Error)) { + error = new Error(`"${error}" thrown`); + } + + if (typeof error === 'string') { + return error; + } + + return error.stack || error.message || error; } + class ToolingLogTextWriter { - constructor(config) { - this.level = log_levels_1.parseLogLevel(config.level); - this.writeTo = config.writeTo; - if (!this.writeTo || typeof this.writeTo.write !== 'function') { - throw new Error('ToolingLogTextWriter requires the `writeTo` option be set to a stream (like process.stdout)'); - } - } - write(msg) { - if (!shouldWriteType(this.level, msg.type)) { - return false; - } - const prefix = has(MSG_PREFIXES, msg.type) ? MSG_PREFIXES[msg.type] : ''; - ToolingLogTextWriter.write(this.writeTo, prefix, msg); - return true; + constructor(config) { + _defineProperty(this, "level", void 0); + + _defineProperty(this, "writeTo", void 0); + + this.level = (0, _log_levels.parseLogLevel)(config.level); + this.writeTo = config.writeTo; + + if (!this.writeTo || typeof this.writeTo.write !== 'function') { + throw new Error('ToolingLogTextWriter requires the `writeTo` option be set to a stream (like process.stdout)'); } - static write(writeTo, prefix, msg) { - const txt = msg.type === 'error' - ? stringifyError(msg.args[0]) - : util_1.format(msg.args[0], ...msg.args.slice(1)); - (prefix + txt).split('\n').forEach((line, i) => { - let lineIndent = ''; - if (msg.indent > 0) { - // if we are indenting write some spaces followed by a symbol - lineIndent += ' '.repeat(msg.indent - 1); - lineIndent += line.startsWith('-') ? '└' : '│'; - } - if (line && prefix && i > 0) { - // apply additional indentation to lines after - // the first if this message gets a prefix - lineIndent += PREFIX_INDENT; - } - writeTo.write(`${lineIndent}${line}\n`); - }); + } + + write(msg) { + if (!shouldWriteType(this.level, msg.type)) { + return false; } + + const prefix = has(MSG_PREFIXES, msg.type) ? MSG_PREFIXES[msg.type] : ''; + ToolingLogTextWriter.write(this.writeTo, prefix, msg); + return true; + } + + static write(writeTo, prefix, msg) { + const txt = msg.type === 'error' ? stringifyError(msg.args[0]) : (0, _util.format)(msg.args[0], ...msg.args.slice(1)); + (prefix + txt).split('\n').forEach((line, i) => { + let lineIndent = ''; + + if (msg.indent > 0) { + // if we are indenting write some spaces followed by a symbol + lineIndent += ' '.repeat(msg.indent - 1); + lineIndent += line.startsWith('-') ? '└' : '│'; + } + + if (line && prefix && i > 0) { + // apply additional indentation to lines after + // the first if this message gets a prefix + lineIndent += PREFIX_INDENT; + } + + writeTo.write(`${lineIndent}${line}\n`); + }); + } + } + exports.ToolingLogTextWriter = ToolingLogTextWriter; -//# sourceMappingURL=tooling_log_text_writer.js.map /***/ }), -/* 112 */ +/* 111 */ /***/ (function(module, exports) { module.exports = require("util"); /***/ }), -/* 113 */ +/* 112 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const ansiStyles = __webpack_require__(114); -const {stdout: stdoutColor, stderr: stderrColor} = __webpack_require__(120); +const ansiStyles = __webpack_require__(113); +const {stdout: stdoutColor, stderr: stderrColor} = __webpack_require__(119); const { stringReplaceAll, stringEncaseCRLFWithFirstIndex -} = __webpack_require__(124); +} = __webpack_require__(123); const {isArray} = Array; @@ -6986,7 +6811,7 @@ const chalkTag = (chalk, ...strings) => { } if (template === undefined) { - template = __webpack_require__(125); + template = __webpack_require__(124); } return template(chalk, parts.join('')); @@ -7003,7 +6828,7 @@ module.exports = chalk; /***/ }), -/* 114 */ +/* 113 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7049,7 +6874,7 @@ const setLazyProperty = (object, property, get) => { let colorConvert; const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => { if (colorConvert === undefined) { - colorConvert = __webpack_require__(116); + colorConvert = __webpack_require__(115); } const offset = isBackground ? 10 : 0; @@ -7171,10 +6996,10 @@ Object.defineProperty(module, 'exports', { get: assembleStyles }); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(115)(module))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(114)(module))) /***/ }), -/* 115 */ +/* 114 */ /***/ (function(module, exports) { module.exports = function(module) { @@ -7202,11 +7027,11 @@ module.exports = function(module) { /***/ }), -/* 116 */ +/* 115 */ /***/ (function(module, exports, __webpack_require__) { -const conversions = __webpack_require__(117); -const route = __webpack_require__(119); +const conversions = __webpack_require__(116); +const route = __webpack_require__(118); const convert = {}; @@ -7289,12 +7114,12 @@ module.exports = convert; /***/ }), -/* 117 */ +/* 116 */ /***/ (function(module, exports, __webpack_require__) { /* MIT license */ /* eslint-disable no-mixed-operators */ -const cssKeywords = __webpack_require__(118); +const cssKeywords = __webpack_require__(117); // NOTE: conversions should only return primitive values (i.e. arrays, or // values that give correct `typeof` results). @@ -8134,7 +7959,7 @@ convert.rgb.gray = function (rgb) { /***/ }), -/* 118 */ +/* 117 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8293,10 +8118,10 @@ module.exports = { /***/ }), -/* 119 */ +/* 118 */ /***/ (function(module, exports, __webpack_require__) { -const conversions = __webpack_require__(117); +const conversions = __webpack_require__(116); /* This function routes a model to all other models. @@ -8396,14 +8221,14 @@ module.exports = function (fromModel) { /***/ }), -/* 120 */ +/* 119 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const os = __webpack_require__(121); -const tty = __webpack_require__(122); -const hasFlag = __webpack_require__(123); +const os = __webpack_require__(120); +const tty = __webpack_require__(121); +const hasFlag = __webpack_require__(122); const {env} = process; @@ -8542,19 +8367,19 @@ module.exports = { /***/ }), -/* 121 */ +/* 120 */ /***/ (function(module, exports) { module.exports = require("os"); /***/ }), -/* 122 */ +/* 121 */ /***/ (function(module, exports) { module.exports = require("tty"); /***/ }), -/* 123 */ +/* 122 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8569,7 +8394,7 @@ module.exports = (flag, argv = process.argv) => { /***/ }), -/* 124 */ +/* 123 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8615,7 +8440,7 @@ module.exports = { /***/ }), -/* 125 */ +/* 124 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8756,11 +8581,20 @@ module.exports = (chalk, temporary) => { /***/ }), -/* 126 */ +/* 125 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.pickLevelFromFlags = pickLevelFromFlags; +exports.getLogLevelFlagsHelp = getLogLevelFlagsHelp; +exports.parseLogLevel = parseLogLevel; +exports.LOG_LEVEL_FLAGS = exports.DEFAULT_LOG_LEVEL = void 0; + /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -8768,116 +8602,111 @@ module.exports = (chalk, temporary) => { * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseLogLevel = exports.getLogLevelFlagsHelp = exports.LOG_LEVEL_FLAGS = exports.pickLevelFromFlags = exports.DEFAULT_LOG_LEVEL = void 0; const LEVELS = ['silent', 'error', 'warning', 'success', 'info', 'debug', 'verbose']; -exports.DEFAULT_LOG_LEVEL = 'info'; +const DEFAULT_LOG_LEVEL = 'info'; +exports.DEFAULT_LOG_LEVEL = DEFAULT_LOG_LEVEL; + function pickLevelFromFlags(flags, options = {}) { - if (flags.verbose) - return 'verbose'; - if (flags.debug) - return 'debug'; - if (flags.info) - return 'info'; - if (flags.quiet) - return 'error'; - if (flags.silent) - return 'silent'; - return options.default || exports.DEFAULT_LOG_LEVEL; + if (flags.verbose) return 'verbose'; + if (flags.debug) return 'debug'; + if (flags.info) return 'info'; + if (flags.quiet) return 'error'; + if (flags.silent) return 'silent'; + return options.default || DEFAULT_LOG_LEVEL; +} + +const LOG_LEVEL_FLAGS = [{ + name: 'verbose', + help: '--verbose, -v Log verbosely' +}, { + name: 'info', + help: "--info Don't log debug messages" +}, { + name: 'debug', + help: '--debug Log debug messages (less than verbose)' +}, { + name: 'quiet', + help: '--quiet Only log errors' +}, { + name: 'silent', + help: "--silent Don't log anything" +}]; +exports.LOG_LEVEL_FLAGS = LOG_LEVEL_FLAGS; + +function getLogLevelFlagsHelp(defaultLogLevel = DEFAULT_LOG_LEVEL) { + return LOG_LEVEL_FLAGS.filter(({ + name + }) => name !== defaultLogLevel).map(({ + help + }) => help).join('\n'); } -exports.pickLevelFromFlags = pickLevelFromFlags; -exports.LOG_LEVEL_FLAGS = [ - { - name: 'verbose', - help: '--verbose, -v Log verbosely', - }, - { - name: 'info', - help: "--info Don't log debug messages", - }, - { - name: 'debug', - help: '--debug Log debug messages (less than verbose)', - }, - { - name: 'quiet', - help: '--quiet Only log errors', - }, - { - name: 'silent', - help: "--silent Don't log anything", - }, -]; -function getLogLevelFlagsHelp(defaultLogLevel = exports.DEFAULT_LOG_LEVEL) { - return exports.LOG_LEVEL_FLAGS.filter(({ name }) => name !== defaultLogLevel) - .map(({ help }) => help) - .join('\n'); -} -exports.getLogLevelFlagsHelp = getLogLevelFlagsHelp; + function parseLogLevel(name) { - const i = LEVELS.indexOf(name); - if (i === -1) { - const msg = `Invalid log level "${name}" ` + `(expected one of ${LEVELS.join(',')})`; - throw new Error(msg); - } - const flags = {}; - LEVELS.forEach((level, levelI) => { - flags[level] = levelI <= i; - }); - return { - name, - flags: flags, - }; + const i = LEVELS.indexOf(name); + + if (i === -1) { + const msg = `Invalid log level "${name}" ` + `(expected one of ${LEVELS.join(',')})`; + throw new Error(msg); + } + + const flags = {}; + LEVELS.forEach((level, levelI) => { + flags[level] = levelI <= i; + }); + return { + name, + flags: flags + }; } -exports.parseLogLevel = parseLogLevel; -//# sourceMappingURL=log_levels.js.map /***/ }), -/* 127 */ +/* 126 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -/* - * 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. - */ -Object.defineProperty(exports, "__esModule", { value: true }); + +Object.defineProperty(exports, "__esModule", { + value: true +}); exports.ToolingLogCollectingWriter = void 0; -const tooling_log_text_writer_1 = __webpack_require__(111); -class ToolingLogCollectingWriter extends tooling_log_text_writer_1.ToolingLogTextWriter { - constructor(level = 'verbose') { - super({ - level, - writeTo: { - write: (msg) => { - // trim trailing new line - this.messages.push(msg.slice(0, -1)); - }, - }, - }); - this.messages = []; - } + +var _tooling_log_text_writer = __webpack_require__(110); + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +class ToolingLogCollectingWriter extends _tooling_log_text_writer.ToolingLogTextWriter { + constructor(level = 'verbose') { + super({ + level, + writeTo: { + write: msg => { + // trim trailing new line + this.messages.push(msg.slice(0, -1)); + } + } + }); + + _defineProperty(this, "messages", []); + } + } + exports.ToolingLogCollectingWriter = ToolingLogCollectingWriter; -//# sourceMappingURL=tooling_log_collecting_writer.js.map /***/ }), -/* 128 */ +/* 127 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "commands", function() { return commands; }); -/* harmony import */ var _bootstrap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(129); -/* harmony import */ var _build__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(478); -/* harmony import */ var _clean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(479); -/* harmony import */ var _reset__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(511); -/* harmony import */ var _run__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(512); -/* harmony import */ var _watch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(513); +/* harmony import */ var _bootstrap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(128); +/* harmony import */ var _build__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(477); +/* harmony import */ var _clean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(478); +/* harmony import */ var _reset__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(510); +/* harmony import */ var _run__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(511); +/* harmony import */ var _watch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(512); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -8901,7 +8730,7 @@ const commands = { }; /***/ }), -/* 129 */ +/* 128 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -8909,15 +8738,15 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BootstrapCommand", function() { return BootstrapCommand; }); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _utils_link_project_executables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(130); -/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(246); -/* harmony import */ var _utils_parallelize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(247); -/* harmony import */ var _utils_projects__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(248); -/* harmony import */ var _utils_project_checksums__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(364); -/* harmony import */ var _utils_bootstrap_cache_file__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(369); -/* harmony import */ var _utils_yarn_lock__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(366); -/* harmony import */ var _utils_validate_dependencies__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(370); -/* harmony import */ var _utils_bazel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(372); +/* harmony import */ var _utils_link_project_executables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(129); +/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(245); +/* harmony import */ var _utils_parallelize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(246); +/* harmony import */ var _utils_projects__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(247); +/* harmony import */ var _utils_project_checksums__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(363); +/* harmony import */ var _utils_bootstrap_cache_file__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(368); +/* harmony import */ var _utils_yarn_lock__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(365); +/* harmony import */ var _utils_validate_dependencies__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(369); +/* harmony import */ var _utils_bazel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(371); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -9057,7 +8886,7 @@ const BootstrapCommand = { }; /***/ }), -/* 130 */ +/* 129 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -9065,8 +8894,8 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linkProjectExecutables", function() { return linkProjectExecutables; }); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(131); -/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(246); +/* harmony import */ var _fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(130); +/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(245); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -9132,7 +8961,7 @@ async function linkProjectExecutables(projectsByName, projectGraph) { } /***/ }), -/* 131 */ +/* 130 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -9149,17 +8978,17 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isFile", function() { return isFile; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createSymlink", function() { return createSymlink; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tryRealpath", function() { return tryRealpath; }); -/* harmony import */ var cmd_shim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(132); +/* harmony import */ var cmd_shim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(131); /* harmony import */ var cmd_shim__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cmd_shim__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var del__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(143); +/* harmony import */ var del__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(142); /* harmony import */ var del__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(del__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(134); +/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(133); /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var ncp__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(245); +/* harmony import */ var ncp__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(244); /* harmony import */ var ncp__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(ncp__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(112); +/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(111); /* harmony import */ var util__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(util__WEBPACK_IMPORTED_MODULE_5__); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one @@ -9280,7 +9109,7 @@ async function tryRealpath(path) { } /***/ }), -/* 132 */ +/* 131 */ /***/ (function(module, exports, __webpack_require__) { // On windows, create a .cmd file. @@ -9296,11 +9125,11 @@ async function tryRealpath(path) { module.exports = cmdShim cmdShim.ifExists = cmdShimIfExists -var fs = __webpack_require__(133) +var fs = __webpack_require__(132) -var mkdir = __webpack_require__(141) +var mkdir = __webpack_require__(140) , path = __webpack_require__(4) - , toBatchSyntax = __webpack_require__(142) + , toBatchSyntax = __webpack_require__(141) , shebangExpr = /^#\!\s*(?:\/usr\/bin\/env)?\s*([^ \t]+=[^ \t]+\s+)*\s*([^ \t]+)(.*)$/ function cmdShimIfExists (from, to, cb) { @@ -9533,15 +9362,15 @@ function times(n, ok, cb) { /***/ }), -/* 133 */ +/* 132 */ /***/ (function(module, exports, __webpack_require__) { -var fs = __webpack_require__(134) -var polyfills = __webpack_require__(135) -var legacy = __webpack_require__(137) -var clone = __webpack_require__(139) +var fs = __webpack_require__(133) +var polyfills = __webpack_require__(134) +var legacy = __webpack_require__(136) +var clone = __webpack_require__(138) -var util = __webpack_require__(112) +var util = __webpack_require__(111) /* istanbul ignore next - node 0.x polyfill */ var gracefulQueue @@ -9622,7 +9451,7 @@ if (!fs[gracefulQueue]) { if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) { process.on('exit', function() { debug(fs[gracefulQueue]) - __webpack_require__(140).equal(fs[gracefulQueue].length, 0) + __webpack_require__(139).equal(fs[gracefulQueue].length, 0) }) } } @@ -9893,16 +9722,16 @@ function retry () { /***/ }), -/* 134 */ +/* 133 */ /***/ (function(module, exports) { module.exports = require("fs"); /***/ }), -/* 135 */ +/* 134 */ /***/ (function(module, exports, __webpack_require__) { -var constants = __webpack_require__(136) +var constants = __webpack_require__(135) var origCwd = process.cwd var cwd = null @@ -10247,16 +10076,16 @@ function patch (fs) { /***/ }), -/* 136 */ +/* 135 */ /***/ (function(module, exports) { module.exports = require("constants"); /***/ }), -/* 137 */ +/* 136 */ /***/ (function(module, exports, __webpack_require__) { -var Stream = __webpack_require__(138).Stream +var Stream = __webpack_require__(137).Stream module.exports = legacy @@ -10377,13 +10206,13 @@ function legacy (fs) { /***/ }), -/* 138 */ +/* 137 */ /***/ (function(module, exports) { module.exports = require("stream"); /***/ }), -/* 139 */ +/* 138 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10409,17 +10238,17 @@ function clone (obj) { /***/ }), -/* 140 */ +/* 139 */ /***/ (function(module, exports) { module.exports = require("assert"); /***/ }), -/* 141 */ +/* 140 */ /***/ (function(module, exports, __webpack_require__) { var path = __webpack_require__(4); -var fs = __webpack_require__(134); +var fs = __webpack_require__(133); var _0777 = parseInt('0777', 8); module.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP; @@ -10520,7 +10349,7 @@ mkdirP.sync = function sync (p, opts, made) { /***/ }), -/* 142 */ +/* 141 */ /***/ (function(module, exports) { exports.replaceDollarWithPercentPair = replaceDollarWithPercentPair @@ -10578,21 +10407,21 @@ function replaceDollarWithPercentPair(value) { /***/ }), -/* 143 */ +/* 142 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const {promisify} = __webpack_require__(112); +const {promisify} = __webpack_require__(111); const path = __webpack_require__(4); -const globby = __webpack_require__(144); -const isGlob = __webpack_require__(172); -const slash = __webpack_require__(236); -const gracefulFs = __webpack_require__(133); -const isPathCwd = __webpack_require__(238); -const isPathInside = __webpack_require__(239); -const rimraf = __webpack_require__(240); -const pMap = __webpack_require__(241); +const globby = __webpack_require__(143); +const isGlob = __webpack_require__(171); +const slash = __webpack_require__(235); +const gracefulFs = __webpack_require__(132); +const isPathCwd = __webpack_require__(237); +const isPathInside = __webpack_require__(238); +const rimraf = __webpack_require__(239); +const pMap = __webpack_require__(240); const rimrafP = promisify(rimraf); @@ -10706,19 +10535,19 @@ module.exports.sync = (patterns, {force, dryRun, cwd = process.cwd(), ...options /***/ }), -/* 144 */ +/* 143 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const fs = __webpack_require__(134); -const arrayUnion = __webpack_require__(145); -const merge2 = __webpack_require__(146); -const glob = __webpack_require__(147); -const fastGlob = __webpack_require__(163); -const dirGlob = __webpack_require__(232); -const gitignore = __webpack_require__(234); -const {FilterStream, UniqueStream} = __webpack_require__(237); +const fs = __webpack_require__(133); +const arrayUnion = __webpack_require__(144); +const merge2 = __webpack_require__(145); +const glob = __webpack_require__(146); +const fastGlob = __webpack_require__(162); +const dirGlob = __webpack_require__(231); +const gitignore = __webpack_require__(233); +const {FilterStream, UniqueStream} = __webpack_require__(236); const DEFAULT_FILTER = () => false; @@ -10891,7 +10720,7 @@ module.exports.gitignore = gitignore; /***/ }), -/* 145 */ +/* 144 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10903,7 +10732,7 @@ module.exports = (...arguments_) => { /***/ }), -/* 146 */ +/* 145 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10915,7 +10744,7 @@ module.exports = (...arguments_) => { * Copyright (c) 2014-2020 Teambition * Licensed under the MIT license. */ -const Stream = __webpack_require__(138) +const Stream = __webpack_require__(137) const PassThrough = Stream.PassThrough const slice = Array.prototype.slice @@ -11054,7 +10883,7 @@ function pauseStreams (streams, options) { /***/ }), -/* 147 */ +/* 146 */ /***/ (function(module, exports, __webpack_require__) { // Approach: @@ -11099,27 +10928,27 @@ function pauseStreams (streams, options) { module.exports = glob -var fs = __webpack_require__(134) -var rp = __webpack_require__(148) -var minimatch = __webpack_require__(150) +var fs = __webpack_require__(133) +var rp = __webpack_require__(147) +var minimatch = __webpack_require__(149) var Minimatch = minimatch.Minimatch -var inherits = __webpack_require__(154) -var EE = __webpack_require__(156).EventEmitter +var inherits = __webpack_require__(153) +var EE = __webpack_require__(155).EventEmitter var path = __webpack_require__(4) -var assert = __webpack_require__(140) -var isAbsolute = __webpack_require__(157) -var globSync = __webpack_require__(158) -var common = __webpack_require__(159) +var assert = __webpack_require__(139) +var isAbsolute = __webpack_require__(156) +var globSync = __webpack_require__(157) +var common = __webpack_require__(158) var alphasort = common.alphasort var alphasorti = common.alphasorti var setopts = common.setopts var ownProp = common.ownProp -var inflight = __webpack_require__(160) -var util = __webpack_require__(112) +var inflight = __webpack_require__(159) +var util = __webpack_require__(111) var childrenIgnored = common.childrenIgnored var isIgnored = common.isIgnored -var once = __webpack_require__(162) +var once = __webpack_require__(161) function glob (pattern, options, cb) { if (typeof options === 'function') cb = options, options = {} @@ -11850,7 +11679,7 @@ Glob.prototype._stat2 = function (f, abs, er, stat, cb) { /***/ }), -/* 148 */ +/* 147 */ /***/ (function(module, exports, __webpack_require__) { module.exports = realpath @@ -11860,13 +11689,13 @@ realpath.realpathSync = realpathSync realpath.monkeypatch = monkeypatch realpath.unmonkeypatch = unmonkeypatch -var fs = __webpack_require__(134) +var fs = __webpack_require__(133) var origRealpath = fs.realpath var origRealpathSync = fs.realpathSync var version = process.version var ok = /^v[0-5]\./.test(version) -var old = __webpack_require__(149) +var old = __webpack_require__(148) function newError (er) { return er && er.syscall === 'realpath' && ( @@ -11922,7 +11751,7 @@ function unmonkeypatch () { /***/ }), -/* 149 */ +/* 148 */ /***/ (function(module, exports, __webpack_require__) { // Copyright Joyent, Inc. and other Node contributors. @@ -11948,7 +11777,7 @@ function unmonkeypatch () { var pathModule = __webpack_require__(4); var isWindows = process.platform === 'win32'; -var fs = __webpack_require__(134); +var fs = __webpack_require__(133); // JavaScript implementation of realpath, ported from node pre-v6 @@ -12231,7 +12060,7 @@ exports.realpath = function realpath(p, cache, cb) { /***/ }), -/* 150 */ +/* 149 */ /***/ (function(module, exports, __webpack_require__) { module.exports = minimatch @@ -12243,7 +12072,7 @@ try { } catch (er) {} var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {} -var expand = __webpack_require__(151) +var expand = __webpack_require__(150) var plTypes = { '!': { open: '(?:(?!(?:', close: '))[^/]*?)'}, @@ -13160,11 +12989,11 @@ function regExpEscape (s) { /***/ }), -/* 151 */ +/* 150 */ /***/ (function(module, exports, __webpack_require__) { -var concatMap = __webpack_require__(152); -var balanced = __webpack_require__(153); +var concatMap = __webpack_require__(151); +var balanced = __webpack_require__(152); module.exports = expandTop; @@ -13367,7 +13196,7 @@ function expand(str, isTop) { /***/ }), -/* 152 */ +/* 151 */ /***/ (function(module, exports) { module.exports = function (xs, fn) { @@ -13386,7 +13215,7 @@ var isArray = Array.isArray || function (xs) { /***/ }), -/* 153 */ +/* 152 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13452,22 +13281,22 @@ function range(a, b, str) { /***/ }), -/* 154 */ +/* 153 */ /***/ (function(module, exports, __webpack_require__) { try { - var util = __webpack_require__(112); + var util = __webpack_require__(111); /* istanbul ignore next */ if (typeof util.inherits !== 'function') throw ''; module.exports = util.inherits; } catch (e) { /* istanbul ignore next */ - module.exports = __webpack_require__(155); + module.exports = __webpack_require__(154); } /***/ }), -/* 155 */ +/* 154 */ /***/ (function(module, exports) { if (typeof Object.create === 'function') { @@ -13500,13 +13329,13 @@ if (typeof Object.create === 'function') { /***/ }), -/* 156 */ +/* 155 */ /***/ (function(module, exports) { module.exports = require("events"); /***/ }), -/* 157 */ +/* 156 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13533,22 +13362,22 @@ module.exports.win32 = win32; /***/ }), -/* 158 */ +/* 157 */ /***/ (function(module, exports, __webpack_require__) { module.exports = globSync globSync.GlobSync = GlobSync -var fs = __webpack_require__(134) -var rp = __webpack_require__(148) -var minimatch = __webpack_require__(150) +var fs = __webpack_require__(133) +var rp = __webpack_require__(147) +var minimatch = __webpack_require__(149) var Minimatch = minimatch.Minimatch -var Glob = __webpack_require__(147).Glob -var util = __webpack_require__(112) +var Glob = __webpack_require__(146).Glob +var util = __webpack_require__(111) var path = __webpack_require__(4) -var assert = __webpack_require__(140) -var isAbsolute = __webpack_require__(157) -var common = __webpack_require__(159) +var assert = __webpack_require__(139) +var isAbsolute = __webpack_require__(156) +var common = __webpack_require__(158) var alphasort = common.alphasort var alphasorti = common.alphasorti var setopts = common.setopts @@ -14025,7 +13854,7 @@ GlobSync.prototype._makeAbs = function (f) { /***/ }), -/* 159 */ +/* 158 */ /***/ (function(module, exports, __webpack_require__) { exports.alphasort = alphasort @@ -14043,8 +13872,8 @@ function ownProp (obj, field) { } var path = __webpack_require__(4) -var minimatch = __webpack_require__(150) -var isAbsolute = __webpack_require__(157) +var minimatch = __webpack_require__(149) +var isAbsolute = __webpack_require__(156) var Minimatch = minimatch.Minimatch function alphasorti (a, b) { @@ -14271,12 +14100,12 @@ function childrenIgnored (self, path) { /***/ }), -/* 160 */ +/* 159 */ /***/ (function(module, exports, __webpack_require__) { -var wrappy = __webpack_require__(161) +var wrappy = __webpack_require__(160) var reqs = Object.create(null) -var once = __webpack_require__(162) +var once = __webpack_require__(161) module.exports = wrappy(inflight) @@ -14331,7 +14160,7 @@ function slice (args) { /***/ }), -/* 161 */ +/* 160 */ /***/ (function(module, exports) { // Returns a wrapper function that returns a wrapped callback @@ -14370,10 +14199,10 @@ function wrappy (fn, cb) { /***/ }), -/* 162 */ +/* 161 */ /***/ (function(module, exports, __webpack_require__) { -var wrappy = __webpack_require__(161) +var wrappy = __webpack_require__(160) module.exports = wrappy(once) module.exports.strict = wrappy(onceStrict) @@ -14418,17 +14247,17 @@ function onceStrict (fn) { /***/ }), -/* 163 */ +/* 162 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const taskManager = __webpack_require__(164); -const async_1 = __webpack_require__(193); -const stream_1 = __webpack_require__(228); -const sync_1 = __webpack_require__(229); -const settings_1 = __webpack_require__(231); -const utils = __webpack_require__(165); +const taskManager = __webpack_require__(163); +const async_1 = __webpack_require__(192); +const stream_1 = __webpack_require__(227); +const sync_1 = __webpack_require__(228); +const settings_1 = __webpack_require__(230); +const utils = __webpack_require__(164); async function FastGlob(source, options) { assertPatternsInput(source); const works = getWorks(source, async_1.default, options); @@ -14492,14 +14321,14 @@ module.exports = FastGlob; /***/ }), -/* 164 */ +/* 163 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0; -const utils = __webpack_require__(165); +const utils = __webpack_require__(164); function generate(patterns, settings) { const positivePatterns = getPositivePatterns(patterns); const negativePatterns = getNegativePatternsAsPositive(patterns, settings.ignore); @@ -14564,31 +14393,31 @@ exports.convertPatternGroupToTask = convertPatternGroupToTask; /***/ }), -/* 165 */ +/* 164 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0; -const array = __webpack_require__(166); +const array = __webpack_require__(165); exports.array = array; -const errno = __webpack_require__(167); +const errno = __webpack_require__(166); exports.errno = errno; -const fs = __webpack_require__(168); +const fs = __webpack_require__(167); exports.fs = fs; -const path = __webpack_require__(169); +const path = __webpack_require__(168); exports.path = path; -const pattern = __webpack_require__(170); +const pattern = __webpack_require__(169); exports.pattern = pattern; -const stream = __webpack_require__(191); +const stream = __webpack_require__(190); exports.stream = stream; -const string = __webpack_require__(192); +const string = __webpack_require__(191); exports.string = string; /***/ }), -/* 166 */ +/* 165 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14617,7 +14446,7 @@ exports.splitWhen = splitWhen; /***/ }), -/* 167 */ +/* 166 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14631,7 +14460,7 @@ exports.isEnoentCodeError = isEnoentCodeError; /***/ }), -/* 168 */ +/* 167 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14657,7 +14486,7 @@ exports.createDirentFromStats = createDirentFromStats; /***/ }), -/* 169 */ +/* 168 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14697,7 +14526,7 @@ exports.removeLeadingDotSegment = removeLeadingDotSegment; /***/ }), -/* 170 */ +/* 169 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14705,9 +14534,9 @@ exports.removeLeadingDotSegment = removeLeadingDotSegment; Object.defineProperty(exports, "__esModule", { value: true }); exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0; const path = __webpack_require__(4); -const globParent = __webpack_require__(171); -const micromatch = __webpack_require__(174); -const picomatch = __webpack_require__(185); +const globParent = __webpack_require__(170); +const micromatch = __webpack_require__(173); +const picomatch = __webpack_require__(184); const GLOBSTAR = '**'; const ESCAPE_SYMBOL = '\\'; const COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/; @@ -14836,15 +14665,15 @@ exports.matchAny = matchAny; /***/ }), -/* 171 */ +/* 170 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var isGlob = __webpack_require__(172); +var isGlob = __webpack_require__(171); var pathPosixDirname = __webpack_require__(4).posix.dirname; -var isWin32 = __webpack_require__(121).platform() === 'win32'; +var isWin32 = __webpack_require__(120).platform() === 'win32'; var slash = '/'; var backslash = /\\/g; @@ -14885,7 +14714,7 @@ module.exports = function globParent(str, opts) { /***/ }), -/* 172 */ +/* 171 */ /***/ (function(module, exports, __webpack_require__) { /*! @@ -14895,7 +14724,7 @@ module.exports = function globParent(str, opts) { * Released under the MIT License. */ -var isExtglob = __webpack_require__(173); +var isExtglob = __webpack_require__(172); var chars = { '{': '}', '(': ')', '[': ']'}; var strictRegex = /\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/; var relaxedRegex = /\\(.)|(^!|[*?{}()[\]]|\(\?)/; @@ -14939,7 +14768,7 @@ module.exports = function isGlob(str, options) { /***/ }), -/* 173 */ +/* 172 */ /***/ (function(module, exports) { /*! @@ -14965,16 +14794,16 @@ module.exports = function isExtglob(str) { /***/ }), -/* 174 */ +/* 173 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const util = __webpack_require__(112); -const braces = __webpack_require__(175); -const picomatch = __webpack_require__(185); -const utils = __webpack_require__(188); +const util = __webpack_require__(111); +const braces = __webpack_require__(174); +const picomatch = __webpack_require__(184); +const utils = __webpack_require__(187); const isEmptyString = val => typeof val === 'string' && (val === '' || val === './'); /** @@ -15439,16 +15268,16 @@ module.exports = micromatch; /***/ }), -/* 175 */ +/* 174 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const stringify = __webpack_require__(176); -const compile = __webpack_require__(178); -const expand = __webpack_require__(182); -const parse = __webpack_require__(183); +const stringify = __webpack_require__(175); +const compile = __webpack_require__(177); +const expand = __webpack_require__(181); +const parse = __webpack_require__(182); /** * Expand the given pattern or create a regex-compatible string. @@ -15616,13 +15445,13 @@ module.exports = braces; /***/ }), -/* 176 */ +/* 175 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const utils = __webpack_require__(177); +const utils = __webpack_require__(176); module.exports = (ast, options = {}) => { let stringify = (node, parent = {}) => { @@ -15655,7 +15484,7 @@ module.exports = (ast, options = {}) => { /***/ }), -/* 177 */ +/* 176 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15774,14 +15603,14 @@ exports.flatten = (...args) => { /***/ }), -/* 178 */ +/* 177 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const fill = __webpack_require__(179); -const utils = __webpack_require__(177); +const fill = __webpack_require__(178); +const utils = __webpack_require__(176); const compile = (ast, options = {}) => { let walk = (node, parent = {}) => { @@ -15838,7 +15667,7 @@ module.exports = compile; /***/ }), -/* 179 */ +/* 178 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15851,8 +15680,8 @@ module.exports = compile; -const util = __webpack_require__(112); -const toRegexRange = __webpack_require__(180); +const util = __webpack_require__(111); +const toRegexRange = __webpack_require__(179); const isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val); @@ -16094,7 +15923,7 @@ module.exports = fill; /***/ }), -/* 180 */ +/* 179 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16107,7 +15936,7 @@ module.exports = fill; -const isNumber = __webpack_require__(181); +const isNumber = __webpack_require__(180); const toRegexRange = (min, max, options) => { if (isNumber(min) === false) { @@ -16389,7 +16218,7 @@ module.exports = toRegexRange; /***/ }), -/* 181 */ +/* 180 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16414,15 +16243,15 @@ module.exports = function(num) { /***/ }), -/* 182 */ +/* 181 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const fill = __webpack_require__(179); -const stringify = __webpack_require__(176); -const utils = __webpack_require__(177); +const fill = __webpack_require__(178); +const stringify = __webpack_require__(175); +const utils = __webpack_require__(176); const append = (queue = '', stash = '', enclose = false) => { let result = []; @@ -16534,13 +16363,13 @@ module.exports = expand; /***/ }), -/* 183 */ +/* 182 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const stringify = __webpack_require__(176); +const stringify = __webpack_require__(175); /** * Constants @@ -16562,7 +16391,7 @@ const { CHAR_SINGLE_QUOTE, /* ' */ CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_NOBREAK_SPACE -} = __webpack_require__(184); +} = __webpack_require__(183); /** * parse @@ -16874,7 +16703,7 @@ module.exports = parse; /***/ }), -/* 184 */ +/* 183 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16938,27 +16767,27 @@ module.exports = { /***/ }), -/* 185 */ +/* 184 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(186); +module.exports = __webpack_require__(185); /***/ }), -/* 186 */ +/* 185 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const path = __webpack_require__(4); -const scan = __webpack_require__(187); -const parse = __webpack_require__(190); -const utils = __webpack_require__(188); -const constants = __webpack_require__(189); +const scan = __webpack_require__(186); +const parse = __webpack_require__(189); +const utils = __webpack_require__(187); +const constants = __webpack_require__(188); const isObject = val => val && typeof val === 'object' && !Array.isArray(val); /** @@ -17294,13 +17123,13 @@ module.exports = picomatch; /***/ }), -/* 187 */ +/* 186 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const utils = __webpack_require__(188); +const utils = __webpack_require__(187); const { CHAR_ASTERISK, /* * */ CHAR_AT, /* @ */ @@ -17317,7 +17146,7 @@ const { CHAR_RIGHT_CURLY_BRACE, /* } */ CHAR_RIGHT_PARENTHESES, /* ) */ CHAR_RIGHT_SQUARE_BRACKET /* ] */ -} = __webpack_require__(189); +} = __webpack_require__(188); const isPathSeparator = code => { return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH; @@ -17684,7 +17513,7 @@ module.exports = scan; /***/ }), -/* 188 */ +/* 187 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17697,7 +17526,7 @@ const { REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL -} = __webpack_require__(189); +} = __webpack_require__(188); exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val); exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str); @@ -17755,7 +17584,7 @@ exports.wrapOutput = (input, state = {}, options = {}) => { /***/ }), -/* 189 */ +/* 188 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17941,14 +17770,14 @@ module.exports = { /***/ }), -/* 190 */ +/* 189 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const constants = __webpack_require__(189); -const utils = __webpack_require__(188); +const constants = __webpack_require__(188); +const utils = __webpack_require__(187); /** * Constants @@ -19026,14 +18855,14 @@ module.exports = parse; /***/ }), -/* 191 */ +/* 190 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.merge = void 0; -const merge2 = __webpack_require__(146); +const merge2 = __webpack_require__(145); function merge(streams) { const mergedStream = merge2(streams); streams.forEach((stream) => { @@ -19050,7 +18879,7 @@ function propagateCloseEventToSources(streams) { /***/ }), -/* 192 */ +/* 191 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -19068,14 +18897,14 @@ exports.isEmpty = isEmpty; /***/ }), -/* 193 */ +/* 192 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const stream_1 = __webpack_require__(194); -const provider_1 = __webpack_require__(221); +const stream_1 = __webpack_require__(193); +const provider_1 = __webpack_require__(220); class ProviderAsync extends provider_1.default { constructor() { super(...arguments); @@ -19103,16 +18932,16 @@ exports.default = ProviderAsync; /***/ }), -/* 194 */ +/* 193 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const stream_1 = __webpack_require__(138); -const fsStat = __webpack_require__(195); -const fsWalk = __webpack_require__(200); -const reader_1 = __webpack_require__(220); +const stream_1 = __webpack_require__(137); +const fsStat = __webpack_require__(194); +const fsWalk = __webpack_require__(199); +const reader_1 = __webpack_require__(219); class ReaderStream extends reader_1.default { constructor() { super(...arguments); @@ -19165,15 +18994,15 @@ exports.default = ReaderStream; /***/ }), -/* 195 */ +/* 194 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const async = __webpack_require__(196); -const sync = __webpack_require__(197); -const settings_1 = __webpack_require__(198); +const async = __webpack_require__(195); +const sync = __webpack_require__(196); +const settings_1 = __webpack_require__(197); exports.Settings = settings_1.default; function stat(path, optionsOrSettingsOrCallback, callback) { if (typeof optionsOrSettingsOrCallback === 'function') { @@ -19196,7 +19025,7 @@ function getSettings(settingsOrOptions = {}) { /***/ }), -/* 196 */ +/* 195 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -19234,7 +19063,7 @@ function callSuccessCallback(callback, result) { /***/ }), -/* 197 */ +/* 196 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -19263,13 +19092,13 @@ exports.read = read; /***/ }), -/* 198 */ +/* 197 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const fs = __webpack_require__(199); +const fs = __webpack_require__(198); class Settings { constructor(_options = {}) { this._options = _options; @@ -19286,13 +19115,13 @@ exports.default = Settings; /***/ }), -/* 199 */ +/* 198 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const fs = __webpack_require__(134); +const fs = __webpack_require__(133); exports.FILE_SYSTEM_ADAPTER = { lstat: fs.lstat, stat: fs.stat, @@ -19309,16 +19138,16 @@ exports.createFileSystemAdapter = createFileSystemAdapter; /***/ }), -/* 200 */ +/* 199 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const async_1 = __webpack_require__(201); -const stream_1 = __webpack_require__(216); -const sync_1 = __webpack_require__(217); -const settings_1 = __webpack_require__(219); +const async_1 = __webpack_require__(200); +const stream_1 = __webpack_require__(215); +const sync_1 = __webpack_require__(216); +const settings_1 = __webpack_require__(218); exports.Settings = settings_1.default; function walk(directory, optionsOrSettingsOrCallback, callback) { if (typeof optionsOrSettingsOrCallback === 'function') { @@ -19348,13 +19177,13 @@ function getSettings(settingsOrOptions = {}) { /***/ }), -/* 201 */ +/* 200 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const async_1 = __webpack_require__(202); +const async_1 = __webpack_require__(201); class AsyncProvider { constructor(_root, _settings) { this._root = _root; @@ -19385,17 +19214,17 @@ function callSuccessCallback(callback, entries) { /***/ }), -/* 202 */ +/* 201 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const events_1 = __webpack_require__(156); -const fsScandir = __webpack_require__(203); -const fastq = __webpack_require__(212); -const common = __webpack_require__(214); -const reader_1 = __webpack_require__(215); +const events_1 = __webpack_require__(155); +const fsScandir = __webpack_require__(202); +const fastq = __webpack_require__(211); +const common = __webpack_require__(213); +const reader_1 = __webpack_require__(214); class AsyncReader extends reader_1.default { constructor(_root, _settings) { super(_root, _settings); @@ -19485,15 +19314,15 @@ exports.default = AsyncReader; /***/ }), -/* 203 */ +/* 202 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const async = __webpack_require__(204); -const sync = __webpack_require__(209); -const settings_1 = __webpack_require__(210); +const async = __webpack_require__(203); +const sync = __webpack_require__(208); +const settings_1 = __webpack_require__(209); exports.Settings = settings_1.default; function scandir(path, optionsOrSettingsOrCallback, callback) { if (typeof optionsOrSettingsOrCallback === 'function') { @@ -19516,16 +19345,16 @@ function getSettings(settingsOrOptions = {}) { /***/ }), -/* 204 */ +/* 203 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const fsStat = __webpack_require__(195); -const rpl = __webpack_require__(205); -const constants_1 = __webpack_require__(206); -const utils = __webpack_require__(207); +const fsStat = __webpack_require__(194); +const rpl = __webpack_require__(204); +const constants_1 = __webpack_require__(205); +const utils = __webpack_require__(206); function read(directory, settings, callback) { if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) { return readdirWithFileTypes(directory, settings, callback); @@ -19613,7 +19442,7 @@ function callSuccessCallback(callback, result) { /***/ }), -/* 205 */ +/* 204 */ /***/ (function(module, exports) { module.exports = runParallel @@ -19667,7 +19496,7 @@ function runParallel (tasks, cb) { /***/ }), -/* 206 */ +/* 205 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -19687,18 +19516,18 @@ exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_B /***/ }), -/* 207 */ +/* 206 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const fs = __webpack_require__(208); +const fs = __webpack_require__(207); exports.fs = fs; /***/ }), -/* 208 */ +/* 207 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -19723,15 +19552,15 @@ exports.createDirentFromStats = createDirentFromStats; /***/ }), -/* 209 */ +/* 208 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const fsStat = __webpack_require__(195); -const constants_1 = __webpack_require__(206); -const utils = __webpack_require__(207); +const fsStat = __webpack_require__(194); +const constants_1 = __webpack_require__(205); +const utils = __webpack_require__(206); function read(directory, settings) { if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) { return readdirWithFileTypes(directory, settings); @@ -19782,15 +19611,15 @@ exports.readdir = readdir; /***/ }), -/* 210 */ +/* 209 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path = __webpack_require__(4); -const fsStat = __webpack_require__(195); -const fs = __webpack_require__(211); +const fsStat = __webpack_require__(194); +const fs = __webpack_require__(210); class Settings { constructor(_options = {}) { this._options = _options; @@ -19813,13 +19642,13 @@ exports.default = Settings; /***/ }), -/* 211 */ +/* 210 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const fs = __webpack_require__(134); +const fs = __webpack_require__(133); exports.FILE_SYSTEM_ADAPTER = { lstat: fs.lstat, stat: fs.stat, @@ -19838,13 +19667,13 @@ exports.createFileSystemAdapter = createFileSystemAdapter; /***/ }), -/* 212 */ +/* 211 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var reusify = __webpack_require__(213) +var reusify = __webpack_require__(212) function fastqueue (context, worker, concurrency) { if (typeof context === 'function') { @@ -20018,7 +19847,7 @@ module.exports = fastqueue /***/ }), -/* 213 */ +/* 212 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -20058,7 +19887,7 @@ module.exports = reusify /***/ }), -/* 214 */ +/* 213 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -20089,13 +19918,13 @@ exports.joinPathSegments = joinPathSegments; /***/ }), -/* 215 */ +/* 214 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const common = __webpack_require__(214); +const common = __webpack_require__(213); class Reader { constructor(_root, _settings) { this._root = _root; @@ -20107,14 +19936,14 @@ exports.default = Reader; /***/ }), -/* 216 */ +/* 215 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const stream_1 = __webpack_require__(138); -const async_1 = __webpack_require__(202); +const stream_1 = __webpack_require__(137); +const async_1 = __webpack_require__(201); class StreamProvider { constructor(_root, _settings) { this._root = _root; @@ -20144,13 +19973,13 @@ exports.default = StreamProvider; /***/ }), -/* 217 */ +/* 216 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const sync_1 = __webpack_require__(218); +const sync_1 = __webpack_require__(217); class SyncProvider { constructor(_root, _settings) { this._root = _root; @@ -20165,15 +19994,15 @@ exports.default = SyncProvider; /***/ }), -/* 218 */ +/* 217 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const fsScandir = __webpack_require__(203); -const common = __webpack_require__(214); -const reader_1 = __webpack_require__(215); +const fsScandir = __webpack_require__(202); +const common = __webpack_require__(213); +const reader_1 = __webpack_require__(214); class SyncReader extends reader_1.default { constructor() { super(...arguments); @@ -20231,14 +20060,14 @@ exports.default = SyncReader; /***/ }), -/* 219 */ +/* 218 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path = __webpack_require__(4); -const fsScandir = __webpack_require__(203); +const fsScandir = __webpack_require__(202); class Settings { constructor(_options = {}) { this._options = _options; @@ -20264,15 +20093,15 @@ exports.default = Settings; /***/ }), -/* 220 */ +/* 219 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path = __webpack_require__(4); -const fsStat = __webpack_require__(195); -const utils = __webpack_require__(165); +const fsStat = __webpack_require__(194); +const utils = __webpack_require__(164); class Reader { constructor(_settings) { this._settings = _settings; @@ -20304,17 +20133,17 @@ exports.default = Reader; /***/ }), -/* 221 */ +/* 220 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path = __webpack_require__(4); -const deep_1 = __webpack_require__(222); -const entry_1 = __webpack_require__(225); -const error_1 = __webpack_require__(226); -const entry_2 = __webpack_require__(227); +const deep_1 = __webpack_require__(221); +const entry_1 = __webpack_require__(224); +const error_1 = __webpack_require__(225); +const entry_2 = __webpack_require__(226); class Provider { constructor(_settings) { this._settings = _settings; @@ -20359,14 +20188,14 @@ exports.default = Provider; /***/ }), -/* 222 */ +/* 221 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const utils = __webpack_require__(165); -const partial_1 = __webpack_require__(223); +const utils = __webpack_require__(164); +const partial_1 = __webpack_require__(222); class DeepFilter { constructor(_settings, _micromatchOptions) { this._settings = _settings; @@ -20428,13 +20257,13 @@ exports.default = DeepFilter; /***/ }), -/* 223 */ +/* 222 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const matcher_1 = __webpack_require__(224); +const matcher_1 = __webpack_require__(223); class PartialMatcher extends matcher_1.default { match(filepath) { const parts = filepath.split('/'); @@ -20473,13 +20302,13 @@ exports.default = PartialMatcher; /***/ }), -/* 224 */ +/* 223 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const utils = __webpack_require__(165); +const utils = __webpack_require__(164); class Matcher { constructor(_patterns, _settings, _micromatchOptions) { this._patterns = _patterns; @@ -20530,13 +20359,13 @@ exports.default = Matcher; /***/ }), -/* 225 */ +/* 224 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const utils = __webpack_require__(165); +const utils = __webpack_require__(164); class EntryFilter { constructor(_settings, _micromatchOptions) { this._settings = _settings; @@ -20593,13 +20422,13 @@ exports.default = EntryFilter; /***/ }), -/* 226 */ +/* 225 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const utils = __webpack_require__(165); +const utils = __webpack_require__(164); class ErrorFilter { constructor(_settings) { this._settings = _settings; @@ -20615,13 +20444,13 @@ exports.default = ErrorFilter; /***/ }), -/* 227 */ +/* 226 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const utils = __webpack_require__(165); +const utils = __webpack_require__(164); class EntryTransformer { constructor(_settings) { this._settings = _settings; @@ -20648,15 +20477,15 @@ exports.default = EntryTransformer; /***/ }), -/* 228 */ +/* 227 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const stream_1 = __webpack_require__(138); -const stream_2 = __webpack_require__(194); -const provider_1 = __webpack_require__(221); +const stream_1 = __webpack_require__(137); +const stream_2 = __webpack_require__(193); +const provider_1 = __webpack_require__(220); class ProviderStream extends provider_1.default { constructor() { super(...arguments); @@ -20686,14 +20515,14 @@ exports.default = ProviderStream; /***/ }), -/* 229 */ +/* 228 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const sync_1 = __webpack_require__(230); -const provider_1 = __webpack_require__(221); +const sync_1 = __webpack_require__(229); +const provider_1 = __webpack_require__(220); class ProviderSync extends provider_1.default { constructor() { super(...arguments); @@ -20716,15 +20545,15 @@ exports.default = ProviderSync; /***/ }), -/* 230 */ +/* 229 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const fsStat = __webpack_require__(195); -const fsWalk = __webpack_require__(200); -const reader_1 = __webpack_require__(220); +const fsStat = __webpack_require__(194); +const fsWalk = __webpack_require__(199); +const reader_1 = __webpack_require__(219); class ReaderSync extends reader_1.default { constructor() { super(...arguments); @@ -20766,15 +20595,15 @@ exports.default = ReaderSync; /***/ }), -/* 231 */ +/* 230 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0; -const fs = __webpack_require__(134); -const os = __webpack_require__(121); +const fs = __webpack_require__(133); +const os = __webpack_require__(120); /** * The `os.cpus` method can return zero. We expect the number of cores to be greater than zero. * https://github.com/nodejs/node/blob/7faeddf23a98c53896f8b574a6e66589e8fb1eb8/lib/os.js#L106-L107 @@ -20830,13 +20659,13 @@ exports.default = Settings; /***/ }), -/* 232 */ +/* 231 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const path = __webpack_require__(4); -const pathType = __webpack_require__(233); +const pathType = __webpack_require__(232); const getExtensions = extensions => extensions.length > 1 ? `{${extensions.join(',')}}` : extensions[0]; @@ -20912,13 +20741,13 @@ module.exports.sync = (input, options) => { /***/ }), -/* 233 */ +/* 232 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const {promisify} = __webpack_require__(112); -const fs = __webpack_require__(134); +const {promisify} = __webpack_require__(111); +const fs = __webpack_require__(133); async function isType(fsStatType, statsMethodName, filePath) { if (typeof filePath !== 'string') { @@ -20962,17 +20791,17 @@ exports.isSymlinkSync = isTypeSync.bind(null, 'lstatSync', 'isSymbolicLink'); /***/ }), -/* 234 */ +/* 233 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const {promisify} = __webpack_require__(112); -const fs = __webpack_require__(134); +const {promisify} = __webpack_require__(111); +const fs = __webpack_require__(133); const path = __webpack_require__(4); -const fastGlob = __webpack_require__(163); -const gitIgnore = __webpack_require__(235); -const slash = __webpack_require__(236); +const fastGlob = __webpack_require__(162); +const gitIgnore = __webpack_require__(234); +const slash = __webpack_require__(235); const DEFAULT_IGNORE = [ '**/node_modules/**', @@ -21086,7 +20915,7 @@ module.exports.sync = options => { /***/ }), -/* 235 */ +/* 234 */ /***/ (function(module, exports) { // A simple implementation of make-array @@ -21689,7 +21518,7 @@ if ( /***/ }), -/* 236 */ +/* 235 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -21707,12 +21536,12 @@ module.exports = path => { /***/ }), -/* 237 */ +/* 236 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const {Transform} = __webpack_require__(138); +const {Transform} = __webpack_require__(137); class ObjectTransform extends Transform { constructor() { @@ -21760,7 +21589,7 @@ module.exports = { /***/ }), -/* 238 */ +/* 237 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -21782,7 +21611,7 @@ module.exports = path_ => { /***/ }), -/* 239 */ +/* 238 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -21810,15 +21639,15 @@ module.exports = (childPath, parentPath) => { /***/ }), -/* 240 */ +/* 239 */ /***/ (function(module, exports, __webpack_require__) { -const assert = __webpack_require__(140) +const assert = __webpack_require__(139) const path = __webpack_require__(4) -const fs = __webpack_require__(134) +const fs = __webpack_require__(133) let glob = undefined try { - glob = __webpack_require__(147) + glob = __webpack_require__(146) } catch (_err) { // treat glob as optional. } @@ -22176,12 +22005,12 @@ rimraf.sync = rimrafSync /***/ }), -/* 241 */ +/* 240 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const AggregateError = __webpack_require__(242); +const AggregateError = __webpack_require__(241); module.exports = async ( iterable, @@ -22264,13 +22093,13 @@ module.exports = async ( /***/ }), -/* 242 */ +/* 241 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const indentString = __webpack_require__(243); -const cleanStack = __webpack_require__(244); +const indentString = __webpack_require__(242); +const cleanStack = __webpack_require__(243); const cleanInternalStack = stack => stack.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g, ''); @@ -22318,7 +22147,7 @@ module.exports = AggregateError; /***/ }), -/* 243 */ +/* 242 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -22360,12 +22189,12 @@ module.exports = (string, count = 1, options) => { /***/ }), -/* 244 */ +/* 243 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const os = __webpack_require__(121); +const os = __webpack_require__(120); const extractPathRegex = /\s+at.*(?:\(|\s)(.*)\)?/; const pathRegex = /^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/; @@ -22407,10 +22236,10 @@ module.exports = (stack, options) => { /***/ }), -/* 245 */ +/* 244 */ /***/ (function(module, exports, __webpack_require__) { -var fs = __webpack_require__(134), +var fs = __webpack_require__(133), path = __webpack_require__(4); module.exports = ncp; @@ -22674,7 +22503,7 @@ function ncp (source, dest, options, callback) { /***/ }), -/* 246 */ +/* 245 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -22723,7 +22552,7 @@ const log = new Log(); /***/ }), -/* 247 */ +/* 246 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -22778,7 +22607,7 @@ async function parallelize(items, fn, concurrency = 4) { } /***/ }), -/* 248 */ +/* 247 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -22789,14 +22618,14 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildProjectGraph", function() { return buildProjectGraph; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "topologicallyBatchProjects", function() { return topologicallyBatchProjects; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "includeTransitiveProjects", function() { return includeTransitiveProjects; }); -/* harmony import */ var glob__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(147); +/* harmony import */ var glob__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(146); /* harmony import */ var glob__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(glob__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(112); +/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(111); /* harmony import */ var util__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(util__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(249); -/* harmony import */ var _project__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(250); +/* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(248); +/* harmony import */ var _project__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(249); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -22971,7 +22800,7 @@ function includeTransitiveProjects(subsetOfProjects, allProjects, { } /***/ }), -/* 249 */ +/* 248 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -22993,22 +22822,22 @@ class CliError extends Error { } /***/ }), -/* 250 */ +/* 249 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Project", function() { return Project; }); -/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(134); +/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(133); /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(112); +/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(111); /* harmony import */ var util__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(util__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(249); -/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(246); -/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(251); -/* harmony import */ var _scripts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(318); +/* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(248); +/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(245); +/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(250); +/* harmony import */ var _scripts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(317); function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -23201,7 +23030,7 @@ function normalizePath(path) { } /***/ }), -/* 251 */ +/* 250 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -23212,9 +23041,9 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isLinkDependency", function() { return isLinkDependency; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isBazelPackageDependency", function() { return isBazelPackageDependency; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transformDependencies", function() { return transformDependencies; }); -/* harmony import */ var read_pkg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(252); +/* harmony import */ var read_pkg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(251); /* harmony import */ var read_pkg__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(read_pkg__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var write_pkg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(305); +/* harmony import */ var write_pkg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(304); /* harmony import */ var write_pkg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(write_pkg__WEBPACK_IMPORTED_MODULE_1__); function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } @@ -23282,15 +23111,15 @@ function transformDependencies(dependencies = {}) { } /***/ }), -/* 252 */ +/* 251 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const {promisify} = __webpack_require__(112); -const fs = __webpack_require__(134); +const {promisify} = __webpack_require__(111); +const fs = __webpack_require__(133); const path = __webpack_require__(4); -const parseJson = __webpack_require__(253); +const parseJson = __webpack_require__(252); const readFileAsync = promisify(fs.readFile); @@ -23305,7 +23134,7 @@ module.exports = async options => { const json = parseJson(await readFileAsync(filePath, 'utf8')); if (options.normalize) { - __webpack_require__(274)(json); + __webpack_require__(273)(json); } return json; @@ -23322,7 +23151,7 @@ module.exports.sync = options => { const json = parseJson(fs.readFileSync(filePath, 'utf8')); if (options.normalize) { - __webpack_require__(274)(json); + __webpack_require__(273)(json); } return json; @@ -23330,15 +23159,15 @@ module.exports.sync = options => { /***/ }), -/* 253 */ +/* 252 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const errorEx = __webpack_require__(254); -const fallback = __webpack_require__(256); -const {default: LinesAndColumns} = __webpack_require__(257); -const {codeFrameColumns} = __webpack_require__(258); +const errorEx = __webpack_require__(253); +const fallback = __webpack_require__(255); +const {default: LinesAndColumns} = __webpack_require__(256); +const {codeFrameColumns} = __webpack_require__(257); const JSONError = errorEx('JSONError', { fileName: errorEx.append('in %s'), @@ -23387,14 +23216,14 @@ module.exports = (string, reviver, filename) => { /***/ }), -/* 254 */ +/* 253 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var util = __webpack_require__(112); -var isArrayish = __webpack_require__(255); +var util = __webpack_require__(111); +var isArrayish = __webpack_require__(254); var errorEx = function errorEx(name, properties) { if (!name || name.constructor !== String) { @@ -23527,7 +23356,7 @@ module.exports = errorEx; /***/ }), -/* 255 */ +/* 254 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -23544,7 +23373,7 @@ module.exports = function isArrayish(obj) { /***/ }), -/* 256 */ +/* 255 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -23589,7 +23418,7 @@ function parseJson (txt, reviver, context) { /***/ }), -/* 257 */ +/* 256 */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; @@ -23653,7 +23482,7 @@ var LinesAndColumns = (function () { /***/ }), -/* 258 */ +/* 257 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -23665,7 +23494,7 @@ Object.defineProperty(exports, "__esModule", { exports.codeFrameColumns = codeFrameColumns; exports.default = _default; -var _highlight = _interopRequireWildcard(__webpack_require__(259)); +var _highlight = _interopRequireWildcard(__webpack_require__(258)); function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } @@ -23826,7 +23655,7 @@ function _default(rawLines, lineNumber, colNumber, opts = {}) { } /***/ }), -/* 259 */ +/* 258 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -23839,11 +23668,11 @@ exports.shouldHighlight = shouldHighlight; exports.getChalk = getChalk; exports.default = highlight; -var jsTokensNs = _interopRequireWildcard(__webpack_require__(260)); +var jsTokensNs = _interopRequireWildcard(__webpack_require__(259)); -var _helperValidatorIdentifier = __webpack_require__(261); +var _helperValidatorIdentifier = __webpack_require__(260); -var _chalk = _interopRequireDefault(__webpack_require__(264)); +var _chalk = _interopRequireDefault(__webpack_require__(263)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -23956,7 +23785,7 @@ function highlight(code, options = {}) { } /***/ }), -/* 260 */ +/* 259 */ /***/ (function(module, exports) { // Copyright 2014, 2015, 2016, 2017, 2018 Simon Lydell @@ -23985,7 +23814,7 @@ exports.matchToToken = function(match) { /***/ }), -/* 261 */ +/* 260 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -24043,12 +23872,12 @@ Object.defineProperty(exports, "isKeyword", { } }); -var _identifier = __webpack_require__(262); +var _identifier = __webpack_require__(261); -var _keyword = __webpack_require__(263); +var _keyword = __webpack_require__(262); /***/ }), -/* 262 */ +/* 261 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -24131,7 +23960,7 @@ function isIdentifierName(name) { } /***/ }), -/* 263 */ +/* 262 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -24175,16 +24004,16 @@ function isKeyword(word) { } /***/ }), -/* 264 */ +/* 263 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const escapeStringRegexp = __webpack_require__(265); -const ansiStyles = __webpack_require__(266); -const stdoutColor = __webpack_require__(271).stdout; +const escapeStringRegexp = __webpack_require__(264); +const ansiStyles = __webpack_require__(265); +const stdoutColor = __webpack_require__(270).stdout; -const template = __webpack_require__(273); +const template = __webpack_require__(272); const isSimpleWindowsTerm = process.platform === 'win32' && !(process.env.TERM || '').toLowerCase().startsWith('xterm'); @@ -24410,7 +24239,7 @@ module.exports.default = module.exports; // For TypeScript /***/ }), -/* 265 */ +/* 264 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -24428,12 +24257,12 @@ module.exports = function (str) { /***/ }), -/* 266 */ +/* 265 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(module) { -const colorConvert = __webpack_require__(267); +const colorConvert = __webpack_require__(266); const wrapAnsi16 = (fn, offset) => function () { const code = fn.apply(colorConvert, arguments); @@ -24598,14 +24427,14 @@ Object.defineProperty(module, 'exports', { get: assembleStyles }); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(115)(module))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(114)(module))) /***/ }), -/* 267 */ +/* 266 */ /***/ (function(module, exports, __webpack_require__) { -var conversions = __webpack_require__(268); -var route = __webpack_require__(270); +var conversions = __webpack_require__(267); +var route = __webpack_require__(269); var convert = {}; @@ -24685,11 +24514,11 @@ module.exports = convert; /***/ }), -/* 268 */ +/* 267 */ /***/ (function(module, exports, __webpack_require__) { /* MIT license */ -var cssKeywords = __webpack_require__(269); +var cssKeywords = __webpack_require__(268); // NOTE: conversions should only return primitive values (i.e. arrays, or // values that give correct `typeof` results). @@ -25559,7 +25388,7 @@ convert.rgb.gray = function (rgb) { /***/ }), -/* 269 */ +/* 268 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -25718,10 +25547,10 @@ module.exports = { /***/ }), -/* 270 */ +/* 269 */ /***/ (function(module, exports, __webpack_require__) { -var conversions = __webpack_require__(268); +var conversions = __webpack_require__(267); /* this function routes a model to all other models. @@ -25821,13 +25650,13 @@ module.exports = function (fromModel) { /***/ }), -/* 271 */ +/* 270 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const os = __webpack_require__(121); -const hasFlag = __webpack_require__(272); +const os = __webpack_require__(120); +const hasFlag = __webpack_require__(271); const env = process.env; @@ -25959,7 +25788,7 @@ module.exports = { /***/ }), -/* 272 */ +/* 271 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -25974,7 +25803,7 @@ module.exports = (flag, argv) => { /***/ }), -/* 273 */ +/* 272 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -26109,15 +25938,15 @@ module.exports = (chalk, tmp) => { /***/ }), -/* 274 */ +/* 273 */ /***/ (function(module, exports, __webpack_require__) { module.exports = normalize -var fixer = __webpack_require__(275) +var fixer = __webpack_require__(274) normalize.fixer = fixer -var makeWarning = __webpack_require__(303) +var makeWarning = __webpack_require__(302) var fieldsToFix = ['name','version','description','repository','modules','scripts' ,'files','bin','man','bugs','keywords','readme','homepage','license'] @@ -26154,17 +25983,17 @@ function ucFirst (string) { /***/ }), -/* 275 */ +/* 274 */ /***/ (function(module, exports, __webpack_require__) { -var semver = __webpack_require__(276) -var validateLicense = __webpack_require__(277); -var hostedGitInfo = __webpack_require__(282) -var isBuiltinModule = __webpack_require__(286).isCore +var semver = __webpack_require__(275) +var validateLicense = __webpack_require__(276); +var hostedGitInfo = __webpack_require__(281) +var isBuiltinModule = __webpack_require__(285).isCore var depTypes = ["dependencies","devDependencies","optionalDependencies"] -var extractDescription = __webpack_require__(301) -var url = __webpack_require__(283) -var typos = __webpack_require__(302) +var extractDescription = __webpack_require__(300) +var url = __webpack_require__(282) +var typos = __webpack_require__(301) var fixer = module.exports = { // default warning function @@ -26578,7 +26407,7 @@ function bugsTypos(bugs, warn) { /***/ }), -/* 276 */ +/* 275 */ /***/ (function(module, exports) { exports = module.exports = SemVer @@ -28067,11 +27896,11 @@ function coerce (version) { /***/ }), -/* 277 */ +/* 276 */ /***/ (function(module, exports, __webpack_require__) { -var parse = __webpack_require__(278); -var correct = __webpack_require__(280); +var parse = __webpack_require__(277); +var correct = __webpack_require__(279); var genericWarning = ( 'license should be ' + @@ -28157,10 +27986,10 @@ module.exports = function(argument) { /***/ }), -/* 278 */ +/* 277 */ /***/ (function(module, exports, __webpack_require__) { -var parser = __webpack_require__(279).parser +var parser = __webpack_require__(278).parser module.exports = function (argument) { return parser.parse(argument) @@ -28168,7 +27997,7 @@ module.exports = function (argument) { /***/ }), -/* 279 */ +/* 278 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {/* parser generated by jison 0.4.17 */ @@ -29521,7 +29350,7 @@ exports.main = function commonjsMain(args) { console.log('Usage: '+args[0]+' FILE'); process.exit(1); } - var source = __webpack_require__(134).readFileSync(__webpack_require__(4).normalize(args[1]), "utf8"); + var source = __webpack_require__(133).readFileSync(__webpack_require__(4).normalize(args[1]), "utf8"); return exports.parser.parse(source); }; if ( true && __webpack_require__.c[__webpack_require__.s] === module) { @@ -29529,13 +29358,13 @@ if ( true && __webpack_require__.c[__webpack_require__.s] === module) { } } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(115)(module))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(114)(module))) /***/ }), -/* 280 */ +/* 279 */ /***/ (function(module, exports, __webpack_require__) { -var licenseIDs = __webpack_require__(281); +var licenseIDs = __webpack_require__(280); function valid(string) { return licenseIDs.indexOf(string) > -1; @@ -29775,20 +29604,20 @@ module.exports = function(identifier) { /***/ }), -/* 281 */ +/* 280 */ /***/ (function(module) { module.exports = JSON.parse("[\"Glide\",\"Abstyles\",\"AFL-1.1\",\"AFL-1.2\",\"AFL-2.0\",\"AFL-2.1\",\"AFL-3.0\",\"AMPAS\",\"APL-1.0\",\"Adobe-Glyph\",\"APAFML\",\"Adobe-2006\",\"AGPL-1.0\",\"Afmparse\",\"Aladdin\",\"ADSL\",\"AMDPLPA\",\"ANTLR-PD\",\"Apache-1.0\",\"Apache-1.1\",\"Apache-2.0\",\"AML\",\"APSL-1.0\",\"APSL-1.1\",\"APSL-1.2\",\"APSL-2.0\",\"Artistic-1.0\",\"Artistic-1.0-Perl\",\"Artistic-1.0-cl8\",\"Artistic-2.0\",\"AAL\",\"Bahyph\",\"Barr\",\"Beerware\",\"BitTorrent-1.0\",\"BitTorrent-1.1\",\"BSL-1.0\",\"Borceux\",\"BSD-2-Clause\",\"BSD-2-Clause-FreeBSD\",\"BSD-2-Clause-NetBSD\",\"BSD-3-Clause\",\"BSD-3-Clause-Clear\",\"BSD-4-Clause\",\"BSD-Protection\",\"BSD-Source-Code\",\"BSD-3-Clause-Attribution\",\"0BSD\",\"BSD-4-Clause-UC\",\"bzip2-1.0.5\",\"bzip2-1.0.6\",\"Caldera\",\"CECILL-1.0\",\"CECILL-1.1\",\"CECILL-2.0\",\"CECILL-2.1\",\"CECILL-B\",\"CECILL-C\",\"ClArtistic\",\"MIT-CMU\",\"CNRI-Jython\",\"CNRI-Python\",\"CNRI-Python-GPL-Compatible\",\"CPOL-1.02\",\"CDDL-1.0\",\"CDDL-1.1\",\"CPAL-1.0\",\"CPL-1.0\",\"CATOSL-1.1\",\"Condor-1.1\",\"CC-BY-1.0\",\"CC-BY-2.0\",\"CC-BY-2.5\",\"CC-BY-3.0\",\"CC-BY-4.0\",\"CC-BY-ND-1.0\",\"CC-BY-ND-2.0\",\"CC-BY-ND-2.5\",\"CC-BY-ND-3.0\",\"CC-BY-ND-4.0\",\"CC-BY-NC-1.0\",\"CC-BY-NC-2.0\",\"CC-BY-NC-2.5\",\"CC-BY-NC-3.0\",\"CC-BY-NC-4.0\",\"CC-BY-NC-ND-1.0\",\"CC-BY-NC-ND-2.0\",\"CC-BY-NC-ND-2.5\",\"CC-BY-NC-ND-3.0\",\"CC-BY-NC-ND-4.0\",\"CC-BY-NC-SA-1.0\",\"CC-BY-NC-SA-2.0\",\"CC-BY-NC-SA-2.5\",\"CC-BY-NC-SA-3.0\",\"CC-BY-NC-SA-4.0\",\"CC-BY-SA-1.0\",\"CC-BY-SA-2.0\",\"CC-BY-SA-2.5\",\"CC-BY-SA-3.0\",\"CC-BY-SA-4.0\",\"CC0-1.0\",\"Crossword\",\"CrystalStacker\",\"CUA-OPL-1.0\",\"Cube\",\"curl\",\"D-FSL-1.0\",\"diffmark\",\"WTFPL\",\"DOC\",\"Dotseqn\",\"DSDP\",\"dvipdfm\",\"EPL-1.0\",\"ECL-1.0\",\"ECL-2.0\",\"eGenix\",\"EFL-1.0\",\"EFL-2.0\",\"MIT-advertising\",\"MIT-enna\",\"Entessa\",\"ErlPL-1.1\",\"EUDatagrid\",\"EUPL-1.0\",\"EUPL-1.1\",\"Eurosym\",\"Fair\",\"MIT-feh\",\"Frameworx-1.0\",\"FreeImage\",\"FTL\",\"FSFAP\",\"FSFUL\",\"FSFULLR\",\"Giftware\",\"GL2PS\",\"Glulxe\",\"AGPL-3.0\",\"GFDL-1.1\",\"GFDL-1.2\",\"GFDL-1.3\",\"GPL-1.0\",\"GPL-2.0\",\"GPL-3.0\",\"LGPL-2.1\",\"LGPL-3.0\",\"LGPL-2.0\",\"gnuplot\",\"gSOAP-1.3b\",\"HaskellReport\",\"HPND\",\"IBM-pibs\",\"IPL-1.0\",\"ICU\",\"ImageMagick\",\"iMatix\",\"Imlib2\",\"IJG\",\"Info-ZIP\",\"Intel-ACPI\",\"Intel\",\"Interbase-1.0\",\"IPA\",\"ISC\",\"JasPer-2.0\",\"JSON\",\"LPPL-1.0\",\"LPPL-1.1\",\"LPPL-1.2\",\"LPPL-1.3a\",\"LPPL-1.3c\",\"Latex2e\",\"BSD-3-Clause-LBNL\",\"Leptonica\",\"LGPLLR\",\"Libpng\",\"libtiff\",\"LAL-1.2\",\"LAL-1.3\",\"LiLiQ-P-1.1\",\"LiLiQ-Rplus-1.1\",\"LiLiQ-R-1.1\",\"LPL-1.02\",\"LPL-1.0\",\"MakeIndex\",\"MTLL\",\"MS-PL\",\"MS-RL\",\"MirOS\",\"MITNFA\",\"MIT\",\"Motosoto\",\"MPL-1.0\",\"MPL-1.1\",\"MPL-2.0\",\"MPL-2.0-no-copyleft-exception\",\"mpich2\",\"Multics\",\"Mup\",\"NASA-1.3\",\"Naumen\",\"NBPL-1.0\",\"NetCDF\",\"NGPL\",\"NOSL\",\"NPL-1.0\",\"NPL-1.1\",\"Newsletr\",\"NLPL\",\"Nokia\",\"NPOSL-3.0\",\"NLOD-1.0\",\"Noweb\",\"NRL\",\"NTP\",\"Nunit\",\"OCLC-2.0\",\"ODbL-1.0\",\"PDDL-1.0\",\"OCCT-PL\",\"OGTSL\",\"OLDAP-2.2.2\",\"OLDAP-1.1\",\"OLDAP-1.2\",\"OLDAP-1.3\",\"OLDAP-1.4\",\"OLDAP-2.0\",\"OLDAP-2.0.1\",\"OLDAP-2.1\",\"OLDAP-2.2\",\"OLDAP-2.2.1\",\"OLDAP-2.3\",\"OLDAP-2.4\",\"OLDAP-2.5\",\"OLDAP-2.6\",\"OLDAP-2.7\",\"OLDAP-2.8\",\"OML\",\"OPL-1.0\",\"OSL-1.0\",\"OSL-1.1\",\"OSL-2.0\",\"OSL-2.1\",\"OSL-3.0\",\"OpenSSL\",\"OSET-PL-2.1\",\"PHP-3.0\",\"PHP-3.01\",\"Plexus\",\"PostgreSQL\",\"psfrag\",\"psutils\",\"Python-2.0\",\"QPL-1.0\",\"Qhull\",\"Rdisc\",\"RPSL-1.0\",\"RPL-1.1\",\"RPL-1.5\",\"RHeCos-1.1\",\"RSCPL\",\"RSA-MD\",\"Ruby\",\"SAX-PD\",\"Saxpath\",\"SCEA\",\"SWL\",\"SMPPL\",\"Sendmail\",\"SGI-B-1.0\",\"SGI-B-1.1\",\"SGI-B-2.0\",\"OFL-1.0\",\"OFL-1.1\",\"SimPL-2.0\",\"Sleepycat\",\"SNIA\",\"Spencer-86\",\"Spencer-94\",\"Spencer-99\",\"SMLNJ\",\"SugarCRM-1.1.3\",\"SISSL\",\"SISSL-1.2\",\"SPL-1.0\",\"Watcom-1.0\",\"TCL\",\"Unlicense\",\"TMate\",\"TORQUE-1.1\",\"TOSL\",\"Unicode-TOU\",\"UPL-1.0\",\"NCSA\",\"Vim\",\"VOSTROM\",\"VSL-1.0\",\"W3C-19980720\",\"W3C\",\"Wsuipa\",\"Xnet\",\"X11\",\"Xerox\",\"XFree86-1.1\",\"xinetd\",\"xpp\",\"XSkat\",\"YPL-1.0\",\"YPL-1.1\",\"Zed\",\"Zend-2.0\",\"Zimbra-1.3\",\"Zimbra-1.4\",\"Zlib\",\"zlib-acknowledgement\",\"ZPL-1.1\",\"ZPL-2.0\",\"ZPL-2.1\",\"BSD-3-Clause-No-Nuclear-License\",\"BSD-3-Clause-No-Nuclear-Warranty\",\"BSD-3-Clause-No-Nuclear-License-2014\",\"eCos-2.0\",\"GPL-2.0-with-autoconf-exception\",\"GPL-2.0-with-bison-exception\",\"GPL-2.0-with-classpath-exception\",\"GPL-2.0-with-font-exception\",\"GPL-2.0-with-GCC-exception\",\"GPL-3.0-with-autoconf-exception\",\"GPL-3.0-with-GCC-exception\",\"StandardML-NJ\",\"WXwindows\"]"); /***/ }), -/* 282 */ +/* 281 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var url = __webpack_require__(283) -var gitHosts = __webpack_require__(284) -var GitHost = module.exports = __webpack_require__(285) +var url = __webpack_require__(282) +var gitHosts = __webpack_require__(283) +var GitHost = module.exports = __webpack_require__(284) var protocolToRepresentationMap = { 'git+ssh:': 'sshurl', @@ -29936,13 +29765,13 @@ function parseGitUrl (giturl) { /***/ }), -/* 283 */ +/* 282 */ /***/ (function(module, exports) { module.exports = require("url"); /***/ }), -/* 284 */ +/* 283 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -30028,12 +29857,12 @@ function formatHashFragment (fragment) { /***/ }), -/* 285 */ +/* 284 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var gitHosts = __webpack_require__(284) +var gitHosts = __webpack_require__(283) /* eslint-disable node/no-deprecated-api */ // copy-pasta util._extend from node's source, to avoid pulling @@ -30191,27 +30020,27 @@ GitHost.prototype.toString = function (opts) { /***/ }), -/* 286 */ +/* 285 */ /***/ (function(module, exports, __webpack_require__) { -var async = __webpack_require__(287); -async.core = __webpack_require__(297); -async.isCore = __webpack_require__(299); -async.sync = __webpack_require__(300); +var async = __webpack_require__(286); +async.core = __webpack_require__(296); +async.isCore = __webpack_require__(298); +async.sync = __webpack_require__(299); module.exports = async; /***/ }), -/* 287 */ +/* 286 */ /***/ (function(module, exports, __webpack_require__) { -var fs = __webpack_require__(134); +var fs = __webpack_require__(133); var path = __webpack_require__(4); -var caller = __webpack_require__(288); -var nodeModulesPaths = __webpack_require__(289); -var normalizeOptions = __webpack_require__(291); -var isCore = __webpack_require__(292); +var caller = __webpack_require__(287); +var nodeModulesPaths = __webpack_require__(288); +var normalizeOptions = __webpack_require__(290); +var isCore = __webpack_require__(291); var realpathFS = fs.realpath && typeof fs.realpath.native === 'function' ? fs.realpath.native : fs.realpath; @@ -30508,7 +30337,7 @@ module.exports = function resolve(x, options, callback) { /***/ }), -/* 288 */ +/* 287 */ /***/ (function(module, exports) { module.exports = function () { @@ -30522,11 +30351,11 @@ module.exports = function () { /***/ }), -/* 289 */ +/* 288 */ /***/ (function(module, exports, __webpack_require__) { var path = __webpack_require__(4); -var parse = path.parse || __webpack_require__(290); +var parse = path.parse || __webpack_require__(289); var getNodeModulesDirs = function getNodeModulesDirs(absoluteStart, modules) { var prefix = '/'; @@ -30570,7 +30399,7 @@ module.exports = function nodeModulesPaths(start, opts, request) { /***/ }), -/* 290 */ +/* 289 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -30652,7 +30481,7 @@ module.exports.win32 = win32.parse; /***/ }), -/* 291 */ +/* 290 */ /***/ (function(module, exports) { module.exports = function (x, opts) { @@ -30668,13 +30497,13 @@ module.exports = function (x, opts) { /***/ }), -/* 292 */ +/* 291 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(293); +var has = __webpack_require__(292); function specifierIncluded(current, specifier) { var nodeParts = current.split('.'); @@ -30736,7 +30565,7 @@ function versionIncluded(nodeVersion, specifierValue) { return matchesRange(current, specifierValue); } -var data = __webpack_require__(296); +var data = __webpack_require__(295); module.exports = function isCore(x, nodeVersion) { return has(data, x) && versionIncluded(nodeVersion, data[x]); @@ -30744,31 +30573,31 @@ module.exports = function isCore(x, nodeVersion) { /***/ }), -/* 293 */ +/* 292 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var bind = __webpack_require__(294); +var bind = __webpack_require__(293); module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); /***/ }), -/* 294 */ +/* 293 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var implementation = __webpack_require__(295); +var implementation = __webpack_require__(294); module.exports = Function.prototype.bind || implementation; /***/ }), -/* 295 */ +/* 294 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -30827,13 +30656,13 @@ module.exports = function bind(that) { /***/ }), -/* 296 */ +/* 295 */ /***/ (function(module) { module.exports = JSON.parse("{\"assert\":true,\"assert/strict\":\">= 15\",\"async_hooks\":\">= 8\",\"buffer_ieee754\":\"< 0.9.7\",\"buffer\":true,\"child_process\":true,\"cluster\":true,\"console\":true,\"constants\":true,\"crypto\":true,\"_debug_agent\":\">= 1 && < 8\",\"_debugger\":\"< 8\",\"dgram\":true,\"diagnostics_channel\":\">= 15.1\",\"dns\":true,\"dns/promises\":\">= 15\",\"domain\":\">= 0.7.12\",\"events\":true,\"freelist\":\"< 6\",\"fs\":true,\"fs/promises\":[\">= 10 && < 10.1\",\">= 14\"],\"_http_agent\":\">= 0.11.1\",\"_http_client\":\">= 0.11.1\",\"_http_common\":\">= 0.11.1\",\"_http_incoming\":\">= 0.11.1\",\"_http_outgoing\":\">= 0.11.1\",\"_http_server\":\">= 0.11.1\",\"http\":true,\"http2\":\">= 8.8\",\"https\":true,\"inspector\":\">= 8.0.0\",\"_linklist\":\"< 8\",\"module\":true,\"net\":true,\"node-inspect/lib/_inspect\":\">= 7.6.0 && < 12\",\"node-inspect/lib/internal/inspect_client\":\">= 7.6.0 && < 12\",\"node-inspect/lib/internal/inspect_repl\":\">= 7.6.0 && < 12\",\"os\":true,\"path\":true,\"perf_hooks\":\">= 8.5\",\"process\":\">= 1\",\"punycode\":true,\"querystring\":true,\"readline\":true,\"repl\":true,\"smalloc\":\">= 0.11.5 && < 3\",\"_stream_duplex\":\">= 0.9.4\",\"_stream_transform\":\">= 0.9.4\",\"_stream_wrap\":\">= 1.4.1\",\"_stream_passthrough\":\">= 0.9.4\",\"_stream_readable\":\">= 0.9.4\",\"_stream_writable\":\">= 0.9.4\",\"stream\":true,\"stream/promises\":\">= 15\",\"string_decoder\":true,\"sys\":[\">= 0.6 && < 0.7\",\">= 0.8\"],\"timers\":true,\"timers/promises\":\">= 15\",\"_tls_common\":\">= 0.11.13\",\"_tls_legacy\":\">= 0.11.3 && < 10\",\"_tls_wrap\":\">= 0.11.3\",\"tls\":true,\"trace_events\":\">= 10\",\"tty\":true,\"url\":true,\"util\":true,\"v8/tools/arguments\":\">= 10 && < 12\",\"v8/tools/codemap\":[\">= 4.4.0 && < 5\",\">= 5.2.0 && < 12\"],\"v8/tools/consarray\":[\">= 4.4.0 && < 5\",\">= 5.2.0 && < 12\"],\"v8/tools/csvparser\":[\">= 4.4.0 && < 5\",\">= 5.2.0 && < 12\"],\"v8/tools/logreader\":[\">= 4.4.0 && < 5\",\">= 5.2.0 && < 12\"],\"v8/tools/profile_view\":[\">= 4.4.0 && < 5\",\">= 5.2.0 && < 12\"],\"v8/tools/splaytree\":[\">= 4.4.0 && < 5\",\">= 5.2.0 && < 12\"],\"v8\":\">= 1\",\"vm\":true,\"wasi\":\">= 13.4 && < 13.5\",\"worker_threads\":\">= 11.7\",\"zlib\":true}"); /***/ }), -/* 297 */ +/* 296 */ /***/ (function(module, exports, __webpack_require__) { var current = (process.versions && process.versions.node && process.versions.node.split('.')) || []; @@ -30880,7 +30709,7 @@ function versionIncluded(specifierValue) { return matchesRange(specifierValue); } -var data = __webpack_require__(298); +var data = __webpack_require__(297); var core = {}; for (var mod in data) { // eslint-disable-line no-restricted-syntax @@ -30892,16 +30721,16 @@ module.exports = core; /***/ }), -/* 298 */ +/* 297 */ /***/ (function(module) { module.exports = JSON.parse("{\"assert\":true,\"assert/strict\":\">= 15\",\"async_hooks\":\">= 8\",\"buffer_ieee754\":\"< 0.9.7\",\"buffer\":true,\"child_process\":true,\"cluster\":true,\"console\":true,\"constants\":true,\"crypto\":true,\"_debug_agent\":\">= 1 && < 8\",\"_debugger\":\"< 8\",\"dgram\":true,\"diagnostics_channel\":\">= 15.1\",\"dns\":true,\"dns/promises\":\">= 15\",\"domain\":\">= 0.7.12\",\"events\":true,\"freelist\":\"< 6\",\"fs\":true,\"fs/promises\":[\">= 10 && < 10.1\",\">= 14\"],\"_http_agent\":\">= 0.11.1\",\"_http_client\":\">= 0.11.1\",\"_http_common\":\">= 0.11.1\",\"_http_incoming\":\">= 0.11.1\",\"_http_outgoing\":\">= 0.11.1\",\"_http_server\":\">= 0.11.1\",\"http\":true,\"http2\":\">= 8.8\",\"https\":true,\"inspector\":\">= 8.0.0\",\"_linklist\":\"< 8\",\"module\":true,\"net\":true,\"node-inspect/lib/_inspect\":\">= 7.6.0 && < 12\",\"node-inspect/lib/internal/inspect_client\":\">= 7.6.0 && < 12\",\"node-inspect/lib/internal/inspect_repl\":\">= 7.6.0 && < 12\",\"os\":true,\"path\":true,\"perf_hooks\":\">= 8.5\",\"process\":\">= 1\",\"punycode\":true,\"querystring\":true,\"readline\":true,\"repl\":true,\"smalloc\":\">= 0.11.5 && < 3\",\"_stream_duplex\":\">= 0.9.4\",\"_stream_transform\":\">= 0.9.4\",\"_stream_wrap\":\">= 1.4.1\",\"_stream_passthrough\":\">= 0.9.4\",\"_stream_readable\":\">= 0.9.4\",\"_stream_writable\":\">= 0.9.4\",\"stream\":true,\"stream/promises\":\">= 15\",\"string_decoder\":true,\"sys\":[\">= 0.6 && < 0.7\",\">= 0.8\"],\"timers\":true,\"timers/promises\":\">= 15\",\"_tls_common\":\">= 0.11.13\",\"_tls_legacy\":\">= 0.11.3 && < 10\",\"_tls_wrap\":\">= 0.11.3\",\"tls\":true,\"trace_events\":\">= 10\",\"tty\":true,\"url\":true,\"util\":true,\"v8/tools/arguments\":\">= 10 && < 12\",\"v8/tools/codemap\":[\">= 4.4.0 && < 5\",\">= 5.2.0 && < 12\"],\"v8/tools/consarray\":[\">= 4.4.0 && < 5\",\">= 5.2.0 && < 12\"],\"v8/tools/csvparser\":[\">= 4.4.0 && < 5\",\">= 5.2.0 && < 12\"],\"v8/tools/logreader\":[\">= 4.4.0 && < 5\",\">= 5.2.0 && < 12\"],\"v8/tools/profile_view\":[\">= 4.4.0 && < 5\",\">= 5.2.0 && < 12\"],\"v8/tools/splaytree\":[\">= 4.4.0 && < 5\",\">= 5.2.0 && < 12\"],\"v8\":\">= 1\",\"vm\":true,\"wasi\":\">= 13.4 && < 13.5\",\"worker_threads\":\">= 11.7\",\"zlib\":true}"); /***/ }), -/* 299 */ +/* 298 */ /***/ (function(module, exports, __webpack_require__) { -var isCoreModule = __webpack_require__(292); +var isCoreModule = __webpack_require__(291); module.exports = function isCore(x) { return isCoreModule(x); @@ -30909,15 +30738,15 @@ module.exports = function isCore(x) { /***/ }), -/* 300 */ +/* 299 */ /***/ (function(module, exports, __webpack_require__) { -var isCore = __webpack_require__(292); -var fs = __webpack_require__(134); +var isCore = __webpack_require__(291); +var fs = __webpack_require__(133); var path = __webpack_require__(4); -var caller = __webpack_require__(288); -var nodeModulesPaths = __webpack_require__(289); -var normalizeOptions = __webpack_require__(291); +var caller = __webpack_require__(287); +var nodeModulesPaths = __webpack_require__(288); +var normalizeOptions = __webpack_require__(290); var realpathFS = fs.realpathSync && typeof fs.realpathSync.native === 'function' ? fs.realpathSync.native : fs.realpathSync; @@ -31107,7 +30936,7 @@ module.exports = function resolveSync(x, options) { /***/ }), -/* 301 */ +/* 300 */ /***/ (function(module, exports) { module.exports = extractDescription @@ -31127,17 +30956,17 @@ function extractDescription (d) { /***/ }), -/* 302 */ +/* 301 */ /***/ (function(module) { module.exports = JSON.parse("{\"topLevel\":{\"dependancies\":\"dependencies\",\"dependecies\":\"dependencies\",\"depdenencies\":\"dependencies\",\"devEependencies\":\"devDependencies\",\"depends\":\"dependencies\",\"dev-dependencies\":\"devDependencies\",\"devDependences\":\"devDependencies\",\"devDepenencies\":\"devDependencies\",\"devdependencies\":\"devDependencies\",\"repostitory\":\"repository\",\"repo\":\"repository\",\"prefereGlobal\":\"preferGlobal\",\"hompage\":\"homepage\",\"hampage\":\"homepage\",\"autohr\":\"author\",\"autor\":\"author\",\"contributers\":\"contributors\",\"publicationConfig\":\"publishConfig\",\"script\":\"scripts\"},\"bugs\":{\"web\":\"url\",\"name\":\"url\"},\"script\":{\"server\":\"start\",\"tests\":\"test\"}}"); /***/ }), -/* 303 */ +/* 302 */ /***/ (function(module, exports, __webpack_require__) { -var util = __webpack_require__(112) -var messages = __webpack_require__(304) +var util = __webpack_require__(111) +var messages = __webpack_require__(303) module.exports = function() { var args = Array.prototype.slice.call(arguments, 0) @@ -31162,20 +30991,20 @@ function makeTypoWarning (providedName, probableName, field) { /***/ }), -/* 304 */ +/* 303 */ /***/ (function(module) { module.exports = JSON.parse("{\"repositories\":\"'repositories' (plural) Not supported. Please pick one as the 'repository' field\",\"missingRepository\":\"No repository field.\",\"brokenGitUrl\":\"Probably broken git url: %s\",\"nonObjectScripts\":\"scripts must be an object\",\"nonStringScript\":\"script values must be string commands\",\"nonArrayFiles\":\"Invalid 'files' member\",\"invalidFilename\":\"Invalid filename in 'files' list: %s\",\"nonArrayBundleDependencies\":\"Invalid 'bundleDependencies' list. Must be array of package names\",\"nonStringBundleDependency\":\"Invalid bundleDependencies member: %s\",\"nonDependencyBundleDependency\":\"Non-dependency in bundleDependencies: %s\",\"nonObjectDependencies\":\"%s field must be an object\",\"nonStringDependency\":\"Invalid dependency: %s %s\",\"deprecatedArrayDependencies\":\"specifying %s as array is deprecated\",\"deprecatedModules\":\"modules field is deprecated\",\"nonArrayKeywords\":\"keywords should be an array of strings\",\"nonStringKeyword\":\"keywords should be an array of strings\",\"conflictingName\":\"%s is also the name of a node core module.\",\"nonStringDescription\":\"'description' field should be a string\",\"missingDescription\":\"No description\",\"missingReadme\":\"No README data\",\"missingLicense\":\"No license field.\",\"nonEmailUrlBugsString\":\"Bug string field must be url, email, or {email,url}\",\"nonUrlBugsUrlField\":\"bugs.url field must be a string url. Deleted.\",\"nonEmailBugsEmailField\":\"bugs.email field must be a string email. Deleted.\",\"emptyNormalizedBugs\":\"Normalized value of bugs field is an empty object. Deleted.\",\"nonUrlHomepage\":\"homepage field must be a string url. Deleted.\",\"invalidLicense\":\"license should be a valid SPDX license expression\",\"typo\":\"%s should probably be %s.\"}"); /***/ }), -/* 305 */ +/* 304 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const path = __webpack_require__(4); -const writeJsonFile = __webpack_require__(306); -const sortKeys = __webpack_require__(312); +const writeJsonFile = __webpack_require__(305); +const sortKeys = __webpack_require__(311); const dependencyKeys = new Set([ 'dependencies', @@ -31240,18 +31069,18 @@ module.exports.sync = (filePath, data, options) => { /***/ }), -/* 306 */ +/* 305 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const path = __webpack_require__(4); -const fs = __webpack_require__(133); -const writeFileAtomic = __webpack_require__(307); -const sortKeys = __webpack_require__(312); -const makeDir = __webpack_require__(314); -const pify = __webpack_require__(315); -const detectIndent = __webpack_require__(317); +const fs = __webpack_require__(132); +const writeFileAtomic = __webpack_require__(306); +const sortKeys = __webpack_require__(311); +const makeDir = __webpack_require__(313); +const pify = __webpack_require__(314); +const detectIndent = __webpack_require__(316); const init = (fn, filePath, data, options) => { if (!filePath) { @@ -31323,7 +31152,7 @@ module.exports.sync = (filePath, data, options) => { /***/ }), -/* 307 */ +/* 306 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -31333,9 +31162,9 @@ module.exports.sync = writeFileSync module.exports._getTmpname = getTmpname // for testing module.exports._cleanupOnExit = cleanupOnExit -var fs = __webpack_require__(133) -var MurmurHash3 = __webpack_require__(308) -var onExit = __webpack_require__(309) +var fs = __webpack_require__(132) +var MurmurHash3 = __webpack_require__(307) +var onExit = __webpack_require__(308) var path = __webpack_require__(4) var activeFiles = {} @@ -31343,7 +31172,7 @@ var activeFiles = {} /* istanbul ignore next */ var threadId = (function getId () { try { - var workerThreads = __webpack_require__(311) + var workerThreads = __webpack_require__(310) /// if we are in main thread, this is set to `0` return workerThreads.threadId @@ -31568,7 +31397,7 @@ function writeFileSync (filename, data, options) { /***/ }), -/* 308 */ +/* 307 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -31710,16 +31539,16 @@ function writeFileSync (filename, data, options) { /***/ }), -/* 309 */ +/* 308 */ /***/ (function(module, exports, __webpack_require__) { // Note: since nyc uses this module to output coverage, any lines // that are in the direct sync flow of nyc's outputCoverage are // ignored, since we can never get coverage for them. -var assert = __webpack_require__(140) -var signals = __webpack_require__(310) +var assert = __webpack_require__(139) +var signals = __webpack_require__(309) -var EE = __webpack_require__(156) +var EE = __webpack_require__(155) /* istanbul ignore if */ if (typeof EE !== 'function') { EE = EE.EventEmitter @@ -31873,7 +31702,7 @@ function processEmit (ev, arg) { /***/ }), -/* 310 */ +/* 309 */ /***/ (function(module, exports) { // This is not the set of all possible signals. @@ -31932,18 +31761,18 @@ if (process.platform === 'linux') { /***/ }), -/* 311 */ +/* 310 */ /***/ (function(module, exports) { module.exports = require(undefined); /***/ }), -/* 312 */ +/* 311 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const isPlainObj = __webpack_require__(313); +const isPlainObj = __webpack_require__(312); module.exports = (obj, opts) => { if (!isPlainObj(obj)) { @@ -32000,7 +31829,7 @@ module.exports = (obj, opts) => { /***/ }), -/* 313 */ +/* 312 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -32014,15 +31843,15 @@ module.exports = function (x) { /***/ }), -/* 314 */ +/* 313 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const fs = __webpack_require__(134); +const fs = __webpack_require__(133); const path = __webpack_require__(4); -const pify = __webpack_require__(315); -const semver = __webpack_require__(316); +const pify = __webpack_require__(314); +const semver = __webpack_require__(315); const defaults = { mode: 0o777 & (~process.umask()), @@ -32160,7 +31989,7 @@ module.exports.sync = (input, options) => { /***/ }), -/* 315 */ +/* 314 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -32235,7 +32064,7 @@ module.exports = (input, options) => { /***/ }), -/* 316 */ +/* 315 */ /***/ (function(module, exports) { exports = module.exports = SemVer @@ -33724,7 +33553,7 @@ function coerce (version) { /***/ }), -/* 317 */ +/* 316 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -33853,7 +33682,7 @@ module.exports = str => { /***/ }), -/* 318 */ +/* 317 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -33861,7 +33690,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "installInDir", function() { return installInDir; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "runScriptInPackage", function() { return runScriptInPackage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "runScriptInPackageStreaming", function() { return runScriptInPackageStreaming; }); -/* harmony import */ var _child_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(319); +/* harmony import */ var _child_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(318); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -33913,22 +33742,22 @@ function runScriptInPackageStreaming({ } /***/ }), -/* 319 */ +/* 318 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "spawn", function() { return spawn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "spawnStreaming", function() { return spawnStreaming; }); -/* harmony import */ var stream__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(138); +/* harmony import */ var stream__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(137); /* harmony import */ var stream__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(stream__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(113); +/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(112); /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var execa__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(320); +/* harmony import */ var execa__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(319); /* harmony import */ var execa__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(execa__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var strong_log_transformer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(356); +/* harmony import */ var strong_log_transformer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(355); /* harmony import */ var strong_log_transformer__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(strong_log_transformer__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(246); +/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(245); function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -34003,23 +33832,23 @@ function spawnStreaming(command, args, opts, { } /***/ }), -/* 320 */ +/* 319 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const path = __webpack_require__(4); -const childProcess = __webpack_require__(321); -const crossSpawn = __webpack_require__(322); -const stripFinalNewline = __webpack_require__(335); -const npmRunPath = __webpack_require__(336); -const onetime = __webpack_require__(338); -const makeError = __webpack_require__(340); -const normalizeStdio = __webpack_require__(345); -const {spawnedKill, spawnedCancel, setupTimeout, setExitHandler} = __webpack_require__(346); -const {handleInput, getSpawnedResult, makeAllStream, validateInputSync} = __webpack_require__(347); -const {mergePromise, getSpawnedPromise} = __webpack_require__(354); -const {joinCommand, parseCommand} = __webpack_require__(355); +const childProcess = __webpack_require__(320); +const crossSpawn = __webpack_require__(321); +const stripFinalNewline = __webpack_require__(334); +const npmRunPath = __webpack_require__(335); +const onetime = __webpack_require__(337); +const makeError = __webpack_require__(339); +const normalizeStdio = __webpack_require__(344); +const {spawnedKill, spawnedCancel, setupTimeout, setExitHandler} = __webpack_require__(345); +const {handleInput, getSpawnedResult, makeAllStream, validateInputSync} = __webpack_require__(346); +const {mergePromise, getSpawnedPromise} = __webpack_require__(353); +const {joinCommand, parseCommand} = __webpack_require__(354); const DEFAULT_MAX_BUFFER = 1000 * 1000 * 100; @@ -34266,21 +34095,21 @@ module.exports.node = (scriptPath, args, options = {}) => { /***/ }), -/* 321 */ +/* 320 */ /***/ (function(module, exports) { module.exports = require("child_process"); /***/ }), -/* 322 */ +/* 321 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const cp = __webpack_require__(321); -const parse = __webpack_require__(323); -const enoent = __webpack_require__(334); +const cp = __webpack_require__(320); +const parse = __webpack_require__(322); +const enoent = __webpack_require__(333); function spawn(command, args, options) { // Parse the arguments @@ -34318,16 +34147,16 @@ module.exports._enoent = enoent; /***/ }), -/* 323 */ +/* 322 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const path = __webpack_require__(4); -const resolveCommand = __webpack_require__(324); -const escape = __webpack_require__(330); -const readShebang = __webpack_require__(331); +const resolveCommand = __webpack_require__(323); +const escape = __webpack_require__(329); +const readShebang = __webpack_require__(330); const isWin = process.platform === 'win32'; const isExecutableRegExp = /\.(?:com|exe)$/i; @@ -34416,15 +34245,15 @@ module.exports = parse; /***/ }), -/* 324 */ +/* 323 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const path = __webpack_require__(4); -const which = __webpack_require__(325); -const getPathKey = __webpack_require__(329); +const which = __webpack_require__(324); +const getPathKey = __webpack_require__(328); function resolveCommandAttempt(parsed, withoutPathExt) { const env = parsed.options.env || process.env; @@ -34475,7 +34304,7 @@ module.exports = resolveCommand; /***/ }), -/* 325 */ +/* 324 */ /***/ (function(module, exports, __webpack_require__) { const isWindows = process.platform === 'win32' || @@ -34484,7 +34313,7 @@ const isWindows = process.platform === 'win32' || const path = __webpack_require__(4) const COLON = isWindows ? ';' : ':' -const isexe = __webpack_require__(326) +const isexe = __webpack_require__(325) const getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' }) @@ -34606,15 +34435,15 @@ which.sync = whichSync /***/ }), -/* 326 */ +/* 325 */ /***/ (function(module, exports, __webpack_require__) { -var fs = __webpack_require__(134) +var fs = __webpack_require__(133) var core if (process.platform === 'win32' || global.TESTING_WINDOWS) { - core = __webpack_require__(327) + core = __webpack_require__(326) } else { - core = __webpack_require__(328) + core = __webpack_require__(327) } module.exports = isexe @@ -34669,13 +34498,13 @@ function sync (path, options) { /***/ }), -/* 327 */ +/* 326 */ /***/ (function(module, exports, __webpack_require__) { module.exports = isexe isexe.sync = sync -var fs = __webpack_require__(134) +var fs = __webpack_require__(133) function checkPathExt (path, options) { var pathext = options.pathExt !== undefined ? @@ -34717,13 +34546,13 @@ function sync (path, options) { /***/ }), -/* 328 */ +/* 327 */ /***/ (function(module, exports, __webpack_require__) { module.exports = isexe isexe.sync = sync -var fs = __webpack_require__(134) +var fs = __webpack_require__(133) function isexe (path, options, cb) { fs.stat(path, function (er, stat) { @@ -34764,7 +34593,7 @@ function checkMode (stat, options) { /***/ }), -/* 329 */ +/* 328 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -34787,7 +34616,7 @@ module.exports.default = pathKey; /***/ }), -/* 330 */ +/* 329 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -34839,14 +34668,14 @@ module.exports.argument = escapeArgument; /***/ }), -/* 331 */ +/* 330 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const fs = __webpack_require__(134); -const shebangCommand = __webpack_require__(332); +const fs = __webpack_require__(133); +const shebangCommand = __webpack_require__(331); function readShebang(command) { // Read the first 150 bytes from the file @@ -34869,12 +34698,12 @@ module.exports = readShebang; /***/ }), -/* 332 */ +/* 331 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const shebangRegex = __webpack_require__(333); +const shebangRegex = __webpack_require__(332); module.exports = (string = '') => { const match = string.match(shebangRegex); @@ -34895,7 +34724,7 @@ module.exports = (string = '') => { /***/ }), -/* 333 */ +/* 332 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -34904,7 +34733,7 @@ module.exports = /^#!(.*)/; /***/ }), -/* 334 */ +/* 333 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -34970,7 +34799,7 @@ module.exports = { /***/ }), -/* 335 */ +/* 334 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -34993,13 +34822,13 @@ module.exports = input => { /***/ }), -/* 336 */ +/* 335 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const path = __webpack_require__(4); -const pathKey = __webpack_require__(337); +const pathKey = __webpack_require__(336); const npmRunPath = options => { options = { @@ -35047,7 +34876,7 @@ module.exports.env = options => { /***/ }), -/* 337 */ +/* 336 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -35070,12 +34899,12 @@ module.exports.default = pathKey; /***/ }), -/* 338 */ +/* 337 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const mimicFn = __webpack_require__(339); +const mimicFn = __webpack_require__(338); const calledFunctions = new WeakMap(); @@ -35127,7 +34956,7 @@ module.exports.callCount = fn => { /***/ }), -/* 339 */ +/* 338 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -35147,12 +34976,12 @@ module.exports.default = mimicFn; /***/ }), -/* 340 */ +/* 339 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const {signalsByName} = __webpack_require__(341); +const {signalsByName} = __webpack_require__(340); const getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => { if (timedOut) { @@ -35240,14 +35069,14 @@ module.exports = makeError; /***/ }), -/* 341 */ +/* 340 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -Object.defineProperty(exports,"__esModule",{value:true});exports.signalsByNumber=exports.signalsByName=void 0;var _os=__webpack_require__(121); +Object.defineProperty(exports,"__esModule",{value:true});exports.signalsByNumber=exports.signalsByName=void 0;var _os=__webpack_require__(120); -var _signals=__webpack_require__(342); -var _realtime=__webpack_require__(344); +var _signals=__webpack_require__(341); +var _realtime=__webpack_require__(343); @@ -35317,14 +35146,14 @@ const signalsByNumber=getSignalsByNumber();exports.signalsByNumber=signalsByNumb //# sourceMappingURL=main.js.map /***/ }), -/* 342 */ +/* 341 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -Object.defineProperty(exports,"__esModule",{value:true});exports.getSignals=void 0;var _os=__webpack_require__(121); +Object.defineProperty(exports,"__esModule",{value:true});exports.getSignals=void 0;var _os=__webpack_require__(120); -var _core=__webpack_require__(343); -var _realtime=__webpack_require__(344); +var _core=__webpack_require__(342); +var _realtime=__webpack_require__(343); @@ -35358,7 +35187,7 @@ return{name,number,description,supported,action,forced,standard}; //# sourceMappingURL=signals.js.map /***/ }), -/* 343 */ +/* 342 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -35637,7 +35466,7 @@ standard:"other"}];exports.SIGNALS=SIGNALS; //# sourceMappingURL=core.js.map /***/ }), -/* 344 */ +/* 343 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -35662,7 +35491,7 @@ const SIGRTMAX=64;exports.SIGRTMAX=SIGRTMAX; //# sourceMappingURL=realtime.js.map /***/ }), -/* 345 */ +/* 344 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -35721,13 +35550,13 @@ module.exports.node = opts => { /***/ }), -/* 346 */ +/* 345 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const os = __webpack_require__(121); -const onExit = __webpack_require__(309); +const os = __webpack_require__(120); +const onExit = __webpack_require__(308); const DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5; @@ -35840,14 +35669,14 @@ module.exports = { /***/ }), -/* 347 */ +/* 346 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const isStream = __webpack_require__(348); -const getStream = __webpack_require__(349); -const mergeStream = __webpack_require__(353); +const isStream = __webpack_require__(347); +const getStream = __webpack_require__(348); +const mergeStream = __webpack_require__(352); // `input` option const handleInput = (spawned, input) => { @@ -35944,7 +35773,7 @@ module.exports = { /***/ }), -/* 348 */ +/* 347 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -35980,13 +35809,13 @@ module.exports = isStream; /***/ }), -/* 349 */ +/* 348 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const pump = __webpack_require__(350); -const bufferStream = __webpack_require__(352); +const pump = __webpack_require__(349); +const bufferStream = __webpack_require__(351); class MaxBufferError extends Error { constructor() { @@ -36045,12 +35874,12 @@ module.exports.MaxBufferError = MaxBufferError; /***/ }), -/* 350 */ +/* 349 */ /***/ (function(module, exports, __webpack_require__) { -var once = __webpack_require__(162) -var eos = __webpack_require__(351) -var fs = __webpack_require__(134) // we only need fs to get the ReadStream and WriteStream prototypes +var once = __webpack_require__(161) +var eos = __webpack_require__(350) +var fs = __webpack_require__(133) // we only need fs to get the ReadStream and WriteStream prototypes var noop = function () {} var ancient = /^v?\.0/.test(process.version) @@ -36133,10 +35962,10 @@ module.exports = pump /***/ }), -/* 351 */ +/* 350 */ /***/ (function(module, exports, __webpack_require__) { -var once = __webpack_require__(162); +var once = __webpack_require__(161); var noop = function() {}; @@ -36233,12 +36062,12 @@ module.exports = eos; /***/ }), -/* 352 */ +/* 351 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const {PassThrough: PassThroughStream} = __webpack_require__(138); +const {PassThrough: PassThroughStream} = __webpack_require__(137); module.exports = options => { options = {...options}; @@ -36292,13 +36121,13 @@ module.exports = options => { /***/ }), -/* 353 */ +/* 352 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const { PassThrough } = __webpack_require__(138); +const { PassThrough } = __webpack_require__(137); module.exports = function (/*streams...*/) { var sources = [] @@ -36340,7 +36169,7 @@ module.exports = function (/*streams...*/) { /***/ }), -/* 354 */ +/* 353 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -36393,7 +36222,7 @@ module.exports = { /***/ }), -/* 355 */ +/* 354 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -36438,7 +36267,7 @@ module.exports = { /***/ }), -/* 356 */ +/* 355 */ /***/ (function(module, exports, __webpack_require__) { // Copyright IBM Corp. 2014,2018. All Rights Reserved. @@ -36446,12 +36275,12 @@ module.exports = { // This file is licensed under the Apache License 2.0. // License text available at https://opensource.org/licenses/Apache-2.0 -module.exports = __webpack_require__(357); -module.exports.cli = __webpack_require__(361); +module.exports = __webpack_require__(356); +module.exports.cli = __webpack_require__(360); /***/ }), -/* 357 */ +/* 356 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -36462,13 +36291,13 @@ module.exports.cli = __webpack_require__(361); -var stream = __webpack_require__(138); -var util = __webpack_require__(112); -var fs = __webpack_require__(134); +var stream = __webpack_require__(137); +var util = __webpack_require__(111); +var fs = __webpack_require__(133); -var through = __webpack_require__(358); -var duplexer = __webpack_require__(359); -var StringDecoder = __webpack_require__(360).StringDecoder; +var through = __webpack_require__(357); +var duplexer = __webpack_require__(358); +var StringDecoder = __webpack_require__(359).StringDecoder; module.exports = Logger; @@ -36657,10 +36486,10 @@ function lineMerger(host) { /***/ }), -/* 358 */ +/* 357 */ /***/ (function(module, exports, __webpack_require__) { -var Stream = __webpack_require__(138) +var Stream = __webpack_require__(137) // through // @@ -36771,10 +36600,10 @@ function through (write, end, opts) { /***/ }), -/* 359 */ +/* 358 */ /***/ (function(module, exports, __webpack_require__) { -var Stream = __webpack_require__(138) +var Stream = __webpack_require__(137) var writeMethods = ["write", "end", "destroy"] var readMethods = ["resume", "pause"] var readEvents = ["data", "close"] @@ -36864,13 +36693,13 @@ function duplex(writer, reader) { /***/ }), -/* 360 */ +/* 359 */ /***/ (function(module, exports) { module.exports = require("string_decoder"); /***/ }), -/* 361 */ +/* 360 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -36881,11 +36710,11 @@ module.exports = require("string_decoder"); -var minimist = __webpack_require__(362); +var minimist = __webpack_require__(361); var path = __webpack_require__(4); -var Logger = __webpack_require__(357); -var pkg = __webpack_require__(363); +var Logger = __webpack_require__(356); +var pkg = __webpack_require__(362); module.exports = cli; @@ -36939,7 +36768,7 @@ function usage($0, p) { /***/ }), -/* 362 */ +/* 361 */ /***/ (function(module, exports) { module.exports = function (args, opts) { @@ -37190,27 +37019,27 @@ function isNumber (x) { /***/ }), -/* 363 */ +/* 362 */ /***/ (function(module) { module.exports = JSON.parse("{\"name\":\"strong-log-transformer\",\"version\":\"2.1.0\",\"description\":\"Stream transformer that prefixes lines with timestamps and other things.\",\"author\":\"Ryan Graham \",\"license\":\"Apache-2.0\",\"repository\":{\"type\":\"git\",\"url\":\"git://github.com/strongloop/strong-log-transformer\"},\"keywords\":[\"logging\",\"streams\"],\"bugs\":{\"url\":\"https://github.com/strongloop/strong-log-transformer/issues\"},\"homepage\":\"https://github.com/strongloop/strong-log-transformer\",\"directories\":{\"test\":\"test\"},\"bin\":{\"sl-log-transformer\":\"bin/sl-log-transformer.js\"},\"main\":\"index.js\",\"scripts\":{\"test\":\"tap --100 test/test-*\"},\"dependencies\":{\"duplexer\":\"^0.1.1\",\"minimist\":\"^1.2.0\",\"through\":\"^2.3.4\"},\"devDependencies\":{\"tap\":\"^12.0.1\"},\"engines\":{\"node\":\">=4\"}}"); /***/ }), -/* 364 */ +/* 363 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAllChecksums", function() { return getAllChecksums; }); -/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(134); +/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(133); /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(365); +/* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(364); /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(crypto__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(112); +/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(111); /* harmony import */ var util__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(util__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var execa__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(320); +/* harmony import */ var execa__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(319); /* harmony import */ var execa__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(execa__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _yarn_lock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(366); +/* harmony import */ var _yarn_lock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(365); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -37398,22 +37227,22 @@ async function getAllChecksums(kbn, log, yarnLock) { } /***/ }), -/* 365 */ +/* 364 */ /***/ (function(module, exports) { module.exports = require("crypto"); /***/ }), -/* 366 */ +/* 365 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "readYarnLock", function() { return readYarnLock; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveDepsForProject", function() { return resolveDepsForProject; }); -/* harmony import */ var _yarnpkg_lockfile__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(367); +/* harmony import */ var _yarnpkg_lockfile__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(366); /* harmony import */ var _yarnpkg_lockfile__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_yarnpkg_lockfile__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _utils_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(131); +/* harmony import */ var _utils_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(130); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -37513,7 +37342,7 @@ function resolveDepsForProject({ } /***/ }), -/* 367 */ +/* 366 */ /***/ (function(module, exports, __webpack_require__) { module.exports = @@ -37639,13 +37468,13 @@ exports.default = function (fn) { /* 2 */ /***/ (function(module, exports) { -module.exports = __webpack_require__(112); +module.exports = __webpack_require__(111); /***/ }), /* 3 */ /***/ (function(module, exports) { -module.exports = __webpack_require__(134); +module.exports = __webpack_require__(133); /***/ }), /* 4 */ @@ -39072,7 +38901,7 @@ module.exports = invariant; /* 9 */ /***/ (function(module, exports) { -module.exports = __webpack_require__(365); +module.exports = __webpack_require__(364); /***/ }), /* 10 */, @@ -39498,7 +39327,7 @@ exports.default = Lockfile; /* 17 */ /***/ (function(module, exports) { -module.exports = __webpack_require__(138); +module.exports = __webpack_require__(137); /***/ }), /* 18 */, @@ -39550,7 +39379,7 @@ function nullify(obj = {}) { /* 22 */ /***/ (function(module, exports) { -module.exports = __webpack_require__(140); +module.exports = __webpack_require__(139); /***/ }), /* 23 */ @@ -39737,7 +39566,7 @@ module.exports = {}; /* 36 */ /***/ (function(module, exports) { -module.exports = __webpack_require__(121); +module.exports = __webpack_require__(120); /***/ }), /* 37 */, @@ -40022,7 +39851,7 @@ exports.f = __webpack_require__(33) ? Object.defineProperty : function definePro /* 54 */ /***/ (function(module, exports) { -module.exports = __webpack_require__(156); +module.exports = __webpack_require__(155); /***/ }), /* 55 */ @@ -41396,7 +41225,7 @@ function onceStrict (fn) { /* 63 */ /***/ (function(module, exports) { -module.exports = __webpack_require__(368); +module.exports = __webpack_require__(367); /***/ }), /* 64 */, @@ -42334,7 +42163,7 @@ module.exports.win32 = win32; /* 79 */ /***/ (function(module, exports) { -module.exports = __webpack_require__(122); +module.exports = __webpack_require__(121); /***/ }), /* 80 */, @@ -47791,19 +47620,19 @@ module.exports = process && support(supportLevel); /******/ ]); /***/ }), -/* 368 */ +/* 367 */ /***/ (function(module, exports) { module.exports = require("buffer"); /***/ }), -/* 369 */ +/* 368 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BootstrapCacheFile", function() { return BootstrapCacheFile; }); -/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(134); +/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(133); /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__); @@ -47883,24 +47712,24 @@ class BootstrapCacheFile { } /***/ }), -/* 370 */ +/* 369 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateDependencies", function() { return validateDependencies; }); -/* harmony import */ var _yarnpkg_lockfile__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(367); +/* harmony import */ var _yarnpkg_lockfile__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(366); /* harmony import */ var _yarnpkg_lockfile__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_yarnpkg_lockfile__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var dedent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2); /* harmony import */ var dedent__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(dedent__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(113); +/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(112); /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _fs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(131); -/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(246); -/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(251); -/* harmony import */ var _projects_tree__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(371); +/* harmony import */ var _fs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(130); +/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(245); +/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(250); +/* harmony import */ var _projects_tree__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(370); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -48081,14 +47910,14 @@ function getDevOnlyProductionDepsTree(kbn, projectName) { } /***/ }), -/* 371 */ +/* 370 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renderProjectsTree", function() { return renderProjectsTree; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "treeToString", function() { return treeToString; }); -/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(113); +/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(112); /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__); @@ -48223,27 +48052,27 @@ function addProjectToTree(tree, pathParts, project) { } /***/ }), -/* 372 */ +/* 371 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _yarn_integrity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(373); +/* harmony import */ var _yarn_integrity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(372); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "yarnIntegrityFileExists", function() { return _yarn_integrity__WEBPACK_IMPORTED_MODULE_0__["yarnIntegrityFileExists"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ensureYarnIntegrityFileExists", function() { return _yarn_integrity__WEBPACK_IMPORTED_MODULE_0__["ensureYarnIntegrityFileExists"]; }); -/* harmony import */ var _get_cache_folders__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(374); +/* harmony import */ var _get_cache_folders__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(373); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getBazelDiskCacheFolder", function() { return _get_cache_folders__WEBPACK_IMPORTED_MODULE_1__["getBazelDiskCacheFolder"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getBazelRepositoryCacheFolder", function() { return _get_cache_folders__WEBPACK_IMPORTED_MODULE_1__["getBazelRepositoryCacheFolder"]; }); -/* harmony import */ var _install_tools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(375); +/* harmony import */ var _install_tools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(374); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isBazelBinAvailable", function() { return _install_tools__WEBPACK_IMPORTED_MODULE_2__["isBazelBinAvailable"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "installBazelTools", function() { return _install_tools__WEBPACK_IMPORTED_MODULE_2__["installBazelTools"]; }); -/* harmony import */ var _run__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(376); +/* harmony import */ var _run__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(375); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "runBazel", function() { return _run__WEBPACK_IMPORTED_MODULE_3__["runBazel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "runIBazel", function() { return _run__WEBPACK_IMPORTED_MODULE_3__["runIBazel"]; }); @@ -48261,7 +48090,7 @@ __webpack_require__.r(__webpack_exports__); /***/ }), -/* 373 */ +/* 372 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -48270,7 +48099,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ensureYarnIntegrityFileExists", function() { return ensureYarnIntegrityFileExists; }); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(131); +/* harmony import */ var _fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(130); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -48308,7 +48137,7 @@ async function ensureYarnIntegrityFileExists(nodeModulesPath) { } /***/ }), -/* 374 */ +/* 373 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -48317,7 +48146,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBazelRepositoryCacheFolder", function() { return getBazelRepositoryCacheFolder; }); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _child_process__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(319); +/* harmony import */ var _child_process__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(318); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -48345,7 +48174,7 @@ async function getBazelRepositoryCacheFolder() { } /***/ }), -/* 375 */ +/* 374 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -48356,9 +48185,9 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var dedent__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dedent__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _child_process__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(319); -/* harmony import */ var _fs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(131); -/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(246); +/* harmony import */ var _child_process__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(318); +/* harmony import */ var _fs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(130); +/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(245); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -48464,22 +48293,22 @@ async function installBazelTools(repoRootPath) { } /***/ }), -/* 376 */ +/* 375 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "runBazel", function() { return runBazel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "runIBazel", function() { return runIBazel; }); -/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(113); +/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(112); /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8); -/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(377); -/* harmony import */ var _kbn_dev_utils_stdio__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(475); +/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(376); +/* harmony import */ var _kbn_dev_utils_stdio__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(474); /* harmony import */ var _kbn_dev_utils_stdio__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_kbn_dev_utils_stdio__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _child_process__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(319); -/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(246); -/* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(249); +/* harmony import */ var _child_process__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(318); +/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(245); +/* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(248); function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -48541,320 +48370,320 @@ async function runIBazel(bazelArgs, offline = false, runOpts = {}) { } /***/ }), -/* 377 */ +/* 376 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _internal_operators_audit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(378); +/* harmony import */ var _internal_operators_audit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(377); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "audit", function() { return _internal_operators_audit__WEBPACK_IMPORTED_MODULE_0__["audit"]; }); -/* harmony import */ var _internal_operators_auditTime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(379); +/* harmony import */ var _internal_operators_auditTime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(378); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "auditTime", function() { return _internal_operators_auditTime__WEBPACK_IMPORTED_MODULE_1__["auditTime"]; }); -/* harmony import */ var _internal_operators_buffer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(380); +/* harmony import */ var _internal_operators_buffer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(379); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buffer", function() { return _internal_operators_buffer__WEBPACK_IMPORTED_MODULE_2__["buffer"]; }); -/* harmony import */ var _internal_operators_bufferCount__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(381); +/* harmony import */ var _internal_operators_bufferCount__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(380); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bufferCount", function() { return _internal_operators_bufferCount__WEBPACK_IMPORTED_MODULE_3__["bufferCount"]; }); -/* harmony import */ var _internal_operators_bufferTime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(382); +/* harmony import */ var _internal_operators_bufferTime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(381); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bufferTime", function() { return _internal_operators_bufferTime__WEBPACK_IMPORTED_MODULE_4__["bufferTime"]; }); -/* harmony import */ var _internal_operators_bufferToggle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(383); +/* harmony import */ var _internal_operators_bufferToggle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(382); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bufferToggle", function() { return _internal_operators_bufferToggle__WEBPACK_IMPORTED_MODULE_5__["bufferToggle"]; }); -/* harmony import */ var _internal_operators_bufferWhen__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(384); +/* harmony import */ var _internal_operators_bufferWhen__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(383); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bufferWhen", function() { return _internal_operators_bufferWhen__WEBPACK_IMPORTED_MODULE_6__["bufferWhen"]; }); -/* harmony import */ var _internal_operators_catchError__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(385); +/* harmony import */ var _internal_operators_catchError__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(384); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "catchError", function() { return _internal_operators_catchError__WEBPACK_IMPORTED_MODULE_7__["catchError"]; }); -/* harmony import */ var _internal_operators_combineAll__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(386); +/* harmony import */ var _internal_operators_combineAll__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(385); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "combineAll", function() { return _internal_operators_combineAll__WEBPACK_IMPORTED_MODULE_8__["combineAll"]; }); -/* harmony import */ var _internal_operators_combineLatest__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(387); +/* harmony import */ var _internal_operators_combineLatest__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(386); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "combineLatest", function() { return _internal_operators_combineLatest__WEBPACK_IMPORTED_MODULE_9__["combineLatest"]; }); -/* harmony import */ var _internal_operators_concat__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(388); +/* harmony import */ var _internal_operators_concat__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(387); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "concat", function() { return _internal_operators_concat__WEBPACK_IMPORTED_MODULE_10__["concat"]; }); -/* harmony import */ var _internal_operators_concatAll__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(80); +/* harmony import */ var _internal_operators_concatAll__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(79); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "concatAll", function() { return _internal_operators_concatAll__WEBPACK_IMPORTED_MODULE_11__["concatAll"]; }); -/* harmony import */ var _internal_operators_concatMap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(389); +/* harmony import */ var _internal_operators_concatMap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(388); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "concatMap", function() { return _internal_operators_concatMap__WEBPACK_IMPORTED_MODULE_12__["concatMap"]; }); -/* harmony import */ var _internal_operators_concatMapTo__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(390); +/* harmony import */ var _internal_operators_concatMapTo__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(389); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "concatMapTo", function() { return _internal_operators_concatMapTo__WEBPACK_IMPORTED_MODULE_13__["concatMapTo"]; }); -/* harmony import */ var _internal_operators_count__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(391); +/* harmony import */ var _internal_operators_count__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(390); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "count", function() { return _internal_operators_count__WEBPACK_IMPORTED_MODULE_14__["count"]; }); -/* harmony import */ var _internal_operators_debounce__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(392); +/* harmony import */ var _internal_operators_debounce__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(391); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "debounce", function() { return _internal_operators_debounce__WEBPACK_IMPORTED_MODULE_15__["debounce"]; }); -/* harmony import */ var _internal_operators_debounceTime__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(393); +/* harmony import */ var _internal_operators_debounceTime__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(392); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "debounceTime", function() { return _internal_operators_debounceTime__WEBPACK_IMPORTED_MODULE_16__["debounceTime"]; }); -/* harmony import */ var _internal_operators_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(394); +/* harmony import */ var _internal_operators_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(393); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultIfEmpty", function() { return _internal_operators_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_17__["defaultIfEmpty"]; }); -/* harmony import */ var _internal_operators_delay__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(395); +/* harmony import */ var _internal_operators_delay__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(394); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "delay", function() { return _internal_operators_delay__WEBPACK_IMPORTED_MODULE_18__["delay"]; }); -/* harmony import */ var _internal_operators_delayWhen__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(397); +/* harmony import */ var _internal_operators_delayWhen__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(396); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "delayWhen", function() { return _internal_operators_delayWhen__WEBPACK_IMPORTED_MODULE_19__["delayWhen"]; }); -/* harmony import */ var _internal_operators_dematerialize__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(398); +/* harmony import */ var _internal_operators_dematerialize__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(397); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dematerialize", function() { return _internal_operators_dematerialize__WEBPACK_IMPORTED_MODULE_20__["dematerialize"]; }); -/* harmony import */ var _internal_operators_distinct__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(399); +/* harmony import */ var _internal_operators_distinct__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(398); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "distinct", function() { return _internal_operators_distinct__WEBPACK_IMPORTED_MODULE_21__["distinct"]; }); -/* harmony import */ var _internal_operators_distinctUntilChanged__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(400); +/* harmony import */ var _internal_operators_distinctUntilChanged__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(399); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "distinctUntilChanged", function() { return _internal_operators_distinctUntilChanged__WEBPACK_IMPORTED_MODULE_22__["distinctUntilChanged"]; }); -/* harmony import */ var _internal_operators_distinctUntilKeyChanged__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(401); +/* harmony import */ var _internal_operators_distinctUntilKeyChanged__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(400); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "distinctUntilKeyChanged", function() { return _internal_operators_distinctUntilKeyChanged__WEBPACK_IMPORTED_MODULE_23__["distinctUntilKeyChanged"]; }); -/* harmony import */ var _internal_operators_elementAt__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(402); +/* harmony import */ var _internal_operators_elementAt__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(401); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "elementAt", function() { return _internal_operators_elementAt__WEBPACK_IMPORTED_MODULE_24__["elementAt"]; }); -/* harmony import */ var _internal_operators_endWith__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(405); +/* harmony import */ var _internal_operators_endWith__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(404); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "endWith", function() { return _internal_operators_endWith__WEBPACK_IMPORTED_MODULE_25__["endWith"]; }); -/* harmony import */ var _internal_operators_every__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(406); +/* harmony import */ var _internal_operators_every__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(405); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "every", function() { return _internal_operators_every__WEBPACK_IMPORTED_MODULE_26__["every"]; }); -/* harmony import */ var _internal_operators_exhaust__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(407); +/* harmony import */ var _internal_operators_exhaust__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(406); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "exhaust", function() { return _internal_operators_exhaust__WEBPACK_IMPORTED_MODULE_27__["exhaust"]; }); -/* harmony import */ var _internal_operators_exhaustMap__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(408); +/* harmony import */ var _internal_operators_exhaustMap__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(407); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "exhaustMap", function() { return _internal_operators_exhaustMap__WEBPACK_IMPORTED_MODULE_28__["exhaustMap"]; }); -/* harmony import */ var _internal_operators_expand__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(409); +/* harmony import */ var _internal_operators_expand__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(408); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "expand", function() { return _internal_operators_expand__WEBPACK_IMPORTED_MODULE_29__["expand"]; }); -/* harmony import */ var _internal_operators_filter__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(105); +/* harmony import */ var _internal_operators_filter__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(104); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "filter", function() { return _internal_operators_filter__WEBPACK_IMPORTED_MODULE_30__["filter"]; }); -/* harmony import */ var _internal_operators_finalize__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(410); +/* harmony import */ var _internal_operators_finalize__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(409); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "finalize", function() { return _internal_operators_finalize__WEBPACK_IMPORTED_MODULE_31__["finalize"]; }); -/* harmony import */ var _internal_operators_find__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(411); +/* harmony import */ var _internal_operators_find__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(410); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "find", function() { return _internal_operators_find__WEBPACK_IMPORTED_MODULE_32__["find"]; }); -/* harmony import */ var _internal_operators_findIndex__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(412); +/* harmony import */ var _internal_operators_findIndex__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(411); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findIndex", function() { return _internal_operators_findIndex__WEBPACK_IMPORTED_MODULE_33__["findIndex"]; }); -/* harmony import */ var _internal_operators_first__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(413); +/* harmony import */ var _internal_operators_first__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(412); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "first", function() { return _internal_operators_first__WEBPACK_IMPORTED_MODULE_34__["first"]; }); -/* harmony import */ var _internal_operators_groupBy__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(31); +/* harmony import */ var _internal_operators_groupBy__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(30); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "groupBy", function() { return _internal_operators_groupBy__WEBPACK_IMPORTED_MODULE_35__["groupBy"]; }); -/* harmony import */ var _internal_operators_ignoreElements__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(414); +/* harmony import */ var _internal_operators_ignoreElements__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(413); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ignoreElements", function() { return _internal_operators_ignoreElements__WEBPACK_IMPORTED_MODULE_36__["ignoreElements"]; }); -/* harmony import */ var _internal_operators_isEmpty__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(415); +/* harmony import */ var _internal_operators_isEmpty__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(414); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isEmpty", function() { return _internal_operators_isEmpty__WEBPACK_IMPORTED_MODULE_37__["isEmpty"]; }); -/* harmony import */ var _internal_operators_last__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(416); +/* harmony import */ var _internal_operators_last__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(415); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "last", function() { return _internal_operators_last__WEBPACK_IMPORTED_MODULE_38__["last"]; }); -/* harmony import */ var _internal_operators_map__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(66); +/* harmony import */ var _internal_operators_map__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(65); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "map", function() { return _internal_operators_map__WEBPACK_IMPORTED_MODULE_39__["map"]; }); -/* harmony import */ var _internal_operators_mapTo__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(418); +/* harmony import */ var _internal_operators_mapTo__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(417); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mapTo", function() { return _internal_operators_mapTo__WEBPACK_IMPORTED_MODULE_40__["mapTo"]; }); -/* harmony import */ var _internal_operators_materialize__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(419); +/* harmony import */ var _internal_operators_materialize__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(418); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "materialize", function() { return _internal_operators_materialize__WEBPACK_IMPORTED_MODULE_41__["materialize"]; }); -/* harmony import */ var _internal_operators_max__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(420); +/* harmony import */ var _internal_operators_max__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(419); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "max", function() { return _internal_operators_max__WEBPACK_IMPORTED_MODULE_42__["max"]; }); -/* harmony import */ var _internal_operators_merge__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(423); +/* harmony import */ var _internal_operators_merge__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(422); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return _internal_operators_merge__WEBPACK_IMPORTED_MODULE_43__["merge"]; }); -/* harmony import */ var _internal_operators_mergeAll__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(81); +/* harmony import */ var _internal_operators_mergeAll__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(80); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeAll", function() { return _internal_operators_mergeAll__WEBPACK_IMPORTED_MODULE_44__["mergeAll"]; }); -/* harmony import */ var _internal_operators_mergeMap__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(82); +/* harmony import */ var _internal_operators_mergeMap__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(81); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeMap", function() { return _internal_operators_mergeMap__WEBPACK_IMPORTED_MODULE_45__["mergeMap"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "flatMap", function() { return _internal_operators_mergeMap__WEBPACK_IMPORTED_MODULE_45__["flatMap"]; }); -/* harmony import */ var _internal_operators_mergeMapTo__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(424); +/* harmony import */ var _internal_operators_mergeMapTo__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(423); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeMapTo", function() { return _internal_operators_mergeMapTo__WEBPACK_IMPORTED_MODULE_46__["mergeMapTo"]; }); -/* harmony import */ var _internal_operators_mergeScan__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(425); +/* harmony import */ var _internal_operators_mergeScan__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(424); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeScan", function() { return _internal_operators_mergeScan__WEBPACK_IMPORTED_MODULE_47__["mergeScan"]; }); -/* harmony import */ var _internal_operators_min__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(426); +/* harmony import */ var _internal_operators_min__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(425); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "min", function() { return _internal_operators_min__WEBPACK_IMPORTED_MODULE_48__["min"]; }); -/* harmony import */ var _internal_operators_multicast__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(427); +/* harmony import */ var _internal_operators_multicast__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(426); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "multicast", function() { return _internal_operators_multicast__WEBPACK_IMPORTED_MODULE_49__["multicast"]; }); -/* harmony import */ var _internal_operators_observeOn__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(41); +/* harmony import */ var _internal_operators_observeOn__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(40); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "observeOn", function() { return _internal_operators_observeOn__WEBPACK_IMPORTED_MODULE_50__["observeOn"]; }); -/* harmony import */ var _internal_operators_onErrorResumeNext__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(428); +/* harmony import */ var _internal_operators_onErrorResumeNext__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(427); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "onErrorResumeNext", function() { return _internal_operators_onErrorResumeNext__WEBPACK_IMPORTED_MODULE_51__["onErrorResumeNext"]; }); -/* harmony import */ var _internal_operators_pairwise__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(429); +/* harmony import */ var _internal_operators_pairwise__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(428); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pairwise", function() { return _internal_operators_pairwise__WEBPACK_IMPORTED_MODULE_52__["pairwise"]; }); -/* harmony import */ var _internal_operators_partition__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(430); +/* harmony import */ var _internal_operators_partition__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(429); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "partition", function() { return _internal_operators_partition__WEBPACK_IMPORTED_MODULE_53__["partition"]; }); -/* harmony import */ var _internal_operators_pluck__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(431); +/* harmony import */ var _internal_operators_pluck__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(430); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pluck", function() { return _internal_operators_pluck__WEBPACK_IMPORTED_MODULE_54__["pluck"]; }); -/* harmony import */ var _internal_operators_publish__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(432); +/* harmony import */ var _internal_operators_publish__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(431); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "publish", function() { return _internal_operators_publish__WEBPACK_IMPORTED_MODULE_55__["publish"]; }); -/* harmony import */ var _internal_operators_publishBehavior__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(433); +/* harmony import */ var _internal_operators_publishBehavior__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(432); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "publishBehavior", function() { return _internal_operators_publishBehavior__WEBPACK_IMPORTED_MODULE_56__["publishBehavior"]; }); -/* harmony import */ var _internal_operators_publishLast__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(434); +/* harmony import */ var _internal_operators_publishLast__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(433); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "publishLast", function() { return _internal_operators_publishLast__WEBPACK_IMPORTED_MODULE_57__["publishLast"]; }); -/* harmony import */ var _internal_operators_publishReplay__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(435); +/* harmony import */ var _internal_operators_publishReplay__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(434); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "publishReplay", function() { return _internal_operators_publishReplay__WEBPACK_IMPORTED_MODULE_58__["publishReplay"]; }); -/* harmony import */ var _internal_operators_race__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(436); +/* harmony import */ var _internal_operators_race__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(435); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "race", function() { return _internal_operators_race__WEBPACK_IMPORTED_MODULE_59__["race"]; }); -/* harmony import */ var _internal_operators_reduce__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(421); +/* harmony import */ var _internal_operators_reduce__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(420); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "reduce", function() { return _internal_operators_reduce__WEBPACK_IMPORTED_MODULE_60__["reduce"]; }); -/* harmony import */ var _internal_operators_repeat__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(437); +/* harmony import */ var _internal_operators_repeat__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(436); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "repeat", function() { return _internal_operators_repeat__WEBPACK_IMPORTED_MODULE_61__["repeat"]; }); -/* harmony import */ var _internal_operators_repeatWhen__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(438); +/* harmony import */ var _internal_operators_repeatWhen__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(437); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "repeatWhen", function() { return _internal_operators_repeatWhen__WEBPACK_IMPORTED_MODULE_62__["repeatWhen"]; }); -/* harmony import */ var _internal_operators_retry__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(439); +/* harmony import */ var _internal_operators_retry__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(438); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "retry", function() { return _internal_operators_retry__WEBPACK_IMPORTED_MODULE_63__["retry"]; }); -/* harmony import */ var _internal_operators_retryWhen__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(440); +/* harmony import */ var _internal_operators_retryWhen__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(439); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "retryWhen", function() { return _internal_operators_retryWhen__WEBPACK_IMPORTED_MODULE_64__["retryWhen"]; }); -/* harmony import */ var _internal_operators_refCount__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(30); +/* harmony import */ var _internal_operators_refCount__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(29); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "refCount", function() { return _internal_operators_refCount__WEBPACK_IMPORTED_MODULE_65__["refCount"]; }); -/* harmony import */ var _internal_operators_sample__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(441); +/* harmony import */ var _internal_operators_sample__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(440); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sample", function() { return _internal_operators_sample__WEBPACK_IMPORTED_MODULE_66__["sample"]; }); -/* harmony import */ var _internal_operators_sampleTime__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(442); +/* harmony import */ var _internal_operators_sampleTime__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(441); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sampleTime", function() { return _internal_operators_sampleTime__WEBPACK_IMPORTED_MODULE_67__["sampleTime"]; }); -/* harmony import */ var _internal_operators_scan__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(422); +/* harmony import */ var _internal_operators_scan__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(421); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scan", function() { return _internal_operators_scan__WEBPACK_IMPORTED_MODULE_68__["scan"]; }); -/* harmony import */ var _internal_operators_sequenceEqual__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(443); +/* harmony import */ var _internal_operators_sequenceEqual__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(442); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sequenceEqual", function() { return _internal_operators_sequenceEqual__WEBPACK_IMPORTED_MODULE_69__["sequenceEqual"]; }); -/* harmony import */ var _internal_operators_share__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(444); +/* harmony import */ var _internal_operators_share__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(443); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "share", function() { return _internal_operators_share__WEBPACK_IMPORTED_MODULE_70__["share"]; }); -/* harmony import */ var _internal_operators_shareReplay__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(445); +/* harmony import */ var _internal_operators_shareReplay__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(444); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "shareReplay", function() { return _internal_operators_shareReplay__WEBPACK_IMPORTED_MODULE_71__["shareReplay"]; }); -/* harmony import */ var _internal_operators_single__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(446); +/* harmony import */ var _internal_operators_single__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(445); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "single", function() { return _internal_operators_single__WEBPACK_IMPORTED_MODULE_72__["single"]; }); -/* harmony import */ var _internal_operators_skip__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(447); +/* harmony import */ var _internal_operators_skip__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(446); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "skip", function() { return _internal_operators_skip__WEBPACK_IMPORTED_MODULE_73__["skip"]; }); -/* harmony import */ var _internal_operators_skipLast__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(448); +/* harmony import */ var _internal_operators_skipLast__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(447); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "skipLast", function() { return _internal_operators_skipLast__WEBPACK_IMPORTED_MODULE_74__["skipLast"]; }); -/* harmony import */ var _internal_operators_skipUntil__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(449); +/* harmony import */ var _internal_operators_skipUntil__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(448); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "skipUntil", function() { return _internal_operators_skipUntil__WEBPACK_IMPORTED_MODULE_75__["skipUntil"]; }); -/* harmony import */ var _internal_operators_skipWhile__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(450); +/* harmony import */ var _internal_operators_skipWhile__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(449); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "skipWhile", function() { return _internal_operators_skipWhile__WEBPACK_IMPORTED_MODULE_76__["skipWhile"]; }); -/* harmony import */ var _internal_operators_startWith__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(451); +/* harmony import */ var _internal_operators_startWith__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(450); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "startWith", function() { return _internal_operators_startWith__WEBPACK_IMPORTED_MODULE_77__["startWith"]; }); -/* harmony import */ var _internal_operators_subscribeOn__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(452); +/* harmony import */ var _internal_operators_subscribeOn__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(451); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "subscribeOn", function() { return _internal_operators_subscribeOn__WEBPACK_IMPORTED_MODULE_78__["subscribeOn"]; }); -/* harmony import */ var _internal_operators_switchAll__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(454); +/* harmony import */ var _internal_operators_switchAll__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(453); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "switchAll", function() { return _internal_operators_switchAll__WEBPACK_IMPORTED_MODULE_79__["switchAll"]; }); -/* harmony import */ var _internal_operators_switchMap__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(455); +/* harmony import */ var _internal_operators_switchMap__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(454); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "switchMap", function() { return _internal_operators_switchMap__WEBPACK_IMPORTED_MODULE_80__["switchMap"]; }); -/* harmony import */ var _internal_operators_switchMapTo__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(456); +/* harmony import */ var _internal_operators_switchMapTo__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(455); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "switchMapTo", function() { return _internal_operators_switchMapTo__WEBPACK_IMPORTED_MODULE_81__["switchMapTo"]; }); -/* harmony import */ var _internal_operators_take__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(404); +/* harmony import */ var _internal_operators_take__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(403); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "take", function() { return _internal_operators_take__WEBPACK_IMPORTED_MODULE_82__["take"]; }); -/* harmony import */ var _internal_operators_takeLast__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(417); +/* harmony import */ var _internal_operators_takeLast__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(416); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "takeLast", function() { return _internal_operators_takeLast__WEBPACK_IMPORTED_MODULE_83__["takeLast"]; }); -/* harmony import */ var _internal_operators_takeUntil__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(457); +/* harmony import */ var _internal_operators_takeUntil__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(456); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "takeUntil", function() { return _internal_operators_takeUntil__WEBPACK_IMPORTED_MODULE_84__["takeUntil"]; }); -/* harmony import */ var _internal_operators_takeWhile__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(458); +/* harmony import */ var _internal_operators_takeWhile__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(457); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "takeWhile", function() { return _internal_operators_takeWhile__WEBPACK_IMPORTED_MODULE_85__["takeWhile"]; }); -/* harmony import */ var _internal_operators_tap__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(459); +/* harmony import */ var _internal_operators_tap__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(458); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tap", function() { return _internal_operators_tap__WEBPACK_IMPORTED_MODULE_86__["tap"]; }); -/* harmony import */ var _internal_operators_throttle__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(460); +/* harmony import */ var _internal_operators_throttle__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(459); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "throttle", function() { return _internal_operators_throttle__WEBPACK_IMPORTED_MODULE_87__["throttle"]; }); -/* harmony import */ var _internal_operators_throttleTime__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(461); +/* harmony import */ var _internal_operators_throttleTime__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(460); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "throttleTime", function() { return _internal_operators_throttleTime__WEBPACK_IMPORTED_MODULE_88__["throttleTime"]; }); -/* harmony import */ var _internal_operators_throwIfEmpty__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(403); +/* harmony import */ var _internal_operators_throwIfEmpty__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(402); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "throwIfEmpty", function() { return _internal_operators_throwIfEmpty__WEBPACK_IMPORTED_MODULE_89__["throwIfEmpty"]; }); -/* harmony import */ var _internal_operators_timeInterval__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(462); +/* harmony import */ var _internal_operators_timeInterval__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(461); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeInterval", function() { return _internal_operators_timeInterval__WEBPACK_IMPORTED_MODULE_90__["timeInterval"]; }); -/* harmony import */ var _internal_operators_timeout__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(463); +/* harmony import */ var _internal_operators_timeout__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(462); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeout", function() { return _internal_operators_timeout__WEBPACK_IMPORTED_MODULE_91__["timeout"]; }); -/* harmony import */ var _internal_operators_timeoutWith__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(464); +/* harmony import */ var _internal_operators_timeoutWith__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(463); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeoutWith", function() { return _internal_operators_timeoutWith__WEBPACK_IMPORTED_MODULE_92__["timeoutWith"]; }); -/* harmony import */ var _internal_operators_timestamp__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(465); +/* harmony import */ var _internal_operators_timestamp__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(464); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timestamp", function() { return _internal_operators_timestamp__WEBPACK_IMPORTED_MODULE_93__["timestamp"]; }); -/* harmony import */ var _internal_operators_toArray__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(466); +/* harmony import */ var _internal_operators_toArray__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(465); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "toArray", function() { return _internal_operators_toArray__WEBPACK_IMPORTED_MODULE_94__["toArray"]; }); -/* harmony import */ var _internal_operators_window__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(467); +/* harmony import */ var _internal_operators_window__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(466); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "window", function() { return _internal_operators_window__WEBPACK_IMPORTED_MODULE_95__["window"]; }); -/* harmony import */ var _internal_operators_windowCount__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(468); +/* harmony import */ var _internal_operators_windowCount__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(467); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "windowCount", function() { return _internal_operators_windowCount__WEBPACK_IMPORTED_MODULE_96__["windowCount"]; }); -/* harmony import */ var _internal_operators_windowTime__WEBPACK_IMPORTED_MODULE_97__ = __webpack_require__(469); +/* harmony import */ var _internal_operators_windowTime__WEBPACK_IMPORTED_MODULE_97__ = __webpack_require__(468); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "windowTime", function() { return _internal_operators_windowTime__WEBPACK_IMPORTED_MODULE_97__["windowTime"]; }); -/* harmony import */ var _internal_operators_windowToggle__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(470); +/* harmony import */ var _internal_operators_windowToggle__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(469); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "windowToggle", function() { return _internal_operators_windowToggle__WEBPACK_IMPORTED_MODULE_98__["windowToggle"]; }); -/* harmony import */ var _internal_operators_windowWhen__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(471); +/* harmony import */ var _internal_operators_windowWhen__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(470); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "windowWhen", function() { return _internal_operators_windowWhen__WEBPACK_IMPORTED_MODULE_99__["windowWhen"]; }); -/* harmony import */ var _internal_operators_withLatestFrom__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(472); +/* harmony import */ var _internal_operators_withLatestFrom__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(471); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withLatestFrom", function() { return _internal_operators_withLatestFrom__WEBPACK_IMPORTED_MODULE_100__["withLatestFrom"]; }); -/* harmony import */ var _internal_operators_zip__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(473); +/* harmony import */ var _internal_operators_zip__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(472); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return _internal_operators_zip__WEBPACK_IMPORTED_MODULE_101__["zip"]; }); -/* harmony import */ var _internal_operators_zipAll__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(474); +/* harmony import */ var _internal_operators_zipAll__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(473); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zipAll", function() { return _internal_operators_zipAll__WEBPACK_IMPORTED_MODULE_102__["zipAll"]; }); /** PURE_IMPORTS_START PURE_IMPORTS_END */ @@ -48965,14 +48794,14 @@ __webpack_require__.r(__webpack_exports__); /***/ }), -/* 378 */ +/* 377 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "audit", function() { return audit; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */ @@ -49044,15 +48873,15 @@ var AuditSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 379 */ +/* 378 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "auditTime", function() { return auditTime; }); -/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55); -/* harmony import */ var _audit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(378); -/* harmony import */ var _observable_timer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(108); +/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(54); +/* harmony import */ var _audit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(377); +/* harmony import */ var _observable_timer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(107); /** PURE_IMPORTS_START _scheduler_async,_audit,_observable_timer PURE_IMPORTS_END */ @@ -49067,14 +48896,14 @@ function auditTime(duration, scheduler) { /***/ }), -/* 380 */ +/* 379 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buffer", function() { return buffer; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */ @@ -49114,14 +48943,14 @@ var BufferSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 381 */ +/* 380 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bufferCount", function() { return bufferCount; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -49215,16 +49044,16 @@ var BufferSkipCountSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 382 */ +/* 381 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bufferTime", function() { return bufferTime; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11); -/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10); +/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(44); /** PURE_IMPORTS_START tslib,_scheduler_async,_Subscriber,_util_isScheduler PURE_IMPORTS_END */ @@ -49376,16 +49205,16 @@ function dispatchBufferClose(arg) { /***/ }), -/* 383 */ +/* 382 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bufferToggle", function() { return bufferToggle; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17); -/* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70); -/* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(69); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); +/* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69); +/* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(68); /** PURE_IMPORTS_START tslib,_Subscription,_util_subscribeToResult,_OuterSubscriber PURE_IMPORTS_END */ @@ -49495,15 +49324,15 @@ var BufferToggleSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 384 */ +/* 383 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bufferWhen", function() { return bufferWhen; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_Subscription,_innerSubscribe PURE_IMPORTS_END */ @@ -49588,14 +49417,14 @@ var BufferWhenSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 385 */ +/* 384 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "catchError", function() { return catchError; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */ @@ -49648,13 +49477,13 @@ var CatchSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 386 */ +/* 385 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "combineAll", function() { return combineAll; }); -/* harmony import */ var _observable_combineLatest__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68); +/* harmony import */ var _observable_combineLatest__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67); /** PURE_IMPORTS_START _observable_combineLatest PURE_IMPORTS_END */ function combineAll(project) { @@ -49664,15 +49493,15 @@ function combineAll(project) { /***/ }), -/* 387 */ +/* 386 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "combineLatest", function() { return combineLatest; }); -/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18); -/* harmony import */ var _observable_combineLatest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(68); -/* harmony import */ var _observable_from__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(83); +/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); +/* harmony import */ var _observable_combineLatest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67); +/* harmony import */ var _observable_from__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82); /** PURE_IMPORTS_START _util_isArray,_observable_combineLatest,_observable_from PURE_IMPORTS_END */ @@ -49696,13 +49525,13 @@ function combineLatest() { /***/ }), -/* 388 */ +/* 387 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concat", function() { return concat; }); -/* harmony import */ var _observable_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79); +/* harmony import */ var _observable_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(78); /** PURE_IMPORTS_START _observable_concat PURE_IMPORTS_END */ function concat() { @@ -49716,13 +49545,13 @@ function concat() { /***/ }), -/* 389 */ +/* 388 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concatMap", function() { return concatMap; }); -/* harmony import */ var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82); +/* harmony import */ var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81); /** PURE_IMPORTS_START _mergeMap PURE_IMPORTS_END */ function concatMap(project, resultSelector) { @@ -49732,13 +49561,13 @@ function concatMap(project, resultSelector) { /***/ }), -/* 390 */ +/* 389 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concatMapTo", function() { return concatMapTo; }); -/* harmony import */ var _concatMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(389); +/* harmony import */ var _concatMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(388); /** PURE_IMPORTS_START _concatMap PURE_IMPORTS_END */ function concatMapTo(innerObservable, resultSelector) { @@ -49748,14 +49577,14 @@ function concatMapTo(innerObservable, resultSelector) { /***/ }), -/* 391 */ +/* 390 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "count", function() { return count; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -49813,14 +49642,14 @@ var CountSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 392 */ +/* 391 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "debounce", function() { return debounce; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */ @@ -49898,15 +49727,15 @@ var DebounceSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 393 */ +/* 392 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "debounceTime", function() { return debounceTime; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); -/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); +/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(54); /** PURE_IMPORTS_START tslib,_Subscriber,_scheduler_async PURE_IMPORTS_END */ @@ -49974,14 +49803,14 @@ function dispatchNext(subscriber) { /***/ }), -/* 394 */ +/* 393 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultIfEmpty", function() { return defaultIfEmpty; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -50024,17 +49853,17 @@ var DefaultIfEmptySubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 395 */ +/* 394 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "delay", function() { return delay; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55); -/* harmony import */ var _util_isDate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(396); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(11); -/* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(42); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54); +/* harmony import */ var _util_isDate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(395); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10); +/* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41); /** PURE_IMPORTS_START tslib,_scheduler_async,_util_isDate,_Subscriber,_Notification PURE_IMPORTS_END */ @@ -50131,7 +49960,7 @@ var DelayMessage = /*@__PURE__*/ (function () { /***/ }), -/* 396 */ +/* 395 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -50145,17 +49974,17 @@ function isDate(value) { /***/ }), -/* 397 */ +/* 396 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "delayWhen", function() { return delayWhen; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9); -/* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(69); -/* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(70); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8); +/* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(68); +/* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(69); /** PURE_IMPORTS_START tslib,_Subscriber,_Observable,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -50291,14 +50120,14 @@ var SubscriptionDelaySubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 398 */ +/* 397 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dematerialize", function() { return dematerialize; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -50329,15 +50158,15 @@ var DeMaterializeSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 399 */ +/* 398 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "distinct", function() { return distinct; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DistinctSubscriber", function() { return DistinctSubscriber; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */ @@ -50405,14 +50234,14 @@ var DistinctSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 400 */ +/* 399 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "distinctUntilChanged", function() { return distinctUntilChanged; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -50476,13 +50305,13 @@ var DistinctUntilChangedSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 401 */ +/* 400 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "distinctUntilKeyChanged", function() { return distinctUntilKeyChanged; }); -/* harmony import */ var _distinctUntilChanged__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(400); +/* harmony import */ var _distinctUntilChanged__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(399); /** PURE_IMPORTS_START _distinctUntilChanged PURE_IMPORTS_END */ function distinctUntilKeyChanged(key, compare) { @@ -50492,17 +50321,17 @@ function distinctUntilKeyChanged(key, compare) { /***/ }), -/* 402 */ +/* 401 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elementAt", function() { return elementAt; }); -/* harmony import */ var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(62); -/* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(105); -/* harmony import */ var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(403); -/* harmony import */ var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(394); -/* harmony import */ var _take__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(404); +/* harmony import */ var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61); +/* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(104); +/* harmony import */ var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(402); +/* harmony import */ var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(393); +/* harmony import */ var _take__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(403); /** PURE_IMPORTS_START _util_ArgumentOutOfRangeError,_filter,_throwIfEmpty,_defaultIfEmpty,_take PURE_IMPORTS_END */ @@ -50524,15 +50353,15 @@ function elementAt(index, defaultValue) { /***/ }), -/* 403 */ +/* 402 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "throwIfEmpty", function() { return throwIfEmpty; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _util_EmptyError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(63); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _util_EmptyError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_util_EmptyError,_Subscriber PURE_IMPORTS_END */ @@ -50590,16 +50419,16 @@ function defaultErrorFactory() { /***/ }), -/* 404 */ +/* 403 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "take", function() { return take; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); -/* harmony import */ var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(62); -/* harmony import */ var _observable_empty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(43); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); +/* harmony import */ var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(61); +/* harmony import */ var _observable_empty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(42); /** PURE_IMPORTS_START tslib,_Subscriber,_util_ArgumentOutOfRangeError,_observable_empty PURE_IMPORTS_END */ @@ -50652,14 +50481,14 @@ var TakeSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 405 */ +/* 404 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "endWith", function() { return endWith; }); -/* harmony import */ var _observable_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79); -/* harmony import */ var _observable_of__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44); +/* harmony import */ var _observable_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(78); +/* harmony import */ var _observable_of__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(43); /** PURE_IMPORTS_START _observable_concat,_observable_of PURE_IMPORTS_END */ @@ -50674,14 +50503,14 @@ function endWith() { /***/ }), -/* 406 */ +/* 405 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "every", function() { return every; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -50736,14 +50565,14 @@ var EverySubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 407 */ +/* 406 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "exhaust", function() { return exhaust; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */ @@ -50790,16 +50619,16 @@ var SwitchFirstSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 408 */ +/* 407 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "exhaustMap", function() { return exhaustMap; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66); -/* harmony import */ var _observable_from__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(83); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65); +/* harmony import */ var _observable_from__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_map,_observable_from,_innerSubscribe PURE_IMPORTS_END */ @@ -50884,7 +50713,7 @@ var ExhaustMapSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 409 */ +/* 408 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -50892,8 +50721,8 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "expand", function() { return expand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExpandOperator", function() { return ExpandOperator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExpandSubscriber", function() { return ExpandSubscriber; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */ @@ -50996,15 +50825,15 @@ var ExpandSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 410 */ +/* 409 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "finalize", function() { return finalize; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); -/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); +/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16); /** PURE_IMPORTS_START tslib,_Subscriber,_Subscription PURE_IMPORTS_END */ @@ -51034,7 +50863,7 @@ var FinallySubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 411 */ +/* 410 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -51042,8 +50871,8 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "find", function() { return find; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FindValueOperator", function() { return FindValueOperator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FindValueSubscriber", function() { return FindValueSubscriber; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -51106,13 +50935,13 @@ var FindValueSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 412 */ +/* 411 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findIndex", function() { return findIndex; }); -/* harmony import */ var _operators_find__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(411); +/* harmony import */ var _operators_find__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(410); /** PURE_IMPORTS_START _operators_find PURE_IMPORTS_END */ function findIndex(predicate, thisArg) { @@ -51122,18 +50951,18 @@ function findIndex(predicate, thisArg) { /***/ }), -/* 413 */ +/* 412 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "first", function() { return first; }); -/* harmony import */ var _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(63); -/* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(105); -/* harmony import */ var _take__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(404); -/* harmony import */ var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(394); -/* harmony import */ var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(403); -/* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25); +/* harmony import */ var _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(62); +/* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(104); +/* harmony import */ var _take__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(403); +/* harmony import */ var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(393); +/* harmony import */ var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(402); +/* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24); /** PURE_IMPORTS_START _util_EmptyError,_filter,_take,_defaultIfEmpty,_throwIfEmpty,_util_identity PURE_IMPORTS_END */ @@ -51149,14 +50978,14 @@ function first(predicate, defaultValue) { /***/ }), -/* 414 */ +/* 413 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ignoreElements", function() { return ignoreElements; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -51186,14 +51015,14 @@ var IgnoreElementsSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 415 */ +/* 414 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEmpty", function() { return isEmpty; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -51230,18 +51059,18 @@ var IsEmptySubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 416 */ +/* 415 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "last", function() { return last; }); -/* harmony import */ var _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(63); -/* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(105); -/* harmony import */ var _takeLast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(417); -/* harmony import */ var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(403); -/* harmony import */ var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(394); -/* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25); +/* harmony import */ var _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(62); +/* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(104); +/* harmony import */ var _takeLast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(416); +/* harmony import */ var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(402); +/* harmony import */ var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(393); +/* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24); /** PURE_IMPORTS_START _util_EmptyError,_filter,_takeLast,_throwIfEmpty,_defaultIfEmpty,_util_identity PURE_IMPORTS_END */ @@ -51257,16 +51086,16 @@ function last(predicate, defaultValue) { /***/ }), -/* 417 */ +/* 416 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "takeLast", function() { return takeLast; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); -/* harmony import */ var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(62); -/* harmony import */ var _observable_empty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(43); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); +/* harmony import */ var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(61); +/* harmony import */ var _observable_empty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(42); /** PURE_IMPORTS_START tslib,_Subscriber,_util_ArgumentOutOfRangeError,_observable_empty PURE_IMPORTS_END */ @@ -51334,14 +51163,14 @@ var TakeLastSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 418 */ +/* 417 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapTo", function() { return mapTo; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -51373,15 +51202,15 @@ var MapToSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 419 */ +/* 418 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "materialize", function() { return materialize; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); -/* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); +/* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41); /** PURE_IMPORTS_START tslib,_Subscriber,_Notification PURE_IMPORTS_END */ @@ -51423,13 +51252,13 @@ var MaterializeSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 420 */ +/* 419 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "max", function() { return max; }); -/* harmony import */ var _reduce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(421); +/* harmony import */ var _reduce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(420); /** PURE_IMPORTS_START _reduce PURE_IMPORTS_END */ function max(comparer) { @@ -51442,16 +51271,16 @@ function max(comparer) { /***/ }), -/* 421 */ +/* 420 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reduce", function() { return reduce; }); -/* harmony import */ var _scan__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(422); -/* harmony import */ var _takeLast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(417); -/* harmony import */ var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(394); -/* harmony import */ var _util_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24); +/* harmony import */ var _scan__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(421); +/* harmony import */ var _takeLast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(416); +/* harmony import */ var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(393); +/* harmony import */ var _util_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23); /** PURE_IMPORTS_START _scan,_takeLast,_defaultIfEmpty,_util_pipe PURE_IMPORTS_END */ @@ -51471,14 +51300,14 @@ function reduce(accumulator, seed) { /***/ }), -/* 422 */ +/* 421 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scan", function() { return scan; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -51553,13 +51382,13 @@ var ScanSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 423 */ +/* 422 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return merge; }); -/* harmony import */ var _observable_merge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(99); +/* harmony import */ var _observable_merge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(98); /** PURE_IMPORTS_START _observable_merge PURE_IMPORTS_END */ function merge() { @@ -51573,13 +51402,13 @@ function merge() { /***/ }), -/* 424 */ +/* 423 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeMapTo", function() { return mergeMapTo; }); -/* harmony import */ var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82); +/* harmony import */ var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81); /** PURE_IMPORTS_START _mergeMap PURE_IMPORTS_END */ function mergeMapTo(innerObservable, resultSelector, concurrent) { @@ -51598,7 +51427,7 @@ function mergeMapTo(innerObservable, resultSelector, concurrent) { /***/ }), -/* 425 */ +/* 424 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -51606,8 +51435,8 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeScan", function() { return mergeScan; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeScanOperator", function() { return MergeScanOperator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeScanSubscriber", function() { return MergeScanSubscriber; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */ @@ -51707,13 +51536,13 @@ var MergeScanSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 426 */ +/* 425 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "min", function() { return min; }); -/* harmony import */ var _reduce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(421); +/* harmony import */ var _reduce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(420); /** PURE_IMPORTS_START _reduce PURE_IMPORTS_END */ function min(comparer) { @@ -51726,14 +51555,14 @@ function min(comparer) { /***/ }), -/* 427 */ +/* 426 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "multicast", function() { return multicast; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MulticastOperator", function() { return MulticastOperator; }); -/* harmony import */ var _observable_ConnectableObservable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26); +/* harmony import */ var _observable_ConnectableObservable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25); /** PURE_IMPORTS_START _observable_ConnectableObservable PURE_IMPORTS_END */ function multicast(subjectOrSubjectFactory, selector) { @@ -51775,17 +51604,17 @@ var MulticastOperator = /*@__PURE__*/ (function () { /***/ }), -/* 428 */ +/* 427 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onErrorResumeNext", function() { return onErrorResumeNext; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onErrorResumeNextStatic", function() { return onErrorResumeNextStatic; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _observable_from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(83); -/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _observable_from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82); +/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_observable_from,_util_isArray,_innerSubscribe PURE_IMPORTS_END */ @@ -51865,14 +51694,14 @@ var OnErrorResumeNextSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 429 */ +/* 428 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pairwise", function() { return pairwise; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -51913,14 +51742,14 @@ var PairwiseSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 430 */ +/* 429 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "partition", function() { return partition; }); -/* harmony import */ var _util_not__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(104); -/* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(105); +/* harmony import */ var _util_not__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(103); +/* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(104); /** PURE_IMPORTS_START _util_not,_filter PURE_IMPORTS_END */ @@ -51936,13 +51765,13 @@ function partition(predicate, thisArg) { /***/ }), -/* 431 */ +/* 430 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pluck", function() { return pluck; }); -/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66); +/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65); /** PURE_IMPORTS_START _map PURE_IMPORTS_END */ function pluck() { @@ -51976,14 +51805,14 @@ function plucker(props, length) { /***/ }), -/* 432 */ +/* 431 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "publish", function() { return publish; }); -/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27); -/* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(427); +/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26); +/* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(426); /** PURE_IMPORTS_START _Subject,_multicast PURE_IMPORTS_END */ @@ -51996,14 +51825,14 @@ function publish(selector) { /***/ }), -/* 433 */ +/* 432 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "publishBehavior", function() { return publishBehavior; }); -/* harmony import */ var _BehaviorSubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(32); -/* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(427); +/* harmony import */ var _BehaviorSubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31); +/* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(426); /** PURE_IMPORTS_START _BehaviorSubject,_multicast PURE_IMPORTS_END */ @@ -52014,14 +51843,14 @@ function publishBehavior(value) { /***/ }), -/* 434 */ +/* 433 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "publishLast", function() { return publishLast; }); -/* harmony import */ var _AsyncSubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50); -/* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(427); +/* harmony import */ var _AsyncSubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49); +/* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(426); /** PURE_IMPORTS_START _AsyncSubject,_multicast PURE_IMPORTS_END */ @@ -52032,14 +51861,14 @@ function publishLast() { /***/ }), -/* 435 */ +/* 434 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "publishReplay", function() { return publishReplay; }); -/* harmony import */ var _ReplaySubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33); -/* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(427); +/* harmony import */ var _ReplaySubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(32); +/* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(426); /** PURE_IMPORTS_START _ReplaySubject,_multicast PURE_IMPORTS_END */ @@ -52055,14 +51884,14 @@ function publishReplay(bufferSize, windowTime, selectorOrScheduler, scheduler) { /***/ }), -/* 436 */ +/* 435 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "race", function() { return race; }); -/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18); -/* harmony import */ var _observable_race__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(106); +/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); +/* harmony import */ var _observable_race__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(105); /** PURE_IMPORTS_START _util_isArray,_observable_race PURE_IMPORTS_END */ @@ -52082,15 +51911,15 @@ function race() { /***/ }), -/* 437 */ +/* 436 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "repeat", function() { return repeat; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); -/* harmony import */ var _observable_empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(43); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); +/* harmony import */ var _observable_empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42); /** PURE_IMPORTS_START tslib,_Subscriber,_observable_empty PURE_IMPORTS_END */ @@ -52147,15 +51976,15 @@ var RepeatSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 438 */ +/* 437 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "repeatWhen", function() { return repeatWhen; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_Subject,_innerSubscribe PURE_IMPORTS_END */ @@ -52241,14 +52070,14 @@ var RepeatWhenSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 439 */ +/* 438 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retry", function() { return retry; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -52294,15 +52123,15 @@ var RetrySubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 440 */ +/* 439 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retryWhen", function() { return retryWhen; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_Subject,_innerSubscribe PURE_IMPORTS_END */ @@ -52380,14 +52209,14 @@ var RetryWhenSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 441 */ +/* 440 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sample", function() { return sample; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */ @@ -52435,15 +52264,15 @@ var SampleSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 442 */ +/* 441 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sampleTime", function() { return sampleTime; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); -/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); +/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(54); /** PURE_IMPORTS_START tslib,_Subscriber,_scheduler_async PURE_IMPORTS_END */ @@ -52495,7 +52324,7 @@ function dispatchNotification(state) { /***/ }), -/* 443 */ +/* 442 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -52503,8 +52332,8 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sequenceEqual", function() { return sequenceEqual; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SequenceEqualOperator", function() { return SequenceEqualOperator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SequenceEqualSubscriber", function() { return SequenceEqualSubscriber; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -52618,15 +52447,15 @@ var SequenceEqualCompareToSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 444 */ +/* 443 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "share", function() { return share; }); -/* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(427); -/* harmony import */ var _refCount__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30); -/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27); +/* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(426); +/* harmony import */ var _refCount__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29); +/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26); /** PURE_IMPORTS_START _multicast,_refCount,_Subject PURE_IMPORTS_END */ @@ -52641,13 +52470,13 @@ function share() { /***/ }), -/* 445 */ +/* 444 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shareReplay", function() { return shareReplay; }); -/* harmony import */ var _ReplaySubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33); +/* harmony import */ var _ReplaySubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(32); /** PURE_IMPORTS_START _ReplaySubject PURE_IMPORTS_END */ function shareReplay(configOrBufferSize, windowTime, scheduler) { @@ -52710,15 +52539,15 @@ function shareReplayOperator(_a) { /***/ }), -/* 446 */ +/* 445 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "single", function() { return single; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); -/* harmony import */ var _util_EmptyError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(63); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); +/* harmony import */ var _util_EmptyError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(62); /** PURE_IMPORTS_START tslib,_Subscriber,_util_EmptyError PURE_IMPORTS_END */ @@ -52790,14 +52619,14 @@ var SingleSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 447 */ +/* 446 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "skip", function() { return skip; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -52832,15 +52661,15 @@ var SkipSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 448 */ +/* 447 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "skipLast", function() { return skipLast; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); -/* harmony import */ var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(62); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); +/* harmony import */ var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(61); /** PURE_IMPORTS_START tslib,_Subscriber,_util_ArgumentOutOfRangeError PURE_IMPORTS_END */ @@ -52894,14 +52723,14 @@ var SkipLastSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 449 */ +/* 448 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "skipUntil", function() { return skipUntil; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */ @@ -52951,14 +52780,14 @@ var SkipUntilSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 450 */ +/* 449 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "skipWhile", function() { return skipWhile; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -53007,14 +52836,14 @@ var SkipWhileSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 451 */ +/* 450 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "startWith", function() { return startWith; }); -/* harmony import */ var _observable_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79); -/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45); +/* harmony import */ var _observable_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(78); +/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44); /** PURE_IMPORTS_START _observable_concat,_util_isScheduler PURE_IMPORTS_END */ @@ -53036,13 +52865,13 @@ function startWith() { /***/ }), -/* 452 */ +/* 451 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subscribeOn", function() { return subscribeOn; }); -/* harmony import */ var _observable_SubscribeOnObservable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(453); +/* harmony import */ var _observable_SubscribeOnObservable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(452); /** PURE_IMPORTS_START _observable_SubscribeOnObservable PURE_IMPORTS_END */ function subscribeOn(scheduler, delay) { @@ -53067,16 +52896,16 @@ var SubscribeOnOperator = /*@__PURE__*/ (function () { /***/ }), -/* 453 */ +/* 452 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscribeOnObservable", function() { return SubscribeOnObservable; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); -/* harmony import */ var _scheduler_asap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51); -/* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8); +/* harmony import */ var _scheduler_asap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50); +/* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97); /** PURE_IMPORTS_START tslib,_Observable,_scheduler_asap,_util_isNumeric PURE_IMPORTS_END */ @@ -53131,14 +52960,14 @@ var SubscribeOnObservable = /*@__PURE__*/ (function (_super) { /***/ }), -/* 454 */ +/* 453 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "switchAll", function() { return switchAll; }); -/* harmony import */ var _switchMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(455); -/* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25); +/* harmony import */ var _switchMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(454); +/* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24); /** PURE_IMPORTS_START _switchMap,_util_identity PURE_IMPORTS_END */ @@ -53149,16 +52978,16 @@ function switchAll() { /***/ }), -/* 455 */ +/* 454 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "switchMap", function() { return switchMap; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66); -/* harmony import */ var _observable_from__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(83); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65); +/* harmony import */ var _observable_from__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_map,_observable_from,_innerSubscribe PURE_IMPORTS_END */ @@ -53237,13 +53066,13 @@ var SwitchMapSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 456 */ +/* 455 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "switchMapTo", function() { return switchMapTo; }); -/* harmony import */ var _switchMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(455); +/* harmony import */ var _switchMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(454); /** PURE_IMPORTS_START _switchMap PURE_IMPORTS_END */ function switchMapTo(innerObservable, resultSelector) { @@ -53253,14 +53082,14 @@ function switchMapTo(innerObservable, resultSelector) { /***/ }), -/* 457 */ +/* 456 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "takeUntil", function() { return takeUntil; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */ @@ -53301,14 +53130,14 @@ var TakeUntilSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 458 */ +/* 457 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "takeWhile", function() { return takeWhile; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -53369,16 +53198,16 @@ var TakeWhileSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 459 */ +/* 458 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tap", function() { return tap; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); -/* harmony import */ var _util_noop__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(60); -/* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); +/* harmony import */ var _util_noop__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(59); +/* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12); /** PURE_IMPORTS_START tslib,_Subscriber,_util_noop,_util_isFunction PURE_IMPORTS_END */ @@ -53457,15 +53286,15 @@ var TapSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 460 */ +/* 459 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultThrottleConfig", function() { return defaultThrottleConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "throttle", function() { return throttle; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */ @@ -53559,16 +53388,16 @@ var ThrottleSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 461 */ +/* 460 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "throttleTime", function() { return throttleTime; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); -/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55); -/* harmony import */ var _throttle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(460); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); +/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(54); +/* harmony import */ var _throttle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(459); /** PURE_IMPORTS_START tslib,_Subscriber,_scheduler_async,_throttle PURE_IMPORTS_END */ @@ -53657,17 +53486,17 @@ function dispatchNext(arg) { /***/ }), -/* 462 */ +/* 461 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timeInterval", function() { return timeInterval; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimeInterval", function() { return TimeInterval; }); -/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55); -/* harmony import */ var _scan__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(422); -/* harmony import */ var _observable_defer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91); -/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66); +/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(54); +/* harmony import */ var _scan__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(421); +/* harmony import */ var _observable_defer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(90); +/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65); /** PURE_IMPORTS_START _scheduler_async,_scan,_observable_defer,_map PURE_IMPORTS_END */ @@ -53701,16 +53530,16 @@ var TimeInterval = /*@__PURE__*/ (function () { /***/ }), -/* 463 */ +/* 462 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timeout", function() { return timeout; }); -/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55); -/* harmony import */ var _util_TimeoutError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64); -/* harmony import */ var _timeoutWith__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(464); -/* harmony import */ var _observable_throwError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(49); +/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(54); +/* harmony import */ var _util_TimeoutError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(63); +/* harmony import */ var _timeoutWith__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(463); +/* harmony import */ var _observable_throwError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48); /** PURE_IMPORTS_START _scheduler_async,_util_TimeoutError,_timeoutWith,_observable_throwError PURE_IMPORTS_END */ @@ -53726,16 +53555,16 @@ function timeout(due, scheduler) { /***/ }), -/* 464 */ +/* 463 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timeoutWith", function() { return timeoutWith; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55); -/* harmony import */ var _util_isDate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(396); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54); +/* harmony import */ var _util_isDate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(395); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_scheduler_async,_util_isDate,_innerSubscribe PURE_IMPORTS_END */ @@ -53805,15 +53634,15 @@ var TimeoutWithSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 465 */ +/* 464 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timestamp", function() { return timestamp; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Timestamp", function() { return Timestamp; }); -/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55); -/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66); +/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(54); +/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65); /** PURE_IMPORTS_START _scheduler_async,_map PURE_IMPORTS_END */ @@ -53835,13 +53664,13 @@ var Timestamp = /*@__PURE__*/ (function () { /***/ }), -/* 466 */ +/* 465 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toArray", function() { return toArray; }); -/* harmony import */ var _reduce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(421); +/* harmony import */ var _reduce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(420); /** PURE_IMPORTS_START _reduce PURE_IMPORTS_END */ function toArrayReducer(arr, item, index) { @@ -53858,15 +53687,15 @@ function toArray() { /***/ }), -/* 467 */ +/* 466 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "window", function() { return window; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27); -/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(90); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26); +/* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(89); /** PURE_IMPORTS_START tslib,_Subject,_innerSubscribe PURE_IMPORTS_END */ @@ -53936,15 +53765,15 @@ var WindowSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 468 */ +/* 467 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "windowCount", function() { return windowCount; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11); -/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); +/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26); /** PURE_IMPORTS_START tslib,_Subscriber,_Subject PURE_IMPORTS_END */ @@ -54026,18 +53855,18 @@ var WindowCountSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 469 */ +/* 468 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "windowTime", function() { return windowTime; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27); -/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(11); -/* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(98); -/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(45); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26); +/* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(54); +/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10); +/* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(97); +/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(44); /** PURE_IMPORTS_START tslib,_Subject,_scheduler_async,_Subscriber,_util_isNumeric,_util_isScheduler PURE_IMPORTS_END */ @@ -54196,17 +54025,17 @@ function dispatchWindowClose(state) { /***/ }), -/* 470 */ +/* 469 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "windowToggle", function() { return windowToggle; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27); -/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17); -/* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(69); -/* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(70); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26); +/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16); +/* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(68); +/* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(69); /** PURE_IMPORTS_START tslib,_Subject,_Subscription,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -54339,16 +54168,16 @@ var WindowToggleSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 471 */ +/* 470 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "windowWhen", function() { return windowWhen; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27); -/* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69); -/* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26); +/* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(68); +/* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(69); /** PURE_IMPORTS_START tslib,_Subject,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -54436,15 +54265,15 @@ var WindowSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 472 */ +/* 471 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withLatestFrom", function() { return withLatestFrom; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(69); -/* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11); +/* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(68); +/* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69); /** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -54531,13 +54360,13 @@ var WithLatestFromSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 473 */ +/* 472 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return zip; }); -/* harmony import */ var _observable_zip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(110); +/* harmony import */ var _observable_zip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(109); /** PURE_IMPORTS_START _observable_zip PURE_IMPORTS_END */ function zip() { @@ -54553,13 +54382,13 @@ function zip() { /***/ }), -/* 474 */ +/* 473 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zipAll", function() { return zipAll; }); -/* harmony import */ var _observable_zip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(110); +/* harmony import */ var _observable_zip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(109); /** PURE_IMPORTS_START _observable_zip PURE_IMPORTS_END */ function zipAll(project) { @@ -54569,30 +54398,64 @@ function zipAll(project) { /***/ }), -/* 475 */ +/* 474 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -/* - * 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. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = __webpack_require__(7); -tslib_1.__exportStar(__webpack_require__(476), exports); -tslib_1.__exportStar(__webpack_require__(477), exports); -//# sourceMappingURL=index.js.map + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _observe_lines = __webpack_require__(475); + +Object.keys(_observe_lines).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _observe_lines[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _observe_lines[key]; + } + }); +}); + +var _observe_readable = __webpack_require__(476); + +Object.keys(_observe_readable).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _observe_readable[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _observe_readable[key]; + } + }); +}); /***/ }), -/* 476 */ +/* 475 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.observeLines = observeLines; + +var Rx = _interopRequireWildcard(__webpack_require__(7)); + +var _operators = __webpack_require__(376); + +var _observe_readable = __webpack_require__(476); + +function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } + +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -54600,13 +54463,8 @@ tslib_1.__exportStar(__webpack_require__(477), exports); * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.observeLines = void 0; -const tslib_1 = __webpack_require__(7); -const Rx = tslib_1.__importStar(__webpack_require__(8)); -const operators_1 = __webpack_require__(377); const SEP = /\r?\n/; -const observe_readable_1 = __webpack_require__(477); + /** * Creates an Observable from a Readable Stream that: * - splits data from `readable` into lines @@ -54617,41 +54475,63 @@ const observe_readable_1 = __webpack_require__(477); * @return {Rx.Observable} */ function observeLines(readable) { - const done$ = observe_readable_1.observeReadable(readable).pipe(operators_1.share()); - const scan$ = Rx.fromEvent(readable, 'data').pipe(operators_1.scan(({ buffer }, chunk) => { - buffer += chunk; - const lines = []; - while (true) { - const match = buffer.match(SEP); - if (!match || match.index === undefined) { - break; - } - lines.push(buffer.slice(0, match.index)); - buffer = buffer.slice(match.index + match[0].length); - } - return { buffer, lines }; - }, { buffer: '' }), - // stop if done completes or errors - operators_1.takeUntil(done$.pipe(operators_1.materialize())), operators_1.share()); - return Rx.merge( - // use done$ to provide completion/errors - done$, - // merge in the "lines" from each step - scan$.pipe(operators_1.mergeMap(({ lines }) => lines || [])), - // inject the "unsplit" data at the end - scan$.pipe(operators_1.last(), operators_1.mergeMap(({ buffer }) => (buffer ? [buffer] : [])), - // if there were no lines, last() will error, so catch and complete - operators_1.catchError(() => Rx.empty()))); + const done$ = (0, _observe_readable.observeReadable)(readable).pipe((0, _operators.share)()); + const scan$ = Rx.fromEvent(readable, 'data').pipe((0, _operators.scan)(({ + buffer + }, chunk) => { + buffer += chunk; + const lines = []; + + while (true) { + const match = buffer.match(SEP); + + if (!match || match.index === undefined) { + break; + } + + lines.push(buffer.slice(0, match.index)); + buffer = buffer.slice(match.index + match[0].length); + } + + return { + buffer, + lines + }; + }, { + buffer: '' + }), // stop if done completes or errors + (0, _operators.takeUntil)(done$.pipe((0, _operators.materialize)())), (0, _operators.share)()); + return Rx.merge( // use done$ to provide completion/errors + done$, // merge in the "lines" from each step + scan$.pipe((0, _operators.mergeMap)(({ + lines + }) => lines || [])), // inject the "unsplit" data at the end + scan$.pipe((0, _operators.last)(), (0, _operators.mergeMap)(({ + buffer + }) => buffer ? [buffer] : []), // if there were no lines, last() will error, so catch and complete + (0, _operators.catchError)(() => Rx.empty()))); } -exports.observeLines = observeLines; -//# sourceMappingURL=observe_lines.js.map /***/ }), -/* 477 */ +/* 476 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.observeReadable = observeReadable; + +var Rx = _interopRequireWildcard(__webpack_require__(7)); + +var _operators = __webpack_require__(376); + +function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } + +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -54659,30 +54539,24 @@ exports.observeLines = observeLines; * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.observeReadable = void 0; -const tslib_1 = __webpack_require__(7); -const Rx = tslib_1.__importStar(__webpack_require__(8)); -const operators_1 = __webpack_require__(377); + /** * Produces an Observable from a ReadableSteam that: * - completes on the first "end" event * - fails on the first "error" event */ function observeReadable(readable) { - return Rx.race(Rx.fromEvent(readable, 'end').pipe(operators_1.first(), operators_1.ignoreElements()), Rx.fromEvent(readable, 'error').pipe(operators_1.first(), operators_1.mergeMap((err) => Rx.throwError(err)))); + return Rx.race(Rx.fromEvent(readable, 'end').pipe((0, _operators.first)(), (0, _operators.ignoreElements)()), Rx.fromEvent(readable, 'error').pipe((0, _operators.first)(), (0, _operators.mergeMap)(err => Rx.throwError(err)))); } -exports.observeReadable = observeReadable; -//# sourceMappingURL=observe_readable.js.map /***/ }), -/* 478 */ +/* 477 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BuildCommand", function() { return BuildCommand; }); -/* harmony import */ var _utils_bazel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(372); +/* harmony import */ var _utils_bazel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(371); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -54706,7 +54580,7 @@ const BuildCommand = { }; /***/ }), -/* 479 */ +/* 478 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -54714,15 +54588,15 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CleanCommand", function() { return CleanCommand; }); /* harmony import */ var dedent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2); /* harmony import */ var dedent__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dedent__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var del__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(143); +/* harmony import */ var del__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(142); /* harmony import */ var del__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(del__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var ora__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(480); +/* harmony import */ var ora__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(479); /* harmony import */ var ora__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(ora__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _utils_bazel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(372); -/* harmony import */ var _utils_fs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(131); -/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(246); +/* harmony import */ var _utils_bazel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(371); +/* harmony import */ var _utils_fs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(130); +/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(245); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -54819,20 +54693,20 @@ const CleanCommand = { }; /***/ }), -/* 480 */ +/* 479 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const readline = __webpack_require__(481); -const chalk = __webpack_require__(482); -const cliCursor = __webpack_require__(489); -const cliSpinners = __webpack_require__(491); -const logSymbols = __webpack_require__(493); -const stripAnsi = __webpack_require__(503); -const wcwidth = __webpack_require__(505); -const isInteractive = __webpack_require__(509); -const MuteStream = __webpack_require__(510); +const readline = __webpack_require__(480); +const chalk = __webpack_require__(481); +const cliCursor = __webpack_require__(488); +const cliSpinners = __webpack_require__(490); +const logSymbols = __webpack_require__(492); +const stripAnsi = __webpack_require__(502); +const wcwidth = __webpack_require__(504); +const isInteractive = __webpack_require__(508); +const MuteStream = __webpack_require__(509); const TEXT = Symbol('text'); const PREFIX_TEXT = Symbol('prefixText'); @@ -55185,23 +55059,23 @@ module.exports.promise = (action, options) => { /***/ }), -/* 481 */ +/* 480 */ /***/ (function(module, exports) { module.exports = require("readline"); /***/ }), -/* 482 */ +/* 481 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const ansiStyles = __webpack_require__(483); -const {stdout: stdoutColor, stderr: stderrColor} = __webpack_require__(120); +const ansiStyles = __webpack_require__(482); +const {stdout: stdoutColor, stderr: stderrColor} = __webpack_require__(119); const { stringReplaceAll, stringEncaseCRLFWithFirstIndex -} = __webpack_require__(487); +} = __webpack_require__(486); // `supportsColor.level` → `ansiStyles.color[name]` mapping const levelMapping = [ @@ -55402,7 +55276,7 @@ const chalkTag = (chalk, ...strings) => { } if (template === undefined) { - template = __webpack_require__(488); + template = __webpack_require__(487); } return template(chalk, parts.join('')); @@ -55431,7 +55305,7 @@ module.exports = chalk; /***/ }), -/* 483 */ +/* 482 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55477,7 +55351,7 @@ const setLazyProperty = (object, property, get) => { let colorConvert; const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => { if (colorConvert === undefined) { - colorConvert = __webpack_require__(484); + colorConvert = __webpack_require__(483); } const offset = isBackground ? 10 : 0; @@ -55599,14 +55473,14 @@ Object.defineProperty(module, 'exports', { get: assembleStyles }); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(115)(module))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(114)(module))) /***/ }), -/* 484 */ +/* 483 */ /***/ (function(module, exports, __webpack_require__) { -const conversions = __webpack_require__(485); -const route = __webpack_require__(486); +const conversions = __webpack_require__(484); +const route = __webpack_require__(485); const convert = {}; @@ -55689,12 +55563,12 @@ module.exports = convert; /***/ }), -/* 485 */ +/* 484 */ /***/ (function(module, exports, __webpack_require__) { /* MIT license */ /* eslint-disable no-mixed-operators */ -const cssKeywords = __webpack_require__(118); +const cssKeywords = __webpack_require__(117); // NOTE: conversions should only return primitive values (i.e. arrays, or // values that give correct `typeof` results). @@ -56534,10 +56408,10 @@ convert.rgb.gray = function (rgb) { /***/ }), -/* 486 */ +/* 485 */ /***/ (function(module, exports, __webpack_require__) { -const conversions = __webpack_require__(485); +const conversions = __webpack_require__(484); /* This function routes a model to all other models. @@ -56637,7 +56511,7 @@ module.exports = function (fromModel) { /***/ }), -/* 487 */ +/* 486 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56683,7 +56557,7 @@ module.exports = { /***/ }), -/* 488 */ +/* 487 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56824,12 +56698,12 @@ module.exports = (chalk, temporary) => { /***/ }), -/* 489 */ +/* 488 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const restoreCursor = __webpack_require__(490); +const restoreCursor = __webpack_require__(489); let isHidden = false; @@ -56866,13 +56740,13 @@ exports.toggle = (force, writableStream) => { /***/ }), -/* 490 */ +/* 489 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const onetime = __webpack_require__(338); -const signalExit = __webpack_require__(309); +const onetime = __webpack_require__(337); +const signalExit = __webpack_require__(308); module.exports = onetime(() => { signalExit(() => { @@ -56882,13 +56756,13 @@ module.exports = onetime(() => { /***/ }), -/* 491 */ +/* 490 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const spinners = Object.assign({}, __webpack_require__(492)); +const spinners = Object.assign({}, __webpack_require__(491)); const spinnersList = Object.keys(spinners); @@ -56906,18 +56780,18 @@ module.exports.default = spinners; /***/ }), -/* 492 */ +/* 491 */ /***/ (function(module) { module.exports = JSON.parse("{\"dots\":{\"interval\":80,\"frames\":[\"⠋\",\"⠙\",\"⠹\",\"⠸\",\"⠼\",\"⠴\",\"⠦\",\"⠧\",\"⠇\",\"⠏\"]},\"dots2\":{\"interval\":80,\"frames\":[\"⣾\",\"⣽\",\"⣻\",\"⢿\",\"⡿\",\"⣟\",\"⣯\",\"⣷\"]},\"dots3\":{\"interval\":80,\"frames\":[\"⠋\",\"⠙\",\"⠚\",\"⠞\",\"⠖\",\"⠦\",\"⠴\",\"⠲\",\"⠳\",\"⠓\"]},\"dots4\":{\"interval\":80,\"frames\":[\"⠄\",\"⠆\",\"⠇\",\"⠋\",\"⠙\",\"⠸\",\"⠰\",\"⠠\",\"⠰\",\"⠸\",\"⠙\",\"⠋\",\"⠇\",\"⠆\"]},\"dots5\":{\"interval\":80,\"frames\":[\"⠋\",\"⠙\",\"⠚\",\"⠒\",\"⠂\",\"⠂\",\"⠒\",\"⠲\",\"⠴\",\"⠦\",\"⠖\",\"⠒\",\"⠐\",\"⠐\",\"⠒\",\"⠓\",\"⠋\"]},\"dots6\":{\"interval\":80,\"frames\":[\"⠁\",\"⠉\",\"⠙\",\"⠚\",\"⠒\",\"⠂\",\"⠂\",\"⠒\",\"⠲\",\"⠴\",\"⠤\",\"⠄\",\"⠄\",\"⠤\",\"⠴\",\"⠲\",\"⠒\",\"⠂\",\"⠂\",\"⠒\",\"⠚\",\"⠙\",\"⠉\",\"⠁\"]},\"dots7\":{\"interval\":80,\"frames\":[\"⠈\",\"⠉\",\"⠋\",\"⠓\",\"⠒\",\"⠐\",\"⠐\",\"⠒\",\"⠖\",\"⠦\",\"⠤\",\"⠠\",\"⠠\",\"⠤\",\"⠦\",\"⠖\",\"⠒\",\"⠐\",\"⠐\",\"⠒\",\"⠓\",\"⠋\",\"⠉\",\"⠈\"]},\"dots8\":{\"interval\":80,\"frames\":[\"⠁\",\"⠁\",\"⠉\",\"⠙\",\"⠚\",\"⠒\",\"⠂\",\"⠂\",\"⠒\",\"⠲\",\"⠴\",\"⠤\",\"⠄\",\"⠄\",\"⠤\",\"⠠\",\"⠠\",\"⠤\",\"⠦\",\"⠖\",\"⠒\",\"⠐\",\"⠐\",\"⠒\",\"⠓\",\"⠋\",\"⠉\",\"⠈\",\"⠈\"]},\"dots9\":{\"interval\":80,\"frames\":[\"⢹\",\"⢺\",\"⢼\",\"⣸\",\"⣇\",\"⡧\",\"⡗\",\"⡏\"]},\"dots10\":{\"interval\":80,\"frames\":[\"⢄\",\"⢂\",\"⢁\",\"⡁\",\"⡈\",\"⡐\",\"⡠\"]},\"dots11\":{\"interval\":100,\"frames\":[\"⠁\",\"⠂\",\"⠄\",\"⡀\",\"⢀\",\"⠠\",\"⠐\",\"⠈\"]},\"dots12\":{\"interval\":80,\"frames\":[\"⢀⠀\",\"⡀⠀\",\"⠄⠀\",\"⢂⠀\",\"⡂⠀\",\"⠅⠀\",\"⢃⠀\",\"⡃⠀\",\"⠍⠀\",\"⢋⠀\",\"⡋⠀\",\"⠍⠁\",\"⢋⠁\",\"⡋⠁\",\"⠍⠉\",\"⠋⠉\",\"⠋⠉\",\"⠉⠙\",\"⠉⠙\",\"⠉⠩\",\"⠈⢙\",\"⠈⡙\",\"⢈⠩\",\"⡀⢙\",\"⠄⡙\",\"⢂⠩\",\"⡂⢘\",\"⠅⡘\",\"⢃⠨\",\"⡃⢐\",\"⠍⡐\",\"⢋⠠\",\"⡋⢀\",\"⠍⡁\",\"⢋⠁\",\"⡋⠁\",\"⠍⠉\",\"⠋⠉\",\"⠋⠉\",\"⠉⠙\",\"⠉⠙\",\"⠉⠩\",\"⠈⢙\",\"⠈⡙\",\"⠈⠩\",\"⠀⢙\",\"⠀⡙\",\"⠀⠩\",\"⠀⢘\",\"⠀⡘\",\"⠀⠨\",\"⠀⢐\",\"⠀⡐\",\"⠀⠠\",\"⠀⢀\",\"⠀⡀\"]},\"dots8Bit\":{\"interval\":80,\"frames\":[\"⠀\",\"⠁\",\"⠂\",\"⠃\",\"⠄\",\"⠅\",\"⠆\",\"⠇\",\"⡀\",\"⡁\",\"⡂\",\"⡃\",\"⡄\",\"⡅\",\"⡆\",\"⡇\",\"⠈\",\"⠉\",\"⠊\",\"⠋\",\"⠌\",\"⠍\",\"⠎\",\"⠏\",\"⡈\",\"⡉\",\"⡊\",\"⡋\",\"⡌\",\"⡍\",\"⡎\",\"⡏\",\"⠐\",\"⠑\",\"⠒\",\"⠓\",\"⠔\",\"⠕\",\"⠖\",\"⠗\",\"⡐\",\"⡑\",\"⡒\",\"⡓\",\"⡔\",\"⡕\",\"⡖\",\"⡗\",\"⠘\",\"⠙\",\"⠚\",\"⠛\",\"⠜\",\"⠝\",\"⠞\",\"⠟\",\"⡘\",\"⡙\",\"⡚\",\"⡛\",\"⡜\",\"⡝\",\"⡞\",\"⡟\",\"⠠\",\"⠡\",\"⠢\",\"⠣\",\"⠤\",\"⠥\",\"⠦\",\"⠧\",\"⡠\",\"⡡\",\"⡢\",\"⡣\",\"⡤\",\"⡥\",\"⡦\",\"⡧\",\"⠨\",\"⠩\",\"⠪\",\"⠫\",\"⠬\",\"⠭\",\"⠮\",\"⠯\",\"⡨\",\"⡩\",\"⡪\",\"⡫\",\"⡬\",\"⡭\",\"⡮\",\"⡯\",\"⠰\",\"⠱\",\"⠲\",\"⠳\",\"⠴\",\"⠵\",\"⠶\",\"⠷\",\"⡰\",\"⡱\",\"⡲\",\"⡳\",\"⡴\",\"⡵\",\"⡶\",\"⡷\",\"⠸\",\"⠹\",\"⠺\",\"⠻\",\"⠼\",\"⠽\",\"⠾\",\"⠿\",\"⡸\",\"⡹\",\"⡺\",\"⡻\",\"⡼\",\"⡽\",\"⡾\",\"⡿\",\"⢀\",\"⢁\",\"⢂\",\"⢃\",\"⢄\",\"⢅\",\"⢆\",\"⢇\",\"⣀\",\"⣁\",\"⣂\",\"⣃\",\"⣄\",\"⣅\",\"⣆\",\"⣇\",\"⢈\",\"⢉\",\"⢊\",\"⢋\",\"⢌\",\"⢍\",\"⢎\",\"⢏\",\"⣈\",\"⣉\",\"⣊\",\"⣋\",\"⣌\",\"⣍\",\"⣎\",\"⣏\",\"⢐\",\"⢑\",\"⢒\",\"⢓\",\"⢔\",\"⢕\",\"⢖\",\"⢗\",\"⣐\",\"⣑\",\"⣒\",\"⣓\",\"⣔\",\"⣕\",\"⣖\",\"⣗\",\"⢘\",\"⢙\",\"⢚\",\"⢛\",\"⢜\",\"⢝\",\"⢞\",\"⢟\",\"⣘\",\"⣙\",\"⣚\",\"⣛\",\"⣜\",\"⣝\",\"⣞\",\"⣟\",\"⢠\",\"⢡\",\"⢢\",\"⢣\",\"⢤\",\"⢥\",\"⢦\",\"⢧\",\"⣠\",\"⣡\",\"⣢\",\"⣣\",\"⣤\",\"⣥\",\"⣦\",\"⣧\",\"⢨\",\"⢩\",\"⢪\",\"⢫\",\"⢬\",\"⢭\",\"⢮\",\"⢯\",\"⣨\",\"⣩\",\"⣪\",\"⣫\",\"⣬\",\"⣭\",\"⣮\",\"⣯\",\"⢰\",\"⢱\",\"⢲\",\"⢳\",\"⢴\",\"⢵\",\"⢶\",\"⢷\",\"⣰\",\"⣱\",\"⣲\",\"⣳\",\"⣴\",\"⣵\",\"⣶\",\"⣷\",\"⢸\",\"⢹\",\"⢺\",\"⢻\",\"⢼\",\"⢽\",\"⢾\",\"⢿\",\"⣸\",\"⣹\",\"⣺\",\"⣻\",\"⣼\",\"⣽\",\"⣾\",\"⣿\"]},\"line\":{\"interval\":130,\"frames\":[\"-\",\"\\\\\",\"|\",\"/\"]},\"line2\":{\"interval\":100,\"frames\":[\"⠂\",\"-\",\"–\",\"—\",\"–\",\"-\"]},\"pipe\":{\"interval\":100,\"frames\":[\"┤\",\"┘\",\"┴\",\"└\",\"├\",\"┌\",\"┬\",\"┐\"]},\"simpleDots\":{\"interval\":400,\"frames\":[\". \",\".. \",\"...\",\" \"]},\"simpleDotsScrolling\":{\"interval\":200,\"frames\":[\". \",\".. \",\"...\",\" ..\",\" .\",\" \"]},\"star\":{\"interval\":70,\"frames\":[\"✶\",\"✸\",\"✹\",\"✺\",\"✹\",\"✷\"]},\"star2\":{\"interval\":80,\"frames\":[\"+\",\"x\",\"*\"]},\"flip\":{\"interval\":70,\"frames\":[\"_\",\"_\",\"_\",\"-\",\"`\",\"`\",\"'\",\"´\",\"-\",\"_\",\"_\",\"_\"]},\"hamburger\":{\"interval\":100,\"frames\":[\"☱\",\"☲\",\"☴\"]},\"growVertical\":{\"interval\":120,\"frames\":[\"▁\",\"▃\",\"▄\",\"▅\",\"▆\",\"▇\",\"▆\",\"▅\",\"▄\",\"▃\"]},\"growHorizontal\":{\"interval\":120,\"frames\":[\"▏\",\"▎\",\"▍\",\"▌\",\"▋\",\"▊\",\"▉\",\"▊\",\"▋\",\"▌\",\"▍\",\"▎\"]},\"balloon\":{\"interval\":140,\"frames\":[\" \",\".\",\"o\",\"O\",\"@\",\"*\",\" \"]},\"balloon2\":{\"interval\":120,\"frames\":[\".\",\"o\",\"O\",\"°\",\"O\",\"o\",\".\"]},\"noise\":{\"interval\":100,\"frames\":[\"▓\",\"▒\",\"░\"]},\"bounce\":{\"interval\":120,\"frames\":[\"⠁\",\"⠂\",\"⠄\",\"⠂\"]},\"boxBounce\":{\"interval\":120,\"frames\":[\"▖\",\"▘\",\"▝\",\"▗\"]},\"boxBounce2\":{\"interval\":100,\"frames\":[\"▌\",\"▀\",\"▐\",\"▄\"]},\"triangle\":{\"interval\":50,\"frames\":[\"◢\",\"◣\",\"◤\",\"◥\"]},\"arc\":{\"interval\":100,\"frames\":[\"◜\",\"◠\",\"◝\",\"◞\",\"◡\",\"◟\"]},\"circle\":{\"interval\":120,\"frames\":[\"◡\",\"⊙\",\"◠\"]},\"squareCorners\":{\"interval\":180,\"frames\":[\"◰\",\"◳\",\"◲\",\"◱\"]},\"circleQuarters\":{\"interval\":120,\"frames\":[\"◴\",\"◷\",\"◶\",\"◵\"]},\"circleHalves\":{\"interval\":50,\"frames\":[\"◐\",\"◓\",\"◑\",\"◒\"]},\"squish\":{\"interval\":100,\"frames\":[\"╫\",\"╪\"]},\"toggle\":{\"interval\":250,\"frames\":[\"⊶\",\"⊷\"]},\"toggle2\":{\"interval\":80,\"frames\":[\"▫\",\"▪\"]},\"toggle3\":{\"interval\":120,\"frames\":[\"□\",\"■\"]},\"toggle4\":{\"interval\":100,\"frames\":[\"■\",\"□\",\"▪\",\"▫\"]},\"toggle5\":{\"interval\":100,\"frames\":[\"▮\",\"▯\"]},\"toggle6\":{\"interval\":300,\"frames\":[\"ဝ\",\"၀\"]},\"toggle7\":{\"interval\":80,\"frames\":[\"⦾\",\"⦿\"]},\"toggle8\":{\"interval\":100,\"frames\":[\"◍\",\"◌\"]},\"toggle9\":{\"interval\":100,\"frames\":[\"◉\",\"◎\"]},\"toggle10\":{\"interval\":100,\"frames\":[\"㊂\",\"㊀\",\"㊁\"]},\"toggle11\":{\"interval\":50,\"frames\":[\"⧇\",\"⧆\"]},\"toggle12\":{\"interval\":120,\"frames\":[\"☗\",\"☖\"]},\"toggle13\":{\"interval\":80,\"frames\":[\"=\",\"*\",\"-\"]},\"arrow\":{\"interval\":100,\"frames\":[\"←\",\"↖\",\"↑\",\"↗\",\"→\",\"↘\",\"↓\",\"↙\"]},\"arrow2\":{\"interval\":80,\"frames\":[\"⬆️ \",\"↗️ \",\"➡️ \",\"↘️ \",\"⬇️ \",\"↙️ \",\"⬅️ \",\"↖️ \"]},\"arrow3\":{\"interval\":120,\"frames\":[\"▹▹▹▹▹\",\"▸▹▹▹▹\",\"▹▸▹▹▹\",\"▹▹▸▹▹\",\"▹▹▹▸▹\",\"▹▹▹▹▸\"]},\"bouncingBar\":{\"interval\":80,\"frames\":[\"[ ]\",\"[= ]\",\"[== ]\",\"[=== ]\",\"[ ===]\",\"[ ==]\",\"[ =]\",\"[ ]\",\"[ =]\",\"[ ==]\",\"[ ===]\",\"[====]\",\"[=== ]\",\"[== ]\",\"[= ]\"]},\"bouncingBall\":{\"interval\":80,\"frames\":[\"( ● )\",\"( ● )\",\"( ● )\",\"( ● )\",\"( ●)\",\"( ● )\",\"( ● )\",\"( ● )\",\"( ● )\",\"(● )\"]},\"smiley\":{\"interval\":200,\"frames\":[\"😄 \",\"😝 \"]},\"monkey\":{\"interval\":300,\"frames\":[\"🙈 \",\"🙈 \",\"🙉 \",\"🙊 \"]},\"hearts\":{\"interval\":100,\"frames\":[\"💛 \",\"💙 \",\"💜 \",\"💚 \",\"❤️ \"]},\"clock\":{\"interval\":100,\"frames\":[\"🕛 \",\"🕐 \",\"🕑 \",\"🕒 \",\"🕓 \",\"🕔 \",\"🕕 \",\"🕖 \",\"🕗 \",\"🕘 \",\"🕙 \",\"🕚 \"]},\"earth\":{\"interval\":180,\"frames\":[\"🌍 \",\"🌎 \",\"🌏 \"]},\"material\":{\"interval\":17,\"frames\":[\"█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁\",\"██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁\",\"███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁\",\"████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁\",\"██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁\",\"██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁\",\"███████▁▁▁▁▁▁▁▁▁▁▁▁▁\",\"████████▁▁▁▁▁▁▁▁▁▁▁▁\",\"█████████▁▁▁▁▁▁▁▁▁▁▁\",\"█████████▁▁▁▁▁▁▁▁▁▁▁\",\"██████████▁▁▁▁▁▁▁▁▁▁\",\"███████████▁▁▁▁▁▁▁▁▁\",\"█████████████▁▁▁▁▁▁▁\",\"██████████████▁▁▁▁▁▁\",\"██████████████▁▁▁▁▁▁\",\"▁██████████████▁▁▁▁▁\",\"▁██████████████▁▁▁▁▁\",\"▁██████████████▁▁▁▁▁\",\"▁▁██████████████▁▁▁▁\",\"▁▁▁██████████████▁▁▁\",\"▁▁▁▁█████████████▁▁▁\",\"▁▁▁▁██████████████▁▁\",\"▁▁▁▁██████████████▁▁\",\"▁▁▁▁▁██████████████▁\",\"▁▁▁▁▁██████████████▁\",\"▁▁▁▁▁██████████████▁\",\"▁▁▁▁▁▁██████████████\",\"▁▁▁▁▁▁██████████████\",\"▁▁▁▁▁▁▁█████████████\",\"▁▁▁▁▁▁▁█████████████\",\"▁▁▁▁▁▁▁▁████████████\",\"▁▁▁▁▁▁▁▁████████████\",\"▁▁▁▁▁▁▁▁▁███████████\",\"▁▁▁▁▁▁▁▁▁███████████\",\"▁▁▁▁▁▁▁▁▁▁██████████\",\"▁▁▁▁▁▁▁▁▁▁██████████\",\"▁▁▁▁▁▁▁▁▁▁▁▁████████\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁███████\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████\",\"█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████\",\"██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███\",\"██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███\",\"███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███\",\"████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██\",\"█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█\",\"█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█\",\"██████▁▁▁▁▁▁▁▁▁▁▁▁▁█\",\"████████▁▁▁▁▁▁▁▁▁▁▁▁\",\"█████████▁▁▁▁▁▁▁▁▁▁▁\",\"█████████▁▁▁▁▁▁▁▁▁▁▁\",\"█████████▁▁▁▁▁▁▁▁▁▁▁\",\"█████████▁▁▁▁▁▁▁▁▁▁▁\",\"███████████▁▁▁▁▁▁▁▁▁\",\"████████████▁▁▁▁▁▁▁▁\",\"████████████▁▁▁▁▁▁▁▁\",\"██████████████▁▁▁▁▁▁\",\"██████████████▁▁▁▁▁▁\",\"▁██████████████▁▁▁▁▁\",\"▁██████████████▁▁▁▁▁\",\"▁▁▁█████████████▁▁▁▁\",\"▁▁▁▁▁████████████▁▁▁\",\"▁▁▁▁▁████████████▁▁▁\",\"▁▁▁▁▁▁███████████▁▁▁\",\"▁▁▁▁▁▁▁▁█████████▁▁▁\",\"▁▁▁▁▁▁▁▁█████████▁▁▁\",\"▁▁▁▁▁▁▁▁▁█████████▁▁\",\"▁▁▁▁▁▁▁▁▁█████████▁▁\",\"▁▁▁▁▁▁▁▁▁▁█████████▁\",\"▁▁▁▁▁▁▁▁▁▁▁████████▁\",\"▁▁▁▁▁▁▁▁▁▁▁████████▁\",\"▁▁▁▁▁▁▁▁▁▁▁▁███████▁\",\"▁▁▁▁▁▁▁▁▁▁▁▁███████▁\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁███████\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁███████\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁\",\"▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁\"]},\"moon\":{\"interval\":80,\"frames\":[\"🌑 \",\"🌒 \",\"🌓 \",\"🌔 \",\"🌕 \",\"🌖 \",\"🌗 \",\"🌘 \"]},\"runner\":{\"interval\":140,\"frames\":[\"🚶 \",\"🏃 \"]},\"pong\":{\"interval\":80,\"frames\":[\"▐⠂ ▌\",\"▐⠈ ▌\",\"▐ ⠂ ▌\",\"▐ ⠠ ▌\",\"▐ ⡀ ▌\",\"▐ ⠠ ▌\",\"▐ ⠂ ▌\",\"▐ ⠈ ▌\",\"▐ ⠂ ▌\",\"▐ ⠠ ▌\",\"▐ ⡀ ▌\",\"▐ ⠠ ▌\",\"▐ ⠂ ▌\",\"▐ ⠈ ▌\",\"▐ ⠂▌\",\"▐ ⠠▌\",\"▐ ⡀▌\",\"▐ ⠠ ▌\",\"▐ ⠂ ▌\",\"▐ ⠈ ▌\",\"▐ ⠂ ▌\",\"▐ ⠠ ▌\",\"▐ ⡀ ▌\",\"▐ ⠠ ▌\",\"▐ ⠂ ▌\",\"▐ ⠈ ▌\",\"▐ ⠂ ▌\",\"▐ ⠠ ▌\",\"▐ ⡀ ▌\",\"▐⠠ ▌\"]},\"shark\":{\"interval\":120,\"frames\":[\"▐|\\\\____________▌\",\"▐_|\\\\___________▌\",\"▐__|\\\\__________▌\",\"▐___|\\\\_________▌\",\"▐____|\\\\________▌\",\"▐_____|\\\\_______▌\",\"▐______|\\\\______▌\",\"▐_______|\\\\_____▌\",\"▐________|\\\\____▌\",\"▐_________|\\\\___▌\",\"▐__________|\\\\__▌\",\"▐___________|\\\\_▌\",\"▐____________|\\\\▌\",\"▐____________/|▌\",\"▐___________/|_▌\",\"▐__________/|__▌\",\"▐_________/|___▌\",\"▐________/|____▌\",\"▐_______/|_____▌\",\"▐______/|______▌\",\"▐_____/|_______▌\",\"▐____/|________▌\",\"▐___/|_________▌\",\"▐__/|__________▌\",\"▐_/|___________▌\",\"▐/|____________▌\"]},\"dqpb\":{\"interval\":100,\"frames\":[\"d\",\"q\",\"p\",\"b\"]},\"weather\":{\"interval\":100,\"frames\":[\"☀️ \",\"☀️ \",\"☀️ \",\"🌤 \",\"⛅️ \",\"🌥 \",\"☁️ \",\"🌧 \",\"🌨 \",\"🌧 \",\"🌨 \",\"🌧 \",\"🌨 \",\"⛈ \",\"🌨 \",\"🌧 \",\"🌨 \",\"☁️ \",\"🌥 \",\"⛅️ \",\"🌤 \",\"☀️ \",\"☀️ \"]},\"christmas\":{\"interval\":400,\"frames\":[\"🌲\",\"🎄\"]},\"grenade\":{\"interval\":80,\"frames\":[\"، \",\"′ \",\" ´ \",\" ‾ \",\" ⸌\",\" ⸊\",\" |\",\" ⁎\",\" ⁕\",\" ෴ \",\" ⁓\",\" \",\" \",\" \"]},\"point\":{\"interval\":125,\"frames\":[\"∙∙∙\",\"●∙∙\",\"∙●∙\",\"∙∙●\",\"∙∙∙\"]},\"layer\":{\"interval\":150,\"frames\":[\"-\",\"=\",\"≡\"]},\"betaWave\":{\"interval\":80,\"frames\":[\"ρββββββ\",\"βρβββββ\",\"ββρββββ\",\"βββρβββ\",\"ββββρββ\",\"βββββρβ\",\"ββββββρ\"]},\"aesthetic\":{\"interval\":80,\"frames\":[\"▰▱▱▱▱▱▱\",\"▰▰▱▱▱▱▱\",\"▰▰▰▱▱▱▱\",\"▰▰▰▰▱▱▱\",\"▰▰▰▰▰▱▱\",\"▰▰▰▰▰▰▱\",\"▰▰▰▰▰▰▰\",\"▰▱▱▱▱▱▱\"]}}"); /***/ }), -/* 493 */ +/* 492 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const chalk = __webpack_require__(494); +const chalk = __webpack_require__(493); const isSupported = process.platform !== 'win32' || process.env.CI || process.env.TERM === 'xterm-256color'; @@ -56939,16 +56813,16 @@ module.exports = isSupported ? main : fallbacks; /***/ }), -/* 494 */ +/* 493 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const escapeStringRegexp = __webpack_require__(265); -const ansiStyles = __webpack_require__(495); -const stdoutColor = __webpack_require__(500).stdout; +const escapeStringRegexp = __webpack_require__(264); +const ansiStyles = __webpack_require__(494); +const stdoutColor = __webpack_require__(499).stdout; -const template = __webpack_require__(502); +const template = __webpack_require__(501); const isSimpleWindowsTerm = process.platform === 'win32' && !(process.env.TERM || '').toLowerCase().startsWith('xterm'); @@ -57174,12 +57048,12 @@ module.exports.default = module.exports; // For TypeScript /***/ }), -/* 495 */ +/* 494 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(module) { -const colorConvert = __webpack_require__(496); +const colorConvert = __webpack_require__(495); const wrapAnsi16 = (fn, offset) => function () { const code = fn.apply(colorConvert, arguments); @@ -57344,14 +57218,14 @@ Object.defineProperty(module, 'exports', { get: assembleStyles }); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(115)(module))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(114)(module))) /***/ }), -/* 496 */ +/* 495 */ /***/ (function(module, exports, __webpack_require__) { -var conversions = __webpack_require__(497); -var route = __webpack_require__(499); +var conversions = __webpack_require__(496); +var route = __webpack_require__(498); var convert = {}; @@ -57431,11 +57305,11 @@ module.exports = convert; /***/ }), -/* 497 */ +/* 496 */ /***/ (function(module, exports, __webpack_require__) { /* MIT license */ -var cssKeywords = __webpack_require__(498); +var cssKeywords = __webpack_require__(497); // NOTE: conversions should only return primitive values (i.e. arrays, or // values that give correct `typeof` results). @@ -58305,7 +58179,7 @@ convert.rgb.gray = function (rgb) { /***/ }), -/* 498 */ +/* 497 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -58464,10 +58338,10 @@ module.exports = { /***/ }), -/* 499 */ +/* 498 */ /***/ (function(module, exports, __webpack_require__) { -var conversions = __webpack_require__(497); +var conversions = __webpack_require__(496); /* this function routes a model to all other models. @@ -58567,13 +58441,13 @@ module.exports = function (fromModel) { /***/ }), -/* 500 */ +/* 499 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const os = __webpack_require__(121); -const hasFlag = __webpack_require__(501); +const os = __webpack_require__(120); +const hasFlag = __webpack_require__(500); const env = process.env; @@ -58705,7 +58579,7 @@ module.exports = { /***/ }), -/* 501 */ +/* 500 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -58720,7 +58594,7 @@ module.exports = (flag, argv) => { /***/ }), -/* 502 */ +/* 501 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -58855,18 +58729,18 @@ module.exports = (chalk, tmp) => { /***/ }), -/* 503 */ +/* 502 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const ansiRegex = __webpack_require__(504); +const ansiRegex = __webpack_require__(503); module.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string; /***/ }), -/* 504 */ +/* 503 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -58883,14 +58757,14 @@ module.exports = ({onlyFirst = false} = {}) => { /***/ }), -/* 505 */ +/* 504 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var defaults = __webpack_require__(506) -var combining = __webpack_require__(508) +var defaults = __webpack_require__(505) +var combining = __webpack_require__(507) var DEFAULTS = { nul: 0, @@ -58989,10 +58863,10 @@ function bisearch(ucs) { /***/ }), -/* 506 */ +/* 505 */ /***/ (function(module, exports, __webpack_require__) { -var clone = __webpack_require__(507); +var clone = __webpack_require__(506); module.exports = function(options, defaults) { options = options || {}; @@ -59007,7 +58881,7 @@ module.exports = function(options, defaults) { }; /***/ }), -/* 507 */ +/* 506 */ /***/ (function(module, exports, __webpack_require__) { var clone = (function() { @@ -59179,7 +59053,7 @@ if ( true && module.exports) { /***/ }), -/* 508 */ +/* 507 */ /***/ (function(module, exports) { module.exports = [ @@ -59235,7 +59109,7 @@ module.exports = [ /***/ }), -/* 509 */ +/* 508 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -59251,10 +59125,10 @@ module.exports = ({stream = process.stdout} = {}) => { /***/ }), -/* 510 */ +/* 509 */ /***/ (function(module, exports, __webpack_require__) { -var Stream = __webpack_require__(138) +var Stream = __webpack_require__(137) module.exports = MuteStream @@ -59402,7 +59276,7 @@ MuteStream.prototype.close = proxy('close') /***/ }), -/* 511 */ +/* 510 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -59410,15 +59284,15 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResetCommand", function() { return ResetCommand; }); /* harmony import */ var dedent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2); /* harmony import */ var dedent__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dedent__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var del__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(143); +/* harmony import */ var del__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(142); /* harmony import */ var del__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(del__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var ora__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(480); +/* harmony import */ var ora__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(479); /* harmony import */ var ora__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(ora__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _utils_bazel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(372); -/* harmony import */ var _utils_fs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(131); -/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(246); +/* harmony import */ var _utils_bazel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(371); +/* harmony import */ var _utils_fs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(130); +/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(245); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -59521,7 +59395,7 @@ const ResetCommand = { }; /***/ }), -/* 512 */ +/* 511 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -59529,10 +59403,10 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RunCommand", function() { return RunCommand; }); /* harmony import */ var dedent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2); /* harmony import */ var dedent__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dedent__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _utils_errors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(249); -/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(246); -/* harmony import */ var _utils_parallelize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(247); -/* harmony import */ var _utils_projects__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(248); +/* harmony import */ var _utils_errors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(248); +/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(245); +/* harmony import */ var _utils_parallelize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(246); +/* harmony import */ var _utils_projects__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(247); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -59586,13 +59460,13 @@ const RunCommand = { }; /***/ }), -/* 513 */ +/* 512 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WatchCommand", function() { return WatchCommand; }); -/* harmony import */ var _utils_bazel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(372); +/* harmony import */ var _utils_bazel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(371); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -59619,19 +59493,19 @@ const WatchCommand = { }; /***/ }), -/* 514 */ +/* 513 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "runCommand", function() { return runCommand; }); -/* harmony import */ var _kbn_dev_utils_ci_stats_reporter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(515); +/* harmony import */ var _kbn_dev_utils_ci_stats_reporter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(514); /* harmony import */ var _kbn_dev_utils_ci_stats_reporter__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_kbn_dev_utils_ci_stats_reporter__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _utils_errors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(249); -/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(246); -/* harmony import */ var _utils_projects__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(248); -/* harmony import */ var _utils_projects_tree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(371); -/* harmony import */ var _utils_kibana__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(558); +/* harmony import */ var _utils_errors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(248); +/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(245); +/* harmony import */ var _utils_projects__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(247); +/* harmony import */ var _utils_projects_tree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(370); +/* harmony import */ var _utils_kibana__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(557); function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -59749,11 +59623,31 @@ function toArray(value) { } /***/ }), -/* 515 */ +/* 514 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.CiStatsReporter = void 0; + +var _util = __webpack_require__(111); + +var _os = _interopRequireDefault(__webpack_require__(120)); + +var _fs = _interopRequireDefault(__webpack_require__(133)); + +var _path = _interopRequireDefault(__webpack_require__(4)); + +var _axios = _interopRequireDefault(__webpack_require__(515)); + +var _ci_stats_config = __webpack_require__(555); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -59761,194 +59655,223 @@ function toArray(value) { * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CiStatsReporter = void 0; -const tslib_1 = __webpack_require__(7); -const util_1 = __webpack_require__(112); -const os_1 = tslib_1.__importDefault(__webpack_require__(121)); -const fs_1 = tslib_1.__importDefault(__webpack_require__(134)); -const path_1 = tslib_1.__importDefault(__webpack_require__(4)); -const axios_1 = tslib_1.__importDefault(__webpack_require__(516)); -const ci_stats_config_1 = __webpack_require__(556); const BASE_URL = 'https://ci-stats.kibana.dev'; + class CiStatsReporter { - constructor(config, log) { - this.config = config; - this.log = log; + static fromEnv(log) { + return new CiStatsReporter((0, _ci_stats_config.parseConfig)(log), log); + } + + constructor(config, log) { + this.config = config; + this.log = log; + } + + isEnabled() { + return process.env.CI_STATS_DISABLED !== 'true'; + } + + hasBuildConfig() { + var _this$config, _this$config2; + + return this.isEnabled() && !!((_this$config = this.config) !== null && _this$config !== void 0 && _this$config.apiToken) && !!((_this$config2 = this.config) !== null && _this$config2 !== void 0 && _this$config2.buildId); + } + /** + * Report timings data to the ci-stats service. If running in CI then the reporter + * will include the buildId in the report with the access token, otherwise the timings + * data will be recorded as anonymous timing data. + */ + + + async timings(options) { + var _this$config3, _options$upstreamBran, _Os$cpus, _Os$cpus$, _Os$cpus$2; + + if (!this.isEnabled()) { + return; } - static fromEnv(log) { - return new CiStatsReporter(ci_stats_config_1.parseConfig(log), log); + + const buildId = (_this$config3 = this.config) === null || _this$config3 === void 0 ? void 0 : _this$config3.buildId; + const timings = options.timings; + const upstreamBranch = (_options$upstreamBran = options.upstreamBranch) !== null && _options$upstreamBran !== void 0 ? _options$upstreamBran : this.getUpstreamBranch(); + const kibanaUuid = options.kibanaUuid === undefined ? this.getKibanaUuid() : options.kibanaUuid; + const defaultMetadata = { + osPlatform: _os.default.platform(), + osRelease: _os.default.release(), + osArch: _os.default.arch(), + cpuCount: (_Os$cpus = _os.default.cpus()) === null || _Os$cpus === void 0 ? void 0 : _Os$cpus.length, + cpuModel: (_Os$cpus$ = _os.default.cpus()[0]) === null || _Os$cpus$ === void 0 ? void 0 : _Os$cpus$.model, + cpuSpeed: (_Os$cpus$2 = _os.default.cpus()[0]) === null || _Os$cpus$2 === void 0 ? void 0 : _Os$cpus$2.speed, + freeMem: _os.default.freemem(), + totalMem: _os.default.totalmem(), + kibanaUuid + }; + return await this.req({ + auth: !!buildId, + path: '/v1/timings', + body: { + buildId, + upstreamBranch, + timings, + defaultMetadata + }, + bodyDesc: timings.length === 1 ? `${timings.length} timing` : `${timings.length} timings` + }); + } + /** + * Report metrics data to the ci-stats service. If running outside of CI this method + * does nothing as metrics can only be reported when associated with a specific CI build. + */ + + + async metrics(metrics) { + var _this$config4; + + if (!this.hasBuildConfig()) { + return; } - isEnabled() { - return process.env.CI_STATS_DISABLED !== 'true'; + + const buildId = (_this$config4 = this.config) === null || _this$config4 === void 0 ? void 0 : _this$config4.buildId; + + if (!buildId) { + throw new Error(`CiStatsReporter can't be authorized without a buildId`); } - hasBuildConfig() { - var _a, _b; - return this.isEnabled() && !!((_a = this.config) === null || _a === void 0 ? void 0 : _a.apiToken) && !!((_b = this.config) === null || _b === void 0 ? void 0 : _b.buildId); + + return await this.req({ + auth: true, + path: '/v1/metrics', + body: { + buildId, + metrics + }, + bodyDesc: `metrics: ${metrics.map(({ + group, + id, + value + }) => `[${group}/${id}=${value}]`).join(' ')}` + }); + } + /** + * In order to allow this code to run before @kbn/utils is built, @kbn/pm will pass + * in the upstreamBranch when calling the timings() method. Outside of @kbn/pm + * we rely on @kbn/utils to find the package.json file. + */ + + + getUpstreamBranch() { + // specify the module id in a way that will keep webpack from bundling extra code into @kbn/pm + const hideFromWebpack = ['@', 'kbn/utils']; // eslint-disable-next-line @typescript-eslint/no-var-requires + + const { + kibanaPackageJson + } = __webpack_require__(556)(hideFromWebpack.join('')); + + return kibanaPackageJson.branch; + } + /** + * In order to allow this code to run before @kbn/utils is built, @kbn/pm will pass + * in the kibanaUuid when calling the timings() method. Outside of @kbn/pm + * we rely on @kbn/utils to find the repo root. + */ + + + getKibanaUuid() { + // specify the module id in a way that will keep webpack from bundling extra code into @kbn/pm + const hideFromWebpack = ['@', 'kbn/utils']; // eslint-disable-next-line @typescript-eslint/no-var-requires + + const { + REPO_ROOT + } = __webpack_require__(556)(hideFromWebpack.join('')); + + try { + return _fs.default.readFileSync(_path.default.resolve(REPO_ROOT, 'data/uuid'), 'utf-8').trim(); + } catch (error) { + if (error.code === 'ENOENT') { + return undefined; + } + + throw error; } - /** - * Report timings data to the ci-stats service. If running in CI then the reporter - * will include the buildId in the report with the access token, otherwise the timings - * data will be recorded as anonymous timing data. - */ - async timings(options) { - var _a, _b, _c, _d, _e; - if (!this.isEnabled()) { - return; - } - const buildId = (_a = this.config) === null || _a === void 0 ? void 0 : _a.buildId; - const timings = options.timings; - const upstreamBranch = (_b = options.upstreamBranch) !== null && _b !== void 0 ? _b : this.getUpstreamBranch(); - const kibanaUuid = options.kibanaUuid === undefined ? this.getKibanaUuid() : options.kibanaUuid; - const defaultMetadata = { - osPlatform: os_1.default.platform(), - osRelease: os_1.default.release(), - osArch: os_1.default.arch(), - cpuCount: (_c = os_1.default.cpus()) === null || _c === void 0 ? void 0 : _c.length, - cpuModel: (_d = os_1.default.cpus()[0]) === null || _d === void 0 ? void 0 : _d.model, - cpuSpeed: (_e = os_1.default.cpus()[0]) === null || _e === void 0 ? void 0 : _e.speed, - freeMem: os_1.default.freemem(), - totalMem: os_1.default.totalmem(), - kibanaUuid, - }; - return await this.req({ - auth: !!buildId, - path: '/v1/timings', - body: { - buildId, - upstreamBranch, - timings, - defaultMetadata, - }, - bodyDesc: timings.length === 1 ? `${timings.length} timing` : `${timings.length} timings`, - }); + } + + async req({ + auth, + body, + bodyDesc, + path + }) { + let attempt = 0; + const maxAttempts = 5; + let headers; + + if (auth && this.config) { + headers = { + Authorization: `token ${this.config.apiToken}` + }; + } else if (auth) { + throw new Error('this.req() shouldnt be called with auth=true if this.config is defined'); } - /** - * Report metrics data to the ci-stats service. If running outside of CI this method - * does nothing as metrics can only be reported when associated with a specific CI build. - */ - async metrics(metrics) { - var _a; - if (!this.hasBuildConfig()) { - return; - } - const buildId = (_a = this.config) === null || _a === void 0 ? void 0 : _a.buildId; - if (!buildId) { - throw new Error(`CiStatsReporter can't be authorized without a buildId`); - } - return await this.req({ - auth: true, - path: '/v1/metrics', - body: { - buildId, - metrics, - }, - bodyDesc: `metrics: ${metrics - .map(({ group, id, value }) => `[${group}/${id}=${value}]`) - .join(' ')}`, + + while (true) { + attempt += 1; + + try { + await _axios.default.request({ + method: 'POST', + url: path, + baseURL: BASE_URL, + headers, + data: body }); - } - /** - * In order to allow this code to run before @kbn/utils is built, @kbn/pm will pass - * in the upstreamBranch when calling the timings() method. Outside of @kbn/pm - * we rely on @kbn/utils to find the package.json file. - */ - getUpstreamBranch() { - // specify the module id in a way that will keep webpack from bundling extra code into @kbn/pm - const hideFromWebpack = ['@', 'kbn/utils']; - // eslint-disable-next-line @typescript-eslint/no-var-requires - const { kibanaPackageJson } = __webpack_require__(557)(hideFromWebpack.join('')); - return kibanaPackageJson.branch; - } - /** - * In order to allow this code to run before @kbn/utils is built, @kbn/pm will pass - * in the kibanaUuid when calling the timings() method. Outside of @kbn/pm - * we rely on @kbn/utils to find the repo root. - */ - getKibanaUuid() { - // specify the module id in a way that will keep webpack from bundling extra code into @kbn/pm - const hideFromWebpack = ['@', 'kbn/utils']; - // eslint-disable-next-line @typescript-eslint/no-var-requires - const { REPO_ROOT } = __webpack_require__(557)(hideFromWebpack.join('')); - try { - return fs_1.default.readFileSync(path_1.default.resolve(REPO_ROOT, 'data/uuid'), 'utf-8').trim(); - } - catch (error) { - if (error.code === 'ENOENT') { - return undefined; - } - throw error; - } - } - async req({ auth, body, bodyDesc, path }) { - var _a; - let attempt = 0; - const maxAttempts = 5; - let headers; - if (auth && this.config) { - headers = { - Authorization: `token ${this.config.apiToken}`, - }; - } - else if (auth) { - throw new Error('this.req() shouldnt be called with auth=true if this.config is defined'); + return true; + } catch (error) { + var _error$response; + + if (!(error !== null && error !== void 0 && error.request)) { + // not an axios error, must be a usage error that we should notify user about + throw error; } - while (true) { - attempt += 1; - try { - await axios_1.default.request({ - method: 'POST', - url: path, - baseURL: BASE_URL, - headers, - data: body, - }); - return true; - } - catch (error) { - if (!(error === null || error === void 0 ? void 0 : error.request)) { - // not an axios error, must be a usage error that we should notify user about - throw error; - } - if ((error === null || error === void 0 ? void 0 : error.response) && error.response.status < 502) { - // error response from service was received so warn the user and move on - this.log.warning(`error reporting ${bodyDesc} [status=${error.response.status}] [resp=${util_1.inspect(error.response.data)}]`); - return; - } - if (attempt === maxAttempts) { - this.log.warning(`unable to report ${bodyDesc}, failed to reach ci-stats service too many times`); - return; - } - // we failed to reach the backend and we have remaining attempts, lets retry after a short delay - const reason = ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.status) ? `${error.response.status} response` - : 'no response'; - this.log.warning(`failed to reach ci-stats service [reason=${reason}], retrying in ${attempt} seconds`); - await new Promise((resolve) => setTimeout(resolve, attempt * 1000)); - } + + if (error !== null && error !== void 0 && error.response && error.response.status < 502) { + // error response from service was received so warn the user and move on + this.log.warning(`error reporting ${bodyDesc} [status=${error.response.status}] [resp=${(0, _util.inspect)(error.response.data)}]`); + return; } + + if (attempt === maxAttempts) { + this.log.warning(`unable to report ${bodyDesc}, failed to reach ci-stats service too many times`); + return; + } // we failed to reach the backend and we have remaining attempts, lets retry after a short delay + + + const reason = error !== null && error !== void 0 && (_error$response = error.response) !== null && _error$response !== void 0 && _error$response.status ? `${error.response.status} response` : 'no response'; + this.log.warning(`failed to reach ci-stats service [reason=${reason}], retrying in ${attempt} seconds`); + await new Promise(resolve => setTimeout(resolve, attempt * 1000)); + } } + } + } + exports.CiStatsReporter = CiStatsReporter; -//# sourceMappingURL=ci_stats_reporter.js.map /***/ }), -/* 516 */ +/* 515 */ /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(517); +module.exports = __webpack_require__(516); /***/ }), -/* 517 */ +/* 516 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(518); -var bind = __webpack_require__(519); -var Axios = __webpack_require__(520); -var mergeConfig = __webpack_require__(551); -var defaults = __webpack_require__(526); +var utils = __webpack_require__(517); +var bind = __webpack_require__(518); +var Axios = __webpack_require__(519); +var mergeConfig = __webpack_require__(550); +var defaults = __webpack_require__(525); /** * Create an instance of Axios @@ -59981,18 +59904,18 @@ axios.create = function create(instanceConfig) { }; // Expose Cancel & CancelToken -axios.Cancel = __webpack_require__(552); -axios.CancelToken = __webpack_require__(553); -axios.isCancel = __webpack_require__(525); +axios.Cancel = __webpack_require__(551); +axios.CancelToken = __webpack_require__(552); +axios.isCancel = __webpack_require__(524); // Expose all/spread axios.all = function all(promises) { return Promise.all(promises); }; -axios.spread = __webpack_require__(554); +axios.spread = __webpack_require__(553); // Expose isAxiosError -axios.isAxiosError = __webpack_require__(555); +axios.isAxiosError = __webpack_require__(554); module.exports = axios; @@ -60001,13 +59924,13 @@ module.exports.default = axios; /***/ }), -/* 518 */ +/* 517 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var bind = __webpack_require__(519); +var bind = __webpack_require__(518); /*global toString:true*/ @@ -60359,7 +60282,7 @@ module.exports = { /***/ }), -/* 519 */ +/* 518 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -60377,17 +60300,17 @@ module.exports = function bind(fn, thisArg) { /***/ }), -/* 520 */ +/* 519 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(518); -var buildURL = __webpack_require__(521); -var InterceptorManager = __webpack_require__(522); -var dispatchRequest = __webpack_require__(523); -var mergeConfig = __webpack_require__(551); +var utils = __webpack_require__(517); +var buildURL = __webpack_require__(520); +var InterceptorManager = __webpack_require__(521); +var dispatchRequest = __webpack_require__(522); +var mergeConfig = __webpack_require__(550); /** * Create a new instance of Axios @@ -60479,13 +60402,13 @@ module.exports = Axios; /***/ }), -/* 521 */ +/* 520 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(518); +var utils = __webpack_require__(517); function encode(val) { return encodeURIComponent(val). @@ -60556,13 +60479,13 @@ module.exports = function buildURL(url, params, paramsSerializer) { /***/ }), -/* 522 */ +/* 521 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(518); +var utils = __webpack_require__(517); function InterceptorManager() { this.handlers = []; @@ -60615,16 +60538,16 @@ module.exports = InterceptorManager; /***/ }), -/* 523 */ +/* 522 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(518); -var transformData = __webpack_require__(524); -var isCancel = __webpack_require__(525); -var defaults = __webpack_require__(526); +var utils = __webpack_require__(517); +var transformData = __webpack_require__(523); +var isCancel = __webpack_require__(524); +var defaults = __webpack_require__(525); /** * Throws a `Cancel` if cancellation has been requested. @@ -60701,13 +60624,13 @@ module.exports = function dispatchRequest(config) { /***/ }), -/* 524 */ +/* 523 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(518); +var utils = __webpack_require__(517); /** * Transform the data for a request or a response @@ -60728,7 +60651,7 @@ module.exports = function transformData(data, headers, fns) { /***/ }), -/* 525 */ +/* 524 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -60740,14 +60663,14 @@ module.exports = function isCancel(value) { /***/ }), -/* 526 */ +/* 525 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(518); -var normalizeHeaderName = __webpack_require__(527); +var utils = __webpack_require__(517); +var normalizeHeaderName = __webpack_require__(526); var DEFAULT_CONTENT_TYPE = { 'Content-Type': 'application/x-www-form-urlencoded' @@ -60763,10 +60686,10 @@ function getDefaultAdapter() { var adapter; if (typeof XMLHttpRequest !== 'undefined') { // For browsers use XHR adapter - adapter = __webpack_require__(528); + adapter = __webpack_require__(527); } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') { // For node use HTTP adapter - adapter = __webpack_require__(538); + adapter = __webpack_require__(537); } return adapter; } @@ -60845,13 +60768,13 @@ module.exports = defaults; /***/ }), -/* 527 */ +/* 526 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(518); +var utils = __webpack_require__(517); module.exports = function normalizeHeaderName(headers, normalizedName) { utils.forEach(headers, function processHeader(value, name) { @@ -60864,20 +60787,20 @@ module.exports = function normalizeHeaderName(headers, normalizedName) { /***/ }), -/* 528 */ +/* 527 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(518); -var settle = __webpack_require__(529); -var cookies = __webpack_require__(532); -var buildURL = __webpack_require__(521); -var buildFullPath = __webpack_require__(533); -var parseHeaders = __webpack_require__(536); -var isURLSameOrigin = __webpack_require__(537); -var createError = __webpack_require__(530); +var utils = __webpack_require__(517); +var settle = __webpack_require__(528); +var cookies = __webpack_require__(531); +var buildURL = __webpack_require__(520); +var buildFullPath = __webpack_require__(532); +var parseHeaders = __webpack_require__(535); +var isURLSameOrigin = __webpack_require__(536); +var createError = __webpack_require__(529); module.exports = function xhrAdapter(config) { return new Promise(function dispatchXhrRequest(resolve, reject) { @@ -61050,13 +60973,13 @@ module.exports = function xhrAdapter(config) { /***/ }), -/* 529 */ +/* 528 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var createError = __webpack_require__(530); +var createError = __webpack_require__(529); /** * Resolve or reject a Promise based on response status. @@ -61082,13 +61005,13 @@ module.exports = function settle(resolve, reject, response) { /***/ }), -/* 530 */ +/* 529 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var enhanceError = __webpack_require__(531); +var enhanceError = __webpack_require__(530); /** * Create an Error with the specified message, config, error code, request and response. @@ -61107,7 +61030,7 @@ module.exports = function createError(message, config, code, request, response) /***/ }), -/* 531 */ +/* 530 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -61156,13 +61079,13 @@ module.exports = function enhanceError(error, config, code, request, response) { /***/ }), -/* 532 */ +/* 531 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(518); +var utils = __webpack_require__(517); module.exports = ( utils.isStandardBrowserEnv() ? @@ -61216,14 +61139,14 @@ module.exports = ( /***/ }), -/* 533 */ +/* 532 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var isAbsoluteURL = __webpack_require__(534); -var combineURLs = __webpack_require__(535); +var isAbsoluteURL = __webpack_require__(533); +var combineURLs = __webpack_require__(534); /** * Creates a new URL by combining the baseURL with the requestedURL, @@ -61243,7 +61166,7 @@ module.exports = function buildFullPath(baseURL, requestedURL) { /***/ }), -/* 534 */ +/* 533 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -61264,7 +61187,7 @@ module.exports = function isAbsoluteURL(url) { /***/ }), -/* 535 */ +/* 534 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -61285,13 +61208,13 @@ module.exports = function combineURLs(baseURL, relativeURL) { /***/ }), -/* 536 */ +/* 535 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(518); +var utils = __webpack_require__(517); // Headers whose duplicates are ignored by node // c.f. https://nodejs.org/api/http.html#http_message_headers @@ -61345,13 +61268,13 @@ module.exports = function parseHeaders(headers) { /***/ }), -/* 537 */ +/* 536 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(518); +var utils = __webpack_require__(517); module.exports = ( utils.isStandardBrowserEnv() ? @@ -61420,25 +61343,25 @@ module.exports = ( /***/ }), -/* 538 */ +/* 537 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(518); -var settle = __webpack_require__(529); -var buildFullPath = __webpack_require__(533); -var buildURL = __webpack_require__(521); -var http = __webpack_require__(539); -var https = __webpack_require__(540); -var httpFollow = __webpack_require__(541).http; -var httpsFollow = __webpack_require__(541).https; -var url = __webpack_require__(283); -var zlib = __webpack_require__(549); -var pkg = __webpack_require__(550); -var createError = __webpack_require__(530); -var enhanceError = __webpack_require__(531); +var utils = __webpack_require__(517); +var settle = __webpack_require__(528); +var buildFullPath = __webpack_require__(532); +var buildURL = __webpack_require__(520); +var http = __webpack_require__(538); +var https = __webpack_require__(539); +var httpFollow = __webpack_require__(540).http; +var httpsFollow = __webpack_require__(540).https; +var url = __webpack_require__(282); +var zlib = __webpack_require__(548); +var pkg = __webpack_require__(549); +var createError = __webpack_require__(529); +var enhanceError = __webpack_require__(530); var isHttps = /https:?/; @@ -61730,28 +61653,28 @@ module.exports = function httpAdapter(config) { /***/ }), -/* 539 */ +/* 538 */ /***/ (function(module, exports) { module.exports = require("http"); /***/ }), -/* 540 */ +/* 539 */ /***/ (function(module, exports) { module.exports = require("https"); /***/ }), -/* 541 */ +/* 540 */ /***/ (function(module, exports, __webpack_require__) { -var url = __webpack_require__(283); +var url = __webpack_require__(282); var URL = url.URL; -var http = __webpack_require__(539); -var https = __webpack_require__(540); -var Writable = __webpack_require__(138).Writable; -var assert = __webpack_require__(140); -var debug = __webpack_require__(542); +var http = __webpack_require__(538); +var https = __webpack_require__(539); +var Writable = __webpack_require__(137).Writable; +var assert = __webpack_require__(139); +var debug = __webpack_require__(541); // Create handlers that pass events from native requests var eventHandlers = Object.create(null); @@ -62246,13 +62169,13 @@ module.exports.wrap = wrap; /***/ }), -/* 542 */ +/* 541 */ /***/ (function(module, exports, __webpack_require__) { var debug; try { /* eslint global-require: off */ - debug = __webpack_require__(543)("follow-redirects"); + debug = __webpack_require__(542)("follow-redirects"); } catch (error) { debug = function () { /* */ }; @@ -62261,7 +62184,7 @@ module.exports = debug; /***/ }), -/* 543 */ +/* 542 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -62270,14 +62193,14 @@ module.exports = debug; */ if (typeof process !== 'undefined' && process.type === 'renderer') { - module.exports = __webpack_require__(544); + module.exports = __webpack_require__(543); } else { - module.exports = __webpack_require__(547); + module.exports = __webpack_require__(546); } /***/ }), -/* 544 */ +/* 543 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -62286,7 +62209,7 @@ if (typeof process !== 'undefined' && process.type === 'renderer') { * Expose `debug()` as the module. */ -exports = module.exports = __webpack_require__(545); +exports = module.exports = __webpack_require__(544); exports.log = log; exports.formatArgs = formatArgs; exports.save = save; @@ -62468,7 +62391,7 @@ function localstorage() { /***/ }), -/* 545 */ +/* 544 */ /***/ (function(module, exports, __webpack_require__) { @@ -62484,7 +62407,7 @@ exports.coerce = coerce; exports.disable = disable; exports.enable = enable; exports.enabled = enabled; -exports.humanize = __webpack_require__(546); +exports.humanize = __webpack_require__(545); /** * The currently active debug mode names, and names to skip. @@ -62676,7 +62599,7 @@ function coerce(val) { /***/ }), -/* 546 */ +/* 545 */ /***/ (function(module, exports) { /** @@ -62834,15 +62757,15 @@ function plural(ms, n, name) { /***/ }), -/* 547 */ +/* 546 */ /***/ (function(module, exports, __webpack_require__) { /** * Module dependencies. */ -var tty = __webpack_require__(122); -var util = __webpack_require__(112); +var tty = __webpack_require__(121); +var util = __webpack_require__(111); /** * This is the Node.js implementation of `debug()`. @@ -62850,7 +62773,7 @@ var util = __webpack_require__(112); * Expose `debug()` as the module. */ -exports = module.exports = __webpack_require__(545); +exports = module.exports = __webpack_require__(544); exports.init = init; exports.log = log; exports.formatArgs = formatArgs; @@ -63022,14 +62945,14 @@ function createWritableStdioStream (fd) { break; case 'FILE': - var fs = __webpack_require__(134); + var fs = __webpack_require__(133); stream = new fs.SyncWriteStream(fd, { autoClose: false }); stream._type = 'fs'; break; case 'PIPE': case 'TCP': - var net = __webpack_require__(548); + var net = __webpack_require__(547); stream = new net.Socket({ fd: fd, readable: false, @@ -63088,31 +63011,31 @@ exports.enable(load()); /***/ }), -/* 548 */ +/* 547 */ /***/ (function(module, exports) { module.exports = require("net"); /***/ }), -/* 549 */ +/* 548 */ /***/ (function(module, exports) { module.exports = require("zlib"); /***/ }), -/* 550 */ +/* 549 */ /***/ (function(module) { module.exports = JSON.parse("{\"name\":\"axios\",\"version\":\"0.21.1\",\"description\":\"Promise based HTTP client for the browser and node.js\",\"main\":\"index.js\",\"scripts\":{\"test\":\"grunt test && bundlesize\",\"start\":\"node ./sandbox/server.js\",\"build\":\"NODE_ENV=production grunt build\",\"preversion\":\"npm test\",\"version\":\"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\",\"postversion\":\"git push && git push --tags\",\"examples\":\"node ./examples/server.js\",\"coveralls\":\"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\"fix\":\"eslint --fix lib/**/*.js\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/axios/axios.git\"},\"keywords\":[\"xhr\",\"http\",\"ajax\",\"promise\",\"node\"],\"author\":\"Matt Zabriskie\",\"license\":\"MIT\",\"bugs\":{\"url\":\"https://github.com/axios/axios/issues\"},\"homepage\":\"https://github.com/axios/axios\",\"devDependencies\":{\"bundlesize\":\"^0.17.0\",\"coveralls\":\"^3.0.0\",\"es6-promise\":\"^4.2.4\",\"grunt\":\"^1.0.2\",\"grunt-banner\":\"^0.6.0\",\"grunt-cli\":\"^1.2.0\",\"grunt-contrib-clean\":\"^1.1.0\",\"grunt-contrib-watch\":\"^1.0.0\",\"grunt-eslint\":\"^20.1.0\",\"grunt-karma\":\"^2.0.0\",\"grunt-mocha-test\":\"^0.13.3\",\"grunt-ts\":\"^6.0.0-beta.19\",\"grunt-webpack\":\"^1.0.18\",\"istanbul-instrumenter-loader\":\"^1.0.0\",\"jasmine-core\":\"^2.4.1\",\"karma\":\"^1.3.0\",\"karma-chrome-launcher\":\"^2.2.0\",\"karma-coverage\":\"^1.1.1\",\"karma-firefox-launcher\":\"^1.1.0\",\"karma-jasmine\":\"^1.1.1\",\"karma-jasmine-ajax\":\"^0.1.13\",\"karma-opera-launcher\":\"^1.0.0\",\"karma-safari-launcher\":\"^1.0.0\",\"karma-sauce-launcher\":\"^1.2.0\",\"karma-sinon\":\"^1.0.5\",\"karma-sourcemap-loader\":\"^0.3.7\",\"karma-webpack\":\"^1.7.0\",\"load-grunt-tasks\":\"^3.5.2\",\"minimist\":\"^1.2.0\",\"mocha\":\"^5.2.0\",\"sinon\":\"^4.5.0\",\"typescript\":\"^2.8.1\",\"url-search-params\":\"^0.10.0\",\"webpack\":\"^1.13.1\",\"webpack-dev-server\":\"^1.14.1\"},\"browser\":{\"./lib/adapters/http.js\":\"./lib/adapters/xhr.js\"},\"jsdelivr\":\"dist/axios.min.js\",\"unpkg\":\"dist/axios.min.js\",\"typings\":\"./index.d.ts\",\"dependencies\":{\"follow-redirects\":\"^1.10.0\"},\"bundlesize\":[{\"path\":\"./dist/axios.min.js\",\"threshold\":\"5kB\"}]}"); /***/ }), -/* 551 */ +/* 550 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(518); +var utils = __webpack_require__(517); /** * Config-specific merge-function which creates a new config-object @@ -63200,7 +63123,7 @@ module.exports = function mergeConfig(config1, config2) { /***/ }), -/* 552 */ +/* 551 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -63226,13 +63149,13 @@ module.exports = Cancel; /***/ }), -/* 553 */ +/* 552 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var Cancel = __webpack_require__(552); +var Cancel = __webpack_require__(551); /** * A `CancelToken` is an object that can be used to request cancellation of an operation. @@ -63290,7 +63213,7 @@ module.exports = CancelToken; /***/ }), -/* 554 */ +/* 553 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -63324,7 +63247,7 @@ module.exports = function spread(callback) { /***/ }), -/* 555 */ +/* 554 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -63342,11 +63265,17 @@ module.exports = function isAxiosError(payload) { /***/ }), -/* 556 */ +/* 555 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.parseConfig = parseConfig; + /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -63354,45 +63283,49 @@ module.exports = function isAxiosError(payload) { * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseConfig = void 0; function validateConfig(log, config) { - const validApiToken = typeof config.apiToken === 'string' && config.apiToken.length !== 0; - if (!validApiToken) { - log.warning('KIBANA_CI_STATS_CONFIG is missing a valid api token, stats will not be reported'); - return; - } - const validId = typeof config.buildId === 'string' && config.buildId.length !== 0; - if (!validId) { - log.warning('KIBANA_CI_STATS_CONFIG is missing a valid build id, stats will not be reported'); - return; - } - return config; + const validApiToken = typeof config.apiToken === 'string' && config.apiToken.length !== 0; + + if (!validApiToken) { + log.warning('KIBANA_CI_STATS_CONFIG is missing a valid api token, stats will not be reported'); + return; + } + + const validId = typeof config.buildId === 'string' && config.buildId.length !== 0; + + if (!validId) { + log.warning('KIBANA_CI_STATS_CONFIG is missing a valid build id, stats will not be reported'); + return; + } + + return config; } + function parseConfig(log) { - const configJson = process.env.KIBANA_CI_STATS_CONFIG; - if (!configJson) { - log.debug('KIBANA_CI_STATS_CONFIG environment variable not found, disabling CiStatsReporter'); - return; - } - let config; - try { - config = JSON.parse(configJson); - } - catch (_) { - // handled below - } - if (typeof config === 'object' && config !== null) { - return validateConfig(log, config); - } - log.warning('KIBANA_CI_STATS_CONFIG is invalid, stats will not be reported'); + const configJson = process.env.KIBANA_CI_STATS_CONFIG; + + if (!configJson) { + log.debug('KIBANA_CI_STATS_CONFIG environment variable not found, disabling CiStatsReporter'); return; + } + + let config; + + try { + config = JSON.parse(configJson); + } catch (_) {// handled below + } + + if (typeof config === 'object' && config !== null) { + return validateConfig(log, config); + } + + log.warning('KIBANA_CI_STATS_CONFIG is invalid, stats will not be reported'); + return; } -exports.parseConfig = parseConfig; -//# sourceMappingURL=ci_stats_config.js.map /***/ }), -/* 557 */ +/* 556 */ /***/ (function(module, exports) { function webpackEmptyContext(req) { @@ -63403,10 +63336,10 @@ function webpackEmptyContext(req) { webpackEmptyContext.keys = function() { return []; }; webpackEmptyContext.resolve = webpackEmptyContext; module.exports = webpackEmptyContext; -webpackEmptyContext.id = 557; +webpackEmptyContext.id = 556; /***/ }), -/* 558 */ +/* 557 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -63414,15 +63347,15 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kibana", function() { return Kibana; }); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(134); +/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(133); /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var multimatch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(559); +/* harmony import */ var multimatch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(558); /* harmony import */ var multimatch__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(multimatch__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var is_path_inside__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(239); +/* harmony import */ var is_path_inside__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(238); /* harmony import */ var is_path_inside__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(is_path_inside__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _yarn_lock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(366); -/* harmony import */ var _projects__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(248); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(562); +/* harmony import */ var _yarn_lock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(365); +/* harmony import */ var _projects__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(247); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(561); function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -63586,15 +63519,15 @@ class Kibana { } /***/ }), -/* 559 */ +/* 558 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const minimatch = __webpack_require__(150); -const arrayUnion = __webpack_require__(145); -const arrayDiffer = __webpack_require__(560); -const arrify = __webpack_require__(561); +const minimatch = __webpack_require__(149); +const arrayUnion = __webpack_require__(144); +const arrayDiffer = __webpack_require__(559); +const arrify = __webpack_require__(560); module.exports = (list, patterns, options = {}) => { list = arrify(list); @@ -63618,7 +63551,7 @@ module.exports = (list, patterns, options = {}) => { /***/ }), -/* 560 */ +/* 559 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -63633,7 +63566,7 @@ module.exports = arrayDiffer; /***/ }), -/* 561 */ +/* 560 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -63663,7 +63596,7 @@ module.exports = arrify; /***/ }), -/* 562 */ +/* 561 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -63723,15 +63656,15 @@ function getProjectPaths({ } /***/ }), -/* 563 */ +/* 562 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _build_bazel_production_projects__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(564); +/* harmony import */ var _build_bazel_production_projects__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(563); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buildBazelProductionProjects", function() { return _build_bazel_production_projects__WEBPACK_IMPORTED_MODULE_0__["buildBazelProductionProjects"]; }); -/* harmony import */ var _build_non_bazel_production_projects__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(812); +/* harmony import */ var _build_non_bazel_production_projects__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(811); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buildNonBazelProductionProjects", function() { return _build_non_bazel_production_projects__WEBPACK_IMPORTED_MODULE_1__["buildNonBazelProductionProjects"]; }); /* @@ -63745,24 +63678,24 @@ __webpack_require__.r(__webpack_exports__); /***/ }), -/* 564 */ +/* 563 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildBazelProductionProjects", function() { return buildBazelProductionProjects; }); -/* harmony import */ var cpy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(565); +/* harmony import */ var cpy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(564); /* harmony import */ var cpy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cpy__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var globby__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(774); +/* harmony import */ var globby__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(773); /* harmony import */ var globby__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(globby__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _build_non_bazel_production_projects__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(812); -/* harmony import */ var _utils_bazel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(372); -/* harmony import */ var _utils_fs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(131); -/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(246); -/* harmony import */ var _utils_package_json__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(251); -/* harmony import */ var _utils_projects__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(248); +/* harmony import */ var _build_non_bazel_production_projects__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(811); +/* harmony import */ var _utils_bazel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(371); +/* harmony import */ var _utils_fs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(130); +/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(245); +/* harmony import */ var _utils_package_json__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(250); +/* harmony import */ var _utils_projects__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(247); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License @@ -63852,22 +63785,22 @@ async function applyCorrectPermissions(project, kibanaRoot, buildRoot) { } /***/ }), -/* 565 */ +/* 564 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const EventEmitter = __webpack_require__(156); +const EventEmitter = __webpack_require__(155); const path = __webpack_require__(4); -const os = __webpack_require__(121); -const pMap = __webpack_require__(566); -const arrify = __webpack_require__(561); -const globby = __webpack_require__(569); -const hasGlob = __webpack_require__(758); -const cpFile = __webpack_require__(760); -const junk = __webpack_require__(770); -const pFilter = __webpack_require__(771); -const CpyError = __webpack_require__(773); +const os = __webpack_require__(120); +const pMap = __webpack_require__(565); +const arrify = __webpack_require__(560); +const globby = __webpack_require__(568); +const hasGlob = __webpack_require__(757); +const cpFile = __webpack_require__(759); +const junk = __webpack_require__(769); +const pFilter = __webpack_require__(770); +const CpyError = __webpack_require__(772); const defaultOptions = { ignoreJunk: true @@ -64018,12 +63951,12 @@ module.exports = (source, destination, { /***/ }), -/* 566 */ +/* 565 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const AggregateError = __webpack_require__(567); +const AggregateError = __webpack_require__(566); module.exports = async ( iterable, @@ -64106,13 +64039,13 @@ module.exports = async ( /***/ }), -/* 567 */ +/* 566 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const indentString = __webpack_require__(568); -const cleanStack = __webpack_require__(244); +const indentString = __webpack_require__(567); +const cleanStack = __webpack_require__(243); const cleanInternalStack = stack => stack.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g, ''); @@ -64160,7 +64093,7 @@ module.exports = AggregateError; /***/ }), -/* 568 */ +/* 567 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -64202,17 +64135,17 @@ module.exports = (string, count = 1, options) => { /***/ }), -/* 569 */ +/* 568 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const fs = __webpack_require__(134); -const arrayUnion = __webpack_require__(570); -const glob = __webpack_require__(147); -const fastGlob = __webpack_require__(572); -const dirGlob = __webpack_require__(751); -const gitignore = __webpack_require__(754); +const fs = __webpack_require__(133); +const arrayUnion = __webpack_require__(569); +const glob = __webpack_require__(146); +const fastGlob = __webpack_require__(571); +const dirGlob = __webpack_require__(750); +const gitignore = __webpack_require__(753); const DEFAULT_FILTER = () => false; @@ -64357,12 +64290,12 @@ module.exports.gitignore = gitignore; /***/ }), -/* 570 */ +/* 569 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var arrayUniq = __webpack_require__(571); +var arrayUniq = __webpack_require__(570); module.exports = function () { return arrayUniq([].concat.apply([], arguments)); @@ -64370,7 +64303,7 @@ module.exports = function () { /***/ }), -/* 571 */ +/* 570 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -64439,10 +64372,10 @@ if ('Set' in global) { /***/ }), -/* 572 */ +/* 571 */ /***/ (function(module, exports, __webpack_require__) { -const pkg = __webpack_require__(573); +const pkg = __webpack_require__(572); module.exports = pkg.async; module.exports.default = pkg.async; @@ -64455,19 +64388,19 @@ module.exports.generateTasks = pkg.generateTasks; /***/ }), -/* 573 */ +/* 572 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var optionsManager = __webpack_require__(574); -var taskManager = __webpack_require__(575); -var reader_async_1 = __webpack_require__(722); -var reader_stream_1 = __webpack_require__(746); -var reader_sync_1 = __webpack_require__(747); -var arrayUtils = __webpack_require__(749); -var streamUtils = __webpack_require__(750); +var optionsManager = __webpack_require__(573); +var taskManager = __webpack_require__(574); +var reader_async_1 = __webpack_require__(721); +var reader_stream_1 = __webpack_require__(745); +var reader_sync_1 = __webpack_require__(746); +var arrayUtils = __webpack_require__(748); +var streamUtils = __webpack_require__(749); /** * Synchronous API. */ @@ -64533,7 +64466,7 @@ function isString(source) { /***/ }), -/* 574 */ +/* 573 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -64571,13 +64504,13 @@ exports.prepare = prepare; /***/ }), -/* 575 */ +/* 574 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var patternUtils = __webpack_require__(576); +var patternUtils = __webpack_require__(575); /** * Generate tasks based on parent directory of each pattern. */ @@ -64668,16 +64601,16 @@ exports.convertPatternGroupToTask = convertPatternGroupToTask; /***/ }), -/* 576 */ +/* 575 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var path = __webpack_require__(4); -var globParent = __webpack_require__(577); -var isGlob = __webpack_require__(172); -var micromatch = __webpack_require__(580); +var globParent = __webpack_require__(576); +var isGlob = __webpack_require__(171); +var micromatch = __webpack_require__(579); var GLOBSTAR = '**'; /** * Return true for static pattern. @@ -64823,16 +64756,16 @@ exports.matchAny = matchAny; /***/ }), -/* 577 */ +/* 576 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var path = __webpack_require__(4); -var isglob = __webpack_require__(578); -var pathDirname = __webpack_require__(579); -var isWin32 = __webpack_require__(121).platform() === 'win32'; +var isglob = __webpack_require__(577); +var pathDirname = __webpack_require__(578); +var isWin32 = __webpack_require__(120).platform() === 'win32'; module.exports = function globParent(str) { // flip windows path separators @@ -64854,7 +64787,7 @@ module.exports = function globParent(str) { /***/ }), -/* 578 */ +/* 577 */ /***/ (function(module, exports, __webpack_require__) { /*! @@ -64864,7 +64797,7 @@ module.exports = function globParent(str) { * Licensed under the MIT License. */ -var isExtglob = __webpack_require__(173); +var isExtglob = __webpack_require__(172); module.exports = function isGlob(str) { if (typeof str !== 'string' || str === '') { @@ -64885,14 +64818,14 @@ module.exports = function isGlob(str) { /***/ }), -/* 579 */ +/* 578 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var path = __webpack_require__(4); -var inspect = __webpack_require__(112).inspect; +var inspect = __webpack_require__(111).inspect; function assertPath(path) { if (typeof path !== 'string') { @@ -65035,7 +64968,7 @@ module.exports.win32 = win32; /***/ }), -/* 580 */ +/* 579 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -65045,19 +64978,19 @@ module.exports.win32 = win32; * Module dependencies */ -var util = __webpack_require__(112); -var braces = __webpack_require__(581); -var toRegex = __webpack_require__(582); -var extend = __webpack_require__(690); +var util = __webpack_require__(111); +var braces = __webpack_require__(580); +var toRegex = __webpack_require__(581); +var extend = __webpack_require__(689); /** * Local dependencies */ -var compilers = __webpack_require__(692); -var parsers = __webpack_require__(718); -var cache = __webpack_require__(719); -var utils = __webpack_require__(720); +var compilers = __webpack_require__(691); +var parsers = __webpack_require__(717); +var cache = __webpack_require__(718); +var utils = __webpack_require__(719); var MAX_LENGTH = 1024 * 64; /** @@ -65919,7 +65852,7 @@ module.exports = micromatch; /***/ }), -/* 581 */ +/* 580 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -65929,18 +65862,18 @@ module.exports = micromatch; * Module dependencies */ -var toRegex = __webpack_require__(582); -var unique = __webpack_require__(602); -var extend = __webpack_require__(603); +var toRegex = __webpack_require__(581); +var unique = __webpack_require__(601); +var extend = __webpack_require__(602); /** * Local dependencies */ -var compilers = __webpack_require__(605); -var parsers = __webpack_require__(618); -var Braces = __webpack_require__(623); -var utils = __webpack_require__(606); +var compilers = __webpack_require__(604); +var parsers = __webpack_require__(617); +var Braces = __webpack_require__(622); +var utils = __webpack_require__(605); var MAX_LENGTH = 1024 * 64; var cache = {}; @@ -66244,16 +66177,16 @@ module.exports = braces; /***/ }), -/* 582 */ +/* 581 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var safe = __webpack_require__(583); -var define = __webpack_require__(589); -var extend = __webpack_require__(595); -var not = __webpack_require__(599); +var safe = __webpack_require__(582); +var define = __webpack_require__(588); +var extend = __webpack_require__(594); +var not = __webpack_require__(598); var MAX_LENGTH = 1024 * 64; /** @@ -66406,10 +66339,10 @@ module.exports.makeRe = makeRe; /***/ }), -/* 583 */ +/* 582 */ /***/ (function(module, exports, __webpack_require__) { -var parse = __webpack_require__(584); +var parse = __webpack_require__(583); var types = parse.types; module.exports = function (re, opts) { @@ -66455,13 +66388,13 @@ function isRegExp (x) { /***/ }), -/* 584 */ +/* 583 */ /***/ (function(module, exports, __webpack_require__) { -var util = __webpack_require__(585); -var types = __webpack_require__(586); -var sets = __webpack_require__(587); -var positions = __webpack_require__(588); +var util = __webpack_require__(584); +var types = __webpack_require__(585); +var sets = __webpack_require__(586); +var positions = __webpack_require__(587); module.exports = function(regexpStr) { @@ -66743,11 +66676,11 @@ module.exports.types = types; /***/ }), -/* 585 */ +/* 584 */ /***/ (function(module, exports, __webpack_require__) { -var types = __webpack_require__(586); -var sets = __webpack_require__(587); +var types = __webpack_require__(585); +var sets = __webpack_require__(586); // All of these are private and only used by randexp. @@ -66860,7 +66793,7 @@ exports.error = function(regexp, msg) { /***/ }), -/* 586 */ +/* 585 */ /***/ (function(module, exports) { module.exports = { @@ -66876,10 +66809,10 @@ module.exports = { /***/ }), -/* 587 */ +/* 586 */ /***/ (function(module, exports, __webpack_require__) { -var types = __webpack_require__(586); +var types = __webpack_require__(585); var INTS = function() { return [{ type: types.RANGE , from: 48, to: 57 }]; @@ -66964,10 +66897,10 @@ exports.anyChar = function() { /***/ }), -/* 588 */ +/* 587 */ /***/ (function(module, exports, __webpack_require__) { -var types = __webpack_require__(586); +var types = __webpack_require__(585); exports.wordBoundary = function() { return { type: types.POSITION, value: 'b' }; @@ -66987,7 +66920,7 @@ exports.end = function() { /***/ }), -/* 589 */ +/* 588 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -67000,8 +66933,8 @@ exports.end = function() { -var isobject = __webpack_require__(590); -var isDescriptor = __webpack_require__(591); +var isobject = __webpack_require__(589); +var isDescriptor = __webpack_require__(590); var define = (typeof Reflect !== 'undefined' && Reflect.defineProperty) ? Reflect.defineProperty : Object.defineProperty; @@ -67032,7 +66965,7 @@ module.exports = function defineProperty(obj, key, val) { /***/ }), -/* 590 */ +/* 589 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -67051,7 +66984,7 @@ module.exports = function isObject(val) { /***/ }), -/* 591 */ +/* 590 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -67064,9 +66997,9 @@ module.exports = function isObject(val) { -var typeOf = __webpack_require__(592); -var isAccessor = __webpack_require__(593); -var isData = __webpack_require__(594); +var typeOf = __webpack_require__(591); +var isAccessor = __webpack_require__(592); +var isData = __webpack_require__(593); module.exports = function isDescriptor(obj, key) { if (typeOf(obj) !== 'object') { @@ -67080,7 +67013,7 @@ module.exports = function isDescriptor(obj, key) { /***/ }), -/* 592 */ +/* 591 */ /***/ (function(module, exports) { var toString = Object.prototype.toString; @@ -67215,7 +67148,7 @@ function isBuffer(val) { /***/ }), -/* 593 */ +/* 592 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -67228,7 +67161,7 @@ function isBuffer(val) { -var typeOf = __webpack_require__(592); +var typeOf = __webpack_require__(591); // accessor descriptor properties var accessor = { @@ -67291,7 +67224,7 @@ module.exports = isAccessorDescriptor; /***/ }), -/* 594 */ +/* 593 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -67304,7 +67237,7 @@ module.exports = isAccessorDescriptor; -var typeOf = __webpack_require__(592); +var typeOf = __webpack_require__(591); module.exports = function isDataDescriptor(obj, prop) { // data descriptor properties @@ -67347,14 +67280,14 @@ module.exports = function isDataDescriptor(obj, prop) { /***/ }), -/* 595 */ +/* 594 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var isExtendable = __webpack_require__(596); -var assignSymbols = __webpack_require__(598); +var isExtendable = __webpack_require__(595); +var assignSymbols = __webpack_require__(597); module.exports = Object.assign || function(obj/*, objects*/) { if (obj === null || typeof obj === 'undefined') { @@ -67414,7 +67347,7 @@ function isEnum(obj, key) { /***/ }), -/* 596 */ +/* 595 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -67427,7 +67360,7 @@ function isEnum(obj, key) { -var isPlainObject = __webpack_require__(597); +var isPlainObject = __webpack_require__(596); module.exports = function isExtendable(val) { return isPlainObject(val) || typeof val === 'function' || Array.isArray(val); @@ -67435,7 +67368,7 @@ module.exports = function isExtendable(val) { /***/ }), -/* 597 */ +/* 596 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -67448,7 +67381,7 @@ module.exports = function isExtendable(val) { -var isObject = __webpack_require__(590); +var isObject = __webpack_require__(589); function isObjectObject(o) { return isObject(o) === true @@ -67479,7 +67412,7 @@ module.exports = function isPlainObject(o) { /***/ }), -/* 598 */ +/* 597 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -67526,14 +67459,14 @@ module.exports = function(receiver, objects) { /***/ }), -/* 599 */ +/* 598 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var extend = __webpack_require__(600); -var safe = __webpack_require__(583); +var extend = __webpack_require__(599); +var safe = __webpack_require__(582); /** * The main export is a function that takes a `pattern` string and an `options` object. @@ -67605,14 +67538,14 @@ module.exports = toRegex; /***/ }), -/* 600 */ +/* 599 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var isExtendable = __webpack_require__(601); -var assignSymbols = __webpack_require__(598); +var isExtendable = __webpack_require__(600); +var assignSymbols = __webpack_require__(597); module.exports = Object.assign || function(obj/*, objects*/) { if (obj === null || typeof obj === 'undefined') { @@ -67672,7 +67605,7 @@ function isEnum(obj, key) { /***/ }), -/* 601 */ +/* 600 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -67685,7 +67618,7 @@ function isEnum(obj, key) { -var isPlainObject = __webpack_require__(597); +var isPlainObject = __webpack_require__(596); module.exports = function isExtendable(val) { return isPlainObject(val) || typeof val === 'function' || Array.isArray(val); @@ -67693,7 +67626,7 @@ module.exports = function isExtendable(val) { /***/ }), -/* 602 */ +/* 601 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -67743,13 +67676,13 @@ module.exports.immutable = function uniqueImmutable(arr) { /***/ }), -/* 603 */ +/* 602 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var isObject = __webpack_require__(604); +var isObject = __webpack_require__(603); module.exports = function extend(o/*, objects*/) { if (!isObject(o)) { o = {}; } @@ -67783,7 +67716,7 @@ function hasOwn(obj, key) { /***/ }), -/* 604 */ +/* 603 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -67803,13 +67736,13 @@ module.exports = function isExtendable(val) { /***/ }), -/* 605 */ +/* 604 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(606); +var utils = __webpack_require__(605); module.exports = function(braces, options) { braces.compiler @@ -68092,25 +68025,25 @@ function hasQueue(node) { /***/ }), -/* 606 */ +/* 605 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var splitString = __webpack_require__(607); +var splitString = __webpack_require__(606); var utils = module.exports; /** * Module dependencies */ -utils.extend = __webpack_require__(603); -utils.flatten = __webpack_require__(610); -utils.isObject = __webpack_require__(590); -utils.fillRange = __webpack_require__(611); -utils.repeat = __webpack_require__(617); -utils.unique = __webpack_require__(602); +utils.extend = __webpack_require__(602); +utils.flatten = __webpack_require__(609); +utils.isObject = __webpack_require__(589); +utils.fillRange = __webpack_require__(610); +utils.repeat = __webpack_require__(616); +utils.unique = __webpack_require__(601); utils.define = function(obj, key, val) { Object.defineProperty(obj, key, { @@ -68442,7 +68375,7 @@ utils.escapeRegex = function(str) { /***/ }), -/* 607 */ +/* 606 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -68455,7 +68388,7 @@ utils.escapeRegex = function(str) { -var extend = __webpack_require__(608); +var extend = __webpack_require__(607); module.exports = function(str, options, fn) { if (typeof str !== 'string') { @@ -68620,14 +68553,14 @@ function keepEscaping(opts, str, idx) { /***/ }), -/* 608 */ +/* 607 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var isExtendable = __webpack_require__(609); -var assignSymbols = __webpack_require__(598); +var isExtendable = __webpack_require__(608); +var assignSymbols = __webpack_require__(597); module.exports = Object.assign || function(obj/*, objects*/) { if (obj === null || typeof obj === 'undefined') { @@ -68687,7 +68620,7 @@ function isEnum(obj, key) { /***/ }), -/* 609 */ +/* 608 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -68700,7 +68633,7 @@ function isEnum(obj, key) { -var isPlainObject = __webpack_require__(597); +var isPlainObject = __webpack_require__(596); module.exports = function isExtendable(val) { return isPlainObject(val) || typeof val === 'function' || Array.isArray(val); @@ -68708,7 +68641,7 @@ module.exports = function isExtendable(val) { /***/ }), -/* 610 */ +/* 609 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -68737,7 +68670,7 @@ function flat(arr, res) { /***/ }), -/* 611 */ +/* 610 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -68750,11 +68683,11 @@ function flat(arr, res) { -var util = __webpack_require__(112); -var isNumber = __webpack_require__(612); -var extend = __webpack_require__(603); -var repeat = __webpack_require__(615); -var toRegex = __webpack_require__(616); +var util = __webpack_require__(111); +var isNumber = __webpack_require__(611); +var extend = __webpack_require__(602); +var repeat = __webpack_require__(614); +var toRegex = __webpack_require__(615); /** * Return a range of numbers or letters. @@ -68952,7 +68885,7 @@ module.exports = fillRange; /***/ }), -/* 612 */ +/* 611 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -68965,7 +68898,7 @@ module.exports = fillRange; -var typeOf = __webpack_require__(613); +var typeOf = __webpack_require__(612); module.exports = function isNumber(num) { var type = typeOf(num); @@ -68981,10 +68914,10 @@ module.exports = function isNumber(num) { /***/ }), -/* 613 */ +/* 612 */ /***/ (function(module, exports, __webpack_require__) { -var isBuffer = __webpack_require__(614); +var isBuffer = __webpack_require__(613); var toString = Object.prototype.toString; /** @@ -69103,7 +69036,7 @@ module.exports = function kindOf(val) { /***/ }), -/* 614 */ +/* 613 */ /***/ (function(module, exports) { /*! @@ -69130,7 +69063,7 @@ function isSlowBuffer (obj) { /***/ }), -/* 615 */ +/* 614 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -69207,7 +69140,7 @@ function repeat(str, num) { /***/ }), -/* 616 */ +/* 615 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -69220,8 +69153,8 @@ function repeat(str, num) { -var repeat = __webpack_require__(615); -var isNumber = __webpack_require__(612); +var repeat = __webpack_require__(614); +var isNumber = __webpack_require__(611); var cache = {}; function toRegexRange(min, max, options) { @@ -69508,7 +69441,7 @@ module.exports = toRegexRange; /***/ }), -/* 617 */ +/* 616 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -69533,14 +69466,14 @@ module.exports = function repeat(ele, num) { /***/ }), -/* 618 */ +/* 617 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var Node = __webpack_require__(619); -var utils = __webpack_require__(606); +var Node = __webpack_require__(618); +var utils = __webpack_require__(605); /** * Braces parsers @@ -69900,15 +69833,15 @@ function concatNodes(pos, node, parent, options) { /***/ }), -/* 619 */ +/* 618 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var isObject = __webpack_require__(590); -var define = __webpack_require__(620); -var utils = __webpack_require__(621); +var isObject = __webpack_require__(589); +var define = __webpack_require__(619); +var utils = __webpack_require__(620); var ownNames; /** @@ -70399,7 +70332,7 @@ exports = module.exports = Node; /***/ }), -/* 620 */ +/* 619 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -70412,7 +70345,7 @@ exports = module.exports = Node; -var isDescriptor = __webpack_require__(591); +var isDescriptor = __webpack_require__(590); module.exports = function defineProperty(obj, prop, val) { if (typeof obj !== 'object' && typeof obj !== 'function') { @@ -70437,13 +70370,13 @@ module.exports = function defineProperty(obj, prop, val) { /***/ }), -/* 621 */ +/* 620 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var typeOf = __webpack_require__(622); +var typeOf = __webpack_require__(621); var utils = module.exports; /** @@ -71463,10 +71396,10 @@ function assert(val, message) { /***/ }), -/* 622 */ +/* 621 */ /***/ (function(module, exports, __webpack_require__) { -var isBuffer = __webpack_require__(614); +var isBuffer = __webpack_require__(613); var toString = Object.prototype.toString; /** @@ -71585,17 +71518,17 @@ module.exports = function kindOf(val) { /***/ }), -/* 623 */ +/* 622 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var extend = __webpack_require__(603); -var Snapdragon = __webpack_require__(624); -var compilers = __webpack_require__(605); -var parsers = __webpack_require__(618); -var utils = __webpack_require__(606); +var extend = __webpack_require__(602); +var Snapdragon = __webpack_require__(623); +var compilers = __webpack_require__(604); +var parsers = __webpack_require__(617); +var utils = __webpack_require__(605); /** * Customize Snapdragon parser and renderer @@ -71696,17 +71629,17 @@ module.exports = Braces; /***/ }), -/* 624 */ +/* 623 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var Base = __webpack_require__(625); -var define = __webpack_require__(653); -var Compiler = __webpack_require__(664); -var Parser = __webpack_require__(687); -var utils = __webpack_require__(667); +var Base = __webpack_require__(624); +var define = __webpack_require__(652); +var Compiler = __webpack_require__(663); +var Parser = __webpack_require__(686); +var utils = __webpack_require__(666); var regexCache = {}; var cache = {}; @@ -71877,20 +71810,20 @@ module.exports.Parser = Parser; /***/ }), -/* 625 */ +/* 624 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var util = __webpack_require__(112); -var define = __webpack_require__(626); -var CacheBase = __webpack_require__(627); -var Emitter = __webpack_require__(628); -var isObject = __webpack_require__(590); -var merge = __webpack_require__(647); -var pascal = __webpack_require__(650); -var cu = __webpack_require__(651); +var util = __webpack_require__(111); +var define = __webpack_require__(625); +var CacheBase = __webpack_require__(626); +var Emitter = __webpack_require__(627); +var isObject = __webpack_require__(589); +var merge = __webpack_require__(646); +var pascal = __webpack_require__(649); +var cu = __webpack_require__(650); /** * Optionally define a custom `cache` namespace to use. @@ -72319,7 +72252,7 @@ module.exports.namespace = namespace; /***/ }), -/* 626 */ +/* 625 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -72332,7 +72265,7 @@ module.exports.namespace = namespace; -var isDescriptor = __webpack_require__(591); +var isDescriptor = __webpack_require__(590); module.exports = function defineProperty(obj, prop, val) { if (typeof obj !== 'object' && typeof obj !== 'function') { @@ -72357,21 +72290,21 @@ module.exports = function defineProperty(obj, prop, val) { /***/ }), -/* 627 */ +/* 626 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var isObject = __webpack_require__(590); -var Emitter = __webpack_require__(628); -var visit = __webpack_require__(629); -var toPath = __webpack_require__(632); -var union = __webpack_require__(634); -var del = __webpack_require__(638); -var get = __webpack_require__(636); -var has = __webpack_require__(643); -var set = __webpack_require__(646); +var isObject = __webpack_require__(589); +var Emitter = __webpack_require__(627); +var visit = __webpack_require__(628); +var toPath = __webpack_require__(631); +var union = __webpack_require__(633); +var del = __webpack_require__(637); +var get = __webpack_require__(635); +var has = __webpack_require__(642); +var set = __webpack_require__(645); /** * Create a `Cache` constructor that when instantiated will @@ -72625,7 +72558,7 @@ module.exports.namespace = namespace; /***/ }), -/* 628 */ +/* 627 */ /***/ (function(module, exports, __webpack_require__) { @@ -72794,7 +72727,7 @@ Emitter.prototype.hasListeners = function(event){ /***/ }), -/* 629 */ +/* 628 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -72807,8 +72740,8 @@ Emitter.prototype.hasListeners = function(event){ -var visit = __webpack_require__(630); -var mapVisit = __webpack_require__(631); +var visit = __webpack_require__(629); +var mapVisit = __webpack_require__(630); module.exports = function(collection, method, val) { var result; @@ -72831,7 +72764,7 @@ module.exports = function(collection, method, val) { /***/ }), -/* 630 */ +/* 629 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -72844,7 +72777,7 @@ module.exports = function(collection, method, val) { -var isObject = __webpack_require__(590); +var isObject = __webpack_require__(589); module.exports = function visit(thisArg, method, target, val) { if (!isObject(thisArg) && typeof thisArg !== 'function') { @@ -72871,14 +72804,14 @@ module.exports = function visit(thisArg, method, target, val) { /***/ }), -/* 631 */ +/* 630 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var util = __webpack_require__(112); -var visit = __webpack_require__(630); +var util = __webpack_require__(111); +var visit = __webpack_require__(629); /** * Map `visit` over an array of objects. @@ -72915,7 +72848,7 @@ function isObject(val) { /***/ }), -/* 632 */ +/* 631 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -72928,7 +72861,7 @@ function isObject(val) { -var typeOf = __webpack_require__(633); +var typeOf = __webpack_require__(632); module.exports = function toPath(args) { if (typeOf(args) !== 'arguments') { @@ -72955,10 +72888,10 @@ function filter(arr) { /***/ }), -/* 633 */ +/* 632 */ /***/ (function(module, exports, __webpack_require__) { -var isBuffer = __webpack_require__(614); +var isBuffer = __webpack_require__(613); var toString = Object.prototype.toString; /** @@ -73077,16 +73010,16 @@ module.exports = function kindOf(val) { /***/ }), -/* 634 */ +/* 633 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var isObject = __webpack_require__(604); -var union = __webpack_require__(635); -var get = __webpack_require__(636); -var set = __webpack_require__(637); +var isObject = __webpack_require__(603); +var union = __webpack_require__(634); +var get = __webpack_require__(635); +var set = __webpack_require__(636); module.exports = function unionValue(obj, prop, value) { if (!isObject(obj)) { @@ -73114,7 +73047,7 @@ function arrayify(val) { /***/ }), -/* 635 */ +/* 634 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -73150,7 +73083,7 @@ module.exports = function union(init) { /***/ }), -/* 636 */ +/* 635 */ /***/ (function(module, exports) { /*! @@ -73206,7 +73139,7 @@ function toString(val) { /***/ }), -/* 637 */ +/* 636 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -73219,10 +73152,10 @@ function toString(val) { -var split = __webpack_require__(607); -var extend = __webpack_require__(603); -var isPlainObject = __webpack_require__(597); -var isObject = __webpack_require__(604); +var split = __webpack_require__(606); +var extend = __webpack_require__(602); +var isPlainObject = __webpack_require__(596); +var isObject = __webpack_require__(603); module.exports = function(obj, prop, val) { if (!isObject(obj)) { @@ -73268,7 +73201,7 @@ function isValidKey(key) { /***/ }), -/* 638 */ +/* 637 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -73281,8 +73214,8 @@ function isValidKey(key) { -var isObject = __webpack_require__(590); -var has = __webpack_require__(639); +var isObject = __webpack_require__(589); +var has = __webpack_require__(638); module.exports = function unset(obj, prop) { if (!isObject(obj)) { @@ -73307,7 +73240,7 @@ module.exports = function unset(obj, prop) { /***/ }), -/* 639 */ +/* 638 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -73320,9 +73253,9 @@ module.exports = function unset(obj, prop) { -var isObject = __webpack_require__(640); -var hasValues = __webpack_require__(642); -var get = __webpack_require__(636); +var isObject = __webpack_require__(639); +var hasValues = __webpack_require__(641); +var get = __webpack_require__(635); module.exports = function(obj, prop, noZero) { if (isObject(obj)) { @@ -73333,7 +73266,7 @@ module.exports = function(obj, prop, noZero) { /***/ }), -/* 640 */ +/* 639 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -73346,7 +73279,7 @@ module.exports = function(obj, prop, noZero) { -var isArray = __webpack_require__(641); +var isArray = __webpack_require__(640); module.exports = function isObject(val) { return val != null && typeof val === 'object' && isArray(val) === false; @@ -73354,7 +73287,7 @@ module.exports = function isObject(val) { /***/ }), -/* 641 */ +/* 640 */ /***/ (function(module, exports) { var toString = {}.toString; @@ -73365,7 +73298,7 @@ module.exports = Array.isArray || function (arr) { /***/ }), -/* 642 */ +/* 641 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -73408,7 +73341,7 @@ module.exports = function hasValue(o, noZero) { /***/ }), -/* 643 */ +/* 642 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -73421,9 +73354,9 @@ module.exports = function hasValue(o, noZero) { -var isObject = __webpack_require__(590); -var hasValues = __webpack_require__(644); -var get = __webpack_require__(636); +var isObject = __webpack_require__(589); +var hasValues = __webpack_require__(643); +var get = __webpack_require__(635); module.exports = function(val, prop) { return hasValues(isObject(val) && prop ? get(val, prop) : val); @@ -73431,7 +73364,7 @@ module.exports = function(val, prop) { /***/ }), -/* 644 */ +/* 643 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -73444,8 +73377,8 @@ module.exports = function(val, prop) { -var typeOf = __webpack_require__(645); -var isNumber = __webpack_require__(612); +var typeOf = __webpack_require__(644); +var isNumber = __webpack_require__(611); module.exports = function hasValue(val) { // is-number checks for NaN and other edge cases @@ -73498,10 +73431,10 @@ module.exports = function hasValue(val) { /***/ }), -/* 645 */ +/* 644 */ /***/ (function(module, exports, __webpack_require__) { -var isBuffer = __webpack_require__(614); +var isBuffer = __webpack_require__(613); var toString = Object.prototype.toString; /** @@ -73623,7 +73556,7 @@ module.exports = function kindOf(val) { /***/ }), -/* 646 */ +/* 645 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -73636,10 +73569,10 @@ module.exports = function kindOf(val) { -var split = __webpack_require__(607); -var extend = __webpack_require__(603); -var isPlainObject = __webpack_require__(597); -var isObject = __webpack_require__(604); +var split = __webpack_require__(606); +var extend = __webpack_require__(602); +var isPlainObject = __webpack_require__(596); +var isObject = __webpack_require__(603); module.exports = function(obj, prop, val) { if (!isObject(obj)) { @@ -73685,14 +73618,14 @@ function isValidKey(key) { /***/ }), -/* 647 */ +/* 646 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var isExtendable = __webpack_require__(648); -var forIn = __webpack_require__(649); +var isExtendable = __webpack_require__(647); +var forIn = __webpack_require__(648); function mixinDeep(target, objects) { var len = arguments.length, i = 0; @@ -73756,7 +73689,7 @@ module.exports = mixinDeep; /***/ }), -/* 648 */ +/* 647 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -73769,7 +73702,7 @@ module.exports = mixinDeep; -var isPlainObject = __webpack_require__(597); +var isPlainObject = __webpack_require__(596); module.exports = function isExtendable(val) { return isPlainObject(val) || typeof val === 'function' || Array.isArray(val); @@ -73777,7 +73710,7 @@ module.exports = function isExtendable(val) { /***/ }), -/* 649 */ +/* 648 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -73800,7 +73733,7 @@ module.exports = function forIn(obj, fn, thisArg) { /***/ }), -/* 650 */ +/* 649 */ /***/ (function(module, exports) { /*! @@ -73827,14 +73760,14 @@ module.exports = pascalcase; /***/ }), -/* 651 */ +/* 650 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var util = __webpack_require__(112); -var utils = __webpack_require__(652); +var util = __webpack_require__(111); +var utils = __webpack_require__(651); /** * Expose class utils @@ -74199,7 +74132,7 @@ cu.bubble = function(Parent, events) { /***/ }), -/* 652 */ +/* 651 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -74213,10 +74146,10 @@ var utils = {}; * Lazily required module dependencies */ -utils.union = __webpack_require__(635); -utils.define = __webpack_require__(653); -utils.isObj = __webpack_require__(590); -utils.staticExtend = __webpack_require__(660); +utils.union = __webpack_require__(634); +utils.define = __webpack_require__(652); +utils.isObj = __webpack_require__(589); +utils.staticExtend = __webpack_require__(659); /** @@ -74227,7 +74160,7 @@ module.exports = utils; /***/ }), -/* 653 */ +/* 652 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -74240,7 +74173,7 @@ module.exports = utils; -var isDescriptor = __webpack_require__(654); +var isDescriptor = __webpack_require__(653); module.exports = function defineProperty(obj, prop, val) { if (typeof obj !== 'object' && typeof obj !== 'function') { @@ -74265,7 +74198,7 @@ module.exports = function defineProperty(obj, prop, val) { /***/ }), -/* 654 */ +/* 653 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -74278,9 +74211,9 @@ module.exports = function defineProperty(obj, prop, val) { -var typeOf = __webpack_require__(655); -var isAccessor = __webpack_require__(656); -var isData = __webpack_require__(658); +var typeOf = __webpack_require__(654); +var isAccessor = __webpack_require__(655); +var isData = __webpack_require__(657); module.exports = function isDescriptor(obj, key) { if (typeOf(obj) !== 'object') { @@ -74294,7 +74227,7 @@ module.exports = function isDescriptor(obj, key) { /***/ }), -/* 655 */ +/* 654 */ /***/ (function(module, exports) { var toString = Object.prototype.toString; @@ -74447,7 +74380,7 @@ function isBuffer(val) { /***/ }), -/* 656 */ +/* 655 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -74460,7 +74393,7 @@ function isBuffer(val) { -var typeOf = __webpack_require__(657); +var typeOf = __webpack_require__(656); // accessor descriptor properties var accessor = { @@ -74523,10 +74456,10 @@ module.exports = isAccessorDescriptor; /***/ }), -/* 657 */ +/* 656 */ /***/ (function(module, exports, __webpack_require__) { -var isBuffer = __webpack_require__(614); +var isBuffer = __webpack_require__(613); var toString = Object.prototype.toString; /** @@ -74645,7 +74578,7 @@ module.exports = function kindOf(val) { /***/ }), -/* 658 */ +/* 657 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -74658,7 +74591,7 @@ module.exports = function kindOf(val) { -var typeOf = __webpack_require__(659); +var typeOf = __webpack_require__(658); // data descriptor properties var data = { @@ -74707,10 +74640,10 @@ module.exports = isDataDescriptor; /***/ }), -/* 659 */ +/* 658 */ /***/ (function(module, exports, __webpack_require__) { -var isBuffer = __webpack_require__(614); +var isBuffer = __webpack_require__(613); var toString = Object.prototype.toString; /** @@ -74829,7 +74762,7 @@ module.exports = function kindOf(val) { /***/ }), -/* 660 */ +/* 659 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -74842,9 +74775,9 @@ module.exports = function kindOf(val) { -var copy = __webpack_require__(661); -var define = __webpack_require__(653); -var util = __webpack_require__(112); +var copy = __webpack_require__(660); +var define = __webpack_require__(652); +var util = __webpack_require__(111); /** * Returns a function for extending the static properties, @@ -74926,15 +74859,15 @@ module.exports = extend; /***/ }), -/* 661 */ +/* 660 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var typeOf = __webpack_require__(662); -var copyDescriptor = __webpack_require__(663); -var define = __webpack_require__(653); +var typeOf = __webpack_require__(661); +var copyDescriptor = __webpack_require__(662); +var define = __webpack_require__(652); /** * Copy static properties, prototype properties, and descriptors from one object to another. @@ -75107,10 +75040,10 @@ module.exports.has = has; /***/ }), -/* 662 */ +/* 661 */ /***/ (function(module, exports, __webpack_require__) { -var isBuffer = __webpack_require__(614); +var isBuffer = __webpack_require__(613); var toString = Object.prototype.toString; /** @@ -75229,7 +75162,7 @@ module.exports = function kindOf(val) { /***/ }), -/* 663 */ +/* 662 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -75317,16 +75250,16 @@ function isObject(val) { /***/ }), -/* 664 */ +/* 663 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var use = __webpack_require__(665); -var define = __webpack_require__(653); -var debug = __webpack_require__(543)('snapdragon:compiler'); -var utils = __webpack_require__(667); +var use = __webpack_require__(664); +var define = __webpack_require__(652); +var debug = __webpack_require__(542)('snapdragon:compiler'); +var utils = __webpack_require__(666); /** * Create a new `Compiler` with the given `options`. @@ -75480,7 +75413,7 @@ Compiler.prototype = { // source map support if (opts.sourcemap) { - var sourcemaps = __webpack_require__(686); + var sourcemaps = __webpack_require__(685); sourcemaps(this); this.mapVisit(this.ast.nodes); this.applySourceMaps(); @@ -75501,7 +75434,7 @@ module.exports = Compiler; /***/ }), -/* 665 */ +/* 664 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -75514,7 +75447,7 @@ module.exports = Compiler; -var utils = __webpack_require__(666); +var utils = __webpack_require__(665); module.exports = function base(app, opts) { if (!utils.isObject(app) && typeof app !== 'function') { @@ -75629,7 +75562,7 @@ module.exports = function base(app, opts) { /***/ }), -/* 666 */ +/* 665 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -75643,8 +75576,8 @@ var utils = {}; * Lazily required module dependencies */ -utils.define = __webpack_require__(653); -utils.isObject = __webpack_require__(590); +utils.define = __webpack_require__(652); +utils.isObject = __webpack_require__(589); utils.isString = function(val) { @@ -75659,7 +75592,7 @@ module.exports = utils; /***/ }), -/* 667 */ +/* 666 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -75669,9 +75602,9 @@ module.exports = utils; * Module dependencies */ -exports.extend = __webpack_require__(603); -exports.SourceMap = __webpack_require__(668); -exports.sourceMapResolve = __webpack_require__(679); +exports.extend = __webpack_require__(602); +exports.SourceMap = __webpack_require__(667); +exports.sourceMapResolve = __webpack_require__(678); /** * Convert backslash in the given string to forward slashes @@ -75714,7 +75647,7 @@ exports.last = function(arr, n) { /***/ }), -/* 668 */ +/* 667 */ /***/ (function(module, exports, __webpack_require__) { /* @@ -75722,13 +75655,13 @@ exports.last = function(arr, n) { * Licensed under the New BSD license. See LICENSE.txt or: * http://opensource.org/licenses/BSD-3-Clause */ -exports.SourceMapGenerator = __webpack_require__(669).SourceMapGenerator; -exports.SourceMapConsumer = __webpack_require__(675).SourceMapConsumer; -exports.SourceNode = __webpack_require__(678).SourceNode; +exports.SourceMapGenerator = __webpack_require__(668).SourceMapGenerator; +exports.SourceMapConsumer = __webpack_require__(674).SourceMapConsumer; +exports.SourceNode = __webpack_require__(677).SourceNode; /***/ }), -/* 669 */ +/* 668 */ /***/ (function(module, exports, __webpack_require__) { /* -*- Mode: js; js-indent-level: 2; -*- */ @@ -75738,10 +75671,10 @@ exports.SourceNode = __webpack_require__(678).SourceNode; * http://opensource.org/licenses/BSD-3-Clause */ -var base64VLQ = __webpack_require__(670); -var util = __webpack_require__(672); -var ArraySet = __webpack_require__(673).ArraySet; -var MappingList = __webpack_require__(674).MappingList; +var base64VLQ = __webpack_require__(669); +var util = __webpack_require__(671); +var ArraySet = __webpack_require__(672).ArraySet; +var MappingList = __webpack_require__(673).MappingList; /** * An instance of the SourceMapGenerator represents a source map which is @@ -76150,7 +76083,7 @@ exports.SourceMapGenerator = SourceMapGenerator; /***/ }), -/* 670 */ +/* 669 */ /***/ (function(module, exports, __webpack_require__) { /* -*- Mode: js; js-indent-level: 2; -*- */ @@ -76190,7 +76123,7 @@ exports.SourceMapGenerator = SourceMapGenerator; * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -var base64 = __webpack_require__(671); +var base64 = __webpack_require__(670); // A single base 64 digit can contain 6 bits of data. For the base 64 variable // length quantities we use in the source map spec, the first bit is the sign, @@ -76296,7 +76229,7 @@ exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { /***/ }), -/* 671 */ +/* 670 */ /***/ (function(module, exports) { /* -*- Mode: js; js-indent-level: 2; -*- */ @@ -76369,7 +76302,7 @@ exports.decode = function (charCode) { /***/ }), -/* 672 */ +/* 671 */ /***/ (function(module, exports) { /* -*- Mode: js; js-indent-level: 2; -*- */ @@ -76792,7 +76725,7 @@ exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflate /***/ }), -/* 673 */ +/* 672 */ /***/ (function(module, exports, __webpack_require__) { /* -*- Mode: js; js-indent-level: 2; -*- */ @@ -76802,7 +76735,7 @@ exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflate * http://opensource.org/licenses/BSD-3-Clause */ -var util = __webpack_require__(672); +var util = __webpack_require__(671); var has = Object.prototype.hasOwnProperty; var hasNativeMap = typeof Map !== "undefined"; @@ -76919,7 +76852,7 @@ exports.ArraySet = ArraySet; /***/ }), -/* 674 */ +/* 673 */ /***/ (function(module, exports, __webpack_require__) { /* -*- Mode: js; js-indent-level: 2; -*- */ @@ -76929,7 +76862,7 @@ exports.ArraySet = ArraySet; * http://opensource.org/licenses/BSD-3-Clause */ -var util = __webpack_require__(672); +var util = __webpack_require__(671); /** * Determine whether mappingB is after mappingA with respect to generated @@ -77004,7 +76937,7 @@ exports.MappingList = MappingList; /***/ }), -/* 675 */ +/* 674 */ /***/ (function(module, exports, __webpack_require__) { /* -*- Mode: js; js-indent-level: 2; -*- */ @@ -77014,11 +76947,11 @@ exports.MappingList = MappingList; * http://opensource.org/licenses/BSD-3-Clause */ -var util = __webpack_require__(672); -var binarySearch = __webpack_require__(676); -var ArraySet = __webpack_require__(673).ArraySet; -var base64VLQ = __webpack_require__(670); -var quickSort = __webpack_require__(677).quickSort; +var util = __webpack_require__(671); +var binarySearch = __webpack_require__(675); +var ArraySet = __webpack_require__(672).ArraySet; +var base64VLQ = __webpack_require__(669); +var quickSort = __webpack_require__(676).quickSort; function SourceMapConsumer(aSourceMap) { var sourceMap = aSourceMap; @@ -78092,7 +78025,7 @@ exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer; /***/ }), -/* 676 */ +/* 675 */ /***/ (function(module, exports) { /* -*- Mode: js; js-indent-level: 2; -*- */ @@ -78209,7 +78142,7 @@ exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { /***/ }), -/* 677 */ +/* 676 */ /***/ (function(module, exports) { /* -*- Mode: js; js-indent-level: 2; -*- */ @@ -78329,7 +78262,7 @@ exports.quickSort = function (ary, comparator) { /***/ }), -/* 678 */ +/* 677 */ /***/ (function(module, exports, __webpack_require__) { /* -*- Mode: js; js-indent-level: 2; -*- */ @@ -78339,8 +78272,8 @@ exports.quickSort = function (ary, comparator) { * http://opensource.org/licenses/BSD-3-Clause */ -var SourceMapGenerator = __webpack_require__(669).SourceMapGenerator; -var util = __webpack_require__(672); +var SourceMapGenerator = __webpack_require__(668).SourceMapGenerator; +var util = __webpack_require__(671); // Matches a Windows-style `\r\n` newline or a `\n` newline used by all other // operating systems these days (capturing the result). @@ -78748,17 +78681,17 @@ exports.SourceNode = SourceNode; /***/ }), -/* 679 */ +/* 678 */ /***/ (function(module, exports, __webpack_require__) { // Copyright 2014, 2015, 2016, 2017 Simon Lydell // X11 (“MIT”) Licensed. (See LICENSE.) -var sourceMappingURL = __webpack_require__(680) -var resolveUrl = __webpack_require__(681) -var decodeUriComponent = __webpack_require__(682) -var urix = __webpack_require__(684) -var atob = __webpack_require__(685) +var sourceMappingURL = __webpack_require__(679) +var resolveUrl = __webpack_require__(680) +var decodeUriComponent = __webpack_require__(681) +var urix = __webpack_require__(683) +var atob = __webpack_require__(684) @@ -79056,7 +78989,7 @@ module.exports = { /***/ }), -/* 680 */ +/* 679 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;// Copyright 2014 Simon Lydell @@ -79119,13 +79052,13 @@ void (function(root, factory) { /***/ }), -/* 681 */ +/* 680 */ /***/ (function(module, exports, __webpack_require__) { // Copyright 2014 Simon Lydell // X11 (“MIT”) Licensed. (See LICENSE.) -var url = __webpack_require__(283) +var url = __webpack_require__(282) function resolveUrl(/* ...urls */) { return Array.prototype.reduce.call(arguments, function(resolved, nextUrl) { @@ -79137,13 +79070,13 @@ module.exports = resolveUrl /***/ }), -/* 682 */ +/* 681 */ /***/ (function(module, exports, __webpack_require__) { // Copyright 2017 Simon Lydell // X11 (“MIT”) Licensed. (See LICENSE.) -var decodeUriComponent = __webpack_require__(683) +var decodeUriComponent = __webpack_require__(682) function customDecodeUriComponent(string) { // `decodeUriComponent` turns `+` into ` `, but that's not wanted. @@ -79154,7 +79087,7 @@ module.exports = customDecodeUriComponent /***/ }), -/* 683 */ +/* 682 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -79255,7 +79188,7 @@ module.exports = function (encodedURI) { /***/ }), -/* 684 */ +/* 683 */ /***/ (function(module, exports, __webpack_require__) { // Copyright 2014 Simon Lydell @@ -79278,7 +79211,7 @@ module.exports = urix /***/ }), -/* 685 */ +/* 684 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -79292,16 +79225,16 @@ module.exports = atob.atob = atob; /***/ }), -/* 686 */ +/* 685 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var fs = __webpack_require__(134); +var fs = __webpack_require__(133); var path = __webpack_require__(4); -var define = __webpack_require__(653); -var utils = __webpack_require__(667); +var define = __webpack_require__(652); +var utils = __webpack_require__(666); /** * Expose `mixin()`. @@ -79444,19 +79377,19 @@ exports.comment = function(node) { /***/ }), -/* 687 */ +/* 686 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var use = __webpack_require__(665); -var util = __webpack_require__(112); -var Cache = __webpack_require__(688); -var define = __webpack_require__(653); -var debug = __webpack_require__(543)('snapdragon:parser'); -var Position = __webpack_require__(689); -var utils = __webpack_require__(667); +var use = __webpack_require__(664); +var util = __webpack_require__(111); +var Cache = __webpack_require__(687); +var define = __webpack_require__(652); +var debug = __webpack_require__(542)('snapdragon:parser'); +var Position = __webpack_require__(688); +var utils = __webpack_require__(666); /** * Create a new `Parser` with the given `input` and `options`. @@ -79984,7 +79917,7 @@ module.exports = Parser; /***/ }), -/* 688 */ +/* 687 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -80091,13 +80024,13 @@ MapCache.prototype.del = function mapDelete(key) { /***/ }), -/* 689 */ +/* 688 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(653); +var define = __webpack_require__(652); /** * Store position for a node @@ -80112,14 +80045,14 @@ module.exports = function Position(start, parser) { /***/ }), -/* 690 */ +/* 689 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var isExtendable = __webpack_require__(691); -var assignSymbols = __webpack_require__(598); +var isExtendable = __webpack_require__(690); +var assignSymbols = __webpack_require__(597); module.exports = Object.assign || function(obj/*, objects*/) { if (obj === null || typeof obj === 'undefined') { @@ -80179,7 +80112,7 @@ function isEnum(obj, key) { /***/ }), -/* 691 */ +/* 690 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -80192,7 +80125,7 @@ function isEnum(obj, key) { -var isPlainObject = __webpack_require__(597); +var isPlainObject = __webpack_require__(596); module.exports = function isExtendable(val) { return isPlainObject(val) || typeof val === 'function' || Array.isArray(val); @@ -80200,14 +80133,14 @@ module.exports = function isExtendable(val) { /***/ }), -/* 692 */ +/* 691 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var nanomatch = __webpack_require__(693); -var extglob = __webpack_require__(707); +var nanomatch = __webpack_require__(692); +var extglob = __webpack_require__(706); module.exports = function(snapdragon) { var compilers = snapdragon.compiler.compilers; @@ -80284,7 +80217,7 @@ function escapeExtglobs(compiler) { /***/ }), -/* 693 */ +/* 692 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -80294,18 +80227,18 @@ function escapeExtglobs(compiler) { * Module dependencies */ -var util = __webpack_require__(112); -var toRegex = __webpack_require__(582); -var extend = __webpack_require__(694); +var util = __webpack_require__(111); +var toRegex = __webpack_require__(581); +var extend = __webpack_require__(693); /** * Local dependencies */ -var compilers = __webpack_require__(696); -var parsers = __webpack_require__(697); -var cache = __webpack_require__(700); -var utils = __webpack_require__(702); +var compilers = __webpack_require__(695); +var parsers = __webpack_require__(696); +var cache = __webpack_require__(699); +var utils = __webpack_require__(701); var MAX_LENGTH = 1024 * 64; /** @@ -81129,14 +81062,14 @@ module.exports = nanomatch; /***/ }), -/* 694 */ +/* 693 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var isExtendable = __webpack_require__(695); -var assignSymbols = __webpack_require__(598); +var isExtendable = __webpack_require__(694); +var assignSymbols = __webpack_require__(597); module.exports = Object.assign || function(obj/*, objects*/) { if (obj === null || typeof obj === 'undefined') { @@ -81196,7 +81129,7 @@ function isEnum(obj, key) { /***/ }), -/* 695 */ +/* 694 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -81209,7 +81142,7 @@ function isEnum(obj, key) { -var isPlainObject = __webpack_require__(597); +var isPlainObject = __webpack_require__(596); module.exports = function isExtendable(val) { return isPlainObject(val) || typeof val === 'function' || Array.isArray(val); @@ -81217,7 +81150,7 @@ module.exports = function isExtendable(val) { /***/ }), -/* 696 */ +/* 695 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -81563,15 +81496,15 @@ module.exports = function(nanomatch, options) { /***/ }), -/* 697 */ +/* 696 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var regexNot = __webpack_require__(599); -var toRegex = __webpack_require__(582); -var isOdd = __webpack_require__(698); +var regexNot = __webpack_require__(598); +var toRegex = __webpack_require__(581); +var isOdd = __webpack_require__(697); /** * Characters to use in negation regex (we want to "not" match @@ -81957,7 +81890,7 @@ module.exports.not = NOT_REGEX; /***/ }), -/* 698 */ +/* 697 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -81970,7 +81903,7 @@ module.exports.not = NOT_REGEX; -var isNumber = __webpack_require__(699); +var isNumber = __webpack_require__(698); module.exports = function isOdd(i) { if (!isNumber(i)) { @@ -81984,7 +81917,7 @@ module.exports = function isOdd(i) { /***/ }), -/* 699 */ +/* 698 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -82012,14 +81945,14 @@ module.exports = function isNumber(num) { /***/ }), -/* 700 */ +/* 699 */ /***/ (function(module, exports, __webpack_require__) { -module.exports = new (__webpack_require__(701))(); +module.exports = new (__webpack_require__(700))(); /***/ }), -/* 701 */ +/* 700 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -82032,7 +81965,7 @@ module.exports = new (__webpack_require__(701))(); -var MapCache = __webpack_require__(688); +var MapCache = __webpack_require__(687); /** * Create a new `FragmentCache` with an optional object to use for `caches`. @@ -82154,7 +82087,7 @@ exports = module.exports = FragmentCache; /***/ }), -/* 702 */ +/* 701 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -82167,14 +82100,14 @@ var path = __webpack_require__(4); * Module dependencies */ -var isWindows = __webpack_require__(703)(); -var Snapdragon = __webpack_require__(624); -utils.define = __webpack_require__(704); -utils.diff = __webpack_require__(705); -utils.extend = __webpack_require__(694); -utils.pick = __webpack_require__(706); -utils.typeOf = __webpack_require__(592); -utils.unique = __webpack_require__(602); +var isWindows = __webpack_require__(702)(); +var Snapdragon = __webpack_require__(623); +utils.define = __webpack_require__(703); +utils.diff = __webpack_require__(704); +utils.extend = __webpack_require__(693); +utils.pick = __webpack_require__(705); +utils.typeOf = __webpack_require__(591); +utils.unique = __webpack_require__(601); /** * Returns true if the given value is effectively an empty string @@ -82540,7 +82473,7 @@ utils.unixify = function(options) { /***/ }), -/* 703 */ +/* 702 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! @@ -82568,7 +82501,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 704 */ +/* 703 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -82581,8 +82514,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ -var isobject = __webpack_require__(590); -var isDescriptor = __webpack_require__(591); +var isobject = __webpack_require__(589); +var isDescriptor = __webpack_require__(590); var define = (typeof Reflect !== 'undefined' && Reflect.defineProperty) ? Reflect.defineProperty : Object.defineProperty; @@ -82613,7 +82546,7 @@ module.exports = function defineProperty(obj, key, val) { /***/ }), -/* 705 */ +/* 704 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -82667,7 +82600,7 @@ function diffArray(one, two) { /***/ }), -/* 706 */ +/* 705 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -82680,7 +82613,7 @@ function diffArray(one, two) { -var isObject = __webpack_require__(590); +var isObject = __webpack_require__(589); module.exports = function pick(obj, keys) { if (!isObject(obj) && typeof obj !== 'function') { @@ -82709,7 +82642,7 @@ module.exports = function pick(obj, keys) { /***/ }), -/* 707 */ +/* 706 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -82719,18 +82652,18 @@ module.exports = function pick(obj, keys) { * Module dependencies */ -var extend = __webpack_require__(603); -var unique = __webpack_require__(602); -var toRegex = __webpack_require__(582); +var extend = __webpack_require__(602); +var unique = __webpack_require__(601); +var toRegex = __webpack_require__(581); /** * Local dependencies */ -var compilers = __webpack_require__(708); -var parsers = __webpack_require__(714); -var Extglob = __webpack_require__(717); -var utils = __webpack_require__(716); +var compilers = __webpack_require__(707); +var parsers = __webpack_require__(713); +var Extglob = __webpack_require__(716); +var utils = __webpack_require__(715); var MAX_LENGTH = 1024 * 64; /** @@ -83047,13 +82980,13 @@ module.exports = extglob; /***/ }), -/* 708 */ +/* 707 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var brackets = __webpack_require__(709); +var brackets = __webpack_require__(708); /** * Extglob compilers @@ -83223,7 +83156,7 @@ module.exports = function(extglob) { /***/ }), -/* 709 */ +/* 708 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -83233,17 +83166,17 @@ module.exports = function(extglob) { * Local dependencies */ -var compilers = __webpack_require__(710); -var parsers = __webpack_require__(712); +var compilers = __webpack_require__(709); +var parsers = __webpack_require__(711); /** * Module dependencies */ -var debug = __webpack_require__(543)('expand-brackets'); -var extend = __webpack_require__(603); -var Snapdragon = __webpack_require__(624); -var toRegex = __webpack_require__(582); +var debug = __webpack_require__(542)('expand-brackets'); +var extend = __webpack_require__(602); +var Snapdragon = __webpack_require__(623); +var toRegex = __webpack_require__(581); /** * Parses the given POSIX character class `pattern` and returns a @@ -83441,13 +83374,13 @@ module.exports = brackets; /***/ }), -/* 710 */ +/* 709 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var posix = __webpack_require__(711); +var posix = __webpack_require__(710); module.exports = function(brackets) { brackets.compiler @@ -83535,7 +83468,7 @@ module.exports = function(brackets) { /***/ }), -/* 711 */ +/* 710 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -83564,14 +83497,14 @@ module.exports = { /***/ }), -/* 712 */ +/* 711 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(713); -var define = __webpack_require__(653); +var utils = __webpack_require__(712); +var define = __webpack_require__(652); /** * Text regex @@ -83790,14 +83723,14 @@ module.exports.TEXT_REGEX = TEXT_REGEX; /***/ }), -/* 713 */ +/* 712 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var toRegex = __webpack_require__(582); -var regexNot = __webpack_require__(599); +var toRegex = __webpack_require__(581); +var regexNot = __webpack_require__(598); var cached; /** @@ -83831,15 +83764,15 @@ exports.createRegex = function(pattern, include) { /***/ }), -/* 714 */ +/* 713 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var brackets = __webpack_require__(709); -var define = __webpack_require__(715); -var utils = __webpack_require__(716); +var brackets = __webpack_require__(708); +var define = __webpack_require__(714); +var utils = __webpack_require__(715); /** * Characters to use in text regex (we want to "not" match @@ -83994,7 +83927,7 @@ module.exports = parsers; /***/ }), -/* 715 */ +/* 714 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -84007,7 +83940,7 @@ module.exports = parsers; -var isDescriptor = __webpack_require__(591); +var isDescriptor = __webpack_require__(590); module.exports = function defineProperty(obj, prop, val) { if (typeof obj !== 'object' && typeof obj !== 'function') { @@ -84032,14 +83965,14 @@ module.exports = function defineProperty(obj, prop, val) { /***/ }), -/* 716 */ +/* 715 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var regex = __webpack_require__(599); -var Cache = __webpack_require__(701); +var regex = __webpack_require__(598); +var Cache = __webpack_require__(700); /** * Utils @@ -84108,7 +84041,7 @@ utils.createRegex = function(str) { /***/ }), -/* 717 */ +/* 716 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -84118,16 +84051,16 @@ utils.createRegex = function(str) { * Module dependencies */ -var Snapdragon = __webpack_require__(624); -var define = __webpack_require__(715); -var extend = __webpack_require__(603); +var Snapdragon = __webpack_require__(623); +var define = __webpack_require__(714); +var extend = __webpack_require__(602); /** * Local dependencies */ -var compilers = __webpack_require__(708); -var parsers = __webpack_require__(714); +var compilers = __webpack_require__(707); +var parsers = __webpack_require__(713); /** * Customize Snapdragon parser and renderer @@ -84193,16 +84126,16 @@ module.exports = Extglob; /***/ }), -/* 718 */ +/* 717 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var extglob = __webpack_require__(707); -var nanomatch = __webpack_require__(693); -var regexNot = __webpack_require__(599); -var toRegex = __webpack_require__(582); +var extglob = __webpack_require__(706); +var nanomatch = __webpack_require__(692); +var regexNot = __webpack_require__(598); +var toRegex = __webpack_require__(581); var not; /** @@ -84283,14 +84216,14 @@ function textRegex(pattern) { /***/ }), -/* 719 */ +/* 718 */ /***/ (function(module, exports, __webpack_require__) { -module.exports = new (__webpack_require__(701))(); +module.exports = new (__webpack_require__(700))(); /***/ }), -/* 720 */ +/* 719 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -84303,13 +84236,13 @@ var path = __webpack_require__(4); * Module dependencies */ -var Snapdragon = __webpack_require__(624); -utils.define = __webpack_require__(721); -utils.diff = __webpack_require__(705); -utils.extend = __webpack_require__(690); -utils.pick = __webpack_require__(706); -utils.typeOf = __webpack_require__(592); -utils.unique = __webpack_require__(602); +var Snapdragon = __webpack_require__(623); +utils.define = __webpack_require__(720); +utils.diff = __webpack_require__(704); +utils.extend = __webpack_require__(689); +utils.pick = __webpack_require__(705); +utils.typeOf = __webpack_require__(591); +utils.unique = __webpack_require__(601); /** * Returns true if the platform is windows, or `path.sep` is `\\`. @@ -84606,7 +84539,7 @@ utils.unixify = function(options) { /***/ }), -/* 721 */ +/* 720 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -84619,8 +84552,8 @@ utils.unixify = function(options) { -var isobject = __webpack_require__(590); -var isDescriptor = __webpack_require__(591); +var isobject = __webpack_require__(589); +var isDescriptor = __webpack_require__(590); var define = (typeof Reflect !== 'undefined' && Reflect.defineProperty) ? Reflect.defineProperty : Object.defineProperty; @@ -84651,7 +84584,7 @@ module.exports = function defineProperty(obj, key, val) { /***/ }), -/* 722 */ +/* 721 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -84670,9 +84603,9 @@ var __extends = (this && this.__extends) || (function () { }; })(); Object.defineProperty(exports, "__esModule", { value: true }); -var readdir = __webpack_require__(723); -var reader_1 = __webpack_require__(736); -var fs_stream_1 = __webpack_require__(740); +var readdir = __webpack_require__(722); +var reader_1 = __webpack_require__(735); +var fs_stream_1 = __webpack_require__(739); var ReaderAsync = /** @class */ (function (_super) { __extends(ReaderAsync, _super); function ReaderAsync() { @@ -84733,15 +84666,15 @@ exports.default = ReaderAsync; /***/ }), -/* 723 */ +/* 722 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const readdirSync = __webpack_require__(724); -const readdirAsync = __webpack_require__(732); -const readdirStream = __webpack_require__(735); +const readdirSync = __webpack_require__(723); +const readdirAsync = __webpack_require__(731); +const readdirStream = __webpack_require__(734); module.exports = exports = readdirAsyncPath; exports.readdir = exports.readdirAsync = exports.async = readdirAsyncPath; @@ -84825,7 +84758,7 @@ function readdirStreamStat (dir, options) { /***/ }), -/* 724 */ +/* 723 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -84833,11 +84766,11 @@ function readdirStreamStat (dir, options) { module.exports = readdirSync; -const DirectoryReader = __webpack_require__(725); +const DirectoryReader = __webpack_require__(724); let syncFacade = { - fs: __webpack_require__(730), - forEach: __webpack_require__(731), + fs: __webpack_require__(729), + forEach: __webpack_require__(730), sync: true }; @@ -84866,18 +84799,18 @@ function readdirSync (dir, options, internalOptions) { /***/ }), -/* 725 */ +/* 724 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const Readable = __webpack_require__(138).Readable; -const EventEmitter = __webpack_require__(156).EventEmitter; +const Readable = __webpack_require__(137).Readable; +const EventEmitter = __webpack_require__(155).EventEmitter; const path = __webpack_require__(4); -const normalizeOptions = __webpack_require__(726); -const stat = __webpack_require__(728); -const call = __webpack_require__(729); +const normalizeOptions = __webpack_require__(725); +const stat = __webpack_require__(727); +const call = __webpack_require__(728); /** * Asynchronously reads the contents of a directory and streams the results @@ -85253,14 +85186,14 @@ module.exports = DirectoryReader; /***/ }), -/* 726 */ +/* 725 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const path = __webpack_require__(4); -const globToRegExp = __webpack_require__(727); +const globToRegExp = __webpack_require__(726); module.exports = normalizeOptions; @@ -85437,7 +85370,7 @@ function normalizeOptions (options, internalOptions) { /***/ }), -/* 727 */ +/* 726 */ /***/ (function(module, exports) { module.exports = function (glob, opts) { @@ -85574,13 +85507,13 @@ module.exports = function (glob, opts) { /***/ }), -/* 728 */ +/* 727 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const call = __webpack_require__(729); +const call = __webpack_require__(728); module.exports = stat; @@ -85655,7 +85588,7 @@ function symlinkStat (fs, path, lstats, callback) { /***/ }), -/* 729 */ +/* 728 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -85716,14 +85649,14 @@ function callOnce (fn) { /***/ }), -/* 730 */ +/* 729 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const fs = __webpack_require__(134); -const call = __webpack_require__(729); +const fs = __webpack_require__(133); +const call = __webpack_require__(728); /** * A facade around {@link fs.readdirSync} that allows it to be called @@ -85787,7 +85720,7 @@ exports.lstat = function (path, callback) { /***/ }), -/* 731 */ +/* 730 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -85816,7 +85749,7 @@ function syncForEach (array, iterator, done) { /***/ }), -/* 732 */ +/* 731 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -85824,12 +85757,12 @@ function syncForEach (array, iterator, done) { module.exports = readdirAsync; -const maybe = __webpack_require__(733); -const DirectoryReader = __webpack_require__(725); +const maybe = __webpack_require__(732); +const DirectoryReader = __webpack_require__(724); let asyncFacade = { - fs: __webpack_require__(134), - forEach: __webpack_require__(734), + fs: __webpack_require__(133), + forEach: __webpack_require__(733), async: true }; @@ -85871,7 +85804,7 @@ function readdirAsync (dir, options, callback, internalOptions) { /***/ }), -/* 733 */ +/* 732 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -85898,7 +85831,7 @@ module.exports = function maybe (cb, promise) { /***/ }), -/* 734 */ +/* 733 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -85934,7 +85867,7 @@ function asyncForEach (array, iterator, done) { /***/ }), -/* 735 */ +/* 734 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -85942,11 +85875,11 @@ function asyncForEach (array, iterator, done) { module.exports = readdirStream; -const DirectoryReader = __webpack_require__(725); +const DirectoryReader = __webpack_require__(724); let streamFacade = { - fs: __webpack_require__(134), - forEach: __webpack_require__(734), + fs: __webpack_require__(133), + forEach: __webpack_require__(733), async: true }; @@ -85966,16 +85899,16 @@ function readdirStream (dir, options, internalOptions) { /***/ }), -/* 736 */ +/* 735 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var path = __webpack_require__(4); -var deep_1 = __webpack_require__(737); -var entry_1 = __webpack_require__(739); -var pathUtil = __webpack_require__(738); +var deep_1 = __webpack_require__(736); +var entry_1 = __webpack_require__(738); +var pathUtil = __webpack_require__(737); var Reader = /** @class */ (function () { function Reader(options) { this.options = options; @@ -86041,14 +85974,14 @@ exports.default = Reader; /***/ }), -/* 737 */ +/* 736 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var pathUtils = __webpack_require__(738); -var patternUtils = __webpack_require__(576); +var pathUtils = __webpack_require__(737); +var patternUtils = __webpack_require__(575); var DeepFilter = /** @class */ (function () { function DeepFilter(options, micromatchOptions) { this.options = options; @@ -86131,7 +86064,7 @@ exports.default = DeepFilter; /***/ }), -/* 738 */ +/* 737 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -86162,14 +86095,14 @@ exports.makeAbsolute = makeAbsolute; /***/ }), -/* 739 */ +/* 738 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var pathUtils = __webpack_require__(738); -var patternUtils = __webpack_require__(576); +var pathUtils = __webpack_require__(737); +var patternUtils = __webpack_require__(575); var EntryFilter = /** @class */ (function () { function EntryFilter(options, micromatchOptions) { this.options = options; @@ -86254,7 +86187,7 @@ exports.default = EntryFilter; /***/ }), -/* 740 */ +/* 739 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -86273,9 +86206,9 @@ var __extends = (this && this.__extends) || (function () { }; })(); Object.defineProperty(exports, "__esModule", { value: true }); -var stream = __webpack_require__(138); -var fsStat = __webpack_require__(741); -var fs_1 = __webpack_require__(745); +var stream = __webpack_require__(137); +var fsStat = __webpack_require__(740); +var fs_1 = __webpack_require__(744); var FileSystemStream = /** @class */ (function (_super) { __extends(FileSystemStream, _super); function FileSystemStream() { @@ -86325,14 +86258,14 @@ exports.default = FileSystemStream; /***/ }), -/* 741 */ +/* 740 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const optionsManager = __webpack_require__(742); -const statProvider = __webpack_require__(744); +const optionsManager = __webpack_require__(741); +const statProvider = __webpack_require__(743); /** * Asynchronous API. */ @@ -86363,13 +86296,13 @@ exports.statSync = statSync; /***/ }), -/* 742 */ +/* 741 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const fsAdapter = __webpack_require__(743); +const fsAdapter = __webpack_require__(742); function prepare(opts) { const options = Object.assign({ fs: fsAdapter.getFileSystemAdapter(opts ? opts.fs : undefined), @@ -86382,13 +86315,13 @@ exports.prepare = prepare; /***/ }), -/* 743 */ +/* 742 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const fs = __webpack_require__(134); +const fs = __webpack_require__(133); exports.FILE_SYSTEM_ADAPTER = { lstat: fs.lstat, stat: fs.stat, @@ -86405,7 +86338,7 @@ exports.getFileSystemAdapter = getFileSystemAdapter; /***/ }), -/* 744 */ +/* 743 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -86457,7 +86390,7 @@ exports.isFollowedSymlink = isFollowedSymlink; /***/ }), -/* 745 */ +/* 744 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -86488,7 +86421,7 @@ exports.default = FileSystem; /***/ }), -/* 746 */ +/* 745 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -86507,10 +86440,10 @@ var __extends = (this && this.__extends) || (function () { }; })(); Object.defineProperty(exports, "__esModule", { value: true }); -var stream = __webpack_require__(138); -var readdir = __webpack_require__(723); -var reader_1 = __webpack_require__(736); -var fs_stream_1 = __webpack_require__(740); +var stream = __webpack_require__(137); +var readdir = __webpack_require__(722); +var reader_1 = __webpack_require__(735); +var fs_stream_1 = __webpack_require__(739); var TransformStream = /** @class */ (function (_super) { __extends(TransformStream, _super); function TransformStream(reader) { @@ -86578,7 +86511,7 @@ exports.default = ReaderStream; /***/ }), -/* 747 */ +/* 746 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -86597,9 +86530,9 @@ var __extends = (this && this.__extends) || (function () { }; })(); Object.defineProperty(exports, "__esModule", { value: true }); -var readdir = __webpack_require__(723); -var reader_1 = __webpack_require__(736); -var fs_sync_1 = __webpack_require__(748); +var readdir = __webpack_require__(722); +var reader_1 = __webpack_require__(735); +var fs_sync_1 = __webpack_require__(747); var ReaderSync = /** @class */ (function (_super) { __extends(ReaderSync, _super); function ReaderSync() { @@ -86659,7 +86592,7 @@ exports.default = ReaderSync; /***/ }), -/* 748 */ +/* 747 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -86678,8 +86611,8 @@ var __extends = (this && this.__extends) || (function () { }; })(); Object.defineProperty(exports, "__esModule", { value: true }); -var fsStat = __webpack_require__(741); -var fs_1 = __webpack_require__(745); +var fsStat = __webpack_require__(740); +var fs_1 = __webpack_require__(744); var FileSystemSync = /** @class */ (function (_super) { __extends(FileSystemSync, _super); function FileSystemSync() { @@ -86725,7 +86658,7 @@ exports.default = FileSystemSync; /***/ }), -/* 749 */ +/* 748 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -86741,13 +86674,13 @@ exports.flatten = flatten; /***/ }), -/* 750 */ +/* 749 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var merge2 = __webpack_require__(146); +var merge2 = __webpack_require__(145); /** * Merge multiple streams and propagate their errors into one stream in parallel. */ @@ -86762,13 +86695,13 @@ exports.merge = merge; /***/ }), -/* 751 */ +/* 750 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const path = __webpack_require__(4); -const pathType = __webpack_require__(752); +const pathType = __webpack_require__(751); const getExtensions = extensions => extensions.length > 1 ? `{${extensions.join(',')}}` : extensions[0]; @@ -86834,13 +86767,13 @@ module.exports.sync = (input, opts) => { /***/ }), -/* 752 */ +/* 751 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const fs = __webpack_require__(134); -const pify = __webpack_require__(753); +const fs = __webpack_require__(133); +const pify = __webpack_require__(752); function type(fn, fn2, fp) { if (typeof fp !== 'string') { @@ -86883,7 +86816,7 @@ exports.symlinkSync = typeSync.bind(null, 'lstatSync', 'isSymbolicLink'); /***/ }), -/* 753 */ +/* 752 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -86974,17 +86907,17 @@ module.exports = (obj, opts) => { /***/ }), -/* 754 */ +/* 753 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const fs = __webpack_require__(134); +const fs = __webpack_require__(133); const path = __webpack_require__(4); -const fastGlob = __webpack_require__(572); -const gitIgnore = __webpack_require__(755); -const pify = __webpack_require__(756); -const slash = __webpack_require__(757); +const fastGlob = __webpack_require__(571); +const gitIgnore = __webpack_require__(754); +const pify = __webpack_require__(755); +const slash = __webpack_require__(756); const DEFAULT_IGNORE = [ '**/node_modules/**', @@ -87082,7 +87015,7 @@ module.exports.sync = options => { /***/ }), -/* 755 */ +/* 754 */ /***/ (function(module, exports) { // A simple implementation of make-array @@ -87551,7 +87484,7 @@ module.exports = options => new IgnoreBase(options) /***/ }), -/* 756 */ +/* 755 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -87626,7 +87559,7 @@ module.exports = (input, options) => { /***/ }), -/* 757 */ +/* 756 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -87644,7 +87577,7 @@ module.exports = input => { /***/ }), -/* 758 */ +/* 757 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -87657,7 +87590,7 @@ module.exports = input => { -var isGlob = __webpack_require__(759); +var isGlob = __webpack_require__(758); module.exports = function hasGlob(val) { if (val == null) return false; @@ -87677,7 +87610,7 @@ module.exports = function hasGlob(val) { /***/ }), -/* 759 */ +/* 758 */ /***/ (function(module, exports, __webpack_require__) { /*! @@ -87687,7 +87620,7 @@ module.exports = function hasGlob(val) { * Licensed under the MIT License. */ -var isExtglob = __webpack_require__(173); +var isExtglob = __webpack_require__(172); module.exports = function isGlob(str) { if (typeof str !== 'string' || str === '') { @@ -87708,17 +87641,17 @@ module.exports = function isGlob(str) { /***/ }), -/* 760 */ +/* 759 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const path = __webpack_require__(4); -const {constants: fsConstants} = __webpack_require__(134); -const pEvent = __webpack_require__(761); -const CpFileError = __webpack_require__(764); -const fs = __webpack_require__(766); -const ProgressEmitter = __webpack_require__(769); +const {constants: fsConstants} = __webpack_require__(133); +const pEvent = __webpack_require__(760); +const CpFileError = __webpack_require__(763); +const fs = __webpack_require__(765); +const ProgressEmitter = __webpack_require__(768); const cpFileAsync = async (source, destination, options, progressEmitter) => { let readError; @@ -87832,12 +87765,12 @@ module.exports.sync = (source, destination, options) => { /***/ }), -/* 761 */ +/* 760 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const pTimeout = __webpack_require__(762); +const pTimeout = __webpack_require__(761); const symbolAsyncIterator = Symbol.asyncIterator || '@@asyncIterator'; @@ -88128,12 +88061,12 @@ module.exports.iterator = (emitter, event, options) => { /***/ }), -/* 762 */ +/* 761 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const pFinally = __webpack_require__(763); +const pFinally = __webpack_require__(762); class TimeoutError extends Error { constructor(message) { @@ -88179,7 +88112,7 @@ module.exports.TimeoutError = TimeoutError; /***/ }), -/* 763 */ +/* 762 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -88201,12 +88134,12 @@ module.exports = (promise, onFinally) => { /***/ }), -/* 764 */ +/* 763 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const NestedError = __webpack_require__(765); +const NestedError = __webpack_require__(764); class CpFileError extends NestedError { constructor(message, nested) { @@ -88220,10 +88153,10 @@ module.exports = CpFileError; /***/ }), -/* 765 */ +/* 764 */ /***/ (function(module, exports, __webpack_require__) { -var inherits = __webpack_require__(112).inherits; +var inherits = __webpack_require__(111).inherits; var NestedError = function (message, nested) { this.nested = nested; @@ -88276,16 +88209,16 @@ module.exports = NestedError; /***/ }), -/* 766 */ +/* 765 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const {promisify} = __webpack_require__(112); -const fs = __webpack_require__(133); -const makeDir = __webpack_require__(767); -const pEvent = __webpack_require__(761); -const CpFileError = __webpack_require__(764); +const {promisify} = __webpack_require__(111); +const fs = __webpack_require__(132); +const makeDir = __webpack_require__(766); +const pEvent = __webpack_require__(760); +const CpFileError = __webpack_require__(763); const stat = promisify(fs.stat); const lstat = promisify(fs.lstat); @@ -88382,15 +88315,15 @@ exports.copyFileSync = (source, destination, flags) => { /***/ }), -/* 767 */ +/* 766 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const fs = __webpack_require__(134); +const fs = __webpack_require__(133); const path = __webpack_require__(4); -const {promisify} = __webpack_require__(112); -const semver = __webpack_require__(768); +const {promisify} = __webpack_require__(111); +const semver = __webpack_require__(767); const useNativeRecursiveOption = semver.satisfies(process.version, '>=10.12.0'); @@ -88545,7 +88478,7 @@ module.exports.sync = (input, options) => { /***/ }), -/* 768 */ +/* 767 */ /***/ (function(module, exports) { exports = module.exports = SemVer @@ -90147,12 +90080,12 @@ function coerce (version, options) { /***/ }), -/* 769 */ +/* 768 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const EventEmitter = __webpack_require__(156); +const EventEmitter = __webpack_require__(155); const written = new WeakMap(); @@ -90188,7 +90121,7 @@ module.exports = ProgressEmitter; /***/ }), -/* 770 */ +/* 769 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -90234,12 +90167,12 @@ exports.default = module.exports; /***/ }), -/* 771 */ +/* 770 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const pMap = __webpack_require__(772); +const pMap = __webpack_require__(771); const pFilter = async (iterable, filterer, options) => { const values = await pMap( @@ -90256,7 +90189,7 @@ module.exports.default = pFilter; /***/ }), -/* 772 */ +/* 771 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -90335,12 +90268,12 @@ module.exports.default = pMap; /***/ }), -/* 773 */ +/* 772 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const NestedError = __webpack_require__(765); +const NestedError = __webpack_require__(764); class CpyError extends NestedError { constructor(message, nested) { @@ -90354,18 +90287,18 @@ module.exports = CpyError; /***/ }), -/* 774 */ +/* 773 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const fs = __webpack_require__(134); -const arrayUnion = __webpack_require__(145); -const merge2 = __webpack_require__(146); -const fastGlob = __webpack_require__(775); -const dirGlob = __webpack_require__(232); -const gitignore = __webpack_require__(810); -const {FilterStream, UniqueStream} = __webpack_require__(811); +const fs = __webpack_require__(133); +const arrayUnion = __webpack_require__(144); +const merge2 = __webpack_require__(145); +const fastGlob = __webpack_require__(774); +const dirGlob = __webpack_require__(231); +const gitignore = __webpack_require__(809); +const {FilterStream, UniqueStream} = __webpack_require__(810); const DEFAULT_FILTER = () => false; @@ -90542,17 +90475,17 @@ module.exports.gitignore = gitignore; /***/ }), -/* 775 */ +/* 774 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const taskManager = __webpack_require__(776); -const async_1 = __webpack_require__(796); -const stream_1 = __webpack_require__(806); -const sync_1 = __webpack_require__(807); -const settings_1 = __webpack_require__(809); -const utils = __webpack_require__(777); +const taskManager = __webpack_require__(775); +const async_1 = __webpack_require__(795); +const stream_1 = __webpack_require__(805); +const sync_1 = __webpack_require__(806); +const settings_1 = __webpack_require__(808); +const utils = __webpack_require__(776); async function FastGlob(source, options) { assertPatternsInput(source); const works = getWorks(source, async_1.default, options); @@ -90616,14 +90549,14 @@ module.exports = FastGlob; /***/ }), -/* 776 */ +/* 775 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0; -const utils = __webpack_require__(777); +const utils = __webpack_require__(776); function generate(patterns, settings) { const positivePatterns = getPositivePatterns(patterns); const negativePatterns = getNegativePatternsAsPositive(patterns, settings.ignore); @@ -90688,31 +90621,31 @@ exports.convertPatternGroupToTask = convertPatternGroupToTask; /***/ }), -/* 777 */ +/* 776 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0; -const array = __webpack_require__(778); +const array = __webpack_require__(777); exports.array = array; -const errno = __webpack_require__(779); +const errno = __webpack_require__(778); exports.errno = errno; -const fs = __webpack_require__(780); +const fs = __webpack_require__(779); exports.fs = fs; -const path = __webpack_require__(781); +const path = __webpack_require__(780); exports.path = path; -const pattern = __webpack_require__(782); +const pattern = __webpack_require__(781); exports.pattern = pattern; -const stream = __webpack_require__(794); +const stream = __webpack_require__(793); exports.stream = stream; -const string = __webpack_require__(795); +const string = __webpack_require__(794); exports.string = string; /***/ }), -/* 778 */ +/* 777 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -90741,7 +90674,7 @@ exports.splitWhen = splitWhen; /***/ }), -/* 779 */ +/* 778 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -90755,7 +90688,7 @@ exports.isEnoentCodeError = isEnoentCodeError; /***/ }), -/* 780 */ +/* 779 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -90781,7 +90714,7 @@ exports.createDirentFromStats = createDirentFromStats; /***/ }), -/* 781 */ +/* 780 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -90821,7 +90754,7 @@ exports.removeLeadingDotSegment = removeLeadingDotSegment; /***/ }), -/* 782 */ +/* 781 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -90829,9 +90762,9 @@ exports.removeLeadingDotSegment = removeLeadingDotSegment; Object.defineProperty(exports, "__esModule", { value: true }); exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0; const path = __webpack_require__(4); -const globParent = __webpack_require__(171); -const micromatch = __webpack_require__(783); -const picomatch = __webpack_require__(185); +const globParent = __webpack_require__(170); +const micromatch = __webpack_require__(782); +const picomatch = __webpack_require__(184); const GLOBSTAR = '**'; const ESCAPE_SYMBOL = '\\'; const COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/; @@ -90960,16 +90893,16 @@ exports.matchAny = matchAny; /***/ }), -/* 783 */ +/* 782 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const util = __webpack_require__(112); -const braces = __webpack_require__(784); -const picomatch = __webpack_require__(185); -const utils = __webpack_require__(188); +const util = __webpack_require__(111); +const braces = __webpack_require__(783); +const picomatch = __webpack_require__(184); +const utils = __webpack_require__(187); const isEmptyString = val => typeof val === 'string' && (val === '' || val === './'); /** @@ -91434,16 +91367,16 @@ module.exports = micromatch; /***/ }), -/* 784 */ +/* 783 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const stringify = __webpack_require__(785); -const compile = __webpack_require__(787); -const expand = __webpack_require__(791); -const parse = __webpack_require__(792); +const stringify = __webpack_require__(784); +const compile = __webpack_require__(786); +const expand = __webpack_require__(790); +const parse = __webpack_require__(791); /** * Expand the given pattern or create a regex-compatible string. @@ -91611,13 +91544,13 @@ module.exports = braces; /***/ }), -/* 785 */ +/* 784 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const utils = __webpack_require__(786); +const utils = __webpack_require__(785); module.exports = (ast, options = {}) => { let stringify = (node, parent = {}) => { @@ -91650,7 +91583,7 @@ module.exports = (ast, options = {}) => { /***/ }), -/* 786 */ +/* 785 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -91769,14 +91702,14 @@ exports.flatten = (...args) => { /***/ }), -/* 787 */ +/* 786 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const fill = __webpack_require__(788); -const utils = __webpack_require__(786); +const fill = __webpack_require__(787); +const utils = __webpack_require__(785); const compile = (ast, options = {}) => { let walk = (node, parent = {}) => { @@ -91833,7 +91766,7 @@ module.exports = compile; /***/ }), -/* 788 */ +/* 787 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -91846,8 +91779,8 @@ module.exports = compile; -const util = __webpack_require__(112); -const toRegexRange = __webpack_require__(789); +const util = __webpack_require__(111); +const toRegexRange = __webpack_require__(788); const isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val); @@ -92089,7 +92022,7 @@ module.exports = fill; /***/ }), -/* 789 */ +/* 788 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -92102,7 +92035,7 @@ module.exports = fill; -const isNumber = __webpack_require__(790); +const isNumber = __webpack_require__(789); const toRegexRange = (min, max, options) => { if (isNumber(min) === false) { @@ -92384,7 +92317,7 @@ module.exports = toRegexRange; /***/ }), -/* 790 */ +/* 789 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -92409,15 +92342,15 @@ module.exports = function(num) { /***/ }), -/* 791 */ +/* 790 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const fill = __webpack_require__(788); -const stringify = __webpack_require__(785); -const utils = __webpack_require__(786); +const fill = __webpack_require__(787); +const stringify = __webpack_require__(784); +const utils = __webpack_require__(785); const append = (queue = '', stash = '', enclose = false) => { let result = []; @@ -92529,13 +92462,13 @@ module.exports = expand; /***/ }), -/* 792 */ +/* 791 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const stringify = __webpack_require__(785); +const stringify = __webpack_require__(784); /** * Constants @@ -92557,7 +92490,7 @@ const { CHAR_SINGLE_QUOTE, /* ' */ CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_NOBREAK_SPACE -} = __webpack_require__(793); +} = __webpack_require__(792); /** * parse @@ -92869,7 +92802,7 @@ module.exports = parse; /***/ }), -/* 793 */ +/* 792 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -92933,14 +92866,14 @@ module.exports = { /***/ }), -/* 794 */ +/* 793 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.merge = void 0; -const merge2 = __webpack_require__(146); +const merge2 = __webpack_require__(145); function merge(streams) { const mergedStream = merge2(streams); streams.forEach((stream) => { @@ -92957,7 +92890,7 @@ function propagateCloseEventToSources(streams) { /***/ }), -/* 795 */ +/* 794 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -92975,14 +92908,14 @@ exports.isEmpty = isEmpty; /***/ }), -/* 796 */ +/* 795 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const stream_1 = __webpack_require__(797); -const provider_1 = __webpack_require__(799); +const stream_1 = __webpack_require__(796); +const provider_1 = __webpack_require__(798); class ProviderAsync extends provider_1.default { constructor() { super(...arguments); @@ -93010,16 +92943,16 @@ exports.default = ProviderAsync; /***/ }), -/* 797 */ +/* 796 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const stream_1 = __webpack_require__(138); -const fsStat = __webpack_require__(195); -const fsWalk = __webpack_require__(200); -const reader_1 = __webpack_require__(798); +const stream_1 = __webpack_require__(137); +const fsStat = __webpack_require__(194); +const fsWalk = __webpack_require__(199); +const reader_1 = __webpack_require__(797); class ReaderStream extends reader_1.default { constructor() { super(...arguments); @@ -93072,15 +93005,15 @@ exports.default = ReaderStream; /***/ }), -/* 798 */ +/* 797 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path = __webpack_require__(4); -const fsStat = __webpack_require__(195); -const utils = __webpack_require__(777); +const fsStat = __webpack_require__(194); +const utils = __webpack_require__(776); class Reader { constructor(_settings) { this._settings = _settings; @@ -93112,17 +93045,17 @@ exports.default = Reader; /***/ }), -/* 799 */ +/* 798 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path = __webpack_require__(4); -const deep_1 = __webpack_require__(800); -const entry_1 = __webpack_require__(803); -const error_1 = __webpack_require__(804); -const entry_2 = __webpack_require__(805); +const deep_1 = __webpack_require__(799); +const entry_1 = __webpack_require__(802); +const error_1 = __webpack_require__(803); +const entry_2 = __webpack_require__(804); class Provider { constructor(_settings) { this._settings = _settings; @@ -93167,14 +93100,14 @@ exports.default = Provider; /***/ }), -/* 800 */ +/* 799 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const utils = __webpack_require__(777); -const partial_1 = __webpack_require__(801); +const utils = __webpack_require__(776); +const partial_1 = __webpack_require__(800); class DeepFilter { constructor(_settings, _micromatchOptions) { this._settings = _settings; @@ -93236,13 +93169,13 @@ exports.default = DeepFilter; /***/ }), -/* 801 */ +/* 800 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const matcher_1 = __webpack_require__(802); +const matcher_1 = __webpack_require__(801); class PartialMatcher extends matcher_1.default { match(filepath) { const parts = filepath.split('/'); @@ -93281,13 +93214,13 @@ exports.default = PartialMatcher; /***/ }), -/* 802 */ +/* 801 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const utils = __webpack_require__(777); +const utils = __webpack_require__(776); class Matcher { constructor(_patterns, _settings, _micromatchOptions) { this._patterns = _patterns; @@ -93338,13 +93271,13 @@ exports.default = Matcher; /***/ }), -/* 803 */ +/* 802 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const utils = __webpack_require__(777); +const utils = __webpack_require__(776); class EntryFilter { constructor(_settings, _micromatchOptions) { this._settings = _settings; @@ -93401,13 +93334,13 @@ exports.default = EntryFilter; /***/ }), -/* 804 */ +/* 803 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const utils = __webpack_require__(777); +const utils = __webpack_require__(776); class ErrorFilter { constructor(_settings) { this._settings = _settings; @@ -93423,13 +93356,13 @@ exports.default = ErrorFilter; /***/ }), -/* 805 */ +/* 804 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const utils = __webpack_require__(777); +const utils = __webpack_require__(776); class EntryTransformer { constructor(_settings) { this._settings = _settings; @@ -93456,15 +93389,15 @@ exports.default = EntryTransformer; /***/ }), -/* 806 */ +/* 805 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const stream_1 = __webpack_require__(138); -const stream_2 = __webpack_require__(797); -const provider_1 = __webpack_require__(799); +const stream_1 = __webpack_require__(137); +const stream_2 = __webpack_require__(796); +const provider_1 = __webpack_require__(798); class ProviderStream extends provider_1.default { constructor() { super(...arguments); @@ -93494,14 +93427,14 @@ exports.default = ProviderStream; /***/ }), -/* 807 */ +/* 806 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const sync_1 = __webpack_require__(808); -const provider_1 = __webpack_require__(799); +const sync_1 = __webpack_require__(807); +const provider_1 = __webpack_require__(798); class ProviderSync extends provider_1.default { constructor() { super(...arguments); @@ -93524,15 +93457,15 @@ exports.default = ProviderSync; /***/ }), -/* 808 */ +/* 807 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const fsStat = __webpack_require__(195); -const fsWalk = __webpack_require__(200); -const reader_1 = __webpack_require__(798); +const fsStat = __webpack_require__(194); +const fsWalk = __webpack_require__(199); +const reader_1 = __webpack_require__(797); class ReaderSync extends reader_1.default { constructor() { super(...arguments); @@ -93574,15 +93507,15 @@ exports.default = ReaderSync; /***/ }), -/* 809 */ +/* 808 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0; -const fs = __webpack_require__(134); -const os = __webpack_require__(121); +const fs = __webpack_require__(133); +const os = __webpack_require__(120); /** * The `os.cpus` method can return zero. We expect the number of cores to be greater than zero. * https://github.com/nodejs/node/blob/7faeddf23a98c53896f8b574a6e66589e8fb1eb8/lib/os.js#L106-L107 @@ -93638,17 +93571,17 @@ exports.default = Settings; /***/ }), -/* 810 */ +/* 809 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const {promisify} = __webpack_require__(112); -const fs = __webpack_require__(134); +const {promisify} = __webpack_require__(111); +const fs = __webpack_require__(133); const path = __webpack_require__(4); -const fastGlob = __webpack_require__(775); -const gitIgnore = __webpack_require__(235); -const slash = __webpack_require__(236); +const fastGlob = __webpack_require__(774); +const gitIgnore = __webpack_require__(234); +const slash = __webpack_require__(235); const DEFAULT_IGNORE = [ '**/node_modules/**', @@ -93765,12 +93698,12 @@ module.exports.sync = options => { /***/ }), -/* 811 */ +/* 810 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const {Transform} = __webpack_require__(138); +const {Transform} = __webpack_require__(137); class ObjectTransform extends Transform { constructor() { @@ -93818,7 +93751,7 @@ module.exports = { /***/ }), -/* 812 */ +/* 811 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -93826,17 +93759,17 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildNonBazelProductionProjects", function() { return buildNonBazelProductionProjects; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getProductionProjects", function() { return getProductionProjects; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildProject", function() { return buildProject; }); -/* harmony import */ var cpy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(565); +/* harmony import */ var cpy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(564); /* harmony import */ var cpy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cpy__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var del__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(143); +/* harmony import */ var del__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(142); /* harmony import */ var del__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(del__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(562); -/* harmony import */ var _utils_fs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(131); -/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(246); -/* harmony import */ var _utils_package_json__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(251); -/* harmony import */ var _utils_projects__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(248); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(561); +/* harmony import */ var _utils_fs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(130); +/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(245); +/* harmony import */ var _utils_package_json__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(250); +/* harmony import */ var _utils_projects__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(247); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License diff --git a/packages/kbn-server-http-tools/tsconfig.json b/packages/kbn-server-http-tools/tsconfig.json index 034cbd2334919..e1d3d61644bfe 100644 --- a/packages/kbn-server-http-tools/tsconfig.json +++ b/packages/kbn-server-http-tools/tsconfig.json @@ -7,7 +7,11 @@ "declarationMap": true, "rootDir": "src", "sourceMap": true, - "sourceRoot": "../../../../packages/kbn-server-http-tools/src" + "sourceRoot": "../../../../packages/kbn-server-http-tools/src", + "types": [ + "jest", + "node" + ] }, "include": [ "src/**/*" diff --git a/packages/kbn-telemetry-tools/BUILD.bazel b/packages/kbn-telemetry-tools/BUILD.bazel index ef1316cec75a3..cf71b3e197dad 100644 --- a/packages/kbn-telemetry-tools/BUILD.bazel +++ b/packages/kbn-telemetry-tools/BUILD.bazel @@ -32,7 +32,6 @@ SRC_DEPS = [ "//packages/kbn-dev-utils", "//packages/kbn-utility-types", "@npm//glob", - "@npm//jest-styled-components", "@npm//listr", "@npm//normalize-path", "@npm//tslib", diff --git a/packages/kbn-telemetry-tools/tsconfig.json b/packages/kbn-telemetry-tools/tsconfig.json index 926ebff17f639..3c0e04ded359d 100644 --- a/packages/kbn-telemetry-tools/tsconfig.json +++ b/packages/kbn-telemetry-tools/tsconfig.json @@ -8,7 +8,11 @@ "rootDir": "src", "sourceMap": true, "sourceRoot": "../../../../packages/kbn-telemetry-tools/src", - "isolatedModules": true + "isolatedModules": true, + "types": [ + "jest", + "node" + ], }, "include": [ "src/**/*", diff --git a/packages/kbn-test/BUILD.bazel b/packages/kbn-test/BUILD.bazel index 432778f888e7a..923d9859f43b9 100644 --- a/packages/kbn-test/BUILD.bazel +++ b/packages/kbn-test/BUILD.bazel @@ -53,6 +53,7 @@ SRC_DEPS = [ "@npm//jest", "@npm//jest-cli", "@npm//jest-snapshot", + "@npm//jest-styled-components", "@npm//@jest/reporters", "@npm//joi", "@npm//mustache", diff --git a/scripts/register_git_hook.js b/scripts/register_git_hook.js index 9114229859ee5..fec1f9755338a 100644 --- a/scripts/register_git_hook.js +++ b/scripts/register_git_hook.js @@ -7,4 +7,4 @@ */ require('../src/setup_node_env/no_transpilation'); -require('@kbn/dev-utils/target/precommit_hook/cli'); +require('@kbn/dev-utils/target_node/precommit_hook/cli'); From f50843dc527d308f692d157586cd81c571a33774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Marcondes?= <55978943+cauemarcondes@users.noreply.github.com> Date: Fri, 30 Jul 2021 16:18:48 -0400 Subject: [PATCH 21/40] [APM] Fleet: APM Integration settings (fleet editor) redesign (#106535) * initial commig * adding forms * moving settings_form * moving settings_form * renaming * fixing import * adding error message per settings * fixing onchange bug * adding isValid to onchange func * fixing TS issue * fixing default value * validating form * refactoring to validate form * renaming to vars * refactoring * adding apm integration settings * fixing some stff * refactoring name * adding translations * refactoring * fixing test * adding unit test * flats settings * refactoring cloud policy constant * removing fleet exported function * fixing TS issue * fixing bug * fixing ts * addressing PR comments * addressing PR comments * addressing PR comments --- x-pack/plugins/apm/common/fleet.ts | 8 + .../create_apm_policy_form.tsx | 36 +++ .../apm_policy_form/edit_apm_policy_form.tsx | 42 +++ .../apm_policy_form/index.tsx | 34 ++ .../apm_policy_form/settings/apm_settings.tsx | 306 ++++++++++++++++++ .../settings/form_row_setting.tsx | 113 +++++++ .../apm_policy_form/settings/rum_settings.tsx | 197 +++++++++++ .../settings/settings_form.tsx | 158 +++++++++ .../apm_policy_form/settings/tls_settings.tsx | 117 +++++++ .../apm_policy_form/settings/typings.ts | 38 +++ .../apm_policy_form/settings/utils.test.ts | 148 +++++++++ .../apm_policy_form/settings/utils.ts | 77 +++++ .../apm_policy_form/typings.ts | 25 ++ .../lazy_apm_policy_create_extension.tsx | 19 ++ .../lazy_apm_policy_edit_extension.tsx | 19 ++ x-pack/plugins/apm/public/plugin.ts | 14 + .../config_agent/config_agent.stories.tsx | 5 +- .../config_agent/get_policy_options.ts | 3 +- .../get_apm_package_policy_definition.ts | 6 +- .../lib/fleet/get_cloud_apm_package_policy.ts | 2 +- 20 files changed, 1358 insertions(+), 9 deletions(-) create mode 100644 x-pack/plugins/apm/common/fleet.ts create mode 100644 x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/create_apm_policy_form.tsx create mode 100644 x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/edit_apm_policy_form.tsx create mode 100644 x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/index.tsx create mode 100644 x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/apm_settings.tsx create mode 100644 x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/form_row_setting.tsx create mode 100644 x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/rum_settings.tsx create mode 100644 x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/settings_form.tsx create mode 100644 x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/tls_settings.tsx create mode 100644 x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/typings.ts create mode 100644 x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/utils.test.ts create mode 100644 x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/utils.ts create mode 100644 x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/typings.ts create mode 100644 x-pack/plugins/apm/public/components/fleet_integration/lazy_apm_policy_create_extension.tsx create mode 100644 x-pack/plugins/apm/public/components/fleet_integration/lazy_apm_policy_edit_extension.tsx diff --git a/x-pack/plugins/apm/common/fleet.ts b/x-pack/plugins/apm/common/fleet.ts new file mode 100644 index 0000000000000..618cd20d66159 --- /dev/null +++ b/x-pack/plugins/apm/common/fleet.ts @@ -0,0 +1,8 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +export const POLICY_ELASTIC_AGENT_ON_CLOUD = 'policy-elastic-agent-on-cloud'; diff --git a/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/create_apm_policy_form.tsx b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/create_apm_policy_form.tsx new file mode 100644 index 0000000000000..6a970632ee192 --- /dev/null +++ b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/create_apm_policy_form.tsx @@ -0,0 +1,36 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ +import React from 'react'; +import { APMPolicyForm } from '.'; +import { + PackagePolicyVars, + NewPackagePolicy, + PackagePolicyCreateExtensionComponentProps, +} from './typings'; + +interface Props { + newPolicy: NewPackagePolicy; + onChange: PackagePolicyCreateExtensionComponentProps['onChange']; +} + +export function CreateAPMPolicyForm({ newPolicy, onChange }: Props) { + const [firstInput, ...restInputs] = newPolicy?.inputs; + const vars = firstInput?.vars; + + function handleChange(newVars: PackagePolicyVars, isValid: boolean) { + onChange({ + isValid, + updatedPolicy: { + ...newPolicy, + inputs: [{ ...firstInput, vars: newVars }, ...restInputs], + }, + }); + } + return ( + + ); +} diff --git a/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/edit_apm_policy_form.tsx b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/edit_apm_policy_form.tsx new file mode 100644 index 0000000000000..5843b9005e7fa --- /dev/null +++ b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/edit_apm_policy_form.tsx @@ -0,0 +1,42 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ +import React from 'react'; +import { APMPolicyForm } from '.'; +import { + NewPackagePolicy, + PackagePolicy, + PackagePolicyEditExtensionComponentProps, + PackagePolicyVars, +} from './typings'; +import { POLICY_ELASTIC_AGENT_ON_CLOUD } from '../../../../common/fleet'; + +interface Props { + policy: PackagePolicy; + newPolicy: NewPackagePolicy; + onChange: PackagePolicyEditExtensionComponentProps['onChange']; +} + +export function EditAPMPolicyForm({ newPolicy, onChange }: Props) { + const [firstInput, ...restInputs] = newPolicy?.inputs; + const vars = firstInput?.vars; + + function handleChange(newVars: PackagePolicyVars, isValid: boolean) { + onChange({ + isValid, + updatedPolicy: { + inputs: [{ ...firstInput, vars: newVars }, ...restInputs], + }, + }); + } + return ( + + ); +} diff --git a/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/index.tsx b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/index.tsx new file mode 100644 index 0000000000000..60d95ab2b9f0d --- /dev/null +++ b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/index.tsx @@ -0,0 +1,34 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ +import { EuiSpacer } from '@elastic/eui'; +import React from 'react'; +import { OnFormChangeFn, PackagePolicyVars } from './typings'; +import { APMSettingsForm } from './settings/apm_settings'; +import { RUMSettingsForm } from './settings/rum_settings'; +import { TLSSettingsForm } from './settings/tls_settings'; + +interface Props { + onChange: OnFormChangeFn; + vars?: PackagePolicyVars; + isCloudPolicy: boolean; +} + +export function APMPolicyForm({ vars = {}, isCloudPolicy, onChange }: Props) { + return ( + <> + + + + + + + ); +} diff --git a/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/apm_settings.tsx b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/apm_settings.tsx new file mode 100644 index 0000000000000..d80bccc529d64 --- /dev/null +++ b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/apm_settings.tsx @@ -0,0 +1,306 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ +import { i18n } from '@kbn/i18n'; +import React, { useMemo } from 'react'; +import { getDurationRt } from '../../../../../common/agent_configuration/runtime_types/duration_rt'; +import { getIntegerRt } from '../../../../../common/agent_configuration/runtime_types/integer_rt'; +import { OnFormChangeFn, PackagePolicyVars } from '../typings'; +import { SettingsForm } from './settings_form'; +import { SettingDefinition } from './typings'; +import { + isSettingsFormValid, + mergeNewVars, + OPTIONAL_LABEL, + REQUIRED_LABEL, +} from './utils'; + +interface Props { + vars: PackagePolicyVars; + onChange: OnFormChangeFn; + isCloudPolicy: boolean; +} + +function getApmSettings(isCloudPolicy: boolean): SettingDefinition[] { + return [ + { + type: 'text', + key: 'host', + labelAppend: REQUIRED_LABEL, + readOnly: isCloudPolicy, + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.hostLabel', + { defaultMessage: 'Host' } + ), + rowTitle: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.hostTitle', + { defaultMessage: 'Server configuration' } + ), + rowDescription: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.hostDescription', + { + defaultMessage: + 'Choose a name and description to help identify how this integration will be used.', + } + ), + + required: true, + }, + { + type: 'text', + key: 'url', + labelAppend: REQUIRED_LABEL, + readOnly: isCloudPolicy, + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.urlLabel', + { + defaultMessage: 'URL', + } + ), + required: true, + }, + { + type: 'text', + key: 'secret_token', + readOnly: isCloudPolicy, + labelAppend: OPTIONAL_LABEL, + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.secretTokenLabel', + { defaultMessage: 'Secret token' } + ), + }, + { + type: 'boolean', + key: 'api_key_enabled', + labelAppend: OPTIONAL_LABEL, + placeholder: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.apiKeyAuthenticationPlaceholder', + { defaultMessage: 'API key for agent authentication' } + ), + helpText: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.apiKeyAuthenticationHelpText', + { + defaultMessage: + 'Enable API Key auth between APM Server and APM Agents.', + } + ), + }, + { + type: 'advanced_settings', + settings: [ + { + key: 'max_header_bytes', + type: 'integer', + labelAppend: OPTIONAL_LABEL, + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.maxHeaderBytesLabel', + { defaultMessage: "Maximum size of a request's header (bytes)" } + ), + rowTitle: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.maxHeaderBytesTitle', + { defaultMessage: 'Limits' } + ), + rowDescription: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.maxHeaderBytesDescription', + { + defaultMessage: + 'Set limits on request headers sizes and timing configurations.', + } + ), + validation: getIntegerRt({ min: 1 }), + }, + { + key: 'idle_timeout', + type: 'text', + labelAppend: OPTIONAL_LABEL, + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.idleTimeoutLabel', + { + defaultMessage: + 'Idle time before underlying connection is closed', + } + ), + validation: getDurationRt({ min: '1ms' }), + }, + { + key: 'read_timeout', + type: 'text', + labelAppend: OPTIONAL_LABEL, + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.readTimeoutLabel', + { defaultMessage: 'Maximum duration for reading an entire request' } + ), + validation: getDurationRt({ min: '1ms' }), + }, + { + key: 'shutdown_timeout', + type: 'text', + labelAppend: OPTIONAL_LABEL, + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.shutdownTimeoutLabel', + { + defaultMessage: + 'Maximum duration before releasing resources when shutting down', + } + ), + validation: getDurationRt({ min: '1ms' }), + }, + { + key: 'write_timeout', + type: 'text', + labelAppend: OPTIONAL_LABEL, + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.writeTimeoutLabel', + { defaultMessage: 'Maximum duration for writing a response' } + ), + validation: getDurationRt({ min: '1ms' }), + }, + { + key: 'max_event_bytes', + type: 'integer', + labelAppend: OPTIONAL_LABEL, + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.maxEventBytesLabel', + { defaultMessage: 'Maximum size per event (bytes)' } + ), + validation: getIntegerRt({ min: 1 }), + }, + { + key: 'max_connections', + type: 'integer', + labelAppend: OPTIONAL_LABEL, + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.maxConnectionsLabel', + { defaultMessage: 'Simultaneously accepted connections' } + ), + validation: getIntegerRt({ min: 1 }), + }, + { + key: 'response_headers', + type: 'area', + labelAppend: OPTIONAL_LABEL, + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.responseHeadersLabel', + { defaultMessage: 'Custom HTTP headers added to HTTP responses' } + ), + helpText: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.responseHeadersHelpText', + { defaultMessage: 'Might be used for security policy compliance.' } + ), + rowTitle: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.responseHeadersTitle', + { defaultMessage: 'Custom headers' } + ), + rowDescription: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.responseHeadersDescription', + { + defaultMessage: + 'Set limits on request headers sizes and timing configurations.', + } + ), + }, + { + key: 'api_key_limit', + type: 'integer', + labelAppend: OPTIONAL_LABEL, + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.apiKeyLimitLabel', + { defaultMessage: 'Number of keys' } + ), + helpText: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.apiKeyLimitHelpText', + { defaultMessage: 'Might be used for security policy compliance.' } + ), + rowTitle: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.apiKeyLimitTitle', + { + defaultMessage: + 'Maximum number of API keys of Agent authentication', + } + ), + rowDescription: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.apiKeyLimitDescription', + { + defaultMessage: + 'Restrict number of unique API keys per minute, used for auth between aPM Agents and Server.', + } + ), + validation: getIntegerRt({ min: 1 }), + }, + { + key: 'capture_personal_data', + type: 'boolean', + rowTitle: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.capturePersonalDataTitle', + { defaultMessage: 'Capture personal data' } + ), + rowDescription: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.capturePersonalDataDescription', + { defaultMessage: 'Capture personal data such as IP or User Agent' } + ), + }, + { + key: 'default_service_environment', + type: 'text', + labelAppend: OPTIONAL_LABEL, + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.defaultServiceEnvironmentLabel', + { defaultMessage: 'Default Service Environment' } + ), + rowTitle: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.defaultServiceEnvironmentTitle', + { defaultMessage: 'Service configuration' } + ), + rowDescription: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.defaultServiceEnvironmentDescription', + { + defaultMessage: + 'Default service environment to record in events which have no service environment defined.', + } + ), + }, + { + key: 'expvar_enabled', + type: 'boolean', + labelAppend: OPTIONAL_LABEL, + rowTitle: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.expvarEnabledTitle', + { defaultMessage: 'Enable APM Server Golang expvar support' } + ), + rowDescription: i18n.translate( + 'xpack.apm.fleet_integration.settings.apm.expvarEnabledDescription', + { defaultMessage: 'Exposed under /debug/vars' } + ), + }, + ], + }, + ]; +} + +export function APMSettingsForm({ vars, onChange, isCloudPolicy }: Props) { + const apmSettings = useMemo(() => { + return getApmSettings(isCloudPolicy); + }, [isCloudPolicy]); + + return ( + { + const newVars = mergeNewVars(vars, key, value); + onChange(newVars, isSettingsFormValid(apmSettings, newVars)); + }} + /> + ); +} diff --git a/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/form_row_setting.tsx b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/form_row_setting.tsx new file mode 100644 index 0000000000000..33aeaccbeb8cc --- /dev/null +++ b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/form_row_setting.tsx @@ -0,0 +1,113 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { + EuiFieldNumber, + EuiFieldText, + EuiIcon, + EuiSwitch, + EuiTextArea, + EuiComboBox, +} from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; +import React from 'react'; +import { FormRowOnChange } from './settings_form'; +import { SettingDefinition } from './typings'; + +interface Props { + setting: SettingDefinition; + value?: any; + onChange: FormRowOnChange; +} + +const ENABLED_LABEL = i18n.translate( + 'xpack.apm.fleet_integration.settings.enabledLabel', + { defaultMessage: 'Enabled' } +); +const DISABLED_LABEL = i18n.translate( + 'xpack.apm.fleet_integration.settings.disabledLabel', + { defaultMessage: 'Disabled' } +); + +export function FormRowSetting({ setting, value, onChange }: Props) { + switch (setting.type) { + case 'boolean': { + return ( + { + onChange(setting.key, e.target.checked); + }} + /> + ); + } + case 'duration': + case 'text': { + return ( + : undefined} + onChange={(e) => { + onChange(setting.key, e.target.value); + }} + /> + ); + } + case 'area': { + return ( + { + onChange(setting.key, e.target.value); + }} + /> + ); + } + case 'bytes': + case 'integer': { + return ( + { + onChange(setting.key, e.target.value); + }} + /> + ); + } + case 'combo': { + const comboOptions = Array.isArray(value) + ? value.map((label) => ({ label })) + : []; + return ( + { + onChange( + setting.key, + option.map(({ label }) => label) + ); + }} + onCreateOption={(newOption) => { + onChange(setting.key, [...value, newOption]); + }} + isClearable={true} + /> + ); + } + default: + throw new Error(`Unknown type "${setting.type}"`); + } +} diff --git a/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/rum_settings.tsx b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/rum_settings.tsx new file mode 100644 index 0000000000000..0a1b6c66a47e1 --- /dev/null +++ b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/rum_settings.tsx @@ -0,0 +1,197 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ +import { i18n } from '@kbn/i18n'; +import React from 'react'; +import { getIntegerRt } from '../../../../../common/agent_configuration/runtime_types/integer_rt'; +import { OnFormChangeFn, PackagePolicyVars } from '../typings'; +import { SettingsForm } from './settings_form'; +import { SettingDefinition } from './typings'; +import { isSettingsFormValid, mergeNewVars, OPTIONAL_LABEL } from './utils'; + +const ENABLE_RUM_KEY = 'enable_rum'; +const rumSettings: SettingDefinition[] = [ + { + key: ENABLE_RUM_KEY, + type: 'boolean', + rowTitle: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.enableRumTitle', + { defaultMessage: 'Enable RUM' } + ), + rowDescription: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.enableRumDescription', + { defaultMessage: 'Enable Real User Monitoring (RUM)' } + ), + settings: [ + { + key: 'rum_allow_headers', + type: 'combo', + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.rumAllowHeaderLabel', + { defaultMessage: 'Allowed origin headers' } + ), + labelAppend: OPTIONAL_LABEL, + helpText: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.rumAllowHeaderHelpText', + { + defaultMessage: 'Allowed Origin headers to be sent by User Agents.', + } + ), + rowTitle: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.rumAllowHeaderTitle', + { defaultMessage: 'Custom headers' } + ), + rowDescription: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.rumAllowHeaderDescription', + { defaultMessage: 'Configure authentication for the agent' } + ), + }, + { + key: 'rum_allow_origins', + type: 'combo', + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.rumAllowOriginsLabel', + { defaultMessage: 'Access-Control-Allow-Headers' } + ), + labelAppend: OPTIONAL_LABEL, + helpText: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.rumAllowOriginsHelpText', + { + defaultMessage: + 'Supported Access-Control-Allow-Headers in addition to "Content-Type", "Content-Encoding" and "Accept".', + } + ), + }, + { + key: 'rum_response_headers', + type: 'area', + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.rumResponseHeadersLabel', + { defaultMessage: 'Custom HTTP response headers' } + ), + labelAppend: OPTIONAL_LABEL, + helpText: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.rumResponseHeadersHelpText', + { + defaultMessage: + 'Added to RUM responses, e.g. for security policy compliance.', + } + ), + }, + { + type: 'advanced_settings', + settings: [ + { + key: 'rum_event_rate_limit', + type: 'integer', + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.rumEventRateLimitLabel', + { defaultMessage: 'Rate limit events per IP' } + ), + labelAppend: OPTIONAL_LABEL, + helpText: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.rumEventRateLimitHelpText', + { + defaultMessage: + 'Maximum number of events allowed per IP per second.', + } + ), + rowTitle: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.rumEventRateLimitTitle', + { defaultMessage: 'Limits' } + ), + rowDescription: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.rumEventRateLimitDescription', + { defaultMessage: 'Configure authentication for the agent' } + ), + validation: getIntegerRt({ min: 1 }), + }, + { + key: 'rum_event_rate_lru_size', + type: 'integer', + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.rumEventRateLRUSizeLabel', + { defaultMessage: 'Rate limit cache size' } + ), + labelAppend: OPTIONAL_LABEL, + helpText: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.rumEventRateLRUSizeHelpText', + { + defaultMessage: + 'Number of unique IPs to be cached for the rate limiter.', + } + ), + validation: getIntegerRt({ min: 1 }), + }, + { + key: 'rum_library_pattern', + type: 'text', + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.rumLibraryPatternLabel', + { defaultMessage: 'Library Frame Pattern' } + ), + labelAppend: OPTIONAL_LABEL, + helpText: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.rumLibraryPatternHelpText', + { + defaultMessage: + "Identify library frames by matching a stacktrace frame's file_name and abs_path against this regexp.", + } + ), + }, + { + key: 'rum_allow_service_names', + type: 'combo', + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.rumAllowServiceNamesLabel', + { defaultMessage: 'Allowed service names' } + ), + labelAppend: OPTIONAL_LABEL, + rowTitle: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.rumAllowServiceNamesTitle', + { defaultMessage: 'Allowed service names' } + ), + rowDescription: i18n.translate( + 'xpack.apm.fleet_integration.settings.rum.rumAllowServiceNamesDescription', + { defaultMessage: 'Configure authentication for the agent' } + ), + }, + ], + }, + ], + }, +]; + +interface Props { + vars: PackagePolicyVars; + onChange: OnFormChangeFn; +} + +export function RUMSettingsForm({ vars, onChange }: Props) { + return ( + { + const newVars = mergeNewVars(vars, key, value); + onChange( + newVars, + // only validates RUM when its flag is enabled + !newVars[ENABLE_RUM_KEY].value || + isSettingsFormValid(rumSettings, newVars) + ); + }} + /> + ); +} diff --git a/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/settings_form.tsx b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/settings_form.tsx new file mode 100644 index 0000000000000..1b1dcddc0e7f8 --- /dev/null +++ b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/settings_form.tsx @@ -0,0 +1,158 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ +import { + EuiButtonEmpty, + EuiDescribedFormGroup, + EuiFlexGroup, + EuiFlexItem, + EuiFormRow, + EuiHorizontalRule, + EuiPanel, + EuiText, + EuiTitle, +} from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; +import React, { useState } from 'react'; +import { PackagePolicyVars } from '../typings'; +import { FormRowSetting } from './form_row_setting'; +import { SettingDefinition } from './typings'; +import { validateSettingValue } from './utils'; + +export type FormRowOnChange = (key: string, value: any) => void; + +function FormRow({ + initialSetting, + vars, + onChange, +}: { + initialSetting: SettingDefinition; + vars?: PackagePolicyVars; + onChange: FormRowOnChange; +}) { + function getSettingFormRow(setting: SettingDefinition) { + if (setting.type === 'advanced_settings') { + return ( + + {setting.settings.map((advancedSetting) => + getSettingFormRow(advancedSetting) + )} + + ); + } else { + const { key } = setting; + const value = vars?.[key]?.value; + const { isValid, message } = validateSettingValue(setting, value); + return ( + + {setting.rowTitle}} + description={setting.rowDescription} + > + {setting.helpText}} + labelAppend={ + + {setting.labelAppend} + + } + > + + + + {setting.settings && + value && + setting.settings.map((childSettings) => + getSettingFormRow(childSettings) + )} + + ); + } + } + return getSettingFormRow(initialSetting); +} +interface Props { + title: string; + subtitle: string; + settings: SettingDefinition[]; + vars?: PackagePolicyVars; + onChange: FormRowOnChange; +} + +export function SettingsForm({ + title, + subtitle, + settings, + vars, + onChange, +}: Props) { + return ( + + + + +

{title}

+ + + + + {subtitle} + + + + + + {settings.map((setting) => { + return FormRow({ + initialSetting: setting, + vars, + onChange, + }); + })} + + ); +} + +function AdvancedOptions({ children }: { children: React.ReactNode }) { + const [isOpen, setIsOpen] = useState(false); + return ( + <> + + + + + + { + setIsOpen((state) => !state); + }} + > + {i18n.translate( + 'xpack.apm.fleet_integration.settings.advancedOptionsLavel', + { defaultMessage: 'Advanced options' } + )} + + + + + + {isOpen && ( + <> + + {children} + + )} + + ); +} diff --git a/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/tls_settings.tsx b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/tls_settings.tsx new file mode 100644 index 0000000000000..6529de07b7564 --- /dev/null +++ b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/tls_settings.tsx @@ -0,0 +1,117 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ +import { i18n } from '@kbn/i18n'; +import React from 'react'; +import { OnFormChangeFn, PackagePolicyVars } from '../typings'; +import { SettingsForm } from './settings_form'; +import { SettingDefinition } from './typings'; +import { + isSettingsFormValid, + mergeNewVars, + OPTIONAL_LABEL, + REQUIRED_LABEL, +} from './utils'; + +const TLS_ENABLED_KEY = 'tls_enabled'; +const tlsSettings: SettingDefinition[] = [ + { + key: TLS_ENABLED_KEY, + rowTitle: i18n.translate( + 'xpack.apm.fleet_integration.settings.tls.tlsEnabledTitle', + { defaultMessage: 'Enable TLS' } + ), + type: 'boolean', + settings: [ + { + key: 'tls_certificate', + type: 'text', + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.tls.tlsCertificateLabel', + { defaultMessage: 'File path to server certificate' } + ), + rowTitle: i18n.translate( + 'xpack.apm.fleet_integration.settings.tls.tlsCertificateTitle', + { defaultMessage: 'TLS certificate' } + ), + labelAppend: REQUIRED_LABEL, + required: true, + }, + { + key: 'tls_key', + type: 'text', + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.tls.tlsKeyLabel', + { defaultMessage: 'File path to server certificate key' } + ), + labelAppend: REQUIRED_LABEL, + required: true, + }, + { + key: 'tls_supported_protocols', + type: 'combo', + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.tls.tlsSupportedProtocolsLabel', + { defaultMessage: 'Supported protocol versions' } + ), + labelAppend: OPTIONAL_LABEL, + }, + { + key: 'tls_cipher_suites', + type: 'combo', + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.tls.tlsCipherSuitesLabel', + { defaultMessage: 'Cipher suites for TLS connections' } + ), + helpText: i18n.translate( + 'xpack.apm.fleet_integration.settings.tls.tlsCipherSuitesHelpText', + { defaultMessage: 'Not configurable for TLS 1.3.' } + ), + labelAppend: OPTIONAL_LABEL, + }, + { + key: 'tls_curve_types', + type: 'combo', + label: i18n.translate( + 'xpack.apm.fleet_integration.settings.tls.tlsCurveTypesLabel', + { defaultMessage: 'Curve types for ECDHE based cipher suites' } + ), + labelAppend: OPTIONAL_LABEL, + }, + ], + }, +]; + +interface Props { + vars: PackagePolicyVars; + onChange: OnFormChangeFn; +} + +export function TLSSettingsForm({ vars, onChange }: Props) { + return ( + { + const newVars = mergeNewVars(vars, key, value); + onChange( + newVars, + // only validates TLS when its flag is enabled + !newVars[TLS_ENABLED_KEY].value || + isSettingsFormValid(tlsSettings, newVars) + ); + }} + /> + ); +} diff --git a/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/typings.ts b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/typings.ts new file mode 100644 index 0000000000000..8f2e28a72ea2d --- /dev/null +++ b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/typings.ts @@ -0,0 +1,38 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ +import * as t from 'io-ts'; + +export type SettingValidation = t.Type; + +interface AdvancedSettings { + type: 'advanced_settings'; + settings: SettingDefinition[]; +} + +export interface Setting { + type: + | 'text' + | 'combo' + | 'area' + | 'boolean' + | 'integer' + | 'bytes' + | 'duration'; + key: string; + rowTitle?: string; + rowDescription?: string; + label?: string; + helpText?: string; + placeholder?: string; + labelAppend?: string; + settings?: SettingDefinition[]; + validation?: SettingValidation; + required?: boolean; + readOnly?: boolean; +} + +export type SettingDefinition = Setting | AdvancedSettings; diff --git a/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/utils.test.ts b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/utils.test.ts new file mode 100644 index 0000000000000..3b5cbb652e291 --- /dev/null +++ b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/utils.test.ts @@ -0,0 +1,148 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ +import { getDurationRt } from '../../../../../common/agent_configuration/runtime_types/duration_rt'; +import { PackagePolicyVars } from '../typings'; +import { SettingDefinition } from './typings'; +import { + mergeNewVars, + isSettingsFormValid, + validateSettingValue, +} from './utils'; + +describe('settings utils', () => { + describe('validateSettingValue', () => { + it('returns invalid when setting is required and value is empty', () => { + const setting: SettingDefinition = { + key: 'foo', + type: 'text', + required: true, + }; + expect(validateSettingValue(setting, undefined)).toEqual({ + isValid: false, + message: 'Required field', + }); + }); + it('returns valid when setting is NOT required and value is empty', () => { + const setting: SettingDefinition = { + key: 'foo', + type: 'text', + }; + expect(validateSettingValue(setting, undefined)).toEqual({ + isValid: true, + message: '', + }); + }); + it('returns valid when setting does not have a validation property', () => { + const setting: SettingDefinition = { + key: 'foo', + type: 'text', + }; + expect(validateSettingValue(setting, 'foo')).toEqual({ + isValid: true, + message: '', + }); + }); + it('returns valid after validating value', () => { + const setting: SettingDefinition = { + key: 'foo', + type: 'text', + validation: getDurationRt({ min: '1ms' }), + }; + expect(validateSettingValue(setting, '2ms')).toEqual({ + isValid: true, + message: 'No errors!', + }); + }); + it('returns invalid after validating value', () => { + const setting: SettingDefinition = { + key: 'foo', + type: 'text', + validation: getDurationRt({ min: '1ms' }), + }; + expect(validateSettingValue(setting, 'foo')).toEqual({ + isValid: false, + message: 'Must be greater than 1ms', + }); + }); + }); + describe('isSettingsFormValid', () => { + const settings: SettingDefinition[] = [ + { key: 'foo', type: 'text', required: true }, + { + key: 'bar', + type: 'text', + settings: [{ type: 'text', key: 'bar_1', required: true }], + }, + { key: 'baz', type: 'text', validation: getDurationRt({ min: '1ms' }) }, + { + type: 'advanced_settings', + settings: [ + { + type: 'text', + key: 'advanced_1', + required: true, + settings: [ + { + type: 'text', + key: 'advanced_1_1', + validation: getDurationRt({ min: '1ms' }), + settings: [ + { + type: 'text', + key: 'advanced_1_1_1', + required: true, + validation: getDurationRt({ min: '1ms' }), + }, + ], + }, + ], + }, + ], + }, + ]; + it('returns false when form is invalid', () => { + const vars: PackagePolicyVars = { + foo: { value: undefined, type: 'text' }, + bar: { value: undefined, type: 'text' }, + baz: { value: 'baz', type: 'text' }, + advanced_1: { value: undefined, type: 'text' }, + advanced_1_1: { value: '1', type: 'text' }, + advanced_1_1_1: { value: undefined, type: 'text' }, + }; + expect(isSettingsFormValid(settings, vars)).toBeFalsy(); + }); + it('returns true when form is valid', () => { + const vars: PackagePolicyVars = { + foo: { value: 'foo', type: 'text' }, + bar: { value: undefined, type: 'text' }, + bar_1: { value: 'bar_1' }, + baz: { value: '1ms', type: 'text' }, + advanced_1: { value: 'advanced_1', type: 'text' }, + advanced_1_1: { value: undefined, type: 'text' }, + advanced_1_1_1: { value: '1s', type: 'text' }, + }; + expect(isSettingsFormValid(settings, vars)).toBeTruthy(); + }); + }); + describe('mergeNewVars', () => { + it('updates key value', () => { + const vars: PackagePolicyVars = { + foo: { value: 'foo', type: 'text' }, + bar: { value: undefined, type: 'text' }, + baz: { value: '1ms', type: 'text' }, + qux: { value: undefined, type: 'text' }, + }; + const newVars = mergeNewVars(vars, 'qux', 'qux'); + expect(newVars).toEqual({ + foo: { value: 'foo', type: 'text' }, + bar: { value: undefined, type: 'text' }, + baz: { value: '1ms', type: 'text' }, + qux: { value: 'qux', type: 'text' }, + }); + }); + }); +}); diff --git a/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/utils.ts b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/utils.ts new file mode 100644 index 0000000000000..5f19f297ab333 --- /dev/null +++ b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/settings/utils.ts @@ -0,0 +1,77 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { i18n } from '@kbn/i18n'; +import { isRight } from 'fp-ts/lib/Either'; +import { PathReporter } from 'io-ts/lib/PathReporter'; +import { isEmpty } from 'lodash'; +import { PackagePolicyVars } from '../typings'; +import { SettingDefinition, Setting } from './typings'; + +export const REQUIRED_LABEL = i18n.translate( + 'xpack.apm.fleet_integration.settings.requiredLabel', + { defaultMessage: 'Required' } +); +export const OPTIONAL_LABEL = i18n.translate( + 'xpack.apm.fleet_integration.settings.optionalLabel', + { defaultMessage: 'Optional' } +); +const REQUIRED_FIELD = i18n.translate( + 'xpack.apm.fleet_integration.settings.requiredFieldLabel', + { defaultMessage: 'Required field' } +); + +export function mergeNewVars( + oldVars: PackagePolicyVars, + key: string, + value?: any +): PackagePolicyVars { + return { ...oldVars, [key]: { ...oldVars[key], value } }; +} + +export function isSettingsFormValid( + parentSettings: SettingDefinition[], + vars: PackagePolicyVars +) { + function isSettingsValid(settings: SettingDefinition[]): boolean { + return !settings + .map((setting) => { + if (setting.type === 'advanced_settings') { + return isSettingsValid(setting.settings); + } + + if (setting.settings) { + return isSettingsValid(setting.settings); + } + const { isValid } = validateSettingValue( + setting, + vars[setting.key]?.value + ); + return isValid; + }) + .flat() + .some((isValid) => !isValid); + } + return isSettingsValid(parentSettings); +} + +export function validateSettingValue(setting: Setting, value?: any) { + if (isEmpty(value)) { + return { + isValid: !setting.required, + message: setting.required ? REQUIRED_FIELD : '', + }; + } + + if (setting.validation) { + const result = setting.validation.decode(String(value)); + const message = PathReporter.report(result)[0]; + const isValid = isRight(result); + return { isValid, message }; + } + return { isValid: true, message: '' }; +} diff --git a/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/typings.ts b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/typings.ts new file mode 100644 index 0000000000000..0a5ebde1584c3 --- /dev/null +++ b/x-pack/plugins/apm/public/components/fleet_integration/apm_policy_form/typings.ts @@ -0,0 +1,25 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ +import { PackagePolicyConfigRecordEntry } from '../../../../../fleet/common'; + +export { + PackagePolicyCreateExtensionComponentProps, + PackagePolicyEditExtensionComponentProps, +} from '../../../../../fleet/public'; + +export { + NewPackagePolicy, + PackagePolicy, + PackagePolicyConfigRecordEntry, +} from '../../../../../fleet/common'; + +export type PackagePolicyVars = Record; + +export type OnFormChangeFn = ( + newVars: PackagePolicyVars, + isValid: boolean +) => void; diff --git a/x-pack/plugins/apm/public/components/fleet_integration/lazy_apm_policy_create_extension.tsx b/x-pack/plugins/apm/public/components/fleet_integration/lazy_apm_policy_create_extension.tsx new file mode 100644 index 0000000000000..6bde5e9416635 --- /dev/null +++ b/x-pack/plugins/apm/public/components/fleet_integration/lazy_apm_policy_create_extension.tsx @@ -0,0 +1,19 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { lazy } from 'react'; +import { PackagePolicyCreateExtensionComponent } from '../../../../fleet/public'; + +export const getLazyAPMPolicyCreateExtension = () => { + return lazy(async () => { + const { CreateAPMPolicyForm } = await import( + './apm_policy_form/create_apm_policy_form' + ); + + return { default: CreateAPMPolicyForm }; + }); +}; diff --git a/x-pack/plugins/apm/public/components/fleet_integration/lazy_apm_policy_edit_extension.tsx b/x-pack/plugins/apm/public/components/fleet_integration/lazy_apm_policy_edit_extension.tsx new file mode 100644 index 0000000000000..f79d7b58b1621 --- /dev/null +++ b/x-pack/plugins/apm/public/components/fleet_integration/lazy_apm_policy_edit_extension.tsx @@ -0,0 +1,19 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { lazy } from 'react'; +import { PackagePolicyEditExtensionComponent } from '../../../../fleet/public'; + +export const getLazyAPMPolicyEditExtension = () => { + return lazy(async () => { + const { EditAPMPolicyForm } = await import( + './apm_policy_form/edit_apm_policy_form' + ); + + return { default: EditAPMPolicyForm }; + }); +}; diff --git a/x-pack/plugins/apm/public/plugin.ts b/x-pack/plugins/apm/public/plugin.ts index c5271b9637633..8175f46715b8f 100644 --- a/x-pack/plugins/apm/public/plugin.ts +++ b/x-pack/plugins/apm/public/plugin.ts @@ -48,6 +48,8 @@ import { getApmEnrollmentFlyoutData, LazyApmCustomAssetsExtension, } from './components/fleet_integration'; +import { getLazyAPMPolicyCreateExtension } from './components/fleet_integration/lazy_apm_policy_create_extension'; +import { getLazyAPMPolicyEditExtension } from './components/fleet_integration/lazy_apm_policy_edit_extension'; export type ApmPluginSetup = ReturnType; @@ -332,6 +334,18 @@ export class ApmPlugin implements Plugin { view: 'package-detail-assets', Component: LazyApmCustomAssetsExtension, }); + + fleet.registerExtension({ + package: 'apm', + view: 'package-policy-create', + Component: getLazyAPMPolicyCreateExtension(), + }); + + fleet.registerExtension({ + package: 'apm', + view: 'package-policy-edit', + Component: getLazyAPMPolicyEditExtension(), + }); } } } diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/config_agent.stories.tsx b/x-pack/plugins/apm/public/tutorial/config_agent/config_agent.stories.tsx index 0d4d3748422ea..5ac5fa4d1071e 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/config_agent.stories.tsx +++ b/x-pack/plugins/apm/public/tutorial/config_agent/config_agent.stories.tsx @@ -8,8 +8,9 @@ import { Story } from '@storybook/react'; import { HttpStart } from 'kibana/public'; import React from 'react'; +import { POLICY_ELASTIC_AGENT_ON_CLOUD } from '../../../common/fleet'; import TutorialConfigAgent from './'; -import { APIReturnType } from '../..//services/rest/createCallApmApi'; +import { APIReturnType } from '../../services/rest/createCallApmApi'; export type APIResponseType = APIReturnType<'GET /api/apm/fleet/agents'>; @@ -22,7 +23,7 @@ interface Args { } const policyElasticAgentOnCloudAgent: APIResponseType['fleetAgents'][0] = { - id: 'policy-elastic-agent-on-cloud', + id: POLICY_ELASTIC_AGENT_ON_CLOUD, name: 'Elastic Cloud agent policy', apmServerUrl: 'apm_cloud_url', secretToken: 'apm_cloud_token', diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/get_policy_options.ts b/x-pack/plugins/apm/public/tutorial/config_agent/get_policy_options.ts index afbdc867d3e0a..0336c5942127d 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/get_policy_options.ts +++ b/x-pack/plugins/apm/public/tutorial/config_agent/get_policy_options.ts @@ -5,10 +5,9 @@ * 2.0. */ import { i18n } from '@kbn/i18n'; +import { POLICY_ELASTIC_AGENT_ON_CLOUD } from '../../../common/fleet'; import { APIResponseType } from './'; -const POLICY_ELASTIC_AGENT_ON_CLOUD = 'policy-elastic-agent-on-cloud'; - const DEFAULT_STANDALONE_CONFIG_LABEL = i18n.translate( 'xpack.apm.tutorial.agent_config.defaultStandaloneConfig', { defaultMessage: 'Default Standalone configuration' } diff --git a/x-pack/plugins/apm/server/lib/fleet/get_apm_package_policy_definition.ts b/x-pack/plugins/apm/server/lib/fleet/get_apm_package_policy_definition.ts index 584f51bbf77a5..0b086d1998be9 100644 --- a/x-pack/plugins/apm/server/lib/fleet/get_apm_package_policy_definition.ts +++ b/x-pack/plugins/apm/server/lib/fleet/get_apm_package_policy_definition.ts @@ -5,11 +5,9 @@ * 2.0. */ +import { POLICY_ELASTIC_AGENT_ON_CLOUD } from '../../../common/fleet'; import { APMPluginSetupDependencies } from '../../types'; -import { - POLICY_ELASTIC_AGENT_ON_CLOUD, - APM_PACKAGE_NAME, -} from './get_cloud_apm_package_policy'; +import { APM_PACKAGE_NAME } from './get_cloud_apm_package_policy'; interface GetApmPackagePolicyDefinitionOptions { apmServerSchema: Record; diff --git a/x-pack/plugins/apm/server/lib/fleet/get_cloud_apm_package_policy.ts b/x-pack/plugins/apm/server/lib/fleet/get_cloud_apm_package_policy.ts index b0044701e4020..d48e2315eace3 100644 --- a/x-pack/plugins/apm/server/lib/fleet/get_cloud_apm_package_policy.ts +++ b/x-pack/plugins/apm/server/lib/fleet/get_cloud_apm_package_policy.ts @@ -9,8 +9,8 @@ import { SavedObjectsClientContract } from 'kibana/server'; import { Maybe } from '../../../typings/common'; import { AgentPolicy, PackagePolicy } from '../../../../fleet/common'; import { APMPluginStartDependencies } from '../../types'; +import { POLICY_ELASTIC_AGENT_ON_CLOUD } from '../../../common/fleet'; -export const POLICY_ELASTIC_AGENT_ON_CLOUD = 'policy-elastic-agent-on-cloud'; export const APM_PACKAGE_NAME = 'apm'; export async function getCloudAgentPolicy({ From ddd265520212a2764d53b91f08407b31b526c843 Mon Sep 17 00:00:00 2001 From: Brian Seeders Date: Fri, 30 Jul 2021 16:35:55 -0400 Subject: [PATCH 22/40] skip flaky suite (#106658) --- .../tests/common/cases/reporters/get_reporters.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x-pack/test/case_api_integration/security_only/tests/common/cases/reporters/get_reporters.ts b/x-pack/test/case_api_integration/security_only/tests/common/cases/reporters/get_reporters.ts index 4c72dafed053b..f72db1ac1b27e 100644 --- a/x-pack/test/case_api_integration/security_only/tests/common/cases/reporters/get_reporters.ts +++ b/x-pack/test/case_api_integration/security_only/tests/common/cases/reporters/get_reporters.ts @@ -34,7 +34,8 @@ export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); - describe('get_reporters', () => { + // Failing: See https://github.com/elastic/kibana/issues/106658 + describe.skip('get_reporters', () => { afterEach(async () => { await deleteCasesByESQuery(es); }); From 6b637bbc8877033fac96310dbf39d5954b46b035 Mon Sep 17 00:00:00 2001 From: Dominique Clarke Date: Fri, 30 Jul 2021 17:12:19 -0400 Subject: [PATCH 23/40] [Uptime] Fix Synthetics Integration flaky tests (#107323) * focus flaky tests * add test subjects for header field buttons * remove focused tests * adjust types Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../components/fleet_package/header_field.tsx | 9 ++++++++- .../fleet_package/http/advanced_fields.tsx | 4 ++-- .../fleet_package/key_value_field.tsx | 18 ++++++++++++++---- .../synthetics_integration_page.ts | 2 +- 4 files changed, 25 insertions(+), 8 deletions(-) diff --git a/x-pack/plugins/uptime/public/components/fleet_package/header_field.tsx b/x-pack/plugins/uptime/public/components/fleet_package/header_field.tsx index eaf9be50e9665..035d71d3c7132 100644 --- a/x-pack/plugins/uptime/public/components/fleet_package/header_field.tsx +++ b/x-pack/plugins/uptime/public/components/fleet_package/header_field.tsx @@ -15,9 +15,15 @@ interface Props { contentMode?: Mode; defaultValue: Record; onChange: (value: Record) => void; + 'data-test-subj'?: string; } -export const HeaderField = ({ contentMode, defaultValue, onChange }: Props) => { +export const HeaderField = ({ + contentMode, + defaultValue, + onChange, + 'data-test-subj': dataTestSubj, +}: Props) => { const defaultValueKeys = Object.keys(defaultValue).filter((key) => key !== 'Content-Type'); // Content-Type is a secret header we hide from the user const formattedDefaultValues: Pair[] = [ ...defaultValueKeys.map((key) => { @@ -55,6 +61,7 @@ export const HeaderField = ({ contentMode, defaultValue, onChange }: Props) => { } defaultPairs={headers} onChange={setHeaders} + data-test-subj={dataTestSubj} /> ); }; diff --git a/x-pack/plugins/uptime/public/components/fleet_package/http/advanced_fields.tsx b/x-pack/plugins/uptime/public/components/fleet_package/http/advanced_fields.tsx index aeaa452c38db9..267ccd678ddad 100644 --- a/x-pack/plugins/uptime/public/components/fleet_package/http/advanced_fields.tsx +++ b/x-pack/plugins/uptime/public/components/fleet_package/http/advanced_fields.tsx @@ -205,7 +205,6 @@ export const HTTPAdvancedFields = memo(({ validate }) => { defaultMessage="A dictionary of additional HTTP headers to send. By default the client will set the User-Agent header to identify itself." /> } - data-test-subj="syntheticsRequestHeaders" > (({ validate }) => { }), [handleInputChange] )} + data-test-subj="syntheticsRequestHeaders" /> (({ validate }) => { defaultMessage="A list of expected response headers." /> } - data-test-subj="syntheticsResponseHeaders" > (({ validate }) => { }), [handleInputChange] )} + data-test-subj="syntheticsResponseHeaders" /> void; + 'data-test-subj'?: string; } -export const KeyValuePairsField = ({ addPairControlLabel, defaultPairs, onChange }: Props) => { +export const KeyValuePairsField = ({ + addPairControlLabel, + defaultPairs, + onChange, + 'data-test-subj': dataTestSubj, +}: Props) => { const [pairs, setPairs] = useState(defaultPairs); const handleOnChange = useCallback( @@ -89,11 +95,15 @@ export const KeyValuePairsField = ({ addPairControlLabel, defaultPairs, onChange }, [onChange, pairs]); return ( - <> +
- + {addPairControlLabel} @@ -176,6 +186,6 @@ export const KeyValuePairsField = ({ addPairControlLabel, defaultPairs, onChange ); })} - +
); }; diff --git a/x-pack/test/functional/page_objects/synthetics_integration_page.ts b/x-pack/test/functional/page_objects/synthetics_integration_page.ts index 81ddaf06febd9..daebb1d2a2f99 100644 --- a/x-pack/test/functional/page_objects/synthetics_integration_page.ts +++ b/x-pack/test/functional/page_objects/synthetics_integration_page.ts @@ -178,7 +178,7 @@ export function SyntheticsIntegrationPageProvider({ */ async configureHeaders(testSubj: string, headers: Record) { const headersContainer = await testSubjects.find(testSubj); - const addHeaderButton = await headersContainer.findByCssSelector('button'); + const addHeaderButton = await testSubjects.find(`${testSubj}__button`); const keys = Object.keys(headers); await Promise.all( From f20bce4bf92cf9dae3d6535a30610a9e639c32bd Mon Sep 17 00:00:00 2001 From: Byron Hulcher Date: Fri, 30 Jul 2021 18:14:30 -0400 Subject: [PATCH 24/40] [App Search] New GenericEndpointInlineEditableTable component (#107252) * Here's the logic * Added GenericEndpointInlineEditableTable * small component test suggestions - clarify relationship between onX props and logic actions - assert on a few props (isLoading override and title ...rest) * [opinionated] remove EndpointRoute generic I'm not sure I see the benefit of DRYing this type - it makes it less clear that the prop is a function, and when all the other onX props are standard typescript function defs and repeated a bunch next to them, it seems a bit futile In this scenario I'd rather us be explicit if repetitive (and be able to skim all props/actions at once) than obtuse but super DRY * Fix reorderItems ts-ignores - remove unnecessary hasReorderProps fn in favor of an early return - destructure props - remove confusing itemsFromResponse destructure in favor of a 2nd line * Fix TODO where we don't actually set table loading state to true for the async call * Fix ts-ignored + prefer 2nd const over confusing destructure * [opinionated] clean up unnecessary separate types since reorder props are optional anyway, I don't see a reason to separate them out into a completely different type * Refactor stripIdAndCreatedAtFromItem to a util file, write tests, and attempt to address type TODO - not really sure the type change is accurate, but ? should minimize the impact * [opinionated] Remove saveAndCallback fn in favor of straightforward try/catch http calls - easier to read and requires less jumping back and forth through the file to see what's happening in what order - matches the flow/pattern of all our other logic files http calls - it's actually 16 less total lines in any case heh Co-authored-by: Jason Stoltzfus Co-authored-by: Constance Chen --- ...ic_endpoint_inline_editable_table.test.tsx | 59 ++++ ...generic_endpoint_inline_editable_table.tsx | 77 +++++ ...dpoint_inline_editable_table_logic.test.ts | 308 ++++++++++++++++++ ...ic_endpoint_inline_editable_table_logic.ts | 159 +++++++++ .../utils.test.ts | 23 ++ .../utils.ts | 15 + .../inline_editable_table/action_column.tsx | 3 +- .../inline_editable_table/editing_column.tsx | 4 +- .../get_updated_columns.tsx | 3 +- .../inline_editable_table.tsx | 6 +- .../inline_editable_table_logic.ts | 4 +- .../tables/inline_editable_table/types.ts | 5 +- .../applications/shared/tables/types.ts | 11 + 13 files changed, 667 insertions(+), 10 deletions(-) create mode 100644 x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/generic_endpoint_inline_editable_table.test.tsx create mode 100644 x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/generic_endpoint_inline_editable_table.tsx create mode 100644 x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/generic_endpoint_inline_editable_table_logic.test.ts create mode 100644 x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/generic_endpoint_inline_editable_table_logic.ts create mode 100644 x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/utils.test.ts create mode 100644 x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/utils.ts create mode 100644 x-pack/plugins/enterprise_search/public/applications/shared/tables/types.ts diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/generic_endpoint_inline_editable_table.test.tsx b/x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/generic_endpoint_inline_editable_table.test.tsx new file mode 100644 index 0000000000000..55849bdaa058a --- /dev/null +++ b/x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/generic_endpoint_inline_editable_table.test.tsx @@ -0,0 +1,59 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { setMockActions, setMockValues } from '../../../__mocks__/kea_logic'; + +import React from 'react'; + +import { shallow } from 'enzyme'; + +import { InlineEditableTable } from '../inline_editable_table'; + +import { GenericEndpointInlineEditableTable } from './generic_endpoint_inline_editable_table'; + +describe('GenericEndpointInlineEditableTable', () => { + const mockValues = { + isLoading: false, + }; + const mockActions = { + addItem: jest.fn(), + deleteItem: jest.fn(), + reorderItems: jest.fn(), + updateItem: jest.fn(), + }; + + beforeEach(() => { + jest.clearAllMocks(); + setMockActions(mockActions); + setMockValues(mockValues); + }); + + const items = [{ id: 1 }, { id: 2 }]; + + const props = { + dataProperty: 'foo', + instanceId: 'MyInstance', + addRoute: 'route/to/add/new/items', + reorderRoute: 'route/to/reorder/items', + deleteRoute: (item: any) => `route/to/delete/item/${item.id}`, + updateRoute: (item: any) => `route/to/update/item/${item.id}`, + onReorder: mockActions.reorderItems, + onAdd: mockActions.addItem, + onDelete: mockActions.deleteItem, + onUpdate: mockActions.updateItem, + columns: [], + items, + title: 'Some Title', + }; + + it('renders', () => { + const wrapper = shallow(); + expect(wrapper.find(InlineEditableTable).exists()).toBe(true); + expect(wrapper.find(InlineEditableTable).prop('isLoading')).toEqual(false); + expect(wrapper.find(InlineEditableTable).prop('title')).toEqual('Some Title'); + }); +}); diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/generic_endpoint_inline_editable_table.tsx b/x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/generic_endpoint_inline_editable_table.tsx new file mode 100644 index 0000000000000..63b3d4b407667 --- /dev/null +++ b/x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/generic_endpoint_inline_editable_table.tsx @@ -0,0 +1,77 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import React from 'react'; + +import { useActions, useValues } from 'kea'; + +import { + InlineEditableTable, + InlineEditableTableProps, +} from '../inline_editable_table/inline_editable_table'; +import { ItemWithAnID } from '../types'; + +import { GenericEndpointInlineEditableTableLogic } from './generic_endpoint_inline_editable_table_logic'; + +export interface GenericEndpointInlineEditableTableProps + extends Omit< + InlineEditableTableProps, + 'onAdd' | 'onDelete' | 'onUpdate' | 'isLoading' | 'itemId' + > { + addRoute: string; + instanceId: string; + dataProperty: string; + deleteRoute(item: ItemWithAnID): string; + reorderRoute?: string; + updateRoute(item: ItemWithAnID): string; + onAdd(item: ItemWithAnID, items: ItemWithAnID[]): void; + onDelete(item: ItemWithAnID, items: ItemWithAnID[]): void; + onUpdate(item: ItemWithAnID, items: ItemWithAnID[]): void; + onReorder?(items: ItemWithAnID[]): void; +} + +export const GenericEndpointInlineEditableTable = ({ + addRoute, + dataProperty, + deleteRoute, + reorderRoute, + updateRoute, + onAdd, + onDelete, + onReorder, + onUpdate, + ...props +}: GenericEndpointInlineEditableTableProps) => { + const { instanceId } = props; + + const genericEndpointLogic = GenericEndpointInlineEditableTableLogic({ + dataProperty, + instanceId, + addRoute, + deleteRoute, + reorderRoute, + updateRoute, + onAdd, + onDelete, + onReorder, + onUpdate, + }); + + const { isLoading } = useValues(genericEndpointLogic); + const { addItem, deleteItem, reorderItems, updateItem } = useActions(genericEndpointLogic); + + return ( + + ); +}; diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/generic_endpoint_inline_editable_table_logic.test.ts b/x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/generic_endpoint_inline_editable_table_logic.test.ts new file mode 100644 index 0000000000000..5cd4b5af8f517 --- /dev/null +++ b/x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/generic_endpoint_inline_editable_table_logic.test.ts @@ -0,0 +1,308 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { + LogicMounter, + mockFlashMessageHelpers, + mockHttpValues, +} from '../../../__mocks__/kea_logic'; + +import { nextTick } from '@kbn/test/jest'; + +import { GenericEndpointInlineEditableTableLogic } from './generic_endpoint_inline_editable_table_logic'; + +describe('GenericEndpointInlineEditableTableLogic', () => { + const { mount } = new LogicMounter(GenericEndpointInlineEditableTableLogic); + const { http } = mockHttpValues; + const { flashAPIErrors } = mockFlashMessageHelpers; + + const DEFAULT_VALUES = { + isLoading: false, + }; + + const DEFAULT_LOGIC_PARAMS = { + dataProperty: 'foo', + instanceId: 'MyInstance', + addRoute: 'route/to/add/new/items', + reorderRoute: 'route/to/reorder/items', + deleteRoute: (item: any) => `route/to/delete/item/${item.id}`, + updateRoute: (item: any) => `route/to/update/item/${item.id}`, + onReorder: jest.fn(), + onAdd: jest.fn(), + onDelete: jest.fn(), + onUpdate: jest.fn(), + }; + + beforeEach(() => { + jest.resetAllMocks(); + }); + + const mountLogic = (values: object = {}, props: object = DEFAULT_LOGIC_PARAMS) => + mount(values, props); + + it('has expected default values', () => { + const logic = mountLogic(); + expect(logic.values).toEqual({ + ...DEFAULT_VALUES, + }); + }); + + describe('actions', () => { + describe('setLoading', () => { + it('sets isLoading to true', () => { + const logic = mountLogic({ + isLoading: false, + }); + logic.actions.setLoading(); + expect(logic.values).toEqual({ + ...DEFAULT_VALUES, + isLoading: true, + }); + }); + }); + + describe('clearLoading', () => { + it('sets isLoading to false', () => { + const logic = mountLogic({ + isLoading: true, + }); + logic.actions.clearLoading(); + expect(logic.values).toEqual({ + ...DEFAULT_VALUES, + isLoading: false, + }); + }); + }); + }); + + describe('listeners', () => { + describe('addItem', () => { + const item = { id: 1 }; + const onSuccess = jest.fn(); + + it('makes an API call', async () => { + const mockResponse = { + foo: { some: 'data' }, + }; + + http.post.mockReturnValueOnce(Promise.resolve(mockResponse)); + const logic = mountLogic(); + jest.spyOn(logic.actions, 'clearLoading'); + + logic.actions.addItem(item, onSuccess); + + // It sets isLoading to true before it stars the request + expect(logic.values).toEqual({ + ...DEFAULT_VALUES, + isLoading: true, + }); + + await nextTick(); + + // It posts the provided 'item' to the configured 'adddRoute' + expect(http.post).toHaveBeenCalledWith('route/to/add/new/items', { + body: JSON.stringify({ id: 1 }), + }); + + // It retrieves data from the response based on the configured 'dataProperty' + // Then calls back to the configured 'onAdd' function + expect(DEFAULT_LOGIC_PARAMS.onAdd).toHaveBeenCalledWith({ id: 1 }, { some: 'data' }); + + // It calls the onSuccess callback + expect(onSuccess).toHaveBeenCalled(); + + // Then it cleans up when it's done + expect(logic.actions.clearLoading).toHaveBeenCalled(); + }); + + it('handles errors', async () => { + http.post.mockReturnValueOnce(Promise.reject('error')); + const logic = mountLogic(); + + logic.actions.addItem(item, onSuccess); + await nextTick(); + + expect(flashAPIErrors).toHaveBeenCalledWith('error'); + }); + }); + + describe('deleteItem', () => { + const item = { id: 1 }; + const onSuccess = jest.fn(); + + it('makes an API call', async () => { + const mockResponse = { + foo: { some: 'data' }, + }; + + http.delete.mockReturnValueOnce(Promise.resolve(mockResponse)); + const logic = mountLogic(); + jest.spyOn(logic.actions, 'clearLoading'); + + logic.actions.deleteItem(item, onSuccess); + + // It sets isLoading to true before it stars the request + expect(logic.values).toEqual({ + ...DEFAULT_VALUES, + isLoading: true, + }); + + await nextTick(); + + // It deletes the 'item' using the configured 'deleteRoute' + expect(http.delete).toHaveBeenCalledWith('route/to/delete/item/1'); + + // It retrieves data from the response based on the configured 'dataProperty' + // Then calls back to the configured 'onAdd' function + expect(DEFAULT_LOGIC_PARAMS.onDelete).toHaveBeenCalledWith({ id: 1 }, { some: 'data' }); + + // It calls the onSuccess callback + expect(onSuccess).toHaveBeenCalled(); + + // Then it cleans up when it's done + expect(logic.actions.clearLoading).toHaveBeenCalled(); + }); + + it('handles errors', async () => { + http.delete.mockReturnValueOnce(Promise.reject('error')); + const logic = mountLogic(); + + logic.actions.deleteItem(item, onSuccess); + await nextTick(); + + expect(flashAPIErrors).toHaveBeenCalledWith('error'); + }); + }); + + describe('updateItem', () => { + const item = { id: 1, other: 'other', created_at: '5/17/1984' }; + const onSuccess = jest.fn(); + + it('makes an API call', async () => { + const mockResponse = { + foo: { some: 'data' }, + }; + + http.put.mockReturnValueOnce(Promise.resolve(mockResponse)); + const logic = mountLogic(); + jest.spyOn(logic.actions, 'clearLoading'); + + logic.actions.updateItem(item, onSuccess); + + // It sets isLoading to true before it stars the request + expect(logic.values).toEqual({ + ...DEFAULT_VALUES, + isLoading: true, + }); + + await nextTick(); + + // It updates the 'item' using the configured 'updateRoute', with the id + // and created_at stripped from the object + expect(http.put).toHaveBeenCalledWith('route/to/update/item/1', { + body: JSON.stringify({ other: 'other' }), + }); + + // It retrieves data from the response based on the configured 'dataProperty' + // Then calls back to the configured 'onAdd' function + expect(DEFAULT_LOGIC_PARAMS.onUpdate).toHaveBeenCalledWith( + { id: 1, other: 'other', created_at: '5/17/1984' }, + { some: 'data' } + ); + + // It calls the onSuccess callback + expect(onSuccess).toHaveBeenCalled(); + + // Then it cleans up when it's done + expect(logic.actions.clearLoading).toHaveBeenCalled(); + }); + + it('handles errors', async () => { + http.put.mockReturnValueOnce(Promise.reject('error')); + const logic = mountLogic(); + + logic.actions.updateItem(item, onSuccess); + await nextTick(); + + expect(flashAPIErrors).toHaveBeenCalledWith('error'); + }); + }); + + describe('reorderItems', () => { + const items = [{ id: 2 }, { id: 1 }]; + const oldItems = [{ id: 1 }, { id: 2 }]; + const onSuccess = jest.fn(); + + it('makes an API call', async () => { + const mockResponse = { + foo: [{ id: 2 }, { id: 1 }], + }; + http.put.mockReturnValueOnce(Promise.resolve(mockResponse)); + + const logic = mountLogic(); + jest.spyOn(logic.actions, 'setLoading'); + jest.spyOn(logic.actions, 'clearLoading'); + + logic.actions.reorderItems(items, oldItems, onSuccess); + + // It calls back to the configured 'onReorder' function + expect(DEFAULT_LOGIC_PARAMS.onReorder).toHaveBeenCalledWith(items); + + // Sets loading state + expect(logic.actions.setLoading).toHaveBeenCalled(); + + await nextTick(); + + // Updates the reordered items on the server using the configured 'reorderRoute' + // and 'dataProperty'. It also injects 'order' properties. + expect(http.put).toHaveBeenCalledWith('route/to/reorder/items', { + body: JSON.stringify({ + foo: [ + { + id: 2, + order: 0, + }, + { + id: 1, + order: 1, + }, + ], + }), + }); + + // It again calls back to the configured 'onReorder' function with items + // it parsed back from the response using the 'dataProperty' config + expect(DEFAULT_LOGIC_PARAMS.onReorder).toHaveBeenCalledWith(items); + + // It calls the onSuccess callback + expect(onSuccess).toHaveBeenCalled(); + + // Then it cleans up when it's done + expect(logic.actions.clearLoading).toHaveBeenCalled(); + }); + + it('handles errors', async () => { + http.put.mockReturnValueOnce(Promise.reject('error')); + const logic = mountLogic(); + + logic.actions.reorderItems(items, oldItems, onSuccess); + await nextTick(); + + // It again calls back to the configured 'onReorder' to reset the order + expect(DEFAULT_LOGIC_PARAMS.onReorder).toHaveBeenCalledWith(oldItems); + expect(flashAPIErrors).toHaveBeenCalledWith('error'); + }); + + it('does nothing if there are no reorder props', async () => { + const { reorderRoute, ...rest } = DEFAULT_LOGIC_PARAMS; + const logic = mountLogic({}, rest); + logic.actions.reorderItems(items, oldItems, onSuccess); + expect(http.put).not.toHaveBeenCalled(); + }); + }); + }); +}); diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/generic_endpoint_inline_editable_table_logic.ts b/x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/generic_endpoint_inline_editable_table_logic.ts new file mode 100644 index 0000000000000..9cb1061993dc3 --- /dev/null +++ b/x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/generic_endpoint_inline_editable_table_logic.ts @@ -0,0 +1,159 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { kea, MakeLogicType } from 'kea'; + +import { flashAPIErrors } from '../../flash_messages'; + +import { HttpLogic } from '../../http'; + +import { ItemWithAnID } from '../types'; + +import { stripIdAndCreatedAtFromItem } from './utils'; + +interface GenericEndpointInlineEditableTableValues { + isLoading: boolean; +} + +interface GenericEndpointInlineEditableTableActions { + addItem(item: Item, onSuccess: () => void): { item: Item; onSuccess: () => void }; + setLoading(): void; + clearLoading(): void; + deleteItem(item: Item, onSuccess: () => void): { item: Item; onSuccess: () => void }; + reorderItems( + items: Item[], + oldItems: Item[], + onSuccess: () => void + ): { items: Item[]; oldItems: Item[]; onSuccess: () => void }; + updateItem(item: Item, onSuccess: () => void): { item: Item; onSuccess: () => void }; +} + +interface GenericEndpointInlineEditableTableProps { + dataProperty: string; + addRoute: string; + instanceId: string; + deleteRoute(item: Item): string; + updateRoute(item: Item): string; + onAdd(item: Item, items: Item[]): void; + onDelete(item: Item, items: Item[]): void; + onUpdate(item: Item, items: Item[]): void; + // With reordering + reorderRoute?: string; + onReorder?(items: Item[]): void; +} + +type GenericEndpointInlineEditableTableLogicType = MakeLogicType< + GenericEndpointInlineEditableTableValues, + GenericEndpointInlineEditableTableActions, + GenericEndpointInlineEditableTableProps +>; + +export const GenericEndpointInlineEditableTableLogic = kea< + GenericEndpointInlineEditableTableLogicType +>({ + path: (key: string) => ['enterprise_search', 'generic_endpoint_inline_editable_table_logic', key], + key: (props) => props.instanceId, + actions: () => ({ + addItem: (item, onSuccess) => ({ item, onSuccess }), + setLoading: true, + clearLoading: true, + deleteItem: (item, onSuccess) => ({ item, onSuccess }), + reorderItems: (items, oldItems, onSuccess) => ({ items, oldItems, onSuccess }), + updateItem: (item, onSuccess) => ({ item, onSuccess }), + }), + reducers: () => ({ + isLoading: [ + false, + { + addItem: () => true, + setLoading: () => true, + clearLoading: () => false, + deleteItem: () => true, + updateItem: () => true, + }, + ], + }), + listeners: ({ actions, props }) => ({ + addItem: async ({ item, onSuccess }) => { + const { http } = HttpLogic.values; + const { addRoute, onAdd, dataProperty } = props; + + try { + const response = await http.post(addRoute, { body: JSON.stringify(item) }); + const itemsFromResponse = response[dataProperty]; + + onAdd(item, itemsFromResponse); + onSuccess(); + } catch (e) { + flashAPIErrors(e); + } finally { + actions.clearLoading(); + } + }, + deleteItem: async ({ item, onSuccess }) => { + const { http } = HttpLogic.values; + const { deleteRoute, onDelete, dataProperty } = props; + + try { + const response = await http.delete(deleteRoute(item)); + const itemsFromResponse = response[dataProperty]; + + onDelete(item, itemsFromResponse); + onSuccess(); + } catch (e) { + flashAPIErrors(e); + } finally { + actions.clearLoading(); + } + }, + updateItem: async ({ item, onSuccess }) => { + const { http } = HttpLogic.values; + const { updateRoute, onUpdate, dataProperty } = props; + + const dataToSubmit = stripIdAndCreatedAtFromItem(item); + try { + const response = await http.put(updateRoute(item), { + body: JSON.stringify(dataToSubmit), + }); + const itemsFromResponse = response[dataProperty]; + + onUpdate(item, itemsFromResponse); + onSuccess(); + } catch (e) { + flashAPIErrors(e); + } finally { + actions.clearLoading(); + } + }, + reorderItems: async ({ items, oldItems, onSuccess }) => { + const { reorderRoute, onReorder, dataProperty } = props; + if (!reorderRoute || !onReorder) return; + + const { http } = HttpLogic.values; + + const reorderedItemIds = items.map(({ id }, itemIndex) => ({ id, order: itemIndex })); + onReorder(items); // We optimistically reorder this so that the client-side UI doesn't snap back while waiting for the http response + + try { + actions.setLoading(); + + const response = await http.put(reorderRoute, { + body: JSON.stringify({ [dataProperty]: reorderedItemIds }), + }); + const itemsFromResponse = response[dataProperty]; + + onReorder(itemsFromResponse); // Final reorder based on server response + onSuccess(); + } catch (e) { + onReorder(oldItems); + flashAPIErrors(e); + } + + actions.clearLoading(); + }, + }), +}); diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/utils.test.ts b/x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/utils.test.ts new file mode 100644 index 0000000000000..fa561d92f6dc0 --- /dev/null +++ b/x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/utils.test.ts @@ -0,0 +1,23 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { stripIdAndCreatedAtFromItem } from './utils'; + +describe('stripIdAndCreatedAtFromItem', () => { + it('removes the id and created_at fields from an object', () => { + expect(stripIdAndCreatedAtFromItem({ id: 123, created_at: 'today' })).toEqual({}); + + expect( + stripIdAndCreatedAtFromItem({ id: 123, created_at: 'today', hello: 'world' } as any) + ).toEqual({ hello: 'world' }); + }); + + it('does not mutate the original object', () => { + const item = { id: 456, created_at: 'yesterday' }; + expect(stripIdAndCreatedAtFromItem(item)).not.toBe(item); + }); +}); diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/utils.ts b/x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/utils.ts new file mode 100644 index 0000000000000..d7a39f155142d --- /dev/null +++ b/x-pack/plugins/enterprise_search/public/applications/shared/tables/generic_endpoint_inline_editable_table/utils.ts @@ -0,0 +1,15 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { ItemWithAnID } from '../types'; + +export const stripIdAndCreatedAtFromItem = (item: ItemWithAnID) => { + const itemToClean = { ...item } as Partial; + delete itemToClean.id; + delete itemToClean.created_at; + return itemToClean; +}; diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/action_column.tsx b/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/action_column.tsx index fe0ada8a2f914..1ba84a2fa43af 100644 --- a/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/action_column.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/action_column.tsx @@ -18,8 +18,9 @@ import { SAVE_BUTTON_LABEL, } from '../../constants'; +import { ItemWithAnID } from '../types'; + import { InlineEditableTableLogic } from './inline_editable_table_logic'; -import { ItemWithAnID } from './types'; interface ActionColumnProps { displayedItems: Item[]; diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/editing_column.tsx b/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/editing_column.tsx index 43a1d5de9b44f..d3d36046dc0a6 100644 --- a/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/editing_column.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/editing_column.tsx @@ -11,8 +11,10 @@ import { useActions, useValues } from 'kea'; import { EuiFormRow, EuiText } from '@elastic/eui'; +import { ItemWithAnID } from '../types'; + import { InlineEditableTableLogic } from './inline_editable_table_logic'; -import { InlineEditableTableColumn, ItemWithAnID } from './types'; +import { InlineEditableTableColumn } from './types'; interface EditingColumnProps { column: InlineEditableTableColumn; diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/get_updated_columns.tsx b/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/get_updated_columns.tsx index 8a61e12442f7c..e3a3b2b496a97 100644 --- a/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/get_updated_columns.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/get_updated_columns.tsx @@ -8,10 +8,11 @@ import React from 'react'; import { Column } from '../reorderable_table/types'; +import { ItemWithAnID } from '../types'; import { ActionColumn } from './action_column'; import { EditingColumn } from './editing_column'; -import { ItemWithAnID, InlineEditableTableColumn } from './types'; +import { InlineEditableTableColumn } from './types'; interface GetUpdatedColumnProps { columns: Array>; diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table.tsx b/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table.tsx index fd7aac957b234..3e351f5826abc 100644 --- a/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table.tsx @@ -16,14 +16,16 @@ import { i18n } from '@kbn/i18n'; import { ReorderableTable } from '../reorderable_table'; +import { ItemWithAnID } from '../types'; + import { EMPTY_ITEM } from './constants'; import { getUpdatedColumns } from './get_updated_columns'; import { InlineEditableTableLogic } from './inline_editable_table_logic'; -import { FormErrors, InlineEditableTableColumn, ItemWithAnID } from './types'; +import { FormErrors, InlineEditableTableColumn } from './types'; import './inline_editable_tables.scss'; -interface InlineEditableTableProps { +export interface InlineEditableTableProps { columns: Array>; items: Item[]; title: string; diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table_logic.ts b/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table_logic.ts index ab6694861a6ad..0230fc0754120 100644 --- a/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table_logic.ts +++ b/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/inline_editable_table_logic.ts @@ -7,7 +7,9 @@ import { kea, MakeLogicType } from 'kea'; -import { FormErrors, InlineEditableTableColumn, ItemWithAnID } from './types'; +import { ItemWithAnID } from '../types'; + +import { FormErrors, InlineEditableTableColumn } from './types'; interface InlineEditableTableActions { deleteItem(item: Item): { item: Item }; diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/types.ts b/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/types.ts index 35e60cdf4e146..89c89d665781e 100644 --- a/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/types.ts +++ b/x-pack/plugins/enterprise_search/public/applications/shared/tables/inline_editable_table/types.ts @@ -8,15 +8,12 @@ import React from 'react'; import { Column } from '../reorderable_table/types'; +import { ItemWithAnID } from '../types'; export interface FormErrors { [key: string]: string | undefined; } -export type ItemWithAnID = { - id: number | null; -} & object; - export interface EditingRenderFlags { isInvalid: boolean; isLoading: boolean; diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/tables/types.ts b/x-pack/plugins/enterprise_search/public/applications/shared/tables/types.ts new file mode 100644 index 0000000000000..f2a2531726b33 --- /dev/null +++ b/x-pack/plugins/enterprise_search/public/applications/shared/tables/types.ts @@ -0,0 +1,11 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +export type ItemWithAnID = { + id: number | null; + created_at?: string; +} & object; From e771748d96ba098e2e35cf98a010f4f2a23c9c39 Mon Sep 17 00:00:00 2001 From: Justin Kambic Date: Sat, 31 Jul 2021 15:24:37 -0400 Subject: [PATCH 25/40] [Synthetics] Improve dedupe client performance (#103979) * Add new runtime types for parsing on client/server. * Add more runtime types. * Remove dead code. * Mark parameter as unused. * Improve typing for failed journey request function. * Add new API functions, improve typing in a few others. * Modify API calls to work with new screenshot_ref data. * Fix untested refactor error. * Add required fields to runtime type. * Update typing in failed steps component. * Adapt client to work with old screenshots as well as new screenshot_ref. * Refactor composite code to reusable hook. * Implement screenshot blocks endpoint. * TEMP COMMIT. * Add new runtime types for parsing on client/server. * Add more runtime types. * Remove dead code. * Mark parameter as unused. * Improve typing for failed journey request function. * Add new API functions, improve typing in a few others. * Modify API calls to work with new screenshot_ref data. * Fix untested refactor error. * Add required fields to runtime type. * Update typing in failed steps component. * Adapt client to work with old screenshots as well as new screenshot_ref. * Refactor composite code to reusable hook. * Implement screenshot blocks endpoint. * Define runtime types for full-size screenshots. * Delete dedicated screenshot and ref queries. * Optimize screenshot endpoint by combining queries. * Handle parsing error. * Clean up screenshot/ref typings. * Remove dead types. DRY a type out. * Simplify types. * Improve typing in step screenshot components. * Prefer PNG to JPG for canvas composite op. * Simplify and clean up some code. * Remove reliance on `Ping` type, clean up types. * Add a comment. * Add a comment. * Fix typing for `FailedStep` component. * Standardize loading spinner sizes. * Add comments to composite code. * Remove unnecessary optional chaining. * Reformat error string. * Remove unneeded key from request return object. * Add a comment to a return object explaining very large cache value. * Make type annotation more accurate. * Resolve some type and test errors. * Clean up remaining type errors. * Move type definitions to simplify imports. * Simplify `PingTimestamp` interface. * Refactor failing unit test to use RTL and actually test things. * Add tests for new helper functions. * Add a comment. * Test `PingTimestamp` for screenshot ref data. * Test `StepImageCaption` for ref data. * Improve typing for step list column definitions. * Harden a test. * Extract code to avoid repeated declarations. * Create centralized mock for `useCompositeImage`. * Add test for ref to `StepScreenshotDisplay`. * Add tests for `getJourneyDetails`. * Extract search results wrapper to helper lib. * Add tests for `getJourneyFailedSteps`. * Add support for aggs to result helper wrapper. * Write tests for `getJourneyScreenshot` and simplify type checking. * Write tests for `getJourneyScreenshotBlocks`. * Add new runtime types for parsing on client/server. * Add more runtime types. * Remove dead code. * Mark parameter as unused. * Improve typing for failed journey request function. * Add new API functions, improve typing in a few others. * Modify API calls to work with new screenshot_ref data. * Fix untested refactor error. * Add required fields to runtime type. * Update typing in failed steps component. * Adapt client to work with old screenshots as well as new screenshot_ref. * Refactor composite code to reusable hook. * Implement screenshot blocks endpoint. * Define runtime types for full-size screenshots. * Delete dedicated screenshot and ref queries. * Optimize screenshot endpoint by combining queries. * Handle parsing error. * Clean up screenshot/ref typings. * Remove dead types. DRY a type out. * Simplify types. * Improve typing in step screenshot components. * Prefer PNG to JPG for canvas composite op. * Simplify and clean up some code. * Remove reliance on `Ping` type, clean up types. * Add a comment. * Add a comment. * Fix typing for `FailedStep` component. * Standardize loading spinner sizes. * Add comments to composite code. * Remove unnecessary optional chaining. * Reformat error string. * Remove unneeded key from request return object. * Add a comment to a return object explaining very large cache value. * Make type annotation more accurate. * Resolve some type and test errors. * Clean up remaining type errors. * Move type definitions to simplify imports. * Simplify `PingTimestamp` interface. * Refactor failing unit test to use RTL and actually test things. * Add tests for new helper functions. * Add a comment. * Test `PingTimestamp` for screenshot ref data. * Test `StepImageCaption` for ref data. * Improve typing for step list column definitions. * Harden a test. * Extract code to avoid repeated declarations. * Create centralized mock for `useCompositeImage`. * Add test for ref to `StepScreenshotDisplay`. * Add tests for `getJourneyDetails`. * Extract search results wrapper to helper lib. * Add tests for `getJourneyFailedSteps`. * Add support for aggs to result helper wrapper. * Write tests for `getJourneyScreenshot` and simplify type checking. * Write tests for `getJourneyScreenshotBlocks`. * Simplify prop types for `FailedStep`. * Remove unused type. * Fix regression in step navigating for new style screenshots. * Add type check function. * Simplify and refactor merge issues. * Add pruning effects for block cache. * Handle pruning in redux store, write tests. * Revert an unwanted change. * Fix broken unit tests. * Add throttle to reduce request volume. * Resolve type issues. * Add tests and fix a bug for journey screenshot route. * Fix new test to provide expected values to tested route. * Simplify blocks route. * Add tests to blocks route. * Remove unneeded function. * Combine redundant selectors into single one. * Add tests for composite image hook. * Add a test for compose image. * Fix bug found during code review. * Remove double-bang assertions. * Extract reducer logic to separate functions to improve readability. * Remove `_source` clause from query. * Fix issue where journey detail thumbnails would not update on page change. * Fix https://github.com/elastic/kibana/issues/107308. * Remove unneeded error skipping. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../runtime_types/ping/synthetics.test.ts | 16 - .../common/runtime_types/ping/synthetics.ts | 8 +- .../columns/ping_timestamp/ping_timestamp.tsx | 2 +- .../ping_timestamp/step_image_popover.tsx | 2 +- .../step_detail/step_detail_container.tsx | 2 +- .../step_expanded_row/step_screenshots.tsx | 8 +- .../check_steps/use_expanded_row.test.tsx | 10 +- .../check_steps/use_expanded_row.tsx | 29 +- .../components/synthetics/executed_step.tsx | 2 +- .../step_screenshot_display.test.tsx | 8 +- .../synthetics/step_screenshot_display.tsx | 6 +- .../public/hooks/use_composite_image.test.tsx | 200 ++++++++ .../public/hooks/use_composite_image.ts | 78 +++- .../lib/__mocks__/screenshot_ref.mock.ts | 18 - .../public/lib/__mocks__/uptime_store.mock.ts | 5 + .../helper/compose_screenshot_images.test.ts | 87 ++++ .../lib/helper/compose_screenshot_images.ts | 22 +- .../uptime/public/state/api/journey.ts | 7 +- .../uptime/public/state/effects/index.ts | 8 + .../state/effects/synthetic_journey_blocks.ts | 81 ++++ .../uptime/public/state/reducers/index.ts | 2 + .../public/state/reducers/synthetics.test.ts | 429 ++++++++++++++++++ .../public/state/reducers/synthetics.ts | 180 ++++++++ .../public/state/selectors/index.test.ts | 5 + .../uptime/public/state/selectors/index.ts | 2 + .../requests/get_journey_screenshot.test.ts | 15 +- .../plugins/uptime/server/rest_api/index.ts | 4 +- .../uptime/server/rest_api/pings/index.ts | 2 +- .../pings/journey_screenshot_blocks.test.ts | 81 ++++ .../pings/journey_screenshot_blocks.ts | 42 +- .../pings/journey_screenshots.test.ts | 179 ++++++++ .../rest_api/pings/journey_screenshots.ts | 40 +- 32 files changed, 1431 insertions(+), 149 deletions(-) create mode 100644 x-pack/plugins/uptime/public/hooks/use_composite_image.test.tsx create mode 100644 x-pack/plugins/uptime/public/lib/helper/compose_screenshot_images.test.ts create mode 100644 x-pack/plugins/uptime/public/state/effects/synthetic_journey_blocks.ts create mode 100644 x-pack/plugins/uptime/public/state/reducers/synthetics.test.ts create mode 100644 x-pack/plugins/uptime/public/state/reducers/synthetics.ts create mode 100644 x-pack/plugins/uptime/server/rest_api/pings/journey_screenshot_blocks.test.ts create mode 100644 x-pack/plugins/uptime/server/rest_api/pings/journey_screenshots.test.ts diff --git a/x-pack/plugins/uptime/common/runtime_types/ping/synthetics.test.ts b/x-pack/plugins/uptime/common/runtime_types/ping/synthetics.test.ts index de92cfeb29e08..84f405d6ee494 100644 --- a/x-pack/plugins/uptime/common/runtime_types/ping/synthetics.test.ts +++ b/x-pack/plugins/uptime/common/runtime_types/ping/synthetics.test.ts @@ -80,22 +80,6 @@ describe('synthetics runtime types', () => { maxSteps: 1, ref: { screenshotRef: refResult, - blocks: [ - { - id: 'hash1', - synthetics: { - blob: 'image data', - blob_mime: 'image/jpeg', - }, - }, - { - id: 'hash2', - synthetics: { - blob: 'image data', - blob_mime: 'image/jpeg', - }, - }, - ], }, }; }); diff --git a/x-pack/plugins/uptime/common/runtime_types/ping/synthetics.ts b/x-pack/plugins/uptime/common/runtime_types/ping/synthetics.ts index cd6be645c7a62..e7948f4ad532c 100644 --- a/x-pack/plugins/uptime/common/runtime_types/ping/synthetics.ts +++ b/x-pack/plugins/uptime/common/runtime_types/ping/synthetics.ts @@ -82,10 +82,9 @@ export const FullScreenshotType = t.type({ synthetics: t.intersection([ t.partial({ blob: t.string, + blob_mime: t.string, }), t.type({ - blob: t.string, - blob_mime: t.string, step: t.type({ name: t.string, }), @@ -158,6 +157,10 @@ export const ScreenshotBlockDocType = t.type({ export type ScreenshotBlockDoc = t.TypeOf; +export function isScreenshotBlockDoc(data: unknown): data is ScreenshotBlockDoc { + return isRight(ScreenshotBlockDocType.decode(data)); +} + /** * Contains the fields requried by the Synthetics UI when utilizing screenshot refs. */ @@ -166,7 +169,6 @@ export const ScreenshotRefImageDataType = t.type({ maxSteps: t.number, ref: t.type({ screenshotRef: RefResultType, - blocks: t.array(ScreenshotBlockDocType), }), }); diff --git a/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/ping_timestamp.tsx b/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/ping_timestamp.tsx index 8e2dc1b4c24e0..df4c73908b627 100644 --- a/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/ping_timestamp.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/ping_timestamp.tsx @@ -57,7 +57,7 @@ export const PingTimestamp = ({ label, checkGroup, initialStepNo = 1 }: Props) = const { data, status } = useFetcher(() => { if (intersection && intersection.intersectionRatio === 1 && !stepImages[stepNumber - 1]) return getJourneyScreenshot(imgPath); - }, [intersection?.intersectionRatio, stepNumber]); + }, [intersection?.intersectionRatio, stepNumber, imgPath]); const [screenshotRef, setScreenshotRef] = useState(undefined); useEffect(() => { diff --git a/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/step_image_popover.tsx b/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/step_image_popover.tsx index 6b78c4046da95..73c43da98bfc4 100644 --- a/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/step_image_popover.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/step_image_popover.tsx @@ -64,7 +64,7 @@ const RecomposedScreenshotImage: React.FC< } > = ({ captionContent, imageCaption, imageData, imgRef, setImageData }) => { // initially an undefined URL value is passed to the image display, and a loading spinner is rendered. - // `useCompositeImage` will call `setUrl` when the image is composited, and the updated `url` will display. + // `useCompositeImage` will call `setImageData` when the image is composited, and the updated `imageData` will display. useCompositeImage(imgRef, setImageData, imageData); return ( diff --git a/x-pack/plugins/uptime/public/components/monitor/synthetics/step_detail/step_detail_container.tsx b/x-pack/plugins/uptime/public/components/monitor/synthetics/step_detail/step_detail_container.tsx index c24ecd9183865..9d0555d97cbd4 100644 --- a/x-pack/plugins/uptime/public/components/monitor/synthetics/step_detail/step_detail_container.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/synthetics/step_detail/step_detail_container.tsx @@ -109,7 +109,7 @@ export const StepDetailContainer: React.FC = ({ checkGroup, stepIndex }) {(!journey || journey.loading) && ( - + )} diff --git a/x-pack/plugins/uptime/public/components/synthetics/check_steps/step_expanded_row/step_screenshots.tsx b/x-pack/plugins/uptime/public/components/synthetics/check_steps/step_expanded_row/step_screenshots.tsx index 316154929320d..54f73fb39a52a 100644 --- a/x-pack/plugins/uptime/public/components/synthetics/check_steps/step_expanded_row/step_screenshots.tsx +++ b/x-pack/plugins/uptime/public/components/synthetics/check_steps/step_expanded_row/step_screenshots.tsx @@ -60,8 +60,8 @@ export const StepScreenshots = ({ step }: Props) => { { { // expect only one accordion to be expanded expect(Object.keys(result.current.expandedRows)).toEqual(['0']); }); + + describe('getExpandedStepCallback', () => { + it('matches step index to key', () => { + const callback = getExpandedStepCallback(2); + expect(callback(defaultSteps[0])).toBe(false); + expect(callback(defaultSteps[1])).toBe(true); + }); + }); }); diff --git a/x-pack/plugins/uptime/public/components/synthetics/check_steps/use_expanded_row.tsx b/x-pack/plugins/uptime/public/components/synthetics/check_steps/use_expanded_row.tsx index 4b50a94f602b7..e58e1cca8660b 100644 --- a/x-pack/plugins/uptime/public/components/synthetics/check_steps/use_expanded_row.tsx +++ b/x-pack/plugins/uptime/public/components/synthetics/check_steps/use_expanded_row.tsx @@ -18,6 +18,10 @@ interface HookProps { type ExpandRowType = Record; +export function getExpandedStepCallback(key: number) { + return (step: JourneyStep) => step.synthetics?.step?.index === key; +} + export const useExpandedRow = ({ loading, steps, allSteps }: HookProps) => { const [expandedRows, setExpandedRows] = useState({}); // eui table uses index from 0, synthetics uses 1 @@ -37,21 +41,18 @@ export const useExpandedRow = ({ loading, steps, allSteps }: HookProps) => { useEffect(() => { const expandedRowsN: ExpandRowType = {}; - for (const expandedRowKeyStr in expandedRows) { - if (expandedRows.hasOwnProperty(expandedRowKeyStr)) { - const expandedRowKey = Number(expandedRowKeyStr); - const step = steps.find((stepF) => stepF.synthetics?.step?.index !== expandedRowKey); + for (const expandedRowKey of Object.keys(expandedRows).map((key) => Number(key))) { + const step = steps.find(getExpandedStepCallback(expandedRowKey + 1)); - if (step) { - expandedRowsN[expandedRowKey] = ( - - ); - } + if (step) { + expandedRowsN[expandedRowKey] = ( + + ); } } diff --git a/x-pack/plugins/uptime/public/components/synthetics/executed_step.tsx b/x-pack/plugins/uptime/public/components/synthetics/executed_step.tsx index c3016864c72a7..add34c3f71f0d 100644 --- a/x-pack/plugins/uptime/public/components/synthetics/executed_step.tsx +++ b/x-pack/plugins/uptime/public/components/synthetics/executed_step.tsx @@ -51,7 +51,7 @@ export const ExecutedStep: FC = ({ return ( {loading ? ( - + ) : ( <> diff --git a/x-pack/plugins/uptime/public/components/synthetics/step_screenshot_display.test.tsx b/x-pack/plugins/uptime/public/components/synthetics/step_screenshot_display.test.tsx index 8d35df51c2421..5b86ed525bc31 100644 --- a/x-pack/plugins/uptime/public/components/synthetics/step_screenshot_display.test.tsx +++ b/x-pack/plugins/uptime/public/components/synthetics/step_screenshot_display.test.tsx @@ -30,7 +30,7 @@ describe('StepScreenshotDisplayProps', () => { const { getByAltText } = render( { const { getByAltText } = render( @@ -57,7 +57,7 @@ describe('StepScreenshotDisplayProps', () => { const { getByTestId } = render( { const { getByAltText } = render( = ({ checkGroup, - isScreenshotBlob: isScreenshotBlob, + isFullScreenshot: isScreenshotBlob, isScreenshotRef, stepIndex, stepName, @@ -134,7 +134,7 @@ export const StepScreenshotDisplay: FC = ({ if (isScreenshotRef) { return getJourneyScreenshot(imgSrc); } - }, [basePath, checkGroup, stepIndex, isScreenshotRef]); + }, [basePath, checkGroup, imgSrc, stepIndex, isScreenshotRef]); const refDimensions = useMemo(() => { if (isAScreenshotRef(screenshotRef)) { diff --git a/x-pack/plugins/uptime/public/hooks/use_composite_image.test.tsx b/x-pack/plugins/uptime/public/hooks/use_composite_image.test.tsx new file mode 100644 index 0000000000000..79e0cde1eaab8 --- /dev/null +++ b/x-pack/plugins/uptime/public/hooks/use_composite_image.test.tsx @@ -0,0 +1,200 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import * as redux from 'react-redux'; +import { renderHook } from '@testing-library/react-hooks'; +import { ScreenshotRefImageData } from '../../common/runtime_types'; +import { ScreenshotBlockCache } from '../state/reducers/synthetics'; +import { shouldCompose, useCompositeImage } from './use_composite_image'; +import * as compose from '../lib/helper/compose_screenshot_images'; + +const MIME = 'image/jpeg'; + +describe('use composite image', () => { + let imageData: string | undefined; + let imgRef: ScreenshotRefImageData; + let curRef: ScreenshotRefImageData; + let blocks: ScreenshotBlockCache; + + beforeEach(() => { + imgRef = { + stepName: 'step-1', + maxSteps: 3, + ref: { + screenshotRef: { + '@timestamp': '123', + monitor: { + check_group: 'check-group', + }, + screenshot_ref: { + width: 100, + height: 200, + blocks: [ + { + hash: 'hash1', + top: 0, + left: 0, + width: 10, + height: 10, + }, + { + hash: 'hash2', + top: 0, + left: 10, + width: 10, + height: 10, + }, + ], + }, + synthetics: { + package_version: 'v1', + step: { index: 0, name: 'first' }, + type: 'step/screenshot_ref', + }, + }, + }, + }; + curRef = { + stepName: 'step-1', + maxSteps: 3, + ref: { + screenshotRef: { + '@timestamp': '234', + monitor: { + check_group: 'check-group-2', + }, + screenshot_ref: { + width: 100, + height: 200, + blocks: [ + { + hash: 'hash1', + top: 0, + left: 0, + width: 10, + height: 10, + }, + { + hash: 'hash2', + top: 0, + left: 10, + width: 10, + height: 10, + }, + ], + }, + synthetics: { + package_version: 'v1', + step: { index: 1, name: 'second' }, + type: 'step/screenshot_ref', + }, + }, + }, + }; + blocks = { + hash1: { + id: 'id1', + synthetics: { + blob: 'blob', + blob_mime: MIME, + }, + }, + hash2: { + id: 'id2', + synthetics: { + blob: 'blob', + blob_mime: MIME, + }, + }, + }; + }); + + describe('shouldCompose', () => { + it('returns true if all blocks are loaded and ref is new', () => { + expect(shouldCompose(imageData, imgRef, curRef, blocks)).toBe(true); + }); + + it('returns false if a required block is pending', () => { + blocks.hash2 = { status: 'pending' }; + expect(shouldCompose(imageData, imgRef, curRef, blocks)).toBe(false); + }); + + it('returns false if a required block is missing', () => { + delete blocks.hash2; + expect(shouldCompose(imageData, imgRef, curRef, blocks)).toBe(false); + }); + + it('returns false if imageData is defined and the refs have matching step index/check_group', () => { + imageData = 'blob'; + curRef.ref.screenshotRef.synthetics.step.index = 0; + curRef.ref.screenshotRef.monitor.check_group = 'check-group'; + expect(shouldCompose(imageData, imgRef, curRef, blocks)).toBe(false); + }); + + it('returns true if imageData is defined and the refs have different step names', () => { + imageData = 'blob'; + curRef.ref.screenshotRef.synthetics.step.index = 0; + expect(shouldCompose(imageData, imgRef, curRef, blocks)).toBe(true); + }); + }); + + describe('useCompositeImage', () => { + let useDispatchMock: jest.Mock; + let canvasMock: unknown; + let removeChildSpy: jest.Mock; + let selectorSpy: jest.SpyInstance; + let composeSpy: jest.SpyInstance; + + beforeEach(() => { + useDispatchMock = jest.fn(); + removeChildSpy = jest.fn(); + canvasMock = { + parentElement: { + removeChild: removeChildSpy, + }, + toDataURL: jest.fn().mockReturnValue('compose success'), + }; + // @ts-expect-error mocking canvas element for testing + jest.spyOn(document, 'createElement').mockReturnValue(canvasMock); + jest.spyOn(redux, 'useDispatch').mockReturnValue(useDispatchMock); + selectorSpy = jest.spyOn(redux, 'useSelector').mockReturnValue({ blocks }); + composeSpy = jest + .spyOn(compose, 'composeScreenshotRef') + .mockReturnValue(new Promise((r) => r([]))); + }); + + afterEach(() => { + jest.clearAllMocks(); + }); + + it('does not compose if all blocks are not loaded', () => { + blocks = {}; + renderHook(() => useCompositeImage(imgRef, jest.fn(), imageData)); + + expect(useDispatchMock).toHaveBeenCalledWith({ + payload: ['hash1', 'hash2'], + type: 'FETCH_BLOCKS', + }); + }); + + it('composes when all required blocks are loaded', async () => { + const onComposeImageSuccess = jest.fn(); + const { waitFor } = renderHook(() => useCompositeImage(imgRef, onComposeImageSuccess)); + + expect(selectorSpy).toHaveBeenCalled(); + expect(composeSpy).toHaveBeenCalledTimes(1); + expect(composeSpy.mock.calls[0][0]).toEqual(imgRef); + expect(composeSpy.mock.calls[0][1]).toBe(canvasMock); + expect(composeSpy.mock.calls[0][2]).toBe(blocks); + + await waitFor(() => { + expect(onComposeImageSuccess).toHaveBeenCalledTimes(1); + expect(onComposeImageSuccess).toHaveBeenCalledWith('compose success'); + }); + }); + }); +}); diff --git a/x-pack/plugins/uptime/public/hooks/use_composite_image.ts b/x-pack/plugins/uptime/public/hooks/use_composite_image.ts index 6db3d05b8c968..3af1e798d43e1 100644 --- a/x-pack/plugins/uptime/public/hooks/use_composite_image.ts +++ b/x-pack/plugins/uptime/public/hooks/use_composite_image.ts @@ -5,19 +5,70 @@ * 2.0. */ +import { useDispatch, useSelector } from 'react-redux'; import React from 'react'; import { composeScreenshotRef } from '../lib/helper/compose_screenshot_images'; import { ScreenshotRefImageData } from '../../common/runtime_types/ping/synthetics'; +import { + fetchBlocksAction, + isPendingBlock, + ScreenshotBlockCache, + StoreScreenshotBlock, +} from '../state/reducers/synthetics'; +import { syntheticsSelector } from '../state/selectors'; + +function allBlocksLoaded(blocks: { [key: string]: StoreScreenshotBlock }, hashes: string[]) { + for (const hash of hashes) { + if (!blocks[hash] || isPendingBlock(blocks[hash])) { + return false; + } + } + return true; +} /** * Checks if two refs are the same. If the ref is unchanged, there's no need * to run the expensive draw procedure. + * + * The key fields here are `step.index` and `check_group`, as there's a 1:1 between + * journey and check group, and each step has a unique index within a journey. */ -function isNewRef(a: ScreenshotRefImageData, b: ScreenshotRefImageData): boolean { - if (typeof a === 'undefined' || typeof b === 'undefined') return false; - const stepA = a.ref.screenshotRef.synthetics.step; - const stepB = b.ref.screenshotRef.synthetics.step; - return stepA.index !== stepB.index || stepA.name !== stepB.name; +const isNewRef = ( + { + ref: { + screenshotRef: { + synthetics: { + step: { index: indexA }, + }, + monitor: { check_group: checkGroupA }, + }, + }, + }: ScreenshotRefImageData, + { + ref: { + screenshotRef: { + synthetics: { + step: { index: indexB }, + }, + monitor: { check_group: checkGroupB }, + }, + }, + }: ScreenshotRefImageData +): boolean => indexA !== indexB || checkGroupA !== checkGroupB; + +export function shouldCompose( + imageData: string | undefined, + imgRef: ScreenshotRefImageData, + curRef: ScreenshotRefImageData, + blocks: ScreenshotBlockCache +): boolean { + return ( + allBlocksLoaded( + blocks, + imgRef.ref.screenshotRef.screenshot_ref.blocks.map(({ hash }) => hash) + ) && + (typeof imageData === 'undefined' || isNewRef(imgRef, curRef)) + ); } /** @@ -31,25 +82,34 @@ export const useCompositeImage = ( onComposeImageSuccess: React.Dispatch, imageData?: string ): void => { + const dispatch = useDispatch(); + const { blocks }: { blocks: ScreenshotBlockCache } = useSelector(syntheticsSelector); + + React.useEffect(() => { + dispatch( + fetchBlocksAction(imgRef.ref.screenshotRef.screenshot_ref.blocks.map(({ hash }) => hash)) + ); + }, [dispatch, imgRef.ref.screenshotRef.screenshot_ref.blocks]); + const [curRef, setCurRef] = React.useState(imgRef); React.useEffect(() => { const canvas = document.createElement('canvas'); async function compose() { - await composeScreenshotRef(imgRef, canvas); - const imgData = canvas.toDataURL('image/png', 1.0); + await composeScreenshotRef(imgRef, canvas, blocks); + const imgData = canvas.toDataURL('image/jpg', 1.0); onComposeImageSuccess(imgData); } // if the URL is truthy it means it's already been composed, so there // is no need to call the function - if (typeof imageData === 'undefined' || isNewRef(imgRef, curRef)) { + if (shouldCompose(imageData, imgRef, curRef, blocks)) { compose(); setCurRef(imgRef); } return () => { canvas.parentElement?.removeChild(canvas); }; - }, [imgRef, onComposeImageSuccess, curRef, imageData]); + }, [blocks, curRef, imageData, imgRef, onComposeImageSuccess]); }; diff --git a/x-pack/plugins/uptime/public/lib/__mocks__/screenshot_ref.mock.ts b/x-pack/plugins/uptime/public/lib/__mocks__/screenshot_ref.mock.ts index d3a005d982168..a95aa77371b23 100644 --- a/x-pack/plugins/uptime/public/lib/__mocks__/screenshot_ref.mock.ts +++ b/x-pack/plugins/uptime/public/lib/__mocks__/screenshot_ref.mock.ts @@ -40,23 +40,5 @@ export const mockRef: ScreenshotRefImageData = { }, monitor: { check_group: 'a567cc7a-c891-11eb-bdf9-3e22fb19bf97' }, }, - blocks: [ - { - id: 'd518801fc523cf02727cd520f556c4113b3098c7', - synthetics: { - blob: - '/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCABaAKADASIAAhEBAxEB/8QAHAABAAIDAQEBAAAAAAAAAAAAAAMFBAYHAggB/8QANRAAAQMDAwEHAwMCBwEAAAAAAQACAwQFEQYSITEHE0FRUpLRFBVhIjKBcaEIFiMkMzSxQv/EABkBAQADAQEAAAAAAAAAAAAAAAADBQYEAv/EACYRAQABBAEEAgEFAAAAAAAAAAABAgMEESEFEjFBBjJxE0JRYYH/2gAMAwEAAhEDEQA/APqlERAREQEREBERAREQEREBERAREQEREBERAREQeT4J5qn1XdDZbFU1rWB74wA1p6FxIAz+OVp+ldV3O6UdxfVd0BEWCNzG4ILieOvgAVFk3qcezVeq8Uxt12cK7dtzdp8ROnRTKxmA57QT+cL2CCucOc55LnuLnHkknJKvNNV7xUtpZHF0bwdmT+0jlZPA+WUZWRFmujtiqdRO98+t/lLe6fVbomqJ3ptqIi2KvEWHc7hR2uhlrbjVQUlJCN0k9RII2MGcZLjwOSsprg5oc0gtIyCPFB6REQERQPqIWVDIHSxtnkBc2MuAc4DqQOpwgnREQEREBERAREQcf7QdZXKK+z0FvlENPTkMcCxru8djnOQeOcYUuj7hLdLZWCop6SlxKwsmYxsDJpMEbT0Bdg54Vjr3SlD9ZLfqieSOmG01EDB+qQ8AbT4Z4z/JXP7ncZK90bdoipYRsgp2fsjb+PM+ZPJVhl2MXNwpxu37RqZ9wydzqGX03LquV1zMb3FO+Jj1uPUOiTQvik2yxuY/w3DCptS6vpNHPj3MFXdjhzaUOwImnxkPgSOjeviVV6Wv9dBWU9C+eV9LK7ug3hzoi7gOZnOCCc+S0+5dnepX3CUQNhuj3ykOlhqWOcXE9XBxDh+SVkek/D8TCyv1ci53RHNMTxz/AH/Ol3f+TXc3H1i0TFXifevw+hdI32n1LYqa50zSxsoLXMccljgcFufHnx8Rha7fdeVrNUVWn9KacqL/AHGgZHLXFtVHTRUweMsaXv6vI52gdPHri27ONOP0xpWnoKh7X1Jc6WYt6B7vAf0GB/C5ZZxNQ9rGvaCr1rPpupqaqCrgiLKYtqonRABzTOxxO3G0hp4wtBXFMVzFPh2WJrm3TNz7a5Zvadq+HVnYRrV30VTbrjQYpK6hqMF8EokYcZHDmkEEOHBC3683nUlufRw2LSv3mldTse6o+4xU+1/ILNrhk8AHP5/C5h2g2C22zsj7SbrR6kfqCquggNZUGSEhskbmNAxE0NacEZGPAK8u94rLn2jzabrtVT6atFHaqeriFM6KGWse4nc4SSNd+luACGrylbNYu0enqbRqWpv1tqrNXacy65Ub3tlcxvd941zHN4eHN6dP/CcO3641hcaamraLs5qzQVO18T5btTxy907kPdGTwcHO3OfBc/7N5NLSdoPaxZ6/UUN1tldTULTU11wZI6pibTvEx70EAhhftJH7cDyXrU9c7s40/DcND9okt5ZDLDDTWCsqIa36lrpGs7qJw/1G4BJGM4DcILnUOpNUUfb2Y7TpWruQjsUjI6YXKGFs0f1LP9wNzsDB/RtOHc+S3aW70b9caTprtZDBqGst087HmVrzRYEZli3Dh3JAyODtVDe7lR2j/ERbai51MNJT1WmpqeKWeRrGOkFSx5bkkc4HRZF8qIartu0LPTSxzQy2uveySNwc17T3RBBHBB80Eg7RrrdrtdabRmkKu90lsqH0c9a+thpY3Ts/cyPfkuxnrwP7Z6BbppqihppqymdSVEkTXyU7nNeYXEAlhc0kEg8ZBwccLk3YfqGzWSxXux3i40FuuluvNY2ogqZmxOIdKXNeA4jLSCMEccLrtNPFVU8U9NKyaGVofHJG4Oa9pGQQRwQR4oMhERAREQEREFTqa2/drJV0WQHSt/ST0DgcjP4yAuDXCiqbfVPp6yF8MzDgtcP7jzH5X0aenkoZqaGYDv4mSY8HNB/9U1q9NvhUdS6VTnTFcTqqOP8AHF9A2apuF7pqlsJ+lp373SPGG7hyAD4nOFu2ndL1lJeGVddIwd2S4BhyXk8fwOVu0bGsADWhoHAwMBe8LlyrVOTcprr/AG+EuB06jDt9m9zve36qe96bsV/MRvtmttyMWRGayljm2Z8twOFcIpFkpqXTVipbZNbKWy22C2zHMlJHSRtif0/cwDB6DqPBL1pmw30Q/fLJbLj3IIj+spI5u7B6hu4HH8K5RBUf5cseAPs1uwIjB/1Wf8Z6s6ftPl0WLbNGaXtVa2ttmnLLRVjc7Z6egijkGfJzWgrYUQVN70/Zr/FEy+Wm33KOIl0baymZMGE9SA4HBU1NabdS/Smlt9JCaSPuafu4Wt7iPgbGYH6W8DgccKwRBRXjSWnL1VCqvGn7RcKkANEtXRRyvAHhuc0lWtNBFS08UFNEyGGJoZHHG0NaxoGAABwAB4LIRAREQEREBERAREQEREBERAREQEREBERAREQEREBERBHul9DPcfhN0voZ7j8KREEe6X0M9x+E3S+hnuPwpEQR7pfQz3H4TdL6Ge4/CkRBHul9DPcfhN0voZ7j8KREEe6X0M9x+E3S+hnuPwpEQR7pfQz3H4TdL6Ge4/CkRBHul9DPcfhN0voZ7j8KREEe6X0M9x+E3S+hnuPwpEQR7pfQz3H4TdL6Ge4/CkRBHuk9DPcfhVV1vcdtexssL3ucM4jOcf1zhW/ktF1OT92k5/8AgL3RT3Ty4c/IqsW+6jy//9k=', - blob_mime: 'image/jpeg', - }, - }, - { - id: 'fa90345d5d7b05b1601e9ee645e663bc358869e0', - synthetics: { - blob: - '/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCABaAKADASIAAhEBAxEB/8QAHAABAAIDAQEBAAAAAAAAAAAAAAYIAwUHBAIB/8QANBAAAQQCAQICCAUDBQAAAAAAAQACAwQFEQYSIQcxExQWQVFSVKEiMmGS0RVTcQhDgZHh/8QAGQEBAAIDAAAAAAAAAAAAAAAAAAIEAwUG/8QAHxEBAAEEAwADAAAAAAAAAAAAAAEEExVRAgORBRIh/9oADAMBAAIRAxEAPwC1KIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIg+JHBkbnnyaCVyXj3jlhsqMRYs4PP43GZax6rUyViuz1Z8vUWhhe150dtI8vcfcCV1iyCa8oAJJYQAP8KvPg54WZPJ8D4qOY5TKwY/HWn3IuPzVG1xHK2aQtMjiOtwO+rR9zu3ZB3qDL46xYNeDIVJJ+p7TGyZpdtmuoaB3sbG/htZaORpZBshoW61psbul5gla/pPwOj2KrvjvD7J2uD+Kliph5q3KLuYvMozzxGKWWqXMcWxF2vwvBkGx2dvz7LyYvi+Vyd/MTcI4vk+K1TxWTG2GW63qvrVw76Q0bHU73el/nuHcLvPMPByvAYKCT1yfMOstimrSMfFEYI+t4eQ7YOj5AH9dLfR5fGyQVp48hUdDaf6OCQTtLZX7I6WHenHYI0Pgq18A47IefeGcuN4PmcEyhQt1crbs0XRMfY9Vc3rcfftx7Pdrq6gB+XQxcaxvI4cB4acXs8Sz0M/HuStluXDVJr9BmkeHscPNmn93a6Rrz7hBZ0ZKi6+aDbtY3gOo1xK30gHx6d70tJxbnGA5PPlYsPejlfjLD69jbgO7fN7e/dnf83kuI8B48/HZmjjuQcCy9/lsOdfcm5AA6GH0ZcSJvWR+duv9o9j/lfVHhLK2L8WMDZ4rlIn3LslmnNjKbWelqGRjmRQyHTTot2Yt+QIHdBYmhfqZGEy0LVezED0l8Ege3fw2CvWuJ/6fqeTo5TkLLGDFTGlkDYsg/EnFS2ntBBa6vst/DvXU0Dvvz327YgIiINXyPM0ePYS5lstO2ChUjMksh9w/wAe8k6AHvJChHG/FrGZfOY7GW8LnsN/VQX46xk6gjit6G9NcHHRI7gH3a+IC93jfxm5y/wxzeGxfe9Mxj4mF3SJHMka/oJ/Xp0N9t6Wm4/zPOcizGCx0PAsnj44AHZG3lq3oIqpa0dq52esk9hrXbX66DoozGMMDLAyNMwPk9C2T07el0nl0A711fp5rKclRF4UTcrC6R1CuZW+kI+PTvaq6cTySpxanxB3FM66zQ5ay9JdZVLqz4DKSHscO7vPZ0NADZI8ls8txzJY3xYns4XjN+/JazrbbxkcUHRsBO3Tw32OBYwe6N3l27HyQd04/wA1wfIM5l8RjLrZL2LeGWGbA3sebe/4gPIkeRW2gy+MsVp7MGRpy16+/TSMma5sevPqIOh5e9V6yvDMnFl/F3HYXj89bJZWBk2Mvw1AyGSH8JmhZMAA1z9kFuxsg78lro+NXLo5Ba4pw3L8fxrOITY+3WnpGF124QekMjHeRw+fWz/yNhZMZzFCOZ/9UoBkLGySu9YZpjXflc477A7GifNZ7eSo1Kgt27laCq7XTNLK1rDvy04nXdV1wHhnUfybhbbnFZPU5eJj+o+kqPDHXOkdptjXpQSezu4IHwGo9W4ryUcO8Np8zispNjqFe5Xs1H4g3pK0rpn+jc+q/RILOkA67AA+8ILcIiICIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIgIiICIiCOe1Nb6eb7J7U1vp5vsoj5u7r9PkrFuHMZSo3HiW+1Nb6eb7J7U1vp5vsoiiW4MpUbjxLvamt9PN9k9qa30832URRLcGUqNx4l3tTW+nm+ye1Nb6eb7KIoluDKVG48S72prfTzfZPamt9PN9lEUS3BlKjceJd7U1vp5vsntTW/sTfZRFEtwZSo3HiW+1Nf+xN/0Fuq05sQtliawscNj8X/AIucKccYJOJi3+qhz4REfi98fW9nfz+vNteqX5GfuP8ACdUvyM/cf4WRFiblj6pfkZ+4/wAJ1S/Iz9x/hZEQY+qX5GfuP8J1S/Iz9x/hZEQf/9k=', - blob_mime: 'image/jpeg', - }, - }, - ], }, }; diff --git a/x-pack/plugins/uptime/public/lib/__mocks__/uptime_store.mock.ts b/x-pack/plugins/uptime/public/lib/__mocks__/uptime_store.mock.ts index 8ad3379615549..c0b4c893d93d8 100644 --- a/x-pack/plugins/uptime/public/lib/__mocks__/uptime_store.mock.ts +++ b/x-pack/plugins/uptime/public/lib/__mocks__/uptime_store.mock.ts @@ -111,4 +111,9 @@ export const mockState: AppState = { }, journeys: {}, networkEvents: {}, + synthetics: { + blocks: {}, + cacheSize: 0, + hitCount: [], + }, }; diff --git a/x-pack/plugins/uptime/public/lib/helper/compose_screenshot_images.test.ts b/x-pack/plugins/uptime/public/lib/helper/compose_screenshot_images.test.ts new file mode 100644 index 0000000000000..0bf809d4e7a40 --- /dev/null +++ b/x-pack/plugins/uptime/public/lib/helper/compose_screenshot_images.test.ts @@ -0,0 +1,87 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { ScreenshotRefImageData } from '../../../common/runtime_types/ping/synthetics'; +import { composeScreenshotRef } from './compose_screenshot_images'; + +describe('composeScreenshotRef', () => { + let getContextMock: jest.Mock; + let drawImageMock: jest.Mock; + let ref: ScreenshotRefImageData; + let contextMock: unknown; + + beforeEach(() => { + drawImageMock = jest.fn(); + contextMock = { + drawImage: drawImageMock, + }; + getContextMock = jest.fn().mockReturnValue(contextMock); + ref = { + stepName: 'step', + maxSteps: 3, + ref: { + screenshotRef: { + '@timestamp': '123', + monitor: { check_group: 'check-group' }, + screenshot_ref: { + blocks: [ + { + hash: '123', + top: 0, + left: 0, + width: 10, + height: 10, + }, + ], + height: 100, + width: 100, + }, + synthetics: { + package_version: 'v1', + step: { + name: 'step-name', + index: 0, + }, + type: 'step/screenshot_ref', + }, + }, + }, + }; + }); + + it('throws error when blob does not exist', async () => { + try { + // @ts-expect-error incomplete invocation for test + await composeScreenshotRef(ref, { getContext: getContextMock }, {}); + } catch (e: any) { + expect(e).toMatchInlineSnapshot( + `[Error: Error processing image. Expected image data with hash 123 is missing]` + ); + expect(getContextMock).toHaveBeenCalled(); + expect(getContextMock.mock.calls[0][0]).toBe('2d'); + expect(getContextMock.mock.calls[0][1]).toEqual({ alpha: false }); + } + }); + + it('throws error when block is pending', async () => { + try { + await composeScreenshotRef( + ref, + // @ts-expect-error incomplete invocation for test + { getContext: getContextMock }, + { '123': { status: 'pending' } } + ); + } catch (e: any) { + expect(e).toMatchInlineSnapshot( + `[Error: Error processing image. Expected image data with hash 123 is missing]` + ); + expect(getContextMock).toHaveBeenCalled(); + expect(getContextMock.mock.calls[0][0]).toBe('2d'); + expect(getContextMock.mock.calls[0][1]).toEqual({ alpha: false }); + } + }); +}); diff --git a/x-pack/plugins/uptime/public/lib/helper/compose_screenshot_images.ts b/x-pack/plugins/uptime/public/lib/helper/compose_screenshot_images.ts index 7481a517d3c9e..60cd248c1487a 100644 --- a/x-pack/plugins/uptime/public/lib/helper/compose_screenshot_images.ts +++ b/x-pack/plugins/uptime/public/lib/helper/compose_screenshot_images.ts @@ -5,7 +5,11 @@ * 2.0. */ -import { ScreenshotRefImageData } from '../../../common/runtime_types'; +import { + isScreenshotBlockDoc, + ScreenshotRefImageData, +} from '../../../common/runtime_types/ping/synthetics'; +import { ScreenshotBlockCache } from '../../state/reducers/synthetics'; /** * Draws image fragments on a canvas. @@ -15,30 +19,30 @@ import { ScreenshotRefImageData } from '../../../common/runtime_types'; */ export async function composeScreenshotRef( data: ScreenshotRefImageData, - canvas: HTMLCanvasElement + canvas: HTMLCanvasElement, + blocks: ScreenshotBlockCache ) { const { - ref: { screenshotRef, blocks }, + ref: { screenshotRef }, } = data; + const ctx = canvas.getContext('2d', { alpha: false }); + canvas.width = screenshotRef.screenshot_ref.width; canvas.height = screenshotRef.screenshot_ref.height; - const ctx = canvas.getContext('2d', { alpha: false }); - /** * We need to treat each operation as an async task, otherwise we will race between drawing image * chunks and extracting the final data URL from the canvas; without this, the image could be blank or incomplete. */ const drawOperations: Array> = []; - for (const block of screenshotRef.screenshot_ref.blocks) { + for (const { hash, top, left, width, height } of screenshotRef.screenshot_ref.blocks) { drawOperations.push( new Promise((resolve, reject) => { const img = new Image(); - const { top, left, width, height, hash } = block; - const blob = blocks.find((b) => b.id === hash); - if (!blob) { + const blob = blocks[hash]; + if (!blob || !isScreenshotBlockDoc(blob)) { reject(Error(`Error processing image. Expected image data with hash ${hash} is missing`)); } else { img.onload = () => { diff --git a/x-pack/plugins/uptime/public/state/api/journey.ts b/x-pack/plugins/uptime/public/state/api/journey.ts index 4e71a07c70b68..8ed3fadf5c346 100644 --- a/x-pack/plugins/uptime/public/state/api/journey.ts +++ b/x-pack/plugins/uptime/public/state/api/journey.ts @@ -12,11 +12,16 @@ import { FailedStepsApiResponseType, JourneyStep, JourneyStepType, + ScreenshotBlockDoc, ScreenshotImageBlob, ScreenshotRefImageData, SyntheticsJourneyApiResponse, SyntheticsJourneyApiResponseType, -} from '../../../common/runtime_types'; +} from '../../../common/runtime_types/ping/synthetics'; + +export async function fetchScreenshotBlockSet(params: string[]): Promise { + return apiService.post('/api/uptime/journey/screenshot/block', { hashes: params }); +} export async function fetchJourneySteps( params: FetchJourneyStepsParams diff --git a/x-pack/plugins/uptime/public/state/effects/index.ts b/x-pack/plugins/uptime/public/state/effects/index.ts index a5e9ffecadaf8..df02180b1c28d 100644 --- a/x-pack/plugins/uptime/public/state/effects/index.ts +++ b/x-pack/plugins/uptime/public/state/effects/index.ts @@ -20,6 +20,11 @@ import { fetchCertificatesEffect } from '../certificates/certificates'; import { fetchAlertsEffect } from '../alerts/alerts'; import { fetchJourneyStepsEffect } from './journey'; import { fetchNetworkEventsEffect } from './network_events'; +import { + fetchScreenshotBlocks, + generateBlockStatsOnPut, + pruneBlockCache, +} from './synthetic_journey_blocks'; export function* rootEffect() { yield fork(fetchMonitorDetailsEffect); @@ -38,4 +43,7 @@ export function* rootEffect() { yield fork(fetchAlertsEffect); yield fork(fetchJourneyStepsEffect); yield fork(fetchNetworkEventsEffect); + yield fork(fetchScreenshotBlocks); + yield fork(generateBlockStatsOnPut); + yield fork(pruneBlockCache); } diff --git a/x-pack/plugins/uptime/public/state/effects/synthetic_journey_blocks.ts b/x-pack/plugins/uptime/public/state/effects/synthetic_journey_blocks.ts new file mode 100644 index 0000000000000..829048747ddf7 --- /dev/null +++ b/x-pack/plugins/uptime/public/state/effects/synthetic_journey_blocks.ts @@ -0,0 +1,81 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { Action } from 'redux-actions'; +import { call, fork, put, select, takeEvery, throttle } from 'redux-saga/effects'; +import { ScreenshotBlockDoc } from '../../../common/runtime_types/ping/synthetics'; +import { fetchScreenshotBlockSet } from '../api/journey'; +import { + fetchBlocksAction, + setBlockLoadingAction, + isPendingBlock, + pruneCacheAction, + putBlocksAction, + putCacheSize, + ScreenshotBlockCache, + updateHitCountsAction, +} from '../reducers/synthetics'; +import { syntheticsSelector } from '../selectors'; + +function* fetchBlocks(hashes: string[]) { + yield put(setBlockLoadingAction(hashes)); + const blocks: ScreenshotBlockDoc[] = yield call(fetchScreenshotBlockSet, hashes); + yield put(putBlocksAction({ blocks })); +} + +export function* fetchScreenshotBlocks() { + /** + * We maintain a list of each hash and how many times it is requested so we can avoid + * subsequent re-requests if the block is dropped due to cache pruning. + */ + yield takeEvery(String(fetchBlocksAction), function* (action: Action) { + if (action.payload.length > 0) { + yield put(updateHitCountsAction(action.payload)); + } + }); + + /** + * We do a short delay to allow multiple item renders to queue up before dispatching + * a fetch to the backend. + */ + yield throttle(20, String(fetchBlocksAction), function* () { + const { blocks }: { blocks: ScreenshotBlockCache } = yield select(syntheticsSelector); + const toFetch = Object.keys(blocks).filter((hash) => { + const block = blocks[hash]; + return isPendingBlock(block) && block.status !== 'loading'; + }); + + if (toFetch.length > 0) { + yield fork(fetchBlocks, toFetch); + } + }); +} + +export function* generateBlockStatsOnPut() { + yield takeEvery( + String(putBlocksAction), + function* (action: Action<{ blocks: ScreenshotBlockDoc[] }>) { + const batchSize = action.payload.blocks.reduce((total, cur) => { + return cur.synthetics.blob.length + total; + }, 0); + yield put(putCacheSize(batchSize)); + } + ); +} + +// 4 MB cap for cache size +const MAX_CACHE_SIZE = 4000000; + +export function* pruneBlockCache() { + yield takeEvery(String(putCacheSize), function* (_action: Action) { + const { cacheSize }: { cacheSize: number } = yield select(syntheticsSelector); + + if (cacheSize > MAX_CACHE_SIZE) { + yield put(pruneCacheAction(cacheSize - MAX_CACHE_SIZE)); + } + }); +} diff --git a/x-pack/plugins/uptime/public/state/reducers/index.ts b/x-pack/plugins/uptime/public/state/reducers/index.ts index 05fb7c732466d..53cb6d6bffb0c 100644 --- a/x-pack/plugins/uptime/public/state/reducers/index.ts +++ b/x-pack/plugins/uptime/public/state/reducers/index.ts @@ -23,6 +23,7 @@ import { selectedFiltersReducer } from './selected_filters'; import { alertsReducer } from '../alerts/alerts'; import { journeyReducer } from './journey'; import { networkEventsReducer } from './network_events'; +import { syntheticsReducer } from './synthetics'; export const rootReducer = combineReducers({ monitor: monitorReducer, @@ -42,4 +43,5 @@ export const rootReducer = combineReducers({ alerts: alertsReducer, journeys: journeyReducer, networkEvents: networkEventsReducer, + synthetics: syntheticsReducer, }); diff --git a/x-pack/plugins/uptime/public/state/reducers/synthetics.test.ts b/x-pack/plugins/uptime/public/state/reducers/synthetics.test.ts new file mode 100644 index 0000000000000..06d738d01b42f --- /dev/null +++ b/x-pack/plugins/uptime/public/state/reducers/synthetics.test.ts @@ -0,0 +1,429 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { + fetchBlocksAction, + isPendingBlock, + pruneCacheAction, + setBlockLoadingAction, + putBlocksAction, + putCacheSize, + syntheticsReducer, + SyntheticsReducerState, + updateHitCountsAction, +} from './synthetics'; + +const MIME = 'image/jpeg'; + +describe('syntheticsReducer', () => { + jest.spyOn(Date, 'now').mockImplementation(() => 10); + + describe('isPendingBlock', () => { + it('returns true for pending block', () => { + expect(isPendingBlock({ status: 'pending' })).toBe(true); + }); + + it('returns true for loading block', () => { + expect(isPendingBlock({ status: 'loading' })).toBe(true); + }); + + it('returns false for non-pending block', () => { + expect(isPendingBlock({ synthetics: { blob: 'blobdata', blob_mime: MIME } })).toBe(false); + expect(isPendingBlock({})).toBe(false); + }); + }); + + describe('prune cache', () => { + let state: SyntheticsReducerState; + + beforeEach(() => { + const blobs = ['large', 'large2', 'large3', 'large4']; + state = { + blocks: { + '123': { + synthetics: { + blob: blobs[0], + blob_mime: MIME, + }, + id: '123', + }, + '234': { + synthetics: { + blob: blobs[1], + blob_mime: MIME, + }, + id: '234', + }, + '345': { + synthetics: { + blob: blobs[2], + blob_mime: MIME, + }, + id: '345', + }, + '456': { + synthetics: { + blob: blobs[3], + blob_mime: MIME, + }, + id: '456', + }, + }, + cacheSize: 23, + hitCount: [ + { hash: '123', hitTime: 89 }, + { hash: '234', hitTime: 23 }, + { hash: '345', hitTime: 4 }, + { hash: '456', hitTime: 1 }, + ], + }; + }); + + it('removes lowest common hits', () => { + // @ts-expect-error redux-actions doesn't handle types well + expect(syntheticsReducer(state, pruneCacheAction(10))).toMatchInlineSnapshot(` + Object { + "blocks": Object { + "123": Object { + "id": "123", + "synthetics": Object { + "blob": "large", + "blob_mime": "image/jpeg", + }, + }, + "234": Object { + "id": "234", + "synthetics": Object { + "blob": "large2", + "blob_mime": "image/jpeg", + }, + }, + }, + "cacheSize": 11, + "hitCount": Array [ + Object { + "hash": "123", + "hitTime": 89, + }, + Object { + "hash": "234", + "hitTime": 23, + }, + ], + } + `); + }); + + it('skips pending blocks', () => { + state.blocks = { ...state.blocks, '000': { status: 'pending' } }; + state.hitCount.push({ hash: '000', hitTime: 1 }); + // @ts-expect-error redux-actions doesn't handle types well + const newState = syntheticsReducer(state, pruneCacheAction(10)); + expect(newState.blocks['000']).toEqual({ status: 'pending' }); + }); + + it('ignores a hash from `hitCount` that does not exist', () => { + state.hitCount.push({ hash: 'not exist', hitTime: 1 }); + // @ts-expect-error redux-actions doesn't handle types well + expect(syntheticsReducer(state, pruneCacheAction(2))).toMatchInlineSnapshot(` + Object { + "blocks": Object { + "123": Object { + "id": "123", + "synthetics": Object { + "blob": "large", + "blob_mime": "image/jpeg", + }, + }, + "234": Object { + "id": "234", + "synthetics": Object { + "blob": "large2", + "blob_mime": "image/jpeg", + }, + }, + "345": Object { + "id": "345", + "synthetics": Object { + "blob": "large3", + "blob_mime": "image/jpeg", + }, + }, + }, + "cacheSize": 17, + "hitCount": Array [ + Object { + "hash": "123", + "hitTime": 89, + }, + Object { + "hash": "234", + "hitTime": 23, + }, + Object { + "hash": "345", + "hitTime": 4, + }, + ], + } + `); + }); + + it('will prune a block with an empty blob', () => { + state.blocks = { + ...state.blocks, + '000': { id: '000', synthetics: { blob: '', blob_mime: MIME } }, + }; + state.hitCount.push({ hash: '000', hitTime: 1 }); + // @ts-expect-error redux-actions doesn't handle types well + const newState = syntheticsReducer(state, pruneCacheAction(10)); + expect(Object.keys(newState.blocks)).not.toContain('000'); + }); + }); + + describe('fetch blocks', () => { + it('sets targeted blocks as pending', () => { + const state: SyntheticsReducerState = { blocks: {}, cacheSize: 0, hitCount: [] }; + const action = fetchBlocksAction(['123', '234']); + // @ts-expect-error redux-actions doesn't handle types well + expect(syntheticsReducer(state, action)).toMatchInlineSnapshot(` + Object { + "blocks": Object { + "123": Object { + "status": "pending", + }, + "234": Object { + "status": "pending", + }, + }, + "cacheSize": 0, + "hitCount": Array [], + } + `); + }); + + it('will not overwrite a cached block', () => { + const state: SyntheticsReducerState = { + blocks: { '123': { id: '123', synthetics: { blob: 'large', blob_mime: MIME } } }, + cacheSize: 'large'.length, + hitCount: [{ hash: '123', hitTime: 1 }], + }; + const action = fetchBlocksAction(['123']); + // @ts-expect-error redux-actions doesn't handle types well + expect(syntheticsReducer(state, action)).toMatchInlineSnapshot(` + Object { + "blocks": Object { + "123": Object { + "id": "123", + "synthetics": Object { + "blob": "large", + "blob_mime": "image/jpeg", + }, + }, + }, + "cacheSize": 5, + "hitCount": Array [ + Object { + "hash": "123", + "hitTime": 1, + }, + ], + } + `); + }); + }); + describe('update hit counts', () => { + let state: SyntheticsReducerState; + + beforeEach(() => { + const blobs = ['large', 'large2', 'large3']; + state = { + blocks: { + '123': { + synthetics: { + blob: blobs[0], + blob_mime: MIME, + }, + id: '123', + }, + '234': { + synthetics: { + blob: blobs[1], + blob_mime: MIME, + }, + id: '234', + }, + '345': { + synthetics: { + blob: blobs[2], + blob_mime: MIME, + }, + id: '345', + }, + }, + cacheSize: 17, + hitCount: [ + { hash: '123', hitTime: 1 }, + { hash: '234', hitTime: 1 }, + ], + }; + }); + + it('increments hit count for selected hashes', () => { + // @ts-expect-error redux-actions doesn't handle types well + expect(syntheticsReducer(state, updateHitCountsAction(['123', '234'])).hitCount).toEqual([ + { + hash: '123', + hitTime: 10, + }, + { hash: '234', hitTime: 10 }, + ]); + }); + + it('adds new hit count for missing item', () => { + // @ts-expect-error redux-actions doesn't handle types well + expect(syntheticsReducer(state, updateHitCountsAction(['345'])).hitCount).toEqual([ + { hash: '345', hitTime: 10 }, + { hash: '123', hitTime: 1 }, + { hash: '234', hitTime: 1 }, + ]); + }); + }); + describe('put cache size', () => { + let state: SyntheticsReducerState; + + beforeEach(() => { + state = { + blocks: {}, + cacheSize: 0, + hitCount: [], + }; + }); + + it('updates the cache size', () => { + // @ts-expect-error redux-actions doesn't handle types well + expect(syntheticsReducer(state, putCacheSize(100))).toEqual({ + blocks: {}, + cacheSize: 100, + hitCount: [], + }); + }); + }); + + describe('in-flight blocks', () => { + let state: SyntheticsReducerState; + + beforeEach(() => { + state = { + blocks: { + '123': { status: 'pending' }, + }, + cacheSize: 1, + hitCount: [{ hash: '123', hitTime: 1 }], + }; + }); + + it('sets pending blocks to loading', () => { + // @ts-expect-error redux-actions doesn't handle types well + expect(syntheticsReducer(state, setBlockLoadingAction(['123']))).toEqual({ + blocks: { '123': { status: 'loading' } }, + cacheSize: 1, + hitCount: [{ hash: '123', hitTime: 1 }], + }); + }); + }); + + describe('put blocks', () => { + let state: SyntheticsReducerState; + + beforeEach(() => { + state = { + blocks: { + '123': { + status: 'pending', + }, + }, + cacheSize: 0, + hitCount: [{ hash: '123', hitTime: 1 }], + }; + }); + + it('resolves pending blocks', () => { + const action = putBlocksAction({ + blocks: [ + { + id: '123', + synthetics: { + blob: 'reallybig', + blob_mime: MIME, + }, + }, + ], + }); + // @ts-expect-error redux-actions doesn't handle types well + const result = syntheticsReducer(state, action); + expect(result).toMatchInlineSnapshot(` + Object { + "blocks": Object { + "123": Object { + "id": "123", + "synthetics": Object { + "blob": "reallybig", + "blob_mime": "image/jpeg", + }, + }, + }, + "cacheSize": 0, + "hitCount": Array [ + Object { + "hash": "123", + "hitTime": 1, + }, + ], + } + `); + }); + + it('keeps unresolved blocks', () => { + const action = putBlocksAction({ + blocks: [ + { + id: '234', + synthetics: { + blob: 'also big', + blob_mime: MIME, + }, + }, + ], + }); + // @ts-expect-error redux-actions doesn't handle types well + expect(syntheticsReducer(state, action)).toMatchInlineSnapshot(` + Object { + "blocks": Object { + "123": Object { + "status": "pending", + }, + "234": Object { + "id": "234", + "synthetics": Object { + "blob": "also big", + "blob_mime": "image/jpeg", + }, + }, + }, + "cacheSize": 0, + "hitCount": Array [ + Object { + "hash": "123", + "hitTime": 1, + }, + ], + } + `); + }); + }); +}); diff --git a/x-pack/plugins/uptime/public/state/reducers/synthetics.ts b/x-pack/plugins/uptime/public/state/reducers/synthetics.ts new file mode 100644 index 0000000000000..1e97c3972444b --- /dev/null +++ b/x-pack/plugins/uptime/public/state/reducers/synthetics.ts @@ -0,0 +1,180 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { createAction, handleActions, Action } from 'redux-actions'; +import { + isScreenshotBlockDoc, + ScreenshotBlockDoc, +} from '../../../common/runtime_types/ping/synthetics'; + +export interface PendingBlock { + status: 'pending' | 'loading'; +} + +export function isPendingBlock(data: unknown): data is PendingBlock { + return ['pending', 'loading'].some((s) => s === (data as PendingBlock)?.status); +} +export type StoreScreenshotBlock = ScreenshotBlockDoc | PendingBlock; +export interface ScreenshotBlockCache { + [hash: string]: StoreScreenshotBlock; +} + +export interface CacheHitCount { + hash: string; + hitTime: number; +} + +export interface SyntheticsReducerState { + blocks: ScreenshotBlockCache; + cacheSize: number; + hitCount: CacheHitCount[]; +} + +export interface PutBlocksPayload { + blocks: ScreenshotBlockDoc[]; +} + +// this action denotes a set of blocks is required +export const fetchBlocksAction = createAction('FETCH_BLOCKS'); +// this action denotes a request for a set of blocks is in flight +export const setBlockLoadingAction = createAction('IN_FLIGHT_BLOCKS_ACTION'); +// block data has been received, and should be added to the store +export const putBlocksAction = createAction('PUT_SCREENSHOT_BLOCKS'); +// updates the total size of the image blob data cached in the store +export const putCacheSize = createAction('PUT_CACHE_SIZE'); +// keeps track of the most-requested blocks +export const updateHitCountsAction = createAction('UPDATE_HIT_COUNTS'); +// reduce the cache size to the value in the action payload +export const pruneCacheAction = createAction('PRUNE_SCREENSHOT_BLOCK_CACHE'); + +const initialState: SyntheticsReducerState = { + blocks: {}, + cacheSize: 0, + hitCount: [], +}; + +// using `any` here because `handleActions` is not set up well to handle the multi-type +// nature of all the actions it supports. redux-actions is looking for new maintainers https://github.com/redux-utilities/redux-actions#looking-for-maintainers +// and seems that we should move to something else like Redux Toolkit. +export const syntheticsReducer = handleActions< + SyntheticsReducerState, + string[] & PutBlocksPayload & number +>( + { + /** + * When removing blocks from the cache, we receive an action with a number. + * The number equates to the desired ceiling size of the cache. We then discard + * blocks, ordered by the least-requested. We continue dropping blocks until + * the newly-pruned size will be less than the ceiling supplied by the action. + */ + [String(pruneCacheAction)]: (state, action: Action) => handlePruneAction(state, action), + + /** + * Keep track of the least- and most-requested blocks, so when it is time to + * prune we keep the most commonly-used ones. + */ + [String(updateHitCountsAction)]: (state, action: Action) => + handleUpdateHitCountsAction(state, action), + + [String(putCacheSize)]: (state, action: Action) => ({ + ...state, + cacheSize: state.cacheSize + action.payload, + }), + + [String(fetchBlocksAction)]: (state, action: Action) => ({ + // increment hit counts + ...state, + blocks: { + ...state.blocks, + ...action.payload + // there's no need to overwrite existing blocks because the key + // is either storing a pending req or a cached result + .filter((b) => !state.blocks[b]) + // convert the list of new hashes in the payload to an object that + // will combine with with the existing blocks cache + .reduce( + (acc, cur) => ({ + ...acc, + [cur]: { status: 'pending' }, + }), + {} + ), + }, + }), + + /** + * All hashes contained in the action payload have been requested, so we can + * indicate that they're loading. Subsequent requests will skip them. + */ + [String(setBlockLoadingAction)]: (state, action: Action) => ({ + ...state, + blocks: { + ...state.blocks, + ...action.payload.reduce( + (acc, cur) => ({ + ...acc, + [cur]: { status: 'loading' }, + }), + {} + ), + }, + }), + + [String(putBlocksAction)]: (state, action: Action) => ({ + ...state, + blocks: { + ...state.blocks, + ...action.payload.blocks.reduce((acc, cur) => ({ ...acc, [cur.id]: cur }), {}), + }, + }), + }, + initialState +); + +function handlePruneAction(state: SyntheticsReducerState, action: Action) { + const { blocks, hitCount } = state; + const hashesToPrune: string[] = []; + let sizeToRemove = 0; + let removeIndex = hitCount.length - 1; + while (sizeToRemove < action.payload && removeIndex >= 0) { + const { hash } = hitCount[removeIndex]; + removeIndex--; + if (!blocks[hash]) continue; + const block = blocks[hash]; + if (isScreenshotBlockDoc(block)) { + sizeToRemove += block.synthetics.blob.length; + hashesToPrune.push(hash); + } + } + for (const hash of hashesToPrune) { + delete blocks[hash]; + } + return { + cacheSize: state.cacheSize - sizeToRemove, + blocks: { ...blocks }, + hitCount: hitCount.slice(0, removeIndex + 1), + }; +} + +function handleUpdateHitCountsAction(state: SyntheticsReducerState, action: Action) { + const newHitCount = [...state.hitCount]; + const hitTime = Date.now(); + action.payload.forEach((hash) => { + const countItem = newHitCount.find((item) => item.hash === hash); + if (!countItem) { + newHitCount.push({ hash, hitTime }); + } else { + countItem.hitTime = hitTime; + } + }); + // sorts in descending order + newHitCount.sort((a, b) => b.hitTime - a.hitTime); + return { + ...state, + hitCount: newHitCount, + }; +} diff --git a/x-pack/plugins/uptime/public/state/selectors/index.test.ts b/x-pack/plugins/uptime/public/state/selectors/index.test.ts index e4094c72a6e10..520ebdac0c1e0 100644 --- a/x-pack/plugins/uptime/public/state/selectors/index.test.ts +++ b/x-pack/plugins/uptime/public/state/selectors/index.test.ts @@ -109,6 +109,11 @@ describe('state selectors', () => { }, journeys: {}, networkEvents: {}, + synthetics: { + blocks: {}, + cacheSize: 0, + hitCount: [], + }, }; it('selects base path from state', () => { diff --git a/x-pack/plugins/uptime/public/state/selectors/index.ts b/x-pack/plugins/uptime/public/state/selectors/index.ts index 6c4ea8201398c..222687c78a868 100644 --- a/x-pack/plugins/uptime/public/state/selectors/index.ts +++ b/x-pack/plugins/uptime/public/state/selectors/index.ts @@ -97,3 +97,5 @@ export const monitorIdSelector = ({ ui: { monitorId } }: AppState) => monitorId; export const journeySelector = ({ journeys }: AppState) => journeys; export const networkEventsSelector = ({ networkEvents }: AppState) => networkEvents; + +export const syntheticsSelector = ({ synthetics }: AppState) => synthetics; diff --git a/x-pack/plugins/uptime/server/lib/requests/get_journey_screenshot.test.ts b/x-pack/plugins/uptime/server/lib/requests/get_journey_screenshot.test.ts index 3d8bc04a10565..15cee91606e66 100644 --- a/x-pack/plugins/uptime/server/lib/requests/get_journey_screenshot.test.ts +++ b/x-pack/plugins/uptime/server/lib/requests/get_journey_screenshot.test.ts @@ -12,6 +12,7 @@ describe('getJourneyScreenshot', () => { it('returns screenshot data', async () => { const screenshotResult = { _id: 'id', + _index: 'index', _source: { synthetics: { blob_mime: 'image/jpeg', @@ -26,8 +27,14 @@ describe('getJourneyScreenshot', () => { expect( await getJourneyScreenshot({ uptimeEsClient: mockSearchResult([], { - // @ts-expect-error incomplete search result - step: { image: { hits: { hits: [screenshotResult] } } }, + step: { + image: { + hits: { + total: 1, + hits: [screenshotResult], + }, + }, + }, }), checkGroup: 'checkGroup', stepIndex: 0, @@ -48,6 +55,7 @@ describe('getJourneyScreenshot', () => { it('returns ref data', async () => { const screenshotRefResult = { _id: 'id', + _index: 'index', _source: { '@timestamp': '123', monitor: { @@ -86,8 +94,7 @@ describe('getJourneyScreenshot', () => { expect( await getJourneyScreenshot({ uptimeEsClient: mockSearchResult([], { - // @ts-expect-error incomplete search result - step: { image: { hits: { hits: [screenshotRefResult] } } }, + step: { image: { hits: { hits: [screenshotRefResult], total: 1 } } }, }), checkGroup: 'checkGroup', stepIndex: 0, diff --git a/x-pack/plugins/uptime/server/rest_api/index.ts b/x-pack/plugins/uptime/server/rest_api/index.ts index d4d0e13bd23db..8ae878669ba32 100644 --- a/x-pack/plugins/uptime/server/rest_api/index.ts +++ b/x-pack/plugins/uptime/server/rest_api/index.ts @@ -12,7 +12,7 @@ import { createGetPingsRoute, createJourneyRoute, createJourneyScreenshotRoute, - createJourneyScreenshotBlockRoute, + createJourneyScreenshotBlocksRoute, } from './pings'; import { createGetDynamicSettingsRoute, createPostDynamicSettingsRoute } from './dynamic_settings'; import { createLogPageViewRoute } from './telemetry'; @@ -52,8 +52,8 @@ export const restApiRoutes: UMRestApiRouteFactory[] = [ createGetMonitorDurationRoute, createJourneyRoute, createJourneyScreenshotRoute, - createJourneyScreenshotBlockRoute, createNetworkEventsRoute, createJourneyFailedStepsRoute, createLastSuccessfulStepRoute, + createJourneyScreenshotBlocksRoute, ]; diff --git a/x-pack/plugins/uptime/server/rest_api/pings/index.ts b/x-pack/plugins/uptime/server/rest_api/pings/index.ts index 45cd23dea42ed..0e1cc7baa9ad1 100644 --- a/x-pack/plugins/uptime/server/rest_api/pings/index.ts +++ b/x-pack/plugins/uptime/server/rest_api/pings/index.ts @@ -9,4 +9,4 @@ export { createGetPingsRoute } from './get_pings'; export { createGetPingHistogramRoute } from './get_ping_histogram'; export { createJourneyRoute } from './journeys'; export { createJourneyScreenshotRoute } from './journey_screenshots'; -export { createJourneyScreenshotBlockRoute } from './journey_screenshot_blocks'; +export { createJourneyScreenshotBlocksRoute } from './journey_screenshot_blocks'; diff --git a/x-pack/plugins/uptime/server/rest_api/pings/journey_screenshot_blocks.test.ts b/x-pack/plugins/uptime/server/rest_api/pings/journey_screenshot_blocks.test.ts new file mode 100644 index 0000000000000..4909e2eb80108 --- /dev/null +++ b/x-pack/plugins/uptime/server/rest_api/pings/journey_screenshot_blocks.test.ts @@ -0,0 +1,81 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { createJourneyScreenshotBlocksRoute } from './journey_screenshot_blocks'; + +describe('journey screenshot blocks route', () => { + let libs: unknown; + beforeEach(() => { + libs = { + uptimeEsClient: jest.fn(), + request: { + body: { + hashes: ['hash1', 'hash2'], + }, + }, + response: { + badRequest: jest.fn().mockReturnValue({ status: 400, message: 'Bad request.' }), + ok: jest.fn((responseData) => ({ ...responseData, status: 200, message: 'Ok' })), + notFound: jest.fn().mockReturnValue({ status: 404, message: 'Not found.' }), + }, + }; + }); + + it('returns status code 400 if hash list is invalid', async () => { + // @ts-expect-error incomplete implementation for testing + const route = createJourneyScreenshotBlocksRoute(); + + libs = Object.assign({}, libs, { request: { body: { hashes: undefined } } }); + + // @ts-expect-error incomplete implementation for testing + const response = await route.handler(libs); + expect(response.status).toBe(400); + }); + + it('returns status code 404 if result is empty set', async () => { + const route = createJourneyScreenshotBlocksRoute({ + // @ts-expect-error incomplete implementation for testing + requests: { + getJourneyScreenshotBlocks: jest.fn().mockReturnValue([]), + }, + }); + + // @ts-expect-error incomplete implementation for testing + expect((await route.handler(libs)).status).toBe(404); + }); + + it('returns blocks for request', async () => { + const responseData = [ + { + id: 'hash1', + synthetics: { + blob: 'blob1', + blob_mime: 'image/jpeg', + }, + }, + { + id: 'hash2', + synthetics: { + blob: 'blob2', + blob_mime: 'image/jpeg', + }, + }, + ]; + const route = createJourneyScreenshotBlocksRoute({ + // @ts-expect-error incomplete implementation for testing + requests: { + getJourneyScreenshotBlocks: jest.fn().mockReturnValue(responseData), + }, + }); + + // @ts-expect-error incomplete implementation for testing + const response = await route.handler(libs); + expect(response.status).toBe(200); + // @ts-expect-error incomplete implementation for testing + expect(response.body).toEqual(responseData); + }); +}); diff --git a/x-pack/plugins/uptime/server/rest_api/pings/journey_screenshot_blocks.ts b/x-pack/plugins/uptime/server/rest_api/pings/journey_screenshot_blocks.ts index 63c2cfe7e2d48..3127c34590ef5 100644 --- a/x-pack/plugins/uptime/server/rest_api/pings/journey_screenshot_blocks.ts +++ b/x-pack/plugins/uptime/server/rest_api/pings/journey_screenshot_blocks.ts @@ -10,44 +10,38 @@ import { isRight } from 'fp-ts/lib/Either'; import { schema } from '@kbn/config-schema'; import { UMServerLibs } from '../../lib/lib'; import { UMRestApiRouteFactory } from '../types'; -import { ScreenshotBlockDoc } from '../../../common/runtime_types/ping/synthetics'; -export const createJourneyScreenshotBlockRoute: UMRestApiRouteFactory = (libs: UMServerLibs) => ({ - method: 'GET', +function isStringArray(data: unknown): data is string[] { + return isRight(t.array(t.string).decode(data)); +} + +export const createJourneyScreenshotBlocksRoute: UMRestApiRouteFactory = (libs: UMServerLibs) => ({ + method: 'POST', path: '/api/uptime/journey/screenshot/block', validate: { + body: schema.object({ + hashes: schema.arrayOf(schema.string()), + }), query: schema.object({ - hash: schema.oneOf([schema.string(), schema.arrayOf(schema.string())]), _inspect: schema.maybe(schema.boolean()), }), }, handler: async ({ request, response, uptimeEsClient }) => { - const { hash } = request.query; + const { hashes: blockIds } = request.body; + + if (!isStringArray(blockIds)) return response.badRequest(); + + const result = await libs.requests.getJourneyScreenshotBlocks({ + blockIds, + uptimeEsClient, + }); - const decoded = t.union([t.string, t.array(t.string)]).decode(hash); - if (!isRight(decoded)) { - return response.badRequest(); - } - const { right: data } = decoded; - let result: ScreenshotBlockDoc[]; - try { - result = await libs.requests.getJourneyScreenshotBlocks({ - blockIds: Array.isArray(data) ? data : [data], - uptimeEsClient, - }); - } catch (e: unknown) { - return response.custom({ statusCode: 500, body: { message: e } }); - } if (result.length === 0) { return response.notFound(); } + return response.ok({ body: result, - headers: { - // we can cache these blocks with extreme prejudice as they are inherently unchanging - // when queried by ID, since the ID is the hash of the data - 'Cache-Control': 'max-age=604800', - }, }); }, }); diff --git a/x-pack/plugins/uptime/server/rest_api/pings/journey_screenshots.test.ts b/x-pack/plugins/uptime/server/rest_api/pings/journey_screenshots.test.ts new file mode 100644 index 0000000000000..22aef54fa10bd --- /dev/null +++ b/x-pack/plugins/uptime/server/rest_api/pings/journey_screenshots.test.ts @@ -0,0 +1,179 @@ +/* + * 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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { createJourneyScreenshotRoute } from './journey_screenshots'; + +describe('journey screenshot route', () => { + let libs: unknown; + beforeEach(() => { + libs = { + uptimeEsClient: jest.fn(), + request: { + params: { + checkGroup: 'check_group', + stepIndex: 0, + }, + }, + response: { + ok: jest.fn((responseData) => ({ ...responseData, status: 200, message: 'Ok' })), + notFound: jest.fn().mockReturnValue({ status: 404, message: 'Not found.' }), + }, + }; + }); + + it('will 404 for missing screenshot', async () => { + const route = createJourneyScreenshotRoute({ + // @ts-expect-error incomplete implementation for testing + requests: { + getJourneyScreenshot: jest.fn(), + }, + }); + + // @ts-expect-error incomplete implementation for testing + expect(await route.handler(libs)).toMatchInlineSnapshot(` + Object { + "message": "Not found.", + "status": 404, + } + `); + }); + + it('returns screenshot ref', async () => { + const mock = { + '@timestamp': '123', + monitor: { + check_group: 'check_group', + }, + screenshot_ref: { + width: 100, + height: 200, + blocks: [{ hash: 'hash', top: 0, left: 0, height: 10, width: 10 }], + }, + synthetics: { + package_version: '1.0.0', + step: { + name: 'a step name', + index: 0, + }, + type: 'step/screenshot_ref', + }, + totalSteps: 3, + }; + + const route = createJourneyScreenshotRoute({ + // @ts-expect-error incomplete implementation for testing + requests: { + getJourneyScreenshot: jest.fn().mockReturnValue(mock), + }, + }); + + // @ts-expect-error incomplete implementation for testing + const response = await route.handler(libs); + expect(response.status).toBe(200); + // @ts-expect-error response doesn't match interface for testing + expect(response.headers).toMatchInlineSnapshot(` + Object { + "cache-control": "max-age=600", + "caption-name": "a step name", + "max-steps": "3", + } + `); + // @ts-expect-error response doesn't match interface for testing + expect(response.body.screenshotRef).toEqual(mock); + }); + + it('returns full screenshot blob', async () => { + const mock = { + synthetics: { + blob: 'a blob', + blob_mime: 'image/jpeg', + step: { + name: 'a step name', + }, + type: 'step/screenshot', + }, + totalSteps: 3, + }; + const route = createJourneyScreenshotRoute({ + // @ts-expect-error incomplete implementation for testing + requests: { + getJourneyScreenshot: jest.fn().mockReturnValue(mock), + }, + }); + + // @ts-expect-error incomplete implementation for testing + expect(await route.handler(libs)).toMatchInlineSnapshot(` + Object { + "body": Object { + "data": Array [ + 105, + 185, + 104, + ], + "type": "Buffer", + }, + "headers": Object { + "cache-control": "max-age=600", + "caption-name": "a step name", + "content-type": "image/jpeg", + "max-steps": "3", + }, + "message": "Ok", + "status": 200, + } + `); + }); + + it('defaults to png when mime is undefined', async () => { + const mock = { + synthetics: { + blob: 'a blob', + step: { + name: 'a step name', + }, + type: 'step/screenshot', + }, + }; + const route = createJourneyScreenshotRoute({ + // @ts-expect-error incomplete implementation for testing + requests: { + getJourneyScreenshot: jest.fn().mockReturnValue(mock), + }, + }); + + // @ts-expect-error incomplete implementation for testing + const response = await route.handler(libs); + + expect(response.status).toBe(200); + // @ts-expect-error incomplete implementation for testing + expect(response.headers['content-type']).toBe('image/png'); + }); + + it('returns 404 for screenshot missing blob', async () => { + const route = createJourneyScreenshotRoute({ + // @ts-expect-error incomplete implementation for testing + requests: { + getJourneyScreenshot: jest.fn().mockReturnValue({ + synthetics: { + step: { + name: 'a step name', + }, + type: 'step/screenshot', + }, + }), + }, + }); + + // @ts-expect-error incomplete implementation for testing + expect(await route.handler(libs)).toMatchInlineSnapshot(` + Object { + "message": "Not found.", + "status": 404, + } + `); + }); +}); diff --git a/x-pack/plugins/uptime/server/rest_api/pings/journey_screenshots.ts b/x-pack/plugins/uptime/server/rest_api/pings/journey_screenshots.ts index bd7cf6af4f843..5f0825279ecfa 100644 --- a/x-pack/plugins/uptime/server/rest_api/pings/journey_screenshots.ts +++ b/x-pack/plugins/uptime/server/rest_api/pings/journey_screenshots.ts @@ -6,11 +6,7 @@ */ import { schema } from '@kbn/config-schema'; -import { - isRefResult, - isFullScreenshot, - ScreenshotBlockDoc, -} from '../../../common/runtime_types/ping/synthetics'; +import { isRefResult, isFullScreenshot } from '../../../common/runtime_types/ping/synthetics'; import { UMServerLibs } from '../../lib/lib'; import { ScreenshotReturnTypesUnion } from '../../lib/requests/get_journey_screenshot'; import { UMRestApiRouteFactory } from '../types'; @@ -39,22 +35,13 @@ export const createJourneyScreenshotRoute: UMRestApiRouteFactory = (libs: UMServ handler: async ({ uptimeEsClient, request, response }) => { const { checkGroup, stepIndex } = request.params; - let result: ScreenshotReturnTypesUnion | null = null; - try { - result = await libs.requests.getJourneyScreenshot({ - uptimeEsClient, - checkGroup, - stepIndex, - }); - } catch (e) { - return response.customError({ body: { message: e }, statusCode: 500 }); - } - - if (isFullScreenshot(result)) { - if (!result.synthetics.blob) { - return response.notFound(); - } + const result: ScreenshotReturnTypesUnion | null = await libs.requests.getJourneyScreenshot({ + uptimeEsClient, + checkGroup, + stepIndex, + }); + if (isFullScreenshot(result) && typeof result.synthetics?.blob !== 'undefined') { return response.ok({ body: Buffer.from(result.synthetics.blob, 'base64'), headers: { @@ -63,22 +50,11 @@ export const createJourneyScreenshotRoute: UMRestApiRouteFactory = (libs: UMServ }, }); } else if (isRefResult(result)) { - const blockIds = result.screenshot_ref.blocks.map(({ hash }) => hash); - let blocks: ScreenshotBlockDoc[]; - try { - blocks = await libs.requests.getJourneyScreenshotBlocks({ - uptimeEsClient, - blockIds, - }); - } catch (e: unknown) { - return response.custom({ statusCode: 500, body: { message: e } }); - } return response.ok({ body: { screenshotRef: result, - blocks, }, - headers: getSharedHeaders(result.synthetics.step.name, result.totalSteps ?? 0), + headers: getSharedHeaders(result.synthetics.step.name, result.totalSteps), }); } From 63ec45880fedd0e4e9b8b5615515f6da8a64c558 Mon Sep 17 00:00:00 2001 From: Matthew Kime Date: Sun, 1 Aug 2021 19:05:10 -0500 Subject: [PATCH 26/40] [apm] use IndexPattern instead of IIndexPattern (#107187) * use IndexPattern instead of IIndexPattern * typefix Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../apm/public/components/shared/kuery_bar/index.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx b/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx index 72c5bac1f9f17..8358837cac563 100644 --- a/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx @@ -11,7 +11,7 @@ import React, { useState } from 'react'; import { useHistory, useLocation } from 'react-router-dom'; import { esKuery, - IIndexPattern, + IndexPattern, QuerySuggestion, } from '../../../../../../../src/plugins/data/public'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; @@ -29,7 +29,7 @@ interface State { isLoadingSuggestions: boolean; } -function convertKueryToEsQuery(kuery: string, indexPattern: IIndexPattern) { +function convertKueryToEsQuery(kuery: string, indexPattern: IndexPattern) { const ast = esKuery.fromKueryExpression(kuery); return esKuery.toElasticsearchQuery(ast, indexPattern); } @@ -125,7 +125,10 @@ export function KueryBar(props: { prepend?: React.ReactNode | string }) { } try { - const res = convertKueryToEsQuery(inputValue, indexPattern); + const res = convertKueryToEsQuery( + inputValue, + indexPattern as IndexPattern + ); if (!res) { return; } From 33bc6f1d378ad47f4ad0852a3909dfc68debcf42 Mon Sep 17 00:00:00 2001 From: Matthias Wilhelm Date: Mon, 2 Aug 2021 09:46:19 +0200 Subject: [PATCH 27/40] [Discover] Improve functional testing searchOnPageLoad (#107181) --- test/functional/apps/discover/_discover.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/functional/apps/discover/_discover.ts b/test/functional/apps/discover/_discover.ts index 616c07dd8cf9c..19a4f7271be33 100644 --- a/test/functional/apps/discover/_discover.ts +++ b/test/functional/apps/discover/_discover.ts @@ -268,8 +268,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await kibanaServer.uiSettings.replace({ 'discover:searchOnPageLoad': true }); await PageObjects.common.navigateToApp('discover'); await PageObjects.header.awaitKibanaChrome(); - - expect(await PageObjects.discover.getNrOfFetches()).to.be(1); + await retry.waitFor('number of fetches to be 1', async () => { + const nrOfFetches = await PageObjects.discover.getNrOfFetches(); + return nrOfFetches === 1; + }); }); }); From 8088565ee9b4f7efe6ea916d1e36b9c7f96bcf3a Mon Sep 17 00:00:00 2001 From: Uladzislau Lasitsa Date: Mon, 2 Aug 2021 11:53:03 +0300 Subject: [PATCH 28/40] Replace flot with elastic-chart in Timelion (#81565) * First draft migrate timelion to elastic-charts * Some refactoring. Added brush event. * Added title. Some refactoring * Fixed some type problems. Added logic for yaxes function * Fixed some types, added missing functionality for yaxes * Fixed some types, added missing functionality for stack property * Fixed unit test * Removed unneeded code * Some refactoring * Some refactoring * Fixed some remarks. * Fixed some styles * Added themes. Removed unneeded styles in BarSeries * removed unneeded code. * Fixed some comments * Fixed vertical cursor across Timelion visualizations of a dashboad * Fix some problems with styles * Use RxJS instead of jQuery * Remove unneeded code * Fixed some problems * Fixed unit test * Fix CI * Fix eslint * Fix some gaps * Fix legend columns * Some fixes * add 2 versions of Timeline app * fix CI * cleanup code * fix CI * fix legend position * fix some cases * fix some cases * remove extra casting * cleanup code * fix issue with static * fix header formatter * fix points * fix ts error * Fix yaxis behavior * Fix some case with yaxis * Add deprecation message and update asciidoc * Fix title * some text improvements Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Alexey Antonov --- docs/management/advanced-options.asciidoc | 4 + .../public/doc_links/doc_links_service.ts | 1 + .../server/collectors/management/schema.ts | 4 + .../server/collectors/management/types.ts | 1 + src/plugins/telemetry/schema/oss_plugins.json | 6 + src/plugins/timelion/public/app.js | 4 +- .../timelion_expression_input_helpers.js | 4 +- src/plugins/timelion/public/index.scss | 2 +- .../public/panels/timechart/schema.ts | 18 +- .../vis_type_timelion/common/constants.ts | 18 + .../vis_type_timelion/common/vis_data.ts | 33 ++ src/plugins/vis_type_timelion/kibana.json | 2 +- .../public/components/series/area.tsx | 62 ++ .../public/components/series/bar.tsx | 58 ++ .../public/components/series/index.ts | 10 + .../public/components/timelion_vis.scss | 56 +- .../components/timelion_vis_component.tsx | 536 ++++++------------ .../public/helpers/active_cursor.ts | 12 + .../public/helpers/chart_constants.ts | 20 + .../public/helpers/panel_utils.ts | 233 +++----- .../public/helpers/tick_formatters.test.ts | 124 ++-- .../public/helpers/tick_formatters.ts | 21 +- .../public/helpers/tick_generator.ts | 6 +- .../helpers/timelion_request_handler.ts | 9 +- src/plugins/vis_type_timelion/public/index.ts | 24 +- .../public/legacy/panel_utils.ts | 168 ++++++ .../public/legacy/tick_formatters.test.ts | 222 ++++++++ .../public/legacy/tick_formatters.ts | 79 +++ .../public/legacy/timelion_vis.scss | 60 ++ .../public/legacy/timelion_vis_component.tsx | 418 ++++++++++++++ .../vis_type_timelion/public/plugin.ts | 12 +- .../public/timelion_vis_renderer.tsx | 29 +- .../vis_type_timelion/server/plugin.ts | 99 +--- .../server/series_functions/label.js | 2 +- .../vis_type_timelion/server/ui_settings.ts | 130 +++++ 35 files changed, 1717 insertions(+), 770 deletions(-) create mode 100644 src/plugins/vis_type_timelion/common/constants.ts create mode 100644 src/plugins/vis_type_timelion/common/vis_data.ts create mode 100644 src/plugins/vis_type_timelion/public/components/series/area.tsx create mode 100644 src/plugins/vis_type_timelion/public/components/series/bar.tsx create mode 100644 src/plugins/vis_type_timelion/public/components/series/index.ts create mode 100644 src/plugins/vis_type_timelion/public/helpers/active_cursor.ts create mode 100644 src/plugins/vis_type_timelion/public/helpers/chart_constants.ts create mode 100644 src/plugins/vis_type_timelion/public/legacy/panel_utils.ts create mode 100644 src/plugins/vis_type_timelion/public/legacy/tick_formatters.test.ts create mode 100644 src/plugins/vis_type_timelion/public/legacy/tick_formatters.ts create mode 100644 src/plugins/vis_type_timelion/public/legacy/timelion_vis.scss create mode 100644 src/plugins/vis_type_timelion/public/legacy/timelion_vis_component.tsx create mode 100644 src/plugins/vis_type_timelion/server/ui_settings.ts diff --git a/docs/management/advanced-options.asciidoc b/docs/management/advanced-options.asciidoc index f3ca30eb860e8..23f79c1bbb480 100644 --- a/docs/management/advanced-options.asciidoc +++ b/docs/management/advanced-options.asciidoc @@ -514,6 +514,10 @@ Shows the Timelion tutorial to users when they first open the Timelion app. Used for calculating automatic intervals in visualizations, this is the number of buckets to try to represent. +[[timelion-legacyChartsLibrary]]`timelion:legacyChartsLibrary`:: +Enables the legacy charts library for timelion charts in Visualize. + + [float] [[kibana-visualization-settings]] ==== Visualization diff --git a/src/core/public/doc_links/doc_links_service.ts b/src/core/public/doc_links/doc_links_service.ts index fb748d1e76661..1f6b549c0110c 100644 --- a/src/core/public/doc_links/doc_links_service.ts +++ b/src/core/public/doc_links/doc_links_service.ts @@ -228,6 +228,7 @@ export class DocLinksService { indexManagement: `${ELASTICSEARCH_DOCS}index-mgmt.html`, kibanaSearchSettings: `${KIBANA_DOCS}advanced-options.html#kibana-search-settings`, visualizationSettings: `${KIBANA_DOCS}advanced-options.html#kibana-visualization-settings`, + timelionSettings: `${KIBANA_DOCS}advanced-options.html#kibana-timelion-settings`, }, ml: { guide: `${ELASTIC_WEBSITE_URL}guide/en/machine-learning/${DOC_LINK_VERSION}/index.html`, diff --git a/src/plugins/kibana_usage_collection/server/collectors/management/schema.ts b/src/plugins/kibana_usage_collection/server/collectors/management/schema.ts index a7dd5461adf46..ace26dc9e6295 100644 --- a/src/plugins/kibana_usage_collection/server/collectors/management/schema.ts +++ b/src/plugins/kibana_usage_collection/server/collectors/management/schema.ts @@ -80,6 +80,10 @@ export const stackManagementSchema: MakeSchemaFrom = { type: 'text', _meta: { description: 'Non-default value of setting.' }, }, + 'timelion:legacyChartsLibrary': { + type: 'boolean', + _meta: { description: 'Non-default value of setting.' }, + }, 'timelion:target_buckets': { type: 'long', _meta: { description: 'Non-default value of setting.' }, diff --git a/src/plugins/kibana_usage_collection/server/collectors/management/types.ts b/src/plugins/kibana_usage_collection/server/collectors/management/types.ts index a47acf25a2cc1..95faaee88fa61 100644 --- a/src/plugins/kibana_usage_collection/server/collectors/management/types.ts +++ b/src/plugins/kibana_usage_collection/server/collectors/management/types.ts @@ -45,6 +45,7 @@ export interface UsageStats { 'visualization:tileMap:maxPrecision': number; 'csv:separator': string; 'visualization:tileMap:WMSdefaults': string; + 'timelion:legacyChartsLibrary': boolean; 'timelion:target_buckets': number; 'timelion:max_buckets': number; 'timelion:es.timefield': string; diff --git a/src/plugins/telemetry/schema/oss_plugins.json b/src/plugins/telemetry/schema/oss_plugins.json index a5d4668a4296f..6947b6cc3ce38 100644 --- a/src/plugins/telemetry/schema/oss_plugins.json +++ b/src/plugins/telemetry/schema/oss_plugins.json @@ -7258,6 +7258,12 @@ "description": "Non-default value of setting." } }, + "timelion:legacyChartsLibrary": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, "timelion:target_buckets": { "type": "long", "_meta": { diff --git a/src/plugins/timelion/public/app.js b/src/plugins/timelion/public/app.js index 6db88ad65a1d1..4a4b2be679dd3 100644 --- a/src/plugins/timelion/public/app.js +++ b/src/plugins/timelion/public/app.js @@ -21,7 +21,7 @@ import { registerListenEventListener, watchMultiDecorator, } from '../../kibana_legacy/public'; -import { getTimezone } from '../../vis_type_timelion/public'; +import { _LEGACY_ as visTypeTimelion } from '../../vis_type_timelion/public'; import { initCellsDirective } from './directives/cells/cells'; import { initFullscreenDirective } from './directives/fullscreen/fullscreen'; import { initFixedElementDirective } from './directives/fixed_element'; @@ -144,7 +144,7 @@ export function initTimelionApp(app, deps) { $scope.updatedSheets = []; const savedVisualizations = deps.plugins.visualizations.savedVisualizationsLoader; - const timezone = getTimezone(deps.core.uiSettings); + const timezone = visTypeTimelion.getTimezone(deps.core.uiSettings); const defaultExpression = '.es(*)'; diff --git a/src/plugins/timelion/public/directives/timelion_expression_input_helpers.js b/src/plugins/timelion/public/directives/timelion_expression_input_helpers.js index 2abfd2b1e7c7a..0bc5897c49d6f 100644 --- a/src/plugins/timelion/public/directives/timelion_expression_input_helpers.js +++ b/src/plugins/timelion/public/directives/timelion_expression_input_helpers.js @@ -7,7 +7,7 @@ */ import _ from 'lodash'; -import { parseTimelionExpressionAsync } from '../../../vis_type_timelion/public'; +import { _LEGACY_ as visTypeTimelion } from '../../../vis_type_timelion/public'; export const SUGGESTION_TYPE = { ARGUMENTS: 'arguments', @@ -180,7 +180,7 @@ async function extractSuggestionsFromParsedResult( export async function suggest(expression, functionList, cursorPosition, argValueSuggestions) { try { - const result = await parseTimelionExpressionAsync(expression); + const result = await visTypeTimelion.parseTimelionExpressionAsync(expression); return await extractSuggestionsFromParsedResult( result, cursorPosition, diff --git a/src/plugins/timelion/public/index.scss b/src/plugins/timelion/public/index.scss index b93e99bf9bcc4..7a4259b2a17c8 100644 --- a/src/plugins/timelion/public/index.scss +++ b/src/plugins/timelion/public/index.scss @@ -15,4 +15,4 @@ // styles for timelion visualization are lazy loaded only while a vis is opened // this will duplicate styles only if both Timelion app and timelion visualization are loaded // could be left here as it is since the Timelion app is deprecated -@import '../../vis_type_timelion/public/components/timelion_vis.scss'; +@import '../../vis_type_timelion/public/legacy/timelion_vis.scss'; diff --git a/src/plugins/timelion/public/panels/timechart/schema.ts b/src/plugins/timelion/public/panels/timechart/schema.ts index 7178ba135c4c5..dc26adc6ea5f5 100644 --- a/src/plugins/timelion/public/panels/timechart/schema.ts +++ b/src/plugins/timelion/public/panels/timechart/schema.ts @@ -11,13 +11,7 @@ import $ from 'jquery'; import moment from 'moment-timezone'; // @ts-ignore import observeResize from '../../lib/observe_resize'; -import { - calculateInterval, - DEFAULT_TIME_FORMAT, - tickFormatters, - xaxisFormatterProvider, - generateTicksProvider, -} from '../../../../vis_type_timelion/public'; +import { _LEGACY_ as visTypeTimelion } from '../../../../vis_type_timelion/public'; import { TimelionVisualizationDependencies } from '../../application'; const DEBOUNCE_DELAY = 50; @@ -37,9 +31,9 @@ export function timechartFn(dependencies: TimelionVisualizationDependencies) { help: 'Draw a timeseries chart', render($scope: any, $elem: any) { const template = '
'; - const formatters = tickFormatters() as any; - const getxAxisFormatter = xaxisFormatterProvider(uiSettings); - const generateTicks = generateTicksProvider(); + const formatters = visTypeTimelion.tickFormatters() as any; + const getxAxisFormatter = visTypeTimelion.xaxisFormatterProvider(uiSettings); + const generateTicks = visTypeTimelion.generateTicksProvider(); // TODO: I wonder if we should supply our own moment that sets this every time? // could just use angular's injection to provide a moment service? @@ -226,7 +220,7 @@ export function timechartFn(dependencies: TimelionVisualizationDependencies) { if (legendCaption) { legendCaption.text( moment(pos.x).format( - _.get(dataset, '[0]._global.legend.timeFormat', DEFAULT_TIME_FORMAT) + _.get(dataset, '[0]._global.legend.timeFormat', visTypeTimelion.DEFAULT_TIME_FORMAT) ) ); } @@ -289,7 +283,7 @@ export function timechartFn(dependencies: TimelionVisualizationDependencies) { // Get the X-axis tick format const time = timefilter.timefilter.getBounds() as any; - const interval = calculateInterval( + const interval = visTypeTimelion.calculateInterval( time.min.valueOf(), time.max.valueOf(), uiSettings.get('timelion:target_buckets') || 200, diff --git a/src/plugins/vis_type_timelion/common/constants.ts b/src/plugins/vis_type_timelion/common/constants.ts new file mode 100644 index 0000000000000..a97bdd855107c --- /dev/null +++ b/src/plugins/vis_type_timelion/common/constants.ts @@ -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 const UI_SETTINGS = { + LEGACY_CHARTS_LIBRARY: 'timelion:legacyChartsLibrary', + ES_TIMEFIELD: 'timelion:es.timefield', + DEFAULT_INDEX: 'timelion:es.default_index', + TARGET_BUCKETS: 'timelion:target_buckets', + MAX_BUCKETS: 'timelion:max_buckets', + MIN_INTERVAL: 'timelion:min_interval', + GRAPHITE_URL: 'timelion:graphite.url', + QUANDL_KEY: 'timelion:quandl.key', +}; diff --git a/src/plugins/vis_type_timelion/common/vis_data.ts b/src/plugins/vis_type_timelion/common/vis_data.ts new file mode 100644 index 0000000000000..e3041f43a8f19 --- /dev/null +++ b/src/plugins/vis_type_timelion/common/vis_data.ts @@ -0,0 +1,33 @@ +/* + * 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 interface VisSeries { + yaxis?: number; + label: string; + lines?: { + show?: boolean; + lineWidth?: number; + fill?: number; + steps?: number; + }; + points?: { + show?: boolean; + symbol?: 'cross' | 'x' | 'circle' | 'square' | 'diamond' | 'plus' | 'triangle'; + fillColor?: string; + fill?: number; + radius?: number; + lineWidth?: number; + }; + bars: { + lineWidth?: number; + fill?: number; + }; + color?: string; + data: Array>; + stack: boolean; +} diff --git a/src/plugins/vis_type_timelion/kibana.json b/src/plugins/vis_type_timelion/kibana.json index bbd52e3e1bec5..bf537f4ffbc76 100644 --- a/src/plugins/vis_type_timelion/kibana.json +++ b/src/plugins/vis_type_timelion/kibana.json @@ -4,7 +4,7 @@ "kibanaVersion": "kibana", "server": true, "ui": true, - "requiredPlugins": ["visualizations", "data", "expressions"], + "requiredPlugins": ["visualizations", "data", "expressions", "charts"], "requiredBundles": ["kibanaUtils", "kibanaReact", "visDefaultEditor"], "owner": { "name": "Kibana App", diff --git a/src/plugins/vis_type_timelion/public/components/series/area.tsx b/src/plugins/vis_type_timelion/public/components/series/area.tsx new file mode 100644 index 0000000000000..589a488d3acad --- /dev/null +++ b/src/plugins/vis_type_timelion/public/components/series/area.tsx @@ -0,0 +1,62 @@ +/* + * 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. + */ + +import React from 'react'; +import { AreaSeries, ScaleType, CurveType, AreaSeriesStyle, PointShape } from '@elastic/charts'; +import type { VisSeries } from '../../../common/vis_data'; + +interface AreaSeriesComponentProps { + index: number; + visData: VisSeries; + groupId: string; +} + +const isShowLines = (lines: VisSeries['lines'], points: VisSeries['points']) => + lines?.show ? true : points?.show ? false : true; + +const getAreaSeriesStyle = ({ color, lines, points }: AreaSeriesComponentProps['visData']) => + ({ + line: { + opacity: isShowLines(lines, points) ? 1 : 0, + stroke: color, + strokeWidth: lines?.lineWidth !== undefined ? Number(lines.lineWidth) : 3, + visible: isShowLines(lines, points), + }, + area: { + fill: color, + opacity: lines?.fill ?? 0, + visible: lines?.show ?? points?.show ?? true, + }, + point: { + fill: points?.fillColor ?? color, + opacity: points?.lineWidth !== undefined ? (points.fill || 1) * 10 : 10, + radius: points?.radius ?? 3, + stroke: color, + strokeWidth: points?.lineWidth ?? 2, + visible: points?.show ?? false, + shape: points?.symbol === 'cross' ? PointShape.X : points?.symbol, + }, + curve: lines?.steps ? CurveType.CURVE_STEP : CurveType.LINEAR, + } as AreaSeriesStyle); + +export const AreaSeriesComponent = ({ index, groupId, visData }: AreaSeriesComponentProps) => ( + +); diff --git a/src/plugins/vis_type_timelion/public/components/series/bar.tsx b/src/plugins/vis_type_timelion/public/components/series/bar.tsx new file mode 100644 index 0000000000000..6a97c8fea9690 --- /dev/null +++ b/src/plugins/vis_type_timelion/public/components/series/bar.tsx @@ -0,0 +1,58 @@ +/* + * 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. + */ + +import React from 'react'; +import { BarSeries, ScaleType, BarSeriesStyle } from '@elastic/charts'; +import type { VisSeries } from '../../../common/vis_data'; + +interface BarSeriesComponentProps { + index: number; + visData: VisSeries; + groupId: string; +} + +const getBarSeriesStyle = ({ color, bars }: BarSeriesComponentProps['visData']) => { + let opacity = bars.fill ?? 1; + + if (opacity < 0) { + opacity = 0; + } else if (opacity > 1) { + opacity = 1; + } + + return { + rectBorder: { + stroke: color, + strokeWidth: Math.max(1, bars.lineWidth ? Math.ceil(bars.lineWidth / 2) : 1), + visible: true, + }, + rect: { + fill: color, + opacity, + widthPixel: 1, + }, + } as BarSeriesStyle; +}; + +export const BarSeriesComponent = ({ index, groupId, visData }: BarSeriesComponentProps) => ( + +); diff --git a/src/plugins/vis_type_timelion/public/components/series/index.ts b/src/plugins/vis_type_timelion/public/components/series/index.ts new file mode 100644 index 0000000000000..3efe537d0b467 --- /dev/null +++ b/src/plugins/vis_type_timelion/public/components/series/index.ts @@ -0,0 +1,10 @@ +/* + * 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 { BarSeriesComponent } from './bar'; +export { AreaSeriesComponent } from './area'; diff --git a/src/plugins/vis_type_timelion/public/components/timelion_vis.scss b/src/plugins/vis_type_timelion/public/components/timelion_vis.scss index c4d591bc82cad..663563432d56b 100644 --- a/src/plugins/vis_type_timelion/public/components/timelion_vis.scss +++ b/src/plugins/vis_type_timelion/public/components/timelion_vis.scss @@ -1,60 +1,10 @@ -.timChart { +.timelionChart { height: 100%; width: 100%; display: flex; flex-direction: column; - - // Custom Jquery FLOT / schema selectors - // Cannot change at the moment - - .chart-top-title { - @include euiFontSizeXS; - flex: 0; - text-align: center; - font-weight: $euiFontWeightBold; - } - - .chart-canvas { - min-width: 100%; - flex: 1; - overflow: hidden; - } - - .legendLabel { - white-space: nowrap; - text-overflow: ellipsis; - overflow-x: hidden; - line-height: normal; - } - - .legendColorBox { - vertical-align: middle; - } - - .ngLegendValue { - color: $euiTextColor; - cursor: pointer; - - &:focus, - &:hover { - text-decoration: underline; - } - } - - .ngLegendValueNumber { - margin-left: $euiSizeXS; - margin-right: $euiSizeXS; - font-weight: $euiFontWeightBold; - } - - .flot-tick-label { - font-size: $euiFontSizeXS; - color: $euiColorDarkShade; - } } -.timChart__legendCaption { - color: $euiTextColor; - white-space: nowrap; - font-weight: $euiFontWeightBold; +.timelionChart__topTitle { + text-align: center; } diff --git a/src/plugins/vis_type_timelion/public/components/timelion_vis_component.tsx b/src/plugins/vis_type_timelion/public/components/timelion_vis_component.tsx index 09e3b78c922cd..4690f4fe11e45 100644 --- a/src/plugins/vis_type_timelion/public/components/timelion_vis_component.tsx +++ b/src/plugins/vis_type_timelion/public/components/timelion_vis_component.tsx @@ -6,422 +6,228 @@ * Side Public License, v 1. */ -import React, { useState, useEffect, useMemo, useCallback } from 'react'; -import $ from 'jquery'; -import moment from 'moment-timezone'; -import { debounce, compact, get, each, cloneDeep, last, map } from 'lodash'; -import { useResizeObserver } from '@elastic/eui'; +import React, { useEffect, useCallback, useMemo, useRef } from 'react'; +import { compact, last, map } from 'lodash'; +import { + Chart, + Settings, + Position, + Axis, + TooltipType, + PointerEvent, + LegendPositionConfig, + LayoutDirection, +} from '@elastic/charts'; +import { EuiTitle } from '@elastic/eui'; -import { IInterpreterRenderHandlers } from 'src/plugins/expressions'; import { useKibana } from '../../../kibana_react/public'; -import { DEFAULT_TIME_FORMAT } from '../../common/lib'; + +import { AreaSeriesComponent, BarSeriesComponent } from './series'; import { - buildSeriesData, - buildOptions, - SERIES_ID_ATTR, - colors, - Axis, - ACTIVE_CURSOR, - eventBus, + extractAllYAxis, + withStaticPadding, + createTickFormat, + validateLegendPositionValue, + MAIN_GROUP_ID, } from '../helpers/panel_utils'; -import { Series, Sheet } from '../helpers/timelion_request_handler'; -import { tickFormatters } from '../helpers/tick_formatters'; -import { generateTicksProvider } from '../helpers/tick_generator'; -import { TimelionVisDependencies } from '../plugin'; +import { colors } from '../helpers/chart_constants'; +import { activeCursor$ } from '../helpers/active_cursor'; -import './timelion_vis.scss'; +import type { Sheet } from '../helpers/timelion_request_handler'; +import type { IInterpreterRenderHandlers } from '../../../expressions'; +import type { TimelionVisDependencies } from '../plugin'; +import type { RangeFilterParams } from '../../../data/public'; +import type { Series } from '../helpers/timelion_request_handler'; -interface CrosshairPlot extends jquery.flot.plot { - setCrosshair: (pos: Position) => void; - clearCrosshair: () => void; -} +import './timelion_vis.scss'; interface TimelionVisComponentProps { - fireEvent: IInterpreterRenderHandlers['event']; interval: string; seriesList: Sheet; + onBrushEvent: (rangeFilterParams: RangeFilterParams) => void; renderComplete: IInterpreterRenderHandlers['done']; } -interface Position { - x: number; - x1: number; - y: number; - y1: number; - pageX: number; - pageY: number; -} - -interface Range { - to: number; - from: number; -} - -interface Ranges { - xaxis: Range; - yaxis: Range; -} - -const DEBOUNCE_DELAY = 50; -// ensure legend is the same height with or without a caption so legend items do not move around -const emptyCaption = '
'; - -function TimelionVisComponent({ +const DefaultYAxis = () => ( + +); + +const renderYAxis = (series: Series[]) => { + const yAxisOptions = extractAllYAxis(series); + + const yAxis = yAxisOptions.map((option, index) => ( + + )); + + return yAxis.length ? yAxis : ; +}; + +const TimelionVisComponent = ({ interval, seriesList, renderComplete, - fireEvent, -}: TimelionVisComponentProps) { + onBrushEvent, +}: TimelionVisComponentProps) => { const kibana = useKibana(); - const [chart, setChart] = useState(() => cloneDeep(seriesList.list)); - const [canvasElem, setCanvasElem] = useState(); - const [chartElem, setChartElem] = useState(null); - - const [originalColorMap, setOriginalColorMap] = useState(() => new Map()); + const chartRef = useRef(null); + const chart = seriesList.list; - const [highlightedSeries, setHighlightedSeries] = useState(null); - const [focusedSeries, setFocusedSeries] = useState(); - const [plot, setPlot] = useState(); - - // Used to toggle the series, and for displaying values on hover - const [legendValueNumbers, setLegendValueNumbers] = useState>(); - const [legendCaption, setLegendCaption] = useState>(); + useEffect(() => { + const subscription = activeCursor$.subscribe((cursor: PointerEvent) => { + chartRef.current?.dispatchExternalPointerEvent(cursor); + }); - const canvasRef = useCallback((node: HTMLDivElement | null) => { - if (node !== null) { - setCanvasElem(node); - } + return () => { + subscription.unsubscribe(); + }; }, []); - const elementRef = useCallback((node: HTMLDivElement | null) => { - if (node !== null) { - setChartElem(node); - } + const handleCursorUpdate = useCallback((cursor: PointerEvent) => { + activeCursor$.next(cursor); }, []); - useEffect( - () => () => { - if (chartElem) { - $(chartElem).off('plotselected').off('plothover').off('mouseleave'); - } - }, - [chartElem] - ); - - /* eslint-disable-next-line react-hooks/exhaustive-deps */ - const highlightSeries = useCallback( - debounce(({ currentTarget }: JQuery.TriggeredEvent) => { - const id = Number(currentTarget.getAttribute(SERIES_ID_ATTR)); - if (highlightedSeries === id) { + const brushEndListener = useCallback( + ({ x }) => { + if (!x) { return; } - setHighlightedSeries(id); - setChart((chartState) => - chartState.map((series: Series, seriesIndex: number) => { - series.color = - seriesIndex === id - ? originalColorMap.get(series) // color it like it was - : 'rgba(128,128,128,0.1)'; // mark as grey - - return series; - }) - ); - }, DEBOUNCE_DELAY), - [originalColorMap, highlightedSeries] - ); - - const focusSeries = useCallback( - (event: JQuery.TriggeredEvent) => { - const id = Number(event.currentTarget.getAttribute(SERIES_ID_ATTR)); - setFocusedSeries(id); - highlightSeries(event); + onBrushEvent({ + gte: x[0], + lte: x[1], + }); }, - [highlightSeries] + [onBrushEvent] ); - const toggleSeries = useCallback(({ currentTarget }: JQuery.TriggeredEvent) => { - const id = Number(currentTarget.getAttribute(SERIES_ID_ATTR)); - - setChart((chartState) => - chartState.map((series: Series, seriesIndex: number) => { - if (seriesIndex === id) { - series._hide = !series._hide; - } - return series; - }) - ); - }, []); - - const updateCaption = useCallback( - (plotData: any) => { - if (canvasElem && get(plotData, '[0]._global.legend.showTime', true)) { - const caption = $(''); - caption.html(emptyCaption); - setLegendCaption(caption); - - const canvasNode = $(canvasElem); - canvasNode.find('div.legend table').append(caption); - setLegendValueNumbers(canvasNode.find('.ngLegendValueNumber')); - - const legend = $(canvasElem).find('.ngLegendValue'); - if (legend) { - legend.click(toggleSeries); - legend.focus(focusSeries); - legend.mouseover(highlightSeries); - } - - // legend has been re-created. Apply focus on legend element when previously set - if (focusedSeries || focusedSeries === 0) { - canvasNode.find('div.legend table .legendLabel>span').get(focusedSeries).focus(); - } + const onRenderChange = useCallback( + (isRendered: boolean) => { + if (isRendered) { + renderComplete(); } }, - [focusedSeries, canvasElem, toggleSeries, focusSeries, highlightSeries] + [renderComplete] ); - const updatePlot = useCallback( - (chartValue: Series[], grid?: boolean) => { - if (canvasElem && canvasElem.clientWidth > 0 && canvasElem.clientHeight > 0) { - const options = buildOptions( - interval, - kibana.services.timefilter, - kibana.services.uiSettings, - chartElem?.clientWidth, - grid - ); - const updatedSeries = buildSeriesData(chartValue, options); - - if (options.yaxes) { - options.yaxes.forEach((yaxis: Axis) => { - if (yaxis && yaxis.units) { - const formatters = tickFormatters(); - yaxis.tickFormatter = formatters[yaxis.units.type as keyof typeof formatters]; - const byteModes = ['bytes', 'bytes/s']; - if (byteModes.includes(yaxis.units.type)) { - yaxis.tickGenerator = generateTicksProvider(); - } - } - }); - } - - const newPlot = $.plot($(canvasElem), updatedSeries, options); - setPlot(newPlot); - renderComplete(); + const title: string = useMemo(() => last(compact(map(seriesList.list, '_title'))) || '', [ + seriesList.list, + ]); - updateCaption(newPlot.getData()); - } - }, - [canvasElem, chartElem?.clientWidth, renderComplete, kibana.services, interval, updateCaption] + const tickFormat = useMemo( + () => createTickFormat(interval, kibana.services.timefilter, kibana.services.uiSettings), + [interval, kibana.services.timefilter, kibana.services.uiSettings] ); - const dimensions = useResizeObserver(chartElem); + const legend = useMemo(() => { + const legendPosition: LegendPositionConfig = { + floating: true, + floatingColumns: 1, + vAlign: Position.Top, + hAlign: Position.Left, + direction: LayoutDirection.Vertical, + }; + let showLegend = true; - useEffect(() => { - updatePlot(chart, seriesList.render && seriesList.render.grid); - }, [chart, updatePlot, seriesList.render, dimensions]); + chart.forEach((series) => { + if (series._global?.legend) { + const { show = true, position, noColumns = legendPosition.floatingColumns } = + series._global?.legend ?? {}; - useEffect(() => { - const colorsSet: Array<[Series, string]> = []; - const newChart = seriesList.list.map((series: Series, seriesIndex: number) => { - const newSeries = { ...series }; - if (!newSeries.color) { - const colorIndex = seriesIndex % colors.length; - newSeries.color = colors[colorIndex]; - } - colorsSet.push([newSeries, newSeries.color]); - return newSeries; - }); - setChart(newChart); - setOriginalColorMap(new Map(colorsSet)); - }, [seriesList.list]); - - const unhighlightSeries = useCallback(() => { - if (highlightedSeries === null) { - return; - } - - setHighlightedSeries(null); - setFocusedSeries(null); - - setChart((chartState) => - chartState.map((series: Series) => { - series.color = originalColorMap.get(series); // reset the colors - return series; - }) - ); - }, [originalColorMap, highlightedSeries]); - - // Shamelessly borrowed from the flotCrosshairs example - const setLegendNumbers = useCallback( - (pos: Position) => { - unhighlightSeries(); - - const axes = plot!.getAxes(); - if (pos.x < axes.xaxis.min! || pos.x > axes.xaxis.max!) { - return; - } + if (validateLegendPositionValue(position)) { + const [vAlign, hAlign] = position.split(''); - const dataset = plot!.getData(); - if (legendCaption) { - legendCaption.text( - moment(pos.x).format(get(dataset, '[0]._global.legend.timeFormat', DEFAULT_TIME_FORMAT)) - ); - } - for (let i = 0; i < dataset.length; ++i) { - const series = dataset[i]; - const useNearestPoint = series.lines!.show && !series.lines!.steps; - const precision = get(series, '_meta.precision', 2); - - // We're setting this flag on top on the series object belonging to the flot library, so we're simply casting here. - if ((series as { _hide?: boolean })._hide) { - continue; + legendPosition.vAlign = vAlign === 'n' ? Position.Top : Position.Bottom; + legendPosition.hAlign = hAlign === 'e' ? Position.Right : Position.Left; } - const currentPoint = series.data.find((point: [number, number], index: number) => { - if (index + 1 === series.data.length) { - return true; - } - if (useNearestPoint) { - return pos.x - point[0] < series.data[index + 1][0] - pos.x; - } else { - return pos.x < series.data[index + 1][0]; - } - }); - - const y = currentPoint[1]; - - if (legendValueNumbers) { - if (y == null) { - legendValueNumbers.eq(i).empty(); - } else { - let label = y.toFixed(precision); - const formatter = ((series.yaxis as unknown) as Axis).tickFormatter; - if (formatter) { - label = formatter(Number(label), (series.yaxis as unknown) as Axis); - } - legendValueNumbers.eq(i).text(`(${label})`); - } + if (!show) { + showLegend = false; } - } - }, - [plot, legendValueNumbers, unhighlightSeries, legendCaption] - ); - - /* eslint-disable-next-line react-hooks/exhaustive-deps */ - const debouncedSetLegendNumbers = useCallback( - debounce(setLegendNumbers, DEBOUNCE_DELAY, { - maxWait: DEBOUNCE_DELAY, - leading: true, - trailing: false, - }), - [setLegendNumbers] - ); - - const clearLegendNumbers = useCallback(() => { - if (legendCaption) { - legendCaption.html(emptyCaption); - } - each(legendValueNumbers!, (num: Node) => { - $(num).empty(); - }); - }, [legendCaption, legendValueNumbers]); - - const plotHover = useCallback( - (pos: Position) => { - (plot as CrosshairPlot).setCrosshair(pos); - debouncedSetLegendNumbers(pos); - }, - [plot, debouncedSetLegendNumbers] - ); - - const plotHoverHandler = useCallback( - (event: JQuery.TriggeredEvent, pos: Position) => { - if (!plot) { - return; - } - plotHover(pos); - eventBus.trigger(ACTIVE_CURSOR, [event, pos]); - }, - [plot, plotHover] - ); - useEffect(() => { - const updateCursor = (_: any, event: JQuery.TriggeredEvent, pos: Position) => { - if (!plot) { - return; + if (noColumns !== undefined) { + legendPosition.floatingColumns = noColumns; + } } - plotHover(pos); - }; - - eventBus.on(ACTIVE_CURSOR, updateCursor); - - return () => { - eventBus.off(ACTIVE_CURSOR, updateCursor); - }; - }, [plot, plotHover]); - - const mouseLeaveHandler = useCallback(() => { - if (!plot) { - return; - } - (plot as CrosshairPlot).clearCrosshair(); - clearLegendNumbers(); - }, [plot, clearLegendNumbers]); - - const plotSelectedHandler = useCallback( - (event: JQuery.TriggeredEvent, ranges: Ranges) => { - fireEvent({ - name: 'applyFilter', - data: { - timeFieldName: '*', - filters: [ - { - range: { - '*': { - gte: ranges.xaxis.from, - lte: ranges.xaxis.to, - }, - }, - }, - ], - }, - }); - }, - [fireEvent] - ); - - useEffect(() => { - if (chartElem) { - $(chartElem).off('plotselected').on('plotselected', plotSelectedHandler); - } - }, [chartElem, plotSelectedHandler]); - - useEffect(() => { - if (chartElem) { - $(chartElem).off('mouseleave').on('mouseleave', mouseLeaveHandler); - } - }, [chartElem, mouseLeaveHandler]); + }); - useEffect(() => { - if (chartElem) { - $(chartElem).off('plothover').on('plothover', plotHoverHandler); - } - }, [chartElem, plotHoverHandler]); - - const title: string = useMemo(() => last(compact(map(seriesList.list, '_title'))) || '', [ - seriesList.list, - ]); + return { legendPosition, showLegend }; + }, [chart]); return ( -
-
{title}
-
+
+ {title && ( + +

{title}

+
+ )} + + tickFormat(value), + type: TooltipType.VerticalCursor, + }} + externalPointerEvents={{ tooltip: { visible: false } }} + /> + + + + {renderYAxis(chart)} + + {chart.map((data, index) => { + const visData = { ...data }; + const SeriesComponent = data.bars ? BarSeriesComponent : AreaSeriesComponent; + + if (!visData.color) { + visData.color = colors[index % colors.length]; + } + return ( + + ); + })} +
); -} +}; // default export required for React.Lazy // eslint-disable-next-line import/no-default-export diff --git a/src/plugins/vis_type_timelion/public/helpers/active_cursor.ts b/src/plugins/vis_type_timelion/public/helpers/active_cursor.ts new file mode 100644 index 0000000000000..7f7f62fd6a9da --- /dev/null +++ b/src/plugins/vis_type_timelion/public/helpers/active_cursor.ts @@ -0,0 +1,12 @@ +/* + * 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. + */ + +import { Subject } from 'rxjs'; +import { PointerEvent } from '@elastic/charts'; + +export const activeCursor$ = new Subject(); diff --git a/src/plugins/vis_type_timelion/public/helpers/chart_constants.ts b/src/plugins/vis_type_timelion/public/helpers/chart_constants.ts new file mode 100644 index 0000000000000..b530ec98bd8a1 --- /dev/null +++ b/src/plugins/vis_type_timelion/public/helpers/chart_constants.ts @@ -0,0 +1,20 @@ +/* + * 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 const colors = [ + '#01A4A4', + '#C66', + '#D0D102', + '#616161', + '#00A1CB', + '#32742C', + '#F18D05', + '#113F8C', + '#61AE24', + '#D70060', +]; diff --git a/src/plugins/vis_type_timelion/public/helpers/panel_utils.ts b/src/plugins/vis_type_timelion/public/helpers/panel_utils.ts index 8ef527a181e8c..1ee834b7d30ed 100644 --- a/src/plugins/vis_type_timelion/public/helpers/panel_utils.ts +++ b/src/plugins/vis_type_timelion/public/helpers/panel_utils.ts @@ -6,18 +6,18 @@ * Side Public License, v 1. */ -import { cloneDeep, defaults, mergeWith, compact } from 'lodash'; -import $ from 'jquery'; -import moment, { Moment } from 'moment-timezone'; - -import { TimefilterContract } from 'src/plugins/data/public'; -import { IUiSettingsClient } from 'kibana/public'; +import moment from 'moment-timezone'; +import { Position, AxisSpec } from '@elastic/charts'; +import type { TimefilterContract } from 'src/plugins/data/public'; +import type { IUiSettingsClient } from 'kibana/public'; import { calculateInterval } from '../../common/lib'; import { xaxisFormatterProvider } from './xaxis_formatter'; -import { Series } from './timelion_request_handler'; +import { tickFormatters } from './tick_formatters'; + +import type { Series } from './timelion_request_handler'; -export interface Axis { +export interface IAxis { delta?: number; max?: number; min?: number; @@ -30,87 +30,26 @@ export interface Axis { tickLength: number; timezone: string; tickDecimals?: number; - tickFormatter: ((val: number) => string) | ((val: number, axis: Axis) => string); - tickGenerator?(axis: Axis): number[]; - units?: { type: string }; -} - -interface TimeRangeBounds { - min: Moment | undefined; - max: Moment | undefined; + tickFormatter: (val: number) => string; + tickGenerator?(axis: IAxis): number[]; + units?: { type: string; prefix: string; suffix: string }; + domain?: { + min?: number; + max?: number; + }; + position?: Position; + axisLabel?: string; } -export const ACTIVE_CURSOR = 'ACTIVE_CURSOR_TIMELION'; -export const eventBus = $({}); - -const colors = [ - '#01A4A4', - '#C66', - '#D0D102', - '#616161', - '#00A1CB', - '#32742C', - '#F18D05', - '#113F8C', - '#61AE24', - '#D70060', -]; - -const SERIES_ID_ATTR = 'data-series-id'; - -function buildSeriesData(chart: Series[], options: jquery.flot.plotOptions) { - const seriesData = chart.map((series: Series, seriesIndex: number) => { - const newSeries: Series = cloneDeep( - defaults(series, { - shadowSize: 0, - lines: { - lineWidth: 3, - }, - }) - ); - - newSeries._id = seriesIndex; - - if (series.color) { - const span = document.createElement('span'); - span.style.color = series.color; - newSeries.color = span.style.color; - } - - if (series._hide) { - newSeries.data = []; - newSeries.stack = false; - newSeries.label = `(hidden) ${series.label}`; - } - - if (series._global) { - mergeWith(options, series._global, (objVal, srcVal) => { - // This is kind of gross, it means that you can't replace a global value with a null - // best you can do is an empty string. Deal with it. - if (objVal == null) { - return srcVal; - } - if (srcVal == null) { - return objVal; - } - }); - } - - return newSeries; - }); +export const validateLegendPositionValue = (position: string) => /^(n|s)(e|w)$/s.test(position); - return compact(seriesData); -} - -function buildOptions( +export const createTickFormat = ( intervalValue: string, timefilter: TimefilterContract, - uiSettings: IUiSettingsClient, - clientWidth = 0, - showGrid?: boolean -) { + uiSettings: IUiSettingsClient +) => { // Get the X-axis tick format - const time: TimeRangeBounds = timefilter.getBounds(); + const time = timefilter.getBounds(); const interval = calculateInterval( (time.min && time.min.valueOf()) || 0, (time.max && time.max.valueOf()) || 0, @@ -120,61 +59,75 @@ function buildOptions( ); const format = xaxisFormatterProvider(uiSettings)(interval); - const tickLetterWidth = 7; - const tickPadding = 45; - - const options = { - xaxis: { - mode: 'time', - tickLength: 5, - timezone: 'browser', - // Calculate how many ticks can fit on the axis - ticks: Math.floor(clientWidth / (format.length * tickLetterWidth + tickPadding)), - // Use moment to format ticks so we get timezone correction - tickFormatter: (val: number) => moment(val).format(format), - }, - selection: { - mode: 'x', - color: '#ccc', - }, - crosshair: { - mode: 'x', - color: '#C66', - lineWidth: 2, - }, - colors, - grid: { - show: showGrid, - borderWidth: 0, - borderColor: null, - margin: 10, - hoverable: true, - autoHighlight: false, - }, - legend: { - backgroundColor: 'rgb(255,255,255,0)', - position: 'nw', - labelBoxBorderColor: 'rgb(255,255,255,0)', - labelFormatter(label: string, series: { _id: number }) { - const wrapperSpan = document.createElement('span'); - const labelSpan = document.createElement('span'); - const numberSpan = document.createElement('span'); - - wrapperSpan.setAttribute('class', 'ngLegendValue'); - wrapperSpan.setAttribute(SERIES_ID_ATTR, `${series._id}`); - - labelSpan.appendChild(document.createTextNode(label)); - numberSpan.setAttribute('class', 'ngLegendValueNumber'); - - wrapperSpan.appendChild(labelSpan); - wrapperSpan.appendChild(numberSpan); - - return wrapperSpan.outerHTML; - }, - }, - } as jquery.flot.plotOptions & { yaxes?: Axis[] }; - - return options; -} + return (val: number) => moment(val).format(format); +}; + +/** While we support 2 versions of the timeline, we need this adapter. **/ +export const MAIN_GROUP_ID = 1; + +export const withStaticPadding = (domain: AxisSpec['domain']): AxisSpec['domain'] => + (({ + ...domain, + padding: 50, + paddingUnit: 'pixel', + } as unknown) as AxisSpec['domain']); + +const adaptYaxisParams = (yaxis: IAxis) => { + const y = { ...yaxis }; + + if (y.units) { + const formatters = tickFormatters(y); + y.tickFormatter = formatters[y.units.type as keyof typeof formatters]; + } else if (yaxis.tickDecimals) { + y.tickFormatter = (val: number) => val.toFixed(yaxis.tickDecimals); + } + + return { + title: y.axisLabel, + position: y.position, + tickFormat: y.tickFormatter, + domain: withStaticPadding({ + fit: y.min === undefined && y.max === undefined, + min: y.min, + max: y.max, + }), + }; +}; + +const extractYAxisForSeries = (series: Series) => { + const yaxis = (series._global?.yaxes ?? []).reduce( + (acc: IAxis, item: IAxis) => ({ + ...acc, + ...item, + }), + {} + ); + + if (Object.keys(yaxis).length) { + return adaptYaxisParams(yaxis); + } +}; + +export const extractAllYAxis = (series: Series[]) => { + return series.reduce((acc, data, index) => { + const yaxis = extractYAxisForSeries(data); + const groupId = `${data.yaxis ? data.yaxis : MAIN_GROUP_ID}`; + + if (acc.every((axis) => axis.groupId !== groupId)) { + acc.push({ + groupId, + domain: withStaticPadding({ + fit: false, + }), + id: (yaxis?.position || Position.Left) + index, + position: Position.Left, + ...yaxis, + }); + } else if (yaxis) { + const axisOptionIndex = acc.findIndex((axis) => axis.groupId === groupId); + acc[axisOptionIndex] = { ...acc[axisOptionIndex], ...yaxis }; + } -export { buildSeriesData, buildOptions, SERIES_ID_ATTR, colors }; + return acc; + }, [] as Array>); +}; diff --git a/src/plugins/vis_type_timelion/public/helpers/tick_formatters.test.ts b/src/plugins/vis_type_timelion/public/helpers/tick_formatters.test.ts index 03b7c21706957..9980644c0f941 100644 --- a/src/plugins/vis_type_timelion/public/helpers/tick_formatters.test.ts +++ b/src/plugins/vis_type_timelion/public/helpers/tick_formatters.test.ts @@ -7,25 +7,26 @@ */ import { tickFormatters } from './tick_formatters'; +import type { IAxis } from './panel_utils'; -describe('Tick Formatters', function () { +describe('Tick Formatters', () => { let formatters: any; beforeEach(function () { - formatters = tickFormatters(); + formatters = tickFormatters({} as IAxis); }); - describe('Bits mode', function () { + describe('Bits mode', () => { let bitFormatter: any; beforeEach(function () { bitFormatter = formatters.bits; }); - it('is a function', function () { + it('is a function', () => { expect(bitFormatter).toEqual(expect.any(Function)); }); - it('formats with b/kb/mb/gb', function () { + it('formats with b/kb/mb/gb', () => { expect(bitFormatter(7)).toEqual('7b'); expect(bitFormatter(4 * 1000)).toEqual('4kb'); expect(bitFormatter(4.1 * 1000 * 1000)).toEqual('4.1mb'); @@ -40,24 +41,24 @@ describe('Tick Formatters', function () { }); }); - describe('Bits/s mode', function () { + describe('Bits/s mode', () => { let bitsFormatter: any; beforeEach(function () { bitsFormatter = formatters['bits/s']; }); - it('is a function', function () { + it('is a function', () => { expect(bitsFormatter).toEqual(expect.any(Function)); }); - it('formats with b/kb/mb/gb', function () { + it('formats with b/kb/mb/gb', () => { expect(bitsFormatter(7)).toEqual('7b/s'); expect(bitsFormatter(4 * 1000)).toEqual('4kb/s'); expect(bitsFormatter(4.1 * 1000 * 1000)).toEqual('4.1mb/s'); expect(bitsFormatter(3 * 1000 * 1000 * 1000)).toEqual('3gb/s'); }); - it('formats negative values with b/kb/mb/gb', function () { + it('formats negative values with b/kb/mb/gb', () => { expect(bitsFormatter(-7)).toEqual('-7b/s'); expect(bitsFormatter(-4 * 1000)).toEqual('-4kb/s'); expect(bitsFormatter(-4.1 * 1000 * 1000)).toEqual('-4.1mb/s'); @@ -65,24 +66,24 @@ describe('Tick Formatters', function () { }); }); - describe('Bytes mode', function () { + describe('Bytes mode', () => { let byteFormatter: any; beforeEach(function () { byteFormatter = formatters.bytes; }); - it('is a function', function () { + it('is a function', () => { expect(byteFormatter).toEqual(expect.any(Function)); }); - it('formats with B/KB/MB/GB', function () { + it('formats with B/KB/MB/GB', () => { expect(byteFormatter(10)).toEqual('10B'); expect(byteFormatter(10 * 1024)).toEqual('10KB'); expect(byteFormatter(10.2 * 1024 * 1024)).toEqual('10.2MB'); expect(byteFormatter(3 * 1024 * 1024 * 1024)).toEqual('3GB'); }); - it('formats negative values with B/KB/MB/GB', function () { + it('formats negative values with B/KB/MB/GB', () => { expect(byteFormatter(-10)).toEqual('-10B'); expect(byteFormatter(-10 * 1024)).toEqual('-10KB'); expect(byteFormatter(-10.2 * 1024 * 1024)).toEqual('-10.2MB'); @@ -90,24 +91,24 @@ describe('Tick Formatters', function () { }); }); - describe('Bytes/s mode', function () { + describe('Bytes/s mode', () => { let bytesFormatter: any; beforeEach(function () { bytesFormatter = formatters['bytes/s']; }); - it('is a function', function () { + it('is a function', () => { expect(bytesFormatter).toEqual(expect.any(Function)); }); - it('formats with B/KB/MB/GB', function () { + it('formats with B/KB/MB/GB', () => { expect(bytesFormatter(10)).toEqual('10B/s'); expect(bytesFormatter(10 * 1024)).toEqual('10KB/s'); expect(bytesFormatter(10.2 * 1024 * 1024)).toEqual('10.2MB/s'); expect(bytesFormatter(3 * 1024 * 1024 * 1024)).toEqual('3GB/s'); }); - it('formats negative values with B/KB/MB/GB', function () { + it('formats negative values with B/KB/MB/GB', () => { expect(bytesFormatter(-10)).toEqual('-10B/s'); expect(bytesFormatter(-10 * 1024)).toEqual('-10KB/s'); expect(bytesFormatter(-10.2 * 1024 * 1024)).toEqual('-10.2MB/s'); @@ -115,108 +116,105 @@ describe('Tick Formatters', function () { }); }); - describe('Currency mode', function () { + describe('Currency mode', () => { let currencyFormatter: any; beforeEach(function () { currencyFormatter = formatters.currency; }); - it('is a function', function () { + it('is a function', () => { expect(currencyFormatter).toEqual(expect.any(Function)); }); - it('formats with $ by default', function () { + it('formats with $ by default', () => { const axis = { - options: { - units: {}, - }, + units: {}, }; - expect(currencyFormatter(10.2, axis)).toEqual('$10.20'); + formatters = tickFormatters(axis as IAxis); + currencyFormatter = formatters.currency; + expect(currencyFormatter(10.2)).toEqual('$10.20'); }); - it('accepts currency in ISO 4217', function () { + it('accepts currency in ISO 4217', () => { const axis = { - options: { - units: { - prefix: 'CNY', - }, + units: { + prefix: 'CNY', }, }; - - expect(currencyFormatter(10.2, axis)).toEqual('CN¥10.20'); + formatters = tickFormatters(axis as IAxis); + currencyFormatter = formatters.currency; + expect(currencyFormatter(10.2)).toEqual('CN¥10.20'); }); }); - describe('Percent mode', function () { + describe('Percent mode', () => { let percentFormatter: any; beforeEach(function () { percentFormatter = formatters.percent; }); - it('is a function', function () { + it('is a function', () => { expect(percentFormatter).toEqual(expect.any(Function)); }); - it('formats with %', function () { + it('formats with %', () => { const axis = { - options: { - units: {}, - }, + units: {}, }; - expect(percentFormatter(0.1234, axis)).toEqual('12%'); + formatters = tickFormatters(axis as IAxis); + percentFormatter = formatters.percent; + expect(percentFormatter(0.1234)).toEqual('12%'); }); - it('formats with % with decimal precision', function () { + it('formats with % with decimal precision', () => { const tickDecimals = 3; const tickDecimalShift = 2; const axis = { tickDecimals: tickDecimals + tickDecimalShift, - options: { - units: { - tickDecimalsShift: tickDecimalShift, - }, + units: { + tickDecimalsShift: tickDecimalShift, }, - }; - expect(percentFormatter(0.12345, axis)).toEqual('12.345%'); + } as unknown; + formatters = tickFormatters(axis as IAxis); + percentFormatter = formatters.percent; + expect(percentFormatter(0.12345)).toEqual('12.345%'); }); }); - describe('Custom mode', function () { + describe('Custom mode', () => { let customFormatter: any; beforeEach(function () { customFormatter = formatters.custom; }); - it('is a function', function () { + it('is a function', () => { expect(customFormatter).toEqual(expect.any(Function)); }); - it('accepts prefix and suffix', function () { + it('accepts prefix and suffix', () => { const axis = { - options: { - units: { - prefix: 'prefix', - suffix: 'suffix', - }, + units: { + prefix: 'prefix', + suffix: 'suffix', }, tickDecimals: 1, }; - - expect(customFormatter(10.2, axis)).toEqual('prefix10.2suffix'); + formatters = tickFormatters(axis as IAxis); + customFormatter = formatters.custom; + expect(customFormatter(10.2)).toEqual('prefix10.2suffix'); }); - it('correctly renders small values', function () { + it('correctly renders small values', () => { const axis = { - options: { - units: { - prefix: 'prefix', - suffix: 'suffix', - }, + units: { + prefix: 'prefix', + suffix: 'suffix', }, tickDecimals: 3, }; - - expect(customFormatter(0.00499999999999999, axis)).toEqual('prefix0.005suffix'); + formatters = tickFormatters(axis as IAxis); + customFormatter = formatters.custom; + expect(customFormatter(0.00499999999999999)).toEqual('prefix0.005suffix'); }); }); }); diff --git a/src/plugins/vis_type_timelion/public/helpers/tick_formatters.ts b/src/plugins/vis_type_timelion/public/helpers/tick_formatters.ts index 56fa17e74f275..eb37e76e1f95d 100644 --- a/src/plugins/vis_type_timelion/public/helpers/tick_formatters.ts +++ b/src/plugins/vis_type_timelion/public/helpers/tick_formatters.ts @@ -8,9 +8,9 @@ import { get } from 'lodash'; -import { Axis } from './panel_utils'; +import { IAxis } from './panel_utils'; -function baseTickFormatter(value: number, axis: Axis) { +function baseTickFormatter(value: number, axis: IAxis) { const factor = axis.tickDecimals ? Math.pow(10, axis.tickDecimals) : 1; const formatted = '' + Math.round(value * factor) / factor; @@ -45,21 +45,20 @@ function unitFormatter(divisor: number, units: string[]) { }; } -export function tickFormatters() { +export function tickFormatters(axis: IAxis) { return { bits: unitFormatter(1000, ['b', 'kb', 'mb', 'gb', 'tb', 'pb']), 'bits/s': unitFormatter(1000, ['b/s', 'kb/s', 'mb/s', 'gb/s', 'tb/s', 'pb/s']), bytes: unitFormatter(1024, ['B', 'KB', 'MB', 'GB', 'TB', 'PB']), 'bytes/s': unitFormatter(1024, ['B/s', 'KB/s', 'MB/s', 'GB/s', 'TB/s', 'PB/s']), - currency(val: number, axis: Axis) { + currency(val: number) { return val.toLocaleString('en', { style: 'currency', - currency: (axis && axis.options && axis.options.units.prefix) || 'USD', + currency: (axis && axis.units && axis.units.prefix) || 'USD', }); }, - percent(val: number, axis: Axis) { - let precision = - get(axis, 'tickDecimals', 0) - get(axis, 'options.units.tickDecimalsShift', 0); + percent(val: number) { + let precision = get(axis, 'tickDecimals', 0) - get(axis, 'units.tickDecimalsShift', 0); // toFixed only accepts values between 0 and 20 if (precision < 0) { precision = 0; @@ -69,10 +68,10 @@ export function tickFormatters() { return (val * 100).toFixed(precision) + '%'; }, - custom(val: number, axis: Axis) { + custom(val: number) { const formattedVal = baseTickFormatter(val, axis); - const prefix = axis && axis.options && axis.options.units.prefix; - const suffix = axis && axis.options && axis.options.units.suffix; + const prefix = axis && axis.units && axis.units.prefix; + const suffix = axis && axis.units && axis.units.suffix; return prefix + formattedVal + suffix; }, }; diff --git a/src/plugins/vis_type_timelion/public/helpers/tick_generator.ts b/src/plugins/vis_type_timelion/public/helpers/tick_generator.ts index af559d5aaac2b..6ffdda0bafdb6 100644 --- a/src/plugins/vis_type_timelion/public/helpers/tick_generator.ts +++ b/src/plugins/vis_type_timelion/public/helpers/tick_generator.ts @@ -6,14 +6,14 @@ * Side Public License, v 1. */ -import { Axis } from './panel_utils'; +import { IAxis } from './panel_utils'; export function generateTicksProvider() { function floorInBase(n: number, base: number) { return base * Math.floor(n / base); } - function generateTicks(axis: Axis) { + function generateTicks(axis: IAxis) { const returnTicks = []; let tickSize = 2; let delta = axis.delta || 0; @@ -46,5 +46,5 @@ export function generateTicksProvider() { return returnTicks; } - return (axis: Axis) => generateTicks(axis); + return (axis: IAxis) => generateTicks(axis); } diff --git a/src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts b/src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts index 7e8f28bd32b2f..fe5e9183976fa 100644 --- a/src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts +++ b/src/plugins/vis_type_timelion/public/helpers/timelion_request_handler.ts @@ -12,6 +12,7 @@ import { TimelionVisDependencies } from '../plugin'; import { getTimezone } from './get_timezone'; import { TimelionVisParams } from '../timelion_vis_fn'; import { getDataSearch } from '../helpers/plugin_services'; +import { VisSeries } from '../../common/vis_data'; interface Stats { cacheCount: number; @@ -21,17 +22,13 @@ interface Stats { sheetTime: number; } -export interface Series { - _global?: boolean; +export interface Series extends VisSeries { + _global?: Record; _hide?: boolean; _id?: number; _title?: string; - color?: string; - data: Array>; fit: string; - label: string; split: string; - stack?: boolean; type: string; } diff --git a/src/plugins/vis_type_timelion/public/index.ts b/src/plugins/vis_type_timelion/public/index.ts index fa257907a176d..1ab572b497212 100644 --- a/src/plugins/vis_type_timelion/public/index.ts +++ b/src/plugins/vis_type_timelion/public/index.ts @@ -9,16 +9,26 @@ import { PluginInitializerContext } from 'kibana/public'; import { TimelionVisPlugin as Plugin } from './plugin'; +import { tickFormatters } from './legacy/tick_formatters'; +import { getTimezone } from './helpers/get_timezone'; +import { xaxisFormatterProvider } from './helpers/xaxis_formatter'; +import { generateTicksProvider } from './helpers/tick_generator'; +import { DEFAULT_TIME_FORMAT, calculateInterval } from '../common/lib'; +import { parseTimelionExpressionAsync } from '../common/parser_async'; + export function plugin(initializerContext: PluginInitializerContext) { return new Plugin(initializerContext); } -export { getTimezone } from './helpers/get_timezone'; -export { tickFormatters } from './helpers/tick_formatters'; -export { xaxisFormatterProvider } from './helpers/xaxis_formatter'; -export { generateTicksProvider } from './helpers/tick_generator'; - -export { DEFAULT_TIME_FORMAT, calculateInterval } from '../common/lib'; -export { parseTimelionExpressionAsync } from '../common/parser_async'; +// This export should be removed on removing Timeline APP +export const _LEGACY_ = { + DEFAULT_TIME_FORMAT, + calculateInterval, + parseTimelionExpressionAsync, + tickFormatters, + getTimezone, + xaxisFormatterProvider, + generateTicksProvider, +}; export { VisTypeTimelionPluginStart, VisTypeTimelionPluginSetup } from './plugin'; diff --git a/src/plugins/vis_type_timelion/public/legacy/panel_utils.ts b/src/plugins/vis_type_timelion/public/legacy/panel_utils.ts new file mode 100644 index 0000000000000..5dd8431a5a2ab --- /dev/null +++ b/src/plugins/vis_type_timelion/public/legacy/panel_utils.ts @@ -0,0 +1,168 @@ +/* + * 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. + */ + +import { cloneDeep, defaults, mergeWith, compact } from 'lodash'; +import $ from 'jquery'; +import moment, { Moment } from 'moment-timezone'; + +import { TimefilterContract } from 'src/plugins/data/public'; +import { IUiSettingsClient } from 'kibana/public'; + +import { calculateInterval } from '../../common/lib'; +import { xaxisFormatterProvider } from '../helpers/xaxis_formatter'; +import { Series } from '../helpers/timelion_request_handler'; +import { colors } from '../helpers/chart_constants'; + +export interface LegacyAxis { + delta?: number; + max?: number; + min?: number; + mode: string; + options?: { + units: { prefix: string; suffix: string }; + }; + tickSize?: number; + ticks: number; + tickLength: number; + timezone: string; + tickDecimals?: number; + tickFormatter: ((val: number) => string) | ((val: number, axis: LegacyAxis) => string); + tickGenerator?(axis: LegacyAxis): number[]; + units?: { type: string }; +} + +interface TimeRangeBounds { + min: Moment | undefined; + max: Moment | undefined; +} + +export const ACTIVE_CURSOR = 'ACTIVE_CURSOR_TIMELION'; +export const eventBus = $({}); + +const SERIES_ID_ATTR = 'data-series-id'; + +function buildSeriesData(chart: Series[], options: jquery.flot.plotOptions) { + const seriesData = chart.map((series: Series, seriesIndex: number) => { + const newSeries: Series = cloneDeep( + defaults(series, { + shadowSize: 0, + lines: { + lineWidth: 3, + }, + }) + ); + + newSeries._id = seriesIndex; + + if (series.color) { + const span = document.createElement('span'); + span.style.color = series.color; + newSeries.color = span.style.color; + } + + if (series._hide) { + newSeries.data = []; + newSeries.stack = false; + newSeries.label = `(hidden) ${series.label}`; + } + + if (series._global) { + mergeWith(options, series._global, (objVal, srcVal) => { + // This is kind of gross, it means that you can't replace a global value with a null + // best you can do is an empty string. Deal with it. + if (objVal == null) { + return srcVal; + } + if (srcVal == null) { + return objVal; + } + }); + } + + return newSeries; + }); + + return compact(seriesData); +} + +function buildOptions( + intervalValue: string, + timefilter: TimefilterContract, + uiSettings: IUiSettingsClient, + clientWidth = 0, + showGrid?: boolean +) { + // Get the X-axis tick format + const time: TimeRangeBounds = timefilter.getBounds(); + const interval = calculateInterval( + (time.min && time.min.valueOf()) || 0, + (time.max && time.max.valueOf()) || 0, + uiSettings.get('timelion:target_buckets') || 200, + intervalValue, + uiSettings.get('timelion:min_interval') || '1ms' + ); + const format = xaxisFormatterProvider(uiSettings)(interval); + + const tickLetterWidth = 7; + const tickPadding = 45; + + const options = { + xaxis: { + mode: 'time', + tickLength: 5, + timezone: 'browser', + // Calculate how many ticks can fit on the axis + ticks: Math.floor(clientWidth / (format.length * tickLetterWidth + tickPadding)), + // Use moment to format ticks so we get timezone correction + tickFormatter: (val: number) => moment(val).format(format), + }, + selection: { + mode: 'x', + color: '#ccc', + }, + crosshair: { + mode: 'x', + color: '#C66', + lineWidth: 2, + }, + colors, + grid: { + show: showGrid, + borderWidth: 0, + borderColor: null, + margin: 10, + hoverable: true, + autoHighlight: false, + }, + legend: { + backgroundColor: 'rgb(255,255,255,0)', + position: 'nw', + labelBoxBorderColor: 'rgb(255,255,255,0)', + labelFormatter(label: string, series: { _id: number }) { + const wrapperSpan = document.createElement('span'); + const labelSpan = document.createElement('span'); + const numberSpan = document.createElement('span'); + + wrapperSpan.setAttribute('class', 'ngLegendValue'); + wrapperSpan.setAttribute(SERIES_ID_ATTR, `${series._id}`); + + labelSpan.appendChild(document.createTextNode(label)); + numberSpan.setAttribute('class', 'ngLegendValueNumber'); + + wrapperSpan.appendChild(labelSpan); + wrapperSpan.appendChild(numberSpan); + + return wrapperSpan.outerHTML; + }, + }, + } as jquery.flot.plotOptions & { yaxes?: LegacyAxis[] }; + + return options; +} + +export { buildSeriesData, buildOptions, SERIES_ID_ATTR }; diff --git a/src/plugins/vis_type_timelion/public/legacy/tick_formatters.test.ts b/src/plugins/vis_type_timelion/public/legacy/tick_formatters.test.ts new file mode 100644 index 0000000000000..03b7c21706957 --- /dev/null +++ b/src/plugins/vis_type_timelion/public/legacy/tick_formatters.test.ts @@ -0,0 +1,222 @@ +/* + * 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. + */ + +import { tickFormatters } from './tick_formatters'; + +describe('Tick Formatters', function () { + let formatters: any; + + beforeEach(function () { + formatters = tickFormatters(); + }); + + describe('Bits mode', function () { + let bitFormatter: any; + beforeEach(function () { + bitFormatter = formatters.bits; + }); + + it('is a function', function () { + expect(bitFormatter).toEqual(expect.any(Function)); + }); + + it('formats with b/kb/mb/gb', function () { + expect(bitFormatter(7)).toEqual('7b'); + expect(bitFormatter(4 * 1000)).toEqual('4kb'); + expect(bitFormatter(4.1 * 1000 * 1000)).toEqual('4.1mb'); + expect(bitFormatter(3 * 1000 * 1000 * 1000)).toEqual('3gb'); + }); + + it('formats negative values with b/kb/mb/gb', () => { + expect(bitFormatter(-7)).toEqual('-7b'); + expect(bitFormatter(-4 * 1000)).toEqual('-4kb'); + expect(bitFormatter(-4.1 * 1000 * 1000)).toEqual('-4.1mb'); + expect(bitFormatter(-3 * 1000 * 1000 * 1000)).toEqual('-3gb'); + }); + }); + + describe('Bits/s mode', function () { + let bitsFormatter: any; + beforeEach(function () { + bitsFormatter = formatters['bits/s']; + }); + + it('is a function', function () { + expect(bitsFormatter).toEqual(expect.any(Function)); + }); + + it('formats with b/kb/mb/gb', function () { + expect(bitsFormatter(7)).toEqual('7b/s'); + expect(bitsFormatter(4 * 1000)).toEqual('4kb/s'); + expect(bitsFormatter(4.1 * 1000 * 1000)).toEqual('4.1mb/s'); + expect(bitsFormatter(3 * 1000 * 1000 * 1000)).toEqual('3gb/s'); + }); + + it('formats negative values with b/kb/mb/gb', function () { + expect(bitsFormatter(-7)).toEqual('-7b/s'); + expect(bitsFormatter(-4 * 1000)).toEqual('-4kb/s'); + expect(bitsFormatter(-4.1 * 1000 * 1000)).toEqual('-4.1mb/s'); + expect(bitsFormatter(-3 * 1000 * 1000 * 1000)).toEqual('-3gb/s'); + }); + }); + + describe('Bytes mode', function () { + let byteFormatter: any; + beforeEach(function () { + byteFormatter = formatters.bytes; + }); + + it('is a function', function () { + expect(byteFormatter).toEqual(expect.any(Function)); + }); + + it('formats with B/KB/MB/GB', function () { + expect(byteFormatter(10)).toEqual('10B'); + expect(byteFormatter(10 * 1024)).toEqual('10KB'); + expect(byteFormatter(10.2 * 1024 * 1024)).toEqual('10.2MB'); + expect(byteFormatter(3 * 1024 * 1024 * 1024)).toEqual('3GB'); + }); + + it('formats negative values with B/KB/MB/GB', function () { + expect(byteFormatter(-10)).toEqual('-10B'); + expect(byteFormatter(-10 * 1024)).toEqual('-10KB'); + expect(byteFormatter(-10.2 * 1024 * 1024)).toEqual('-10.2MB'); + expect(byteFormatter(-3 * 1024 * 1024 * 1024)).toEqual('-3GB'); + }); + }); + + describe('Bytes/s mode', function () { + let bytesFormatter: any; + beforeEach(function () { + bytesFormatter = formatters['bytes/s']; + }); + + it('is a function', function () { + expect(bytesFormatter).toEqual(expect.any(Function)); + }); + + it('formats with B/KB/MB/GB', function () { + expect(bytesFormatter(10)).toEqual('10B/s'); + expect(bytesFormatter(10 * 1024)).toEqual('10KB/s'); + expect(bytesFormatter(10.2 * 1024 * 1024)).toEqual('10.2MB/s'); + expect(bytesFormatter(3 * 1024 * 1024 * 1024)).toEqual('3GB/s'); + }); + + it('formats negative values with B/KB/MB/GB', function () { + expect(bytesFormatter(-10)).toEqual('-10B/s'); + expect(bytesFormatter(-10 * 1024)).toEqual('-10KB/s'); + expect(bytesFormatter(-10.2 * 1024 * 1024)).toEqual('-10.2MB/s'); + expect(bytesFormatter(-3 * 1024 * 1024 * 1024)).toEqual('-3GB/s'); + }); + }); + + describe('Currency mode', function () { + let currencyFormatter: any; + beforeEach(function () { + currencyFormatter = formatters.currency; + }); + + it('is a function', function () { + expect(currencyFormatter).toEqual(expect.any(Function)); + }); + + it('formats with $ by default', function () { + const axis = { + options: { + units: {}, + }, + }; + expect(currencyFormatter(10.2, axis)).toEqual('$10.20'); + }); + + it('accepts currency in ISO 4217', function () { + const axis = { + options: { + units: { + prefix: 'CNY', + }, + }, + }; + + expect(currencyFormatter(10.2, axis)).toEqual('CN¥10.20'); + }); + }); + + describe('Percent mode', function () { + let percentFormatter: any; + beforeEach(function () { + percentFormatter = formatters.percent; + }); + + it('is a function', function () { + expect(percentFormatter).toEqual(expect.any(Function)); + }); + + it('formats with %', function () { + const axis = { + options: { + units: {}, + }, + }; + expect(percentFormatter(0.1234, axis)).toEqual('12%'); + }); + + it('formats with % with decimal precision', function () { + const tickDecimals = 3; + const tickDecimalShift = 2; + const axis = { + tickDecimals: tickDecimals + tickDecimalShift, + options: { + units: { + tickDecimalsShift: tickDecimalShift, + }, + }, + }; + expect(percentFormatter(0.12345, axis)).toEqual('12.345%'); + }); + }); + + describe('Custom mode', function () { + let customFormatter: any; + beforeEach(function () { + customFormatter = formatters.custom; + }); + + it('is a function', function () { + expect(customFormatter).toEqual(expect.any(Function)); + }); + + it('accepts prefix and suffix', function () { + const axis = { + options: { + units: { + prefix: 'prefix', + suffix: 'suffix', + }, + }, + tickDecimals: 1, + }; + + expect(customFormatter(10.2, axis)).toEqual('prefix10.2suffix'); + }); + + it('correctly renders small values', function () { + const axis = { + options: { + units: { + prefix: 'prefix', + suffix: 'suffix', + }, + }, + tickDecimals: 3, + }; + + expect(customFormatter(0.00499999999999999, axis)).toEqual('prefix0.005suffix'); + }); + }); +}); diff --git a/src/plugins/vis_type_timelion/public/legacy/tick_formatters.ts b/src/plugins/vis_type_timelion/public/legacy/tick_formatters.ts new file mode 100644 index 0000000000000..950226968287b --- /dev/null +++ b/src/plugins/vis_type_timelion/public/legacy/tick_formatters.ts @@ -0,0 +1,79 @@ +/* + * 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. + */ + +import { get } from 'lodash'; + +import type { LegacyAxis } from './panel_utils'; + +function baseTickFormatter(value: number, axis: LegacyAxis) { + const factor = axis.tickDecimals ? Math.pow(10, axis.tickDecimals) : 1; + const formatted = '' + Math.round(value * factor) / factor; + + // If tickDecimals was specified, ensure that we have exactly that + // much precision; otherwise default to the value's own precision. + + if (axis.tickDecimals != null) { + const decimal = formatted.indexOf('.'); + const precision = decimal === -1 ? 0 : formatted.length - decimal - 1; + if (precision < axis.tickDecimals) { + return ( + (precision ? formatted : formatted + '.') + + ('' + factor).substr(1, axis.tickDecimals - precision) + ); + } + } + + return formatted; +} + +function unitFormatter(divisor: number, units: string[]) { + return (val: number) => { + let index = 0; + const isNegative = val < 0; + val = Math.abs(val); + while (val >= divisor && index < units.length) { + val /= divisor; + index++; + } + const value = (Math.round(val * 100) / 100) * (isNegative ? -1 : 1); + return `${value}${units[index]}`; + }; +} + +export function tickFormatters() { + return { + bits: unitFormatter(1000, ['b', 'kb', 'mb', 'gb', 'tb', 'pb']), + 'bits/s': unitFormatter(1000, ['b/s', 'kb/s', 'mb/s', 'gb/s', 'tb/s', 'pb/s']), + bytes: unitFormatter(1024, ['B', 'KB', 'MB', 'GB', 'TB', 'PB']), + 'bytes/s': unitFormatter(1024, ['B/s', 'KB/s', 'MB/s', 'GB/s', 'TB/s', 'PB/s']), + currency(val: number, axis: LegacyAxis) { + return val.toLocaleString('en', { + style: 'currency', + currency: (axis && axis.options && axis.options.units.prefix) || 'USD', + }); + }, + percent(val: number, axis: LegacyAxis) { + let precision = + get(axis, 'tickDecimals', 0) - get(axis, 'options.units.tickDecimalsShift', 0); + // toFixed only accepts values between 0 and 20 + if (precision < 0) { + precision = 0; + } else if (precision > 20) { + precision = 20; + } + + return (val * 100).toFixed(precision) + '%'; + }, + custom(val: number, axis: LegacyAxis) { + const formattedVal = baseTickFormatter(val, axis); + const prefix = axis && axis.options && axis.options.units.prefix; + const suffix = axis && axis.options && axis.options.units.suffix; + return prefix + formattedVal + suffix; + }, + }; +} diff --git a/src/plugins/vis_type_timelion/public/legacy/timelion_vis.scss b/src/plugins/vis_type_timelion/public/legacy/timelion_vis.scss new file mode 100644 index 0000000000000..c4d591bc82cad --- /dev/null +++ b/src/plugins/vis_type_timelion/public/legacy/timelion_vis.scss @@ -0,0 +1,60 @@ +.timChart { + height: 100%; + width: 100%; + display: flex; + flex-direction: column; + + // Custom Jquery FLOT / schema selectors + // Cannot change at the moment + + .chart-top-title { + @include euiFontSizeXS; + flex: 0; + text-align: center; + font-weight: $euiFontWeightBold; + } + + .chart-canvas { + min-width: 100%; + flex: 1; + overflow: hidden; + } + + .legendLabel { + white-space: nowrap; + text-overflow: ellipsis; + overflow-x: hidden; + line-height: normal; + } + + .legendColorBox { + vertical-align: middle; + } + + .ngLegendValue { + color: $euiTextColor; + cursor: pointer; + + &:focus, + &:hover { + text-decoration: underline; + } + } + + .ngLegendValueNumber { + margin-left: $euiSizeXS; + margin-right: $euiSizeXS; + font-weight: $euiFontWeightBold; + } + + .flot-tick-label { + font-size: $euiFontSizeXS; + color: $euiColorDarkShade; + } +} + +.timChart__legendCaption { + color: $euiTextColor; + white-space: nowrap; + font-weight: $euiFontWeightBold; +} diff --git a/src/plugins/vis_type_timelion/public/legacy/timelion_vis_component.tsx b/src/plugins/vis_type_timelion/public/legacy/timelion_vis_component.tsx new file mode 100644 index 0000000000000..ddac86fa73bee --- /dev/null +++ b/src/plugins/vis_type_timelion/public/legacy/timelion_vis_component.tsx @@ -0,0 +1,418 @@ +/* + * 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. + */ + +import React, { useState, useEffect, useMemo, useCallback } from 'react'; +import $ from 'jquery'; +import moment from 'moment-timezone'; +import { debounce, compact, get, each, cloneDeep, last, map } from 'lodash'; +import { useResizeObserver } from '@elastic/eui'; + +import { IInterpreterRenderHandlers } from 'src/plugins/expressions'; +import { useKibana } from '../../../kibana_react/public'; +import { DEFAULT_TIME_FORMAT } from '../../common/lib'; + +import { + buildSeriesData, + buildOptions, + SERIES_ID_ATTR, + LegacyAxis, + ACTIVE_CURSOR, + eventBus, +} from './panel_utils'; + +import { Series, Sheet } from '../helpers/timelion_request_handler'; +import { colors } from '../helpers/chart_constants'; +import { tickFormatters } from './tick_formatters'; +import { generateTicksProvider } from '../helpers/tick_generator'; + +import type { TimelionVisDependencies } from '../plugin'; +import type { RangeFilterParams } from '../../../data/common'; + +import './timelion_vis.scss'; + +interface CrosshairPlot extends jquery.flot.plot { + setCrosshair: (pos: Position) => void; + clearCrosshair: () => void; +} + +interface TimelionVisComponentProps { + onBrushEvent: (rangeFilterParams: RangeFilterParams) => void; + interval: string; + seriesList: Sheet; + renderComplete: IInterpreterRenderHandlers['done']; +} + +interface Position { + x: number; + x1: number; + y: number; + y1: number; + pageX: number; + pageY: number; +} + +interface Range { + to: number; + from: number; +} + +interface Ranges { + xaxis: Range; + yaxis: Range; +} + +const DEBOUNCE_DELAY = 50; +// ensure legend is the same height with or without a caption so legend items do not move around +const emptyCaption = '
'; + +function TimelionVisComponent({ + interval, + seriesList, + renderComplete, + onBrushEvent, +}: TimelionVisComponentProps) { + const kibana = useKibana(); + const [chart, setChart] = useState(() => cloneDeep(seriesList.list)); + const [canvasElem, setCanvasElem] = useState(); + const [chartElem, setChartElem] = useState(null); + + const [originalColorMap, setOriginalColorMap] = useState(() => new Map()); + + const [highlightedSeries, setHighlightedSeries] = useState(null); + const [focusedSeries, setFocusedSeries] = useState(); + const [plot, setPlot] = useState(); + + // Used to toggle the series, and for displaying values on hover + const [legendValueNumbers, setLegendValueNumbers] = useState>(); + const [legendCaption, setLegendCaption] = useState>(); + + const canvasRef = useCallback((node: HTMLDivElement | null) => { + if (node !== null) { + setCanvasElem(node); + } + }, []); + + const elementRef = useCallback((node: HTMLDivElement | null) => { + if (node !== null) { + setChartElem(node); + } + }, []); + + useEffect( + () => () => { + if (chartElem) { + $(chartElem).off('plotselected').off('plothover').off('mouseleave'); + } + }, + [chartElem] + ); + + /* eslint-disable-next-line react-hooks/exhaustive-deps */ + const highlightSeries = useCallback( + debounce(({ currentTarget }: JQuery.TriggeredEvent) => { + const id = Number(currentTarget.getAttribute(SERIES_ID_ATTR)); + if (highlightedSeries === id) { + return; + } + + setHighlightedSeries(id); + setChart((chartState) => + chartState.map((series: Series, seriesIndex: number) => { + series.color = + seriesIndex === id + ? originalColorMap.get(series) // color it like it was + : 'rgba(128,128,128,0.1)'; // mark as grey + + return series; + }) + ); + }, DEBOUNCE_DELAY), + [originalColorMap, highlightedSeries] + ); + + const focusSeries = useCallback( + (event: JQuery.TriggeredEvent) => { + const id = Number(event.currentTarget.getAttribute(SERIES_ID_ATTR)); + setFocusedSeries(id); + highlightSeries(event); + }, + [highlightSeries] + ); + + const toggleSeries = useCallback(({ currentTarget }: JQuery.TriggeredEvent) => { + const id = Number(currentTarget.getAttribute(SERIES_ID_ATTR)); + + setChart((chartState) => + chartState.map((series: Series, seriesIndex: number) => { + if (seriesIndex === id) { + series._hide = !series._hide; + } + return series; + }) + ); + }, []); + + const updateCaption = useCallback( + (plotData: any) => { + if (canvasElem && get(plotData, '[0]._global.legend.showTime', true)) { + const caption = $(''); + caption.html(emptyCaption); + setLegendCaption(caption); + + const canvasNode = $(canvasElem); + canvasNode.find('div.legend table').append(caption); + setLegendValueNumbers(canvasNode.find('.ngLegendValueNumber')); + + const legend = $(canvasElem).find('.ngLegendValue'); + if (legend) { + legend.click(toggleSeries); + legend.focus(focusSeries); + legend.mouseover(highlightSeries); + } + + // legend has been re-created. Apply focus on legend element when previously set + if (focusedSeries || focusedSeries === 0) { + canvasNode.find('div.legend table .legendLabel>span').get(focusedSeries).focus(); + } + } + }, + [focusedSeries, canvasElem, toggleSeries, focusSeries, highlightSeries] + ); + + const updatePlot = useCallback( + (chartValue: Series[], grid?: boolean) => { + if (canvasElem && canvasElem.clientWidth > 0 && canvasElem.clientHeight > 0) { + const options = buildOptions( + interval, + kibana.services.timefilter, + kibana.services.uiSettings, + chartElem?.clientWidth, + grid + ); + const updatedSeries = buildSeriesData(chartValue, options); + + if (options.yaxes) { + options.yaxes.forEach((yaxis: LegacyAxis) => { + if (yaxis && yaxis.units) { + const formatters = tickFormatters(); + yaxis.tickFormatter = formatters[yaxis.units.type as keyof typeof formatters]; + const byteModes = ['bytes', 'bytes/s']; + if (byteModes.includes(yaxis.units.type)) { + yaxis.tickGenerator = generateTicksProvider(); + } + } + }); + } + + const newPlot = $.plot($(canvasElem), updatedSeries, options); + setPlot(newPlot); + renderComplete(); + + updateCaption(newPlot.getData()); + } + }, + [canvasElem, chartElem?.clientWidth, renderComplete, kibana.services, interval, updateCaption] + ); + + const dimensions = useResizeObserver(chartElem); + + useEffect(() => { + updatePlot(chart, seriesList.render && seriesList.render.grid); + }, [chart, updatePlot, seriesList.render, dimensions]); + + useEffect(() => { + const colorsSet: Array<[Series, string]> = []; + const newChart = seriesList.list.map((series: Series, seriesIndex: number) => { + const newSeries = { ...series }; + if (!newSeries.color) { + const colorIndex = seriesIndex % colors.length; + newSeries.color = colors[colorIndex]; + } + colorsSet.push([newSeries, newSeries.color]); + return newSeries; + }); + setChart(newChart); + setOriginalColorMap(new Map(colorsSet)); + }, [seriesList.list]); + + const unhighlightSeries = useCallback(() => { + if (highlightedSeries === null) { + return; + } + + setHighlightedSeries(null); + setFocusedSeries(null); + + setChart((chartState) => + chartState.map((series: Series) => { + series.color = originalColorMap.get(series); // reset the colors + return series; + }) + ); + }, [originalColorMap, highlightedSeries]); + + // Shamelessly borrowed from the flotCrosshairs example + const setLegendNumbers = useCallback( + (pos: Position) => { + unhighlightSeries(); + + const axes = plot!.getAxes(); + if (pos.x < axes.xaxis.min! || pos.x > axes.xaxis.max!) { + return; + } + + const dataset = plot!.getData(); + if (legendCaption) { + legendCaption.text( + moment(pos.x).format(get(dataset, '[0]._global.legend.timeFormat', DEFAULT_TIME_FORMAT)) + ); + } + for (let i = 0; i < dataset.length; ++i) { + const series = dataset[i]; + const useNearestPoint = series.lines!.show && !series.lines!.steps; + const precision = get(series, '_meta.precision', 2); + + // We're setting this flag on top on the series object belonging to the flot library, so we're simply casting here. + if ((series as { _hide?: boolean })._hide) { + continue; + } + + const currentPoint = series.data.find((point: [number, number], index: number) => { + if (index + 1 === series.data.length) { + return true; + } + if (useNearestPoint) { + return pos.x - point[0] < series.data[index + 1][0] - pos.x; + } else { + return pos.x < series.data[index + 1][0]; + } + }); + + const y = currentPoint[1]; + + if (legendValueNumbers) { + if (y == null) { + legendValueNumbers.eq(i).empty(); + } else { + let label = y.toFixed(precision); + const formatter = ((series.yaxis as unknown) as LegacyAxis).tickFormatter; + if (formatter) { + label = formatter(Number(label), (series.yaxis as unknown) as LegacyAxis); + } + legendValueNumbers.eq(i).text(`(${label})`); + } + } + } + }, + [plot, legendValueNumbers, unhighlightSeries, legendCaption] + ); + + /* eslint-disable-next-line react-hooks/exhaustive-deps */ + const debouncedSetLegendNumbers = useCallback( + debounce(setLegendNumbers, DEBOUNCE_DELAY, { + maxWait: DEBOUNCE_DELAY, + leading: true, + trailing: false, + }), + [setLegendNumbers] + ); + + const clearLegendNumbers = useCallback(() => { + if (legendCaption) { + legendCaption.html(emptyCaption); + } + each(legendValueNumbers!, (num: Node) => { + $(num).empty(); + }); + }, [legendCaption, legendValueNumbers]); + + const plotHover = useCallback( + (pos: Position) => { + (plot as CrosshairPlot).setCrosshair(pos); + debouncedSetLegendNumbers(pos); + }, + [plot, debouncedSetLegendNumbers] + ); + + const plotHoverHandler = useCallback( + (event: JQuery.TriggeredEvent, pos: Position) => { + if (!plot) { + return; + } + plotHover(pos); + eventBus.trigger(ACTIVE_CURSOR, [event, pos]); + }, + [plot, plotHover] + ); + + useEffect(() => { + const updateCursor = (_: any, event: JQuery.TriggeredEvent, pos: Position) => { + if (!plot) { + return; + } + plotHover(pos); + }; + + eventBus.on(ACTIVE_CURSOR, updateCursor); + + return () => { + eventBus.off(ACTIVE_CURSOR, updateCursor); + }; + }, [plot, plotHover]); + + const mouseLeaveHandler = useCallback(() => { + if (!plot) { + return; + } + (plot as CrosshairPlot).clearCrosshair(); + clearLegendNumbers(); + }, [plot, clearLegendNumbers]); + + const plotSelectedHandler = useCallback( + (event: JQuery.TriggeredEvent, ranges: Ranges) => { + onBrushEvent({ + gte: ranges.xaxis.from, + lte: ranges.xaxis.to, + }); + }, + [onBrushEvent] + ); + + useEffect(() => { + if (chartElem) { + $(chartElem).off('plotselected').on('plotselected', plotSelectedHandler); + } + }, [chartElem, plotSelectedHandler]); + + useEffect(() => { + if (chartElem) { + $(chartElem).off('mouseleave').on('mouseleave', mouseLeaveHandler); + } + }, [chartElem, mouseLeaveHandler]); + + useEffect(() => { + if (chartElem) { + $(chartElem).off('plothover').on('plothover', plotHoverHandler); + } + }, [chartElem, plotHoverHandler]); + + const title: string = useMemo(() => last(compact(map(seriesList.list, '_title'))) || '', [ + seriesList.list, + ]); + + return ( +
+
{title}
+
+
+ ); +} + +// default export required for React.Lazy +// eslint-disable-next-line import/no-default-export +export { TimelionVisComponent as default }; diff --git a/src/plugins/vis_type_timelion/public/plugin.ts b/src/plugins/vis_type_timelion/public/plugin.ts index 3e9c4cf77687e..93712ae4507fe 100644 --- a/src/plugins/vis_type_timelion/public/plugin.ts +++ b/src/plugins/vis_type_timelion/public/plugin.ts @@ -22,6 +22,7 @@ import { } from 'src/plugins/data/public'; import { VisualizationsSetup } from '../../visualizations/public'; +import { ChartsPluginSetup } from '../../charts/public'; import { getTimelionVisualizationConfig } from './timelion_vis_fn'; import { getTimelionVisDefinition } from './timelion_vis_type'; @@ -36,6 +37,7 @@ export interface TimelionVisDependencies extends Partial { uiSettings: IUiSettingsClient; http: HttpSetup; timefilter: TimefilterContract; + chartTheme: ChartsPluginSetup['theme']; } /** @internal */ @@ -43,6 +45,7 @@ export interface TimelionVisSetupDependencies { expressions: ReturnType; visualizations: VisualizationsSetup; data: DataPublicPluginSetup; + charts: ChartsPluginSetup; } /** @internal */ @@ -72,13 +75,14 @@ export class TimelionVisPlugin constructor(public initializerContext: PluginInitializerContext) {} public setup( - core: CoreSetup, - { expressions, visualizations, data }: TimelionVisSetupDependencies + { uiSettings, http }: CoreSetup, + { expressions, visualizations, data, charts }: TimelionVisSetupDependencies ) { const dependencies: TimelionVisDependencies = { - uiSettings: core.uiSettings, - http: core.http, + http, + uiSettings, timefilter: data.query.timefilter.timefilter, + chartTheme: charts.theme, }; expressions.registerFunction(() => getTimelionVisualizationConfig(dependencies)); diff --git a/src/plugins/vis_type_timelion/public/timelion_vis_renderer.tsx b/src/plugins/vis_type_timelion/public/timelion_vis_renderer.tsx index 6ef5d29ea8a91..b14055a4d6b63 100644 --- a/src/plugins/vis_type_timelion/public/timelion_vis_renderer.tsx +++ b/src/plugins/vis_type_timelion/public/timelion_vis_renderer.tsx @@ -14,8 +14,11 @@ import { KibanaContextProvider } from '../../kibana_react/public'; import { VisualizationContainer } from '../../visualizations/public'; import { TimelionVisDependencies } from './plugin'; import { TimelionRenderValue } from './timelion_vis_fn'; -// @ts-ignore +import { UI_SETTINGS } from '../common/constants'; +import { RangeFilterParams } from '../../data/public'; + const TimelionVisComponent = lazy(() => import('./components/timelion_vis_component')); +const TimelionVisLegacyComponent = lazy(() => import('./legacy/timelion_vis_component')); export const getTimelionVisRenderer: ( deps: TimelionVisDependencies @@ -31,14 +34,34 @@ export const getTimelionVisRenderer: ( const [seriesList] = visData.sheet; const showNoResult = !seriesList || !seriesList.list.length; + const VisComponent = deps.uiSettings.get(UI_SETTINGS.LEGACY_CHARTS_LIBRARY, false) + ? TimelionVisLegacyComponent + : TimelionVisComponent; + + const onBrushEvent = (rangeFilterParams: RangeFilterParams) => { + handlers.event({ + name: 'applyFilter', + data: { + timeFieldName: '*', + filters: [ + { + range: { + '*': rangeFilterParams, + }, + }, + ], + }, + }); + }; + render( - , diff --git a/src/plugins/vis_type_timelion/server/plugin.ts b/src/plugins/vis_type_timelion/server/plugin.ts index c1800a09ba35c..fc23569b351e6 100644 --- a/src/plugins/vis_type_timelion/server/plugin.ts +++ b/src/plugins/vis_type_timelion/server/plugin.ts @@ -7,7 +7,7 @@ */ import { i18n } from '@kbn/i18n'; -import { TypeOf, schema } from '@kbn/config-schema'; +import { TypeOf } from '@kbn/config-schema'; import { RecursiveReadonly } from '@kbn/utility-types'; import { deepFreeze } from '@kbn/std'; @@ -19,10 +19,7 @@ import { functionsRoute } from './routes/functions'; import { validateEsRoute } from './routes/validate_es'; import { runRoute } from './routes/run'; import { ConfigManager } from './lib/config_manager'; - -const experimentalLabel = i18n.translate('timelion.uiSettings.experimentalLabel', { - defaultMessage: 'experimental', -}); +import { getUiSettings } from './ui_settings'; /** * Describes public Timelion plugin contract returned at the `setup` stage. @@ -78,97 +75,7 @@ export class TimelionPlugin runRoute(router, deps); validateEsRoute(router); - core.uiSettings.register({ - 'timelion:es.timefield': { - name: i18n.translate('timelion.uiSettings.timeFieldLabel', { - defaultMessage: 'Time field', - }), - value: '@timestamp', - description: i18n.translate('timelion.uiSettings.timeFieldDescription', { - defaultMessage: 'Default field containing a timestamp when using {esParam}', - values: { esParam: '.es()' }, - }), - category: ['timelion'], - schema: schema.string(), - }, - 'timelion:es.default_index': { - name: i18n.translate('timelion.uiSettings.defaultIndexLabel', { - defaultMessage: 'Default index', - }), - value: '_all', - description: i18n.translate('timelion.uiSettings.defaultIndexDescription', { - defaultMessage: 'Default elasticsearch index to search with {esParam}', - values: { esParam: '.es()' }, - }), - category: ['timelion'], - schema: schema.string(), - }, - 'timelion:target_buckets': { - name: i18n.translate('timelion.uiSettings.targetBucketsLabel', { - defaultMessage: 'Target buckets', - }), - value: 200, - description: i18n.translate('timelion.uiSettings.targetBucketsDescription', { - defaultMessage: 'The number of buckets to shoot for when using auto intervals', - }), - category: ['timelion'], - schema: schema.number(), - }, - 'timelion:max_buckets': { - name: i18n.translate('timelion.uiSettings.maximumBucketsLabel', { - defaultMessage: 'Maximum buckets', - }), - value: 2000, - description: i18n.translate('timelion.uiSettings.maximumBucketsDescription', { - defaultMessage: 'The maximum number of buckets a single datasource can return', - }), - category: ['timelion'], - schema: schema.number(), - }, - 'timelion:min_interval': { - name: i18n.translate('timelion.uiSettings.minimumIntervalLabel', { - defaultMessage: 'Minimum interval', - }), - value: '1ms', - description: i18n.translate('timelion.uiSettings.minimumIntervalDescription', { - defaultMessage: 'The smallest interval that will be calculated when using "auto"', - description: - '"auto" is a technical value in that context, that should not be translated.', - }), - category: ['timelion'], - schema: schema.string(), - }, - 'timelion:graphite.url': { - name: i18n.translate('timelion.uiSettings.graphiteURLLabel', { - defaultMessage: 'Graphite URL', - description: - 'The URL should be in the form of https://www.hostedgraphite.com/UID/ACCESS_KEY/graphite', - }), - value: config.graphiteUrls && config.graphiteUrls.length ? config.graphiteUrls[0] : null, - description: i18n.translate('timelion.uiSettings.graphiteURLDescription', { - defaultMessage: - '{experimentalLabel} The URL of your graphite host', - values: { experimentalLabel: `[${experimentalLabel}]` }, - }), - type: 'select', - options: config.graphiteUrls || [], - category: ['timelion'], - schema: schema.nullable(schema.string()), - }, - 'timelion:quandl.key': { - name: i18n.translate('timelion.uiSettings.quandlKeyLabel', { - defaultMessage: 'Quandl key', - }), - value: 'someKeyHere', - description: i18n.translate('timelion.uiSettings.quandlKeyDescription', { - defaultMessage: '{experimentalLabel} Your API key from www.quandl.com', - values: { experimentalLabel: `[${experimentalLabel}]` }, - }), - sensitive: true, - category: ['timelion'], - schema: schema.string(), - }, - }); + core.uiSettings.register(getUiSettings(config)); return deepFreeze({ uiEnabled: config.ui.enabled }); } diff --git a/src/plugins/vis_type_timelion/server/series_functions/label.js b/src/plugins/vis_type_timelion/server/series_functions/label.js index d31320d3ad6e9..30a5c626251d1 100644 --- a/src/plugins/vis_type_timelion/server/series_functions/label.js +++ b/src/plugins/vis_type_timelion/server/series_functions/label.js @@ -44,7 +44,7 @@ export default new Chainable('label', { // that it doesn't prevent Kibana from starting up and we only have an issue using Timelion labels const RE2 = require('re2'); eachSeries.label = eachSeries.label.replace(new RE2(config.regex), config.label); - } else { + } else if (config.label) { eachSeries.label = config.label; } diff --git a/src/plugins/vis_type_timelion/server/ui_settings.ts b/src/plugins/vis_type_timelion/server/ui_settings.ts new file mode 100644 index 0000000000000..1d8dc997a3f6a --- /dev/null +++ b/src/plugins/vis_type_timelion/server/ui_settings.ts @@ -0,0 +1,130 @@ +/* + * 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. + */ + +import { i18n } from '@kbn/i18n'; +import { schema, TypeOf } from '@kbn/config-schema'; +import type { UiSettingsParams } from 'kibana/server'; + +import { UI_SETTINGS } from '../common/constants'; +import { configSchema } from '../config'; + +const experimentalLabel = i18n.translate('timelion.uiSettings.experimentalLabel', { + defaultMessage: 'experimental', +}); + +export function getUiSettings( + config: TypeOf +): Record> { + return { + [UI_SETTINGS.LEGACY_CHARTS_LIBRARY]: { + name: i18n.translate('timelion.uiSettings.legacyChartsLibraryLabel', { + defaultMessage: 'Timelion legacy charts library', + }), + description: i18n.translate('timelion.uiSettings.legacyChartsLibraryDescription', { + defaultMessage: 'Enables the legacy charts library for timelion charts in Visualize', + }), + deprecation: { + message: i18n.translate('timelion.uiSettings.legacyChartsLibraryDeprication', { + defaultMessage: 'This setting is deprecated and will not be supported as of 8.0.', + }), + docLinksKey: 'timelionSettings', + }, + value: false, + category: ['timelion'], + schema: schema.boolean(), + }, + [UI_SETTINGS.ES_TIMEFIELD]: { + name: i18n.translate('timelion.uiSettings.timeFieldLabel', { + defaultMessage: 'Time field', + }), + value: '@timestamp', + description: i18n.translate('timelion.uiSettings.timeFieldDescription', { + defaultMessage: 'Default field containing a timestamp when using {esParam}', + values: { esParam: '.es()' }, + }), + category: ['timelion'], + schema: schema.string(), + }, + [UI_SETTINGS.DEFAULT_INDEX]: { + name: i18n.translate('timelion.uiSettings.defaultIndexLabel', { + defaultMessage: 'Default index', + }), + value: '_all', + description: i18n.translate('timelion.uiSettings.defaultIndexDescription', { + defaultMessage: 'Default elasticsearch index to search with {esParam}', + values: { esParam: '.es()' }, + }), + category: ['timelion'], + schema: schema.string(), + }, + [UI_SETTINGS.TARGET_BUCKETS]: { + name: i18n.translate('timelion.uiSettings.targetBucketsLabel', { + defaultMessage: 'Target buckets', + }), + value: 200, + description: i18n.translate('timelion.uiSettings.targetBucketsDescription', { + defaultMessage: 'The number of buckets to shoot for when using auto intervals', + }), + category: ['timelion'], + schema: schema.number(), + }, + [UI_SETTINGS.MAX_BUCKETS]: { + name: i18n.translate('timelion.uiSettings.maximumBucketsLabel', { + defaultMessage: 'Maximum buckets', + }), + value: 2000, + description: i18n.translate('timelion.uiSettings.maximumBucketsDescription', { + defaultMessage: 'The maximum number of buckets a single datasource can return', + }), + category: ['timelion'], + schema: schema.number(), + }, + [UI_SETTINGS.MIN_INTERVAL]: { + name: i18n.translate('timelion.uiSettings.minimumIntervalLabel', { + defaultMessage: 'Minimum interval', + }), + value: '1ms', + description: i18n.translate('timelion.uiSettings.minimumIntervalDescription', { + defaultMessage: 'The smallest interval that will be calculated when using "auto"', + description: '"auto" is a technical value in that context, that should not be translated.', + }), + category: ['timelion'], + schema: schema.string(), + }, + [UI_SETTINGS.GRAPHITE_URL]: { + name: i18n.translate('timelion.uiSettings.graphiteURLLabel', { + defaultMessage: 'Graphite URL', + description: + 'The URL should be in the form of https://www.hostedgraphite.com/UID/ACCESS_KEY/graphite', + }), + value: config.graphiteUrls && config.graphiteUrls.length ? config.graphiteUrls[0] : null, + description: i18n.translate('timelion.uiSettings.graphiteURLDescription', { + defaultMessage: + '{experimentalLabel} The URL of your graphite host', + values: { experimentalLabel: `[${experimentalLabel}]` }, + }), + type: 'select', + options: config.graphiteUrls || [], + category: ['timelion'], + schema: schema.nullable(schema.string()), + }, + [UI_SETTINGS.QUANDL_KEY]: { + name: i18n.translate('timelion.uiSettings.quandlKeyLabel', { + defaultMessage: 'Quandl key', + }), + value: 'someKeyHere', + description: i18n.translate('timelion.uiSettings.quandlKeyDescription', { + defaultMessage: '{experimentalLabel} Your API key from www.quandl.com', + values: { experimentalLabel: `[${experimentalLabel}]` }, + }), + sensitive: true, + category: ['timelion'], + schema: schema.string(), + }, + }; +} From ced9aecab517541ca3c941894cc3d60f22845cc6 Mon Sep 17 00:00:00 2001 From: Stratoula Kalafateli Date: Mon, 2 Aug 2021 11:58:10 +0300 Subject: [PATCH 29/40] [Vislib] Removes the angular import (#106968) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- src/plugins/vis_type_vislib/public/vislib/lib/binder.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/plugins/vis_type_vislib/public/vislib/lib/binder.ts b/src/plugins/vis_type_vislib/public/vislib/lib/binder.ts index 436a5b85a6887..886745ba19563 100644 --- a/src/plugins/vis_type_vislib/public/vislib/lib/binder.ts +++ b/src/plugins/vis_type_vislib/public/vislib/lib/binder.ts @@ -8,7 +8,6 @@ import d3 from 'd3'; import $ from 'jquery'; -import { IScope } from 'angular'; export interface Emitter { on: (...args: any[]) => void; @@ -20,13 +19,6 @@ export interface Emitter { export class Binder { private disposal: Array<() => void> = []; - constructor($scope: IScope) { - // support auto-binding to $scope objects - if ($scope) { - $scope.$on('$destroy', () => this.destroy()); - } - } - public on(emitter: Emitter, ...args: any[]) { const on = emitter.on || emitter.addListener; const off = emitter.off || emitter.removeListener; From ee04f6dc9586ab5d485837c29a666738b638af41 Mon Sep 17 00:00:00 2001 From: Esteban Beltran Date: Mon, 2 Aug 2021 11:55:47 +0200 Subject: [PATCH 30/40] Filter out empty values for exceptions (#106685) --- .../components/exceptions/helpers.test.tsx | 153 +++++++++++- .../common/components/exceptions/helpers.tsx | 220 ++++++++++-------- 2 files changed, 274 insertions(+), 99 deletions(-) diff --git a/x-pack/plugins/security_solution/public/common/components/exceptions/helpers.test.tsx b/x-pack/plugins/security_solution/public/common/components/exceptions/helpers.test.tsx index 5347ee875181b..83006f09a14be 100644 --- a/x-pack/plugins/security_solution/public/common/components/exceptions/helpers.test.tsx +++ b/x-pack/plugins/security_solution/public/common/components/exceptions/helpers.test.tsx @@ -823,7 +823,8 @@ describe('Exception helpers', () => { }, ]); }); - + }); + describe('ransomware protection exception items', () => { test('it should return pre-populated ransomware items for event code `ransomware`', () => { const defaultItems = defaultEndpointExceptionItems('list_id', 'my_rule', { _id: '123', @@ -938,7 +939,9 @@ describe('Exception helpers', () => { }, ]); }); + }); + describe('memory protection exception items', () => { test('it should return pre-populated memory signature items for event code `memory_signature`', () => { const defaultItems = defaultEndpointExceptionItems('list_id', 'my_rule', { _id: '123', @@ -990,6 +993,44 @@ describe('Exception helpers', () => { ]); }); + test('it should return pre-populated memory signature items for event code `memory_signature` and skip Empty', () => { + const defaultItems = defaultEndpointExceptionItems('list_id', 'my_rule', { + _id: '123', + process: { + name: '', // name is empty + // executable: '', left intentionally commented + hash: { + sha256: 'some hash', + }, + }, + // eslint-disable-next-line @typescript-eslint/naming-convention + Memory_protection: { + feature: 'signature', + }, + event: { + code: 'memory_signature', + }, + }); + + // should not contain name or executable + expect(defaultItems[0].entries).toEqual([ + { + field: 'Memory_protection.feature', + operator: 'included', + type: 'match', + value: 'signature', + id: '123', + }, + { + field: 'process.hash.sha256', + operator: 'included', + type: 'match', + value: 'some hash', + id: '123', + }, + ]); + }); + test('it should return pre-populated memory shellcode items for event code `malicious_thread`', () => { const defaultItems = defaultEndpointExceptionItems('list_id', 'my_rule', { _id: '123', @@ -1085,7 +1126,115 @@ describe('Exception helpers', () => { value: '4000', id: '123', }, - { field: 'region_size', operator: 'included', type: 'match', value: '4000', id: '123' }, + { + field: 'region_size', + operator: 'included', + type: 'match', + value: '4000', + id: '123', + }, + { + field: 'region_protection', + operator: 'included', + type: 'match', + value: 'RWX', + id: '123', + }, + { + field: 'memory_pe.imphash', + operator: 'included', + type: 'match', + value: 'a hash', + id: '123', + }, + ], + id: '123', + }, + ]); + }); + + test('it should return pre-populated memory shellcode items for event code `malicious_thread` and skip empty', () => { + const defaultItems = defaultEndpointExceptionItems('list_id', 'my_rule', { + _id: '123', + process: { + name: '', // name is empty + // executable: '', left intentionally commented + Ext: { + token: { + integrity_level_name: 'high', + }, + }, + }, + // eslint-disable-next-line @typescript-eslint/naming-convention + Memory_protection: { + feature: 'shellcode_thread', + self_injection: true, + }, + event: { + code: 'malicious_thread', + }, + Target: { + process: { + thread: { + Ext: { + start_address_allocation_offset: 0, + start_address_bytes_disasm_hash: 'a disam hash', + start_address_details: { + // allocation_type: '', left intentionally commented + allocation_size: 4000, + region_size: 4000, + region_protection: 'RWX', + memory_pe: { + imphash: 'a hash', + }, + }, + }, + }, + }, + }, + }); + + // no name, no exceutable, no allocation_type + expect(defaultItems[0].entries).toEqual([ + { + field: 'Memory_protection.feature', + operator: 'included', + type: 'match', + value: 'shellcode_thread', + id: '123', + }, + { + field: 'Memory_protection.self_injection', + operator: 'included', + type: 'match', + value: 'true', + id: '123', + }, + { + field: 'process.Ext.token.integrity_level_name', + operator: 'included', + type: 'match', + value: 'high', + id: '123', + }, + { + field: 'Target.process.thread.Ext.start_address_details', + type: 'nested', + entries: [ + { + field: 'allocation_size', + operator: 'included', + type: 'match', + value: '4000', + id: '123', + }, + { + field: 'region_size', + operator: 'included', + type: 'match', + value: '4000', + id: '123', + }, { field: 'region_protection', operator: 'included', diff --git a/x-pack/plugins/security_solution/public/common/components/exceptions/helpers.tsx b/x-pack/plugins/security_solution/public/common/components/exceptions/helpers.tsx index 613d295545461..62250a0933ffb 100644 --- a/x-pack/plugins/security_solution/public/common/components/exceptions/helpers.tsx +++ b/x-pack/plugins/security_solution/public/common/components/exceptions/helpers.tsx @@ -343,6 +343,29 @@ export const getCodeSignatureValue = ( } }; +// helper type to filter empty-valued exception entries +interface ExceptionEntry { + value?: string; + entries?: ExceptionEntry[]; +} + +/** + * Takes an array of Entries and filter out the ones with empty values. + * It will also filter out empty values for nested entries. + */ +function filterEmptyExceptionEntries(entries: T[]): T[] { + const finalEntries: T[] = []; + for (const entry of entries) { + if (entry.entries !== undefined) { + entry.entries = entry.entries.filter((el) => el.value !== undefined && el.value.length > 0); + finalEntries.push(entry); + } else if (entry.value !== undefined && entry.value.length > 0) { + finalEntries.push(entry); + } + } + return finalEntries; +} + /** * Returns the default values from the alert data to autofill new endpoint exceptions */ @@ -510,34 +533,35 @@ export const getPrepopulatedMemorySignatureException = ({ alertEcsData: Flattened; }): ExceptionsBuilderExceptionItem => { const { process } = alertEcsData; + const entries = filterEmptyExceptionEntries([ + { + field: 'Memory_protection.feature', + operator: 'included' as const, + type: 'match' as const, + value: alertEcsData.Memory_protection?.feature ?? '', + }, + { + field: 'process.executable.caseless', + operator: 'included' as const, + type: 'match' as const, + value: process?.executable ?? '', + }, + { + field: 'process.name.caseless', + operator: 'included' as const, + type: 'match' as const, + value: process?.name ?? '', + }, + { + field: 'process.hash.sha256', + operator: 'included' as const, + type: 'match' as const, + value: process?.hash?.sha256 ?? '', + }, + ]); return { ...getNewExceptionItem({ listId, namespaceType: listNamespace, ruleName }), - entries: addIdToEntries([ - { - field: 'Memory_protection.feature', - operator: 'included', - type: 'match', - value: alertEcsData.Memory_protection?.feature ?? '', - }, - { - field: 'process.executable.caseless', - operator: 'included', - type: 'match', - value: process?.executable ?? '', - }, - { - field: 'process.name.caseless', - operator: 'included', - type: 'match', - value: process?.name ?? '', - }, - { - field: 'process.hash.sha256', - operator: 'included', - type: 'match', - value: process?.hash?.sha256 ?? '', - }, - ]), + entries: addIdToEntries(entries), }; }; export const getPrepopulatedMemoryShellcodeException = ({ @@ -554,81 +578,83 @@ export const getPrepopulatedMemoryShellcodeException = ({ alertEcsData: Flattened; }): ExceptionsBuilderExceptionItem => { const { process, Target } = alertEcsData; + const entries = filterEmptyExceptionEntries([ + { + field: 'Memory_protection.feature', + operator: 'included' as const, + type: 'match' as const, + value: alertEcsData.Memory_protection?.feature ?? '', + }, + { + field: 'Memory_protection.self_injection', + operator: 'included' as const, + type: 'match' as const, + value: String(alertEcsData.Memory_protection?.self_injection) ?? '', + }, + { + field: 'process.executable.caseless', + operator: 'included' as const, + type: 'match' as const, + value: process?.executable ?? '', + }, + { + field: 'process.name.caseless', + operator: 'included' as const, + type: 'match' as const, + value: process?.name ?? '', + }, + { + field: 'process.Ext.token.integrity_level_name', + operator: 'included' as const, + type: 'match' as const, + value: process?.Ext?.token?.integrity_level_name ?? '', + }, + { + field: 'Target.process.thread.Ext.start_address_details', + type: 'nested' as const, + entries: [ + { + field: 'allocation_type', + operator: 'included' as const, + type: 'match' as const, + value: Target?.process?.thread?.Ext?.start_address_details?.allocation_type ?? '', + }, + { + field: 'allocation_size', + operator: 'included' as const, + type: 'match' as const, + value: String(Target?.process?.thread?.Ext?.start_address_details?.allocation_size) ?? '', + }, + { + field: 'region_size', + operator: 'included' as const, + type: 'match' as const, + value: String(Target?.process?.thread?.Ext?.start_address_details?.region_size) ?? '', + }, + { + field: 'region_protection', + operator: 'included' as const, + type: 'match' as const, + value: + String(Target?.process?.thread?.Ext?.start_address_details?.region_protection) ?? '', + }, + { + field: 'memory_pe.imphash', + operator: 'included' as const, + type: 'match' as const, + value: + String(Target?.process?.thread?.Ext?.start_address_details?.memory_pe?.imphash) ?? '', + }, + ], + }, + ]); + return { ...getNewExceptionItem({ listId, namespaceType: listNamespace, ruleName }), - entries: addIdToEntries([ - { - field: 'Memory_protection.feature', - operator: 'included', - type: 'match', - value: alertEcsData.Memory_protection?.feature ?? '', - }, - { - field: 'Memory_protection.self_injection', - operator: 'included', - type: 'match', - value: String(alertEcsData.Memory_protection?.self_injection) ?? '', - }, - { - field: 'process.executable.caseless', - operator: 'included', - type: 'match', - value: process?.executable ?? '', - }, - { - field: 'process.name.caseless', - operator: 'included', - type: 'match', - value: process?.name ?? '', - }, - { - field: 'process.Ext.token.integrity_level_name', - operator: 'included', - type: 'match', - value: process?.Ext?.token?.integrity_level_name ?? '', - }, - { - field: 'Target.process.thread.Ext.start_address_details', - type: 'nested', - entries: [ - { - field: 'allocation_type', - operator: 'included', - type: 'match', - value: Target?.process?.thread?.Ext?.start_address_details?.allocation_type ?? '', - }, - { - field: 'allocation_size', - operator: 'included', - type: 'match', - value: - String(Target?.process?.thread?.Ext?.start_address_details?.allocation_size) ?? '', - }, - { - field: 'region_size', - operator: 'included', - type: 'match', - value: String(Target?.process?.thread?.Ext?.start_address_details?.region_size) ?? '', - }, - { - field: 'region_protection', - operator: 'included', - type: 'match', - value: - String(Target?.process?.thread?.Ext?.start_address_details?.region_protection) ?? '', - }, - { - field: 'memory_pe.imphash', - operator: 'included', - type: 'match', - value: - String(Target?.process?.thread?.Ext?.start_address_details?.memory_pe?.imphash) ?? '', - }, - ], - }, - ]), + entries: addIdToEntries(entries), }; }; + /** * Determines whether or not any entries within the given exceptionItems contain values not in the specified ECS mapping */ From 153d65f3cfd7e429c4057ee6d611e2e712ce7551 Mon Sep 17 00:00:00 2001 From: Matthew Kime Date: Mon, 2 Aug 2021 05:12:05 -0500 Subject: [PATCH 31/40] [discover] remove IFieldType references (#107237) * remove IFieldType references * remove IFieldType references Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../doc_table/components/table_header/table_header.test.tsx | 6 +++--- .../application/embeddable/saved_search_embeddable.tsx | 4 ++-- src/plugins/discover/public/kibana_services.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/discover/public/application/angular/doc_table/components/table_header/table_header.test.tsx b/src/plugins/discover/public/application/angular/doc_table/components/table_header/table_header.test.tsx index 85980ab96b647..48ea7ffc46384 100644 --- a/src/plugins/discover/public/application/angular/doc_table/components/table_header/table_header.test.tsx +++ b/src/plugins/discover/public/application/angular/doc_table/components/table_header/table_header.test.tsx @@ -11,7 +11,7 @@ import { mountWithIntl } from '@kbn/test/jest'; import { TableHeader } from './table_header'; import { findTestSubject } from '@elastic/eui/lib/test'; import { SortOrder } from './helpers'; -import { IndexPattern, IFieldType } from '../../../../../kibana_services'; +import { IndexPattern, IndexPatternField } from '../../../../../kibana_services'; function getMockIndexPattern() { return ({ @@ -29,7 +29,7 @@ function getMockIndexPattern() { aggregatable: false, searchable: true, sortable: true, - } as IFieldType; + } as IndexPatternField; } else { return { name, @@ -38,7 +38,7 @@ function getMockIndexPattern() { aggregatable: false, searchable: true, sortable: false, - } as IFieldType; + } as IndexPatternField; } }, } as unknown) as IndexPattern; diff --git a/src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx b/src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx index c885cb92e7649..098c7f55fbd9f 100644 --- a/src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx +++ b/src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx @@ -22,7 +22,7 @@ import { Query, TimeRange, Filter, - IFieldType, + IndexPatternField, IndexPattern, ISearchSource, } from '../../../../data/common'; @@ -50,7 +50,7 @@ export interface SearchProps extends Partial { sharedItemTitle?: string; inspectorAdapters?: Adapters; - filter?: (field: IFieldType, value: string[], operator: string) => void; + filter?: (field: IndexPatternField, value: string[], operator: string) => void; hits?: ElasticSearchHit[]; totalHitCount?: number; onMoveColumn?: (column: string, index: number) => void; diff --git a/src/plugins/discover/public/kibana_services.ts b/src/plugins/discover/public/kibana_services.ts index c2ab4ae34c958..366656cc60ffb 100644 --- a/src/plugins/discover/public/kibana_services.ts +++ b/src/plugins/discover/public/kibana_services.ts @@ -101,7 +101,7 @@ export { IIndexPattern, IndexPattern, indexPatterns, - IFieldType, + IndexPatternField, ISearchSource, EsQuerySortValue, SortDirection, From a33039fc04fed6d5373eb3251f56231dddc59fd9 Mon Sep 17 00:00:00 2001 From: Matthew Kime Date: Mon, 2 Aug 2021 05:12:24 -0500 Subject: [PATCH 32/40] use IndexPattern instead of IIndexPattern (#107225) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- x-pack/plugins/lens/public/app_plugin/app.test.tsx | 14 +++++++------- .../editor_frame/suggestion_panel.test.tsx | 4 ++-- .../workspace_panel/workspace_panel.test.tsx | 4 ++-- .../plugins/lens/public/embeddable/embeddable.tsx | 3 +-- .../public/indexpattern_datasource/datapanel.tsx | 6 +++--- .../public/indexpattern_datasource/field_item.tsx | 3 +-- .../operations/definitions/terms/index.tsx | 8 ++------ 7 files changed, 18 insertions(+), 24 deletions(-) diff --git a/x-pack/plugins/lens/public/app_plugin/app.test.tsx b/x-pack/plugins/lens/public/app_plugin/app.test.tsx index 1c49527d9eca8..6bd75c585f954 100644 --- a/x-pack/plugins/lens/public/app_plugin/app.test.tsx +++ b/x-pack/plugins/lens/public/app_plugin/app.test.tsx @@ -30,7 +30,7 @@ import { esFilters, FilterManager, IFieldType, - IIndexPattern, + IndexPattern, Query, } from '../../../../../src/plugins/data/public'; import { TopNavMenuData } from '../../../../../src/plugins/navigation/public'; @@ -182,7 +182,7 @@ describe('Lens App', () => { it('updates global filters with store state', async () => { const services = makeDefaultServices(sessionIdSubject); - const indexPattern = ({ id: 'index1' } as unknown) as IIndexPattern; + const indexPattern = ({ id: 'index1' } as unknown) as IndexPattern; const pinnedField = ({ name: 'pinnedField' } as unknown) as IFieldType; const pinnedFilter = esFilters.buildExistsFilter(pinnedField, indexPattern); services.data.query.filterManager.getFilters = jest.fn().mockImplementation(() => { @@ -634,7 +634,7 @@ describe('Lens App', () => { }); it('saves app filters and does not save pinned filters', async () => { - const indexPattern = ({ id: 'index1' } as unknown) as IIndexPattern; + const indexPattern = ({ id: 'index1' } as unknown) as IndexPattern; const field = ({ name: 'myfield' } as unknown) as IFieldType; const pinnedField = ({ name: 'pinnedField' } as unknown) as IFieldType; const unpinned = esFilters.buildExistsFilter(field, indexPattern); @@ -816,7 +816,7 @@ describe('Lens App', () => { it('updates the filters when the user changes them', async () => { const { instance, services, lensStore } = await mountWith({}); - const indexPattern = ({ id: 'index1' } as unknown) as IIndexPattern; + const indexPattern = ({ id: 'index1' } as unknown) as IndexPattern; const field = ({ name: 'myfield' } as unknown) as IFieldType; expect(lensStore.getState()).toEqual({ lens: expect.objectContaining({ @@ -871,7 +871,7 @@ describe('Lens App', () => { searchSessionId: `sessionId-3`, }), }); - const indexPattern = ({ id: 'index1' } as unknown) as IIndexPattern; + const indexPattern = ({ id: 'index1' } as unknown) as IndexPattern; const field = ({ name: 'myfield' } as unknown) as IFieldType; act(() => services.data.query.filterManager.setFilters([ @@ -1006,7 +1006,7 @@ describe('Lens App', () => { query: { query: 'new', language: 'lucene' }, }) ); - const indexPattern = ({ id: 'index1' } as unknown) as IIndexPattern; + const indexPattern = ({ id: 'index1' } as unknown) as IndexPattern; const field = ({ name: 'myfield' } as unknown) as IFieldType; const pinnedField = ({ name: 'pinnedField' } as unknown) as IFieldType; const unpinned = esFilters.buildExistsFilter(field, indexPattern); @@ -1063,7 +1063,7 @@ describe('Lens App', () => { query: { query: 'new', language: 'lucene' }, }) ); - const indexPattern = ({ id: 'index1' } as unknown) as IIndexPattern; + const indexPattern = ({ id: 'index1' } as unknown) as IndexPattern; const field = ({ name: 'myfield' } as unknown) as IFieldType; const pinnedField = ({ name: 'pinnedField' } as unknown) as IFieldType; const unpinned = esFilters.buildExistsFilter(field, indexPattern); diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_panel.test.tsx b/x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_panel.test.tsx index 6445038e40d7c..44fb47001631e 100644 --- a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_panel.test.tsx +++ b/x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_panel.test.tsx @@ -16,7 +16,7 @@ import { } from '../../mocks'; import { act } from 'react-dom/test-utils'; import { ReactExpressionRendererType } from '../../../../../../src/plugins/expressions/public'; -import { esFilters, IFieldType, IIndexPattern } from '../../../../../../src/plugins/data/public'; +import { esFilters, IFieldType, IndexPattern } from '../../../../../../src/plugins/data/public'; import { SuggestionPanel, SuggestionPanelProps } from './suggestion_panel'; import { getSuggestions, Suggestion } from './suggestion_helpers'; import { EuiIcon, EuiPanel, EuiToolTip } from '@elastic/eui'; @@ -291,7 +291,7 @@ describe('suggestion_panel', () => { (mockVisualization.toPreviewExpression as jest.Mock).mockReturnValueOnce('test | expression'); mockDatasource.toExpression.mockReturnValue('datasource_expression'); - const indexPattern = ({ id: 'index1' } as unknown) as IIndexPattern; + const indexPattern = ({ id: 'index1' } as unknown) as IndexPattern; const field = ({ name: 'myfield' } as unknown) as IFieldType; mountWithProvider( diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.test.tsx b/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.test.tsx index 4feb13fcfffd9..784455cc9f6d1 100644 --- a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.test.tsx +++ b/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.test.tsx @@ -28,7 +28,7 @@ import { ReactWrapper } from 'enzyme'; import { DragDrop, ChildDragDropProvider } from '../../../drag_drop'; import { fromExpression } from '@kbn/interpreter/common'; import { coreMock } from 'src/core/public/mocks'; -import { esFilters, IFieldType, IIndexPattern } from '../../../../../../../src/plugins/data/public'; +import { esFilters, IFieldType, IndexPattern } from '../../../../../../../src/plugins/data/public'; import { UiActionsStart } from '../../../../../../../src/plugins/ui_actions/public'; import { uiActionsPluginMock } from '../../../../../../../src/plugins/ui_actions/public/mocks'; import { TriggerContract } from '../../../../../../../src/plugins/ui_actions/public/triggers'; @@ -443,7 +443,7 @@ describe('workspace_panel', () => { expect(expressionRendererMock).toHaveBeenCalledTimes(1); - const indexPattern = ({ id: 'index1' } as unknown) as IIndexPattern; + const indexPattern = ({ id: 'index1' } as unknown) as IndexPattern; const field = ({ name: 'myfield' } as unknown) as IFieldType; await act(async () => { diff --git a/x-pack/plugins/lens/public/embeddable/embeddable.tsx b/x-pack/plugins/lens/public/embeddable/embeddable.tsx index 77b2b06389240..e26466be6f81b 100644 --- a/x-pack/plugins/lens/public/embeddable/embeddable.tsx +++ b/x-pack/plugins/lens/public/embeddable/embeddable.tsx @@ -12,7 +12,6 @@ import type { ExecutionContextServiceStart } from 'src/core/public'; import { ExecutionContextSearch, Filter, - IIndexPattern, Query, TimefilterContract, TimeRange, @@ -83,7 +82,7 @@ export type LensByReferenceInput = SavedObjectEmbeddableInput & LensBaseEmbeddab export type LensEmbeddableInput = LensByValueInput | LensByReferenceInput; export interface LensEmbeddableOutput extends EmbeddableOutput { - indexPatterns?: IIndexPattern[]; + indexPatterns?: IndexPattern[]; } export interface LensEmbeddableDeps { diff --git a/x-pack/plugins/lens/public/indexpattern_datasource/datapanel.tsx b/x-pack/plugins/lens/public/indexpattern_datasource/datapanel.tsx index ec1421577dc2b..d9806d7841115 100644 --- a/x-pack/plugins/lens/public/indexpattern_datasource/datapanel.tsx +++ b/x-pack/plugins/lens/public/indexpattern_datasource/datapanel.tsx @@ -40,7 +40,7 @@ import { trackUiEvent } from '../lens_ui_telemetry'; import { loadIndexPatterns, syncExistingFields } from './loader'; import { fieldExists } from './pure_helpers'; import { Loader } from '../loader'; -import { esQuery, IIndexPattern } from '../../../../../src/plugins/data/public'; +import { esQuery } from '../../../../../src/plugins/data/public'; import { IndexPatternFieldEditorStart } from '../../../../../src/plugins/index_pattern_field_editor/public'; import { VISUALIZE_GEO_FIELD_TRIGGER } from '../../../../../src/plugins/ui_actions/public'; @@ -94,7 +94,7 @@ const fieldTypeNames: Record = { // Wrapper around esQuery.buildEsQuery, handling errors (e.g. because a query can't be parsed) by // returning a query dsl object not matching anything function buildSafeEsQuery( - indexPattern: IIndexPattern, + indexPattern: IndexPattern, query: Query, filters: Filter[], queryConfig: EsQueryConfig @@ -164,7 +164,7 @@ export function IndexPatternDataPanel({ })); const dslQuery = buildSafeEsQuery( - indexPatterns[currentIndexPatternId] as IIndexPattern, + indexPatterns[currentIndexPatternId], query, filters, esQuery.getEsQueryConfig(core.uiSettings) diff --git a/x-pack/plugins/lens/public/indexpattern_datasource/field_item.tsx b/x-pack/plugins/lens/public/indexpattern_datasource/field_item.tsx index 013bb46500d0d..5ceb452038426 100644 --- a/x-pack/plugins/lens/public/indexpattern_datasource/field_item.tsx +++ b/x-pack/plugins/lens/public/indexpattern_datasource/field_item.tsx @@ -44,7 +44,6 @@ import { ES_FIELD_TYPES, Filter, esQuery, - IIndexPattern, } from '../../../../../src/plugins/data/public'; import { FieldButton } from '../../../../../src/plugins/kibana_react/public'; import { ChartsPluginSetup } from '../../../../../src/plugins/charts/public'; @@ -169,7 +168,7 @@ export const InnerFieldItem = function InnerFieldItem(props: FieldItemProps) { .post(`/api/lens/index_stats/${indexPattern.id}/field`, { body: JSON.stringify({ dslQuery: esQuery.buildEsQuery( - indexPattern as IIndexPattern, + indexPattern, query, filters, esQuery.getEsQueryConfig(core.uiSettings) diff --git a/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/index.tsx b/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/index.tsx index a458a1edcfa16..4e2f69c927a18 100644 --- a/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/index.tsx +++ b/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/index.tsx @@ -19,11 +19,7 @@ import { import { uniq } from 'lodash'; import { CoreStart } from 'kibana/public'; import { FieldStatsResponse } from '../../../../../common'; -import { - AggFunctionsMapping, - esQuery, - IIndexPattern, -} from '../../../../../../../../src/plugins/data/public'; +import { AggFunctionsMapping, esQuery } from '../../../../../../../../src/plugins/data/public'; import { buildExpressionFunction } from '../../../../../../../../src/plugins/expressions/public'; import { updateColumnParam, isReferenced } from '../../layer_helpers'; import { DataType, FramePublicAPI } from '../../../../types'; @@ -99,7 +95,7 @@ function getDisallowedTermsMessage( body: JSON.stringify({ fieldName, dslQuery: esQuery.buildEsQuery( - indexPattern as IIndexPattern, + indexPattern, frame.query, frame.filters, esQuery.getEsQueryConfig(core.uiSettings) From 3e85a0e24ff1b67e0b0f8eba4d7d19ccbb94b558 Mon Sep 17 00:00:00 2001 From: Matthew Kime Date: Mon, 2 Aug 2021 05:12:42 -0500 Subject: [PATCH 33/40] use IndexPattern instead of IIndexPattern (#107223) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../management_section/objects_table/components/flyout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx b/src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx index f6c8d5fb69408..8f4940ffb05c9 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx @@ -34,7 +34,7 @@ import { FormattedMessage } from '@kbn/i18n/react'; import { OverlayStart, HttpStart, IBasePath } from 'src/core/public'; import { IndexPatternsContract, - IIndexPattern, + IndexPattern, DataPublicPluginStart, } from '../../../../../data/public'; import { @@ -86,7 +86,7 @@ export interface FlyoutState { error?: string; file?: File; importCount: number; - indexPatterns?: IIndexPattern[]; + indexPatterns?: IndexPattern[]; importMode: ImportMode; loadingMessage?: string; isLegacyFile: boolean; From c048f71626af92251def42a3996f2c382f36cc46 Mon Sep 17 00:00:00 2001 From: Liza Katz Date: Mon, 2 Aug 2021 12:14:19 +0200 Subject: [PATCH 34/40] [Data] Cleanup filter docs (#107169) * Move more utils to package and cleanup API * docs and imports * better imports * change comment * Better docs * typos * typo * fixes * casting * Code review * Update meta_filter.ts * fix Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- ...ns-data-public.castestokbnfieldtypename.md | 2 +- ...na-plugin-plugins-data-public.esfilters.md | 22 +++-- ...gin-plugins-data-public.getkbntypenames.md | 2 +- .../kibana-plugin-plugins-data-public.md | 6 +- ...ugins-data-server.buildqueryfromfilters.md | 2 +- ...ns-data-server.castestokbnfieldtypename.md | 2 +- ...na-plugin-plugins-data-server.esfilters.md | 4 +- ...lugin-plugins-data-server.esqueryconfig.md | 2 +- ...ibana-plugin-plugins-data-server.filter.md | 2 +- ...lugin-plugins-data-server.ifieldsubtype.md | 2 +- ...na-plugin-plugins-data-server.kuerynode.md | 2 +- .../kibana-plugin-plugins-data-server.md | 4 +- .../src/es_query/build_es_query.ts | 8 +- .../src/es_query/decorate_query.ts | 2 + .../kbn-es-query/src/es_query/es_query_dsl.ts | 4 + .../src/es_query/filter_matches_index.ts | 2 + .../kbn-es-query/src/es_query/from_filters.ts | 8 ++ .../kbn-es-query/src/es_query/from_kuery.ts | 1 + .../kbn-es-query/src/es_query/from_lucene.ts | 1 + .../src/es_query/handle_nested_filter.ts | 1 + .../src/es_query/lucene_string_to_dsl.ts | 7 ++ .../src/es_query/migrate_filter.ts | 2 + packages/kbn-es-query/src/es_query/types.ts | 13 +++ .../build_filters/build_empty_filter.ts | 4 +- .../filters/build_filters/build_filters.ts | 36 +++----- .../filters/build_filters/custom_filter.ts | 35 ++++++- .../filters/build_filters/exists_filter.ts | 36 ++++++-- .../build_filters/geo_bounding_box_filter.ts | 16 +++- .../build_filters/geo_polygon_filter.ts | 16 +++- .../filters/build_filters/get_filter_field.ts | 1 + .../build_filters/get_filter_params.ts | 3 + .../filters/build_filters/match_all_filter.ts | 15 ++- .../filters/build_filters/missing_filter.ts | 19 +++- .../filters/build_filters/phrase_filter.ts | 54 ++++++++--- .../filters/build_filters/phrases_filter.ts | 29 ++++-- .../build_filters/query_string_filter.ts | 23 ++++- .../src/filters/build_filters/range_filter.ts | 54 +++++++++-- .../src/filters/build_filters/types.ts | 32 +++++-- .../src/filters/helpers/compare_filters.ts | 4 + .../src/filters/helpers/dedup_filters.ts | 2 + .../src/filters/helpers/meta_filter.ts | 76 ++++++++++++++- .../src/filters/helpers/only_disabled.ts | 3 +- .../src/filters/helpers/uniq_filters.ts | 2 +- packages/kbn-es-query/src/filters/index.ts | 1 - .../src/kuery/kuery_syntax_error.ts | 4 + .../src/kuery/node_types/index.ts | 3 + packages/kbn-es-query/src/kuery/types.ts | 6 ++ packages/kbn-es-query/src/utils.ts | 1 + .../fatal_errors/fatal_errors_service.tsx | 2 +- src/plugins/data/public/index.ts | 8 +- src/plugins/data/public/public.api.md | 92 ++++++++++--------- src/plugins/data/server/server.api.md | 4 +- .../classes/tooltips/es_tooltip_property.ts | 2 +- .../filter_value_label/filter_value_label.tsx | 2 +- 54 files changed, 509 insertions(+), 177 deletions(-) diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.castestokbnfieldtypename.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.castestokbnfieldtypename.md index a90c0477e57fb..c6135d9313b23 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.castestokbnfieldtypename.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.castestokbnfieldtypename.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> import from "@kbn/field-types" instead +> Import from the "@kbn/field-types" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.esfilters.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.esfilters.md index ee04b37bb153c..c13f6e951be98 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.esfilters.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.esfilters.md @@ -20,18 +20,18 @@ esFilters: { FILTERS: typeof import("@kbn/es-query").FILTERS; FilterStateStore: typeof FilterStateStore; buildEmptyFilter: (isPinned: boolean, index?: string | undefined) => import("@kbn/es-query").Filter; - buildPhrasesFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, params: any[], indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").PhrasesFilter; + buildPhrasesFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, params: string[], indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").PhrasesFilter; buildExistsFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").ExistsFilter; - buildPhraseFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, value: any, indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").PhraseFilter; + buildPhraseFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, value: string | number | boolean, indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").PhraseFilter; buildQueryFilter: (query: any, index: string, alias: string) => import("@kbn/es-query/target_types/filters/build_filters").QueryStringFilter; buildRangeFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, params: import("@kbn/es-query").RangeFilterParams, indexPattern: import("@kbn/es-query").IndexPatternBase, formattedValue?: string | undefined) => import("@kbn/es-query").RangeFilter; - isPhraseFilter: (filter: any) => filter is import("@kbn/es-query").PhraseFilter; - isExistsFilter: (filter: any) => filter is import("@kbn/es-query").ExistsFilter; - isPhrasesFilter: (filter: any) => filter is import("@kbn/es-query").PhrasesFilter; - isRangeFilter: (filter: any) => filter is import("@kbn/es-query").RangeFilter; - isMatchAllFilter: (filter: any) => filter is import("@kbn/es-query").MatchAllFilter; - isMissingFilter: (filter: any) => filter is import("@kbn/es-query").MissingFilter; - isQueryStringFilter: (filter: any) => filter is import("@kbn/es-query/target_types/filters/build_filters").QueryStringFilter; + isPhraseFilter: (filter: import("@kbn/es-query").FieldFilter) => filter is import("@kbn/es-query").PhraseFilter; + isExistsFilter: (filter: import("@kbn/es-query").FieldFilter) => filter is import("@kbn/es-query").ExistsFilter; + isPhrasesFilter: (filter: import("@kbn/es-query").FieldFilter) => filter is import("@kbn/es-query").PhrasesFilter; + isRangeFilter: (filter?: import("@kbn/es-query").ExistsFilter | import("@kbn/es-query").GeoPolygonFilter | import("@kbn/es-query").PhrasesFilter | import("@kbn/es-query").PhraseFilter | import("@kbn/es-query").MatchAllFilter | import("@kbn/es-query").MissingFilter | import("@kbn/es-query").RangeFilter | import("@kbn/es-query").GeoBoundingBoxFilter | undefined) => filter is import("@kbn/es-query").RangeFilter; + isMatchAllFilter: (filter: import("@kbn/es-query").FieldFilter) => filter is import("@kbn/es-query").MatchAllFilter; + isMissingFilter: (filter: import("@kbn/es-query").FieldFilter) => filter is import("@kbn/es-query").MissingFilter; + isQueryStringFilter: (filter: import("@kbn/es-query").FieldFilter) => filter is import("@kbn/es-query/target_types/filters/build_filters").QueryStringFilter; isFilterPinned: (filter: import("@kbn/es-query").Filter) => boolean | undefined; toggleFilterNegated: (filter: import("@kbn/es-query").Filter) => { meta: { @@ -46,7 +46,9 @@ esFilters: { params?: any; value?: string | undefined; }; - $state?: import("@kbn/es-query").FilterState | undefined; + $state?: { + store: FilterStateStore; + } | undefined; query?: any; }; disableFilter: (filter: import("@kbn/es-query").Filter) => import("@kbn/es-query").Filter; diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.getkbntypenames.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.getkbntypenames.md index eda4b141ec2cd..66effff722f3b 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.getkbntypenames.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.getkbntypenames.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> import from "@kbn/field-types" instead +> Import from the "@kbn/field-types" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.md index 37af5ea226086..49c9d1d143e6b 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.md @@ -30,9 +30,7 @@ | Enumeration | Description | | --- | --- | | [BUCKET\_TYPES](./kibana-plugin-plugins-data-public.bucket_types.md) | | -| [ES\_FIELD\_TYPES](./kibana-plugin-plugins-data-public.es_field_types.md) | \* | | [IndexPatternType](./kibana-plugin-plugins-data-public.indexpatterntype.md) | | -| [KBN\_FIELD\_TYPES](./kibana-plugin-plugins-data-public.kbn_field_types.md) | \* | | [METRIC\_TYPES](./kibana-plugin-plugins-data-public.metric_types.md) | | | [QuerySuggestionTypes](./kibana-plugin-plugins-data-public.querysuggestiontypes.md) | | | [SearchSessionState](./kibana-plugin-plugins-data-public.searchsessionstate.md) | Possible state that current session can be in | @@ -107,7 +105,7 @@ | [AggGroupNames](./kibana-plugin-plugins-data-public.agggroupnames.md) | | | [APPLY\_FILTER\_TRIGGER](./kibana-plugin-plugins-data-public.apply_filter_trigger.md) | | | [baseFormattersPublic](./kibana-plugin-plugins-data-public.baseformatterspublic.md) | | -| [castEsToKbnFieldTypeName](./kibana-plugin-plugins-data-public.castestokbnfieldtypename.md) | Get the KbnFieldType name for an esType string | +| [castEsToKbnFieldTypeName](./kibana-plugin-plugins-data-public.castestokbnfieldtypename.md) | | | [connectToQueryState](./kibana-plugin-plugins-data-public.connecttoquerystate.md) | Helper to setup two-way syncing of global data and a state container | | [createSavedQueryService](./kibana-plugin-plugins-data-public.createsavedqueryservice.md) | | | [ES\_SEARCH\_STRATEGY](./kibana-plugin-plugins-data-public.es_search_strategy.md) | | @@ -120,7 +118,7 @@ | [fieldList](./kibana-plugin-plugins-data-public.fieldlist.md) | | | [FilterItem](./kibana-plugin-plugins-data-public.filteritem.md) | | | [FilterLabel](./kibana-plugin-plugins-data-public.filterlabel.md) | | -| [getKbnTypeNames](./kibana-plugin-plugins-data-public.getkbntypenames.md) | Get the esTypes known by all kbnFieldTypes {Array} | +| [getKbnTypeNames](./kibana-plugin-plugins-data-public.getkbntypenames.md) | | | [INDEX\_PATTERN\_SAVED\_OBJECT\_TYPE](./kibana-plugin-plugins-data-public.index_pattern_saved_object_type.md) | \* | | [indexPatterns](./kibana-plugin-plugins-data-public.indexpatterns.md) | | | [injectSearchSourceReferences](./kibana-plugin-plugins-data-public.injectsearchsourcereferences.md) | | diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.buildqueryfromfilters.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.buildqueryfromfilters.md index 90fdb471d6280..fba0d9fe62c78 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.buildqueryfromfilters.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.buildqueryfromfilters.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be deprecated in v8.0.0. +> Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. > Signature: diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.castestokbnfieldtypename.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.castestokbnfieldtypename.md index 037c938415978..834fe302ad9f8 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.castestokbnfieldtypename.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.castestokbnfieldtypename.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> import from "@kbn/field-types" instead +> Import from the "@kbn/field-types" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.esfilters.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.esfilters.md index b807fe7d66369..b37d0555194fc 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.esfilters.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.esfilters.md @@ -13,8 +13,8 @@ esFilters: { buildEmptyFilter: (isPinned: boolean, index?: string | undefined) => import("@kbn/es-query").Filter; buildExistsFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").ExistsFilter; buildFilter: typeof import("@kbn/es-query").buildFilter; - buildPhraseFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, value: any, indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").PhraseFilter; - buildPhrasesFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, params: any[], indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").PhrasesFilter; + buildPhraseFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, value: string | number | boolean, indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").PhraseFilter; + buildPhrasesFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, params: string[], indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").PhrasesFilter; buildRangeFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, params: import("@kbn/es-query").RangeFilterParams, indexPattern: import("@kbn/es-query").IndexPatternBase, formattedValue?: string | undefined) => import("@kbn/es-query").RangeFilter; isFilterDisabled: (filter: import("@kbn/es-query").Filter) => boolean; } diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.esqueryconfig.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.esqueryconfig.md index 5c736f40cdbf4..6d8383ead501f 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.esqueryconfig.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.esqueryconfig.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be deprecated in v8.0.0. +> Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. > Signature: diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.filter.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.filter.md index f46ff36277d93..e7f3777cd2d3f 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.filter.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.filter.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be deprecated in v8.0.0. +> Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. > Signature: diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.ifieldsubtype.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.ifieldsubtype.md index e8e872577b46b..07a59d41fb0a3 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.ifieldsubtype.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.ifieldsubtype.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be deprecated in v8.0.0. +> Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. > Signature: diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.kuerynode.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.kuerynode.md index a5c14ee8627b1..28d64cf9e17da 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.kuerynode.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.kuerynode.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be deprecated in v8.0.0. +> Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. > Signature: diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.md index ea0a6f8c64be0..755fa33bfe506 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.md @@ -22,8 +22,6 @@ | Enumeration | Description | | --- | --- | | [BUCKET\_TYPES](./kibana-plugin-plugins-data-server.bucket_types.md) | | -| [ES\_FIELD\_TYPES](./kibana-plugin-plugins-data-server.es_field_types.md) | \* | -| [KBN\_FIELD\_TYPES](./kibana-plugin-plugins-data-server.kbn_field_types.md) | \* | | [METRIC\_TYPES](./kibana-plugin-plugins-data-server.metric_types.md) | | ## Functions @@ -74,7 +72,7 @@ | [AggGroupLabels](./kibana-plugin-plugins-data-server.agggrouplabels.md) | | | [AggGroupNames](./kibana-plugin-plugins-data-server.agggroupnames.md) | | | [buildQueryFromFilters](./kibana-plugin-plugins-data-server.buildqueryfromfilters.md) | | -| [castEsToKbnFieldTypeName](./kibana-plugin-plugins-data-server.castestokbnfieldtypename.md) | Get the KbnFieldType name for an esType string | +| [castEsToKbnFieldTypeName](./kibana-plugin-plugins-data-server.castestokbnfieldtypename.md) | | | [config](./kibana-plugin-plugins-data-server.config.md) | | | [ES\_SEARCH\_STRATEGY](./kibana-plugin-plugins-data-server.es_search_strategy.md) | | | [esFilters](./kibana-plugin-plugins-data-server.esfilters.md) | | diff --git a/packages/kbn-es-query/src/es_query/build_es_query.ts b/packages/kbn-es-query/src/es_query/build_es_query.ts index e8a494ec1b8e4..955af1e4c185f 100644 --- a/packages/kbn-es-query/src/es_query/build_es_query.ts +++ b/packages/kbn-es-query/src/es_query/build_es_query.ts @@ -13,6 +13,10 @@ import { buildQueryFromLucene } from './from_lucene'; import { Filter, Query } from '../filters'; import { IndexPatternBase } from './types'; +/** + * Configurations to be used while constructing an ES query. + * @public + */ export interface EsQueryConfig { allowLeadingWildcards: boolean; queryStringOptions: Record; @@ -33,6 +37,8 @@ function removeMatchAll(filters: T[]) { * @param config - an objects with query:allowLeadingWildcards and query:queryString:options UI * settings in form of { allowLeadingWildcards, queryStringOptions } * config contains dateformat:tz + * + * @public */ export function buildEsQuery( indexPattern: IndexPatternBase | undefined, @@ -47,7 +53,7 @@ export function buildEsQuery( queries = Array.isArray(queries) ? queries : [queries]; filters = Array.isArray(filters) ? filters : [filters]; - const validQueries = queries.filter((query) => has(query, 'query')); + const validQueries = queries.filter((query: any) => has(query, 'query')); const queriesByLanguage = groupBy(validQueries, 'language'); const kueryQuery = buildQueryFromKuery( indexPattern, diff --git a/packages/kbn-es-query/src/es_query/decorate_query.ts b/packages/kbn-es-query/src/es_query/decorate_query.ts index 594e046a979de..b6623b9b1946c 100644 --- a/packages/kbn-es-query/src/es_query/decorate_query.ts +++ b/packages/kbn-es-query/src/es_query/decorate_query.ts @@ -16,6 +16,8 @@ import { DslQuery, isEsQueryString } from './es_query_dsl'; * @param queryStringOptions query:queryString:options from UI settings * @param dateFormatTZ dateFormat:tz from UI settings * @returns {object} + * + * @public */ export function decorateQuery( diff --git a/packages/kbn-es-query/src/es_query/es_query_dsl.ts b/packages/kbn-es-query/src/es_query/es_query_dsl.ts index 30f7693ee2a94..6cff8b0ff47c7 100644 --- a/packages/kbn-es-query/src/es_query/es_query_dsl.ts +++ b/packages/kbn-es-query/src/es_query/es_query_dsl.ts @@ -43,6 +43,9 @@ export interface DslTermQuery { term: Record; } +/** + * @public + */ export type DslQuery = | DslRangeQuery | DslMatchQuery @@ -50,5 +53,6 @@ export type DslQuery = | DslMatchAllQuery | DslTermQuery; +/** @internal */ export const isEsQueryString = (query: any): query is DslQueryStringQuery => has(query, 'query_string.query'); diff --git a/packages/kbn-es-query/src/es_query/filter_matches_index.ts b/packages/kbn-es-query/src/es_query/filter_matches_index.ts index 7df719533486a..541298ee0e19b 100644 --- a/packages/kbn-es-query/src/es_query/filter_matches_index.ts +++ b/packages/kbn-es-query/src/es_query/filter_matches_index.ts @@ -13,6 +13,8 @@ import { IndexPatternBase } from '..'; * TODO: We should base this on something better than `filter.meta.key`. We should probably modify * this to check if `filter.meta.index` matches `indexPattern.id` instead, but that's a breaking * change. + * + * @internal */ export function filterMatchesIndex(filter: Filter, indexPattern?: IndexPatternBase | null) { if (!filter.meta?.key || !indexPattern) { diff --git a/packages/kbn-es-query/src/es_query/from_filters.ts b/packages/kbn-es-query/src/es_query/from_filters.ts index 7b3c58d45a569..94def4008a2bc 100644 --- a/packages/kbn-es-query/src/es_query/from_filters.ts +++ b/packages/kbn-es-query/src/es_query/from_filters.ts @@ -43,6 +43,14 @@ const translateToQuery = (filter: Filter) => { return filter; }; +/** + * @param filters + * @param indexPattern + * @param ignoreFilterIfFieldNotInIndex by default filters that use fields that can't be found in the specified index pattern are not applied. Set this to true if you want to apply them any way. + * @returns An EQL query + * + * @public + */ export const buildQueryFromFilters = ( filters: Filter[] = [], indexPattern: IndexPatternBase | undefined, diff --git a/packages/kbn-es-query/src/es_query/from_kuery.ts b/packages/kbn-es-query/src/es_query/from_kuery.ts index efe8b26a81412..87382585181f8 100644 --- a/packages/kbn-es-query/src/es_query/from_kuery.ts +++ b/packages/kbn-es-query/src/es_query/from_kuery.ts @@ -10,6 +10,7 @@ import { Query } from '../filters'; import { fromKueryExpression, toElasticsearchQuery, nodeTypes, KueryNode } from '../kuery'; import { IndexPatternBase } from './types'; +/** @internal */ export function buildQueryFromKuery( indexPattern: IndexPatternBase | undefined, queries: Query[] = [], diff --git a/packages/kbn-es-query/src/es_query/from_lucene.ts b/packages/kbn-es-query/src/es_query/from_lucene.ts index cba789513c983..ef4becd1d1584 100644 --- a/packages/kbn-es-query/src/es_query/from_lucene.ts +++ b/packages/kbn-es-query/src/es_query/from_lucene.ts @@ -10,6 +10,7 @@ import { Query } from '..'; import { decorateQuery } from './decorate_query'; import { luceneStringToDsl } from './lucene_string_to_dsl'; +/** @internal */ export function buildQueryFromLucene( queries: Query[], queryStringOptions: Record, diff --git a/packages/kbn-es-query/src/es_query/handle_nested_filter.ts b/packages/kbn-es-query/src/es_query/handle_nested_filter.ts index 60e92769503fb..74c758c1c54bf 100644 --- a/packages/kbn-es-query/src/es_query/handle_nested_filter.ts +++ b/packages/kbn-es-query/src/es_query/handle_nested_filter.ts @@ -9,6 +9,7 @@ import { getFilterField, cleanFilter, Filter } from '../filters'; import { IndexPatternBase } from './types'; +/** @internal */ export const handleNestedFilter = (filter: Filter, indexPattern?: IndexPatternBase) => { if (!indexPattern) return filter; diff --git a/packages/kbn-es-query/src/es_query/lucene_string_to_dsl.ts b/packages/kbn-es-query/src/es_query/lucene_string_to_dsl.ts index 97160bd645797..2e4eb5ab7f7c4 100644 --- a/packages/kbn-es-query/src/es_query/lucene_string_to_dsl.ts +++ b/packages/kbn-es-query/src/es_query/lucene_string_to_dsl.ts @@ -9,6 +9,13 @@ import { isString } from 'lodash'; import { DslQuery } from './es_query_dsl'; +/** + * + * @param query + * @returns + * + * @public + */ export function luceneStringToDsl(query: string | any): DslQuery { if (isString(query)) { if (query.trim() === '') { diff --git a/packages/kbn-es-query/src/es_query/migrate_filter.ts b/packages/kbn-es-query/src/es_query/migrate_filter.ts index 9bd78b092fc18..5edab3e042f5c 100644 --- a/packages/kbn-es-query/src/es_query/migrate_filter.ts +++ b/packages/kbn-es-query/src/es_query/migrate_filter.ts @@ -11,6 +11,7 @@ import { getConvertedValueForField } from '../filters'; import { Filter } from '../filters'; import { IndexPatternBase } from './types'; +/** @internal */ export interface DeprecatedMatchPhraseFilter extends Filter { query: { match: { @@ -28,6 +29,7 @@ function isDeprecatedMatchPhraseFilter(filter: any): filter is DeprecatedMatchPh return Boolean(fieldName && get(filter, ['query', 'match', fieldName, 'type']) === 'phrase'); } +/** @internal */ export function migrateFilter(filter: Filter, indexPattern?: IndexPatternBase) { if (isDeprecatedMatchPhraseFilter(filter)) { const fieldName = Object.keys(filter.query.match)[0]; diff --git a/packages/kbn-es-query/src/es_query/types.ts b/packages/kbn-es-query/src/es_query/types.ts index ca6a542779053..d68d9e4a4da22 100644 --- a/packages/kbn-es-query/src/es_query/types.ts +++ b/packages/kbn-es-query/src/es_query/types.ts @@ -8,10 +8,19 @@ import type { estypes } from '@elastic/elasticsearch'; +/** + * A field's sub type + * @public + */ export interface IFieldSubType { multi?: { parent: string }; nested?: { path: string }; } + +/** + * A base interface for an index pattern field + * @public + */ export interface IndexPatternFieldBase { name: string; /** @@ -31,6 +40,10 @@ export interface IndexPatternFieldBase { scripted?: boolean; } +/** + * A base interface for an index pattern + * @public + */ export interface IndexPatternBase { fields: IndexPatternFieldBase[]; id?: string; diff --git a/packages/kbn-es-query/src/filters/build_filters/build_empty_filter.ts b/packages/kbn-es-query/src/filters/build_filters/build_empty_filter.ts index a7945da5829a9..09b58bb15147f 100644 --- a/packages/kbn-es-query/src/filters/build_filters/build_empty_filter.ts +++ b/packages/kbn-es-query/src/filters/build_filters/build_empty_filter.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { Filter, FilterMeta, FilterState, FilterStateStore } from './types'; +import { Filter, FilterMeta, FilterStateStore } from './types'; export const buildEmptyFilter = (isPinned: boolean, index?: string): Filter => { const meta: FilterMeta = { @@ -15,7 +15,7 @@ export const buildEmptyFilter = (isPinned: boolean, index?: string): Filter => { alias: null, index, }; - const $state: FilterState = { + const $state: Filter['$state'] = { store: isPinned ? FilterStateStore.GLOBAL_STATE : FilterStateStore.APP_STATE, }; diff --git a/packages/kbn-es-query/src/filters/build_filters/build_filters.ts b/packages/kbn-es-query/src/filters/build_filters/build_filters.ts index 9beee96fd2ee2..eba7a6a26c545 100644 --- a/packages/kbn-es-query/src/filters/build_filters/build_filters.ts +++ b/packages/kbn-es-query/src/filters/build_filters/build_filters.ts @@ -14,8 +14,22 @@ import { buildRangeFilter } from './range_filter'; import { buildExistsFilter } from './exists_filter'; import type { IndexPatternFieldBase, IndexPatternBase } from '../../es_query'; -import { FilterMeta, FilterStateStore } from './types'; +import { FilterStateStore } from './types'; +/** + * + * @param indexPattern + * @param field + * @param type + * @param negate whether the filter is negated (NOT filter) + * @param disabled whether the filter is disabled andwon't be applied to searches + * @param params + * @param alias a display name for the filter + * @param store whether the filter applies to the current application or should be applied to global context + * @returns + * + * @public + */ export function buildFilter( indexPattern: IndexPatternBase, field: IndexPatternFieldBase, @@ -36,26 +50,6 @@ export function buildFilter( return filter; } -export function buildCustomFilter( - indexPatternString: string, - queryDsl: any, - disabled: boolean, - negate: boolean, - alias: string | null, - store: FilterStateStore -): Filter { - const meta: FilterMeta = { - index: indexPatternString, - type: FILTERS.CUSTOM, - disabled, - negate, - alias, - }; - const filter: Filter = { ...queryDsl, meta }; - filter.$state = { store }; - return filter; -} - function buildBaseFilter( indexPattern: IndexPatternBase, field: IndexPatternFieldBase, diff --git a/packages/kbn-es-query/src/filters/build_filters/custom_filter.ts b/packages/kbn-es-query/src/filters/build_filters/custom_filter.ts index 0dc1fc86d25a1..60a128d58fee3 100644 --- a/packages/kbn-es-query/src/filters/build_filters/custom_filter.ts +++ b/packages/kbn-es-query/src/filters/build_filters/custom_filter.ts @@ -6,8 +6,41 @@ * Side Public License, v 1. */ -import type { Filter } from './types'; +import { Filter, FilterMeta, FILTERS, FilterStateStore } from './types'; +/** @public */ export type CustomFilter = Filter & { query: any; }; + +/** + * + * @param indexPatternString + * @param queryDsl + * @param disabled + * @param negate + * @param alias + * @param store + * @returns + * + * @public + */ +export function buildCustomFilter( + indexPatternString: string, + queryDsl: any, + disabled: boolean, + negate: boolean, + alias: string | null, + store: FilterStateStore +): Filter { + const meta: FilterMeta = { + index: indexPatternString, + type: FILTERS.CUSTOM, + disabled, + negate, + alias, + }; + const filter: Filter = { ...queryDsl, meta }; + filter.$state = { store }; + return filter; +} diff --git a/packages/kbn-es-query/src/filters/build_filters/exists_filter.ts b/packages/kbn-es-query/src/filters/build_filters/exists_filter.ts index fdb4ab548fdc5..3a8935d057f4a 100644 --- a/packages/kbn-es-query/src/filters/build_filters/exists_filter.ts +++ b/packages/kbn-es-query/src/filters/build_filters/exists_filter.ts @@ -6,26 +6,42 @@ * Side Public License, v 1. */ +import { has } from 'lodash'; import type { IndexPatternFieldBase, IndexPatternBase } from '../../es_query'; -import type { Filter, FilterMeta } from './types'; - -export type ExistsFilterMeta = FilterMeta; - -export interface FilterExistsProperty { - field: any; -} +import type { FieldFilter, Filter, FilterMeta } from './types'; +/** @public */ export type ExistsFilter = Filter & { - meta: ExistsFilterMeta; - exists?: FilterExistsProperty; + meta: FilterMeta; + exists?: { + field: string; + }; }; -export const isExistsFilter = (filter: any): filter is ExistsFilter => filter && filter.exists; +/** + * @param filter + * @returns `true` if a filter is an `ExistsFilter` + * + * @public + */ +export const isExistsFilter = (filter: FieldFilter): filter is ExistsFilter => + has(filter, 'exists'); +/** + * @internal + */ export const getExistsFilterField = (filter: ExistsFilter) => { return filter.exists && filter.exists.field; }; +/** + * Builds an `ExistsFilter` + * @param field field to validate the existence of + * @param indexPattern index pattern to look for the field in + * @returns An `ExistsFilter` + * + * @public + */ export const buildExistsFilter = (field: IndexPatternFieldBase, indexPattern: IndexPatternBase) => { return { meta: { diff --git a/packages/kbn-es-query/src/filters/build_filters/geo_bounding_box_filter.ts b/packages/kbn-es-query/src/filters/build_filters/geo_bounding_box_filter.ts index 323c7108ea3e5..9066b695c17fc 100644 --- a/packages/kbn-es-query/src/filters/build_filters/geo_bounding_box_filter.ts +++ b/packages/kbn-es-query/src/filters/build_filters/geo_bounding_box_filter.ts @@ -6,7 +6,8 @@ * Side Public License, v 1. */ -import type { Filter, FilterMeta, LatLon } from './types'; +import { has } from 'lodash'; +import type { FieldFilter, Filter, FilterMeta, LatLon } from './types'; export type GeoBoundingBoxFilterMeta = FilterMeta & { params: { @@ -20,9 +21,18 @@ export type GeoBoundingBoxFilter = Filter & { geo_bounding_box: any; }; -export const isGeoBoundingBoxFilter = (filter: any): filter is GeoBoundingBoxFilter => - filter && filter.geo_bounding_box; +/** + * @param filter + * @returns `true` if a filter is an `GeoBoundingBoxFilter` + * + * @public + */ +export const isGeoBoundingBoxFilter = (filter: FieldFilter): filter is GeoBoundingBoxFilter => + has(filter, 'geo_bounding_box'); +/** + * @internal + */ export const getGeoBoundingBoxFilterField = (filter: GeoBoundingBoxFilter) => { return ( filter.geo_bounding_box && diff --git a/packages/kbn-es-query/src/filters/build_filters/geo_polygon_filter.ts b/packages/kbn-es-query/src/filters/build_filters/geo_polygon_filter.ts index d25f2a87dcd8c..edeccdcf28b26 100644 --- a/packages/kbn-es-query/src/filters/build_filters/geo_polygon_filter.ts +++ b/packages/kbn-es-query/src/filters/build_filters/geo_polygon_filter.ts @@ -6,7 +6,8 @@ * Side Public License, v 1. */ -import type { Filter, FilterMeta, LatLon } from './types'; +import { has } from 'lodash'; +import type { FieldFilter, Filter, FilterMeta, LatLon } from './types'; export type GeoPolygonFilterMeta = FilterMeta & { params: { @@ -19,9 +20,18 @@ export type GeoPolygonFilter = Filter & { geo_polygon: any; }; -export const isGeoPolygonFilter = (filter: any): filter is GeoPolygonFilter => - filter && filter.geo_polygon; +/** + * @param filter + * @returns `true` if a filter is an `GeoPolygonFilter` + * + * @public + */ +export const isGeoPolygonFilter = (filter: FieldFilter): filter is GeoPolygonFilter => + has(filter, 'geo_polygon'); +/** + * @internal + */ export const getGeoPolygonFilterField = (filter: GeoPolygonFilter) => { return ( filter.geo_polygon && Object.keys(filter.geo_polygon).find((key) => key !== 'ignore_unmapped') diff --git a/packages/kbn-es-query/src/filters/build_filters/get_filter_field.ts b/packages/kbn-es-query/src/filters/build_filters/get_filter_field.ts index a949c0f7cd5b1..4ebed12e1237e 100644 --- a/packages/kbn-es-query/src/filters/build_filters/get_filter_field.ts +++ b/packages/kbn-es-query/src/filters/build_filters/get_filter_field.ts @@ -15,6 +15,7 @@ import { getPhraseFilterField, isPhraseFilter } from './phrase_filter'; import { getRangeFilterField, isRangeFilter } from './range_filter'; import type { Filter } from './types'; +/** @internal */ export const getFilterField = (filter: Filter) => { if (isExistsFilter(filter)) { return getExistsFilterField(filter); diff --git a/packages/kbn-es-query/src/filters/build_filters/get_filter_params.ts b/packages/kbn-es-query/src/filters/build_filters/get_filter_params.ts index 65a586db39789..46585acd9efc0 100644 --- a/packages/kbn-es-query/src/filters/build_filters/get_filter_params.ts +++ b/packages/kbn-es-query/src/filters/build_filters/get_filter_params.ts @@ -11,6 +11,9 @@ import type { PhraseFilter } from './phrase_filter'; import type { RangeFilter } from './range_filter'; import { Filter, FILTERS } from './types'; +/** + * @internal used only by the filter bar to create filter pills. + */ export function getFilterParams(filter: Filter) { switch (filter.meta.type) { case FILTERS.PHRASE: diff --git a/packages/kbn-es-query/src/filters/build_filters/match_all_filter.ts b/packages/kbn-es-query/src/filters/build_filters/match_all_filter.ts index 1a3fae4181379..b1b134313b746 100644 --- a/packages/kbn-es-query/src/filters/build_filters/match_all_filter.ts +++ b/packages/kbn-es-query/src/filters/build_filters/match_all_filter.ts @@ -6,10 +6,11 @@ * Side Public License, v 1. */ -import type { Filter, FilterMeta } from './types'; +import { has } from 'lodash'; +import type { FieldFilter, Filter, FilterMeta } from './types'; export interface MatchAllFilterMeta extends FilterMeta { - field: any; + field: string; formattedValue: string; } @@ -18,5 +19,11 @@ export type MatchAllFilter = Filter & { match_all: any; }; -export const isMatchAllFilter = (filter: any): filter is MatchAllFilter => - filter && filter.match_all; +/** + * @param filter + * @returns `true` if a filter is an `MatchAllFilter` + * + * @public + */ +export const isMatchAllFilter = (filter: FieldFilter): filter is MatchAllFilter => + has(filter, 'match_all'); diff --git a/packages/kbn-es-query/src/filters/build_filters/missing_filter.ts b/packages/kbn-es-query/src/filters/build_filters/missing_filter.ts index e52b7753c13a4..8f0364a565d79 100644 --- a/packages/kbn-es-query/src/filters/build_filters/missing_filter.ts +++ b/packages/kbn-es-query/src/filters/build_filters/missing_filter.ts @@ -6,17 +6,30 @@ * Side Public License, v 1. */ -import type { Filter, FilterMeta } from './types'; +import { has } from 'lodash'; +import type { FieldFilter, Filter, FilterMeta } from './types'; export type MissingFilterMeta = FilterMeta; export type MissingFilter = Filter & { meta: MissingFilterMeta; - missing: any; + missing: { + field: string; + }; }; -export const isMissingFilter = (filter: any): filter is MissingFilter => filter && filter.missing; +/** + * @param filter + * @returns `true` if a filter is an `MissingFilter` + * + * @public + */ +export const isMissingFilter = (filter: FieldFilter): filter is MissingFilter => + has(filter, 'missing'); +/** + * @internal + */ export const getMissingFilterField = (filter: MissingFilter) => { return filter.missing && filter.missing.field; }; diff --git a/packages/kbn-es-query/src/filters/build_filters/phrase_filter.ts b/packages/kbn-es-query/src/filters/build_filters/phrase_filter.ts index bc60043d0887e..7b60548f912ba 100644 --- a/packages/kbn-es-query/src/filters/build_filters/phrase_filter.ts +++ b/packages/kbn-es-query/src/filters/build_filters/phrase_filter.ts @@ -6,33 +6,39 @@ * Side Public License, v 1. */ import type { estypes } from '@elastic/elasticsearch'; -import { get, isPlainObject } from 'lodash'; -import type { Filter, FilterMeta } from './types'; +import { has, isPlainObject } from 'lodash'; +import type { FieldFilter, Filter, FilterMeta } from './types'; import type { IndexPatternFieldBase, IndexPatternBase } from '../../es_query'; import { getConvertedValueForField } from './get_converted_value_for_field'; +type PhraseFilterValue = string | number | boolean; + export type PhraseFilterMeta = FilterMeta & { params?: { - query: string; // The unformatted value + query: PhraseFilterValue; // The unformatted value }; - field?: any; - index?: any; + field?: string; + index?: string; }; export type PhraseFilter = Filter & { meta: PhraseFilterMeta; script?: { script: { - source?: any; + source?: string; lang?: estypes.ScriptLanguage; - params: any; + params: { [key: string]: PhraseFilterValue }; }; }; }; -type PhraseFilterValue = string | number | boolean; - -export const isPhraseFilter = (filter: any): filter is PhraseFilter => { +/** + * @param filter + * @returns `true` if a filter is a `PhraseFilter` + * + * @public + */ +export const isPhraseFilter = (filter: FieldFilter): filter is PhraseFilter => { const isMatchPhraseQuery = filter && filter.query && filter.query.match_phrase; const isDeprecatedMatchPhraseQuery = @@ -44,23 +50,42 @@ export const isPhraseFilter = (filter: any): filter is PhraseFilter => { return Boolean(isMatchPhraseQuery || isDeprecatedMatchPhraseQuery); }; -export const isScriptedPhraseFilter = (filter: any): filter is PhraseFilter => - Boolean(get(filter, 'script.script.params.value')); +/** + * @param filter + * @returns `true` if a filter is a scripted `PhrasesFilter` + * + * @public + */ +export const isScriptedPhraseFilter = (filter: FieldFilter): filter is PhraseFilter => + has(filter, 'script.script.params.value'); +/** @internal */ export const getPhraseFilterField = (filter: PhraseFilter) => { const queryConfig = filter.query.match_phrase || filter.query.match; return Object.keys(queryConfig)[0]; }; +/** + * @internal + */ export const getPhraseFilterValue = (filter: PhraseFilter): PhraseFilterValue => { const queryConfig = filter.query.match_phrase || filter.query.match; const queryValue = Object.values(queryConfig)[0] as any; return isPlainObject(queryValue) ? queryValue.query : queryValue; }; +/** + * Creates a filter where the given field matches a given value + * @param field + * @param params + * @param indexPattern + * @returns `PhraseFilter` + * + * @public + */ export const buildPhraseFilter = ( field: IndexPatternFieldBase, - value: any, + value: PhraseFilterValue, indexPattern: IndexPatternBase ): PhraseFilter => { const convertedValue = getConvertedValueForField(field, value); @@ -82,7 +107,8 @@ export const buildPhraseFilter = ( } }; -export const getPhraseScript = (field: IndexPatternFieldBase, value: string) => { +/** @internal */ +export const getPhraseScript = (field: IndexPatternFieldBase, value: PhraseFilterValue) => { const convertedValue = getConvertedValueForField(field, value); const script = buildInlineScriptForPhraseFilter(field); diff --git a/packages/kbn-es-query/src/filters/build_filters/phrases_filter.ts b/packages/kbn-es-query/src/filters/build_filters/phrases_filter.ts index 6f8c3815a5c63..526d3802337ea 100644 --- a/packages/kbn-es-query/src/filters/build_filters/phrases_filter.ts +++ b/packages/kbn-es-query/src/filters/build_filters/phrases_filter.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { Filter, FilterMeta, FILTERS } from './types'; +import { FieldFilter, Filter, FilterMeta, FILTERS } from './types'; import { getPhraseScript } from './phrase_filter'; import type { IndexPatternFieldBase, IndexPatternBase } from '../../es_query'; @@ -19,20 +19,35 @@ export type PhrasesFilter = Filter & { meta: PhrasesFilterMeta; }; -export const isPhrasesFilter = (filter: any): filter is PhrasesFilter => +/** + * @param filter + * @returns `true` if a filter is a `PhrasesFilter` + * + * @public + */ +export const isPhrasesFilter = (filter: FieldFilter): filter is PhrasesFilter => filter?.meta?.type === FILTERS.PHRASES; +/** @internal */ export const getPhrasesFilterField = (filter: PhrasesFilter) => { // Phrases is a newer filter type that has always been created via a constructor that ensures // `meta.key` is set to the field name return filter.meta.key; }; -// Creates a filter where the given field matches one or more of the given values -// params should be an array of values +/** + * Creates a filter where the given field matches one or more of the given values + * params should be an array of values + * @param field + * @param params + * @param indexPattern + * @returns + * + * @public + */ export const buildPhrasesFilter = ( field: IndexPatternFieldBase, - params: any[], + params: string[], indexPattern: IndexPatternBase ) => { const index = indexPattern.id; @@ -41,11 +56,11 @@ export const buildPhrasesFilter = ( let should; if (field.scripted) { - should = params.map((v: any) => ({ + should = params.map((v) => ({ script: getPhraseScript(field, v), })); } else { - should = params.map((v: any) => ({ + should = params.map((v) => ({ match_phrase: { [field.name]: v, }, diff --git a/packages/kbn-es-query/src/filters/build_filters/query_string_filter.ts b/packages/kbn-es-query/src/filters/build_filters/query_string_filter.ts index 4fa084f181827..c083775b8db44 100644 --- a/packages/kbn-es-query/src/filters/build_filters/query_string_filter.ts +++ b/packages/kbn-es-query/src/filters/build_filters/query_string_filter.ts @@ -6,7 +6,8 @@ * Side Public License, v 1. */ -import type { Filter, FilterMeta } from './types'; +import { has } from 'lodash'; +import type { FieldFilter, Filter, FilterMeta } from './types'; export type QueryStringFilterMeta = FilterMeta; @@ -19,10 +20,24 @@ export type QueryStringFilter = Filter & { }; }; -export const isQueryStringFilter = (filter: any): filter is QueryStringFilter => - filter && filter.query && filter.query.query_string; +/** + * @param filter + * @returns `true` if a filter is a `QueryStringFilter` + * + * @public + */ +export const isQueryStringFilter = (filter: FieldFilter): filter is QueryStringFilter => + has(filter, 'query.query_string'); -// Creates a filter corresponding to a raw Elasticsearch query DSL object +/** + * Creates a filter corresponding to a raw Elasticsearch query DSL object + * @param query + * @param index + * @param alias + * @returns `QueryStringFilter` + * + * @public + */ export const buildQueryFilter = (query: QueryStringFilter['query'], index: string, alias: string) => ({ query, diff --git a/packages/kbn-es-query/src/filters/build_filters/range_filter.ts b/packages/kbn-es-query/src/filters/build_filters/range_filter.ts index 6ed560ccc831e..ae26c6ae48db8 100644 --- a/packages/kbn-es-query/src/filters/build_filters/range_filter.ts +++ b/packages/kbn-es-query/src/filters/build_filters/range_filter.ts @@ -6,8 +6,8 @@ * Side Public License, v 1. */ import type { estypes } from '@elastic/elasticsearch'; -import { map, reduce, mapValues, get, keys, pickBy } from 'lodash'; -import type { Filter, FilterMeta } from './types'; +import { map, reduce, mapValues, has, get, keys, pickBy } from 'lodash'; +import type { FieldFilter, Filter, FilterMeta } from './types'; import type { IndexPatternBase, IndexPatternFieldBase } from '../../es_query'; const OPERANDS_IN_RANGE = 2; @@ -32,6 +32,10 @@ const dateComparators = { lt: 'boolean lt(Supplier s, def v) {return s.get().toInstant().isBefore(Instant.parse(v))}', }; +/** + * An interface for all possible range filter params + * @public + */ export interface RangeFilterParams { from?: number | string; to?: number | string; @@ -49,7 +53,7 @@ const hasRangeKeys = (params: RangeFilterParams) => export type RangeFilterMeta = FilterMeta & { params: RangeFilterParams; - field?: any; + field?: string; formattedValue?: string; }; @@ -57,6 +61,9 @@ export interface EsRangeFilter { range: { [key: string]: RangeFilterParams }; } +/** + * @public + */ export type RangeFilter = Filter & EsRangeFilter & { meta: RangeFilterMeta; @@ -64,20 +71,36 @@ export type RangeFilter = Filter & script: { params: any; lang: estypes.ScriptLanguage; - source: any; + source: string; }; }; match_all?: any; }; -export const isRangeFilter = (filter: any): filter is RangeFilter => filter && filter.range; - -export const isScriptedRangeFilter = (filter: any): filter is RangeFilter => { +/** + * @param filter + * @returns `true` if a filter is an `RangeFilter` + * + * @public + */ +export const isRangeFilter = (filter?: FieldFilter): filter is RangeFilter => has(filter, 'range'); + +/** + * + * @param filter + * @returns `true` if a filter is a scripted `RangeFilter` + * + * @public + */ +export const isScriptedRangeFilter = (filter: FieldFilter): filter is RangeFilter => { const params: RangeFilterParams = get(filter, 'script.script.params', {}); return hasRangeKeys(params); }; +/** + * @internal + */ export const getRangeFilterField = (filter: RangeFilter) => { return filter.range && Object.keys(filter.range)[0]; }; @@ -85,8 +108,18 @@ export const getRangeFilterField = (filter: RangeFilter) => { const formatValue = (params: any[]) => map(params, (val: any, key: string) => get(operators, key) + val).join(' '); -// Creates a filter where the value for the given field is in the given range -// params should be an object containing `lt`, `lte`, `gt`, and/or `gte` +/** + * Creates a filter where the value for the given field is in the given range + * params should be an object containing `lt`, `lte`, `gt`, and/or `gte` + * + * @param field + * @param params + * @param indexPattern + * @param formattedValue + * @returns + * + * @public + */ export const buildRangeFilter = ( field: IndexPatternFieldBase, params: RangeFilterParams, @@ -134,6 +167,9 @@ export const buildRangeFilter = ( return filter as RangeFilter; }; +/** + * @internal + */ export const getRangeScript = (field: IndexPatternFieldBase, params: RangeFilterParams) => { const knownParams = mapValues( pickBy(params, (val, key: any) => key in operators), diff --git a/packages/kbn-es-query/src/filters/build_filters/types.ts b/packages/kbn-es-query/src/filters/build_filters/types.ts index 13e4a941b9166..4bf53303c1544 100644 --- a/packages/kbn-es-query/src/filters/build_filters/types.ts +++ b/packages/kbn-es-query/src/filters/build_filters/types.ts @@ -15,7 +15,10 @@ import { RangeFilter } from './range_filter'; import { MatchAllFilter } from './match_all_filter'; import { MissingFilter } from './missing_filter'; -// Any filter associated with a field (used in the filter bar/editor) +/** + * A common type for filters supported by this package + * @public + **/ export type FieldFilter = | ExistsFilter | GeoBoundingBoxFilter @@ -26,6 +29,16 @@ export type FieldFilter = | MatchAllFilter | MissingFilter; +/** + * A common type for filters supported by this package + * @public + **/ +export type FilterParams = any; + +/** + * An enum of all types of filters supported by this package + * @public + */ export enum FILTERS { CUSTOM = 'custom', PHRASES = 'phrases', @@ -41,16 +54,15 @@ export enum FILTERS { SPATIAL_FILTER = 'spatial_filter', } +/** + * An enum to denote whether a filter is specific to an application's context or whether it should be applied globally. + * @public + */ export enum FilterStateStore { APP_STATE = 'appState', GLOBAL_STATE = 'globalState', } -// eslint-disable-next-line -export type FilterState = { - store: FilterStateStore; -}; - // eslint-disable-next-line export type FilterMeta = { alias: string | null; @@ -69,7 +81,9 @@ export type FilterMeta = { // eslint-disable-next-line export type Filter = { - $state?: FilterState; + $state?: { + store: FilterStateStore; + }; meta: FilterMeta; query?: any; // TODO: can we use the Query type her? }; @@ -80,6 +94,10 @@ export type Query = { language: string; }; +/** + * An interface for a latitude-longitude pair + * @public + */ export interface LatLon { lat: number; lon: number; diff --git a/packages/kbn-es-query/src/filters/helpers/compare_filters.ts b/packages/kbn-es-query/src/filters/helpers/compare_filters.ts index 1ca9143247eea..ffc7461bc6cdd 100644 --- a/packages/kbn-es-query/src/filters/helpers/compare_filters.ts +++ b/packages/kbn-es-query/src/filters/helpers/compare_filters.ts @@ -9,6 +9,7 @@ import { defaults, isEqual, omit, map } from 'lodash'; import type { FilterMeta, Filter } from '../build_filters'; +/** @public */ export interface FilterCompareOptions { index?: boolean; disabled?: boolean; @@ -19,6 +20,7 @@ export interface FilterCompareOptions { /** * Include disabled, negate and store when comparing filters + * @public */ export const COMPARE_ALL_OPTIONS: FilterCompareOptions = { index: true, @@ -60,6 +62,8 @@ const mapFilterArray = ( * @param {FilterCompareOptions} comparatorOptions Parameters to use for comparison * * @returns {bool} Filters are the same + * + * @public */ export const compareFilters = ( first: Filter | Filter[], diff --git a/packages/kbn-es-query/src/filters/helpers/dedup_filters.ts b/packages/kbn-es-query/src/filters/helpers/dedup_filters.ts index 564354d012371..f43ef31837ae2 100644 --- a/packages/kbn-es-query/src/filters/helpers/dedup_filters.ts +++ b/packages/kbn-es-query/src/filters/helpers/dedup_filters.ts @@ -18,6 +18,8 @@ import { compareFilters, FilterCompareOptions } from './compare_filters'; * @param {object} comparatorOptions - Parameters to use for comparison * * @returns {object} An array of filters that were not in existing + * + * @internal */ export const dedupFilters = ( existingFilters: Filter[], diff --git a/packages/kbn-es-query/src/filters/helpers/meta_filter.ts b/packages/kbn-es-query/src/filters/helpers/meta_filter.ts index 91f5186570195..61b89d45d1962 100644 --- a/packages/kbn-es-query/src/filters/helpers/meta_filter.ts +++ b/packages/kbn-es-query/src/filters/helpers/meta_filter.ts @@ -9,10 +9,32 @@ import { omit, get } from 'lodash'; import { Filter, FilterStateStore } from '../build_filters'; +/** + * + * @param filter + * @returns `true` if the filter should be applied to global scope + * + * @public + */ export const isFilterPinned = (filter: Filter) => { return filter.$state && filter.$state.store === FilterStateStore.GLOBAL_STATE; }; +/** + * @param filter + * @returns `true` if the filter is disabled + * + * @public + */ +export const isFilterDisabled = (filter: Filter): boolean => get(filter, 'meta.disabled', false); + +/** + * + * @param filter + * @returns A copy of the filter with a toggled disabled state + * + * @public + */ export const toggleFilterDisabled = (filter: Filter) => { const disabled = !filter.meta.disabled; const meta = { ...filter.meta, disabled }; @@ -20,6 +42,13 @@ export const toggleFilterDisabled = (filter: Filter) => { return { ...filter, meta }; }; +/** + * + * @param filter + * @returns A copy of the filter with a toggled negated state + * + * @public + */ export const toggleFilterNegated = (filter: Filter) => { const negate = !filter.meta.negate; const meta = { ...filter.meta, negate }; @@ -27,6 +56,13 @@ export const toggleFilterNegated = (filter: Filter) => { return { ...filter, meta }; }; +/** + * + * @param filter + * @returns A copy of the filter with a toggled pinned state (toggles store from app to global and vice versa) + * + * @public + */ export const toggleFilterPinned = (filter: Filter) => { const store = isFilterPinned(filter) ? FilterStateStore.APP_STATE : FilterStateStore.GLOBAL_STATE; const $state = { ...filter.$state, store }; @@ -34,18 +70,48 @@ export const toggleFilterPinned = (filter: Filter) => { return { ...filter, $state }; }; +/** + * @param filter + * @returns An enabled copy of the filter + * + * @public + */ export const enableFilter = (filter: Filter) => !filter.meta.disabled ? filter : toggleFilterDisabled(filter); +/** + * @param filter + * @returns A disabled copy of the filter + * + * @public + */ export const disableFilter = (filter: Filter) => filter.meta.disabled ? filter : toggleFilterDisabled(filter); +/** + * @param filter + * @returns A pinned (global) copy of the filter + * + * @public + */ export const pinFilter = (filter: Filter) => isFilterPinned(filter) ? filter : toggleFilterPinned(filter); +/** + * @param filter + * @returns An unpinned (app scoped) copy of the filter + * + * @public + */ export const unpinFilter = (filter: Filter) => !isFilterPinned(filter) ? filter : toggleFilterPinned(filter); +/** + * @param {unknown} filter + * @returns `true` if the given object is a filter + * + * @public + */ export const isFilter = (x: unknown): x is Filter => !!x && typeof x === 'object' && @@ -53,6 +119,12 @@ export const isFilter = (x: unknown): x is Filter => typeof (x as Filter).meta === 'object' && typeof (x as Filter).meta.disabled === 'boolean'; +/** + * @param {unknown} filters + * @returns `true` if the given object is an array of filters + * + * @public + */ export const isFilters = (x: unknown): x is Filter[] => Array.isArray(x) && !x.find((y) => !isFilter(y)); @@ -60,7 +132,7 @@ export const isFilters = (x: unknown): x is Filter[] => * Clean out any invalid attributes from the filters * @param {object} filter The filter to clean * @returns {object} + * + * @public */ export const cleanFilter = (filter: Filter): Filter => omit(filter, ['meta', '$state']) as Filter; - -export const isFilterDisabled = (filter: Filter): boolean => get(filter, 'meta.disabled', false); diff --git a/packages/kbn-es-query/src/filters/helpers/only_disabled.ts b/packages/kbn-es-query/src/filters/helpers/only_disabled.ts index d090c411934f7..d605d8b0be628 100644 --- a/packages/kbn-es-query/src/filters/helpers/only_disabled.ts +++ b/packages/kbn-es-query/src/filters/helpers/only_disabled.ts @@ -14,8 +14,9 @@ const isEnabled = (f: Filter) => f && f.meta && !f.meta.disabled; /** * Checks to see if only disabled filters have been changed - * * @returns {bool} Only disabled filters + * + * @public */ export const onlyDisabledFiltersChanged = (newFilters?: Filter[], oldFilters?: Filter[]) => { // If it's the same - compare only enabled filters diff --git a/packages/kbn-es-query/src/filters/helpers/uniq_filters.ts b/packages/kbn-es-query/src/filters/helpers/uniq_filters.ts index e502cd5dbba5d..1e388ed7a8c96 100644 --- a/packages/kbn-es-query/src/filters/helpers/uniq_filters.ts +++ b/packages/kbn-es-query/src/filters/helpers/uniq_filters.ts @@ -15,8 +15,8 @@ import { dedupFilters } from './dedup_filters'; * * @param {array} filters The filters to remove duplicates from * @param {object} comparatorOptions - Parameters to use for comparison - * @returns {object} The original filters array with duplicates removed + * @public */ export const uniqFilters = (filters: Filter[], comparatorOptions: any = {}) => { let results: Filter[] = []; diff --git a/packages/kbn-es-query/src/filters/index.ts b/packages/kbn-es-query/src/filters/index.ts index 57139dc5110a4..61ee6ce6f0da6 100644 --- a/packages/kbn-es-query/src/filters/index.ts +++ b/packages/kbn-es-query/src/filters/index.ts @@ -59,7 +59,6 @@ export { export { Query, Filter, - FilterState, LatLon, FieldFilter, FilterMeta, diff --git a/packages/kbn-es-query/src/kuery/kuery_syntax_error.ts b/packages/kbn-es-query/src/kuery/kuery_syntax_error.ts index aa4440579eb49..e7ea0b5c2dd34 100644 --- a/packages/kbn-es-query/src/kuery/kuery_syntax_error.ts +++ b/packages/kbn-es-query/src/kuery/kuery_syntax_error.ts @@ -52,6 +52,10 @@ interface KQLSyntaxErrorExpected { type: string; } +/** + * A type of error indicating KQL syntax errors + * @public + */ export class KQLSyntaxError extends Error { shortMessage: string; diff --git a/packages/kbn-es-query/src/kuery/node_types/index.ts b/packages/kbn-es-query/src/kuery/node_types/index.ts index dc284bd64273b..a9298f27d28be 100644 --- a/packages/kbn-es-query/src/kuery/node_types/index.ts +++ b/packages/kbn-es-query/src/kuery/node_types/index.ts @@ -15,6 +15,9 @@ import { NodeTypes } from './types'; export { NodeTypes }; export { nodeBuilder } from './node_builder'; +/** + * @public + */ export const nodeTypes: NodeTypes = { // This requires better typing of the different typings and their return types. // @ts-ignore diff --git a/packages/kbn-es-query/src/kuery/types.ts b/packages/kbn-es-query/src/kuery/types.ts index fe1496ead7ab6..f188eab61c546 100644 --- a/packages/kbn-es-query/src/kuery/types.ts +++ b/packages/kbn-es-query/src/kuery/types.ts @@ -8,13 +8,19 @@ import { NodeTypes } from './node_types'; +/** @public */ export interface KueryNode { type: keyof NodeTypes; [key: string]: any; } +/** + * TODO: Replace with real type + * @public + */ export type DslQuery = any; +/** @internal */ export interface KueryParseOptions { helpers: { [key: string]: any; diff --git a/packages/kbn-es-query/src/utils.ts b/packages/kbn-es-query/src/utils.ts index 5e8d60a4b66fe..48d17e75e346c 100644 --- a/packages/kbn-es-query/src/utils.ts +++ b/packages/kbn-es-query/src/utils.ts @@ -8,6 +8,7 @@ import moment from 'moment-timezone'; +/** @internal */ export function getTimeZoneFromSettings(dateFormatTZ: string) { const detectedTimezone = moment.tz.guess(); diff --git a/src/core/public/fatal_errors/fatal_errors_service.tsx b/src/core/public/fatal_errors/fatal_errors_service.tsx index 52ec32b1d2d3d..975c0160d83b2 100644 --- a/src/core/public/fatal_errors/fatal_errors_service.tsx +++ b/src/core/public/fatal_errors/fatal_errors_service.tsx @@ -51,7 +51,7 @@ export interface FatalErrorsSetup { */ export type FatalErrorsStart = FatalErrorsSetup; -/** @interal */ +/** @internal */ export class FatalErrorsService { private readonly errorInfo$ = new Rx.ReplaySubject(); private fatalErrors?: FatalErrorsSetup; diff --git a/src/plugins/data/public/index.ts b/src/plugins/data/public/index.ts index e896fb9a5d4e2..e3ecacfbda5ad 100644 --- a/src/plugins/data/public/index.ts +++ b/src/plugins/data/public/index.ts @@ -6,19 +6,15 @@ * Side Public License, v 1. */ -/* - * esQuery and esKuery: - */ - import { PluginInitializerContext } from '../../../core/public'; import { ConfigSchema } from '../config'; +export * from './deprecated'; + /* * Filters: */ -export * from './deprecated'; - export { getEsQueryConfig } from '../common'; export { FilterLabel, FilterItem } from './ui'; export { getDisplayValueFromFilter, generateFilters, extractTimeRange } from './query'; diff --git a/src/plugins/data/public/public.api.md b/src/plugins/data/public/public.api.md index ad1db8c1a4b6e..7409163c5d766 100644 --- a/src/plugins/data/public/public.api.md +++ b/src/plugins/data/public/public.api.md @@ -750,18 +750,18 @@ export const esFilters: { FILTERS: typeof import("@kbn/es-query").FILTERS; FilterStateStore: typeof FilterStateStore; buildEmptyFilter: (isPinned: boolean, index?: string | undefined) => import("@kbn/es-query").Filter; - buildPhrasesFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, params: any[], indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").PhrasesFilter; + buildPhrasesFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, params: string[], indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").PhrasesFilter; buildExistsFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").ExistsFilter; - buildPhraseFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, value: any, indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").PhraseFilter; + buildPhraseFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, value: string | number | boolean, indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").PhraseFilter; buildQueryFilter: (query: any, index: string, alias: string) => import("@kbn/es-query/target_types/filters/build_filters").QueryStringFilter; buildRangeFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, params: import("@kbn/es-query").RangeFilterParams, indexPattern: import("@kbn/es-query").IndexPatternBase, formattedValue?: string | undefined) => import("@kbn/es-query").RangeFilter; - isPhraseFilter: (filter: any) => filter is import("@kbn/es-query").PhraseFilter; - isExistsFilter: (filter: any) => filter is import("@kbn/es-query").ExistsFilter; - isPhrasesFilter: (filter: any) => filter is import("@kbn/es-query").PhrasesFilter; - isRangeFilter: (filter: any) => filter is import("@kbn/es-query").RangeFilter; - isMatchAllFilter: (filter: any) => filter is import("@kbn/es-query").MatchAllFilter; - isMissingFilter: (filter: any) => filter is import("@kbn/es-query").MissingFilter; - isQueryStringFilter: (filter: any) => filter is import("@kbn/es-query/target_types/filters/build_filters").QueryStringFilter; + isPhraseFilter: (filter: import("@kbn/es-query").FieldFilter) => filter is import("@kbn/es-query").PhraseFilter; + isExistsFilter: (filter: import("@kbn/es-query").FieldFilter) => filter is import("@kbn/es-query").ExistsFilter; + isPhrasesFilter: (filter: import("@kbn/es-query").FieldFilter) => filter is import("@kbn/es-query").PhrasesFilter; + isRangeFilter: (filter?: import("@kbn/es-query").ExistsFilter | import("@kbn/es-query").GeoPolygonFilter | import("@kbn/es-query").PhrasesFilter | import("@kbn/es-query").PhraseFilter | import("@kbn/es-query").MatchAllFilter | import("@kbn/es-query").MissingFilter | import("@kbn/es-query").RangeFilter | import("@kbn/es-query").GeoBoundingBoxFilter | undefined) => filter is import("@kbn/es-query").RangeFilter; + isMatchAllFilter: (filter: import("@kbn/es-query").FieldFilter) => filter is import("@kbn/es-query").MatchAllFilter; + isMissingFilter: (filter: import("@kbn/es-query").FieldFilter) => filter is import("@kbn/es-query").MissingFilter; + isQueryStringFilter: (filter: import("@kbn/es-query").FieldFilter) => filter is import("@kbn/es-query/target_types/filters/build_filters").QueryStringFilter; isFilterPinned: (filter: import("@kbn/es-query").Filter) => boolean | undefined; toggleFilterNegated: (filter: import("@kbn/es-query").Filter) => { meta: { @@ -776,7 +776,9 @@ export const esFilters: { params?: any; value?: string | undefined; }; - $state?: import("@kbn/es-query").FilterState | undefined; + $state?: { + store: FilterStateStore; + } | undefined; query?: any; }; disableFilter: (filter: import("@kbn/es-query").Filter) => import("@kbn/es-query").Filter; @@ -2620,41 +2622,41 @@ export interface WaitUntilNextSessionCompletesOptions { // src/plugins/data/public/deprecated.ts:93:23 - (ae-forgotten-export) The symbol "convertRangeFilterToTimeRangeString" needs to be exported by the entry point index.d.ts // src/plugins/data/public/deprecated.ts:93:23 - (ae-forgotten-export) The symbol "extractTimeFilter" needs to be exported by the entry point index.d.ts // src/plugins/data/public/field_formats/field_formats_service.ts:51:3 - (ae-forgotten-export) The symbol "FormatFactory" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:57:26 - (ae-forgotten-export) The symbol "FieldFormatsRegistry" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:57:26 - (ae-forgotten-export) The symbol "BoolFormat" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:57:26 - (ae-forgotten-export) The symbol "BytesFormat" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:57:26 - (ae-forgotten-export) The symbol "ColorFormat" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:57:26 - (ae-forgotten-export) The symbol "DurationFormat" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:57:26 - (ae-forgotten-export) The symbol "IpFormat" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:57:26 - (ae-forgotten-export) The symbol "NumberFormat" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:57:26 - (ae-forgotten-export) The symbol "PercentFormat" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:57:26 - (ae-forgotten-export) The symbol "RelativeDateFormat" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:57:26 - (ae-forgotten-export) The symbol "SourceFormat" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:57:26 - (ae-forgotten-export) The symbol "StaticLookupFormat" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:57:26 - (ae-forgotten-export) The symbol "UrlFormat" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:57:26 - (ae-forgotten-export) The symbol "StringFormat" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:57:26 - (ae-forgotten-export) The symbol "TruncateFormat" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:57:26 - (ae-forgotten-export) The symbol "HistogramFormat" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:100:23 - (ae-forgotten-export) The symbol "datatableToCSV" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:127:27 - (ae-forgotten-export) The symbol "isFilterable" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:127:27 - (ae-forgotten-export) The symbol "isNestedField" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:127:27 - (ae-forgotten-export) The symbol "validateIndexPattern" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:127:27 - (ae-forgotten-export) The symbol "flattenHitWrapper" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:127:27 - (ae-forgotten-export) The symbol "formatHitProvider" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:298:20 - (ae-forgotten-export) The symbol "getResponseInspectorStats" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:298:20 - (ae-forgotten-export) The symbol "tabifyAggResponse" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:298:20 - (ae-forgotten-export) The symbol "tabifyGetColumns" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:300:1 - (ae-forgotten-export) The symbol "CidrMask" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:301:1 - (ae-forgotten-export) The symbol "dateHistogramInterval" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:310:1 - (ae-forgotten-export) The symbol "InvalidEsCalendarIntervalError" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:311:1 - (ae-forgotten-export) The symbol "InvalidEsIntervalFormatError" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:312:1 - (ae-forgotten-export) The symbol "IpAddress" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:313:1 - (ae-forgotten-export) The symbol "isDateHistogramBucketAggConfig" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:317:1 - (ae-forgotten-export) The symbol "isValidEsInterval" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:318:1 - (ae-forgotten-export) The symbol "isValidInterval" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:321:1 - (ae-forgotten-export) The symbol "parseInterval" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:322:1 - (ae-forgotten-export) The symbol "propFilter" needs to be exported by the entry point index.d.ts -// src/plugins/data/public/index.ts:325:1 - (ae-forgotten-export) The symbol "toAbsoluteDates" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:53:26 - (ae-forgotten-export) The symbol "FieldFormatsRegistry" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:53:26 - (ae-forgotten-export) The symbol "BoolFormat" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:53:26 - (ae-forgotten-export) The symbol "BytesFormat" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:53:26 - (ae-forgotten-export) The symbol "ColorFormat" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:53:26 - (ae-forgotten-export) The symbol "DurationFormat" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:53:26 - (ae-forgotten-export) The symbol "IpFormat" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:53:26 - (ae-forgotten-export) The symbol "NumberFormat" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:53:26 - (ae-forgotten-export) The symbol "PercentFormat" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:53:26 - (ae-forgotten-export) The symbol "RelativeDateFormat" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:53:26 - (ae-forgotten-export) The symbol "SourceFormat" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:53:26 - (ae-forgotten-export) The symbol "StaticLookupFormat" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:53:26 - (ae-forgotten-export) The symbol "UrlFormat" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:53:26 - (ae-forgotten-export) The symbol "StringFormat" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:53:26 - (ae-forgotten-export) The symbol "TruncateFormat" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:53:26 - (ae-forgotten-export) The symbol "HistogramFormat" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:96:23 - (ae-forgotten-export) The symbol "datatableToCSV" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:123:27 - (ae-forgotten-export) The symbol "isFilterable" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:123:27 - (ae-forgotten-export) The symbol "isNestedField" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:123:27 - (ae-forgotten-export) The symbol "validateIndexPattern" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:123:27 - (ae-forgotten-export) The symbol "flattenHitWrapper" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:123:27 - (ae-forgotten-export) The symbol "formatHitProvider" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:294:20 - (ae-forgotten-export) The symbol "getResponseInspectorStats" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:294:20 - (ae-forgotten-export) The symbol "tabifyAggResponse" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:294:20 - (ae-forgotten-export) The symbol "tabifyGetColumns" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:296:1 - (ae-forgotten-export) The symbol "CidrMask" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:297:1 - (ae-forgotten-export) The symbol "dateHistogramInterval" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:306:1 - (ae-forgotten-export) The symbol "InvalidEsCalendarIntervalError" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:307:1 - (ae-forgotten-export) The symbol "InvalidEsIntervalFormatError" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:308:1 - (ae-forgotten-export) The symbol "IpAddress" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:309:1 - (ae-forgotten-export) The symbol "isDateHistogramBucketAggConfig" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:313:1 - (ae-forgotten-export) The symbol "isValidEsInterval" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:314:1 - (ae-forgotten-export) The symbol "isValidInterval" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:317:1 - (ae-forgotten-export) The symbol "parseInterval" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:318:1 - (ae-forgotten-export) The symbol "propFilter" needs to be exported by the entry point index.d.ts +// src/plugins/data/public/index.ts:321:1 - (ae-forgotten-export) The symbol "toAbsoluteDates" needs to be exported by the entry point index.d.ts // src/plugins/data/public/search/session/session_service.ts:62:5 - (ae-forgotten-export) The symbol "UrlGeneratorStateMapping" needs to be exported by the entry point index.d.ts // (No @packageDocumentation comment for this package) diff --git a/src/plugins/data/server/server.api.md b/src/plugins/data/server/server.api.md index 08159a4025b6d..2700cb1ebc659 100644 --- a/src/plugins/data/server/server.api.md +++ b/src/plugins/data/server/server.api.md @@ -395,8 +395,8 @@ export const esFilters: { buildEmptyFilter: (isPinned: boolean, index?: string | undefined) => import("@kbn/es-query").Filter; buildExistsFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").ExistsFilter; buildFilter: typeof import("@kbn/es-query").buildFilter; - buildPhraseFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, value: any, indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").PhraseFilter; - buildPhrasesFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, params: any[], indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").PhrasesFilter; + buildPhraseFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, value: string | number | boolean, indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").PhraseFilter; + buildPhrasesFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, params: string[], indexPattern: import("@kbn/es-query").IndexPatternBase) => import("@kbn/es-query").PhrasesFilter; buildRangeFilter: (field: import("@kbn/es-query").IndexPatternFieldBase, params: import("@kbn/es-query").RangeFilterParams, indexPattern: import("@kbn/es-query").IndexPatternBase, formattedValue?: string | undefined) => import("@kbn/es-query").RangeFilter; isFilterDisabled: (filter: import("@kbn/es-query").Filter) => boolean; }; diff --git a/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts b/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts index 9b637ab4bab99..3e85c5db28a6c 100644 --- a/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts +++ b/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts @@ -87,7 +87,7 @@ export class ESTooltipProperty implements ITooltipProperty { existsFilter.meta.negate = true; return [existsFilter]; } else { - return [esFilters.buildPhraseFilter(indexPatternField, value, this._indexPattern)]; + return [esFilters.buildPhraseFilter(indexPatternField, value as string, this._indexPattern)]; } } } diff --git a/x-pack/plugins/observability/public/components/shared/filter_value_label/filter_value_label.tsx b/x-pack/plugins/observability/public/components/shared/filter_value_label/filter_value_label.tsx index 82392b5c23bf9..9e7b96b02206f 100644 --- a/x-pack/plugins/observability/public/components/shared/filter_value_label/filter_value_label.tsx +++ b/x-pack/plugins/observability/public/components/shared/filter_value_label/filter_value_label.tsx @@ -28,7 +28,7 @@ export function buildFilterLabel({ const filter = value instanceof Array && value.length > 1 ? esFilters.buildPhrasesFilter(indexField, value, indexPattern) - : esFilters.buildPhraseFilter(indexField, value, indexPattern); + : esFilters.buildPhraseFilter(indexField, value as string, indexPattern); filter.meta.type = value instanceof Array && value.length > 1 ? 'phrases' : 'phrase'; From 1b315bb01d6b97793c6993d08e04789f5aaaa4bd Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Mon, 2 Aug 2021 12:59:56 +0200 Subject: [PATCH 35/40] [Lens] Fix suffix field format leaks to index pattern management (#107139) --- x-pack/plugins/lens/common/suffix_formatter/index.ts | 1 + .../lens/common/suffix_formatter/suffix_formatter.test.ts | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/x-pack/plugins/lens/common/suffix_formatter/index.ts b/x-pack/plugins/lens/common/suffix_formatter/index.ts index 12a4e02a81ef2..97fa8c067331e 100644 --- a/x-pack/plugins/lens/common/suffix_formatter/index.ts +++ b/x-pack/plugins/lens/common/suffix_formatter/index.ts @@ -31,6 +31,7 @@ export const unitSuffixesLong: Record = { export function getSuffixFormatter(formatFactory: FormatFactory): FieldFormatInstanceType { return class SuffixFormatter extends FieldFormat { static id = 'suffix'; + static hidden = true; // Don't want this format to appear in index pattern editor static title = i18n.translate('xpack.lens.fieldFormats.suffix.title', { defaultMessage: 'Suffix', }); diff --git a/x-pack/plugins/lens/common/suffix_formatter/suffix_formatter.test.ts b/x-pack/plugins/lens/common/suffix_formatter/suffix_formatter.test.ts index c4379bdd1fb34..d08908ecde417 100644 --- a/x-pack/plugins/lens/common/suffix_formatter/suffix_formatter.test.ts +++ b/x-pack/plugins/lens/common/suffix_formatter/suffix_formatter.test.ts @@ -42,4 +42,11 @@ describe('suffix formatter', () => { expect(result).toEqual(''); }); + + it('should be a hidden formatter', () => { + const convertMock = jest.fn((x) => ''); + const formatFactory = jest.fn(() => ({ convert: convertMock })); + const SuffixFormatter = getSuffixFormatter((formatFactory as unknown) as FormatFactory); + expect(SuffixFormatter.hidden).toBe(true); + }); }); From f27c94c118b6eeeb413084a5c9c289712775f858 Mon Sep 17 00:00:00 2001 From: Stratoula Kalafateli Date: Mon, 2 Aug 2021 14:32:24 +0300 Subject: [PATCH 36/40] [Lens] Updates UI terminology (#106983) * [Lens] Update UI terminology * Change the translation key Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../editor_frame/config_panel/config_panel.tsx | 2 +- .../editor_frame/workspace_panel/chart_switch.tsx | 6 +++--- .../public/indexpattern_datasource/change_indexpattern.tsx | 2 +- .../lens/public/indexpattern_datasource/datapanel.tsx | 2 +- .../lens/public/pie_visualization/render_function.tsx | 2 +- x-pack/plugins/lens/public/types.ts | 2 +- x-pack/plugins/translations/translations/ja-JP.json | 6 ------ x-pack/plugins/translations/translations/zh-CN.json | 6 ------ 8 files changed, 8 insertions(+), 20 deletions(-) diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/config_panel.tsx b/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/config_panel.tsx index c7147e75af59a..d4a9870056b34 100644 --- a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/config_panel.tsx +++ b/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/config_panel.tsx @@ -199,7 +199,7 @@ export function LayerPanels( })} content={i18n.translate('xpack.lens.xyChart.addLayerTooltip', { defaultMessage: - 'Use multiple layers to combine chart types or visualize different index patterns.', + 'Use multiple layers to combine visualization types or visualize different index patterns.', })} position="bottom" > diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/chart_switch.tsx b/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/chart_switch.tsx index f948ec6a59687..314989ecc9758 100644 --- a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/chart_switch.tsx +++ b/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/chart_switch.tsx @@ -370,7 +370,7 @@ export const ChartSwitch = memo(function ChartSwitch(props: Props) { 'xpack.lens.chartSwitch.dataLossDescription', { defaultMessage: - 'Selecting this chart type will result in a partial loss of currently applied configuration selections.', + 'Selecting this visualization type will result in a partial loss of currently applied configuration selections.', } )} iconProps={{ @@ -439,8 +439,8 @@ export const ChartSwitch = memo(function ChartSwitch(props: Props) { - {i18n.translate('xpack.lens.configPanel.chartType', { - defaultMessage: 'Chart type', + {i18n.translate('xpack.lens.configPanel.visualizationType', { + defaultMessage: 'Visualization type', })} diff --git a/x-pack/plugins/lens/public/indexpattern_datasource/change_indexpattern.tsx b/x-pack/plugins/lens/public/indexpattern_datasource/change_indexpattern.tsx index 0a41e7e65212a..e643ea12528ee 100644 --- a/x-pack/plugins/lens/public/indexpattern_datasource/change_indexpattern.tsx +++ b/x-pack/plugins/lens/public/indexpattern_datasource/change_indexpattern.tsx @@ -70,7 +70,7 @@ export function ChangeIndexPattern({
{i18n.translate('xpack.lens.indexPattern.changeIndexPatternTitle', { - defaultMessage: 'Change index pattern', + defaultMessage: 'Index pattern', })} Date: Mon, 2 Aug 2021 13:40:22 +0200 Subject: [PATCH 37/40] [Discover] Improve functional saved query test to prevent flakiness (#107204) --- test/functional/services/saved_query_management_component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/services/saved_query_management_component.ts b/test/functional/services/saved_query_management_component.ts index decf1618c7879..37c6a45557f2f 100644 --- a/test/functional/services/saved_query_management_component.ts +++ b/test/functional/services/saved_query_management_component.ts @@ -138,7 +138,7 @@ export class SavedQueryManagementComponentService extends FtrService { async savedQueryExist(title: string) { await this.openSavedQueryManagementComponent(); - const exists = this.testSubjects.exists(`~load-saved-query-${title}-button`); + const exists = await this.testSubjects.exists(`~load-saved-query-${title}-button`); await this.closeSavedQueryManagementComponent(); return exists; } From 7e12ea84d5c8406e64de052cd3dc7b97916ff1ab Mon Sep 17 00:00:00 2001 From: Matthew Kime Date: Mon, 2 Aug 2021 07:28:37 -0500 Subject: [PATCH 38/40] use IndexPattern instead of IIndexPattern (#107198) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../application/angular/doc_table/create_doc_table_react.tsx | 4 ++-- src/plugins/discover/public/application/embeddable/types.ts | 4 ++-- src/plugins/discover/public/kibana_services.ts | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/plugins/discover/public/application/angular/doc_table/create_doc_table_react.tsx b/src/plugins/discover/public/application/angular/doc_table/create_doc_table_react.tsx index 681418c1bd7cf..73a67310bf4be 100644 --- a/src/plugins/discover/public/application/angular/doc_table/create_doc_table_react.tsx +++ b/src/plugins/discover/public/application/angular/doc_table/create_doc_table_react.tsx @@ -12,7 +12,7 @@ import React, { useRef, useEffect, useState, useCallback } from 'react'; import type { estypes } from '@elastic/elasticsearch'; import { EuiButtonEmpty } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n/react'; -import { getServices, IIndexPattern } from '../../../kibana_services'; +import { getServices, IndexPattern } from '../../../kibana_services'; import { IndexPatternField } from '../../../../../data/common'; import { SkipBottomButton } from '../../apps/main/components/skip_bottom_button'; @@ -22,7 +22,7 @@ export interface DocTableLegacyProps { searchTitle?: string; onFilter: (field: IndexPatternField | string, value: string, type: '+' | '-') => void; rows: estypes.SearchHit[]; - indexPattern: IIndexPattern; + indexPattern: IndexPattern; minimumVisibleRows?: number; onAddColumn?: (column: string) => void; onBackToTop: () => void; diff --git a/src/plugins/discover/public/application/embeddable/types.ts b/src/plugins/discover/public/application/embeddable/types.ts index c550e8c57f3ff..642c65c4b2a55 100644 --- a/src/plugins/discover/public/application/embeddable/types.ts +++ b/src/plugins/discover/public/application/embeddable/types.ts @@ -13,7 +13,7 @@ import { IEmbeddable, } from 'src/plugins/embeddable/public'; import { SortOrder } from '../angular/doc_table/components/table_header/helpers'; -import { Filter, IIndexPattern, TimeRange, Query } from '../../../../data/public'; +import { Filter, IndexPattern, TimeRange, Query } from '../../../../data/public'; import { SavedSearch } from '../..'; export interface SearchInput extends EmbeddableInput { @@ -27,7 +27,7 @@ export interface SearchInput extends EmbeddableInput { export interface SearchOutput extends EmbeddableOutput { editUrl: string; - indexPatterns?: IIndexPattern[]; + indexPatterns?: IndexPattern[]; editable: boolean; } diff --git a/src/plugins/discover/public/kibana_services.ts b/src/plugins/discover/public/kibana_services.ts index 366656cc60ffb..11bc61c9b261a 100644 --- a/src/plugins/discover/public/kibana_services.ts +++ b/src/plugins/discover/public/kibana_services.ts @@ -98,7 +98,6 @@ export { formatMsg, formatStack, subscribeWithScope } from '../../kibana_legacy/ // EXPORT types export { IndexPatternsContract, - IIndexPattern, IndexPattern, indexPatterns, IndexPatternField, From 47f5f8176580ff80444103e84062cda3fa646c4a Mon Sep 17 00:00:00 2001 From: Matthias Wilhelm Date: Mon, 2 Aug 2021 15:07:58 +0200 Subject: [PATCH 39/40] [Discover][Main] Split single query into 2 queries for faster results (#104818) Co-authored-by: Tim Roes --- .../public/services/theme/theme.test.tsx | 50 +++ .../charts/public/services/theme/theme.ts | 24 +- .../data/common/search/search_source/mocks.ts | 16 +- .../__mocks__/index_pattern_with_timefield.ts | 1 + .../discover/public/__mocks__/saved_search.ts | 23 ++ .../discover/public/__mocks__/services.ts | 18 +- .../components/chart/discover_chart.test.tsx | 122 +++++++ .../main/components/chart/discover_chart.tsx | 40 +- .../apps/main/components/chart/histogram.scss | 9 + .../apps/main/components/chart/histogram.tsx | 303 ++++++++-------- .../components/chart/point_series.test.ts | 120 ++++++ .../hits_counter/hits_counter.test.tsx | 23 +- .../components/hits_counter/hits_counter.tsx | 124 ++++--- .../layout/discover_documents.test.tsx | 74 ++++ .../components/layout/discover_documents.tsx | 194 ++++++++++ .../components/layout/discover_layout.scss | 9 + .../layout/discover_layout.test.tsx | 102 +++++- .../components/layout/discover_layout.tsx | 224 +++--------- .../apps/main/components/layout/types.ts | 8 +- .../sidebar/discover_sidebar.test.tsx | 2 +- .../components/sidebar/discover_sidebar.tsx | 20 +- .../discover_sidebar_responsive.test.tsx | 9 +- .../sidebar/discover_sidebar_responsive.tsx | 61 +++- .../timechart_header.test.tsx | 79 +++- .../timechart_header/timechart_header.tsx | 19 +- .../apps/main/discover_main_app.tsx | 2 + .../apps/main/services/discover_state.ts | 2 +- .../apps/main/services/use_discover_state.ts | 17 +- .../main/services/use_saved_search.test.ts | 22 +- .../apps/main/services/use_saved_search.ts | 343 +++++++----------- .../services/use_saved_search_messages.ts | 90 +++++ .../apps/main/utils/calc_field_counts.ts | 7 +- .../apps/main/utils/fetch_all.test.ts | 59 +++ .../application/apps/main/utils/fetch_all.ts | 96 +++++ .../apps/main/utils/fetch_chart.test.ts | 174 +++++++++ .../apps/main/utils/fetch_chart.ts | 121 ++++++ .../apps/main/utils/fetch_documents.test.ts | 79 ++++ .../apps/main/utils/fetch_documents.ts | 88 +++++ .../apps/main/utils/fetch_total_hits.test.ts | 80 ++++ .../apps/main/utils/fetch_total_hits.ts | 80 ++++ .../apps/main/utils/get_result_state.test.ts | 16 +- .../apps/main/utils/get_result_state.ts | 9 +- .../main/utils/update_search_source.test.ts | 73 +--- .../apps/main/utils/update_search_source.ts | 19 +- .../main/utils/use_behavior_subject.ts} | 17 +- .../apps/main/utils/use_data_state.ts | 24 ++ .../components/doc/use_es_doc_search.test.tsx | 4 + .../components/doc/use_es_doc_search.ts | 1 + .../public/application/helpers/index.ts | 9 - .../discover/public/application/types.ts | 1 + test/functional/apps/discover/_discover.ts | 2 +- test/functional/apps/discover/_inspector.ts | 22 +- .../translations/translations/ja-JP.json | 1 - .../translations/translations/zh-CN.json | 2 - 54 files changed, 2320 insertions(+), 814 deletions(-) create mode 100644 src/plugins/discover/public/application/apps/main/components/chart/discover_chart.test.tsx create mode 100644 src/plugins/discover/public/application/apps/main/components/chart/histogram.scss create mode 100644 src/plugins/discover/public/application/apps/main/components/chart/point_series.test.ts create mode 100644 src/plugins/discover/public/application/apps/main/components/layout/discover_documents.test.tsx create mode 100644 src/plugins/discover/public/application/apps/main/components/layout/discover_documents.tsx create mode 100644 src/plugins/discover/public/application/apps/main/services/use_saved_search_messages.ts create mode 100644 src/plugins/discover/public/application/apps/main/utils/fetch_all.test.ts create mode 100644 src/plugins/discover/public/application/apps/main/utils/fetch_all.ts create mode 100644 src/plugins/discover/public/application/apps/main/utils/fetch_chart.test.ts create mode 100644 src/plugins/discover/public/application/apps/main/utils/fetch_chart.ts create mode 100644 src/plugins/discover/public/application/apps/main/utils/fetch_documents.test.ts create mode 100644 src/plugins/discover/public/application/apps/main/utils/fetch_documents.ts create mode 100644 src/plugins/discover/public/application/apps/main/utils/fetch_total_hits.test.ts create mode 100644 src/plugins/discover/public/application/apps/main/utils/fetch_total_hits.ts rename src/plugins/discover/public/application/{helpers/format_number_with_commas.ts => apps/main/utils/use_behavior_subject.ts} (54%) create mode 100644 src/plugins/discover/public/application/apps/main/utils/use_data_state.ts delete mode 100644 src/plugins/discover/public/application/helpers/index.ts diff --git a/src/plugins/charts/public/services/theme/theme.test.tsx b/src/plugins/charts/public/services/theme/theme.test.tsx index 07e28a7cfabc3..079acbb5fefbc 100644 --- a/src/plugins/charts/public/services/theme/theme.test.tsx +++ b/src/plugins/charts/public/services/theme/theme.test.tsx @@ -6,9 +6,11 @@ * Side Public License, v 1. */ +import React from 'react'; import { BehaviorSubject } from 'rxjs'; import { take } from 'rxjs/operators'; import { renderHook, act } from '@testing-library/react-hooks'; +import { render, act as renderAct } from '@testing-library/react'; import { EUI_CHARTS_THEME_DARK, EUI_CHARTS_THEME_LIGHT } from '@elastic/eui/dist/eui_charts_theme'; @@ -105,6 +107,30 @@ describe('ThemeService', () => { act(() => darkMode$.next(false)); expect(result.current).toBe(EUI_CHARTS_THEME_LIGHT.theme); }); + + it('should not rerender when emitting the same value', () => { + const darkMode$ = new BehaviorSubject(false); + setupMockUiSettings.get$.mockReturnValue(darkMode$); + const themeService = new ThemeService(); + themeService.init(setupMockUiSettings); + const { useChartsTheme } = themeService; + + const renderCounter = jest.fn(); + const Wrapper = () => { + useChartsTheme(); + renderCounter(); + return null; + }; + + render(); + expect(renderCounter).toHaveBeenCalledTimes(1); + renderAct(() => darkMode$.next(true)); + expect(renderCounter).toHaveBeenCalledTimes(2); + renderAct(() => darkMode$.next(true)); + renderAct(() => darkMode$.next(true)); + renderAct(() => darkMode$.next(true)); + expect(renderCounter).toHaveBeenCalledTimes(2); + }); }); describe('useBaseChartTheme', () => { @@ -123,5 +149,29 @@ describe('ThemeService', () => { act(() => darkMode$.next(false)); expect(result.current).toBe(LIGHT_THEME); }); + + it('should not rerender when emitting the same value', () => { + const darkMode$ = new BehaviorSubject(false); + setupMockUiSettings.get$.mockReturnValue(darkMode$); + const themeService = new ThemeService(); + themeService.init(setupMockUiSettings); + const { useChartsBaseTheme } = themeService; + + const renderCounter = jest.fn(); + const Wrapper = () => { + useChartsBaseTheme(); + renderCounter(); + return null; + }; + + render(); + expect(renderCounter).toHaveBeenCalledTimes(1); + renderAct(() => darkMode$.next(true)); + expect(renderCounter).toHaveBeenCalledTimes(2); + renderAct(() => darkMode$.next(true)); + renderAct(() => darkMode$.next(true)); + renderAct(() => darkMode$.next(true)); + expect(renderCounter).toHaveBeenCalledTimes(2); + }); }); }); diff --git a/src/plugins/charts/public/services/theme/theme.ts b/src/plugins/charts/public/services/theme/theme.ts index 694922ca6f958..dfea367327e7a 100644 --- a/src/plugins/charts/public/services/theme/theme.ts +++ b/src/plugins/charts/public/services/theme/theme.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { useEffect, useState } from 'react'; +import { useEffect, useRef, useState } from 'react'; import { Observable, BehaviorSubject } from 'rxjs'; import { CoreSetup } from 'kibana/public'; @@ -54,11 +54,18 @@ export class ThemeService { /** A React hook for consuming the charts theme */ public useChartsTheme = (): PartialTheme => { // eslint-disable-next-line react-hooks/rules-of-hooks - const [value, update] = useState(this.chartsDefaultTheme); + const [value, update] = useState(this._chartsTheme$.getValue()); + // eslint-disable-next-line react-hooks/rules-of-hooks + const ref = useRef(value); // eslint-disable-next-line react-hooks/rules-of-hooks useEffect(() => { - const s = this.chartsTheme$.subscribe(update); + const s = this.chartsTheme$.subscribe((val) => { + if (val !== ref.current) { + ref.current = val; + update(val); + } + }); return () => s.unsubscribe(); }, []); @@ -68,11 +75,18 @@ export class ThemeService { /** A React hook for consuming the charts theme */ public useChartsBaseTheme = (): Theme => { // eslint-disable-next-line react-hooks/rules-of-hooks - const [value, update] = useState(this.chartsDefaultBaseTheme); + const [value, update] = useState(this._chartsBaseTheme$.getValue()); + // eslint-disable-next-line react-hooks/rules-of-hooks + const ref = useRef(value); // eslint-disable-next-line react-hooks/rules-of-hooks useEffect(() => { - const s = this.chartsBaseTheme$.subscribe(update); + const s = this.chartsBaseTheme$.subscribe((val) => { + if (val !== ref.current) { + ref.current = val; + update(val); + } + }); return () => s.unsubscribe(); }, []); diff --git a/src/plugins/data/common/search/search_source/mocks.ts b/src/plugins/data/common/search/search_source/mocks.ts index c8769141a71d6..a0897a2dacf2a 100644 --- a/src/plugins/data/common/search/search_source/mocks.ts +++ b/src/plugins/data/common/search/search_source/mocks.ts @@ -42,13 +42,17 @@ export const searchSourceCommonMock: jest.Mocked = { createEmpty: jest.fn().mockReturnValue(searchSourceInstanceMock), }; -export const createSearchSourceMock = (fields?: SearchSourceFields) => +export const createSearchSourceMock = (fields?: SearchSourceFields, response?: any) => new SearchSource(fields, { getConfig: uiSettingsServiceMock.createStartContract().get, - search: jest - .fn() - .mockReturnValue( - of({ rawResponse: { hits: { hits: [], total: 0 } }, isPartial: false, isRunning: false }) - ), + search: jest.fn().mockReturnValue( + of( + response ?? { + rawResponse: { hits: { hits: [], total: 0 } }, + isPartial: false, + isRunning: false, + } + ) + ), onResponse: jest.fn().mockImplementation((req, res) => res), }); diff --git a/src/plugins/discover/public/__mocks__/index_pattern_with_timefield.ts b/src/plugins/discover/public/__mocks__/index_pattern_with_timefield.ts index f1c3c537dd5e1..0262bb942b8a5 100644 --- a/src/plugins/discover/public/__mocks__/index_pattern_with_timefield.ts +++ b/src/plugins/discover/public/__mocks__/index_pattern_with_timefield.ts @@ -71,6 +71,7 @@ const indexPattern = ({ getSourceFiltering: () => ({}), getFieldByName: (name: string) => fields.getByName(name), timeFieldName: 'timestamp', + getFormatterForField: () => ({ convert: () => 'formatted' }), } as unknown) as IndexPattern; indexPattern.flattenHit = indexPatterns.flattenHitWrapper(indexPattern, indexPattern.metaFields); diff --git a/src/plugins/discover/public/__mocks__/saved_search.ts b/src/plugins/discover/public/__mocks__/saved_search.ts index 6f48c56b0810e..c2d9bfeb1b4b5 100644 --- a/src/plugins/discover/public/__mocks__/saved_search.ts +++ b/src/plugins/discover/public/__mocks__/saved_search.ts @@ -9,6 +9,7 @@ import { SavedSearch } from '../saved_searches'; import { createSearchSourceMock } from '../../../data/public/mocks'; import { indexPatternMock } from './index_pattern'; +import { indexPatternWithTimefieldMock } from './index_pattern_with_timefield'; export const savedSearchMock = ({ id: 'the-saved-search-id', @@ -31,3 +32,25 @@ export const savedSearchMock = ({ error: undefined, searchSource: createSearchSourceMock({ index: indexPatternMock }), } as unknown) as SavedSearch; + +export const savedSearchMockWithTimeField = ({ + id: 'the-saved-search-id-with-timefield', + type: 'search', + attributes: { + title: 'the-saved-search-title', + kibanaSavedObjectMeta: { + searchSourceJSON: + '{"highlightAll":true,"version":true,"query":{"query":"foo : \\"bar\\" ","language":"kuery"},"filter":[],"indexRefName":"kibanaSavedObjectMeta.searchSourceJSON.index"}', + }, + }, + references: [ + { + name: 'kibanaSavedObjectMeta.searchSourceJSON.index', + type: 'index-pattern', + id: 'the-index-pattern-id', + }, + ], + migrationVersion: { search: '7.5.0' }, + error: undefined, + searchSource: createSearchSourceMock({ index: indexPatternWithTimefieldMock }), +} as unknown) as SavedSearch; diff --git a/src/plugins/discover/public/__mocks__/services.ts b/src/plugins/discover/public/__mocks__/services.ts index 8a047625303d2..e137955674457 100644 --- a/src/plugins/discover/public/__mocks__/services.ts +++ b/src/plugins/discover/public/__mocks__/services.ts @@ -5,10 +5,15 @@ * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ +import { EUI_CHARTS_THEME_LIGHT } from '@elastic/eui/dist/eui_charts_theme'; import { DiscoverServices } from '../build_services'; import { dataPluginMock } from '../../../data/public/mocks'; import { chromeServiceMock, coreMock, docLinksServiceMock } from '../../../../core/public/mocks'; -import { DEFAULT_COLUMNS_SETTING } from '../../common'; +import { + DEFAULT_COLUMNS_SETTING, + SAMPLE_SIZE_SETTING, + SORT_DEFAULT_ORDER_SETTING, +} from '../../common'; import { savedSearchMock } from './saved_search'; import { UI_SETTINGS } from '../../../data/common'; import { TopNavMenu } from '../../../navigation/public'; @@ -44,8 +49,15 @@ export const discoverServiceMock = ({ return []; } else if (key === UI_SETTINGS.META_FIELDS) { return []; + } else if (key === SAMPLE_SIZE_SETTING) { + return 250; + } else if (key === SORT_DEFAULT_ORDER_SETTING) { + return 'desc'; } }, + isDefault: (key: string) => { + return true; + }, }, indexPatternFieldEditor: { openEditor: jest.fn(), @@ -60,4 +72,8 @@ export const discoverServiceMock = ({ metadata: { branch: 'test', }, + theme: { + useChartsTheme: jest.fn(() => EUI_CHARTS_THEME_LIGHT.theme), + useChartsBaseTheme: jest.fn(() => EUI_CHARTS_THEME_LIGHT.theme), + }, } as unknown) as DiscoverServices; diff --git a/src/plugins/discover/public/application/apps/main/components/chart/discover_chart.test.tsx b/src/plugins/discover/public/application/apps/main/components/chart/discover_chart.test.tsx new file mode 100644 index 0000000000000..7a13f18997b86 --- /dev/null +++ b/src/plugins/discover/public/application/apps/main/components/chart/discover_chart.test.tsx @@ -0,0 +1,122 @@ +/* + * 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. + */ + +import React from 'react'; +import { Subject, BehaviorSubject } from 'rxjs'; +import { mountWithIntl } from '@kbn/test/jest'; +import { setHeaderActionMenuMounter } from '../../../../../kibana_services'; +import { esHits } from '../../../../../__mocks__/es_hits'; +import { savedSearchMock } from '../../../../../__mocks__/saved_search'; +import { createSearchSourceMock } from '../../../../../../../data/common/search/search_source/mocks'; +import { GetStateReturn } from '../../services/discover_state'; +import { DataCharts$, DataTotalHits$ } from '../../services/use_saved_search'; +import { discoverServiceMock } from '../../../../../__mocks__/services'; +import { FetchStatus } from '../../../../types'; +import { Chart } from './point_series'; +import { DiscoverChart } from './discover_chart'; + +setHeaderActionMenuMounter(jest.fn()); + +function getProps(timefield?: string) { + const searchSourceMock = createSearchSourceMock({}); + const services = discoverServiceMock; + services.data.query.timefilter.timefilter.getTime = () => { + return { from: '2020-05-14T11:05:13.590', to: '2020-05-14T11:20:13.590' }; + }; + + const totalHits$ = new BehaviorSubject({ + fetchStatus: FetchStatus.COMPLETE, + result: Number(esHits.length), + }) as DataTotalHits$; + + const chartData = ({ + xAxisOrderedValues: [ + 1623880800000, + 1623967200000, + 1624053600000, + 1624140000000, + 1624226400000, + 1624312800000, + 1624399200000, + 1624485600000, + 1624572000000, + 1624658400000, + 1624744800000, + 1624831200000, + 1624917600000, + 1625004000000, + 1625090400000, + ], + xAxisFormat: { id: 'date', params: { pattern: 'YYYY-MM-DD' } }, + xAxisLabel: 'order_date per day', + yAxisFormat: { id: 'number' }, + ordered: { + date: true, + interval: { + asMilliseconds: jest.fn(), + }, + intervalESUnit: 'd', + intervalESValue: 1, + min: '2021-03-18T08:28:56.411Z', + max: '2021-07-01T07:28:56.411Z', + }, + yAxisLabel: 'Count', + values: [ + { x: 1623880800000, y: 134 }, + { x: 1623967200000, y: 152 }, + { x: 1624053600000, y: 141 }, + { x: 1624140000000, y: 138 }, + { x: 1624226400000, y: 142 }, + { x: 1624312800000, y: 157 }, + { x: 1624399200000, y: 149 }, + { x: 1624485600000, y: 146 }, + { x: 1624572000000, y: 170 }, + { x: 1624658400000, y: 137 }, + { x: 1624744800000, y: 150 }, + { x: 1624831200000, y: 144 }, + { x: 1624917600000, y: 147 }, + { x: 1625004000000, y: 137 }, + { x: 1625090400000, y: 66 }, + ], + } as unknown) as Chart; + + const charts$ = new BehaviorSubject({ + fetchStatus: FetchStatus.COMPLETE, + chartData, + bucketInterval: { + scaled: true, + description: 'test', + scale: 2, + }, + }) as DataCharts$; + + return { + isLegacy: false, + resetQuery: jest.fn(), + savedSearch: savedSearchMock, + savedSearchDataChart$: charts$, + savedSearchDataTotalHits$: totalHits$, + savedSearchRefetch$: new Subject(), + searchSource: searchSourceMock, + services, + state: { columns: [] }, + stateContainer: {} as GetStateReturn, + timefield, + }; +} + +describe('Discover chart', () => { + test('render without timefield', () => { + const component = mountWithIntl(); + expect(component.find('[data-test-subj="discoverChartToggle"]').exists()).toBeFalsy(); + }); + test('render with filefield', () => { + const component = mountWithIntl(); + expect(component.find('[data-test-subj="discoverChartToggle"]').exists()).toBeTruthy(); + }); +}); diff --git a/src/plugins/discover/public/application/apps/main/components/chart/discover_chart.tsx b/src/plugins/discover/public/application/apps/main/components/chart/discover_chart.tsx index f1967d5b10b3e..165f708bf7083 100644 --- a/src/plugins/discover/public/application/apps/main/components/chart/discover_chart.tsx +++ b/src/plugins/discover/public/application/apps/main/components/chart/discover_chart.tsx @@ -5,48 +5,43 @@ * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ -import React, { useCallback, useEffect, useRef } from 'react'; +import React, { useCallback, useEffect, useRef, memo } from 'react'; import moment from 'moment'; import { EuiFlexGroup, EuiFlexItem, EuiButtonEmpty, EuiSpacer } from '@elastic/eui'; -import { IUiSettingsClient } from 'kibana/public'; import { i18n } from '@kbn/i18n'; import { HitsCounter } from '../hits_counter'; -import { DataPublicPluginStart, IndexPattern, search } from '../../../../../../../data/public'; +import { search } from '../../../../../../../data/public'; import { TimechartHeader } from '../timechart_header'; import { SavedSearch } from '../../../../../saved_searches'; import { AppState, GetStateReturn } from '../../services/discover_state'; -import { TimechartBucketInterval } from '../timechart_header/timechart_header'; -import { Chart as IChart } from './point_series'; import { DiscoverHistogram } from './histogram'; +import { DataCharts$, DataTotalHits$ } from '../../services/use_saved_search'; +import { DiscoverServices } from '../../../../../build_services'; -const TimechartHeaderMemoized = React.memo(TimechartHeader); -const DiscoverHistogramMemoized = React.memo(DiscoverHistogram); +const TimechartHeaderMemoized = memo(TimechartHeader); +const DiscoverHistogramMemoized = memo(DiscoverHistogram); export function DiscoverChart({ - config, - data, - bucketInterval, - chartData, - hits, isLegacy, resetQuery, savedSearch, + savedSearchDataChart$, + savedSearchDataTotalHits$, + services, state, stateContainer, timefield, }: { - config: IUiSettingsClient; - data: DataPublicPluginStart; - bucketInterval?: TimechartBucketInterval; - chartData?: IChart; - hits?: number; - indexPattern: IndexPattern; isLegacy: boolean; resetQuery: () => void; savedSearch: SavedSearch; + savedSearchDataChart$: DataCharts$; + savedSearchDataTotalHits$: DataTotalHits$; + services: DiscoverServices; state: AppState; stateContainer: GetStateReturn; timefield?: string; }) { + const { data, uiSettings: config } = services; const chartRef = useRef<{ element: HTMLElement | null; moveFocus: boolean }>({ element: null, moveFocus: false, @@ -93,7 +88,7 @@ export function DiscoverChart({ className="dscResuntCount__title eui-textTruncate eui-textNoWrap" > @@ -106,7 +101,7 @@ export function DiscoverChart({ options={search.aggs.intervalOptions} onChangeInterval={onChangeInterval} stateInterval={state.interval || ''} - bucketInterval={bucketInterval} + savedSearchData$={savedSearchDataChart$} /> )} @@ -130,7 +125,7 @@ export function DiscoverChart({ )} - {!state.hideChart && chartData && ( + {timefield && !state.hideChart && (
(chartRef.current.element = element)} @@ -145,8 +140,9 @@ export function DiscoverChart({ data-test-subj="discoverChart" >
diff --git a/src/plugins/discover/public/application/apps/main/components/chart/histogram.scss b/src/plugins/discover/public/application/apps/main/components/chart/histogram.scss new file mode 100644 index 0000000000000..10bec21a937ad --- /dev/null +++ b/src/plugins/discover/public/application/apps/main/components/chart/histogram.scss @@ -0,0 +1,9 @@ +.dscChart__loading { + display: flex; + flex-direction: column; + justify-content: center; + flex: 1 0 100%; + text-align: center; + height: 100%; + width: 100%; +} diff --git a/src/plugins/discover/public/application/apps/main/components/chart/histogram.tsx b/src/plugins/discover/public/application/apps/main/components/chart/histogram.tsx index 92b212d5739b5..df63c4c94ae86 100644 --- a/src/plugins/discover/public/application/apps/main/components/chart/histogram.tsx +++ b/src/plugins/discover/public/application/apps/main/components/chart/histogram.tsx @@ -5,45 +5,41 @@ * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ - +import './histogram.scss'; import moment, { unitOfTime } from 'moment-timezone'; -import React, { Component } from 'react'; -import PropTypes from 'prop-types'; +import React, { useCallback } from 'react'; +import { EuiLoadingChart, EuiSpacer, EuiText } from '@elastic/eui'; +import { FormattedMessage } from '@kbn/i18n/react'; import { Axis, + BrushEndListener, Chart, + ElementClickListener, HistogramBarSeries, Position, ScaleType, Settings, TooltipType, - ElementClickListener, XYChartElementEvent, - BrushEndListener, - Theme, } from '@elastic/charts'; import { IUiSettingsClient } from 'kibana/public'; -import { EuiChartThemeType } from '@elastic/eui/dist/eui_charts_theme'; -import { Subscription, combineLatest } from 'rxjs'; -import { getServices } from '../../../../../kibana_services'; -import { Chart as IChart } from './point_series'; import { CurrentTime, Endzones, getAdjustedInterval, renderEndzoneTooltip, } from '../../../../../../../charts/public'; +import { DataCharts$, DataChartsMessage } from '../../services/use_saved_search'; +import { FetchStatus } from '../../../../types'; +import { DiscoverServices } from '../../../../../build_services'; +import { useDataState } from '../../utils/use_data_state'; export interface DiscoverHistogramProps { - chartData: IChart; + savedSearchData$: DataCharts$; timefilterUpdateHandler: (ranges: { from: number; to: number }) => void; -} - -interface DiscoverHistogramState { - chartsTheme: EuiChartThemeType['theme']; - chartsBaseTheme: Theme; + services: DiscoverServices; } function getTimezone(uiSettings: IUiSettingsClient) { @@ -56,154 +52,149 @@ function getTimezone(uiSettings: IUiSettingsClient) { } } -export class DiscoverHistogram extends Component { - public static propTypes = { - chartData: PropTypes.object, - timefilterUpdateHandler: PropTypes.func, - }; - - private subscription?: Subscription; - public state = { - chartsTheme: getServices().theme.chartsDefaultTheme, - chartsBaseTheme: getServices().theme.chartsDefaultBaseTheme, - }; - - componentDidMount() { - this.subscription = combineLatest([ - getServices().theme.chartsTheme$, - getServices().theme.chartsBaseTheme$, - ]).subscribe(([chartsTheme, chartsBaseTheme]) => - this.setState({ chartsTheme, chartsBaseTheme }) +export function DiscoverHistogram({ + savedSearchData$, + timefilterUpdateHandler, + services, +}: DiscoverHistogramProps) { + const chartTheme = services.theme.useChartsTheme(); + const chartBaseTheme = services.theme.useChartsBaseTheme(); + + const dataState: DataChartsMessage = useDataState(savedSearchData$); + + const uiSettings = services.uiSettings; + const timeZone = getTimezone(uiSettings); + const { chartData, fetchStatus } = dataState; + + const onBrushEnd: BrushEndListener = useCallback( + ({ x }) => { + if (!x) { + return; + } + const [from, to] = x; + timefilterUpdateHandler({ from, to }); + }, + [timefilterUpdateHandler] + ); + + const onElementClick = useCallback( + (xInterval: number): ElementClickListener => ([elementData]) => { + const startRange = (elementData as XYChartElementEvent)[0].x; + + const range = { + from: startRange, + to: startRange + xInterval, + }; + + timefilterUpdateHandler(range); + }, + [timefilterUpdateHandler] + ); + + if (!chartData && fetchStatus === FetchStatus.LOADING) { + return ( +
+ + + + + +
); } - componentWillUnmount() { - if (this.subscription) { - this.subscription.unsubscribe(); - } + if (!chartData) { + return null; } - public onBrushEnd: BrushEndListener = ({ x }) => { - if (!x) { - return; - } - const [from, to] = x; - this.props.timefilterUpdateHandler({ from, to }); + const formatXValue = (val: string) => { + const xAxisFormat = chartData.xAxisFormat.params!.pattern; + return moment(val).format(xAxisFormat); }; - public onElementClick = (xInterval: number): ElementClickListener => ([elementData]) => { - const startRange = (elementData as XYChartElementEvent)[0].x; - - const range = { - from: startRange, - to: startRange + xInterval, - }; - - this.props.timefilterUpdateHandler(range); + const data = chartData.values; + const isDarkMode = uiSettings.get('theme:darkMode'); + + /* + * Deprecation: [interval] on [date_histogram] is deprecated, use [fixed_interval] or [calendar_interval]. + * see https://github.com/elastic/kibana/issues/27410 + * TODO: Once the Discover query has been update, we should change the below to use the new field + */ + const { intervalESValue, intervalESUnit, interval } = chartData.ordered; + const xInterval = interval.asMilliseconds(); + + const xValues = chartData.xAxisOrderedValues; + const lastXValue = xValues[xValues.length - 1]; + + const domain = chartData.ordered; + const domainStart = domain.min.valueOf(); + const domainEnd = domain.max.valueOf(); + + const domainMin = Math.min(data[0]?.x, domainStart); + const domainMax = Math.max(domainEnd - xInterval, lastXValue); + + const xDomain = { + min: domainMin, + max: domainMax, + minInterval: getAdjustedInterval( + xValues, + intervalESValue, + intervalESUnit as unitOfTime.Base, + timeZone + ), }; - - public formatXValue = (val: string) => { - const xAxisFormat = this.props.chartData.xAxisFormat.params!.pattern; - - return moment(val).format(xAxisFormat); + const tooltipProps = { + headerFormatter: renderEndzoneTooltip(xInterval, domainStart, domainEnd, formatXValue), + type: TooltipType.VerticalCursor, }; - public render() { - const uiSettings = getServices().uiSettings; - const timeZone = getTimezone(uiSettings); - const { chartData } = this.props; - const { chartsTheme, chartsBaseTheme } = this.state; - - if (!chartData) { - return null; - } - - const data = chartData.values; - const isDarkMode = uiSettings.get('theme:darkMode'); - - /* - * Deprecation: [interval] on [date_histogram] is deprecated, use [fixed_interval] or [calendar_interval]. - * see https://github.com/elastic/kibana/issues/27410 - * TODO: Once the Discover query has been update, we should change the below to use the new field - */ - const { intervalESValue, intervalESUnit, interval } = chartData.ordered; - const xInterval = interval.asMilliseconds(); - - const xValues = chartData.xAxisOrderedValues; - const lastXValue = xValues[xValues.length - 1]; - - const domain = chartData.ordered; - const domainStart = domain.min.valueOf(); - const domainEnd = domain.max.valueOf(); - - const domainMin = Math.min(data[0]?.x, domainStart); - const domainMax = Math.max(domainEnd - xInterval, lastXValue); - - const xDomain = { - min: domainMin, - max: domainMax, - minInterval: getAdjustedInterval( - xValues, - intervalESValue, - intervalESUnit as unitOfTime.Base, - timeZone - ), - }; - const tooltipProps = { - headerFormatter: renderEndzoneTooltip(xInterval, domainStart, domainEnd, this.formatXValue), - type: TooltipType.VerticalCursor, - }; - - const xAxisFormatter = getServices().data.fieldFormats.deserialize( - this.props.chartData.yAxisFormat - ); - - return ( - - - xAxisFormatter.convert(value)} - /> - - - - - - ); - } + const xAxisFormatter = services.data.fieldFormats.deserialize(chartData.yAxisFormat); + + return ( + + + xAxisFormatter.convert(value)} + /> + + + + + + ); } diff --git a/src/plugins/discover/public/application/apps/main/components/chart/point_series.test.ts b/src/plugins/discover/public/application/apps/main/components/chart/point_series.test.ts new file mode 100644 index 0000000000000..37fa894f7f671 --- /dev/null +++ b/src/plugins/discover/public/application/apps/main/components/chart/point_series.test.ts @@ -0,0 +1,120 @@ +/* + * 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. + */ + +import { buildPointSeriesData } from './point_series'; +import moment from 'moment'; +import { Unit } from '@elastic/datemath'; + +describe('buildPointSeriesData', () => { + test('with valid data', () => { + const table = { + type: 'datatable', + columns: [ + { + id: 'col-0-2', + name: 'order_date per 30 days', + meta: { + type: 'date', + field: 'order_date', + index: 'kibana_sample_data_ecommerce', + params: { id: 'date', params: { pattern: 'YYYY-MM-DD' } }, + source: 'esaggs', + sourceParams: { + indexPatternId: 'ff959d40-b880-11e8-a6d9-e546fe2bba5f', + id: '2', + enabled: true, + type: 'date_histogram', + params: { + field: 'order_date', + timeRange: { from: 'now-15y', to: 'now' }, + useNormalizedEsInterval: true, + scaleMetricValues: false, + interval: 'auto', + used_interval: '30d', + drop_partials: false, + min_doc_count: 1, + extended_bounds: {}, + }, + schema: 'segment', + }, + }, + }, + { + id: 'col-1-1', + name: 'Count', + meta: { + type: 'number', + index: 'kibana_sample_data_ecommerce', + params: { id: 'number' }, + source: 'esaggs', + sourceParams: { + indexPatternId: 'ff959d40-b880-11e8-a6d9-e546fe2bba5f', + id: '1', + enabled: true, + type: 'count', + params: {}, + schema: 'metric', + }, + }, + }, + ], + rows: [{ 'col-0-2': 1625176800000, 'col-1-1': 2139 }], + }; + const dimensions = { + x: { + accessor: 0, + label: 'order_date per 30 days', + format: { id: 'date', params: { pattern: 'YYYY-MM-DD' } }, + params: { + date: true, + interval: moment.duration(30, 'd'), + intervalESValue: 30, + intervalESUnit: 'd' as Unit, + format: 'YYYY-MM-DD', + bounds: { + min: moment('2006-07-29T11:08:13.078Z'), + max: moment('2021-07-29T11:08:13.078Z'), + }, + }, + }, + y: { accessor: 1, format: { id: 'number' }, label: 'Count' }, + } as const; + expect(buildPointSeriesData(table, dimensions)).toMatchInlineSnapshot(` + Object { + "ordered": Object { + "date": true, + "interval": "P30D", + "intervalESUnit": "d", + "intervalESValue": 30, + "max": "2021-07-29T11:08:13.078Z", + "min": "2006-07-29T11:08:13.078Z", + }, + "values": Array [ + Object { + "x": 1625176800000, + "y": 2139, + }, + ], + "xAxisFormat": Object { + "id": "date", + "params": Object { + "pattern": "YYYY-MM-DD", + }, + }, + "xAxisLabel": "order_date per 30 days", + "xAxisOrderedValues": Array [ + 1625176800000, + ], + "yAxisFormat": Object { + "id": "number", + }, + "yAxisLabel": "Count", + } + `); + }); +}); diff --git a/src/plugins/discover/public/application/apps/main/components/hits_counter/hits_counter.test.tsx b/src/plugins/discover/public/application/apps/main/components/hits_counter/hits_counter.test.tsx index 6434863dfc416..02644fbf507dd 100644 --- a/src/plugins/discover/public/application/apps/main/components/hits_counter/hits_counter.test.tsx +++ b/src/plugins/discover/public/application/apps/main/components/hits_counter/hits_counter.test.tsx @@ -11,6 +11,9 @@ import { mountWithIntl } from '@kbn/test/jest'; import { ReactWrapper } from 'enzyme'; import { HitsCounter, HitsCounterProps } from './hits_counter'; import { findTestSubject } from '@elastic/eui/lib/test'; +import { BehaviorSubject } from 'rxjs'; +import { FetchStatus } from '../../../../types'; +import { DataTotalHits$ } from '../../services/use_saved_search'; describe('hits counter', function () { let props: HitsCounterProps; @@ -20,7 +23,10 @@ describe('hits counter', function () { props = { onResetQuery: jest.fn(), showResetButton: true, - hits: 2, + savedSearchData$: new BehaviorSubject({ + fetchStatus: FetchStatus.COMPLETE, + result: 2, + }) as DataTotalHits$, }; }); @@ -30,9 +36,7 @@ describe('hits counter', function () { }); it('HitsCounter not renders a button when the showResetButton property is false', () => { - component = mountWithIntl( - - ); + component = mountWithIntl(); expect(findTestSubject(component, 'resetSavedSearch').length).toBe(0); }); @@ -43,8 +47,17 @@ describe('hits counter', function () { }); it('expect to render 1,899 hits if 1899 hits given', function () { + const data$ = new BehaviorSubject({ + fetchStatus: FetchStatus.COMPLETE, + result: 1899, + }) as DataTotalHits$; component = mountWithIntl( - + ); const hits = findTestSubject(component, 'discoverQueryHits'); expect(hits.text()).toBe('1,899'); diff --git a/src/plugins/discover/public/application/apps/main/components/hits_counter/hits_counter.tsx b/src/plugins/discover/public/application/apps/main/components/hits_counter/hits_counter.tsx index 0850a8ff03d96..ab6617cbe79de 100644 --- a/src/plugins/discover/public/application/apps/main/components/hits_counter/hits_counter.tsx +++ b/src/plugins/discover/public/application/apps/main/components/hits_counter/hits_counter.tsx @@ -7,18 +7,21 @@ */ import './hits_counter.scss'; - import React from 'react'; -import { EuiButtonEmpty, EuiFlexGroup, EuiFlexItem, EuiText } from '@elastic/eui'; -import { FormattedMessage, I18nProvider } from '@kbn/i18n/react'; +import { + EuiButtonEmpty, + EuiFlexGroup, + EuiFlexItem, + EuiText, + EuiLoadingSpinner, +} from '@elastic/eui'; +import { FormattedMessage, FormattedNumber } from '@kbn/i18n/react'; import { i18n } from '@kbn/i18n'; -import { formatNumWithCommas } from '../../../../helpers'; +import { DataTotalHits$, DataTotalHitsMsg } from '../../services/use_saved_search'; +import { FetchStatus } from '../../../../types'; +import { useDataState } from '../../utils/use_data_state'; export interface HitsCounterProps { - /** - * the number of query hits - */ - hits?: number; /** * displays the reset button */ @@ -27,52 +30,81 @@ export interface HitsCounterProps { * resets the query */ onResetQuery: () => void; + /** + * saved search data observable + */ + savedSearchData$: DataTotalHits$; } -export function HitsCounter({ hits, showResetButton, onResetQuery }: HitsCounterProps) { - if (typeof hits === 'undefined') { +export function HitsCounter({ showResetButton, onResetQuery, savedSearchData$ }: HitsCounterProps) { + const data: DataTotalHitsMsg = useDataState(savedSearchData$); + + const hits = data.result || 0; + if (!hits && data.fetchStatus === FetchStatus.LOADING) { return null; } + + const formattedHits = ( + + + + ); + return ( - - - - - {formatNumWithCommas(hits)}{' '} + + + + {data.fetchStatus === FetchStatus.PARTIAL && ( + + )} + {data.fetchStatus !== FetchStatus.PARTIAL && ( - + )} + + + {data.fetchStatus === FetchStatus.PARTIAL && ( + + + + )} + {showResetButton && ( + + + + - {showResetButton && ( - - - - - - )} - - + )} + ); } diff --git a/src/plugins/discover/public/application/apps/main/components/layout/discover_documents.test.tsx b/src/plugins/discover/public/application/apps/main/components/layout/discover_documents.test.tsx new file mode 100644 index 0000000000000..1136b693c9e74 --- /dev/null +++ b/src/plugins/discover/public/application/apps/main/components/layout/discover_documents.test.tsx @@ -0,0 +1,74 @@ +/* + * 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. + */ + +import React from 'react'; +import { BehaviorSubject } from 'rxjs'; +import { mountWithIntl } from '@kbn/test/jest'; +import { setHeaderActionMenuMounter } from '../../../../../kibana_services'; +import { esHits } from '../../../../../__mocks__/es_hits'; +import { savedSearchMock } from '../../../../../__mocks__/saved_search'; +import { GetStateReturn } from '../../services/discover_state'; +import { DataDocuments$ } from '../../services/use_saved_search'; +import { discoverServiceMock } from '../../../../../__mocks__/services'; +import { FetchStatus } from '../../../../types'; +import { DiscoverDocuments } from './discover_documents'; +import { ElasticSearchHit } from '../../../../doc_views/doc_views_types'; +import { indexPatternMock } from '../../../../../__mocks__/index_pattern'; + +setHeaderActionMenuMounter(jest.fn()); + +function getProps(fetchStatus: FetchStatus, hits: ElasticSearchHit[]) { + const services = discoverServiceMock; + services.data.query.timefilter.timefilter.getTime = () => { + return { from: '2020-05-14T11:05:13.590', to: '2020-05-14T11:20:13.590' }; + }; + + const documents$ = new BehaviorSubject({ + fetchStatus, + result: hits, + }) as DataDocuments$; + + return { + expandedDoc: undefined, + indexPattern: indexPatternMock, + isMobile: jest.fn(() => false), + onAddFilter: jest.fn(), + savedSearch: savedSearchMock, + documents$, + searchSource: documents$, + services, + setExpandedDoc: jest.fn(), + state: { columns: [] }, + stateContainer: {} as GetStateReturn, + navigateTo: jest.fn(), + }; +} + +describe('Discover documents layout', () => { + test('render loading when loading and no documents', () => { + const component = mountWithIntl(); + expect(component.find('.dscDocuments__loading').exists()).toBeTruthy(); + expect(component.find('.dscTable').exists()).toBeFalsy(); + }); + + test('render complete when loading but documents were already fetched', () => { + const component = mountWithIntl( + + ); + expect(component.find('.dscDocuments__loading').exists()).toBeFalsy(); + expect(component.find('.dscTable').exists()).toBeTruthy(); + }); + + test('render complete', () => { + const component = mountWithIntl( + + ); + expect(component.find('.dscDocuments__loading').exists()).toBeFalsy(); + expect(component.find('.dscTable').exists()).toBeTruthy(); + }); +}); diff --git a/src/plugins/discover/public/application/apps/main/components/layout/discover_documents.tsx b/src/plugins/discover/public/application/apps/main/components/layout/discover_documents.tsx new file mode 100644 index 0000000000000..13cf021ff2573 --- /dev/null +++ b/src/plugins/discover/public/application/apps/main/components/layout/discover_documents.tsx @@ -0,0 +1,194 @@ +/* + * 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. + */ +import React, { useRef, useMemo, useCallback, memo } from 'react'; +import { EuiFlexItem, EuiSpacer, EuiText, EuiLoadingSpinner } from '@elastic/eui'; +import { FormattedMessage } from '@kbn/i18n/react'; +import { DocTableLegacy } from '../../../../angular/doc_table/create_doc_table_react'; +import { SortPairArr } from '../../../../angular/doc_table/lib/get_sort'; +import { DocViewFilterFn, ElasticSearchHit } from '../../../../doc_views/doc_views_types'; +import { DiscoverGrid } from '../../../../components/discover_grid/discover_grid'; +import { FetchStatus } from '../../../../types'; +import { + DOC_HIDE_TIME_COLUMN_SETTING, + DOC_TABLE_LEGACY, + SAMPLE_SIZE_SETTING, + SEARCH_FIELDS_FROM_SOURCE, +} from '../../../../../../common'; +import { useDataGridColumns } from '../../../../helpers/use_data_grid_columns'; +import { IndexPattern } from '../../../../../../../data/common'; +import { SavedSearch } from '../../../../../saved_searches'; +import { DataDocumentsMsg, DataDocuments$ } from '../../services/use_saved_search'; +import { DiscoverServices } from '../../../../../build_services'; +import { AppState, GetStateReturn } from '../../services/discover_state'; +import { useDataState } from '../../utils/use_data_state'; + +const DocTableLegacyMemoized = React.memo(DocTableLegacy); +const DataGridMemoized = React.memo(DiscoverGrid); + +function DiscoverDocumentsComponent({ + documents$, + expandedDoc, + indexPattern, + isMobile, + onAddFilter, + savedSearch, + services, + setExpandedDoc, + state, + stateContainer, +}: { + documents$: DataDocuments$; + expandedDoc?: ElasticSearchHit; + indexPattern: IndexPattern; + isMobile: () => boolean; + navigateTo: (url: string) => void; + onAddFilter: DocViewFilterFn; + savedSearch: SavedSearch; + services: DiscoverServices; + setExpandedDoc: (doc: ElasticSearchHit | undefined) => void; + state: AppState; + stateContainer: GetStateReturn; +}) { + const { capabilities, indexPatterns, uiSettings } = services; + const useNewFieldsApi = useMemo(() => !uiSettings.get(SEARCH_FIELDS_FROM_SOURCE), [uiSettings]); + + const scrollableDesktop = useRef(null); + const isLegacy = useMemo(() => uiSettings.get(DOC_TABLE_LEGACY), [uiSettings]); + const sampleSize = useMemo(() => uiSettings.get(SAMPLE_SIZE_SETTING), [uiSettings]); + + const documentState: DataDocumentsMsg = useDataState(documents$); + + const rows = useMemo(() => documentState.result || [], [documentState.result]); + + const { columns, onAddColumn, onRemoveColumn, onMoveColumn, onSetColumns } = useDataGridColumns({ + capabilities, + config: uiSettings, + indexPattern, + indexPatterns, + setAppState: stateContainer.setAppState, + state, + useNewFieldsApi, + }); + + /** + * Legacy function, remove once legacy grid is removed + */ + const onBackToTop = useCallback(() => { + if (scrollableDesktop && scrollableDesktop.current) { + scrollableDesktop.current.focus(); + } + // Only the desktop one needs to target a specific container + if (!isMobile() && scrollableDesktop.current) { + scrollableDesktop.current.scrollTo(0, 0); + } else if (window) { + window.scrollTo(0, 0); + } + }, [scrollableDesktop, isMobile]); + + const onResize = useCallback( + (colSettings: { columnId: string; width: number }) => { + const grid = { ...state.grid } || {}; + const newColumns = { ...grid.columns } || {}; + newColumns[colSettings.columnId] = { + width: colSettings.width, + }; + const newGrid = { ...grid, columns: newColumns }; + stateContainer.setAppState({ grid: newGrid }); + }, + [stateContainer, state] + ); + + const onSort = useCallback( + (sort: string[][]) => { + stateContainer.setAppState({ sort }); + }, + [stateContainer] + ); + + const showTimeCol = useMemo( + () => !uiSettings.get(DOC_HIDE_TIME_COLUMN_SETTING, false) && !!indexPattern.timeFieldName, + [uiSettings, indexPattern.timeFieldName] + ); + + if ( + (!documentState.result || documentState.result.length === 0) && + documentState.fetchStatus === FetchStatus.LOADING + ) { + return ( +
+ + + + + +
+ ); + } + + return ( + +
+

+ +

+ {isLegacy && rows && rows.length && ( + + )} + {!isLegacy && ( +
+ +
+ )} +
+
+ ); +} + +export const DiscoverDocuments = memo(DiscoverDocumentsComponent); diff --git a/src/plugins/discover/public/application/apps/main/components/layout/discover_layout.scss b/src/plugins/discover/public/application/apps/main/components/layout/discover_layout.scss index 8ca11e9e044e8..b3a4453425ac5 100644 --- a/src/plugins/discover/public/application/apps/main/components/layout/discover_layout.scss +++ b/src/plugins/discover/public/application/apps/main/components/layout/discover_layout.scss @@ -103,3 +103,12 @@ discover-app { padding: $euiSizeXS $euiSizeS; text-align: center; } + +.dscDocuments__loading { + display: flex; + flex-direction: column; + justify-content: center; + text-align: center; + height: 100%; + width: 100%; +} diff --git a/src/plugins/discover/public/application/apps/main/components/layout/discover_layout.test.tsx b/src/plugins/discover/public/application/apps/main/components/layout/discover_layout.test.tsx index 57a9d518f838e..7343760f32d13 100644 --- a/src/plugins/discover/public/application/apps/main/components/layout/discover_layout.test.tsx +++ b/src/plugins/discover/public/application/apps/main/components/layout/discover_layout.test.tsx @@ -20,9 +20,17 @@ import { SavedObject } from '../../../../../../../../core/types'; import { indexPatternWithTimefieldMock } from '../../../../../__mocks__/index_pattern_with_timefield'; import { GetStateReturn } from '../../services/discover_state'; import { DiscoverLayoutProps } from './types'; -import { SavedSearchDataSubject } from '../../services/use_saved_search'; +import { + DataCharts$, + DataDocuments$, + DataMain$, + DataTotalHits$, +} from '../../services/use_saved_search'; import { discoverServiceMock } from '../../../../../__mocks__/services'; import { FetchStatus } from '../../../../types'; +import { ElasticSearchHit } from '../../../../doc_views/doc_views_types'; +import { RequestAdapter } from '../../../../../../../inspector'; +import { Chart } from '../chart/point_series'; setHeaderActionMenuMounter(jest.fn()); @@ -37,23 +45,99 @@ function getProps(indexPattern: IndexPattern): DiscoverLayoutProps { return { ...ip, ...{ attributes: { title: ip.title } } }; }) as unknown) as Array>; - const savedSearch$ = new BehaviorSubject({ - state: FetchStatus.COMPLETE, - rows: esHits, - fetchCounter: 1, - fieldCounts: {}, - hits: Number(esHits.length), - }) as SavedSearchDataSubject; + const main$ = new BehaviorSubject({ + fetchStatus: FetchStatus.COMPLETE, + foundDocuments: true, + }) as DataMain$; + + const documents$ = new BehaviorSubject({ + fetchStatus: FetchStatus.COMPLETE, + result: esHits as ElasticSearchHit[], + }) as DataDocuments$; + + const totalHits$ = new BehaviorSubject({ + fetchStatus: FetchStatus.COMPLETE, + result: Number(esHits.length), + }) as DataTotalHits$; + + const chartData = ({ + xAxisOrderedValues: [ + 1623880800000, + 1623967200000, + 1624053600000, + 1624140000000, + 1624226400000, + 1624312800000, + 1624399200000, + 1624485600000, + 1624572000000, + 1624658400000, + 1624744800000, + 1624831200000, + 1624917600000, + 1625004000000, + 1625090400000, + ], + xAxisFormat: { id: 'date', params: { pattern: 'YYYY-MM-DD' } }, + xAxisLabel: 'order_date per day', + yAxisFormat: { id: 'number' }, + ordered: { + date: true, + interval: { + asMilliseconds: jest.fn(), + }, + intervalESUnit: 'd', + intervalESValue: 1, + min: '2021-03-18T08:28:56.411Z', + max: '2021-07-01T07:28:56.411Z', + }, + yAxisLabel: 'Count', + values: [ + { x: 1623880800000, y: 134 }, + { x: 1623967200000, y: 152 }, + { x: 1624053600000, y: 141 }, + { x: 1624140000000, y: 138 }, + { x: 1624226400000, y: 142 }, + { x: 1624312800000, y: 157 }, + { x: 1624399200000, y: 149 }, + { x: 1624485600000, y: 146 }, + { x: 1624572000000, y: 170 }, + { x: 1624658400000, y: 137 }, + { x: 1624744800000, y: 150 }, + { x: 1624831200000, y: 144 }, + { x: 1624917600000, y: 147 }, + { x: 1625004000000, y: 137 }, + { x: 1625090400000, y: 66 }, + ], + } as unknown) as Chart; + + const charts$ = new BehaviorSubject({ + fetchStatus: FetchStatus.COMPLETE, + chartData, + bucketInterval: { + scaled: true, + description: 'test', + scale: 2, + }, + }) as DataCharts$; + + const savedSearchData$ = { + main$, + documents$, + totalHits$, + charts$, + }; return { indexPattern, indexPatternList, + inspectorAdapters: { requests: new RequestAdapter() }, navigateTo: jest.fn(), onChangeIndexPattern: jest.fn(), onUpdateQuery: jest.fn(), resetQuery: jest.fn(), savedSearch: savedSearchMock, - savedSearchData$: savedSearch$, + savedSearchData$, savedSearchRefetch$: new Subject(), searchSource: searchSourceMock, services, diff --git a/src/plugins/discover/public/application/apps/main/components/layout/discover_layout.tsx b/src/plugins/discover/public/application/apps/main/components/layout/discover_layout.tsx index 8cc3be810a7ee..785cde6fd311d 100644 --- a/src/plugins/discover/public/application/apps/main/components/layout/discover_layout.tsx +++ b/src/plugins/discover/public/application/apps/main/components/layout/discover_layout.tsx @@ -20,11 +20,10 @@ import { } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { METRIC_TYPE } from '@kbn/analytics'; -import { FormattedMessage, I18nProvider } from '@kbn/i18n/react'; +import { I18nProvider } from '@kbn/i18n/react'; import classNames from 'classnames'; import { DiscoverNoResults } from '../no_results'; import { LoadingSpinner } from '../loading_spinner/loading_spinner'; -import { DocTableLegacy } from '../../../../angular/doc_table/create_doc_table_react'; import { esFilters, IndexPatternField, @@ -32,42 +31,28 @@ import { } from '../../../../../../../data/public'; import { DiscoverSidebarResponsive } from '../sidebar'; import { DiscoverLayoutProps } from './types'; -import { SortPairArr } from '../../../../angular/doc_table/lib/get_sort'; -import { - DOC_HIDE_TIME_COLUMN_SETTING, - DOC_TABLE_LEGACY, - SAMPLE_SIZE_SETTING, - SEARCH_FIELDS_FROM_SOURCE, -} from '../../../../../../common'; +import { DOC_TABLE_LEGACY, SEARCH_FIELDS_FROM_SOURCE } from '../../../../../../common'; import { popularizeField } from '../../../../helpers/popularize_field'; -import { DocViewFilterFn } from '../../../../doc_views/doc_views_types'; -import { DiscoverGrid } from '../../../../components/discover_grid/discover_grid'; import { DiscoverTopNav } from '../top_nav/discover_topnav'; -import { ElasticSearchHit } from '../../../../doc_views/doc_views_types'; +import { DocViewFilterFn, ElasticSearchHit } from '../../../../doc_views/doc_views_types'; import { DiscoverChart } from '../chart'; import { getResultState } from '../../utils/get_result_state'; import { InspectorSession } from '../../../../../../../inspector/public'; import { DiscoverUninitialized } from '../uninitialized/uninitialized'; -import { SavedSearchDataMessage } from '../../services/use_saved_search'; +import { DataMainMsg } from '../../services/use_saved_search'; import { useDataGridColumns } from '../../../../helpers/use_data_grid_columns'; +import { DiscoverDocuments } from './discover_documents'; import { FetchStatus } from '../../../../types'; +import { useDataState } from '../../utils/use_data_state'; -const DocTableLegacyMemoized = React.memo(DocTableLegacy); const SidebarMemoized = React.memo(DiscoverSidebarResponsive); -const DataGridMemoized = React.memo(DiscoverGrid); const TopNavMemoized = React.memo(DiscoverTopNav); const DiscoverChartMemoized = React.memo(DiscoverChart); -interface DiscoverLayoutFetchState extends SavedSearchDataMessage { - state: FetchStatus; - fetchCounter: number; - fieldCounts: Record; - rows: ElasticSearchHit[]; -} - export function DiscoverLayout({ indexPattern, indexPatternList, + inspectorAdapters, navigateTo, onChangeIndexPattern, onUpdateQuery, @@ -82,38 +67,22 @@ export function DiscoverLayout({ }: DiscoverLayoutProps) { const { trackUiMetric, capabilities, indexPatterns, data, uiSettings, filterManager } = services; - const sampleSize = useMemo(() => uiSettings.get(SAMPLE_SIZE_SETTING), [uiSettings]); const [expandedDoc, setExpandedDoc] = useState(undefined); const [inspectorSession, setInspectorSession] = useState(undefined); - const scrollableDesktop = useRef(null); const collapseIcon = useRef(null); + const fetchCounter = useRef(0); + const { main$, charts$, totalHits$ } = savedSearchData$; - const [fetchState, setFetchState] = useState({ - state: savedSearchData$.getValue().state, - fetchCounter: 0, - fieldCounts: {}, - rows: [], - }); - const { state: fetchStatus, fetchCounter, inspectorAdapters, rows } = fetchState; + const dataState: DataMainMsg = useDataState(main$); useEffect(() => { - const subscription = savedSearchData$.subscribe((next) => { - if ( - (next.state && next.state !== fetchState.state) || - (next.fetchCounter && next.fetchCounter !== fetchState.fetchCounter) || - (next.rows && next.rows !== fetchState.rows) || - (next.chartData && next.chartData !== fetchState.chartData) - ) { - setFetchState({ ...fetchState, ...next }); - } - }); - return () => { - subscription.unsubscribe(); - }; - }, [savedSearchData$, fetchState]); + if (dataState.fetchStatus === FetchStatus.LOADING) { + fetchCounter.current++; + } + }, [dataState.fetchStatus]); // collapse icon isn't displayed in mobile view, use it to detect which view is displayed - const isMobile = () => collapseIcon && !collapseIcon.current; + const isMobile = useCallback(() => collapseIcon && !collapseIcon.current, []); const timeField = useMemo(() => { return indexPatternsUtils.isDefault(indexPattern) ? indexPattern.timeFieldName : undefined; }, [indexPattern]); @@ -122,27 +91,18 @@ export function DiscoverLayout({ const isLegacy = useMemo(() => uiSettings.get(DOC_TABLE_LEGACY), [uiSettings]); const useNewFieldsApi = useMemo(() => !uiSettings.get(SEARCH_FIELDS_FROM_SOURCE), [uiSettings]); - const resultState = useMemo(() => getResultState(fetchStatus, rows!), [fetchStatus, rows]); - - const { columns, onAddColumn, onRemoveColumn, onMoveColumn, onSetColumns } = useDataGridColumns({ - capabilities, - config: uiSettings, - indexPattern, - indexPatterns, - setAppState: stateContainer.setAppState, - state, - useNewFieldsApi, - }); + const resultState = useMemo( + () => getResultState(dataState.fetchStatus, dataState.foundDocuments!), + [dataState.fetchStatus, dataState.foundDocuments] + ); const onOpenInspector = useCallback(() => { // prevent overlapping - if (inspectorAdapters) { - setExpandedDoc(undefined); - const session = services.inspector.open(inspectorAdapters, { - title: savedSearch.title, - }); - setInspectorSession(session); - } + setExpandedDoc(undefined); + const session = services.inspector.open(inspectorAdapters, { + title: savedSearch.title, + }); + setInspectorSession(session); }, [setExpandedDoc, inspectorAdapters, savedSearch, services.inspector]); useEffect(() => { @@ -154,12 +114,15 @@ export function DiscoverLayout({ }; }, [inspectorSession]); - const onSort = useCallback( - (sort: string[][]) => { - stateContainer.setAppState({ sort }); - }, - [stateContainer] - ); + const { columns, onAddColumn, onRemoveColumn } = useDataGridColumns({ + capabilities, + config: uiSettings, + indexPattern, + indexPatterns, + setAppState: stateContainer.setAppState, + state, + useNewFieldsApi, + }); const onAddFilter = useCallback( (field: IndexPatternField | string, values: string, operation: '+' | '-') => { @@ -179,33 +142,6 @@ export function DiscoverLayout({ }, [filterManager, indexPattern, indexPatterns, trackUiMetric] ); - /** - * Legacy function, remove once legacy grid is removed - */ - const onBackToTop = useCallback(() => { - if (scrollableDesktop && scrollableDesktop.current) { - scrollableDesktop.current.focus(); - } - // Only the desktop one needs to target a specific container - if (!isMobile() && scrollableDesktop.current) { - scrollableDesktop.current.scrollTo(0, 0); - } else if (window) { - window.scrollTo(0, 0); - } - }, [scrollableDesktop]); - - const onResize = useCallback( - (colSettings: { columnId: string; width: number }) => { - const grid = { ...state.grid } || {}; - const newColumns = { ...grid.columns } || {}; - newColumns[colSettings.columnId] = { - width: colSettings.width, - }; - const newGrid = { ...grid, columns: newColumns }; - stateContainer.setAppState({ grid: newGrid }); - }, - [stateContainer, state] - ); const onEditRuntimeField = useCallback(() => { savedSearchRefetch$.next('reset'); @@ -219,14 +155,10 @@ export function DiscoverLayout({ }, [filterManager]); const contentCentered = resultState === 'uninitialized' || resultState === 'none'; - const showTimeCol = useMemo( - () => !uiSettings.get(DOC_HIDE_TIME_COLUMN_SETTING, false) && !!indexPattern.timeFieldName, - [uiSettings, indexPattern.timeFieldName] - ); return ( - + !f.meta.disabled).length > 0 @@ -320,82 +251,31 @@ export function DiscoverLayout({ > - - -
-

- -

- {isLegacy && rows && rows.length && ( - - )} - {!isLegacy && rows && rows.length && ( -
- -
- )} -
-
+ )} diff --git a/src/plugins/discover/public/application/apps/main/components/layout/types.ts b/src/plugins/discover/public/application/apps/main/components/layout/types.ts index 04744c56d14d4..03d4471db94b6 100644 --- a/src/plugins/discover/public/application/apps/main/components/layout/types.ts +++ b/src/plugins/discover/public/application/apps/main/components/layout/types.ts @@ -15,20 +15,22 @@ import { } from '../../../../../../../data/common'; import { ISearchSource } from '../../../../../../../data/public'; import { AppState, GetStateReturn } from '../../services/discover_state'; -import { SavedSearchRefetchSubject, SavedSearchDataSubject } from '../../services/use_saved_search'; +import { DataRefetch$, SavedSearchData } from '../../services/use_saved_search'; import { DiscoverServices } from '../../../../../build_services'; import { SavedSearch } from '../../../../../saved_searches'; +import { RequestAdapter } from '../../../../../../../inspector'; export interface DiscoverLayoutProps { indexPattern: IndexPattern; indexPatternList: Array>; + inspectorAdapters: { requests: RequestAdapter }; navigateTo: (url: string) => void; onChangeIndexPattern: (id: string) => void; onUpdateQuery: (payload: { dateRange: TimeRange; query?: Query }, isUpdate?: boolean) => void; resetQuery: () => void; savedSearch: SavedSearch; - savedSearchData$: SavedSearchDataSubject; - savedSearchRefetch$: SavedSearchRefetchSubject; + savedSearchData$: SavedSearchData; + savedSearchRefetch$: DataRefetch$; searchSource: ISearchSource; services: DiscoverServices; state: AppState; diff --git a/src/plugins/discover/public/application/apps/main/components/sidebar/discover_sidebar.test.tsx b/src/plugins/discover/public/application/apps/main/components/sidebar/discover_sidebar.test.tsx index 304ab05516f92..1e00e81f788e6 100644 --- a/src/plugins/discover/public/application/apps/main/components/sidebar/discover_sidebar.test.tsx +++ b/src/plugins/discover/public/application/apps/main/components/sidebar/discover_sidebar.test.tsx @@ -63,7 +63,7 @@ function getCompProps(): DiscoverSidebarProps { return { columns: ['extension'], fieldCounts, - hits, + documents: hits, indexPatternList, onChangeIndexPattern: jest.fn(), onAddFilter: jest.fn(), diff --git a/src/plugins/discover/public/application/apps/main/components/sidebar/discover_sidebar.tsx b/src/plugins/discover/public/application/apps/main/components/sidebar/discover_sidebar.tsx index 7f8866a2ee369..938b0a49b29a7 100644 --- a/src/plugins/discover/public/application/apps/main/components/sidebar/discover_sidebar.tsx +++ b/src/plugins/discover/public/application/apps/main/components/sidebar/discover_sidebar.tsx @@ -36,13 +36,14 @@ import { FieldFilterState, getDefaultFieldFilter, setFieldFilterProp } from './l import { getIndexPatternFieldList } from './lib/get_index_pattern_field_list'; import { DiscoverSidebarResponsiveProps } from './discover_sidebar_responsive'; import { DiscoverIndexPatternManagement } from './discover_index_pattern_management'; +import { ElasticSearchHit } from '../../../../doc_views/doc_views_types'; /** * Default number of available fields displayed and added on scroll */ const FIELDS_PER_PAGE = 50; -export interface DiscoverSidebarProps extends DiscoverSidebarResponsiveProps { +export interface DiscoverSidebarProps extends Omit { /** * Current state of the field filter, filtering fields by name, type, ... */ @@ -64,6 +65,15 @@ export interface DiscoverSidebarProps extends DiscoverSidebarResponsiveProps { setFieldEditorRef?: (ref: () => void | undefined) => void; editField: (fieldName?: string) => void; + + /** + * a statistics of the distribution of fields in the given hits + */ + fieldCounts: Record; + /** + * hits fetched from ES, displayed in the doc table + */ + documents: ElasticSearchHit[]; } export function DiscoverSidebar({ @@ -71,7 +81,7 @@ export function DiscoverSidebar({ columns, fieldCounts, fieldFilter, - hits, + documents, indexPatternList, onAddField, onAddFilter, @@ -101,7 +111,7 @@ export function DiscoverSidebar({ useEffect(() => { const newFields = getIndexPatternFieldList(selectedIndexPattern, fieldCounts); setFields(newFields); - }, [selectedIndexPattern, fieldCounts, hits]); + }, [selectedIndexPattern, fieldCounts, documents]); const scrollDimensions = useResizeObserver(scrollContainer); @@ -115,8 +125,8 @@ export function DiscoverSidebar({ ); const getDetailsByField = useCallback( - (ipField: IndexPatternField) => getDetails(ipField, hits, columns, selectedIndexPattern), - [hits, columns, selectedIndexPattern] + (ipField: IndexPatternField) => getDetails(ipField, documents, columns, selectedIndexPattern), + [documents, columns, selectedIndexPattern] ); const popularLimit = useMemo(() => services.uiSettings.get(FIELDS_LIMIT_SETTING), [ diff --git a/src/plugins/discover/public/application/apps/main/components/sidebar/discover_sidebar_responsive.test.tsx b/src/plugins/discover/public/application/apps/main/components/sidebar/discover_sidebar_responsive.test.tsx index 6973221fd3624..32f7656c73762 100644 --- a/src/plugins/discover/public/application/apps/main/components/sidebar/discover_sidebar_responsive.test.tsx +++ b/src/plugins/discover/public/application/apps/main/components/sidebar/discover_sidebar_responsive.test.tsx @@ -7,6 +7,7 @@ */ import { each, cloneDeep } from 'lodash'; +import { BehaviorSubject } from 'rxjs'; import { ReactWrapper } from 'enzyme'; import { findTestSubject } from '@elastic/eui/lib/test'; // @ts-expect-error @@ -25,6 +26,8 @@ import { } from './discover_sidebar_responsive'; import { DiscoverServices } from '../../../../../build_services'; import { ElasticSearchHit } from '../../../../doc_views/doc_views_types'; +import { FetchStatus } from '../../../../types'; +import { DataDocuments$ } from '../../services/use_saved_search'; const mockServices = ({ history: () => ({ @@ -86,8 +89,10 @@ function getCompProps(): DiscoverSidebarResponsiveProps { } return { columns: ['extension'], - fieldCounts, - hits, + documents$: new BehaviorSubject({ + fetchStatus: FetchStatus.COMPLETE, + result: hits as ElasticSearchHit[], + }) as DataDocuments$, indexPatternList, onChangeIndexPattern: jest.fn(), onAddFilter: jest.fn(), diff --git a/src/plugins/discover/public/application/apps/main/components/sidebar/discover_sidebar_responsive.tsx b/src/plugins/discover/public/application/apps/main/components/sidebar/discover_sidebar_responsive.tsx index 003bb22599e48..bbc2328e057d3 100644 --- a/src/plugins/discover/public/application/apps/main/components/sidebar/discover_sidebar_responsive.tsx +++ b/src/plugins/discover/public/application/apps/main/components/sidebar/discover_sidebar_responsive.tsx @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import React, { useEffect, useRef, useState } from 'react'; +import React, { useEffect, useRef, useState, useCallback } from 'react'; import { sortBy } from 'lodash'; import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n/react'; @@ -33,9 +33,10 @@ import { IndexPatternField, IndexPattern } from '../../../../../../../data/publi import { getDefaultFieldFilter } from './lib/field_filter'; import { DiscoverSidebar } from './discover_sidebar'; import { DiscoverServices } from '../../../../../build_services'; -import { ElasticSearchHit } from '../../../../doc_views/doc_views_types'; import { AppState } from '../../services/discover_state'; import { DiscoverIndexPatternManagement } from './discover_index_pattern_management'; +import { DataDocuments$ } from '../../services/use_saved_search'; +import { calcFieldCounts } from '../../utils/calc_field_counts'; export interface DiscoverSidebarResponsiveProps { /** @@ -46,14 +47,10 @@ export interface DiscoverSidebarResponsiveProps { * the selected columns displayed in the doc table in discover */ columns: string[]; - /** - * a statistics of the distribution of fields in the given hits - */ - fieldCounts: Record; /** * hits fetched from ES, displayed in the doc table */ - hits: ElasticSearchHit[]; + documents$: DataDocuments$; /** * List of available index patterns */ @@ -119,6 +116,36 @@ export interface DiscoverSidebarResponsiveProps { export function DiscoverSidebarResponsive(props: DiscoverSidebarResponsiveProps) { const [fieldFilter, setFieldFilter] = useState(getDefaultFieldFilter()); const [isFlyoutVisible, setIsFlyoutVisible] = useState(false); + /** + * needed for merging new with old field counts, high likely legacy, but kept this behavior + * because not 100% sure in this case + */ + const fieldCounts = useRef>( + calcFieldCounts({}, props.documents$.getValue().result, props.selectedIndexPattern) + ); + + const [documentState, setDocumentState] = useState(props.documents$.getValue()); + useEffect(() => { + const subscription = props.documents$.subscribe((next) => { + if (next.fetchStatus !== documentState.fetchStatus) { + if (next.result) { + fieldCounts.current = calcFieldCounts( + next.result.length ? fieldCounts.current : {}, + next.result, + props.selectedIndexPattern! + ); + } + setDocumentState({ ...documentState, ...next }); + } + }); + return () => subscription.unsubscribe(); + }, [props.documents$, props.selectedIndexPattern, documentState, setDocumentState]); + + useEffect(() => { + // when index pattern changes fieldCounts needs to be cleaned up to prevent displaying + // fields of the previous index pattern + fieldCounts.current = {}; + }, [props.selectedIndexPattern]); const closeFieldEditor = useRef<() => void | undefined>(); @@ -134,17 +161,17 @@ export function DiscoverSidebarResponsive(props: DiscoverSidebarResponsiveProps) }; }, []); - if (!props.selectedIndexPattern) { - return null; - } - - const setFieldEditorRef = (ref: () => void | undefined) => { + const setFieldEditorRef = useCallback((ref: () => void | undefined) => { closeFieldEditor.current = ref; - }; + }, []); - const closeFlyout = () => { + const closeFlyout = useCallback(() => { setIsFlyoutVisible(false); - }; + }, []); + + if (!props.selectedIndexPattern) { + return null; + } const { indexPatternFieldEditor } = props.services; const indexPatternFieldEditPermission = indexPatternFieldEditor?.userPermissions.editIndexPattern(); @@ -177,7 +204,9 @@ export function DiscoverSidebarResponsive(props: DiscoverSidebarResponsiveProps) @@ -262,6 +291,8 @@ export function DiscoverSidebarResponsive(props: DiscoverSidebarResponsiveProps)
; @@ -48,11 +102,16 @@ describe('timechart header', function () { }, ], onChangeInterval: jest.fn(), - bucketInterval: { - scaled: undefined, - description: 'second', - scale: undefined, - }, + + savedSearchData$: new BehaviorSubject({ + fetchStatus: FetchStatus.COMPLETE, + chartData, + bucketInterval: { + scaled: false, + description: 'second', + scale: undefined, + }, + }) as DataCharts$, }; }); @@ -62,7 +121,15 @@ describe('timechart header', function () { }); it('TimechartHeader renders an info when bucketInterval.scale is set to true', () => { - props.bucketInterval!.scaled = true; + props.savedSearchData$ = new BehaviorSubject({ + fetchStatus: FetchStatus.COMPLETE, + chartData, + bucketInterval: { + scaled: true, + description: 'second', + scale: undefined, + }, + }) as DataCharts$; component = mountWithIntl(); expect(component.find(EuiIconTip).length).toBe(1); }); diff --git a/src/plugins/discover/public/application/apps/main/components/timechart_header/timechart_header.tsx b/src/plugins/discover/public/application/apps/main/components/timechart_header/timechart_header.tsx index ec94679ece675..5c0b12cfe2534 100644 --- a/src/plugins/discover/public/application/apps/main/components/timechart_header/timechart_header.tsx +++ b/src/plugins/discover/public/application/apps/main/components/timechart_header/timechart_header.tsx @@ -20,6 +20,8 @@ import { i18n } from '@kbn/i18n'; import dateMath from '@elastic/datemath'; import './timechart_header.scss'; import { DataPublicPluginStart } from '../../../../../../../data/public'; +import { DataCharts$, DataChartsMessage } from '../../services/use_saved_search'; +import { useDataState } from '../../utils/use_data_state'; export interface TimechartBucketInterval { scaled?: boolean; @@ -32,10 +34,7 @@ export interface TimechartHeaderProps { * Format of date to be displayed */ dateFormat?: string; - /** - * Interval for the buckets of the recent request - */ - bucketInterval?: TimechartBucketInterval; + data: DataPublicPluginStart; /** * Interval Options @@ -49,17 +48,23 @@ export interface TimechartHeaderProps { * selected interval */ stateInterval: string; + + savedSearchData$: DataCharts$; } export function TimechartHeader({ - bucketInterval, dateFormat, - data, + data: dataPluginStart, options, onChangeInterval, stateInterval, + savedSearchData$, }: TimechartHeaderProps) { - const { timefilter } = data.query.timefilter; + const { timefilter } = dataPluginStart.query.timefilter; + + const data: DataChartsMessage = useDataState(savedSearchData$); + + const { bucketInterval } = data; const { from, to } = timefilter.getTime(); const timeRange = { from: dateMath.parse(from), diff --git a/src/plugins/discover/public/application/apps/main/discover_main_app.tsx b/src/plugins/discover/public/application/apps/main/discover_main_app.tsx index 07939fff6e7f4..0195421fd568d 100644 --- a/src/plugins/discover/public/application/apps/main/discover_main_app.tsx +++ b/src/plugins/discover/public/application/apps/main/discover_main_app.tsx @@ -58,6 +58,7 @@ export function DiscoverMainApp(props: DiscoverMainProps) { const { data$, indexPattern, + inspectorAdapters, onChangeIndexPattern, onUpdateQuery, refetch$, @@ -105,6 +106,7 @@ export function DiscoverMainApp(props: DiscoverMainProps) { ; /** - * Function starting state sync when Discover main is loaded + * Initialize state with filters and query, start state syncing */ initializeAndSync: ( indexPattern: IndexPattern, diff --git a/src/plugins/discover/public/application/apps/main/services/use_discover_state.ts b/src/plugins/discover/public/application/apps/main/services/use_discover_state.ts index 3c736f09a8296..1bf9710def03c 100644 --- a/src/plugins/discover/public/application/apps/main/services/use_discover_state.ts +++ b/src/plugins/discover/public/application/apps/main/services/use_discover_state.ts @@ -41,7 +41,7 @@ export function useDiscoverState({ const [indexPattern, setIndexPattern] = useState(initialIndexPattern); const [savedSearch, setSavedSearch] = useState(initialSavedSearch); const useNewFieldsApi = useMemo(() => !config.get(SEARCH_FIELDS_FROM_SOURCE), [config]); - const timefilter = data.query.timefilter.timefilter; + const { timefilter } = data.query.timefilter; const searchSource = useMemo(() => { savedSearch.searchSource.setField('index', indexPattern); @@ -88,8 +88,7 @@ export function useDiscoverState({ /** * Data fetching logic */ - const { data$, refetch$, reset } = useSavedSearchData({ - indexPattern, + const { data$, refetch$, reset, inspectorAdapters } = useSavedSearchData({ initialFetchStatus, searchSessionManager, searchSource, @@ -100,9 +99,7 @@ export function useDiscoverState({ useEffect(() => { const stopSync = stateContainer.initializeAndSync(indexPattern, filterManager, data); - return () => { - stopSync(); - }; + return () => stopSync(); }, [stateContainer, filterManager, data, indexPattern]); /** @@ -138,8 +135,11 @@ export function useDiscoverState({ setState(nextState); }); return () => unsubscribe(); - }, [config, indexPatterns, appStateContainer, setState, state, refetch$, data$, reset]); + }, [config, indexPatterns, appStateContainer, setState, state, refetch$, reset]); + /** + * function to revert any changes to a given saved search + */ const resetSavedSearch = useCallback( async (id?: string) => { const newSavedSearch = await services.getSavedSearchById(id); @@ -201,11 +201,12 @@ export function useDiscoverState({ if (initialFetchStatus === FetchStatus.LOADING) { refetch$.next(); } - }, [initialFetchStatus, refetch$, indexPattern, data$]); + }, [initialFetchStatus, refetch$, indexPattern]); return { data$, indexPattern, + inspectorAdapters, refetch$, resetSavedSearch, onChangeIndexPattern, diff --git a/src/plugins/discover/public/application/apps/main/services/use_saved_search.test.ts b/src/plugins/discover/public/application/apps/main/services/use_saved_search.test.ts index 128c94f284f56..f4d05e551a4a4 100644 --- a/src/plugins/discover/public/application/apps/main/services/use_saved_search.test.ts +++ b/src/plugins/discover/public/application/apps/main/services/use_saved_search.test.ts @@ -28,7 +28,6 @@ describe('test useSavedSearch', () => { const { result } = renderHook(() => { return useSavedSearch({ - indexPattern: indexPatternMock, initialFetchStatus: FetchStatus.LOADING, searchSessionManager, searchSource: savedSearchMock.searchSource.createCopy(), @@ -39,11 +38,10 @@ describe('test useSavedSearch', () => { }); expect(result.current.refetch$).toBeInstanceOf(Subject); - expect(result.current.data$.value).toMatchInlineSnapshot(` - Object { - "state": "loading", - } - `); + expect(result.current.data$.main$.getValue().fetchStatus).toBe(FetchStatus.LOADING); + expect(result.current.data$.documents$.getValue().fetchStatus).toBe(FetchStatus.LOADING); + expect(result.current.data$.totalHits$.getValue().fetchStatus).toBe(FetchStatus.LOADING); + expect(result.current.data$.charts$.getValue().fetchStatus).toBe(FetchStatus.LOADING); }); test('refetch$ triggers a search', async () => { const { history, searchSessionManager } = createSearchSessionMock(); @@ -68,7 +66,6 @@ describe('test useSavedSearch', () => { const { result, waitForValueToChange } = renderHook(() => { return useSavedSearch({ - indexPattern: indexPatternMock, initialFetchStatus: FetchStatus.LOADING, searchSessionManager, searchSource: resultState.current.searchSource, @@ -81,11 +78,11 @@ describe('test useSavedSearch', () => { result.current.refetch$.next(); await waitForValueToChange(() => { - return result.current.data$.value.state === 'complete'; + return result.current.data$.main$.value.fetchStatus === 'complete'; }); - expect(result.current.data$.value.hits).toBe(0); - expect(result.current.data$.value.rows).toEqual([]); + expect(result.current.data$.totalHits$.value.result).toBe(0); + expect(result.current.data$.documents$.value.result).toEqual([]); }); test('reset sets back to initial state', async () => { @@ -111,7 +108,6 @@ describe('test useSavedSearch', () => { const { result, waitForValueToChange } = renderHook(() => { return useSavedSearch({ - indexPattern: indexPatternMock, initialFetchStatus: FetchStatus.LOADING, searchSessionManager, searchSource: resultState.current.searchSource, @@ -124,10 +120,10 @@ describe('test useSavedSearch', () => { result.current.refetch$.next(); await waitForValueToChange(() => { - return result.current.data$.value.state === FetchStatus.COMPLETE; + return result.current.data$.main$.value.fetchStatus === FetchStatus.COMPLETE; }); result.current.reset(); - expect(result.current.data$.value.state).toBe(FetchStatus.LOADING); + expect(result.current.data$.main$.value.fetchStatus).toBe(FetchStatus.LOADING); }); }); diff --git a/src/plugins/discover/public/application/apps/main/services/use_saved_search.ts b/src/plugins/discover/public/application/apps/main/services/use_saved_search.ts index b449d35dca9ad..8ed6667f8acce 100644 --- a/src/plugins/discover/public/application/apps/main/services/use_saved_search.ts +++ b/src/plugins/discover/public/application/apps/main/services/use_saved_search.ts @@ -5,53 +5,71 @@ * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ -import { useEffect, useRef, useCallback } from 'react'; -import { i18n } from '@kbn/i18n'; -import { merge, Subject, BehaviorSubject } from 'rxjs'; -import { debounceTime, tap, filter } from 'rxjs/operators'; +import { useCallback, useEffect, useMemo, useRef } from 'react'; +import { BehaviorSubject, merge, Subject } from 'rxjs'; +import { debounceTime, filter, tap } from 'rxjs/operators'; import { DiscoverServices } from '../../../../build_services'; import { DiscoverSearchSessionManager } from './discover_search_session'; -import { - IndexPattern, - isCompleteResponse, - SearchSource, - tabifyAggResponse, -} from '../../../../../../data/common'; +import { SearchSource } from '../../../../../../data/common'; import { GetStateReturn } from './discover_state'; import { ElasticSearchHit } from '../../../doc_views/doc_views_types'; import { RequestAdapter } from '../../../../../../inspector/public'; -import { AutoRefreshDoneFn, search } from '../../../../../../data/public'; -import { calcFieldCounts } from '../utils/calc_field_counts'; +import { AutoRefreshDoneFn } from '../../../../../../data/public'; import { validateTimeRange } from '../utils/validate_time_range'; -import { updateSearchSource } from '../utils/update_search_source'; -import { SortOrder } from '../../../../saved_searches/types'; -import { getDimensions, getChartAggConfigs } from '../utils'; -import { buildPointSeriesData, Chart } from '../components/chart/point_series'; +import { Chart } from '../components/chart/point_series'; import { TimechartBucketInterval } from '../components/timechart_header/timechart_header'; import { useSingleton } from '../utils/use_singleton'; import { FetchStatus } from '../../../types'; -export type SavedSearchDataSubject = BehaviorSubject; -export type SavedSearchRefetchSubject = Subject; +import { fetchAll } from '../utils/fetch_all'; +import { useBehaviorSubject } from '../utils/use_behavior_subject'; +import { sendResetMsg } from './use_saved_search_messages'; + +export interface SavedSearchData { + main$: DataMain$; + documents$: DataDocuments$; + totalHits$: DataTotalHits$; + charts$: DataCharts$; +} + +export type DataMain$ = BehaviorSubject; +export type DataDocuments$ = BehaviorSubject; +export type DataTotalHits$ = BehaviorSubject; +export type DataCharts$ = BehaviorSubject; + +export type DataRefetch$ = Subject; export interface UseSavedSearch { - refetch$: SavedSearchRefetchSubject; - data$: SavedSearchDataSubject; + refetch$: DataRefetch$; + data$: SavedSearchData; reset: () => void; + inspectorAdapters: { requests: RequestAdapter }; } -export type SavedSearchRefetchMsg = 'reset' | undefined; +export type DataRefetchMsg = 'reset' | undefined; + +export interface DataMsg { + fetchStatus: FetchStatus; + error?: Error; +} + +export interface DataMainMsg extends DataMsg { + foundDocuments?: boolean; +} -export interface SavedSearchDataMessage { +export interface DataDocumentsMsg extends DataMsg { + result?: ElasticSearchHit[]; +} + +export interface DataTotalHitsMsg extends DataMsg { + fetchStatus: FetchStatus; + error?: Error; + result?: number; +} + +export interface DataChartsMessage extends DataMsg { bucketInterval?: TimechartBucketInterval; chartData?: Chart; - fetchCounter?: number; - fetchError?: Error; - fieldCounts?: Record; - hits?: number; - inspectorAdapters?: { requests: RequestAdapter }; - rows?: ElasticSearchHit[]; - state: FetchStatus; } /** @@ -59,7 +77,6 @@ export interface SavedSearchDataMessage { * to the data fetching */ export const useSavedSearch = ({ - indexPattern, initialFetchStatus, searchSessionManager, searchSource, @@ -67,244 +84,148 @@ export const useSavedSearch = ({ stateContainer, useNewFieldsApi, }: { - indexPattern: IndexPattern; initialFetchStatus: FetchStatus; searchSessionManager: DiscoverSearchSessionManager; searchSource: SearchSource; services: DiscoverServices; stateContainer: GetStateReturn; useNewFieldsApi: boolean; -}): UseSavedSearch => { +}) => { const { data, filterManager } = services; const timefilter = data.query.timefilter.timefilter; + const inspectorAdapters = useMemo(() => ({ requests: new RequestAdapter() }), []); + /** - * The observable the UI (aka React component) subscribes to get notified about + * The observables the UI (aka React component) subscribes to get notified about * the changes in the data fetching process (high level: fetching started, data was received) */ - const data$: SavedSearchDataSubject = useSingleton( - () => - new BehaviorSubject({ - state: initialFetchStatus, - }) - ); + const main$: DataMain$ = useBehaviorSubject({ fetchStatus: initialFetchStatus }); + + const documents$: DataDocuments$ = useBehaviorSubject({ fetchStatus: initialFetchStatus }); + + const totalHits$: DataTotalHits$ = useBehaviorSubject({ fetchStatus: initialFetchStatus }); + + const charts$: DataCharts$ = useBehaviorSubject({ fetchStatus: initialFetchStatus }); + + const dataSubjects = useMemo(() => { + return { + main$, + documents$, + totalHits$, + charts$, + }; + }, [main$, charts$, documents$, totalHits$]); + /** * The observable to trigger data fetching in UI * By refetch$.next('reset') rows and fieldcounts are reset to allow e.g. editing of runtime fields * to be processed correctly */ - const refetch$ = useSingleton(() => new Subject()); + const refetch$ = useSingleton(() => new Subject()); /** * Values that shouldn't trigger re-rendering when changed */ const refs = useRef<{ abortController?: AbortController; - /** - * handler emitted by `timefilter.getAutoRefreshFetch$()` - * to notify when data completed loading and to start a new autorefresh loop - */ - autoRefreshDoneCb?: AutoRefreshDoneFn; - /** - * Number of fetches used for functional testing - */ - fetchCounter: number; - /** - * needed to right auto refresh behavior, a new auto refresh shouldnt be triggered when - * loading is still ongoing - */ - fetchStatus: FetchStatus; - /** - * needed for merging new with old field counts, high likely legacy, but kept this behavior - * because not 100% sure in this case - */ - fieldCounts: Record; - }>({ - fetchCounter: 0, - fieldCounts: {}, - fetchStatus: initialFetchStatus, - }); - - /** - * Resets the fieldCounts cache and sends a reset message - * It is set to initial state (no documents, fetchCounter to 0) - * Needed when index pattern is switched or a new runtime field is added - */ - const sendResetMsg = useCallback( - (fetchStatus?: FetchStatus) => { - refs.current.fieldCounts = {}; - refs.current.fetchStatus = fetchStatus ?? initialFetchStatus; - data$.next({ - state: initialFetchStatus, - fetchCounter: 0, - rows: [], - fieldCounts: {}, - chartData: undefined, - bucketInterval: undefined, - }); - }, - [data$, initialFetchStatus] - ); - /** - * Function to fetch data from ElasticSearch - */ - const fetchAll = useCallback( - (reset = false) => { - if (!validateTimeRange(timefilter.getTime(), services.toastNotifications)) { - return Promise.reject(); - } - const inspectorAdapters = { requests: new RequestAdapter() }; - - if (refs.current.abortController) refs.current.abortController.abort(); - refs.current.abortController = new AbortController(); - const sessionId = searchSessionManager.getNextSearchSessionId(); - - if (reset) { - sendResetMsg(FetchStatus.LOADING); - } else { - // Let the UI know, data fetching started - data$.next({ - state: FetchStatus.LOADING, - fetchCounter: ++refs.current.fetchCounter, - }); - refs.current.fetchStatus = FetchStatus.LOADING; - } - - const { sort, hideChart, interval } = stateContainer.appStateContainer.getState(); - updateSearchSource(searchSource, false, { - indexPattern, - services, - sort: sort as SortOrder[], - useNewFieldsApi, - }); - const chartAggConfigs = - indexPattern.timeFieldName && !hideChart && interval - ? getChartAggConfigs(searchSource, interval, data) - : undefined; - - if (!chartAggConfigs) { - searchSource.removeField('aggs'); - } else { - searchSource.setField('aggs', chartAggConfigs.toDsl()); - } - - const searchSourceFetch$ = searchSource.fetch$({ - abortSignal: refs.current.abortController.signal, - sessionId, - inspector: { - adapter: inspectorAdapters.requests, - title: i18n.translate('discover.inspectorRequestDataTitle', { - defaultMessage: 'data', - }), - description: i18n.translate('discover.inspectorRequestDescriptionDocument', { - defaultMessage: 'This request queries Elasticsearch to fetch the data for the search.', - }), - }, - }); - - searchSourceFetch$.pipe(filter((res) => isCompleteResponse(res))).subscribe( - (res) => { - const documents = res.rawResponse.hits.hits; - - const message: SavedSearchDataMessage = { - state: FetchStatus.COMPLETE, - rows: documents, - inspectorAdapters, - fieldCounts: calcFieldCounts(refs.current.fieldCounts, documents, indexPattern), - hits: res.rawResponse.hits.total as number, - }; - - if (chartAggConfigs) { - const bucketAggConfig = chartAggConfigs.aggs[1]; - const tabifiedData = tabifyAggResponse(chartAggConfigs, res.rawResponse); - const dimensions = getDimensions(chartAggConfigs, data); - if (dimensions) { - if (bucketAggConfig && search.aggs.isDateHistogramBucketAggConfig(bucketAggConfig)) { - message.bucketInterval = bucketAggConfig.buckets?.getInterval(); - } - message.chartData = buildPointSeriesData(tabifiedData, dimensions); - } - } - refs.current.fieldCounts = message.fieldCounts!; - refs.current.fetchStatus = message.state; - data$.next(message); - }, - (error) => { - if (error instanceof Error && error.name === 'AbortError') return; - data.search.showError(error); - refs.current.fetchStatus = FetchStatus.ERROR; - data$.next({ - state: FetchStatus.ERROR, - inspectorAdapters, - fetchError: error, - }); - }, - () => { - refs.current.autoRefreshDoneCb?.(); - refs.current.autoRefreshDoneCb = undefined; - } - ); - }, - [ - timefilter, - services, - searchSessionManager, - stateContainer.appStateContainer, - searchSource, - indexPattern, - useNewFieldsApi, - data, - sendResetMsg, - data$, - ] - ); + }>({}); /** * This part takes care of triggering the data fetching by creating and subscribing * to an observable of various possible changes in state */ useEffect(() => { + /** + * handler emitted by `timefilter.getAutoRefreshFetch$()` + * to notify when data completed loading and to start a new autorefresh loop + */ + let autoRefreshDoneCb: AutoRefreshDoneFn | undefined; const fetch$ = merge( refetch$, filterManager.getFetches$(), timefilter.getFetch$(), timefilter.getAutoRefreshFetch$().pipe( tap((done) => { - refs.current.autoRefreshDoneCb = done; + autoRefreshDoneCb = done; }), - filter(() => refs.current.fetchStatus !== FetchStatus.LOADING) + filter(() => { + /** + * filter to prevent auto-refresh triggered fetch when + * loading is still ongoing + */ + const currentFetchStatus = main$.getValue().fetchStatus; + return ( + currentFetchStatus !== FetchStatus.LOADING && currentFetchStatus !== FetchStatus.PARTIAL + ); + }) ), data.query.queryString.getUpdates$(), searchSessionManager.newSearchSessionIdFromURL$.pipe(filter((sessionId) => !!sessionId)) ).pipe(debounceTime(100)); const subscription = fetch$.subscribe((val) => { + if (!validateTimeRange(timefilter.getTime(), services.toastNotifications)) { + return; + } + inspectorAdapters.requests.reset(); + + refs.current.abortController?.abort(); + refs.current.abortController = new AbortController(); try { - fetchAll(val === 'reset'); + fetchAll(dataSubjects, searchSource, val === 'reset', { + abortController: refs.current.abortController, + appStateContainer: stateContainer.appStateContainer, + inspectorAdapters, + data, + initialFetchStatus, + searchSessionId: searchSessionManager.getNextSearchSessionId(), + services, + useNewFieldsApi, + }).subscribe({ + complete: () => { + // if this function was set and is executed, another refresh fetch can be triggered + autoRefreshDoneCb?.(); + autoRefreshDoneCb = undefined; + }, + }); } catch (error) { - data$.next({ - state: FetchStatus.ERROR, - fetchError: error, + main$.next({ + fetchStatus: FetchStatus.ERROR, + error, }); } }); - return () => { - subscription.unsubscribe(); - }; + return () => subscription.unsubscribe(); }, [ - data$, + data, data.query.queryString, + dataSubjects, filterManager, + initialFetchStatus, + inspectorAdapters, + main$, refetch$, + searchSessionManager, searchSessionManager.newSearchSessionIdFromURL$, + searchSource, + services, + services.toastNotifications, + stateContainer.appStateContainer, timefilter, - fetchAll, + useNewFieldsApi, + ]); + + const reset = useCallback(() => sendResetMsg(dataSubjects, initialFetchStatus), [ + dataSubjects, + initialFetchStatus, ]); return { refetch$, - data$, - reset: sendResetMsg, + data$: dataSubjects, + reset, + inspectorAdapters, }; }; diff --git a/src/plugins/discover/public/application/apps/main/services/use_saved_search_messages.ts b/src/plugins/discover/public/application/apps/main/services/use_saved_search_messages.ts new file mode 100644 index 0000000000000..b42d699f344cc --- /dev/null +++ b/src/plugins/discover/public/application/apps/main/services/use_saved_search_messages.ts @@ -0,0 +1,90 @@ +/* + * 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. + */ + +import { FetchStatus } from '../../../types'; +import { + DataCharts$, + DataDocuments$, + DataMain$, + DataTotalHits$, + SavedSearchData, +} from './use_saved_search'; + +/** + * Send COMPLETE message via main observable used when + * 1.) first fetch resolved, and there are no documents + * 2.) all fetches resolved, and there are documents + */ +export function sendCompleteMsg(main$: DataMain$, foundDocuments = true) { + if (main$.getValue().fetchStatus === FetchStatus.COMPLETE) { + return; + } + main$.next({ + fetchStatus: FetchStatus.COMPLETE, + foundDocuments, + }); +} + +/** + * Send PARTIAL message via main observable when first result is returned + */ +export function sendPartialMsg(main$: DataMain$) { + if (main$.getValue().fetchStatus === FetchStatus.LOADING) { + main$.next({ + fetchStatus: FetchStatus.PARTIAL, + }); + } +} + +/** + * Send LOADING message via main observable + */ +export function sendLoadingMsg(data$: DataMain$ | DataDocuments$ | DataTotalHits$ | DataCharts$) { + if (data$.getValue().fetchStatus !== FetchStatus.LOADING) { + data$.next({ + fetchStatus: FetchStatus.LOADING, + }); + } +} + +/** + * Send ERROR message + */ +export function sendErrorMsg( + data$: DataMain$ | DataDocuments$ | DataTotalHits$ | DataCharts$, + error: Error +) { + data$.next({ + fetchStatus: FetchStatus.ERROR, + error, + }); +} + +/** + * Sends a RESET message to all data subjects + * Needed when index pattern is switched or a new runtime field is added + */ +export function sendResetMsg(data: SavedSearchData, initialFetchStatus: FetchStatus) { + data.main$.next({ + fetchStatus: initialFetchStatus, + foundDocuments: undefined, + }); + data.documents$.next({ + fetchStatus: initialFetchStatus, + result: [], + }); + data.charts$.next({ + fetchStatus: initialFetchStatus, + chartData: undefined, + bucketInterval: undefined, + }); + data.totalHits$.next({ + fetchStatus: initialFetchStatus, + result: undefined, + }); +} diff --git a/src/plugins/discover/public/application/apps/main/utils/calc_field_counts.ts b/src/plugins/discover/public/application/apps/main/utils/calc_field_counts.ts index 43c9a57a70f22..57178776a97d4 100644 --- a/src/plugins/discover/public/application/apps/main/utils/calc_field_counts.ts +++ b/src/plugins/discover/public/application/apps/main/utils/calc_field_counts.ts @@ -15,9 +15,12 @@ import { ElasticSearchHit } from '../../../doc_views/doc_views_types'; */ export function calcFieldCounts( counts = {} as Record, - rows: ElasticSearchHit[], - indexPattern: IndexPattern + rows?: ElasticSearchHit[], + indexPattern?: IndexPattern ) { + if (!rows || !indexPattern) { + return {}; + } for (const hit of rows) { const fields = Object.keys(indexPattern.flattenHit(hit)); for (const fieldName of fields) { diff --git a/src/plugins/discover/public/application/apps/main/utils/fetch_all.test.ts b/src/plugins/discover/public/application/apps/main/utils/fetch_all.test.ts new file mode 100644 index 0000000000000..88830b2946b5f --- /dev/null +++ b/src/plugins/discover/public/application/apps/main/utils/fetch_all.test.ts @@ -0,0 +1,59 @@ +/* + * 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. + */ +import { FetchStatus } from '../../../types'; +import { BehaviorSubject } from 'rxjs'; +import { RequestAdapter } from '../../../../../../inspector'; +import { savedSearchMock } from '../../../../__mocks__/saved_search'; +import { ReduxLikeStateContainer } from '../../../../../../kibana_utils/common'; +import { AppState } from '../services/discover_state'; +import { discoverServiceMock } from '../../../../__mocks__/services'; +import { fetchAll } from './fetch_all'; + +describe('test fetchAll', () => { + test('changes of fetchStatus when starting with FetchStatus.UNINITIALIZED', async (done) => { + const subjects = { + main$: new BehaviorSubject({ fetchStatus: FetchStatus.UNINITIALIZED }), + documents$: new BehaviorSubject({ fetchStatus: FetchStatus.UNINITIALIZED }), + totalHits$: new BehaviorSubject({ fetchStatus: FetchStatus.UNINITIALIZED }), + charts$: new BehaviorSubject({ fetchStatus: FetchStatus.UNINITIALIZED }), + }; + const deps = { + appStateContainer: { + getState: () => { + return { interval: 'auto' }; + }, + } as ReduxLikeStateContainer, + abortController: new AbortController(), + data: discoverServiceMock.data, + inspectorAdapters: { requests: new RequestAdapter() }, + onResults: jest.fn(), + searchSessionId: '123', + initialFetchStatus: FetchStatus.UNINITIALIZED, + useNewFieldsApi: true, + services: discoverServiceMock, + }; + + const stateArr: FetchStatus[] = []; + + subjects.main$.subscribe((value) => stateArr.push(value.fetchStatus)); + + const parentSearchSource = savedSearchMock.searchSource; + const childSearchSource = parentSearchSource.createChild(); + + fetchAll(subjects, childSearchSource, false, deps).subscribe({ + complete: () => { + expect(stateArr).toEqual([ + FetchStatus.UNINITIALIZED, + FetchStatus.LOADING, + FetchStatus.COMPLETE, + ]); + done(); + }, + }); + }); +}); diff --git a/src/plugins/discover/public/application/apps/main/utils/fetch_all.ts b/src/plugins/discover/public/application/apps/main/utils/fetch_all.ts new file mode 100644 index 0000000000000..53d13ee547b0f --- /dev/null +++ b/src/plugins/discover/public/application/apps/main/utils/fetch_all.ts @@ -0,0 +1,96 @@ +/* + * 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. + */ +import { forkJoin, of } from 'rxjs'; +import { + sendCompleteMsg, + sendErrorMsg, + sendLoadingMsg, + sendPartialMsg, + sendResetMsg, +} from '../services/use_saved_search_messages'; +import { updateSearchSource } from './update_search_source'; +import { SortOrder } from '../../../../saved_searches/types'; +import { fetchDocuments } from './fetch_documents'; +import { fetchTotalHits } from './fetch_total_hits'; +import { fetchChart } from './fetch_chart'; +import { SearchSource } from '../../../../../../data/common'; +import { Adapters } from '../../../../../../inspector'; +import { AppState } from '../services/discover_state'; +import { FetchStatus } from '../../../types'; +import { DataPublicPluginStart } from '../../../../../../data/public'; +import { SavedSearchData } from '../services/use_saved_search'; +import { DiscoverServices } from '../../../../build_services'; +import { ReduxLikeStateContainer } from '../../../../../../kibana_utils/common'; + +export function fetchAll( + dataSubjects: SavedSearchData, + searchSource: SearchSource, + reset = false, + fetchDeps: { + abortController: AbortController; + appStateContainer: ReduxLikeStateContainer; + inspectorAdapters: Adapters; + data: DataPublicPluginStart; + initialFetchStatus: FetchStatus; + searchSessionId: string; + services: DiscoverServices; + useNewFieldsApi: boolean; + } +) { + const { initialFetchStatus, appStateContainer, services, useNewFieldsApi, data } = fetchDeps; + + const indexPattern = searchSource.getField('index')!; + + if (reset) { + sendResetMsg(dataSubjects, initialFetchStatus); + } + + sendLoadingMsg(dataSubjects.main$); + + const { hideChart, sort } = appStateContainer.getState(); + // Update the base searchSource, base for all child fetches + updateSearchSource(searchSource, false, { + indexPattern, + services, + sort: sort as SortOrder[], + useNewFieldsApi, + }); + + const subFetchDeps = { + ...fetchDeps, + onResults: (foundDocuments: boolean) => { + if (!foundDocuments) { + sendCompleteMsg(dataSubjects.main$, foundDocuments); + } else { + sendPartialMsg(dataSubjects.main$); + } + }, + }; + + const all = forkJoin({ + documents: fetchDocuments(dataSubjects, searchSource.createCopy(), subFetchDeps), + totalHits: + hideChart || !indexPattern.timeFieldName + ? fetchTotalHits(dataSubjects, searchSource.createCopy(), subFetchDeps) + : of(null), + chart: + !hideChart && indexPattern.timeFieldName + ? fetchChart(dataSubjects, searchSource.createCopy(), subFetchDeps) + : of(null), + }); + + all.subscribe( + () => sendCompleteMsg(dataSubjects.main$, true), + (error) => { + if (error instanceof Error && error.name === 'AbortError') return; + data.search.showError(error); + sendErrorMsg(dataSubjects.main$, error); + } + ); + return all; +} diff --git a/src/plugins/discover/public/application/apps/main/utils/fetch_chart.test.ts b/src/plugins/discover/public/application/apps/main/utils/fetch_chart.test.ts new file mode 100644 index 0000000000000..07228bf0e4c62 --- /dev/null +++ b/src/plugins/discover/public/application/apps/main/utils/fetch_chart.test.ts @@ -0,0 +1,174 @@ +/* + * 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. + */ +import { FetchStatus } from '../../../types'; +import { BehaviorSubject, of, throwError as throwErrorRx } from 'rxjs'; +import { RequestAdapter } from '../../../../../../inspector'; +import { savedSearchMockWithTimeField } from '../../../../__mocks__/saved_search'; +import { fetchChart, updateSearchSource } from './fetch_chart'; +import { ReduxLikeStateContainer } from '../../../../../../kibana_utils/common'; +import { AppState } from '../services/discover_state'; +import { discoverServiceMock } from '../../../../__mocks__/services'; +import { calculateBounds, IKibanaSearchResponse } from '../../../../../../data/common'; +import { estypes } from '@elastic/elasticsearch'; + +function getDataSubjects() { + return { + main$: new BehaviorSubject({ fetchStatus: FetchStatus.UNINITIALIZED }), + documents$: new BehaviorSubject({ fetchStatus: FetchStatus.UNINITIALIZED }), + totalHits$: new BehaviorSubject({ fetchStatus: FetchStatus.UNINITIALIZED }), + charts$: new BehaviorSubject({ fetchStatus: FetchStatus.UNINITIALIZED }), + }; +} + +describe('test fetchCharts', () => { + test('updateSearchSource helper function', () => { + const chartAggConfigs = updateSearchSource( + savedSearchMockWithTimeField.searchSource, + 'auto', + discoverServiceMock.data + ); + expect(chartAggConfigs.aggs).toMatchInlineSnapshot(` + Array [ + Object { + "enabled": true, + "id": "1", + "params": Object {}, + "schema": "metric", + "type": "count", + }, + Object { + "enabled": true, + "id": "2", + "params": Object { + "drop_partials": false, + "extended_bounds": Object {}, + "field": "timestamp", + "interval": "auto", + "min_doc_count": 1, + "scaleMetricValues": false, + "useNormalizedEsInterval": true, + "used_interval": "0ms", + }, + "schema": "segment", + "type": "date_histogram", + }, + ] + `); + }); + + test('changes of fetchStatus when starting with FetchStatus.UNINITIALIZED', async (done) => { + const subjects = getDataSubjects(); + const deps = { + appStateContainer: { + getState: () => { + return { interval: 'auto' }; + }, + } as ReduxLikeStateContainer, + abortController: new AbortController(), + data: discoverServiceMock.data, + inspectorAdapters: { requests: new RequestAdapter() }, + onResults: jest.fn(), + searchSessionId: '123', + }; + deps.data.query.timefilter.timefilter.getTime = () => { + return { from: '2021-07-07T00:05:13.590', to: '2021-07-07T11:20:13.590' }; + }; + + deps.data.query.timefilter.timefilter.calculateBounds = (timeRange) => + calculateBounds(timeRange); + + const stateArrChart: FetchStatus[] = []; + const stateArrHits: FetchStatus[] = []; + + subjects.charts$.subscribe((value) => stateArrChart.push(value.fetchStatus)); + subjects.totalHits$.subscribe((value) => stateArrHits.push(value.fetchStatus)); + + savedSearchMockWithTimeField.searchSource.fetch$ = () => + of(({ + id: 'Fjk5bndxTHJWU2FldVRVQ0tYR0VqOFEcRWtWNDhOdG5SUzJYcFhONVVZVTBJQToxMDMwOQ==', + rawResponse: { + took: 2, + timed_out: false, + _shards: { total: 1, successful: 1, skipped: 0, failed: 0 }, + hits: { max_score: null, hits: [] }, + aggregations: { + '2': { + buckets: [ + { + key_as_string: '2021-07-07T06:36:00.000+02:00', + key: 1625632560000, + doc_count: 1, + }, + ], + }, + }, + }, + isPartial: false, + isRunning: false, + total: 1, + loaded: 1, + isRestored: false, + } as unknown) as IKibanaSearchResponse>); + + fetchChart(subjects, savedSearchMockWithTimeField.searchSource, deps).subscribe({ + complete: () => { + expect(stateArrChart).toEqual([ + FetchStatus.UNINITIALIZED, + FetchStatus.LOADING, + FetchStatus.COMPLETE, + ]); + expect(stateArrHits).toEqual([ + FetchStatus.UNINITIALIZED, + FetchStatus.LOADING, + FetchStatus.COMPLETE, + ]); + done(); + }, + }); + }); + test('change of fetchStatus on fetch error', async (done) => { + const subjects = getDataSubjects(); + + const deps = { + appStateContainer: { + getState: () => { + return { interval: 'auto' }; + }, + } as ReduxLikeStateContainer, + abortController: new AbortController(), + data: discoverServiceMock.data, + inspectorAdapters: { requests: new RequestAdapter() }, + onResults: jest.fn(), + searchSessionId: '123', + }; + + savedSearchMockWithTimeField.searchSource.fetch$ = () => throwErrorRx({ msg: 'Oh noes!' }); + + const stateArrChart: FetchStatus[] = []; + const stateArrHits: FetchStatus[] = []; + + subjects.charts$.subscribe((value) => stateArrChart.push(value.fetchStatus)); + subjects.totalHits$.subscribe((value) => stateArrHits.push(value.fetchStatus)); + + fetchChart(subjects, savedSearchMockWithTimeField.searchSource, deps).subscribe({ + error: () => { + expect(stateArrChart).toEqual([ + FetchStatus.UNINITIALIZED, + FetchStatus.LOADING, + FetchStatus.ERROR, + ]); + expect(stateArrHits).toEqual([ + FetchStatus.UNINITIALIZED, + FetchStatus.LOADING, + FetchStatus.ERROR, + ]); + done(); + }, + }); + }); +}); diff --git a/src/plugins/discover/public/application/apps/main/utils/fetch_chart.ts b/src/plugins/discover/public/application/apps/main/utils/fetch_chart.ts new file mode 100644 index 0000000000000..25a2a964a778f --- /dev/null +++ b/src/plugins/discover/public/application/apps/main/utils/fetch_chart.ts @@ -0,0 +1,121 @@ +/* + * 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. + */ +import { i18n } from '@kbn/i18n'; +import { filter } from 'rxjs/operators'; +import { + DataPublicPluginStart, + isCompleteResponse, + search, + SearchSource, +} from '../../../../../../data/public'; +import { Adapters } from '../../../../../../inspector'; +import { getChartAggConfigs, getDimensions } from './index'; +import { tabifyAggResponse } from '../../../../../../data/common'; +import { buildPointSeriesData } from '../components/chart/point_series'; +import { FetchStatus } from '../../../types'; +import { SavedSearchData } from '../services/use_saved_search'; +import { AppState } from '../services/discover_state'; +import { ReduxLikeStateContainer } from '../../../../../../kibana_utils/common'; +import { sendErrorMsg, sendLoadingMsg } from '../services/use_saved_search_messages'; + +export function fetchChart( + data$: SavedSearchData, + searchSource: SearchSource, + { + abortController, + appStateContainer, + data, + inspectorAdapters, + onResults, + searchSessionId, + }: { + abortController: AbortController; + appStateContainer: ReduxLikeStateContainer; + data: DataPublicPluginStart; + inspectorAdapters: Adapters; + onResults: (foundDocuments: boolean) => void; + searchSessionId: string; + } +) { + const { charts$, totalHits$ } = data$; + + const interval = appStateContainer.getState().interval ?? 'auto'; + const chartAggConfigs = updateSearchSource(searchSource, interval, data); + + sendLoadingMsg(charts$); + sendLoadingMsg(totalHits$); + + const fetch$ = searchSource + .fetch$({ + abortSignal: abortController.signal, + sessionId: searchSessionId, + inspector: { + adapter: inspectorAdapters.requests, + title: i18n.translate('discover.inspectorRequestDataTitleChart', { + defaultMessage: 'Chart data', + }), + description: i18n.translate('discover.inspectorRequestDescriptionChart', { + defaultMessage: + 'This request queries Elasticsearch to fetch the aggregation data for the chart.', + }), + }, + }) + .pipe(filter((res) => isCompleteResponse(res))); + + fetch$.subscribe( + (res) => { + try { + const totalHitsNr = res.rawResponse.hits.total as number; + totalHits$.next({ fetchStatus: FetchStatus.COMPLETE, result: totalHitsNr }); + onResults(totalHitsNr > 0); + + const bucketAggConfig = chartAggConfigs.aggs[1]; + const tabifiedData = tabifyAggResponse(chartAggConfigs, res.rawResponse); + const dimensions = getDimensions(chartAggConfigs, data); + const bucketInterval = search.aggs.isDateHistogramBucketAggConfig(bucketAggConfig) + ? bucketAggConfig?.buckets?.getInterval() + : undefined; + const chartData = buildPointSeriesData(tabifiedData, dimensions!); + charts$.next({ + fetchStatus: FetchStatus.COMPLETE, + chartData, + bucketInterval, + }); + } catch (e) { + charts$.next({ + fetchStatus: FetchStatus.ERROR, + error: e, + }); + } + }, + (error) => { + if (error instanceof Error && error.name === 'AbortError') { + return; + } + sendErrorMsg(charts$, error); + sendErrorMsg(totalHits$, error); + } + ); + return fetch$; +} + +export function updateSearchSource( + searchSource: SearchSource, + interval: string, + data: DataPublicPluginStart +) { + const indexPattern = searchSource.getField('index')!; + searchSource.setField('filter', data.query.timefilter.timefilter.createFilter(indexPattern)); + searchSource.setField('size', 0); + searchSource.setField('trackTotalHits', true); + const chartAggConfigs = getChartAggConfigs(searchSource, interval, data); + searchSource.setField('aggs', chartAggConfigs.toDsl()); + searchSource.removeField('sort'); + searchSource.removeField('fields'); + return chartAggConfigs; +} diff --git a/src/plugins/discover/public/application/apps/main/utils/fetch_documents.test.ts b/src/plugins/discover/public/application/apps/main/utils/fetch_documents.test.ts new file mode 100644 index 0000000000000..6c6c7595b166e --- /dev/null +++ b/src/plugins/discover/public/application/apps/main/utils/fetch_documents.test.ts @@ -0,0 +1,79 @@ +/* + * 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. + */ +import { fetchDocuments } from './fetch_documents'; +import { FetchStatus } from '../../../types'; +import { BehaviorSubject, throwError as throwErrorRx } from 'rxjs'; +import { RequestAdapter } from '../../../../../../inspector'; +import { savedSearchMock } from '../../../../__mocks__/saved_search'; +import { discoverServiceMock } from '../../../../__mocks__/services'; + +function getDataSubjects() { + return { + main$: new BehaviorSubject({ fetchStatus: FetchStatus.UNINITIALIZED }), + documents$: new BehaviorSubject({ fetchStatus: FetchStatus.UNINITIALIZED }), + totalHits$: new BehaviorSubject({ fetchStatus: FetchStatus.UNINITIALIZED }), + charts$: new BehaviorSubject({ fetchStatus: FetchStatus.UNINITIALIZED }), + }; +} + +describe('test fetchDocuments', () => { + test('changes of fetchStatus are correct when starting with FetchStatus.UNINITIALIZED', async (done) => { + const subjects = getDataSubjects(); + const { documents$ } = subjects; + const deps = { + abortController: new AbortController(), + inspectorAdapters: { requests: new RequestAdapter() }, + onResults: jest.fn(), + searchSessionId: '123', + services: discoverServiceMock, + }; + + const stateArr: FetchStatus[] = []; + + documents$.subscribe((value) => stateArr.push(value.fetchStatus)); + + fetchDocuments(subjects, savedSearchMock.searchSource, deps).subscribe({ + complete: () => { + expect(stateArr).toEqual([ + FetchStatus.UNINITIALIZED, + FetchStatus.LOADING, + FetchStatus.COMPLETE, + ]); + done(); + }, + }); + }); + test('change of fetchStatus on fetch error', async (done) => { + const subjects = getDataSubjects(); + const { documents$ } = subjects; + const deps = { + abortController: new AbortController(), + inspectorAdapters: { requests: new RequestAdapter() }, + onResults: jest.fn(), + searchSessionId: '123', + services: discoverServiceMock, + }; + + savedSearchMock.searchSource.fetch$ = () => throwErrorRx({ msg: 'Oh noes!' }); + + const stateArr: FetchStatus[] = []; + + documents$.subscribe((value) => stateArr.push(value.fetchStatus)); + + fetchDocuments(subjects, savedSearchMock.searchSource, deps).subscribe({ + error: () => { + expect(stateArr).toEqual([ + FetchStatus.UNINITIALIZED, + FetchStatus.LOADING, + FetchStatus.ERROR, + ]); + done(); + }, + }); + }); +}); diff --git a/src/plugins/discover/public/application/apps/main/utils/fetch_documents.ts b/src/plugins/discover/public/application/apps/main/utils/fetch_documents.ts new file mode 100644 index 0000000000000..edaf86cef6874 --- /dev/null +++ b/src/plugins/discover/public/application/apps/main/utils/fetch_documents.ts @@ -0,0 +1,88 @@ +/* + * 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. + */ +import { i18n } from '@kbn/i18n'; +import { filter } from 'rxjs/operators'; +import { Adapters } from '../../../../../../inspector/common'; +import { isCompleteResponse, SearchSource } from '../../../../../../data/common'; +import { FetchStatus } from '../../../types'; +import { SavedSearchData } from '../services/use_saved_search'; +import { sendErrorMsg, sendLoadingMsg } from '../services/use_saved_search_messages'; +import { SAMPLE_SIZE_SETTING } from '../../../../../common'; +import { DiscoverServices } from '../../../../build_services'; + +export const fetchDocuments = ( + data$: SavedSearchData, + searchSource: SearchSource, + { + abortController, + inspectorAdapters, + onResults, + searchSessionId, + services, + }: { + abortController: AbortController; + inspectorAdapters: Adapters; + onResults: (foundDocuments: boolean) => void; + searchSessionId: string; + services: DiscoverServices; + } +) => { + const { documents$, totalHits$ } = data$; + + searchSource.setField('size', services.uiSettings.get(SAMPLE_SIZE_SETTING)); + searchSource.setField('trackTotalHits', false); + searchSource.setField('highlightAll', true); + searchSource.setField('version', true); + + sendLoadingMsg(documents$); + + const fetch$ = searchSource + .fetch$({ + abortSignal: abortController.signal, + sessionId: searchSessionId, + inspector: { + adapter: inspectorAdapters.requests, + title: i18n.translate('discover.inspectorRequestDataTitleDocuments', { + defaultMessage: 'Documents', + }), + description: i18n.translate('discover.inspectorRequestDescriptionDocument', { + defaultMessage: 'This request queries Elasticsearch to fetch the documents.', + }), + }, + }) + .pipe(filter((res) => isCompleteResponse(res))); + + fetch$.subscribe( + (res) => { + const documents = res.rawResponse.hits.hits; + + // If the total hits query is still loading for hits, emit a partial + // hit count that's at least our document count + if (totalHits$.getValue().fetchStatus === FetchStatus.LOADING) { + totalHits$.next({ + fetchStatus: FetchStatus.PARTIAL, + result: documents.length, + }); + } + + documents$.next({ + fetchStatus: FetchStatus.COMPLETE, + result: documents, + }); + onResults(documents.length > 0); + }, + (error) => { + if (error instanceof Error && error.name === 'AbortError') { + return; + } + + sendErrorMsg(documents$, error); + } + ); + return fetch$; +}; diff --git a/src/plugins/discover/public/application/apps/main/utils/fetch_total_hits.test.ts b/src/plugins/discover/public/application/apps/main/utils/fetch_total_hits.test.ts new file mode 100644 index 0000000000000..82a3a2fee6912 --- /dev/null +++ b/src/plugins/discover/public/application/apps/main/utils/fetch_total_hits.test.ts @@ -0,0 +1,80 @@ +/* + * 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. + */ +import { FetchStatus } from '../../../types'; +import { BehaviorSubject, throwError as throwErrorRx } from 'rxjs'; +import { RequestAdapter } from '../../../../../../inspector'; +import { savedSearchMock } from '../../../../__mocks__/saved_search'; +import { fetchTotalHits } from './fetch_total_hits'; +import { discoverServiceMock } from '../../../../__mocks__/services'; + +function getDataSubjects() { + return { + main$: new BehaviorSubject({ fetchStatus: FetchStatus.UNINITIALIZED }), + documents$: new BehaviorSubject({ fetchStatus: FetchStatus.UNINITIALIZED }), + totalHits$: new BehaviorSubject({ fetchStatus: FetchStatus.UNINITIALIZED }), + charts$: new BehaviorSubject({ fetchStatus: FetchStatus.UNINITIALIZED }), + }; +} + +describe('test fetchTotalHits', () => { + test('changes of fetchStatus are correct when starting with FetchStatus.UNINITIALIZED', async (done) => { + const subjects = getDataSubjects(); + const { totalHits$ } = subjects; + + const deps = { + abortController: new AbortController(), + inspectorAdapters: { requests: new RequestAdapter() }, + onResults: jest.fn(), + searchSessionId: '123', + data: discoverServiceMock.data, + }; + + const stateArr: FetchStatus[] = []; + + totalHits$.subscribe((value) => stateArr.push(value.fetchStatus)); + + fetchTotalHits(subjects, savedSearchMock.searchSource, deps).subscribe({ + complete: () => { + expect(stateArr).toEqual([ + FetchStatus.UNINITIALIZED, + FetchStatus.LOADING, + FetchStatus.COMPLETE, + ]); + done(); + }, + }); + }); + test('change of fetchStatus on fetch error', async (done) => { + const subjects = getDataSubjects(); + const { totalHits$ } = subjects; + const deps = { + abortController: new AbortController(), + inspectorAdapters: { requests: new RequestAdapter() }, + onResults: jest.fn(), + searchSessionId: '123', + data: discoverServiceMock.data, + }; + + savedSearchMock.searchSource.fetch$ = () => throwErrorRx({ msg: 'Oh noes!' }); + + const stateArr: FetchStatus[] = []; + + totalHits$.subscribe((value) => stateArr.push(value.fetchStatus)); + + fetchTotalHits(subjects, savedSearchMock.searchSource, deps).subscribe({ + error: () => { + expect(stateArr).toEqual([ + FetchStatus.UNINITIALIZED, + FetchStatus.LOADING, + FetchStatus.ERROR, + ]); + done(); + }, + }); + }); +}); diff --git a/src/plugins/discover/public/application/apps/main/utils/fetch_total_hits.ts b/src/plugins/discover/public/application/apps/main/utils/fetch_total_hits.ts new file mode 100644 index 0000000000000..4fb43652f28c3 --- /dev/null +++ b/src/plugins/discover/public/application/apps/main/utils/fetch_total_hits.ts @@ -0,0 +1,80 @@ +/* + * 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. + */ + +import { i18n } from '@kbn/i18n'; +import { filter } from 'rxjs/operators'; +import { + DataPublicPluginStart, + isCompleteResponse, + SearchSource, +} from '../../../../../../data/public'; +import { Adapters } from '../../../../../../inspector/common'; +import { FetchStatus } from '../../../types'; +import { SavedSearchData } from '../services/use_saved_search'; +import { sendErrorMsg, sendLoadingMsg } from '../services/use_saved_search_messages'; + +export function fetchTotalHits( + data$: SavedSearchData, + searchSource: SearchSource, + { + abortController, + data, + inspectorAdapters, + onResults, + searchSessionId, + }: { + abortController: AbortController; + data: DataPublicPluginStart; + onResults: (foundDocuments: boolean) => void; + inspectorAdapters: Adapters; + searchSessionId: string; + } +) { + const { totalHits$ } = data$; + const indexPattern = searchSource.getField('index'); + searchSource.setField('trackTotalHits', true); + searchSource.setField('filter', data.query.timefilter.timefilter.createFilter(indexPattern!)); + searchSource.setField('size', 0); + searchSource.removeField('sort'); + searchSource.removeField('fields'); + searchSource.removeField('aggs'); + + sendLoadingMsg(totalHits$); + + const fetch$ = searchSource + .fetch$({ + inspector: { + adapter: inspectorAdapters.requests, + title: i18n.translate('discover.inspectorRequestDataTitleTotalHits', { + defaultMessage: 'Total hits', + }), + description: i18n.translate('discover.inspectorRequestDescriptionTotalHits', { + defaultMessage: 'This request queries Elasticsearch to fetch the total hits.', + }), + }, + abortSignal: abortController.signal, + sessionId: searchSessionId, + }) + .pipe(filter((res) => isCompleteResponse(res))); + + fetch$.subscribe( + (res) => { + const totalHitsNr = res.rawResponse.hits.total as number; + totalHits$.next({ fetchStatus: FetchStatus.COMPLETE, result: totalHitsNr }); + onResults(totalHitsNr > 0); + }, + (error) => { + if (error instanceof Error && error.name === 'AbortError') { + return; + } + sendErrorMsg(totalHits$, error); + } + ); + + return fetch$; +} diff --git a/src/plugins/discover/public/application/apps/main/utils/get_result_state.test.ts b/src/plugins/discover/public/application/apps/main/utils/get_result_state.test.ts index 512bc4240352c..7066d22d6aac7 100644 --- a/src/plugins/discover/public/application/apps/main/utils/get_result_state.test.ts +++ b/src/plugins/discover/public/application/apps/main/utils/get_result_state.test.ts @@ -6,40 +6,36 @@ * Side Public License, v 1. */ import { getResultState, resultStatuses } from './get_result_state'; -import { ElasticSearchHit } from '../../../doc_views/doc_views_types'; import { FetchStatus } from '../../../types'; describe('getResultState', () => { test('fetching uninitialized', () => { - const actual = getResultState(FetchStatus.UNINITIALIZED, []); + const actual = getResultState(FetchStatus.UNINITIALIZED, false); expect(actual).toBe(resultStatuses.UNINITIALIZED); }); test('fetching complete with no records', () => { - const actual = getResultState(FetchStatus.COMPLETE, []); + const actual = getResultState(FetchStatus.COMPLETE, false); expect(actual).toBe(resultStatuses.NO_RESULTS); }); test('fetching ongoing aka loading', () => { - const actual = getResultState(FetchStatus.LOADING, []); + const actual = getResultState(FetchStatus.LOADING, false); expect(actual).toBe(resultStatuses.LOADING); }); test('fetching ready', () => { - const record = ({ _id: 123 } as unknown) as ElasticSearchHit; - const actual = getResultState(FetchStatus.COMPLETE, [record]); + const actual = getResultState(FetchStatus.COMPLETE, true); expect(actual).toBe(resultStatuses.READY); }); test('re-fetching after already data is available', () => { - const record = ({ _id: 123 } as unknown) as ElasticSearchHit; - const actual = getResultState(FetchStatus.LOADING, [record]); + const actual = getResultState(FetchStatus.LOADING, true); expect(actual).toBe(resultStatuses.READY); }); test('after a fetch error when data was successfully fetched before ', () => { - const record = ({ _id: 123 } as unknown) as ElasticSearchHit; - const actual = getResultState(FetchStatus.ERROR, [record]); + const actual = getResultState(FetchStatus.ERROR, true); expect(actual).toBe(resultStatuses.READY); }); }); diff --git a/src/plugins/discover/public/application/apps/main/utils/get_result_state.ts b/src/plugins/discover/public/application/apps/main/utils/get_result_state.ts index 80d25566ea578..424d2feabd830 100644 --- a/src/plugins/discover/public/application/apps/main/utils/get_result_state.ts +++ b/src/plugins/discover/public/application/apps/main/utils/get_result_state.ts @@ -5,7 +5,6 @@ * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ -import { ElasticSearchHit } from '../../../doc_views/doc_views_types'; import { FetchStatus } from '../../../types'; export const resultStatuses = { @@ -19,13 +18,13 @@ export const resultStatuses = { * Returns the current state of the result, depends on fetchStatus and the given fetched rows * Determines what is displayed in Discover main view (loading view, data view, empty data view, ...) */ -export function getResultState(fetchStatus: FetchStatus, rows: ElasticSearchHit[]) { +export function getResultState(fetchStatus: FetchStatus, foundDocuments: boolean = false) { if (fetchStatus === FetchStatus.UNINITIALIZED) { return resultStatuses.UNINITIALIZED; } - const rowsEmpty = !Array.isArray(rows) || rows.length === 0; - if (rowsEmpty && fetchStatus === FetchStatus.LOADING) return resultStatuses.LOADING; - else if (!rowsEmpty) return resultStatuses.READY; + if (!foundDocuments && fetchStatus === FetchStatus.LOADING) return resultStatuses.LOADING; + else if (foundDocuments) return resultStatuses.READY; + else if (fetchStatus === FetchStatus.PARTIAL) return resultStatuses.READY; else return resultStatuses.NO_RESULTS; } diff --git a/src/plugins/discover/public/application/apps/main/utils/update_search_source.test.ts b/src/plugins/discover/public/application/apps/main/utils/update_search_source.test.ts index 9deabf96732b1..945140e0586ab 100644 --- a/src/plugins/discover/public/application/apps/main/utils/update_search_source.test.ts +++ b/src/plugins/discover/public/application/apps/main/utils/update_search_source.test.ts @@ -9,39 +9,21 @@ import { updateSearchSource } from './update_search_source'; import { createSearchSourceMock } from '../../../../../../data/common/search/search_source/mocks'; import { indexPatternMock } from '../../../../__mocks__/index_pattern'; -import { IUiSettingsClient } from 'kibana/public'; -import { DiscoverServices } from '../../../../build_services'; -import { dataPluginMock } from '../../../../../../data/public/mocks'; -import { SAMPLE_SIZE_SETTING } from '../../../../../common'; import { SortOrder } from '../../../../saved_searches/types'; +import { discoverServiceMock } from '../../../../__mocks__/services'; describe('updateSearchSource', () => { test('updates a given search source', async () => { const persistentSearchSourceMock = createSearchSourceMock({}); const volatileSearchSourceMock = createSearchSourceMock({}); volatileSearchSourceMock.setParent(persistentSearchSourceMock); - const sampleSize = 250; updateSearchSource(volatileSearchSourceMock, false, { indexPattern: indexPatternMock, - services: ({ - data: dataPluginMock.createStartContract(), - timefilter: { - createFilter: jest.fn(), - }, - uiSettings: ({ - get: (key: string) => { - if (key === SAMPLE_SIZE_SETTING) { - return sampleSize; - } - return false; - }, - } as unknown) as IUiSettingsClient, - } as unknown) as DiscoverServices, + services: discoverServiceMock, sort: [] as SortOrder[], useNewFieldsApi: false, }); expect(persistentSearchSourceMock.getField('index')).toEqual(indexPatternMock); - expect(volatileSearchSourceMock.getField('size')).toEqual(sampleSize); expect(volatileSearchSourceMock.getField('fields')).toBe(undefined); }); @@ -49,28 +31,13 @@ describe('updateSearchSource', () => { const persistentSearchSourceMock = createSearchSourceMock({}); const volatileSearchSourceMock = createSearchSourceMock({}); volatileSearchSourceMock.setParent(persistentSearchSourceMock); - const sampleSize = 250; updateSearchSource(volatileSearchSourceMock, false, { indexPattern: indexPatternMock, - services: ({ - data: dataPluginMock.createStartContract(), - timefilter: { - createFilter: jest.fn(), - }, - uiSettings: ({ - get: (key: string) => { - if (key === SAMPLE_SIZE_SETTING) { - return sampleSize; - } - return false; - }, - } as unknown) as IUiSettingsClient, - } as unknown) as DiscoverServices, + services: discoverServiceMock, sort: [] as SortOrder[], useNewFieldsApi: true, }); expect(persistentSearchSourceMock.getField('index')).toEqual(indexPatternMock); - expect(volatileSearchSourceMock.getField('size')).toEqual(sampleSize); expect(volatileSearchSourceMock.getField('fields')).toEqual([ { field: '*', include_unmapped: 'true' }, ]); @@ -81,28 +48,13 @@ describe('updateSearchSource', () => { const persistentSearchSourceMock = createSearchSourceMock({}); const volatileSearchSourceMock = createSearchSourceMock({}); volatileSearchSourceMock.setParent(persistentSearchSourceMock); - const sampleSize = 250; updateSearchSource(volatileSearchSourceMock, false, { indexPattern: indexPatternMock, - services: ({ - data: dataPluginMock.createStartContract(), - timefilter: { - createFilter: jest.fn(), - }, - uiSettings: ({ - get: (key: string) => { - if (key === SAMPLE_SIZE_SETTING) { - return sampleSize; - } - return false; - }, - } as unknown) as IUiSettingsClient, - } as unknown) as DiscoverServices, + services: discoverServiceMock, sort: [] as SortOrder[], useNewFieldsApi: true, }); expect(persistentSearchSourceMock.getField('index')).toEqual(indexPatternMock); - expect(volatileSearchSourceMock.getField('size')).toEqual(sampleSize); expect(volatileSearchSourceMock.getField('fields')).toEqual([ { field: '*', include_unmapped: 'true' }, ]); @@ -113,28 +65,13 @@ describe('updateSearchSource', () => { const persistentSearchSourceMock = createSearchSourceMock({}); const volatileSearchSourceMock = createSearchSourceMock({}); volatileSearchSourceMock.setParent(persistentSearchSourceMock); - const sampleSize = 250; updateSearchSource(volatileSearchSourceMock, false, { indexPattern: indexPatternMock, - services: ({ - data: dataPluginMock.createStartContract(), - timefilter: { - createFilter: jest.fn(), - }, - uiSettings: ({ - get: (key: string) => { - if (key === SAMPLE_SIZE_SETTING) { - return sampleSize; - } - return false; - }, - } as unknown) as IUiSettingsClient, - } as unknown) as DiscoverServices, + services: discoverServiceMock, sort: [] as SortOrder[], useNewFieldsApi: false, }); expect(persistentSearchSourceMock.getField('index')).toEqual(indexPatternMock); - expect(volatileSearchSourceMock.getField('size')).toEqual(sampleSize); expect(volatileSearchSourceMock.getField('fields')).toEqual(undefined); expect(volatileSearchSourceMock.getField('fieldsFromSource')).toBe(undefined); }); diff --git a/src/plugins/discover/public/application/apps/main/utils/update_search_source.ts b/src/plugins/discover/public/application/apps/main/utils/update_search_source.ts index c72e207102e81..3fac75a198d53 100644 --- a/src/plugins/discover/public/application/apps/main/utils/update_search_source.ts +++ b/src/plugins/discover/public/application/apps/main/utils/update_search_source.ts @@ -7,7 +7,7 @@ */ import { getSortForSearchSource } from '../../../angular/doc_table'; -import { SAMPLE_SIZE_SETTING, SORT_DEFAULT_ORDER_SETTING } from '../../../../../common'; +import { SORT_DEFAULT_ORDER_SETTING } from '../../../../../common'; import { IndexPattern, ISearchSource } from '../../../../../../data/common'; import { SortOrder } from '../../../../saved_searches/types'; import { DiscoverServices } from '../../../../build_services'; @@ -32,25 +32,22 @@ export function updateSearchSource( } ) { const { uiSettings, data } = services; - const usedSort = getSortForSearchSource( - sort, - indexPattern, - uiSettings.get(SORT_DEFAULT_ORDER_SETTING) - ); - const usedSearchSource = persist ? searchSource : searchSource.getParent()!; + const parentSearchSource = persist ? searchSource : searchSource.getParent()!; - usedSearchSource + parentSearchSource .setField('index', indexPattern) .setField('query', data.query.queryString.getQuery() || null) .setField('filter', data.query.filterManager.getFilters()); if (!persist) { + const usedSort = getSortForSearchSource( + sort, + indexPattern, + uiSettings.get(SORT_DEFAULT_ORDER_SETTING) + ); searchSource .setField('trackTotalHits', true) - .setField('size', uiSettings.get(SAMPLE_SIZE_SETTING)) .setField('sort', usedSort) - .setField('highlightAll', true) - .setField('version', true) // Even when searching rollups, we want to use the default strategy so that we get back a // document-like response. .setPreferredSearchStrategyId('default'); diff --git a/src/plugins/discover/public/application/helpers/format_number_with_commas.ts b/src/plugins/discover/public/application/apps/main/utils/use_behavior_subject.ts similarity index 54% rename from src/plugins/discover/public/application/helpers/format_number_with_commas.ts rename to src/plugins/discover/public/application/apps/main/utils/use_behavior_subject.ts index 0dd85804ef92e..5be6bd3266c7b 100644 --- a/src/plugins/discover/public/application/helpers/format_number_with_commas.ts +++ b/src/plugins/discover/public/application/apps/main/utils/use_behavior_subject.ts @@ -5,12 +5,15 @@ * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ +import { useRef } from 'react'; +import { BehaviorSubject } from 'rxjs'; -const COMMA_SEPARATOR_RE = /(\d)(?=(\d{3})+(?!\d))/g; +export function useBehaviorSubject(props: T): BehaviorSubject { + const ref = useRef | null>(null); -/** - * Converts a number to a string and adds commas - * as thousands separators - */ -export const formatNumWithCommas = (input: number) => - String(input).replace(COMMA_SEPARATOR_RE, '$1,'); + if (ref.current === null) { + ref.current = new BehaviorSubject(props); + } + + return ref.current; +} diff --git a/src/plugins/discover/public/application/apps/main/utils/use_data_state.ts b/src/plugins/discover/public/application/apps/main/utils/use_data_state.ts new file mode 100644 index 0000000000000..2fd571a0dfcb9 --- /dev/null +++ b/src/plugins/discover/public/application/apps/main/utils/use_data_state.ts @@ -0,0 +1,24 @@ +/* + * 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. + */ +import { useState, useEffect } from 'react'; +import { BehaviorSubject } from 'rxjs'; +import { DataMsg } from '../services/use_saved_search'; + +export function useDataState(data$: BehaviorSubject) { + const [fetchState, setFetchState] = useState(data$.getValue()); + + useEffect(() => { + const subscription = data$.subscribe((next) => { + if (next.fetchStatus !== fetchState.fetchStatus) { + setFetchState({ ...fetchState, ...next }); + } + }); + return () => subscription.unsubscribe(); + }, [data$, fetchState, setFetchState]); + return fetchState; +} diff --git a/src/plugins/discover/public/application/components/doc/use_es_doc_search.test.tsx b/src/plugins/discover/public/application/components/doc/use_es_doc_search.test.tsx index 9fdb564cb518d..1ff623dc0e317 100644 --- a/src/plugins/discover/public/application/components/doc/use_es_doc_search.test.tsx +++ b/src/plugins/discover/public/application/components/doc/use_es_doc_search.test.tsx @@ -55,6 +55,7 @@ describe('Test of helper / hook', () => { }, "script_fields": Array [], "stored_fields": Array [], + "version": true, }, } `); @@ -84,6 +85,7 @@ describe('Test of helper / hook', () => { "runtime_mappings": Object {}, "script_fields": Array [], "stored_fields": Array [], + "version": true, }, } `); @@ -114,6 +116,7 @@ describe('Test of helper / hook', () => { "runtime_mappings": Object {}, "script_fields": Array [], "stored_fields": Array [], + "version": true, }, } `); @@ -162,6 +165,7 @@ describe('Test of helper / hook', () => { }, "script_fields": Array [], "stored_fields": Array [], + "version": true, }, } `); diff --git a/src/plugins/discover/public/application/components/doc/use_es_doc_search.ts b/src/plugins/discover/public/application/components/doc/use_es_doc_search.ts index 71a32b758aca7..ce039aeadc063 100644 --- a/src/plugins/discover/public/application/components/doc/use_es_doc_search.ts +++ b/src/plugins/discover/public/application/components/doc/use_es_doc_search.ts @@ -37,6 +37,7 @@ export function buildSearchBody( }, stored_fields: computedFields.storedFields, script_fields: computedFields.scriptFields, + version: true, }, }; if (!request.body) { diff --git a/src/plugins/discover/public/application/helpers/index.ts b/src/plugins/discover/public/application/helpers/index.ts deleted file mode 100644 index 40e771482fd14..0000000000000 --- a/src/plugins/discover/public/application/helpers/index.ts +++ /dev/null @@ -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 { formatNumWithCommas } from './format_number_with_commas'; diff --git a/src/plugins/discover/public/application/types.ts b/src/plugins/discover/public/application/types.ts index 4d7f47182e98a..798e0f350cc5f 100644 --- a/src/plugins/discover/public/application/types.ts +++ b/src/plugins/discover/public/application/types.ts @@ -9,6 +9,7 @@ export enum FetchStatus { UNINITIALIZED = 'uninitialized', LOADING = 'loading', + PARTIAL = 'partial', COMPLETE = 'complete', ERROR = 'error', } diff --git a/test/functional/apps/discover/_discover.ts b/test/functional/apps/discover/_discover.ts index 19a4f7271be33..8dc695abc8d45 100644 --- a/test/functional/apps/discover/_discover.ts +++ b/test/functional/apps/discover/_discover.ts @@ -108,7 +108,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { it('should modify the time range when the histogram is brushed', async function () { // this is the number of renderings of the histogram needed when new data is fetched // this needs to be improved - const renderingCountInc = 1; + const renderingCountInc = 2; const prevRenderingCount = await elasticChart.getVisualizationRenderingCount(); await PageObjects.timePicker.setDefaultAbsoluteRange(); await PageObjects.discover.waitUntilSearchingHasFinished(); diff --git a/test/functional/apps/discover/_inspector.ts b/test/functional/apps/discover/_inspector.ts index 17f358ec74871..9ff425be2739b 100644 --- a/test/functional/apps/discover/_inspector.ts +++ b/test/functional/apps/discover/_inspector.ts @@ -15,6 +15,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const esArchiver = getService('esArchiver'); const kibanaServer = getService('kibanaServer'); const inspector = getService('inspector'); + const testSubjects = getService('testSubjects'); const STATS_ROW_NAME_INDEX = 0; const STATS_ROW_VALUE_INDEX = 1; @@ -50,15 +51,28 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { it('should display request stats with no results', async () => { await inspector.open(); - const requestStats = await inspector.getTableData(); - - expect(getHitCount(requestStats)).to.be('0'); + await testSubjects.click('inspectorRequestChooser'); + let foundZero = false; + for (const subj of ['Documents', 'Total hits', 'Charts']) { + await testSubjects.click(`inspectorRequestChooser${subj}`); + if (testSubjects.exists('inspectorRequestDetailStatistics', { timeout: 500 })) { + await testSubjects.click(`inspectorRequestDetailStatistics`); + const requestStatsTotalHits = getHitCount(await inspector.getTableData()); + if (requestStatsTotalHits === '0') { + foundZero = true; + break; + } + } + } + expect(foundZero).to.be(true); }); it('should display request stats with results', async () => { await PageObjects.timePicker.setDefaultAbsoluteRange(); - await inspector.open(); + await testSubjects.click('inspectorRequestChooser'); + await testSubjects.click(`inspectorRequestChooserDocuments`); + await testSubjects.click(`inspectorRequestDetailStatistics`); const requestStats = await inspector.getTableData(); expect(getHitCount(requestStats)).to.be('500'); diff --git a/x-pack/plugins/translations/translations/ja-JP.json b/x-pack/plugins/translations/translations/ja-JP.json index 37c38953d6c1b..6c33c5f8e3ba6 100644 --- a/x-pack/plugins/translations/translations/ja-JP.json +++ b/x-pack/plugins/translations/translations/ja-JP.json @@ -1715,7 +1715,6 @@ "discover.howToChangeTheTimeTooltip": "時刻を変更するには、グローバル時刻フィルターを使用します。", "discover.howToSeeOtherMatchingDocumentsDescription": "これらは検索条件に一致した初めの {sampleSize} 件のドキュメントです。他の結果を表示するには検索条件を絞ってください。", "discover.howToSeeOtherMatchingDocumentsDescriptionGrid": "これらは検索条件に一致した初めの {sampleSize} 件のドキュメントです。他の結果を表示するには検索条件を絞ってください。", - "discover.inspectorRequestDataTitle": "データ", "discover.inspectorRequestDescriptionDocument": "このリクエストはElasticsearchにクエリをかけ、検索データを取得します。", "discover.json.codeEditorAriaLabel": "Elasticsearch ドキュメントの JSON ビューのみを読み込む", "discover.json.copyToClipboardLabel": "クリップボードにコピー", diff --git a/x-pack/plugins/translations/translations/zh-CN.json b/x-pack/plugins/translations/translations/zh-CN.json index 907b84f88e117..af269112574f9 100644 --- a/x-pack/plugins/translations/translations/zh-CN.json +++ b/x-pack/plugins/translations/translations/zh-CN.json @@ -1721,11 +1721,9 @@ "discover.helpMenu.appName": "Discover", "discover.hideChart": "隐藏图表", "discover.histogramOfFoundDocumentsAriaLabel": "已找到文档的直方图", - "discover.hitsPluralTitle": "{hits, plural, other {命中}}", "discover.howToChangeTheTimeTooltip": "要更改时间,请使用全局时间筛选。", "discover.howToSeeOtherMatchingDocumentsDescription": "下面是与您的搜索匹配的前 {sampleSize} 个文档,请优化您的搜索以查看其他文档。", "discover.howToSeeOtherMatchingDocumentsDescriptionGrid": "下面是与您的搜索匹配的前 {sampleSize} 个文档,请优化您的搜索以查看其他文档。", - "discover.inspectorRequestDataTitle": "数据", "discover.inspectorRequestDescriptionDocument": "此请求将查询 Elasticsearch 以获取搜索的数据。", "discover.json.codeEditorAriaLabel": "Elasticsearch 文档的只读 JSON 视图", "discover.json.copyToClipboardLabel": "复制到剪贴板", From 0c69b10d846c682a53842d5133649b3954bf9a21 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Mon, 2 Aug 2021 15:31:20 +0200 Subject: [PATCH 40/40] [data][bfetch] Avoid using `Buffer` in client code (#107278) --- packages/kbn-optimizer/limits.yml | 2 +- src/plugins/bfetch/public/streaming/inflate_response.ts | 3 ++- src/plugins/data/common/field_formats/converters/string.ts | 6 ++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/kbn-optimizer/limits.yml b/packages/kbn-optimizer/limits.yml index 7edca22dcad2f..5a0b376c4cbc5 100644 --- a/packages/kbn-optimizer/limits.yml +++ b/packages/kbn-optimizer/limits.yml @@ -13,7 +13,7 @@ pageLoadAssetSize: dashboard: 374194 dashboardEnhanced: 65646 dashboardMode: 22716 - data: 943821 + data: 900000 dataEnhanced: 50420 devTools: 38637 discover: 99999 diff --git a/src/plugins/bfetch/public/streaming/inflate_response.ts b/src/plugins/bfetch/public/streaming/inflate_response.ts index 73cb52285987c..860b77016cd00 100644 --- a/src/plugins/bfetch/public/streaming/inflate_response.ts +++ b/src/plugins/bfetch/public/streaming/inflate_response.ts @@ -7,9 +7,10 @@ */ import { unzlibSync, strFromU8 } from 'fflate'; +import { toByteArray } from 'base64-js'; export function inflateResponse(response: string) { - const buff = Buffer.from(response, 'base64'); + const buff = toByteArray(response); const unzip = unzlibSync(buff); return strFromU8(unzip); } diff --git a/src/plugins/data/common/field_formats/converters/string.ts b/src/plugins/data/common/field_formats/converters/string.ts index 816754a2a9298..c6aba38cf376d 100644 --- a/src/plugins/data/common/field_formats/converters/string.ts +++ b/src/plugins/data/common/field_formats/converters/string.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import escape from 'lodash/escape'; +import { escape } from 'lodash'; import { i18n } from '@kbn/i18n'; import { KBN_FIELD_TYPES } from '@kbn/field-types'; import { asPrettyString, getHighlightHtml } from '../utils'; @@ -95,7 +95,9 @@ export class StringFormat extends FieldFormat { private base64Decode(val: string) { try { - return Buffer.from(val, 'base64').toString('utf8'); + if (window && window.atob) return window.atob(val); + // referencing from `global` tricks webpack to not include `Buffer` polyfill into this bundle + return global.Buffer.from(val, 'base64').toString('utf8'); } catch (e) { return asPrettyString(val); }