mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -04:00
Remove data <--> expressions circular dependencies. (#82685)
This commit is contained in:
parent
729631a76d
commit
c6afc47f32
124 changed files with 473 additions and 484 deletions
|
@ -0,0 +1,15 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [ExecutionContextSearch](./kibana-plugin-plugins-data-public.executioncontextsearch.md)
|
||||||
|
|
||||||
|
## ExecutionContextSearch type
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type ExecutionContextSearch = {
|
||||||
|
filters?: Filter[];
|
||||||
|
query?: Query | Query[];
|
||||||
|
timeRange?: TimeRange;
|
||||||
|
};
|
||||||
|
```
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [ExpressionFunctionKibana](./kibana-plugin-plugins-data-public.expressionfunctionkibana.md)
|
||||||
|
|
||||||
|
## ExpressionFunctionKibana type
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type ExpressionFunctionKibana = ExpressionFunctionDefinition<'kibana', ExpressionValueSearchContext | null, object, ExpressionValueSearchContext, ExecutionContext<Adapters, ExecutionContextSearch>>;
|
||||||
|
```
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [ExpressionFunctionKibanaContext](./kibana-plugin-plugins-data-public.expressionfunctionkibanacontext.md)
|
||||||
|
|
||||||
|
## ExpressionFunctionKibanaContext type
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type ExpressionFunctionKibanaContext = ExpressionFunctionDefinition<'kibana_context', KibanaContext | null, Arguments, Promise<KibanaContext>, ExecutionContext<Adapters, ExecutionContextSearch>>;
|
||||||
|
```
|
|
@ -1,6 +1,6 @@
|
||||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [ExpressionValueSearchContext](./kibana-plugin-plugins-expressions-server.expressionvaluesearchcontext.md)
|
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [ExpressionValueSearchContext](./kibana-plugin-plugins-data-public.expressionvaluesearchcontext.md)
|
||||||
|
|
||||||
## ExpressionValueSearchContext type
|
## ExpressionValueSearchContext type
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [KibanaContext](./kibana-plugin-plugins-expressions-public.kibanacontext.md)
|
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [KibanaContext](./kibana-plugin-plugins-data-public.kibanacontext.md)
|
||||||
|
|
||||||
## KibanaContext type
|
## KibanaContext type
|
||||||
|
|
|
@ -142,7 +142,11 @@
|
||||||
| [EsdslExpressionFunctionDefinition](./kibana-plugin-plugins-data-public.esdslexpressionfunctiondefinition.md) | |
|
| [EsdslExpressionFunctionDefinition](./kibana-plugin-plugins-data-public.esdslexpressionfunctiondefinition.md) | |
|
||||||
| [EsQuerySortValue](./kibana-plugin-plugins-data-public.esquerysortvalue.md) | |
|
| [EsQuerySortValue](./kibana-plugin-plugins-data-public.esquerysortvalue.md) | |
|
||||||
| [EsRawResponseExpressionTypeDefinition](./kibana-plugin-plugins-data-public.esrawresponseexpressiontypedefinition.md) | |
|
| [EsRawResponseExpressionTypeDefinition](./kibana-plugin-plugins-data-public.esrawresponseexpressiontypedefinition.md) | |
|
||||||
|
| [ExecutionContextSearch](./kibana-plugin-plugins-data-public.executioncontextsearch.md) | |
|
||||||
| [ExistsFilter](./kibana-plugin-plugins-data-public.existsfilter.md) | |
|
| [ExistsFilter](./kibana-plugin-plugins-data-public.existsfilter.md) | |
|
||||||
|
| [ExpressionFunctionKibana](./kibana-plugin-plugins-data-public.expressionfunctionkibana.md) | |
|
||||||
|
| [ExpressionFunctionKibanaContext](./kibana-plugin-plugins-data-public.expressionfunctionkibanacontext.md) | |
|
||||||
|
| [ExpressionValueSearchContext](./kibana-plugin-plugins-data-public.expressionvaluesearchcontext.md) | |
|
||||||
| [FieldFormatId](./kibana-plugin-plugins-data-public.fieldformatid.md) | id type is needed for creating custom converters. |
|
| [FieldFormatId](./kibana-plugin-plugins-data-public.fieldformatid.md) | id type is needed for creating custom converters. |
|
||||||
| [FieldFormatsContentType](./kibana-plugin-plugins-data-public.fieldformatscontenttype.md) | \* |
|
| [FieldFormatsContentType](./kibana-plugin-plugins-data-public.fieldformatscontenttype.md) | \* |
|
||||||
| [FieldFormatsGetConfigFn](./kibana-plugin-plugins-data-public.fieldformatsgetconfigfn.md) | |
|
| [FieldFormatsGetConfigFn](./kibana-plugin-plugins-data-public.fieldformatsgetconfigfn.md) | |
|
||||||
|
@ -161,6 +165,7 @@
|
||||||
| [InputTimeRange](./kibana-plugin-plugins-data-public.inputtimerange.md) | |
|
| [InputTimeRange](./kibana-plugin-plugins-data-public.inputtimerange.md) | |
|
||||||
| [ISearchGeneric](./kibana-plugin-plugins-data-public.isearchgeneric.md) | |
|
| [ISearchGeneric](./kibana-plugin-plugins-data-public.isearchgeneric.md) | |
|
||||||
| [ISearchSource](./kibana-plugin-plugins-data-public.isearchsource.md) | search source interface |
|
| [ISearchSource](./kibana-plugin-plugins-data-public.isearchsource.md) | search source interface |
|
||||||
|
| [KibanaContext](./kibana-plugin-plugins-data-public.kibanacontext.md) | |
|
||||||
| [MatchAllFilter](./kibana-plugin-plugins-data-public.matchallfilter.md) | |
|
| [MatchAllFilter](./kibana-plugin-plugins-data-public.matchallfilter.md) | |
|
||||||
| [ParsedInterval](./kibana-plugin-plugins-data-public.parsedinterval.md) | |
|
| [ParsedInterval](./kibana-plugin-plugins-data-public.parsedinterval.md) | |
|
||||||
| [PhraseFilter](./kibana-plugin-plugins-data-public.phrasefilter.md) | |
|
| [PhraseFilter](./kibana-plugin-plugins-data-public.phrasefilter.md) | |
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<b>Signature:</b>
|
<b>Signature:</b>
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
SearchBar: React.ComponentClass<Pick<Pick<SearchBarProps, "query" | "isLoading" | "filters" | "onRefresh" | "onRefreshChange" | "refreshInterval" | "intl" | "indexPatterns" | "dataTestSubj" | "timeHistory" | "customSubmitButton" | "screenTitle" | "showQueryBar" | "showQueryInput" | "showFilterBar" | "showDatePicker" | "showAutoRefreshOnly" | "isRefreshPaused" | "dateRangeFrom" | "dateRangeTo" | "showSaveQuery" | "savedQuery" | "onQueryChange" | "onQuerySubmit" | "onSaved" | "onSavedQueryUpdated" | "onClearSavedQuery" | "indicateNoData" | "onFiltersUpdated">, "query" | "isLoading" | "filters" | "onRefresh" | "onRefreshChange" | "refreshInterval" | "indexPatterns" | "dataTestSubj" | "timeHistory" | "customSubmitButton" | "screenTitle" | "showQueryBar" | "showQueryInput" | "showFilterBar" | "showDatePicker" | "showAutoRefreshOnly" | "isRefreshPaused" | "dateRangeFrom" | "dateRangeTo" | "showSaveQuery" | "savedQuery" | "onQueryChange" | "onQuerySubmit" | "onSaved" | "onSavedQueryUpdated" | "onClearSavedQuery" | "indicateNoData" | "onFiltersUpdated">, any> & {
|
SearchBar: React.ComponentClass<Pick<Pick<SearchBarProps, "query" | "isLoading" | "filters" | "onRefresh" | "onRefreshChange" | "refreshInterval" | "intl" | "indexPatterns" | "dataTestSubj" | "screenTitle" | "showQueryInput" | "showDatePicker" | "showAutoRefreshOnly" | "dateRangeFrom" | "dateRangeTo" | "isRefreshPaused" | "customSubmitButton" | "timeHistory" | "indicateNoData" | "onFiltersUpdated" | "savedQuery" | "showSaveQuery" | "onClearSavedQuery" | "showQueryBar" | "showFilterBar" | "onQueryChange" | "onQuerySubmit" | "onSaved" | "onSavedQueryUpdated">, "query" | "isLoading" | "filters" | "onRefresh" | "onRefreshChange" | "refreshInterval" | "indexPatterns" | "dataTestSubj" | "screenTitle" | "showQueryInput" | "showDatePicker" | "showAutoRefreshOnly" | "dateRangeFrom" | "dateRangeTo" | "isRefreshPaused" | "customSubmitButton" | "timeHistory" | "indicateNoData" | "onFiltersUpdated" | "savedQuery" | "showSaveQuery" | "onClearSavedQuery" | "showQueryBar" | "showFilterBar" | "onQueryChange" | "onQuerySubmit" | "onSaved" | "onSavedQueryUpdated">, any> & {
|
||||||
WrappedComponent: React.ComponentType<Pick<SearchBarProps, "query" | "isLoading" | "filters" | "onRefresh" | "onRefreshChange" | "refreshInterval" | "intl" | "indexPatterns" | "dataTestSubj" | "timeHistory" | "customSubmitButton" | "screenTitle" | "showQueryBar" | "showQueryInput" | "showFilterBar" | "showDatePicker" | "showAutoRefreshOnly" | "isRefreshPaused" | "dateRangeFrom" | "dateRangeTo" | "showSaveQuery" | "savedQuery" | "onQueryChange" | "onQuerySubmit" | "onSaved" | "onSavedQueryUpdated" | "onClearSavedQuery" | "indicateNoData" | "onFiltersUpdated"> & ReactIntl.InjectedIntlProps>;
|
WrappedComponent: React.ComponentType<Pick<SearchBarProps, "query" | "isLoading" | "filters" | "onRefresh" | "onRefreshChange" | "refreshInterval" | "intl" | "indexPatterns" | "dataTestSubj" | "screenTitle" | "showQueryInput" | "showDatePicker" | "showAutoRefreshOnly" | "dateRangeFrom" | "dateRangeTo" | "isRefreshPaused" | "customSubmitButton" | "timeHistory" | "indicateNoData" | "onFiltersUpdated" | "savedQuery" | "showSaveQuery" | "onClearSavedQuery" | "showQueryBar" | "showFilterBar" | "onQueryChange" | "onQuerySubmit" | "onSaved" | "onSavedQueryUpdated"> & ReactIntl.InjectedIntlProps>;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [kibana-plugin-plugins-data-server](./kibana-plugin-plugins-data-server.md) > [ExecutionContextSearch](./kibana-plugin-plugins-data-server.executioncontextsearch.md)
|
||||||
|
|
||||||
|
## ExecutionContextSearch type
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type ExecutionContextSearch = {
|
||||||
|
filters?: Filter[];
|
||||||
|
query?: Query | Query[];
|
||||||
|
timeRange?: TimeRange;
|
||||||
|
};
|
||||||
|
```
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [kibana-plugin-plugins-data-server](./kibana-plugin-plugins-data-server.md) > [ExpressionFunctionKibana](./kibana-plugin-plugins-data-server.expressionfunctionkibana.md)
|
||||||
|
|
||||||
|
## ExpressionFunctionKibana type
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type ExpressionFunctionKibana = ExpressionFunctionDefinition<'kibana', ExpressionValueSearchContext | null, object, ExpressionValueSearchContext, ExecutionContext<Adapters, ExecutionContextSearch>>;
|
||||||
|
```
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [kibana-plugin-plugins-data-server](./kibana-plugin-plugins-data-server.md) > [ExpressionFunctionKibanaContext](./kibana-plugin-plugins-data-server.expressionfunctionkibanacontext.md)
|
||||||
|
|
||||||
|
## ExpressionFunctionKibanaContext type
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type ExpressionFunctionKibanaContext = ExpressionFunctionDefinition<'kibana_context', KibanaContext | null, Arguments, Promise<KibanaContext>, ExecutionContext<Adapters, ExecutionContextSearch>>;
|
||||||
|
```
|
|
@ -1,6 +1,6 @@
|
||||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [ExpressionValueSearchContext](./kibana-plugin-plugins-expressions-public.expressionvaluesearchcontext.md)
|
[Home](./index.md) > [kibana-plugin-plugins-data-server](./kibana-plugin-plugins-data-server.md) > [ExpressionValueSearchContext](./kibana-plugin-plugins-data-server.expressionvaluesearchcontext.md)
|
||||||
|
|
||||||
## ExpressionValueSearchContext type
|
## ExpressionValueSearchContext type
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [KibanaContext](./kibana-plugin-plugins-expressions-server.kibanacontext.md)
|
[Home](./index.md) > [kibana-plugin-plugins-data-server](./kibana-plugin-plugins-data-server.md) > [KibanaContext](./kibana-plugin-plugins-data-server.kibanacontext.md)
|
||||||
|
|
||||||
## KibanaContext type
|
## KibanaContext type
|
||||||
|
|
|
@ -88,6 +88,10 @@
|
||||||
| [AggGroupName](./kibana-plugin-plugins-data-server.agggroupname.md) | |
|
| [AggGroupName](./kibana-plugin-plugins-data-server.agggroupname.md) | |
|
||||||
| [AggParam](./kibana-plugin-plugins-data-server.aggparam.md) | |
|
| [AggParam](./kibana-plugin-plugins-data-server.aggparam.md) | |
|
||||||
| [EsaggsExpressionFunctionDefinition](./kibana-plugin-plugins-data-server.esaggsexpressionfunctiondefinition.md) | |
|
| [EsaggsExpressionFunctionDefinition](./kibana-plugin-plugins-data-server.esaggsexpressionfunctiondefinition.md) | |
|
||||||
|
| [ExecutionContextSearch](./kibana-plugin-plugins-data-server.executioncontextsearch.md) | |
|
||||||
|
| [ExpressionFunctionKibana](./kibana-plugin-plugins-data-server.expressionfunctionkibana.md) | |
|
||||||
|
| [ExpressionFunctionKibanaContext](./kibana-plugin-plugins-data-server.expressionfunctionkibanacontext.md) | |
|
||||||
|
| [ExpressionValueSearchContext](./kibana-plugin-plugins-data-server.expressionvaluesearchcontext.md) | |
|
||||||
| [FieldFormatsGetConfigFn](./kibana-plugin-plugins-data-server.fieldformatsgetconfigfn.md) | |
|
| [FieldFormatsGetConfigFn](./kibana-plugin-plugins-data-server.fieldformatsgetconfigfn.md) | |
|
||||||
| [Filter](./kibana-plugin-plugins-data-server.filter.md) | |
|
| [Filter](./kibana-plugin-plugins-data-server.filter.md) | |
|
||||||
| [IAggConfig](./kibana-plugin-plugins-data-server.iaggconfig.md) | AggConfig This class represents an aggregation, which is displayed in the left-hand nav of the Visualize app. |
|
| [IAggConfig](./kibana-plugin-plugins-data-server.iaggconfig.md) | AggConfig This class represents an aggregation, which is displayed in the left-hand nav of the Visualize app. |
|
||||||
|
@ -96,6 +100,7 @@
|
||||||
| [IFieldFormatsRegistry](./kibana-plugin-plugins-data-server.ifieldformatsregistry.md) | |
|
| [IFieldFormatsRegistry](./kibana-plugin-plugins-data-server.ifieldformatsregistry.md) | |
|
||||||
| [IFieldParamType](./kibana-plugin-plugins-data-server.ifieldparamtype.md) | |
|
| [IFieldParamType](./kibana-plugin-plugins-data-server.ifieldparamtype.md) | |
|
||||||
| [IMetricAggType](./kibana-plugin-plugins-data-server.imetricaggtype.md) | |
|
| [IMetricAggType](./kibana-plugin-plugins-data-server.imetricaggtype.md) | |
|
||||||
|
| [KibanaContext](./kibana-plugin-plugins-data-server.kibanacontext.md) | |
|
||||||
| [ParsedInterval](./kibana-plugin-plugins-data-server.parsedinterval.md) | |
|
| [ParsedInterval](./kibana-plugin-plugins-data-server.parsedinterval.md) | |
|
||||||
| [Query](./kibana-plugin-plugins-data-server.query.md) | |
|
| [Query](./kibana-plugin-plugins-data-server.query.md) | |
|
||||||
| [TabbedAggRow](./kibana-plugin-plugins-data-server.tabbedaggrow.md) | \* |
|
| [TabbedAggRow](./kibana-plugin-plugins-data-server.tabbedaggrow.md) | \* |
|
||||||
|
|
|
@ -11,7 +11,7 @@ setup(core: CoreSetup<DataPluginStartDependencies, DataPluginStart>, { expressio
|
||||||
__enhance: (enhancements: DataEnhancements) => void;
|
__enhance: (enhancements: DataEnhancements) => void;
|
||||||
search: ISearchSetup;
|
search: ISearchSetup;
|
||||||
fieldFormats: {
|
fieldFormats: {
|
||||||
register: (customFieldFormat: import("../public").FieldFormatInstanceType) => number;
|
register: (customFieldFormat: import("../common").FieldFormatInstanceType) => number;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
@ -29,7 +29,7 @@ setup(core: CoreSetup<DataPluginStartDependencies, DataPluginStart>, { expressio
|
||||||
__enhance: (enhancements: DataEnhancements) => void;
|
__enhance: (enhancements: DataEnhancements) => void;
|
||||||
search: ISearchSetup;
|
search: ISearchSetup;
|
||||||
fieldFormats: {
|
fieldFormats: {
|
||||||
register: (customFieldFormat: import("../public").FieldFormatInstanceType) => number;
|
register: (customFieldFormat: import("../common").FieldFormatInstanceType) => number;
|
||||||
};
|
};
|
||||||
}`
|
}`
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ start(core: CoreStart): {
|
||||||
fieldFormatServiceFactory: (uiSettings: import("src/core/server").IUiSettingsClient) => Promise<import("../common").FieldFormatsRegistry>;
|
fieldFormatServiceFactory: (uiSettings: import("src/core/server").IUiSettingsClient) => Promise<import("../common").FieldFormatsRegistry>;
|
||||||
};
|
};
|
||||||
indexPatterns: {
|
indexPatterns: {
|
||||||
indexPatternsServiceFactory: (savedObjectsClient: Pick<import("src/core/server").SavedObjectsClient, "update" | "find" | "get" | "delete" | "errors" | "create" | "bulkCreate" | "checkConflicts" | "bulkGet" | "addToNamespaces" | "deleteFromNamespaces" | "bulkUpdate" | "removeReferencesTo">) => Promise<import("../public").IndexPatternsService>;
|
indexPatternsServiceFactory: (savedObjectsClient: Pick<import("src/core/server").SavedObjectsClient, "update" | "find" | "get" | "delete" | "errors" | "create" | "bulkCreate" | "checkConflicts" | "bulkGet" | "addToNamespaces" | "deleteFromNamespaces" | "bulkUpdate" | "removeReferencesTo">) => Promise<import("../common").IndexPatternsService>;
|
||||||
};
|
};
|
||||||
search: ISearchStart<import("./search").IEsSearchRequest, import("./search").IEsSearchResponse<any>>;
|
search: ISearchStart<import("./search").IEsSearchRequest, import("./search").IEsSearchResponse<any>>;
|
||||||
};
|
};
|
||||||
|
@ -31,7 +31,7 @@ start(core: CoreStart): {
|
||||||
fieldFormatServiceFactory: (uiSettings: import("src/core/server").IUiSettingsClient) => Promise<import("../common").FieldFormatsRegistry>;
|
fieldFormatServiceFactory: (uiSettings: import("src/core/server").IUiSettingsClient) => Promise<import("../common").FieldFormatsRegistry>;
|
||||||
};
|
};
|
||||||
indexPatterns: {
|
indexPatterns: {
|
||||||
indexPatternsServiceFactory: (savedObjectsClient: Pick<import("src/core/server").SavedObjectsClient, "update" | "find" | "get" | "delete" | "errors" | "create" | "bulkCreate" | "checkConflicts" | "bulkGet" | "addToNamespaces" | "deleteFromNamespaces" | "bulkUpdate" | "removeReferencesTo">) => Promise<import("../public").IndexPatternsService>;
|
indexPatternsServiceFactory: (savedObjectsClient: Pick<import("src/core/server").SavedObjectsClient, "update" | "find" | "get" | "delete" | "errors" | "create" | "bulkCreate" | "checkConflicts" | "bulkGet" | "addToNamespaces" | "deleteFromNamespaces" | "bulkUpdate" | "removeReferencesTo">) => Promise<import("../common").IndexPatternsService>;
|
||||||
};
|
};
|
||||||
search: ISearchStart<import("./search").IEsSearchRequest, import("./search").IEsSearchResponse<any>>;
|
search: ISearchStart<import("./search").IEsSearchRequest, import("./search").IEsSearchResponse<any>>;
|
||||||
}`
|
}`
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<b>Signature:</b>
|
<b>Signature:</b>
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
export interface ExecutionContext<InspectorAdapters extends Adapters = Adapters>
|
export interface ExecutionContext<InspectorAdapters extends Adapters = Adapters, ExecutionContextSearch extends SerializableState = SerializableState>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
||||||
|
|
||||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [ExpressionFunctionDefinitions](./kibana-plugin-plugins-expressions-public.expressionfunctiondefinitions.md) > [kibana](./kibana-plugin-plugins-expressions-public.expressionfunctiondefinitions.kibana.md)
|
|
||||||
|
|
||||||
## ExpressionFunctionDefinitions.kibana property
|
|
||||||
|
|
||||||
<b>Signature:</b>
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
kibana: ExpressionFunctionKibana;
|
|
||||||
```
|
|
|
@ -1,11 +0,0 @@
|
||||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
||||||
|
|
||||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [ExpressionFunctionDefinitions](./kibana-plugin-plugins-expressions-public.expressionfunctiondefinitions.md) > [kibana\_context](./kibana-plugin-plugins-expressions-public.expressionfunctiondefinitions.kibana_context.md)
|
|
||||||
|
|
||||||
## ExpressionFunctionDefinitions.kibana\_context property
|
|
||||||
|
|
||||||
<b>Signature:</b>
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
kibana_context: ExpressionFunctionKibanaContext;
|
|
||||||
```
|
|
|
@ -20,8 +20,6 @@ export interface ExpressionFunctionDefinitions
|
||||||
| [cumulative\_sum](./kibana-plugin-plugins-expressions-public.expressionfunctiondefinitions.cumulative_sum.md) | <code>ExpressionFunctionCumulativeSum</code> | |
|
| [cumulative\_sum](./kibana-plugin-plugins-expressions-public.expressionfunctiondefinitions.cumulative_sum.md) | <code>ExpressionFunctionCumulativeSum</code> | |
|
||||||
| [derivative](./kibana-plugin-plugins-expressions-public.expressionfunctiondefinitions.derivative.md) | <code>ExpressionFunctionDerivative</code> | |
|
| [derivative](./kibana-plugin-plugins-expressions-public.expressionfunctiondefinitions.derivative.md) | <code>ExpressionFunctionDerivative</code> | |
|
||||||
| [font](./kibana-plugin-plugins-expressions-public.expressionfunctiondefinitions.font.md) | <code>ExpressionFunctionFont</code> | |
|
| [font](./kibana-plugin-plugins-expressions-public.expressionfunctiondefinitions.font.md) | <code>ExpressionFunctionFont</code> | |
|
||||||
| [kibana\_context](./kibana-plugin-plugins-expressions-public.expressionfunctiondefinitions.kibana_context.md) | <code>ExpressionFunctionKibanaContext</code> | |
|
|
||||||
| [kibana](./kibana-plugin-plugins-expressions-public.expressionfunctiondefinitions.kibana.md) | <code>ExpressionFunctionKibana</code> | |
|
|
||||||
| [moving\_average](./kibana-plugin-plugins-expressions-public.expressionfunctiondefinitions.moving_average.md) | <code>ExpressionFunctionMovingAverage</code> | |
|
| [moving\_average](./kibana-plugin-plugins-expressions-public.expressionfunctiondefinitions.moving_average.md) | <code>ExpressionFunctionMovingAverage</code> | |
|
||||||
| [theme](./kibana-plugin-plugins-expressions-public.expressionfunctiondefinitions.theme.md) | <code>ExpressionFunctionTheme</code> | |
|
| [theme](./kibana-plugin-plugins-expressions-public.expressionfunctiondefinitions.theme.md) | <code>ExpressionFunctionTheme</code> | |
|
||||||
| [var\_set](./kibana-plugin-plugins-expressions-public.expressionfunctiondefinitions.var_set.md) | <code>ExpressionFunctionVarSet</code> | |
|
| [var\_set](./kibana-plugin-plugins-expressions-public.expressionfunctiondefinitions.var_set.md) | <code>ExpressionFunctionVarSet</code> | |
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
||||||
|
|
||||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [ExpressionFunctionKibana](./kibana-plugin-plugins-expressions-public.expressionfunctionkibana.md)
|
|
||||||
|
|
||||||
## ExpressionFunctionKibana type
|
|
||||||
|
|
||||||
<b>Signature:</b>
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
export declare type ExpressionFunctionKibana = ExpressionFunctionDefinition<'kibana', ExpressionValueSearchContext | null, object, ExpressionValueSearchContext>;
|
|
||||||
```
|
|
|
@ -21,7 +21,7 @@ export interface IExpressionLoaderParams
|
||||||
| [disableCaching](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.disablecaching.md) | <code>boolean</code> | |
|
| [disableCaching](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.disablecaching.md) | <code>boolean</code> | |
|
||||||
| [inspectorAdapters](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.inspectoradapters.md) | <code>Adapters</code> | |
|
| [inspectorAdapters](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.inspectoradapters.md) | <code>Adapters</code> | |
|
||||||
| [onRenderError](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.onrendererror.md) | <code>RenderErrorHandlerFnType</code> | |
|
| [onRenderError](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.onrendererror.md) | <code>RenderErrorHandlerFnType</code> | |
|
||||||
| [searchContext](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.searchcontext.md) | <code>ExecutionContextSearch</code> | |
|
| [searchContext](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.searchcontext.md) | <code>SerializableState</code> | |
|
||||||
| [searchSessionId](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.searchsessionid.md) | <code>string</code> | |
|
| [searchSessionId](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.searchsessionid.md) | <code>string</code> | |
|
||||||
| [uiState](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.uistate.md) | <code>unknown</code> | |
|
| [uiState](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.uistate.md) | <code>unknown</code> | |
|
||||||
| [variables](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.variables.md) | <code>Record<string, any></code> | |
|
| [variables](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.variables.md) | <code>Record<string, any></code> | |
|
||||||
|
|
|
@ -7,5 +7,5 @@
|
||||||
<b>Signature:</b>
|
<b>Signature:</b>
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
searchContext?: ExecutionContextSearch;
|
searchContext?: SerializableState;
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
||||||
|
|
||||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [KIBANA\_CONTEXT\_NAME](./kibana-plugin-plugins-expressions-public.kibana_context_name.md)
|
|
||||||
|
|
||||||
## KIBANA\_CONTEXT\_NAME type
|
|
||||||
|
|
||||||
<b>Signature:</b>
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
export declare type KIBANA_CONTEXT_NAME = 'kibana_context';
|
|
||||||
```
|
|
|
@ -99,7 +99,6 @@
|
||||||
| [ExpressionAstExpression](./kibana-plugin-plugins-expressions-public.expressionastexpression.md) | |
|
| [ExpressionAstExpression](./kibana-plugin-plugins-expressions-public.expressionastexpression.md) | |
|
||||||
| [ExpressionAstFunction](./kibana-plugin-plugins-expressions-public.expressionastfunction.md) | |
|
| [ExpressionAstFunction](./kibana-plugin-plugins-expressions-public.expressionastfunction.md) | |
|
||||||
| [ExpressionAstNode](./kibana-plugin-plugins-expressions-public.expressionastnode.md) | |
|
| [ExpressionAstNode](./kibana-plugin-plugins-expressions-public.expressionastnode.md) | |
|
||||||
| [ExpressionFunctionKibana](./kibana-plugin-plugins-expressions-public.expressionfunctionkibana.md) | |
|
|
||||||
| [ExpressionRendererComponent](./kibana-plugin-plugins-expressions-public.expressionrenderercomponent.md) | |
|
| [ExpressionRendererComponent](./kibana-plugin-plugins-expressions-public.expressionrenderercomponent.md) | |
|
||||||
| [ExpressionsServiceSetup](./kibana-plugin-plugins-expressions-public.expressionsservicesetup.md) | The public contract that <code>ExpressionsService</code> provides to other plugins in Kibana Platform in \*setup\* life-cycle. |
|
| [ExpressionsServiceSetup](./kibana-plugin-plugins-expressions-public.expressionsservicesetup.md) | The public contract that <code>ExpressionsService</code> provides to other plugins in Kibana Platform in \*setup\* life-cycle. |
|
||||||
| [ExpressionsSetup](./kibana-plugin-plugins-expressions-public.expressionssetup.md) | Expressions public setup contract, extends [ExpressionsServiceSetup](./kibana-plugin-plugins-expressions-public.expressionsservicesetup.md) |
|
| [ExpressionsSetup](./kibana-plugin-plugins-expressions-public.expressionssetup.md) | Expressions public setup contract, extends [ExpressionsServiceSetup](./kibana-plugin-plugins-expressions-public.expressionsservicesetup.md) |
|
||||||
|
@ -110,13 +109,10 @@
|
||||||
| [ExpressionValueFilter](./kibana-plugin-plugins-expressions-public.expressionvaluefilter.md) | Represents an object that is a Filter. |
|
| [ExpressionValueFilter](./kibana-plugin-plugins-expressions-public.expressionvaluefilter.md) | Represents an object that is a Filter. |
|
||||||
| [ExpressionValueNum](./kibana-plugin-plugins-expressions-public.expressionvaluenum.md) | |
|
| [ExpressionValueNum](./kibana-plugin-plugins-expressions-public.expressionvaluenum.md) | |
|
||||||
| [ExpressionValueRender](./kibana-plugin-plugins-expressions-public.expressionvaluerender.md) | Represents an object that is intended to be rendered. |
|
| [ExpressionValueRender](./kibana-plugin-plugins-expressions-public.expressionvaluerender.md) | Represents an object that is intended to be rendered. |
|
||||||
| [ExpressionValueSearchContext](./kibana-plugin-plugins-expressions-public.expressionvaluesearchcontext.md) | |
|
|
||||||
| [ExpressionValueUnboxed](./kibana-plugin-plugins-expressions-public.expressionvalueunboxed.md) | |
|
| [ExpressionValueUnboxed](./kibana-plugin-plugins-expressions-public.expressionvalueunboxed.md) | |
|
||||||
| [FontLabel](./kibana-plugin-plugins-expressions-public.fontlabel.md) | This type contains a unions of all supported font labels, or the the name of the font the user would see in a UI. |
|
| [FontLabel](./kibana-plugin-plugins-expressions-public.fontlabel.md) | This type contains a unions of all supported font labels, or the the name of the font the user would see in a UI. |
|
||||||
| [FontValue](./kibana-plugin-plugins-expressions-public.fontvalue.md) | This type contains a union of all supported font values, equivalent to the CSS <code>font-value</code> property. |
|
| [FontValue](./kibana-plugin-plugins-expressions-public.fontvalue.md) | This type contains a union of all supported font values, equivalent to the CSS <code>font-value</code> property. |
|
||||||
| [InterpreterErrorType](./kibana-plugin-plugins-expressions-public.interpretererrortype.md) | |
|
| [InterpreterErrorType](./kibana-plugin-plugins-expressions-public.interpretererrortype.md) | |
|
||||||
| [KIBANA\_CONTEXT\_NAME](./kibana-plugin-plugins-expressions-public.kibana_context_name.md) | |
|
|
||||||
| [KibanaContext](./kibana-plugin-plugins-expressions-public.kibanacontext.md) | |
|
|
||||||
| [KnownTypeToString](./kibana-plugin-plugins-expressions-public.knowntypetostring.md) | Map the type of the generic to a string-based representation of the type.<!-- -->If the provided generic is its own type interface, we use the value of the <code>type</code> key as a string literal type for it. |
|
| [KnownTypeToString](./kibana-plugin-plugins-expressions-public.knowntypetostring.md) | Map the type of the generic to a string-based representation of the type.<!-- -->If the provided generic is its own type interface, we use the value of the <code>type</code> key as a string literal type for it. |
|
||||||
| [PointSeries](./kibana-plugin-plugins-expressions-public.pointseries.md) | A <code>PointSeries</code> is a unique structure that represents dots on a chart. |
|
| [PointSeries](./kibana-plugin-plugins-expressions-public.pointseries.md) | A <code>PointSeries</code> is a unique structure that represents dots on a chart. |
|
||||||
| [PointSeriesColumnName](./kibana-plugin-plugins-expressions-public.pointseriescolumnname.md) | Allowed column names in a PointSeries |
|
| [PointSeriesColumnName](./kibana-plugin-plugins-expressions-public.pointseriescolumnname.md) | Allowed column names in a PointSeries |
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<b>Signature:</b>
|
<b>Signature:</b>
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
export interface ExecutionContext<InspectorAdapters extends Adapters = Adapters>
|
export interface ExecutionContext<InspectorAdapters extends Adapters = Adapters, ExecutionContextSearch extends SerializableState = SerializableState>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
||||||
|
|
||||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [ExpressionFunctionDefinitions](./kibana-plugin-plugins-expressions-server.expressionfunctiondefinitions.md) > [kibana](./kibana-plugin-plugins-expressions-server.expressionfunctiondefinitions.kibana.md)
|
|
||||||
|
|
||||||
## ExpressionFunctionDefinitions.kibana property
|
|
||||||
|
|
||||||
<b>Signature:</b>
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
kibana: ExpressionFunctionKibana;
|
|
||||||
```
|
|
|
@ -1,11 +0,0 @@
|
||||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
||||||
|
|
||||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [ExpressionFunctionDefinitions](./kibana-plugin-plugins-expressions-server.expressionfunctiondefinitions.md) > [kibana\_context](./kibana-plugin-plugins-expressions-server.expressionfunctiondefinitions.kibana_context.md)
|
|
||||||
|
|
||||||
## ExpressionFunctionDefinitions.kibana\_context property
|
|
||||||
|
|
||||||
<b>Signature:</b>
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
kibana_context: ExpressionFunctionKibanaContext;
|
|
||||||
```
|
|
|
@ -20,8 +20,6 @@ export interface ExpressionFunctionDefinitions
|
||||||
| [cumulative\_sum](./kibana-plugin-plugins-expressions-server.expressionfunctiondefinitions.cumulative_sum.md) | <code>ExpressionFunctionCumulativeSum</code> | |
|
| [cumulative\_sum](./kibana-plugin-plugins-expressions-server.expressionfunctiondefinitions.cumulative_sum.md) | <code>ExpressionFunctionCumulativeSum</code> | |
|
||||||
| [derivative](./kibana-plugin-plugins-expressions-server.expressionfunctiondefinitions.derivative.md) | <code>ExpressionFunctionDerivative</code> | |
|
| [derivative](./kibana-plugin-plugins-expressions-server.expressionfunctiondefinitions.derivative.md) | <code>ExpressionFunctionDerivative</code> | |
|
||||||
| [font](./kibana-plugin-plugins-expressions-server.expressionfunctiondefinitions.font.md) | <code>ExpressionFunctionFont</code> | |
|
| [font](./kibana-plugin-plugins-expressions-server.expressionfunctiondefinitions.font.md) | <code>ExpressionFunctionFont</code> | |
|
||||||
| [kibana\_context](./kibana-plugin-plugins-expressions-server.expressionfunctiondefinitions.kibana_context.md) | <code>ExpressionFunctionKibanaContext</code> | |
|
|
||||||
| [kibana](./kibana-plugin-plugins-expressions-server.expressionfunctiondefinitions.kibana.md) | <code>ExpressionFunctionKibana</code> | |
|
|
||||||
| [moving\_average](./kibana-plugin-plugins-expressions-server.expressionfunctiondefinitions.moving_average.md) | <code>ExpressionFunctionMovingAverage</code> | |
|
| [moving\_average](./kibana-plugin-plugins-expressions-server.expressionfunctiondefinitions.moving_average.md) | <code>ExpressionFunctionMovingAverage</code> | |
|
||||||
| [theme](./kibana-plugin-plugins-expressions-server.expressionfunctiondefinitions.theme.md) | <code>ExpressionFunctionTheme</code> | |
|
| [theme](./kibana-plugin-plugins-expressions-server.expressionfunctiondefinitions.theme.md) | <code>ExpressionFunctionTheme</code> | |
|
||||||
| [var\_set](./kibana-plugin-plugins-expressions-server.expressionfunctiondefinitions.var_set.md) | <code>ExpressionFunctionVarSet</code> | |
|
| [var\_set](./kibana-plugin-plugins-expressions-server.expressionfunctiondefinitions.var_set.md) | <code>ExpressionFunctionVarSet</code> | |
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
||||||
|
|
||||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [ExpressionFunctionKibana](./kibana-plugin-plugins-expressions-server.expressionfunctionkibana.md)
|
|
||||||
|
|
||||||
## ExpressionFunctionKibana type
|
|
||||||
|
|
||||||
<b>Signature:</b>
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
export declare type ExpressionFunctionKibana = ExpressionFunctionDefinition<'kibana', ExpressionValueSearchContext | null, object, ExpressionValueSearchContext>;
|
|
||||||
```
|
|
|
@ -1,11 +0,0 @@
|
||||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
||||||
|
|
||||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [KIBANA\_CONTEXT\_NAME](./kibana-plugin-plugins-expressions-server.kibana_context_name.md)
|
|
||||||
|
|
||||||
## KIBANA\_CONTEXT\_NAME type
|
|
||||||
|
|
||||||
<b>Signature:</b>
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
export declare type KIBANA_CONTEXT_NAME = 'kibana_context';
|
|
||||||
```
|
|
|
@ -83,7 +83,6 @@
|
||||||
| [ExpressionAstExpression](./kibana-plugin-plugins-expressions-server.expressionastexpression.md) | |
|
| [ExpressionAstExpression](./kibana-plugin-plugins-expressions-server.expressionastexpression.md) | |
|
||||||
| [ExpressionAstFunction](./kibana-plugin-plugins-expressions-server.expressionastfunction.md) | |
|
| [ExpressionAstFunction](./kibana-plugin-plugins-expressions-server.expressionastfunction.md) | |
|
||||||
| [ExpressionAstNode](./kibana-plugin-plugins-expressions-server.expressionastnode.md) | |
|
| [ExpressionAstNode](./kibana-plugin-plugins-expressions-server.expressionastnode.md) | |
|
||||||
| [ExpressionFunctionKibana](./kibana-plugin-plugins-expressions-server.expressionfunctionkibana.md) | |
|
|
||||||
| [ExpressionsServerSetup](./kibana-plugin-plugins-expressions-server.expressionsserversetup.md) | |
|
| [ExpressionsServerSetup](./kibana-plugin-plugins-expressions-server.expressionsserversetup.md) | |
|
||||||
| [ExpressionsServerStart](./kibana-plugin-plugins-expressions-server.expressionsserverstart.md) | |
|
| [ExpressionsServerStart](./kibana-plugin-plugins-expressions-server.expressionsserverstart.md) | |
|
||||||
| [ExpressionValue](./kibana-plugin-plugins-expressions-server.expressionvalue.md) | |
|
| [ExpressionValue](./kibana-plugin-plugins-expressions-server.expressionvalue.md) | |
|
||||||
|
@ -93,13 +92,10 @@
|
||||||
| [ExpressionValueFilter](./kibana-plugin-plugins-expressions-server.expressionvaluefilter.md) | Represents an object that is a Filter. |
|
| [ExpressionValueFilter](./kibana-plugin-plugins-expressions-server.expressionvaluefilter.md) | Represents an object that is a Filter. |
|
||||||
| [ExpressionValueNum](./kibana-plugin-plugins-expressions-server.expressionvaluenum.md) | |
|
| [ExpressionValueNum](./kibana-plugin-plugins-expressions-server.expressionvaluenum.md) | |
|
||||||
| [ExpressionValueRender](./kibana-plugin-plugins-expressions-server.expressionvaluerender.md) | Represents an object that is intended to be rendered. |
|
| [ExpressionValueRender](./kibana-plugin-plugins-expressions-server.expressionvaluerender.md) | Represents an object that is intended to be rendered. |
|
||||||
| [ExpressionValueSearchContext](./kibana-plugin-plugins-expressions-server.expressionvaluesearchcontext.md) | |
|
|
||||||
| [ExpressionValueUnboxed](./kibana-plugin-plugins-expressions-server.expressionvalueunboxed.md) | |
|
| [ExpressionValueUnboxed](./kibana-plugin-plugins-expressions-server.expressionvalueunboxed.md) | |
|
||||||
| [FontLabel](./kibana-plugin-plugins-expressions-server.fontlabel.md) | This type contains a unions of all supported font labels, or the the name of the font the user would see in a UI. |
|
| [FontLabel](./kibana-plugin-plugins-expressions-server.fontlabel.md) | This type contains a unions of all supported font labels, or the the name of the font the user would see in a UI. |
|
||||||
| [FontValue](./kibana-plugin-plugins-expressions-server.fontvalue.md) | This type contains a union of all supported font values, equivalent to the CSS <code>font-value</code> property. |
|
| [FontValue](./kibana-plugin-plugins-expressions-server.fontvalue.md) | This type contains a union of all supported font values, equivalent to the CSS <code>font-value</code> property. |
|
||||||
| [InterpreterErrorType](./kibana-plugin-plugins-expressions-server.interpretererrortype.md) | |
|
| [InterpreterErrorType](./kibana-plugin-plugins-expressions-server.interpretererrortype.md) | |
|
||||||
| [KIBANA\_CONTEXT\_NAME](./kibana-plugin-plugins-expressions-server.kibana_context_name.md) | |
|
|
||||||
| [KibanaContext](./kibana-plugin-plugins-expressions-server.kibanacontext.md) | |
|
|
||||||
| [KnownTypeToString](./kibana-plugin-plugins-expressions-server.knowntypetostring.md) | Map the type of the generic to a string-based representation of the type.<!-- -->If the provided generic is its own type interface, we use the value of the <code>type</code> key as a string literal type for it. |
|
| [KnownTypeToString](./kibana-plugin-plugins-expressions-server.knowntypetostring.md) | Map the type of the generic to a string-based representation of the type.<!-- -->If the provided generic is its own type interface, we use the value of the <code>type</code> key as a string literal type for it. |
|
||||||
| [PointSeries](./kibana-plugin-plugins-expressions-server.pointseries.md) | A <code>PointSeries</code> is a unique structure that represents dots on a chart. |
|
| [PointSeries](./kibana-plugin-plugins-expressions-server.pointseries.md) | A <code>PointSeries</code> is a unique structure that represents dots on a chart. |
|
||||||
| [PointSeriesColumnName](./kibana-plugin-plugins-expressions-server.pointseriescolumnname.md) | Allowed column names in a PointSeries |
|
| [PointSeriesColumnName](./kibana-plugin-plugins-expressions-server.pointseriescolumnname.md) | Allowed column names in a PointSeries |
|
||||||
|
|
|
@ -11,5 +11,5 @@
|
||||||
<b>Signature:</b>
|
<b>Signature:</b>
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
readonly addTriggerAction: <T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T, action: ActionDefinition<TriggerContextMapping[T]> | Action<TriggerContextMapping[T], "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK">) => void;
|
readonly addTriggerAction: <T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T, action: ActionDefinition<TriggerContextMapping[T]> | Action<TriggerContextMapping[T], "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION">) => void;
|
||||||
```
|
```
|
||||||
|
|
|
@ -7,5 +7,5 @@
|
||||||
<b>Signature:</b>
|
<b>Signature:</b>
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
readonly getAction: <T extends ActionDefinition<{}>>(id: string) => Action<ActionContext<T>, "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK">;
|
readonly getAction: <T extends ActionDefinition<{}>>(id: string) => Action<ActionContext<T>, "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION">;
|
||||||
```
|
```
|
||||||
|
|
|
@ -7,5 +7,5 @@
|
||||||
<b>Signature:</b>
|
<b>Signature:</b>
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
readonly getTriggerActions: <T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T) => Action<TriggerContextMapping[T], "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK">[];
|
readonly getTriggerActions: <T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T) => Action<TriggerContextMapping[T], "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION">[];
|
||||||
```
|
```
|
||||||
|
|
|
@ -7,5 +7,5 @@
|
||||||
<b>Signature:</b>
|
<b>Signature:</b>
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
readonly getTriggerCompatibleActions: <T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T, context: TriggerContextMapping[T]) => Promise<Action<TriggerContextMapping[T], "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK">[]>;
|
readonly getTriggerCompatibleActions: <T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T, context: TriggerContextMapping[T]) => Promise<Action<TriggerContextMapping[T], "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION">[]>;
|
||||||
```
|
```
|
||||||
|
|
|
@ -21,19 +21,19 @@ export declare class UiActionsService
|
||||||
| Property | Modifiers | Type | Description |
|
| Property | Modifiers | Type | Description |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| [actions](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.actions.md) | | <code>ActionRegistry</code> | |
|
| [actions](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.actions.md) | | <code>ActionRegistry</code> | |
|
||||||
| [addTriggerAction](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.addtriggeraction.md) | | <code><T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T, action: ActionDefinition<TriggerContextMapping[T]> | Action<TriggerContextMapping[T], "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK">) => void</code> | <code>addTriggerAction</code> is similar to <code>attachAction</code> as it attaches action to a trigger, but it also registers the action, if it has not been registered, yet.<code>addTriggerAction</code> also infers better typing of the <code>action</code> argument. |
|
| [addTriggerAction](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.addtriggeraction.md) | | <code><T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T, action: ActionDefinition<TriggerContextMapping[T]> | Action<TriggerContextMapping[T], "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION">) => void</code> | <code>addTriggerAction</code> is similar to <code>attachAction</code> as it attaches action to a trigger, but it also registers the action, if it has not been registered, yet.<code>addTriggerAction</code> also infers better typing of the <code>action</code> argument. |
|
||||||
| [attachAction](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.attachaction.md) | | <code><T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T, actionId: string) => void</code> | |
|
| [attachAction](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.attachaction.md) | | <code><T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T, actionId: string) => void</code> | |
|
||||||
| [clear](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.clear.md) | | <code>() => void</code> | Removes all registered triggers and actions. |
|
| [clear](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.clear.md) | | <code>() => void</code> | Removes all registered triggers and actions. |
|
||||||
| [detachAction](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.detachaction.md) | | <code>(triggerId: TriggerId, actionId: string) => void</code> | |
|
| [detachAction](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.detachaction.md) | | <code>(triggerId: TriggerId, actionId: string) => void</code> | |
|
||||||
| [executeTriggerActions](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.executetriggeractions.md) | | <code><T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T, context: TriggerContext<T>) => Promise<void></code> | |
|
| [executeTriggerActions](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.executetriggeractions.md) | | <code><T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T, context: TriggerContext<T>) => Promise<void></code> | |
|
||||||
| [executionService](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.executionservice.md) | | <code>UiActionsExecutionService</code> | |
|
| [executionService](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.executionservice.md) | | <code>UiActionsExecutionService</code> | |
|
||||||
| [fork](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.fork.md) | | <code>() => UiActionsService</code> | "Fork" a separate instance of <code>UiActionsService</code> that inherits all existing triggers and actions, but going forward all new triggers and actions added to this instance of <code>UiActionsService</code> are only available within this instance. |
|
| [fork](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.fork.md) | | <code>() => UiActionsService</code> | "Fork" a separate instance of <code>UiActionsService</code> that inherits all existing triggers and actions, but going forward all new triggers and actions added to this instance of <code>UiActionsService</code> are only available within this instance. |
|
||||||
| [getAction](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.getaction.md) | | <code><T extends ActionDefinition<{}>>(id: string) => Action<ActionContext<T>, "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK"></code> | |
|
| [getAction](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.getaction.md) | | <code><T extends ActionDefinition<{}>>(id: string) => Action<ActionContext<T>, "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION"></code> | |
|
||||||
| [getTrigger](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.gettrigger.md) | | <code><T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T) => TriggerContract<T></code> | |
|
| [getTrigger](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.gettrigger.md) | | <code><T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T) => TriggerContract<T></code> | |
|
||||||
| [getTriggerActions](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.gettriggeractions.md) | | <code><T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T) => Action<TriggerContextMapping[T], "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK">[]</code> | |
|
| [getTriggerActions](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.gettriggeractions.md) | | <code><T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T) => Action<TriggerContextMapping[T], "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION">[]</code> | |
|
||||||
| [getTriggerCompatibleActions](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.gettriggercompatibleactions.md) | | <code><T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T, context: TriggerContextMapping[T]) => Promise<Action<TriggerContextMapping[T], "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK">[]></code> | |
|
| [getTriggerCompatibleActions](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.gettriggercompatibleactions.md) | | <code><T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T, context: TriggerContextMapping[T]) => Promise<Action<TriggerContextMapping[T], "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION">[]></code> | |
|
||||||
| [hasAction](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.hasaction.md) | | <code>(actionId: string) => boolean</code> | |
|
| [hasAction](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.hasaction.md) | | <code>(actionId: string) => boolean</code> | |
|
||||||
| [registerAction](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.registeraction.md) | | <code><A extends ActionDefinition<{}>>(definition: A) => Action<ActionContext<A>, "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK"></code> | |
|
| [registerAction](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.registeraction.md) | | <code><A extends ActionDefinition<{}>>(definition: A) => Action<ActionContext<A>, "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION"></code> | |
|
||||||
| [registerTrigger](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.registertrigger.md) | | <code>(trigger: Trigger) => void</code> | |
|
| [registerTrigger](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.registertrigger.md) | | <code>(trigger: Trigger) => void</code> | |
|
||||||
| [triggers](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.triggers.md) | | <code>TriggerRegistry</code> | |
|
| [triggers](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.triggers.md) | | <code>TriggerRegistry</code> | |
|
||||||
| [triggerToActions](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.triggertoactions.md) | | <code>TriggerToActionsRegistry</code> | |
|
| [triggerToActions](./kibana-plugin-plugins-ui_actions-public.uiactionsservice.triggertoactions.md) | | <code>TriggerToActionsRegistry</code> | |
|
||||||
|
|
|
@ -7,5 +7,5 @@
|
||||||
<b>Signature:</b>
|
<b>Signature:</b>
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
readonly registerAction: <A extends ActionDefinition<{}>>(definition: A) => Action<ActionContext<A>, "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK">;
|
readonly registerAction: <A extends ActionDefinition<{}>>(definition: A) => Action<ActionContext<A>, "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION">;
|
||||||
```
|
```
|
||||||
|
|
|
@ -17,11 +17,8 @@
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import { Datatable, ExpressionFunctionDefinition } from 'src/plugins/expressions/common';
|
||||||
KibanaContext,
|
import { KibanaContext } from './kibana_context_type';
|
||||||
Datatable,
|
|
||||||
ExpressionFunctionDefinition,
|
|
||||||
} from '../../../../../plugins/expressions/common';
|
|
||||||
|
|
||||||
type Input = KibanaContext | null;
|
type Input = KibanaContext | null;
|
||||||
type Output = Promise<Datatable>;
|
type Output = Promise<Datatable>;
|
||||||
|
|
|
@ -17,5 +17,8 @@
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
export * from './kibana';
|
||||||
|
export * from './kibana_context';
|
||||||
|
export * from './kibana_context_type';
|
||||||
export * from './esaggs';
|
export * from './esaggs';
|
||||||
export * from './utils';
|
export * from './utils';
|
||||||
|
|
|
@ -17,14 +17,14 @@
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { ExecutionContext } from 'src/plugins/expressions/common';
|
||||||
|
import { kibana } from './kibana';
|
||||||
|
import { ExpressionValueSearchContext } from './kibana_context_type';
|
||||||
import { functionWrapper } from './utils';
|
import { functionWrapper } from './utils';
|
||||||
import { kibana } from '../kibana';
|
|
||||||
import { ExecutionContext } from '../../../execution/types';
|
|
||||||
import { KibanaContext, ExpressionValueSearchContext } from '../../../expression_types';
|
|
||||||
|
|
||||||
describe('interpreter/functions#kibana', () => {
|
describe('interpreter/functions#kibana', () => {
|
||||||
const fn = functionWrapper(kibana);
|
const fn = functionWrapper(kibana);
|
||||||
let input: Partial<KibanaContext>;
|
let input: Partial<ExpressionValueSearchContext>;
|
||||||
let search: ExpressionValueSearchContext;
|
let search: ExpressionValueSearchContext;
|
||||||
let context: ExecutionContext;
|
let context: ExecutionContext;
|
||||||
|
|
|
@ -18,8 +18,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import { ExpressionFunctionDefinition } from '../types';
|
import { ExecutionContext, ExpressionFunctionDefinition } from 'src/plugins/expressions/common';
|
||||||
import { ExpressionValueSearchContext } from '../../expression_types';
|
import { Adapters } from 'src/plugins/inspector/common';
|
||||||
|
import { ExpressionValueSearchContext, ExecutionContextSearch } from './kibana_context_type';
|
||||||
|
|
||||||
const toArray = <T>(query: undefined | T | T[]): T[] =>
|
const toArray = <T>(query: undefined | T | T[]): T[] =>
|
||||||
!query ? [] : Array.isArray(query) ? query : [query];
|
!query ? [] : Array.isArray(query) ? query : [query];
|
||||||
|
@ -29,7 +30,8 @@ export type ExpressionFunctionKibana = ExpressionFunctionDefinition<
|
||||||
// TODO: Get rid of the `null` type below.
|
// TODO: Get rid of the `null` type below.
|
||||||
ExpressionValueSearchContext | null,
|
ExpressionValueSearchContext | null,
|
||||||
object,
|
object,
|
||||||
ExpressionValueSearchContext
|
ExpressionValueSearchContext,
|
||||||
|
ExecutionContext<Adapters, ExecutionContextSearch>
|
||||||
>;
|
>;
|
||||||
|
|
||||||
export const kibana: ExpressionFunctionKibana = {
|
export const kibana: ExpressionFunctionKibana = {
|
||||||
|
@ -38,7 +40,7 @@ export const kibana: ExpressionFunctionKibana = {
|
||||||
|
|
||||||
inputTypes: ['kibana_context', 'null'],
|
inputTypes: ['kibana_context', 'null'],
|
||||||
|
|
||||||
help: i18n.translate('expressions.functions.kibana.help', {
|
help: i18n.translate('data.search.functions.kibana.help', {
|
||||||
defaultMessage: 'Gets kibana global context',
|
defaultMessage: 'Gets kibana global context',
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -16,11 +16,13 @@
|
||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { uniqBy } from 'lodash';
|
import { uniqBy } from 'lodash';
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import { ExpressionFunctionDefinition } from '../../expression_functions';
|
import { ExpressionFunctionDefinition, ExecutionContext } from 'src/plugins/expressions/common';
|
||||||
import { KibanaContext } from '../../expression_types';
|
import { Adapters } from 'src/plugins/inspector/common';
|
||||||
import { Query, uniqFilters } from '../../../../data/common';
|
import { Query, uniqFilters } from '../../query';
|
||||||
|
import { ExecutionContextSearch, KibanaContext } from './kibana_context_type';
|
||||||
|
|
||||||
interface Arguments {
|
interface Arguments {
|
||||||
q?: string | null;
|
q?: string | null;
|
||||||
|
@ -33,7 +35,8 @@ export type ExpressionFunctionKibanaContext = ExpressionFunctionDefinition<
|
||||||
'kibana_context',
|
'kibana_context',
|
||||||
KibanaContext | null,
|
KibanaContext | null,
|
||||||
Arguments,
|
Arguments,
|
||||||
Promise<KibanaContext>
|
Promise<KibanaContext>,
|
||||||
|
ExecutionContext<Adapters, ExecutionContextSearch>
|
||||||
>;
|
>;
|
||||||
|
|
||||||
const getParsedValue = (data: any, defaultValue: any) =>
|
const getParsedValue = (data: any, defaultValue: any) =>
|
||||||
|
@ -49,7 +52,7 @@ export const kibanaContextFunction: ExpressionFunctionKibanaContext = {
|
||||||
name: 'kibana_context',
|
name: 'kibana_context',
|
||||||
type: 'kibana_context',
|
type: 'kibana_context',
|
||||||
inputTypes: ['kibana_context', 'null'],
|
inputTypes: ['kibana_context', 'null'],
|
||||||
help: i18n.translate('expressions.functions.kibana_context.help', {
|
help: i18n.translate('data.search.functions.kibana_context.help', {
|
||||||
defaultMessage: 'Updates kibana global context',
|
defaultMessage: 'Updates kibana global context',
|
||||||
}),
|
}),
|
||||||
args: {
|
args: {
|
||||||
|
@ -57,28 +60,28 @@ export const kibanaContextFunction: ExpressionFunctionKibanaContext = {
|
||||||
types: ['string', 'null'],
|
types: ['string', 'null'],
|
||||||
aliases: ['query', '_'],
|
aliases: ['query', '_'],
|
||||||
default: null,
|
default: null,
|
||||||
help: i18n.translate('expressions.functions.kibana_context.q.help', {
|
help: i18n.translate('data.search.functions.kibana_context.q.help', {
|
||||||
defaultMessage: 'Specify Kibana free form text query',
|
defaultMessage: 'Specify Kibana free form text query',
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
filters: {
|
filters: {
|
||||||
types: ['string', 'null'],
|
types: ['string', 'null'],
|
||||||
default: '"[]"',
|
default: '"[]"',
|
||||||
help: i18n.translate('expressions.functions.kibana_context.filters.help', {
|
help: i18n.translate('data.search.functions.kibana_context.filters.help', {
|
||||||
defaultMessage: 'Specify Kibana generic filters',
|
defaultMessage: 'Specify Kibana generic filters',
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
timeRange: {
|
timeRange: {
|
||||||
types: ['string', 'null'],
|
types: ['string', 'null'],
|
||||||
default: null,
|
default: null,
|
||||||
help: i18n.translate('expressions.functions.kibana_context.timeRange.help', {
|
help: i18n.translate('data.search.functions.kibana_context.timeRange.help', {
|
||||||
defaultMessage: 'Specify Kibana time range filter',
|
defaultMessage: 'Specify Kibana time range filter',
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
savedSearchId: {
|
savedSearchId: {
|
||||||
types: ['string', 'null'],
|
types: ['string', 'null'],
|
||||||
default: null,
|
default: null,
|
||||||
help: i18n.translate('expressions.functions.kibana_context.savedSearchId.help', {
|
help: i18n.translate('data.search.functions.kibana_context.savedSearchId.help', {
|
||||||
defaultMessage: 'Specify saved search ID to be used for queries and filters',
|
defaultMessage: 'Specify saved search ID to be used for queries and filters',
|
||||||
}),
|
}),
|
||||||
},
|
},
|
|
@ -17,8 +17,16 @@
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ExpressionValueBoxed } from '../types';
|
import { ExpressionValueBoxed } from 'src/plugins/expressions/common';
|
||||||
import { ExecutionContextSearch } from '../../execution/types';
|
import { Filter } from '../../es_query';
|
||||||
|
import { Query, TimeRange } from '../../query';
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
||||||
|
export type ExecutionContextSearch = {
|
||||||
|
filters?: Filter[];
|
||||||
|
query?: Query | Query[];
|
||||||
|
timeRange?: TimeRange;
|
||||||
|
};
|
||||||
|
|
||||||
export type ExpressionValueSearchContext = ExpressionValueBoxed<
|
export type ExpressionValueSearchContext = ExpressionValueBoxed<
|
||||||
'kibana_context',
|
'kibana_context',
|
|
@ -0,0 +1,34 @@
|
||||||
|
/*
|
||||||
|
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
* license agreements. See the NOTICE file distributed with
|
||||||
|
* this work for additional information regarding copyright
|
||||||
|
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
* the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
* not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing,
|
||||||
|
* software distributed under the License is distributed on an
|
||||||
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { mapValues } from 'lodash';
|
||||||
|
import { AnyExpressionFunctionDefinition, ExecutionContext } from 'src/plugins/expressions/common';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Takes a function spec and passes in default args,
|
||||||
|
* overriding with any provided args.
|
||||||
|
*/
|
||||||
|
export const functionWrapper = (spec: AnyExpressionFunctionDefinition) => {
|
||||||
|
const defaultArgs = mapValues(spec.args, (argSpec) => argSpec.default);
|
||||||
|
return (
|
||||||
|
context: object | null,
|
||||||
|
args: Record<string, any> = {},
|
||||||
|
handlers: ExecutionContext = {} as ExecutionContext
|
||||||
|
) => spec.fn(context, { ...defaultArgs, ...args }, handlers);
|
||||||
|
};
|
|
@ -18,3 +18,4 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export * from './courier_inspector_stats';
|
export * from './courier_inspector_stats';
|
||||||
|
export * from './function_wrapper';
|
||||||
|
|
|
@ -19,4 +19,3 @@
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export { shortenDottedString } from './shorten_dotted_string';
|
export { shortenDottedString } from './shorten_dotted_string';
|
||||||
export { AbortError, toPromise, getCombinedSignal } from './abort_utils';
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"uiActions"
|
"uiActions"
|
||||||
],
|
],
|
||||||
"optionalPlugins": ["usageCollection"],
|
"optionalPlugins": ["usageCollection"],
|
||||||
"extraPublicDirs": ["common", "common/utils/abort_utils"],
|
"extraPublicDirs": ["common"],
|
||||||
"requiredBundles": [
|
"requiredBundles": [
|
||||||
"usageCollection",
|
"usageCollection",
|
||||||
"kibanaUtils",
|
"kibanaUtils",
|
||||||
|
|
|
@ -338,6 +338,12 @@ export {
|
||||||
OptionedParamType,
|
OptionedParamType,
|
||||||
OptionedValueProp,
|
OptionedValueProp,
|
||||||
ParsedInterval,
|
ParsedInterval,
|
||||||
|
// expressions
|
||||||
|
ExecutionContextSearch,
|
||||||
|
ExpressionFunctionKibana,
|
||||||
|
ExpressionFunctionKibanaContext,
|
||||||
|
ExpressionValueSearchContext,
|
||||||
|
KibanaContext,
|
||||||
// tabify
|
// tabify
|
||||||
TabbedAggColumn,
|
TabbedAggColumn,
|
||||||
TabbedAggRow,
|
TabbedAggRow,
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
import { $Values } from '@kbn/utility-types';
|
import { $Values } from '@kbn/utility-types';
|
||||||
import { Action } from 'history';
|
import { Action } from 'history';
|
||||||
|
import { Adapters as Adapters_2 } from 'src/plugins/inspector/common';
|
||||||
import { ApiResponse } from '@elastic/elasticsearch';
|
import { ApiResponse } from '@elastic/elasticsearch';
|
||||||
import { ApiResponse as ApiResponse_2 } from '@elastic/elasticsearch/lib/Transport';
|
import { ApiResponse as ApiResponse_2 } from '@elastic/elasticsearch/lib/Transport';
|
||||||
import { ApplicationStart } from 'kibana/public';
|
import { ApplicationStart } from 'kibana/public';
|
||||||
|
@ -16,6 +17,7 @@ import { CoreSetup } from 'src/core/public';
|
||||||
import { CoreSetup as CoreSetup_2 } from 'kibana/public';
|
import { CoreSetup as CoreSetup_2 } from 'kibana/public';
|
||||||
import { CoreStart } from 'kibana/public';
|
import { CoreStart } from 'kibana/public';
|
||||||
import { CoreStart as CoreStart_2 } from 'src/core/public';
|
import { CoreStart as CoreStart_2 } from 'src/core/public';
|
||||||
|
import { Datatable as Datatable_2 } from 'src/plugins/expressions/common';
|
||||||
import { DatatableColumn as DatatableColumn_2 } from 'src/plugins/expressions';
|
import { DatatableColumn as DatatableColumn_2 } from 'src/plugins/expressions';
|
||||||
import { Ensure } from '@kbn/utility-types';
|
import { Ensure } from '@kbn/utility-types';
|
||||||
import { EnvironmentMode } from '@kbn/config';
|
import { EnvironmentMode } from '@kbn/config';
|
||||||
|
@ -26,8 +28,12 @@ import { EuiComboBoxProps } from '@elastic/eui';
|
||||||
import { EuiConfirmModalProps } from '@elastic/eui';
|
import { EuiConfirmModalProps } from '@elastic/eui';
|
||||||
import { EuiGlobalToastListToast } from '@elastic/eui';
|
import { EuiGlobalToastListToast } from '@elastic/eui';
|
||||||
import { ExclusiveUnion } from '@elastic/eui';
|
import { ExclusiveUnion } from '@elastic/eui';
|
||||||
|
import { ExecutionContext } from 'src/plugins/expressions/common';
|
||||||
import { ExpressionAstFunction } from 'src/plugins/expressions/common';
|
import { ExpressionAstFunction } from 'src/plugins/expressions/common';
|
||||||
|
import { ExpressionFunctionDefinition } from 'src/plugins/expressions/common';
|
||||||
|
import { ExpressionFunctionDefinition as ExpressionFunctionDefinition_2 } from 'src/plugins/expressions/public';
|
||||||
import { ExpressionsSetup } from 'src/plugins/expressions/public';
|
import { ExpressionsSetup } from 'src/plugins/expressions/public';
|
||||||
|
import { ExpressionValueBoxed } from 'src/plugins/expressions/common';
|
||||||
import { History } from 'history';
|
import { History } from 'history';
|
||||||
import { Href } from 'history';
|
import { Href } from 'history';
|
||||||
import { IconType } from '@elastic/eui';
|
import { IconType } from '@elastic/eui';
|
||||||
|
@ -65,7 +71,7 @@ import { Required } from '@kbn/utility-types';
|
||||||
import * as Rx from 'rxjs';
|
import * as Rx from 'rxjs';
|
||||||
import { SavedObject } from 'src/core/server';
|
import { SavedObject } from 'src/core/server';
|
||||||
import { SavedObject as SavedObject_2 } from 'src/core/public';
|
import { SavedObject as SavedObject_2 } from 'src/core/public';
|
||||||
import { SavedObjectReference as SavedObjectReference_2 } from 'src/core/types';
|
import { SavedObjectReference } from 'src/core/types';
|
||||||
import { SavedObjectsClientContract } from 'src/core/public';
|
import { SavedObjectsClientContract } from 'src/core/public';
|
||||||
import { Search } from '@elastic/elasticsearch/api/requestParams';
|
import { Search } from '@elastic/elasticsearch/api/requestParams';
|
||||||
import { SearchResponse } from 'elasticsearch';
|
import { SearchResponse } from 'elasticsearch';
|
||||||
|
@ -80,7 +86,6 @@ import { UiActionsSetup } from 'src/plugins/ui_actions/public';
|
||||||
import { UiActionsStart } from 'src/plugins/ui_actions/public';
|
import { UiActionsStart } from 'src/plugins/ui_actions/public';
|
||||||
import { Unit } from '@elastic/datemath';
|
import { Unit } from '@elastic/datemath';
|
||||||
import { UnregisterCallback } from 'history';
|
import { UnregisterCallback } from 'history';
|
||||||
import { UnwrapPromiseOrReturn } from '@kbn/utility-types';
|
|
||||||
import { UserProvidedValues } from 'src/core/server/types';
|
import { UserProvidedValues } from 'src/core/server/types';
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "ACTION_GLOBAL_APPLY_FILTER" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "ACTION_GLOBAL_APPLY_FILTER" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
|
@ -525,7 +530,6 @@ export enum ES_FIELD_TYPES {
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
export const ES_SEARCH_STRATEGY = "es";
|
export const ES_SEARCH_STRATEGY = "es";
|
||||||
|
|
||||||
// Warning: (ae-forgotten-export) The symbol "ExpressionFunctionDefinition" needs to be exported by the entry point index.d.ts
|
|
||||||
// Warning: (ae-forgotten-export) The symbol "Input" needs to be exported by the entry point index.d.ts
|
// Warning: (ae-forgotten-export) The symbol "Input" needs to be exported by the entry point index.d.ts
|
||||||
// Warning: (ae-forgotten-export) The symbol "Arguments" needs to be exported by the entry point index.d.ts
|
// Warning: (ae-forgotten-export) The symbol "Arguments" needs to be exported by the entry point index.d.ts
|
||||||
// Warning: (ae-forgotten-export) The symbol "Output" needs to be exported by the entry point index.d.ts
|
// Warning: (ae-forgotten-export) The symbol "Output" needs to be exported by the entry point index.d.ts
|
||||||
|
@ -541,7 +545,7 @@ export type EsaggsExpressionFunctionDefinition = ExpressionFunctionDefinition<'e
|
||||||
// Warning: (ae-missing-release-tag) "EsdslExpressionFunctionDefinition" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "EsdslExpressionFunctionDefinition" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
//
|
//
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
export type EsdslExpressionFunctionDefinition = ExpressionFunctionDefinition<typeof name_2, Input_2, Arguments_2, Output_2>;
|
export type EsdslExpressionFunctionDefinition = ExpressionFunctionDefinition_2<typeof name_2, Input_2, Arguments_3, Output_2>;
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "esFilters" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "esFilters" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
//
|
//
|
||||||
|
@ -647,6 +651,15 @@ export type EsQuerySortValue = Record<string, SortDirection | SortDirectionNumer
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
export type EsRawResponseExpressionTypeDefinition = ExpressionTypeDefinition<typeof name_3, EsRawResponse, EsRawResponse>;
|
export type EsRawResponseExpressionTypeDefinition = ExpressionTypeDefinition<typeof name_3, EsRawResponse, EsRawResponse>;
|
||||||
|
|
||||||
|
// Warning: (ae-missing-release-tag) "ExecutionContextSearch" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
|
//
|
||||||
|
// @public (undocumented)
|
||||||
|
export type ExecutionContextSearch = {
|
||||||
|
filters?: Filter[];
|
||||||
|
query?: Query | Query[];
|
||||||
|
timeRange?: TimeRange;
|
||||||
|
};
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "ExistsFilter" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "ExistsFilter" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
//
|
//
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
|
@ -655,12 +668,28 @@ export type ExistsFilter = Filter & {
|
||||||
exists?: FilterExistsProperty;
|
exists?: FilterExistsProperty;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Warning: (ae-missing-release-tag) "ExpressionFunctionKibana" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
|
//
|
||||||
|
// @public (undocumented)
|
||||||
|
export type ExpressionFunctionKibana = ExpressionFunctionDefinition<'kibana', ExpressionValueSearchContext | null, object, ExpressionValueSearchContext, ExecutionContext<Adapters_2, ExecutionContextSearch>>;
|
||||||
|
|
||||||
|
// Warning: (ae-forgotten-export) The symbol "Arguments" needs to be exported by the entry point index.d.ts
|
||||||
|
// Warning: (ae-missing-release-tag) "ExpressionFunctionKibanaContext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
|
//
|
||||||
|
// @public (undocumented)
|
||||||
|
export type ExpressionFunctionKibanaContext = ExpressionFunctionDefinition<'kibana_context', KibanaContext | null, Arguments_2, Promise<KibanaContext>, ExecutionContext<Adapters_2, ExecutionContextSearch>>;
|
||||||
|
|
||||||
|
// Warning: (ae-missing-release-tag) "ExpressionValueSearchContext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
|
//
|
||||||
|
// @public (undocumented)
|
||||||
|
export type ExpressionValueSearchContext = ExpressionValueBoxed<'kibana_context', ExecutionContextSearch>;
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "extractReferences" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "extractReferences" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
//
|
//
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
export const extractSearchSourceReferences: (state: SearchSourceFields) => [SearchSourceFields & {
|
export const extractSearchSourceReferences: (state: SearchSourceFields) => [SearchSourceFields & {
|
||||||
indexRefName?: string;
|
indexRefName?: string;
|
||||||
}, SavedObjectReference_2[]];
|
}, SavedObjectReference[]];
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "FieldFormat" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "FieldFormat" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
//
|
//
|
||||||
|
@ -1368,7 +1397,7 @@ export interface IndexPatternTypeMeta {
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
export const injectSearchSourceReferences: (searchSourceFields: SearchSourceFields & {
|
export const injectSearchSourceReferences: (searchSourceFields: SearchSourceFields & {
|
||||||
indexRefName: string;
|
indexRefName: string;
|
||||||
}, references: SavedObjectReference_2[]) => SearchSourceFields;
|
}, references: SavedObjectReference[]) => SearchSourceFields;
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "InputTimeRange" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "InputTimeRange" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
//
|
//
|
||||||
|
@ -1510,6 +1539,11 @@ export enum KBN_FIELD_TYPES {
|
||||||
UNKNOWN = "unknown"
|
UNKNOWN = "unknown"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Warning: (ae-missing-release-tag) "KibanaContext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
|
//
|
||||||
|
// @public (undocumented)
|
||||||
|
export type KibanaContext = ExpressionValueSearchContext;
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "KueryNode" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "KueryNode" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
//
|
//
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
|
@ -1962,8 +1996,8 @@ export const search: {
|
||||||
// Warning: (ae-missing-release-tag) "SearchBar" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "SearchBar" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
//
|
//
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
export const SearchBar: React.ComponentClass<Pick<Pick<SearchBarProps, "query" | "isLoading" | "filters" | "onRefresh" | "onRefreshChange" | "refreshInterval" | "intl" | "indexPatterns" | "dataTestSubj" | "timeHistory" | "customSubmitButton" | "screenTitle" | "showQueryBar" | "showQueryInput" | "showFilterBar" | "showDatePicker" | "showAutoRefreshOnly" | "isRefreshPaused" | "dateRangeFrom" | "dateRangeTo" | "showSaveQuery" | "savedQuery" | "onQueryChange" | "onQuerySubmit" | "onSaved" | "onSavedQueryUpdated" | "onClearSavedQuery" | "indicateNoData" | "onFiltersUpdated">, "query" | "isLoading" | "filters" | "onRefresh" | "onRefreshChange" | "refreshInterval" | "indexPatterns" | "dataTestSubj" | "timeHistory" | "customSubmitButton" | "screenTitle" | "showQueryBar" | "showQueryInput" | "showFilterBar" | "showDatePicker" | "showAutoRefreshOnly" | "isRefreshPaused" | "dateRangeFrom" | "dateRangeTo" | "showSaveQuery" | "savedQuery" | "onQueryChange" | "onQuerySubmit" | "onSaved" | "onSavedQueryUpdated" | "onClearSavedQuery" | "indicateNoData" | "onFiltersUpdated">, any> & {
|
export const SearchBar: React.ComponentClass<Pick<Pick<SearchBarProps, "query" | "isLoading" | "filters" | "onRefresh" | "onRefreshChange" | "refreshInterval" | "intl" | "indexPatterns" | "dataTestSubj" | "screenTitle" | "showQueryInput" | "showDatePicker" | "showAutoRefreshOnly" | "dateRangeFrom" | "dateRangeTo" | "isRefreshPaused" | "customSubmitButton" | "timeHistory" | "indicateNoData" | "onFiltersUpdated" | "savedQuery" | "showSaveQuery" | "onClearSavedQuery" | "showQueryBar" | "showFilterBar" | "onQueryChange" | "onQuerySubmit" | "onSaved" | "onSavedQueryUpdated">, "query" | "isLoading" | "filters" | "onRefresh" | "onRefreshChange" | "refreshInterval" | "indexPatterns" | "dataTestSubj" | "screenTitle" | "showQueryInput" | "showDatePicker" | "showAutoRefreshOnly" | "dateRangeFrom" | "dateRangeTo" | "isRefreshPaused" | "customSubmitButton" | "timeHistory" | "indicateNoData" | "onFiltersUpdated" | "savedQuery" | "showSaveQuery" | "onClearSavedQuery" | "showQueryBar" | "showFilterBar" | "onQueryChange" | "onQuerySubmit" | "onSaved" | "onSavedQueryUpdated">, any> & {
|
||||||
WrappedComponent: React.ComponentType<Pick<SearchBarProps, "query" | "isLoading" | "filters" | "onRefresh" | "onRefreshChange" | "refreshInterval" | "intl" | "indexPatterns" | "dataTestSubj" | "timeHistory" | "customSubmitButton" | "screenTitle" | "showQueryBar" | "showQueryInput" | "showFilterBar" | "showDatePicker" | "showAutoRefreshOnly" | "isRefreshPaused" | "dateRangeFrom" | "dateRangeTo" | "showSaveQuery" | "savedQuery" | "onQueryChange" | "onQuerySubmit" | "onSaved" | "onSavedQueryUpdated" | "onClearSavedQuery" | "indicateNoData" | "onFiltersUpdated"> & ReactIntl.InjectedIntlProps>;
|
WrappedComponent: React.ComponentType<Pick<SearchBarProps, "query" | "isLoading" | "filters" | "onRefresh" | "onRefreshChange" | "refreshInterval" | "intl" | "indexPatterns" | "dataTestSubj" | "screenTitle" | "showQueryInput" | "showDatePicker" | "showAutoRefreshOnly" | "dateRangeFrom" | "dateRangeTo" | "isRefreshPaused" | "customSubmitButton" | "timeHistory" | "indicateNoData" | "onFiltersUpdated" | "savedQuery" | "showSaveQuery" | "onClearSavedQuery" | "showQueryBar" | "showFilterBar" | "onQueryChange" | "onQuerySubmit" | "onSaved" | "onSavedQueryUpdated"> & ReactIntl.InjectedIntlProps>;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Warning: (ae-forgotten-export) The symbol "SearchBarOwnProps" needs to be exported by the entry point index.d.ts
|
// Warning: (ae-forgotten-export) The symbol "SearchBarOwnProps" needs to be exported by the entry point index.d.ts
|
||||||
|
@ -2321,21 +2355,21 @@ export const UI_SETTINGS: {
|
||||||
// src/plugins/data/public/index.ts:236:27 - (ae-forgotten-export) The symbol "getFromSavedObject" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/public/index.ts:236:27 - (ae-forgotten-export) The symbol "getFromSavedObject" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/public/index.ts:236:27 - (ae-forgotten-export) The symbol "flattenHitWrapper" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/public/index.ts:236:27 - (ae-forgotten-export) The symbol "flattenHitWrapper" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/public/index.ts:236:27 - (ae-forgotten-export) The symbol "formatHitProvider" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/public/index.ts:236:27 - (ae-forgotten-export) The symbol "formatHitProvider" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/public/index.ts:387:20 - (ae-forgotten-export) The symbol "getRequestInspectorStats" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/public/index.ts:393:20 - (ae-forgotten-export) The symbol "getRequestInspectorStats" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/public/index.ts:387:20 - (ae-forgotten-export) The symbol "getResponseInspectorStats" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/public/index.ts:393:20 - (ae-forgotten-export) The symbol "getResponseInspectorStats" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/public/index.ts:387:20 - (ae-forgotten-export) The symbol "tabifyAggResponse" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/public/index.ts:393:20 - (ae-forgotten-export) The symbol "tabifyAggResponse" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/public/index.ts:387:20 - (ae-forgotten-export) The symbol "tabifyGetColumns" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/public/index.ts:393:20 - (ae-forgotten-export) The symbol "tabifyGetColumns" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/public/index.ts:389:1 - (ae-forgotten-export) The symbol "CidrMask" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/public/index.ts:395:1 - (ae-forgotten-export) The symbol "CidrMask" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/public/index.ts:390:1 - (ae-forgotten-export) The symbol "dateHistogramInterval" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/public/index.ts:396:1 - (ae-forgotten-export) The symbol "dateHistogramInterval" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/public/index.ts:399:1 - (ae-forgotten-export) The symbol "InvalidEsCalendarIntervalError" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/public/index.ts:405:1 - (ae-forgotten-export) The symbol "InvalidEsCalendarIntervalError" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/public/index.ts:400:1 - (ae-forgotten-export) The symbol "InvalidEsIntervalFormatError" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/public/index.ts:406:1 - (ae-forgotten-export) The symbol "InvalidEsIntervalFormatError" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/public/index.ts:401:1 - (ae-forgotten-export) The symbol "Ipv4Address" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/public/index.ts:407:1 - (ae-forgotten-export) The symbol "Ipv4Address" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/public/index.ts:402:1 - (ae-forgotten-export) The symbol "isDateHistogramBucketAggConfig" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/public/index.ts:408:1 - (ae-forgotten-export) The symbol "isDateHistogramBucketAggConfig" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/public/index.ts:406:1 - (ae-forgotten-export) The symbol "isValidEsInterval" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/public/index.ts:412:1 - (ae-forgotten-export) The symbol "isValidEsInterval" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/public/index.ts:407:1 - (ae-forgotten-export) The symbol "isValidInterval" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/public/index.ts:413:1 - (ae-forgotten-export) The symbol "isValidInterval" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/public/index.ts:410:1 - (ae-forgotten-export) The symbol "parseInterval" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/public/index.ts:416:1 - (ae-forgotten-export) The symbol "parseInterval" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/public/index.ts:411:1 - (ae-forgotten-export) The symbol "propFilter" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/public/index.ts:417:1 - (ae-forgotten-export) The symbol "propFilter" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/public/index.ts:414:1 - (ae-forgotten-export) The symbol "toAbsoluteDates" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/public/index.ts:420:1 - (ae-forgotten-export) The symbol "toAbsoluteDates" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/public/query/state_sync/connect_to_query_state.ts:45:5 - (ae-forgotten-export) The symbol "FilterStateStore" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/public/query/state_sync/connect_to_query_state.ts:45:5 - (ae-forgotten-export) The symbol "FilterStateStore" needs to be exported by the entry point index.d.ts
|
||||||
|
|
||||||
// (No @packageDocumentation comment for this package)
|
// (No @packageDocumentation comment for this package)
|
||||||
|
|
|
@ -23,7 +23,7 @@ import { coreMock } from '../../../../../core/public/mocks';
|
||||||
const startMock = coreMock.createStart();
|
const startMock = coreMock.createStart();
|
||||||
|
|
||||||
import { mount } from 'enzyme';
|
import { mount } from 'enzyme';
|
||||||
import { AbortError } from 'src/plugins/data/common';
|
import { AbortError } from '../../../../kibana_utils/public';
|
||||||
|
|
||||||
describe('SearchTimeoutError', () => {
|
describe('SearchTimeoutError', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|
|
@ -18,15 +18,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import {
|
import { ExpressionFunctionDefinition } from 'src/plugins/expressions/public';
|
||||||
KibanaContext,
|
|
||||||
ExpressionFunctionDefinition,
|
|
||||||
} from '../../../../../plugins/expressions/public';
|
|
||||||
|
|
||||||
import { getSearchService, getUiSettings } from '../../services';
|
import { getSearchService, getUiSettings } from '../../services';
|
||||||
import { EsRawResponse } from './es_raw_response';
|
import { EsRawResponse } from './es_raw_response';
|
||||||
import { RequestStatistics, RequestAdapter } from '../../../../inspector/common';
|
import { RequestStatistics, RequestAdapter } from '../../../../inspector/common';
|
||||||
import { IEsSearchResponse } from '../../../common/search/es_search';
|
import { IEsSearchResponse, KibanaContext } from '../../../common/search';
|
||||||
import { buildEsQuery, getEsQueryConfig } from '../../../common/es_query/es_query';
|
import { buildEsQuery, getEsQueryConfig } from '../../../common/es_query/es_query';
|
||||||
import { DataPublicPluginStart } from '../../types';
|
import { DataPublicPluginStart } from '../../types';
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ import { CoreSetup, CoreStart } from '../../../../core/public';
|
||||||
import { coreMock } from '../../../../core/public/mocks';
|
import { coreMock } from '../../../../core/public/mocks';
|
||||||
import { IEsSearchRequest } from '../../common/search';
|
import { IEsSearchRequest } from '../../common/search';
|
||||||
import { SearchInterceptor } from './search_interceptor';
|
import { SearchInterceptor } from './search_interceptor';
|
||||||
import { AbortError } from '../../common';
|
import { AbortError } from '../../../kibana_utils/public';
|
||||||
import { SearchTimeoutError, PainlessError, TimeoutErrorMode } from './errors';
|
import { SearchTimeoutError, PainlessError, TimeoutErrorMode } from './errors';
|
||||||
import { searchServiceMock } from './mocks';
|
import { searchServiceMock } from './mocks';
|
||||||
import { ISearchStart } from '.';
|
import { ISearchStart } from '.';
|
||||||
|
|
|
@ -24,13 +24,11 @@ import { PublicMethodsOf } from '@kbn/utility-types';
|
||||||
import { CoreStart, CoreSetup, ToastsSetup } from 'kibana/public';
|
import { CoreStart, CoreSetup, ToastsSetup } from 'kibana/public';
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import {
|
import {
|
||||||
AbortError,
|
|
||||||
IKibanaSearchRequest,
|
IKibanaSearchRequest,
|
||||||
IKibanaSearchResponse,
|
IKibanaSearchResponse,
|
||||||
ISearchOptions,
|
ISearchOptions,
|
||||||
ES_SEARCH_STRATEGY,
|
ES_SEARCH_STRATEGY,
|
||||||
ISessionService,
|
ISessionService,
|
||||||
getCombinedSignal,
|
|
||||||
} from '../../common';
|
} from '../../common';
|
||||||
import { SearchUsageCollector } from './collectors';
|
import { SearchUsageCollector } from './collectors';
|
||||||
import {
|
import {
|
||||||
|
@ -43,6 +41,7 @@ import {
|
||||||
getHttpError,
|
getHttpError,
|
||||||
} from './errors';
|
} from './errors';
|
||||||
import { toMountPoint } from '../../../kibana_react/public';
|
import { toMountPoint } from '../../../kibana_react/public';
|
||||||
|
import { AbortError, getCombinedAbortSignal } from '../../../kibana_utils/public';
|
||||||
|
|
||||||
export interface SearchInterceptorDeps {
|
export interface SearchInterceptorDeps {
|
||||||
http: CoreSetup['http'];
|
http: CoreSetup['http'];
|
||||||
|
@ -170,7 +169,9 @@ export class SearchInterceptor {
|
||||||
...(abortSignal ? [abortSignal] : []),
|
...(abortSignal ? [abortSignal] : []),
|
||||||
];
|
];
|
||||||
|
|
||||||
const { signal: combinedSignal, cleanup: cleanupCombinedSignal } = getCombinedSignal(signals);
|
const { signal: combinedSignal, cleanup: cleanupCombinedSignal } = getCombinedAbortSignal(
|
||||||
|
signals
|
||||||
|
);
|
||||||
const cleanup = () => {
|
const cleanup = () => {
|
||||||
subscription.unsubscribe();
|
subscription.unsubscribe();
|
||||||
combinedSignal.removeEventListener('abort', cleanup);
|
combinedSignal.removeEventListener('abort', cleanup);
|
||||||
|
|
|
@ -23,10 +23,13 @@ import { ISearchSetup, ISearchStart, SearchEnhancements } from './types';
|
||||||
|
|
||||||
import { handleResponse } from './fetch';
|
import { handleResponse } from './fetch';
|
||||||
import {
|
import {
|
||||||
|
kibana,
|
||||||
|
kibanaContext,
|
||||||
|
kibanaContextFunction,
|
||||||
ISearchGeneric,
|
ISearchGeneric,
|
||||||
SearchSourceService,
|
|
||||||
SearchSourceDependencies,
|
|
||||||
ISessionService,
|
ISessionService,
|
||||||
|
SearchSourceDependencies,
|
||||||
|
SearchSourceService,
|
||||||
} from '../../common/search';
|
} from '../../common/search';
|
||||||
import { getCallMsearch } from './legacy';
|
import { getCallMsearch } from './legacy';
|
||||||
import { AggsService, AggsStartDependencies } from './aggs';
|
import { AggsService, AggsStartDependencies } from './aggs';
|
||||||
|
@ -85,6 +88,10 @@ export class SearchService implements Plugin<ISearchSetup, ISearchStart> {
|
||||||
session: this.sessionService,
|
session: this.sessionService,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
expressions.registerFunction(kibana);
|
||||||
|
expressions.registerFunction(kibanaContextFunction);
|
||||||
|
expressions.registerType(kibanaContext);
|
||||||
|
|
||||||
expressions.registerFunction(esdsl);
|
expressions.registerFunction(esdsl);
|
||||||
expressions.registerType(esRawResponse);
|
expressions.registerType(esRawResponse);
|
||||||
|
|
||||||
|
|
|
@ -206,6 +206,12 @@ export {
|
||||||
OptionedParamType,
|
OptionedParamType,
|
||||||
OptionedValueProp,
|
OptionedValueProp,
|
||||||
ParsedInterval,
|
ParsedInterval,
|
||||||
|
// expressions
|
||||||
|
ExecutionContextSearch,
|
||||||
|
ExpressionFunctionKibana,
|
||||||
|
ExpressionFunctionKibanaContext,
|
||||||
|
ExpressionValueSearchContext,
|
||||||
|
KibanaContext,
|
||||||
// search
|
// search
|
||||||
ISearchOptions,
|
ISearchOptions,
|
||||||
IEsSearchRequest,
|
IEsSearchRequest,
|
||||||
|
|
|
@ -96,7 +96,7 @@ export class DataServerPlugin
|
||||||
core.uiSettings.register(getUiSettings());
|
core.uiSettings.register(getUiSettings());
|
||||||
|
|
||||||
const searchSetup = this.searchService.setup(core, {
|
const searchSetup = this.searchService.setup(core, {
|
||||||
registerFunction: expressions.registerFunction,
|
expressions,
|
||||||
usageCollection,
|
usageCollection,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,10 @@ describe('Search service', () => {
|
||||||
it('exposes proper contract', async () => {
|
it('exposes proper contract', async () => {
|
||||||
const setup = plugin.setup(mockCoreSetup, ({
|
const setup = plugin.setup(mockCoreSetup, ({
|
||||||
packageInfo: { version: '8' },
|
packageInfo: { version: '8' },
|
||||||
|
expressions: {
|
||||||
registerFunction: jest.fn(),
|
registerFunction: jest.fn(),
|
||||||
|
registerType: jest.fn(),
|
||||||
|
},
|
||||||
} as unknown) as SearchServiceSetupDependencies);
|
} as unknown) as SearchServiceSetupDependencies);
|
||||||
expect(setup).toHaveProperty('aggs');
|
expect(setup).toHaveProperty('aggs');
|
||||||
expect(setup).toHaveProperty('registerSearchStrategy');
|
expect(setup).toHaveProperty('registerSearchStrategy');
|
||||||
|
|
|
@ -30,6 +30,7 @@ import {
|
||||||
StartServicesAccessor,
|
StartServicesAccessor,
|
||||||
} from 'src/core/server';
|
} from 'src/core/server';
|
||||||
import { first } from 'rxjs/operators';
|
import { first } from 'rxjs/operators';
|
||||||
|
import { ExpressionsServerSetup } from 'src/plugins/expressions/server';
|
||||||
import {
|
import {
|
||||||
ISearchSetup,
|
ISearchSetup,
|
||||||
ISearchStart,
|
ISearchStart,
|
||||||
|
@ -38,7 +39,7 @@ import {
|
||||||
SearchStrategyDependencies,
|
SearchStrategyDependencies,
|
||||||
} from './types';
|
} from './types';
|
||||||
|
|
||||||
import { AggsService, AggsSetupDependencies } from './aggs';
|
import { AggsService } from './aggs';
|
||||||
|
|
||||||
import { FieldFormatsStart } from '../field_formats';
|
import { FieldFormatsStart } from '../field_formats';
|
||||||
import { IndexPatternsServiceStart } from '../index_patterns';
|
import { IndexPatternsServiceStart } from '../index_patterns';
|
||||||
|
@ -50,15 +51,18 @@ import { registerUsageCollector } from './collectors/register';
|
||||||
import { usageProvider } from './collectors/usage';
|
import { usageProvider } from './collectors/usage';
|
||||||
import { searchTelemetry } from '../saved_objects';
|
import { searchTelemetry } from '../saved_objects';
|
||||||
import {
|
import {
|
||||||
IKibanaSearchRequest,
|
|
||||||
IKibanaSearchResponse,
|
|
||||||
IEsSearchRequest,
|
IEsSearchRequest,
|
||||||
IEsSearchResponse,
|
IEsSearchResponse,
|
||||||
SearchSourceDependencies,
|
IKibanaSearchRequest,
|
||||||
SearchSourceService,
|
IKibanaSearchResponse,
|
||||||
searchSourceRequiredUiSettings,
|
|
||||||
ISearchOptions,
|
|
||||||
ISearchClient,
|
ISearchClient,
|
||||||
|
ISearchOptions,
|
||||||
|
kibana,
|
||||||
|
kibanaContext,
|
||||||
|
kibanaContextFunction,
|
||||||
|
SearchSourceDependencies,
|
||||||
|
searchSourceRequiredUiSettings,
|
||||||
|
SearchSourceService,
|
||||||
} from '../../common/search';
|
} from '../../common/search';
|
||||||
import {
|
import {
|
||||||
getShardDelayBucketAgg,
|
getShardDelayBucketAgg,
|
||||||
|
@ -77,7 +81,7 @@ type StrategyMap = Record<string, ISearchStrategy<any, any>>;
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export interface SearchServiceSetupDependencies {
|
export interface SearchServiceSetupDependencies {
|
||||||
registerFunction: AggsSetupDependencies['registerFunction'];
|
expressions: ExpressionsServerSetup;
|
||||||
usageCollection?: UsageCollectionSetup;
|
usageCollection?: UsageCollectionSetup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -106,7 +110,7 @@ export class SearchService implements Plugin<ISearchSetup, ISearchStart> {
|
||||||
|
|
||||||
public setup(
|
public setup(
|
||||||
core: CoreSetup<{}, DataPluginStart>,
|
core: CoreSetup<{}, DataPluginStart>,
|
||||||
{ registerFunction, usageCollection }: SearchServiceSetupDependencies
|
{ expressions, usageCollection }: SearchServiceSetupDependencies
|
||||||
): ISearchSetup {
|
): ISearchSetup {
|
||||||
const usage = usageCollection ? usageProvider(core) : undefined;
|
const usage = usageCollection ? usageProvider(core) : undefined;
|
||||||
|
|
||||||
|
@ -137,7 +141,11 @@ export class SearchService implements Plugin<ISearchSetup, ISearchStart> {
|
||||||
registerUsageCollector(usageCollection, this.initializerContext);
|
registerUsageCollector(usageCollection, this.initializerContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
const aggs = this.aggsService.setup({ registerFunction });
|
expressions.registerFunction(kibana);
|
||||||
|
expressions.registerFunction(kibanaContextFunction);
|
||||||
|
expressions.registerType(kibanaContext);
|
||||||
|
|
||||||
|
const aggs = this.aggsService.setup({ registerFunction: expressions.registerFunction });
|
||||||
|
|
||||||
this.initializerContext.config
|
this.initializerContext.config
|
||||||
.create<ConfigSchema>()
|
.create<ConfigSchema>()
|
||||||
|
@ -146,7 +154,7 @@ export class SearchService implements Plugin<ISearchSetup, ISearchStart> {
|
||||||
.then((value) => {
|
.then((value) => {
|
||||||
if (value.search.aggs.shardDelay.enabled) {
|
if (value.search.aggs.shardDelay.enabled) {
|
||||||
aggs.types.registerBucket(SHARD_DELAY_AGG_NAME, getShardDelayBucketAgg);
|
aggs.types.registerBucket(SHARD_DELAY_AGG_NAME, getShardDelayBucketAgg);
|
||||||
registerFunction(aggShardDelay);
|
expressions.registerFunction(aggShardDelay);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
```ts
|
```ts
|
||||||
|
|
||||||
import { $Values } from '@kbn/utility-types';
|
import { $Values } from '@kbn/utility-types';
|
||||||
|
import { Adapters } from 'src/plugins/inspector/common';
|
||||||
import { ApiResponse } from '@elastic/elasticsearch';
|
import { ApiResponse } from '@elastic/elasticsearch';
|
||||||
import { Assign } from '@kbn/utility-types';
|
import { Assign } from '@kbn/utility-types';
|
||||||
import { BehaviorSubject } from 'rxjs';
|
import { BehaviorSubject } from 'rxjs';
|
||||||
|
@ -13,14 +14,18 @@ import { CoreSetup } from 'src/core/server';
|
||||||
import { CoreSetup as CoreSetup_2 } from 'kibana/server';
|
import { CoreSetup as CoreSetup_2 } from 'kibana/server';
|
||||||
import { CoreStart } from 'src/core/server';
|
import { CoreStart } from 'src/core/server';
|
||||||
import { CoreStart as CoreStart_2 } from 'kibana/server';
|
import { CoreStart as CoreStart_2 } from 'kibana/server';
|
||||||
|
import { Datatable } from 'src/plugins/expressions/common';
|
||||||
import { DatatableColumn } from 'src/plugins/expressions';
|
import { DatatableColumn } from 'src/plugins/expressions';
|
||||||
import { Duration } from 'moment';
|
import { Duration } from 'moment';
|
||||||
import { ElasticsearchClient } from 'kibana/server';
|
import { ElasticsearchClient } from 'kibana/server';
|
||||||
import { Ensure } from '@kbn/utility-types';
|
import { Ensure } from '@kbn/utility-types';
|
||||||
import { EnvironmentMode } from '@kbn/config';
|
import { EnvironmentMode } from '@kbn/config';
|
||||||
import { ErrorToastOptions } from 'src/core/public/notifications';
|
import { ErrorToastOptions } from 'src/core/public/notifications';
|
||||||
|
import { ExecutionContext } from 'src/plugins/expressions/common';
|
||||||
import { ExpressionAstFunction } from 'src/plugins/expressions/common';
|
import { ExpressionAstFunction } from 'src/plugins/expressions/common';
|
||||||
|
import { ExpressionFunctionDefinition } from 'src/plugins/expressions/common';
|
||||||
import { ExpressionsServerSetup } from 'src/plugins/expressions/server';
|
import { ExpressionsServerSetup } from 'src/plugins/expressions/server';
|
||||||
|
import { ExpressionValueBoxed } from 'src/plugins/expressions/common';
|
||||||
import { ISavedObjectsRepository } from 'kibana/server';
|
import { ISavedObjectsRepository } from 'kibana/server';
|
||||||
import { IScopedClusterClient } from 'src/core/server';
|
import { IScopedClusterClient } from 'src/core/server';
|
||||||
import { ISearchOptions as ISearchOptions_2 } from 'src/plugins/data/public';
|
import { ISearchOptions as ISearchOptions_2 } from 'src/plugins/data/public';
|
||||||
|
@ -55,7 +60,6 @@ import { ToastInputFields } from 'src/core/public/notifications';
|
||||||
import { Type } from '@kbn/config-schema';
|
import { Type } from '@kbn/config-schema';
|
||||||
import { TypeOf } from '@kbn/config-schema';
|
import { TypeOf } from '@kbn/config-schema';
|
||||||
import { Unit } from '@elastic/datemath';
|
import { Unit } from '@elastic/datemath';
|
||||||
import { UnwrapPromiseOrReturn } from '@kbn/utility-types';
|
|
||||||
|
|
||||||
// Warning: (ae-forgotten-export) The symbol "AggConfigSerialized" needs to be exported by the entry point index.d.ts
|
// Warning: (ae-forgotten-export) The symbol "AggConfigSerialized" needs to be exported by the entry point index.d.ts
|
||||||
// Warning: (ae-missing-release-tag) "AggConfigOptions" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "AggConfigOptions" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
|
@ -224,7 +228,6 @@ export enum ES_FIELD_TYPES {
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
export const ES_SEARCH_STRATEGY = "es";
|
export const ES_SEARCH_STRATEGY = "es";
|
||||||
|
|
||||||
// Warning: (ae-forgotten-export) The symbol "ExpressionFunctionDefinition" needs to be exported by the entry point index.d.ts
|
|
||||||
// Warning: (ae-forgotten-export) The symbol "Input" needs to be exported by the entry point index.d.ts
|
// Warning: (ae-forgotten-export) The symbol "Input" needs to be exported by the entry point index.d.ts
|
||||||
// Warning: (ae-forgotten-export) The symbol "Arguments" needs to be exported by the entry point index.d.ts
|
// Warning: (ae-forgotten-export) The symbol "Arguments" needs to be exported by the entry point index.d.ts
|
||||||
// Warning: (ae-forgotten-export) The symbol "Output" needs to be exported by the entry point index.d.ts
|
// Warning: (ae-forgotten-export) The symbol "Output" needs to be exported by the entry point index.d.ts
|
||||||
|
@ -285,6 +288,31 @@ export interface EsQueryConfig {
|
||||||
queryStringOptions: Record<string, any>;
|
queryStringOptions: Record<string, any>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Warning: (ae-missing-release-tag) "ExecutionContextSearch" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
|
//
|
||||||
|
// @public (undocumented)
|
||||||
|
export type ExecutionContextSearch = {
|
||||||
|
filters?: Filter[];
|
||||||
|
query?: Query | Query[];
|
||||||
|
timeRange?: TimeRange;
|
||||||
|
};
|
||||||
|
|
||||||
|
// Warning: (ae-missing-release-tag) "ExpressionFunctionKibana" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
|
//
|
||||||
|
// @public (undocumented)
|
||||||
|
export type ExpressionFunctionKibana = ExpressionFunctionDefinition<'kibana', ExpressionValueSearchContext | null, object, ExpressionValueSearchContext, ExecutionContext<Adapters, ExecutionContextSearch>>;
|
||||||
|
|
||||||
|
// Warning: (ae-forgotten-export) The symbol "Arguments" needs to be exported by the entry point index.d.ts
|
||||||
|
// Warning: (ae-missing-release-tag) "ExpressionFunctionKibanaContext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
|
//
|
||||||
|
// @public (undocumented)
|
||||||
|
export type ExpressionFunctionKibanaContext = ExpressionFunctionDefinition<'kibana_context', KibanaContext | null, Arguments_2, Promise<KibanaContext>, ExecutionContext<Adapters, ExecutionContextSearch>>;
|
||||||
|
|
||||||
|
// Warning: (ae-missing-release-tag) "ExpressionValueSearchContext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
|
//
|
||||||
|
// @public (undocumented)
|
||||||
|
export type ExpressionValueSearchContext = ExpressionValueBoxed<'kibana_context', ExecutionContextSearch>;
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "FieldDescriptor" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "FieldDescriptor" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
//
|
//
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
|
@ -779,6 +807,11 @@ export enum KBN_FIELD_TYPES {
|
||||||
UNKNOWN = "unknown"
|
UNKNOWN = "unknown"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Warning: (ae-missing-release-tag) "KibanaContext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
|
//
|
||||||
|
// @public (undocumented)
|
||||||
|
export type KibanaContext = ExpressionValueSearchContext;
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "KueryNode" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "KueryNode" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
//
|
//
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
|
@ -885,7 +918,7 @@ export class Plugin implements Plugin_2<PluginSetup, PluginStart, DataPluginSetu
|
||||||
__enhance: (enhancements: DataEnhancements) => void;
|
__enhance: (enhancements: DataEnhancements) => void;
|
||||||
search: ISearchSetup;
|
search: ISearchSetup;
|
||||||
fieldFormats: {
|
fieldFormats: {
|
||||||
register: (customFieldFormat: import("../public").FieldFormatInstanceType) => number;
|
register: (customFieldFormat: import("../common").FieldFormatInstanceType) => number;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
|
@ -894,7 +927,7 @@ export class Plugin implements Plugin_2<PluginSetup, PluginStart, DataPluginSetu
|
||||||
fieldFormatServiceFactory: (uiSettings: import("src/core/server").IUiSettingsClient) => Promise<import("../common").FieldFormatsRegistry>;
|
fieldFormatServiceFactory: (uiSettings: import("src/core/server").IUiSettingsClient) => Promise<import("../common").FieldFormatsRegistry>;
|
||||||
};
|
};
|
||||||
indexPatterns: {
|
indexPatterns: {
|
||||||
indexPatternsServiceFactory: (savedObjectsClient: Pick<import("src/core/server").SavedObjectsClient, "update" | "find" | "get" | "delete" | "errors" | "create" | "bulkCreate" | "checkConflicts" | "bulkGet" | "addToNamespaces" | "deleteFromNamespaces" | "bulkUpdate" | "removeReferencesTo">) => Promise<import("../public").IndexPatternsService>;
|
indexPatternsServiceFactory: (savedObjectsClient: Pick<import("src/core/server").SavedObjectsClient, "update" | "find" | "get" | "delete" | "errors" | "create" | "bulkCreate" | "checkConflicts" | "bulkGet" | "addToNamespaces" | "deleteFromNamespaces" | "bulkUpdate" | "removeReferencesTo">) => Promise<import("../common").IndexPatternsService>;
|
||||||
};
|
};
|
||||||
search: ISearchStart<import("./search").IEsSearchRequest, import("./search").IEsSearchResponse<any>>;
|
search: ISearchStart<import("./search").IEsSearchRequest, import("./search").IEsSearchResponse<any>>;
|
||||||
};
|
};
|
||||||
|
@ -1162,21 +1195,21 @@ export function usageProvider(core: CoreSetup_2): SearchUsage;
|
||||||
// src/plugins/data/server/index.ts:101:26 - (ae-forgotten-export) The symbol "TruncateFormat" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:101:26 - (ae-forgotten-export) The symbol "TruncateFormat" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:127:27 - (ae-forgotten-export) The symbol "isFilterable" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:127:27 - (ae-forgotten-export) The symbol "isFilterable" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:127:27 - (ae-forgotten-export) The symbol "isNestedField" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:127:27 - (ae-forgotten-export) The symbol "isNestedField" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:235:20 - (ae-forgotten-export) The symbol "getRequestInspectorStats" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:241:20 - (ae-forgotten-export) The symbol "getRequestInspectorStats" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:235:20 - (ae-forgotten-export) The symbol "getResponseInspectorStats" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:241:20 - (ae-forgotten-export) The symbol "getResponseInspectorStats" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:235:20 - (ae-forgotten-export) The symbol "tabifyAggResponse" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:241:20 - (ae-forgotten-export) The symbol "tabifyAggResponse" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:235:20 - (ae-forgotten-export) The symbol "tabifyGetColumns" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:241:20 - (ae-forgotten-export) The symbol "tabifyGetColumns" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:250:5 - (ae-forgotten-export) The symbol "getTotalLoaded" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:256:5 - (ae-forgotten-export) The symbol "getTotalLoaded" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:251:5 - (ae-forgotten-export) The symbol "toSnakeCase" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:257:5 - (ae-forgotten-export) The symbol "toSnakeCase" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:255:1 - (ae-forgotten-export) The symbol "CidrMask" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:261:1 - (ae-forgotten-export) The symbol "CidrMask" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:256:1 - (ae-forgotten-export) The symbol "dateHistogramInterval" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:262:1 - (ae-forgotten-export) The symbol "dateHistogramInterval" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:265:1 - (ae-forgotten-export) The symbol "InvalidEsCalendarIntervalError" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:271:1 - (ae-forgotten-export) The symbol "InvalidEsCalendarIntervalError" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:266:1 - (ae-forgotten-export) The symbol "InvalidEsIntervalFormatError" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:272:1 - (ae-forgotten-export) The symbol "InvalidEsIntervalFormatError" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:267:1 - (ae-forgotten-export) The symbol "Ipv4Address" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:273:1 - (ae-forgotten-export) The symbol "Ipv4Address" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:271:1 - (ae-forgotten-export) The symbol "isValidEsInterval" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:277:1 - (ae-forgotten-export) The symbol "isValidEsInterval" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:272:1 - (ae-forgotten-export) The symbol "isValidInterval" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:278:1 - (ae-forgotten-export) The symbol "isValidInterval" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:276:1 - (ae-forgotten-export) The symbol "propFilter" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:282:1 - (ae-forgotten-export) The symbol "propFilter" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:279:1 - (ae-forgotten-export) The symbol "toAbsoluteDates" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:285:1 - (ae-forgotten-export) The symbol "toAbsoluteDates" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index_patterns/index_patterns_service.ts:50:14 - (ae-forgotten-export) The symbol "IndexPatternsService" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index_patterns/index_patterns_service.ts:50:14 - (ae-forgotten-export) The symbol "IndexPatternsService" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/plugin.ts:88:66 - (ae-forgotten-export) The symbol "DataEnhancements" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/plugin.ts:88:66 - (ae-forgotten-export) The symbol "DataEnhancements" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/search/types.ts:104:5 - (ae-forgotten-export) The symbol "ISearchStartSearchSource" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/search/types.ts:104:5 - (ae-forgotten-export) The symbol "ISearchStartSearchSource" needs to be exported by the entry point index.d.ts
|
||||||
|
|
|
@ -22,8 +22,7 @@ import { keys, last, mapValues, reduce, zipObject } from 'lodash';
|
||||||
import { Executor } from '../executor';
|
import { Executor } from '../executor';
|
||||||
import { createExecutionContainer, ExecutionContainer } from './container';
|
import { createExecutionContainer, ExecutionContainer } from './container';
|
||||||
import { createError } from '../util';
|
import { createError } from '../util';
|
||||||
import { Defer, now } from '../../../kibana_utils/common';
|
import { abortSignalToPromise, Defer, now } from '../../../kibana_utils/common';
|
||||||
import { toPromise } from '../../../data/common/utils/abort_utils';
|
|
||||||
import { RequestAdapter, DataAdapter, Adapters } from '../../../inspector/common';
|
import { RequestAdapter, DataAdapter, Adapters } from '../../../inspector/common';
|
||||||
import { isExpressionValueError, ExpressionValueError } from '../expression_types/specs/error';
|
import { isExpressionValueError, ExpressionValueError } from '../expression_types/specs/error';
|
||||||
import {
|
import {
|
||||||
|
@ -93,7 +92,7 @@ export class Execution<
|
||||||
/**
|
/**
|
||||||
* Promise that rejects if/when abort controller sends "abort" signal.
|
* Promise that rejects if/when abort controller sends "abort" signal.
|
||||||
*/
|
*/
|
||||||
private readonly abortRejection = toPromise(this.abortController.signal);
|
private readonly abortRejection = abortSignalToPromise(this.abortController.signal);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Races a given promise against the "abort" event of `abortController`.
|
* Races a given promise against the "abort" event of `abortController`.
|
||||||
|
|
|
@ -17,16 +17,18 @@
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ExpressionType } from '../expression_types';
|
import { ExpressionType, SerializableState } from '../expression_types';
|
||||||
import { Adapters, DataAdapter, RequestAdapter } from '../../../inspector/common';
|
import { Adapters, DataAdapter, RequestAdapter } from '../../../inspector/common';
|
||||||
import { TimeRange, Query, Filter } from '../../../data/common';
|
|
||||||
import { SavedObject, SavedObjectAttributes } from '../../../../core/public';
|
import { SavedObject, SavedObjectAttributes } from '../../../../core/public';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* `ExecutionContext` is an object available to all functions during a single execution;
|
* `ExecutionContext` is an object available to all functions during a single execution;
|
||||||
* it provides various methods to perform side-effects.
|
* it provides various methods to perform side-effects.
|
||||||
*/
|
*/
|
||||||
export interface ExecutionContext<InspectorAdapters extends Adapters = Adapters> {
|
export interface ExecutionContext<
|
||||||
|
InspectorAdapters extends Adapters = Adapters,
|
||||||
|
ExecutionContextSearch extends SerializableState = SerializableState
|
||||||
|
> {
|
||||||
/**
|
/**
|
||||||
* Get search context of the expression.
|
* Get search context of the expression.
|
||||||
*/
|
*/
|
||||||
|
@ -79,9 +81,3 @@ export interface DefaultInspectorAdapters extends Adapters {
|
||||||
requests: RequestAdapter;
|
requests: RequestAdapter;
|
||||||
data: DataAdapter;
|
data: DataAdapter;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ExecutionContextSearch {
|
|
||||||
filters?: Filter[];
|
|
||||||
query?: Query | Query[];
|
|
||||||
timeRange?: TimeRange;
|
|
||||||
}
|
|
||||||
|
|
|
@ -19,8 +19,6 @@
|
||||||
|
|
||||||
import { clog } from './clog';
|
import { clog } from './clog';
|
||||||
import { font } from './font';
|
import { font } from './font';
|
||||||
import { kibana } from './kibana';
|
|
||||||
import { kibanaContextFunction } from './kibana_context';
|
|
||||||
import { variableSet } from './var_set';
|
import { variableSet } from './var_set';
|
||||||
import { variable } from './var';
|
import { variable } from './var';
|
||||||
import { AnyExpressionFunctionDefinition } from '../types';
|
import { AnyExpressionFunctionDefinition } from '../types';
|
||||||
|
@ -32,8 +30,6 @@ import { movingAverage } from './moving_average';
|
||||||
export const functionSpecs: AnyExpressionFunctionDefinition[] = [
|
export const functionSpecs: AnyExpressionFunctionDefinition[] = [
|
||||||
clog,
|
clog,
|
||||||
font,
|
font,
|
||||||
kibana,
|
|
||||||
kibanaContextFunction,
|
|
||||||
variableSet,
|
variableSet,
|
||||||
variable,
|
variable,
|
||||||
theme,
|
theme,
|
||||||
|
@ -44,8 +40,6 @@ export const functionSpecs: AnyExpressionFunctionDefinition[] = [
|
||||||
|
|
||||||
export * from './clog';
|
export * from './clog';
|
||||||
export * from './font';
|
export * from './font';
|
||||||
export * from './kibana';
|
|
||||||
export * from './kibana_context';
|
|
||||||
export * from './var_set';
|
export * from './var_set';
|
||||||
export * from './var';
|
export * from './var';
|
||||||
export * from './theme';
|
export * from './theme';
|
||||||
|
|
|
@ -20,12 +20,11 @@
|
||||||
import { functionWrapper } from './utils';
|
import { functionWrapper } from './utils';
|
||||||
import { variable } from '../var';
|
import { variable } from '../var';
|
||||||
import { ExecutionContext } from '../../../execution/types';
|
import { ExecutionContext } from '../../../execution/types';
|
||||||
import { KibanaContext } from '../../../expression_types';
|
|
||||||
|
|
||||||
describe('expression_functions', () => {
|
describe('expression_functions', () => {
|
||||||
describe('var', () => {
|
describe('var', () => {
|
||||||
const fn = functionWrapper(variable);
|
const fn = functionWrapper(variable);
|
||||||
let input: Partial<KibanaContext>;
|
let input: Partial<ReturnType<ExecutionContext['getSearchContext']>>;
|
||||||
let context: ExecutionContext;
|
let context: ExecutionContext;
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|
|
@ -20,12 +20,11 @@
|
||||||
import { functionWrapper } from './utils';
|
import { functionWrapper } from './utils';
|
||||||
import { variableSet } from '../var_set';
|
import { variableSet } from '../var_set';
|
||||||
import { ExecutionContext } from '../../../execution/types';
|
import { ExecutionContext } from '../../../execution/types';
|
||||||
import { KibanaContext } from '../../../expression_types';
|
|
||||||
|
|
||||||
describe('expression_functions', () => {
|
describe('expression_functions', () => {
|
||||||
describe('var_set', () => {
|
describe('var_set', () => {
|
||||||
const fn = functionWrapper(variableSet);
|
const fn = functionWrapper(variableSet);
|
||||||
let input: Partial<KibanaContext>;
|
let input: Partial<ReturnType<ExecutionContext['getSearchContext']>>;
|
||||||
let context: ExecutionContext;
|
let context: ExecutionContext;
|
||||||
let variables: Record<string, any>;
|
let variables: Record<string, any>;
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,6 @@ import { ExecutionContext } from '../execution/types';
|
||||||
import {
|
import {
|
||||||
ExpressionFunctionClog,
|
ExpressionFunctionClog,
|
||||||
ExpressionFunctionFont,
|
ExpressionFunctionFont,
|
||||||
ExpressionFunctionKibanaContext,
|
|
||||||
ExpressionFunctionKibana,
|
|
||||||
ExpressionFunctionVarSet,
|
ExpressionFunctionVarSet,
|
||||||
ExpressionFunctionVar,
|
ExpressionFunctionVar,
|
||||||
ExpressionFunctionTheme,
|
ExpressionFunctionTheme,
|
||||||
|
@ -129,8 +127,6 @@ export type AnyExpressionFunctionDefinition = ExpressionFunctionDefinition<
|
||||||
export interface ExpressionFunctionDefinitions {
|
export interface ExpressionFunctionDefinitions {
|
||||||
clog: ExpressionFunctionClog;
|
clog: ExpressionFunctionClog;
|
||||||
font: ExpressionFunctionFont;
|
font: ExpressionFunctionFont;
|
||||||
kibana_context: ExpressionFunctionKibanaContext;
|
|
||||||
kibana: ExpressionFunctionKibana;
|
|
||||||
var_set: ExpressionFunctionVarSet;
|
var_set: ExpressionFunctionVarSet;
|
||||||
var: ExpressionFunctionVar;
|
var: ExpressionFunctionVar;
|
||||||
theme: ExpressionFunctionTheme;
|
theme: ExpressionFunctionTheme;
|
||||||
|
|
|
@ -22,7 +22,6 @@ import { datatable } from './datatable';
|
||||||
import { error } from './error';
|
import { error } from './error';
|
||||||
import { filter } from './filter';
|
import { filter } from './filter';
|
||||||
import { image } from './image';
|
import { image } from './image';
|
||||||
import { kibanaContext } from './kibana_context';
|
|
||||||
import { nullType } from './null';
|
import { nullType } from './null';
|
||||||
import { num } from './num';
|
import { num } from './num';
|
||||||
import { number } from './number';
|
import { number } from './number';
|
||||||
|
@ -40,7 +39,6 @@ export const typeSpecs: AnyExpressionTypeDefinition[] = [
|
||||||
error,
|
error,
|
||||||
filter,
|
filter,
|
||||||
image,
|
image,
|
||||||
kibanaContext,
|
|
||||||
nullType,
|
nullType,
|
||||||
num,
|
num,
|
||||||
number,
|
number,
|
||||||
|
@ -57,7 +55,6 @@ export * from './datatable';
|
||||||
export * from './error';
|
export * from './error';
|
||||||
export * from './filter';
|
export * from './filter';
|
||||||
export * from './image';
|
export * from './image';
|
||||||
export * from './kibana_context';
|
|
||||||
export * from './null';
|
export * from './null';
|
||||||
export * from './num';
|
export * from './num';
|
||||||
export * from './number';
|
export * from './number';
|
||||||
|
|
|
@ -26,7 +26,6 @@ import { AnyExpressionFunctionDefinition } from '../expression_functions';
|
||||||
import { SavedObjectReference } from '../../../../core/types';
|
import { SavedObjectReference } from '../../../../core/types';
|
||||||
import { PersistableStateService, SerializableState } from '../../../kibana_utils/common';
|
import { PersistableStateService, SerializableState } from '../../../kibana_utils/common';
|
||||||
import { Adapters } from '../../../inspector/common/adapters';
|
import { Adapters } from '../../../inspector/common/adapters';
|
||||||
import { ExecutionContextSearch } from '../execution';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The public contract that `ExpressionsService` provides to other plugins
|
* The public contract that `ExpressionsService` provides to other plugins
|
||||||
|
@ -48,7 +47,7 @@ export type ExpressionsServiceSetup = Pick<
|
||||||
>;
|
>;
|
||||||
|
|
||||||
export interface ExpressionExecutionParams {
|
export interface ExpressionExecutionParams {
|
||||||
searchContext?: ExecutionContextSearch;
|
searchContext?: SerializableState;
|
||||||
|
|
||||||
variables?: Record<string, any>;
|
variables?: Record<string, any>;
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
"extraPublicDirs": ["common", "common/fonts"],
|
"extraPublicDirs": ["common", "common/fonts"],
|
||||||
"requiredBundles": [
|
"requiredBundles": [
|
||||||
"kibanaUtils",
|
"kibanaUtils",
|
||||||
"inspector",
|
"inspector"
|
||||||
"data"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,7 +66,6 @@ export {
|
||||||
ExpressionFunction,
|
ExpressionFunction,
|
||||||
ExpressionFunctionDefinition,
|
ExpressionFunctionDefinition,
|
||||||
ExpressionFunctionDefinitions,
|
ExpressionFunctionDefinitions,
|
||||||
ExpressionFunctionKibana,
|
|
||||||
ExpressionFunctionParameter,
|
ExpressionFunctionParameter,
|
||||||
ExpressionImage,
|
ExpressionImage,
|
||||||
ExpressionRenderDefinition,
|
ExpressionRenderDefinition,
|
||||||
|
@ -81,7 +80,6 @@ export {
|
||||||
ExpressionValueError,
|
ExpressionValueError,
|
||||||
ExpressionValueNum,
|
ExpressionValueNum,
|
||||||
ExpressionValueRender,
|
ExpressionValueRender,
|
||||||
ExpressionValueSearchContext,
|
|
||||||
ExpressionValueUnboxed,
|
ExpressionValueUnboxed,
|
||||||
ExpressionValueFilter,
|
ExpressionValueFilter,
|
||||||
Font,
|
Font,
|
||||||
|
@ -96,8 +94,6 @@ export {
|
||||||
InterpreterErrorType,
|
InterpreterErrorType,
|
||||||
IRegistry,
|
IRegistry,
|
||||||
isExpressionAstBuilder,
|
isExpressionAstBuilder,
|
||||||
KIBANA_CONTEXT_NAME,
|
|
||||||
KibanaContext,
|
|
||||||
KnownTypeToString,
|
KnownTypeToString,
|
||||||
Overflow,
|
Overflow,
|
||||||
parse,
|
parse,
|
||||||
|
|
|
@ -50,14 +50,6 @@ describe('ExpressionsPublicPlugin', () => {
|
||||||
const bar = await setup.run('var_set name="foo" value="bar" | var name="foo"', null);
|
const bar = await setup.run('var_set name="foo" value="bar" | var name="foo"', null);
|
||||||
expect(bar).toBe('bar');
|
expect(bar).toBe('bar');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('kibana_context function is available', async () => {
|
|
||||||
const { setup } = await expressionsPluginMock.createPlugin();
|
|
||||||
const result = await setup.run('kibana_context', null);
|
|
||||||
expect(result).toMatchObject({
|
|
||||||
type: 'kibana_context',
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -81,15 +73,6 @@ describe('ExpressionsPublicPlugin', () => {
|
||||||
}
|
}
|
||||||
`);
|
`);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('"kibana" function return value of type "kibana_context"', async () => {
|
|
||||||
const { doStart } = await expressionsPluginMock.createPlugin();
|
|
||||||
const start = await doStart();
|
|
||||||
const execution = start.execute('kibana', null);
|
|
||||||
const result = await execution.getData();
|
|
||||||
|
|
||||||
expect((result as any).type).toBe('kibana_context');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -130,15 +130,15 @@ export class Execution<Input = unknown, Output = unknown, InspectorAdapters exte
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
export type ExecutionContainer<Output = ExpressionValue> = StateContainer<ExecutionState<Output>, ExecutionPureTransitions<Output>>;
|
export type ExecutionContainer<Output = ExpressionValue> = StateContainer<ExecutionState<Output>, ExecutionPureTransitions<Output>>;
|
||||||
|
|
||||||
|
// Warning: (ae-forgotten-export) The symbol "SerializableState" needs to be exported by the entry point index.d.ts
|
||||||
// Warning: (ae-missing-release-tag) "ExecutionContext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "ExecutionContext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
//
|
//
|
||||||
// @public
|
// @public
|
||||||
export interface ExecutionContext<InspectorAdapters extends Adapters = Adapters> {
|
export interface ExecutionContext<InspectorAdapters extends Adapters = Adapters, ExecutionContextSearch extends SerializableState_2 = SerializableState_2> {
|
||||||
abortSignal: AbortSignal;
|
abortSignal: AbortSignal;
|
||||||
// Warning: (ae-forgotten-export) The symbol "SavedObjectAttributes" needs to be exported by the entry point index.d.ts
|
// Warning: (ae-forgotten-export) The symbol "SavedObjectAttributes" needs to be exported by the entry point index.d.ts
|
||||||
// Warning: (ae-forgotten-export) The symbol "SavedObject" needs to be exported by the entry point index.d.ts
|
// Warning: (ae-forgotten-export) The symbol "SavedObject" needs to be exported by the entry point index.d.ts
|
||||||
getSavedObject?: <T extends SavedObjectAttributes = SavedObjectAttributes>(type: string, id: string) => Promise<SavedObject<T>>;
|
getSavedObject?: <T extends SavedObjectAttributes = SavedObjectAttributes>(type: string, id: string) => Promise<SavedObject<T>>;
|
||||||
// Warning: (ae-forgotten-export) The symbol "ExecutionContextSearch" needs to be exported by the entry point index.d.ts
|
|
||||||
getSearchContext: () => ExecutionContextSearch;
|
getSearchContext: () => ExecutionContextSearch;
|
||||||
getSearchSessionId: () => string | undefined;
|
getSearchSessionId: () => string | undefined;
|
||||||
inspectorAdapters: InspectorAdapters;
|
inspectorAdapters: InspectorAdapters;
|
||||||
|
@ -396,12 +396,6 @@ export interface ExpressionFunctionDefinitions {
|
||||||
//
|
//
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
font: ExpressionFunctionFont;
|
font: ExpressionFunctionFont;
|
||||||
// (undocumented)
|
|
||||||
kibana: ExpressionFunctionKibana;
|
|
||||||
// Warning: (ae-forgotten-export) The symbol "ExpressionFunctionKibanaContext" needs to be exported by the entry point index.d.ts
|
|
||||||
//
|
|
||||||
// (undocumented)
|
|
||||||
kibana_context: ExpressionFunctionKibanaContext;
|
|
||||||
// Warning: (ae-forgotten-export) The symbol "ExpressionFunctionMovingAverage" needs to be exported by the entry point index.d.ts
|
// Warning: (ae-forgotten-export) The symbol "ExpressionFunctionMovingAverage" needs to be exported by the entry point index.d.ts
|
||||||
//
|
//
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
|
@ -420,11 +414,6 @@ export interface ExpressionFunctionDefinitions {
|
||||||
var_set: ExpressionFunctionVarSet;
|
var_set: ExpressionFunctionVarSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "ExpressionFunctionKibana" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
||||||
//
|
|
||||||
// @public (undocumented)
|
|
||||||
export type ExpressionFunctionKibana = ExpressionFunctionDefinition<'kibana', ExpressionValueSearchContext | null, object, ExpressionValueSearchContext>;
|
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "ExpressionFunctionParameter" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "ExpressionFunctionParameter" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
//
|
//
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
|
@ -789,11 +778,6 @@ export { ExpressionValueRender }
|
||||||
|
|
||||||
export { ExpressionValueRender as Render }
|
export { ExpressionValueRender as Render }
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "ExpressionValueSearchContext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
||||||
//
|
|
||||||
// @public (undocumented)
|
|
||||||
export type ExpressionValueSearchContext = ExpressionValueBoxed<'kibana_context', ExecutionContextSearch>;
|
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "ExpressionValueUnboxed" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "ExpressionValueUnboxed" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
//
|
//
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
|
@ -908,7 +892,7 @@ export interface IExpressionLoaderParams {
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
onRenderError?: RenderErrorHandlerFnType;
|
onRenderError?: RenderErrorHandlerFnType;
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
searchContext?: ExecutionContextSearch;
|
searchContext?: SerializableState_2;
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
searchSessionId?: string;
|
searchSessionId?: string;
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
|
@ -956,16 +940,6 @@ export interface IRegistry<T> {
|
||||||
// @public
|
// @public
|
||||||
export function isExpressionAstBuilder(val: any): val is ExpressionAstExpressionBuilder;
|
export function isExpressionAstBuilder(val: any): val is ExpressionAstExpressionBuilder;
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "KIBANA_CONTEXT_NAME" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
||||||
//
|
|
||||||
// @public (undocumented)
|
|
||||||
export type KIBANA_CONTEXT_NAME = 'kibana_context';
|
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "KibanaContext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
||||||
//
|
|
||||||
// @public (undocumented)
|
|
||||||
export type KibanaContext = ExpressionValueSearchContext;
|
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "KnownTypeToString" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "KnownTypeToString" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
//
|
//
|
||||||
// @public
|
// @public
|
||||||
|
|
|
@ -21,8 +21,8 @@ import { Adapters } from '../../../inspector/public';
|
||||||
import {
|
import {
|
||||||
IInterpreterRenderHandlers,
|
IInterpreterRenderHandlers,
|
||||||
ExpressionValue,
|
ExpressionValue,
|
||||||
ExecutionContextSearch,
|
|
||||||
ExpressionsService,
|
ExpressionsService,
|
||||||
|
SerializableState,
|
||||||
} from '../../common';
|
} from '../../common';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -42,7 +42,7 @@ export interface ExpressionInterpreter {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IExpressionLoaderParams {
|
export interface IExpressionLoaderParams {
|
||||||
searchContext?: ExecutionContextSearch;
|
searchContext?: SerializableState;
|
||||||
context?: ExpressionValue;
|
context?: ExpressionValue;
|
||||||
variables?: Record<string, any>;
|
variables?: Record<string, any>;
|
||||||
// Enables debug tracking on each expression in the AST
|
// Enables debug tracking on each expression in the AST
|
||||||
|
|
|
@ -57,7 +57,6 @@ export {
|
||||||
ExpressionFunction,
|
ExpressionFunction,
|
||||||
ExpressionFunctionDefinition,
|
ExpressionFunctionDefinition,
|
||||||
ExpressionFunctionDefinitions,
|
ExpressionFunctionDefinitions,
|
||||||
ExpressionFunctionKibana,
|
|
||||||
ExpressionFunctionParameter,
|
ExpressionFunctionParameter,
|
||||||
ExpressionImage,
|
ExpressionImage,
|
||||||
ExpressionRenderDefinition,
|
ExpressionRenderDefinition,
|
||||||
|
@ -72,7 +71,6 @@ export {
|
||||||
ExpressionValueError,
|
ExpressionValueError,
|
||||||
ExpressionValueNum,
|
ExpressionValueNum,
|
||||||
ExpressionValueRender,
|
ExpressionValueRender,
|
||||||
ExpressionValueSearchContext,
|
|
||||||
ExpressionValueUnboxed,
|
ExpressionValueUnboxed,
|
||||||
ExpressionValueFilter,
|
ExpressionValueFilter,
|
||||||
Font,
|
Font,
|
||||||
|
@ -87,8 +85,6 @@ export {
|
||||||
InterpreterErrorType,
|
InterpreterErrorType,
|
||||||
IRegistry,
|
IRegistry,
|
||||||
isExpressionAstBuilder,
|
isExpressionAstBuilder,
|
||||||
KIBANA_CONTEXT_NAME,
|
|
||||||
KibanaContext,
|
|
||||||
KnownTypeToString,
|
KnownTypeToString,
|
||||||
Overflow,
|
Overflow,
|
||||||
parse,
|
parse,
|
||||||
|
|
|
@ -128,15 +128,15 @@ export class Execution<Input = unknown, Output = unknown, InspectorAdapters exte
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
export type ExecutionContainer<Output = ExpressionValue> = StateContainer<ExecutionState<Output>, ExecutionPureTransitions<Output>>;
|
export type ExecutionContainer<Output = ExpressionValue> = StateContainer<ExecutionState<Output>, ExecutionPureTransitions<Output>>;
|
||||||
|
|
||||||
|
// Warning: (ae-forgotten-export) The symbol "SerializableState" needs to be exported by the entry point index.d.ts
|
||||||
// Warning: (ae-missing-release-tag) "ExecutionContext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "ExecutionContext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
//
|
//
|
||||||
// @public
|
// @public
|
||||||
export interface ExecutionContext<InspectorAdapters extends Adapters = Adapters> {
|
export interface ExecutionContext<InspectorAdapters extends Adapters = Adapters, ExecutionContextSearch extends SerializableState_2 = SerializableState_2> {
|
||||||
abortSignal: AbortSignal;
|
abortSignal: AbortSignal;
|
||||||
// Warning: (ae-forgotten-export) The symbol "SavedObjectAttributes" needs to be exported by the entry point index.d.ts
|
// Warning: (ae-forgotten-export) The symbol "SavedObjectAttributes" needs to be exported by the entry point index.d.ts
|
||||||
// Warning: (ae-forgotten-export) The symbol "SavedObject" needs to be exported by the entry point index.d.ts
|
// Warning: (ae-forgotten-export) The symbol "SavedObject" needs to be exported by the entry point index.d.ts
|
||||||
getSavedObject?: <T extends SavedObjectAttributes = SavedObjectAttributes>(type: string, id: string) => Promise<SavedObject<T>>;
|
getSavedObject?: <T extends SavedObjectAttributes = SavedObjectAttributes>(type: string, id: string) => Promise<SavedObject<T>>;
|
||||||
// Warning: (ae-forgotten-export) The symbol "ExecutionContextSearch" needs to be exported by the entry point index.d.ts
|
|
||||||
getSearchContext: () => ExecutionContextSearch;
|
getSearchContext: () => ExecutionContextSearch;
|
||||||
getSearchSessionId: () => string | undefined;
|
getSearchSessionId: () => string | undefined;
|
||||||
inspectorAdapters: InspectorAdapters;
|
inspectorAdapters: InspectorAdapters;
|
||||||
|
@ -368,12 +368,6 @@ export interface ExpressionFunctionDefinitions {
|
||||||
//
|
//
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
font: ExpressionFunctionFont;
|
font: ExpressionFunctionFont;
|
||||||
// (undocumented)
|
|
||||||
kibana: ExpressionFunctionKibana;
|
|
||||||
// Warning: (ae-forgotten-export) The symbol "ExpressionFunctionKibanaContext" needs to be exported by the entry point index.d.ts
|
|
||||||
//
|
|
||||||
// (undocumented)
|
|
||||||
kibana_context: ExpressionFunctionKibanaContext;
|
|
||||||
// Warning: (ae-forgotten-export) The symbol "ExpressionFunctionMovingAverage" needs to be exported by the entry point index.d.ts
|
// Warning: (ae-forgotten-export) The symbol "ExpressionFunctionMovingAverage" needs to be exported by the entry point index.d.ts
|
||||||
//
|
//
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
|
@ -392,11 +386,6 @@ export interface ExpressionFunctionDefinitions {
|
||||||
var_set: ExpressionFunctionVarSet;
|
var_set: ExpressionFunctionVarSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "ExpressionFunctionKibana" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
||||||
//
|
|
||||||
// @public (undocumented)
|
|
||||||
export type ExpressionFunctionKibana = ExpressionFunctionDefinition<'kibana', ExpressionValueSearchContext | null, object, ExpressionValueSearchContext>;
|
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "ExpressionFunctionParameter" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "ExpressionFunctionParameter" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
//
|
//
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
|
@ -640,11 +629,6 @@ export { ExpressionValueRender }
|
||||||
|
|
||||||
export { ExpressionValueRender as Render }
|
export { ExpressionValueRender as Render }
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "ExpressionValueSearchContext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
||||||
//
|
|
||||||
// @public (undocumented)
|
|
||||||
export type ExpressionValueSearchContext = ExpressionValueBoxed<'kibana_context', ExecutionContextSearch>;
|
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "ExpressionValueUnboxed" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "ExpressionValueUnboxed" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
//
|
//
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
|
@ -777,16 +761,6 @@ export interface IRegistry<T> {
|
||||||
// @public
|
// @public
|
||||||
export function isExpressionAstBuilder(val: any): val is ExpressionAstExpressionBuilder;
|
export function isExpressionAstBuilder(val: any): val is ExpressionAstExpressionBuilder;
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "KIBANA_CONTEXT_NAME" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
||||||
//
|
|
||||||
// @public (undocumented)
|
|
||||||
export type KIBANA_CONTEXT_NAME = 'kibana_context';
|
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "KibanaContext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
||||||
//
|
|
||||||
// @public (undocumented)
|
|
||||||
export type KibanaContext = ExpressionValueSearchContext;
|
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "KnownTypeToString" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "KnownTypeToString" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
//
|
//
|
||||||
// @public
|
// @public
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { AbortError, toPromise, getCombinedSignal } from './abort_utils';
|
import { AbortError, abortSignalToPromise, getCombinedAbortSignal } from './abort_utils';
|
||||||
|
|
||||||
jest.useFakeTimers();
|
jest.useFakeTimers();
|
||||||
|
|
||||||
|
@ -37,11 +37,11 @@ describe('AbortUtils', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('toPromise', () => {
|
describe('abortSignalToPromise', () => {
|
||||||
describe('rejects', () => {
|
describe('rejects', () => {
|
||||||
test('should not reject if the signal does not abort', async () => {
|
test('should not reject if the signal does not abort', async () => {
|
||||||
const controller = new AbortController();
|
const controller = new AbortController();
|
||||||
const promise = toPromise(controller.signal).promise;
|
const promise = abortSignalToPromise(controller.signal).promise;
|
||||||
const whenRejected = jest.fn();
|
const whenRejected = jest.fn();
|
||||||
promise.catch(whenRejected);
|
promise.catch(whenRejected);
|
||||||
await flushPromises();
|
await flushPromises();
|
||||||
|
@ -50,7 +50,7 @@ describe('AbortUtils', () => {
|
||||||
|
|
||||||
test('should reject if the signal does abort', async () => {
|
test('should reject if the signal does abort', async () => {
|
||||||
const controller = new AbortController();
|
const controller = new AbortController();
|
||||||
const promise = toPromise(controller.signal).promise;
|
const promise = abortSignalToPromise(controller.signal).promise;
|
||||||
const whenRejected = jest.fn();
|
const whenRejected = jest.fn();
|
||||||
promise.catch(whenRejected);
|
promise.catch(whenRejected);
|
||||||
controller.abort();
|
controller.abort();
|
||||||
|
@ -61,13 +61,13 @@ describe('AbortUtils', () => {
|
||||||
|
|
||||||
test('should expose cleanup handler', () => {
|
test('should expose cleanup handler', () => {
|
||||||
const controller = new AbortController();
|
const controller = new AbortController();
|
||||||
const promise = toPromise(controller.signal);
|
const promise = abortSignalToPromise(controller.signal);
|
||||||
expect(promise.cleanup).toBeDefined();
|
expect(promise.cleanup).toBeDefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('calling clean up handler prevents rejects', async () => {
|
test('calling clean up handler prevents rejects', async () => {
|
||||||
const controller = new AbortController();
|
const controller = new AbortController();
|
||||||
const { promise, cleanup } = toPromise(controller.signal);
|
const { promise, cleanup } = abortSignalToPromise(controller.signal);
|
||||||
const whenRejected = jest.fn();
|
const whenRejected = jest.fn();
|
||||||
promise.catch(whenRejected);
|
promise.catch(whenRejected);
|
||||||
cleanup();
|
cleanup();
|
||||||
|
@ -78,9 +78,9 @@ describe('AbortUtils', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('getCombinedSignal', () => {
|
describe('getCombinedAbortSignal', () => {
|
||||||
test('should return an AbortSignal', () => {
|
test('should return an AbortSignal', () => {
|
||||||
const signal = getCombinedSignal([]).signal;
|
const signal = getCombinedAbortSignal([]).signal;
|
||||||
expect(signal).toBeInstanceOf(AbortSignal);
|
expect(signal).toBeInstanceOf(AbortSignal);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ describe('AbortUtils', () => {
|
||||||
const controller2 = new AbortController();
|
const controller2 = new AbortController();
|
||||||
setTimeout(() => controller1.abort(), 2000);
|
setTimeout(() => controller1.abort(), 2000);
|
||||||
setTimeout(() => controller2.abort(), 1000);
|
setTimeout(() => controller2.abort(), 1000);
|
||||||
const signal = getCombinedSignal([controller1.signal, controller2.signal]).signal;
|
const signal = getCombinedAbortSignal([controller1.signal, controller2.signal]).signal;
|
||||||
expect(signal.aborted).toBe(false);
|
expect(signal.aborted).toBe(false);
|
||||||
jest.advanceTimersByTime(500);
|
jest.advanceTimersByTime(500);
|
||||||
await flushPromises();
|
await flushPromises();
|
||||||
|
@ -101,7 +101,7 @@ describe('AbortUtils', () => {
|
||||||
const controller2 = new AbortController();
|
const controller2 = new AbortController();
|
||||||
setTimeout(() => controller1.abort(), 2000);
|
setTimeout(() => controller1.abort(), 2000);
|
||||||
setTimeout(() => controller2.abort(), 1000);
|
setTimeout(() => controller2.abort(), 1000);
|
||||||
const signal = getCombinedSignal([controller1.signal, controller2.signal]).signal;
|
const signal = getCombinedAbortSignal([controller1.signal, controller2.signal]).signal;
|
||||||
expect(signal.aborted).toBe(false);
|
expect(signal.aborted).toBe(false);
|
||||||
jest.advanceTimersByTime(1000);
|
jest.advanceTimersByTime(1000);
|
||||||
await flushPromises();
|
await flushPromises();
|
||||||
|
@ -112,7 +112,7 @@ describe('AbortUtils', () => {
|
||||||
const controller1 = new AbortController();
|
const controller1 = new AbortController();
|
||||||
const controller2 = new AbortController();
|
const controller2 = new AbortController();
|
||||||
controller1.abort();
|
controller1.abort();
|
||||||
const signal = getCombinedSignal([controller1.signal, controller2.signal]).signal;
|
const signal = getCombinedAbortSignal([controller1.signal, controller2.signal]).signal;
|
||||||
expect(signal.aborted).toBe(true);
|
expect(signal.aborted).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ describe('AbortUtils', () => {
|
||||||
const controller1 = createMockController();
|
const controller1 = createMockController();
|
||||||
const controller2 = createMockController();
|
const controller2 = createMockController();
|
||||||
|
|
||||||
const { cleanup } = getCombinedSignal([
|
const { cleanup } = getCombinedAbortSignal([
|
||||||
controller1.controller.signal,
|
controller1.controller.signal,
|
||||||
controller2.controller.signal,
|
controller2.controller.signal,
|
||||||
]);
|
]);
|
||||||
|
@ -150,7 +150,7 @@ describe('AbortUtils', () => {
|
||||||
const controller1 = createMockController();
|
const controller1 = createMockController();
|
||||||
const controller2 = createMockController();
|
const controller2 = createMockController();
|
||||||
|
|
||||||
getCombinedSignal([controller1.controller.signal, controller2.controller.signal]);
|
getCombinedAbortSignal([controller1.controller.signal, controller2.controller.signal]);
|
||||||
|
|
||||||
expect(controller1.getTotalListeners()).toBe(1);
|
expect(controller1.getTotalListeners()).toBe(1);
|
||||||
expect(controller2.getTotalListeners()).toBe(1);
|
expect(controller2.getTotalListeners()).toBe(1);
|
|
@ -36,7 +36,9 @@ export class AbortError extends Error {
|
||||||
*
|
*
|
||||||
* @param signal The `AbortSignal` to generate the `Promise` from
|
* @param signal The `AbortSignal` to generate the `Promise` from
|
||||||
*/
|
*/
|
||||||
export function toPromise(signal: AbortSignal): { promise: Promise<never>; cleanup: () => void } {
|
export function abortSignalToPromise(
|
||||||
|
signal: AbortSignal
|
||||||
|
): { promise: Promise<never>; cleanup: () => void } {
|
||||||
let abortHandler: () => void;
|
let abortHandler: () => void;
|
||||||
const cleanup = () => {
|
const cleanup = () => {
|
||||||
if (abortHandler) {
|
if (abortHandler) {
|
||||||
|
@ -60,7 +62,7 @@ export function toPromise(signal: AbortSignal): { promise: Promise<never>; clean
|
||||||
*
|
*
|
||||||
* @param signals
|
* @param signals
|
||||||
*/
|
*/
|
||||||
export function getCombinedSignal(
|
export function getCombinedAbortSignal(
|
||||||
signals: AbortSignal[]
|
signals: AbortSignal[]
|
||||||
): { signal: AbortSignal; cleanup: () => void } {
|
): { signal: AbortSignal; cleanup: () => void } {
|
||||||
const controller = new AbortController();
|
const controller = new AbortController();
|
||||||
|
@ -69,7 +71,7 @@ export function getCombinedSignal(
|
||||||
if (signals.some((signal) => signal.aborted)) {
|
if (signals.some((signal) => signal.aborted)) {
|
||||||
controller.abort();
|
controller.abort();
|
||||||
} else {
|
} else {
|
||||||
const promises = signals.map((signal) => toPromise(signal));
|
const promises = signals.map((signal) => abortSignalToPromise(signal));
|
||||||
cleanup = () => {
|
cleanup = () => {
|
||||||
promises.forEach((p) => p.cleanup());
|
promises.forEach((p) => p.cleanup());
|
||||||
controller.signal.removeEventListener('abort', cleanup);
|
controller.signal.removeEventListener('abort', cleanup);
|
|
@ -24,6 +24,7 @@ export * from './ui';
|
||||||
export * from './state_containers';
|
export * from './state_containers';
|
||||||
export * from './typed_json';
|
export * from './typed_json';
|
||||||
export * from './errors';
|
export * from './errors';
|
||||||
|
export { AbortError, abortSignalToPromise, getCombinedAbortSignal } from './abort_utils';
|
||||||
export { createGetterSetter, Get, Set } from './create_getter_setter';
|
export { createGetterSetter, Get, Set } from './create_getter_setter';
|
||||||
export { distinctUntilChangedWithInitialValue } from './distinct_until_changed_with_initial_value';
|
export { distinctUntilChangedWithInitialValue } from './distinct_until_changed_with_initial_value';
|
||||||
export { url } from './url';
|
export { url } from './url';
|
||||||
|
|
|
@ -18,12 +18,15 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
AbortError,
|
||||||
|
abortSignalToPromise,
|
||||||
calculateObjectHash,
|
calculateObjectHash,
|
||||||
defer,
|
defer,
|
||||||
Defer,
|
Defer,
|
||||||
fieldWildcardFilter,
|
fieldWildcardFilter,
|
||||||
fieldWildcardMatcher,
|
fieldWildcardMatcher,
|
||||||
Get,
|
Get,
|
||||||
|
getCombinedAbortSignal,
|
||||||
JsonArray,
|
JsonArray,
|
||||||
JsonObject,
|
JsonObject,
|
||||||
JsonValue,
|
JsonValue,
|
||||||
|
|
|
@ -18,10 +18,13 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
AbortError,
|
||||||
|
abortSignalToPromise,
|
||||||
createGetterSetter,
|
createGetterSetter,
|
||||||
fieldWildcardFilter,
|
fieldWildcardFilter,
|
||||||
fieldWildcardMatcher,
|
fieldWildcardMatcher,
|
||||||
Get,
|
Get,
|
||||||
|
getCombinedAbortSignal,
|
||||||
Set,
|
Set,
|
||||||
url,
|
url,
|
||||||
} from '../common';
|
} from '../common';
|
||||||
|
|
|
@ -233,7 +233,7 @@ export class UiActionsService {
|
||||||
//
|
//
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
protected readonly actions: ActionRegistry;
|
protected readonly actions: ActionRegistry;
|
||||||
readonly addTriggerAction: <T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T, action: UiActionsActionDefinition<TriggerContextMapping[T]> | Action<TriggerContextMapping[T], "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK">) => void;
|
readonly addTriggerAction: <T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T, action: UiActionsActionDefinition<TriggerContextMapping[T]> | Action<TriggerContextMapping[T], "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION">) => void;
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
readonly attachAction: <T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T, actionId: string) => void;
|
readonly attachAction: <T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T, actionId: string) => void;
|
||||||
readonly clear: () => void;
|
readonly clear: () => void;
|
||||||
|
@ -247,21 +247,21 @@ export class UiActionsService {
|
||||||
readonly executionService: UiActionsExecutionService;
|
readonly executionService: UiActionsExecutionService;
|
||||||
readonly fork: () => UiActionsService;
|
readonly fork: () => UiActionsService;
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
readonly getAction: <T extends UiActionsActionDefinition<{}>>(id: string) => Action<ActionContext<T>, "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK">;
|
readonly getAction: <T extends UiActionsActionDefinition<{}>>(id: string) => Action<ActionContext<T>, "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION">;
|
||||||
// Warning: (ae-forgotten-export) The symbol "TriggerContract" needs to be exported by the entry point index.d.ts
|
// Warning: (ae-forgotten-export) The symbol "TriggerContract" needs to be exported by the entry point index.d.ts
|
||||||
//
|
//
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
readonly getTrigger: <T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T) => TriggerContract<T>;
|
readonly getTrigger: <T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T) => TriggerContract<T>;
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
readonly getTriggerActions: <T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T) => Action<TriggerContextMapping[T], "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK">[];
|
readonly getTriggerActions: <T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T) => Action<TriggerContextMapping[T], "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION">[];
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
readonly getTriggerCompatibleActions: <T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T, context: TriggerContextMapping[T]) => Promise<Action<TriggerContextMapping[T], "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK">[]>;
|
readonly getTriggerCompatibleActions: <T extends "" | "SELECT_RANGE_TRIGGER" | "VALUE_CLICK_TRIGGER" | "FILTER_TRIGGER" | "VISUALIZE_FIELD_TRIGGER" | "VISUALIZE_GEO_FIELD_TRIGGER" | "CONTEXT_MENU_TRIGGER" | "PANEL_BADGE_TRIGGER" | "PANEL_NOTIFICATION_TRIGGER">(triggerId: T, context: TriggerContextMapping[T]) => Promise<Action<TriggerContextMapping[T], "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION">[]>;
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
readonly hasAction: (actionId: string) => boolean;
|
readonly hasAction: (actionId: string) => boolean;
|
||||||
// Warning: (ae-forgotten-export) The symbol "ActionContext" needs to be exported by the entry point index.d.ts
|
// Warning: (ae-forgotten-export) The symbol "ActionContext" needs to be exported by the entry point index.d.ts
|
||||||
//
|
//
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
readonly registerAction: <A extends UiActionsActionDefinition<{}>>(definition: A) => Action<ActionContext<A>, "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK">;
|
readonly registerAction: <A extends UiActionsActionDefinition<{}>>(definition: A) => Action<ActionContext<A>, "" | "ACTION_VISUALIZE_FIELD" | "ACTION_VISUALIZE_GEO_FIELD" | "ACTION_VISUALIZE_LENS_FIELD" | "ACTION_GLOBAL_APPLY_FILTER" | "ACTION_SELECT_RANGE" | "ACTION_VALUE_CLICK" | "ACTION_CUSTOMIZE_PANEL" | "ACTION_ADD_PANEL" | "openInspector" | "deletePanel" | "editPanel" | "togglePanel" | "replacePanel" | "clonePanel" | "addToFromLibrary" | "unlinkFromLibrary" | "ACTION_LIBRARY_NOTIFICATION">;
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
readonly registerTrigger: (trigger: Trigger) => void;
|
readonly registerTrigger: (trigger: Trigger) => void;
|
||||||
// Warning: (ae-forgotten-export) The symbol "TriggerRegistry" needs to be exported by the entry point index.d.ts
|
// Warning: (ae-forgotten-export) The symbol "TriggerRegistry" needs to be exported by the entry point index.d.ts
|
||||||
|
|
|
@ -18,8 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import { KIBANA_CONTEXT_NAME } from 'src/plugins/expressions/public';
|
import { KibanaContext, TimeRange, Filter, esQuery, Query } from '../../../data/public';
|
||||||
import { TimeRange, Filter, esQuery, Query } from '../../../data/public';
|
|
||||||
import { TimelionVisDependencies } from '../plugin';
|
import { TimelionVisDependencies } from '../plugin';
|
||||||
import { getTimezone } from './get_timezone';
|
import { getTimezone } from './get_timezone';
|
||||||
import { TimelionVisParams } from '../timelion_vis_fn';
|
import { TimelionVisParams } from '../timelion_vis_fn';
|
||||||
|
@ -59,7 +58,7 @@ export interface TimelionSuccessResponse {
|
||||||
sheet: Sheet[];
|
sheet: Sheet[];
|
||||||
stats: Stats;
|
stats: Stats;
|
||||||
visType: string;
|
visType: string;
|
||||||
type: KIBANA_CONTEXT_NAME;
|
type: KibanaContext['type'];
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getTimelionRequestHandler({
|
export function getTimelionRequestHandler({
|
||||||
|
|
|
@ -19,18 +19,14 @@
|
||||||
|
|
||||||
import { get } from 'lodash';
|
import { get } from 'lodash';
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import {
|
import { ExpressionFunctionDefinition, Render } from 'src/plugins/expressions/public';
|
||||||
ExpressionFunctionDefinition,
|
|
||||||
KibanaContext,
|
|
||||||
Render,
|
|
||||||
} from 'src/plugins/expressions/public';
|
|
||||||
import {
|
import {
|
||||||
getTimelionRequestHandler,
|
getTimelionRequestHandler,
|
||||||
TimelionSuccessResponse,
|
TimelionSuccessResponse,
|
||||||
} from './helpers/timelion_request_handler';
|
} from './helpers/timelion_request_handler';
|
||||||
import { TIMELION_VIS_NAME } from './timelion_vis_type';
|
import { TIMELION_VIS_NAME } from './timelion_vis_type';
|
||||||
import { TimelionVisDependencies } from './plugin';
|
import { TimelionVisDependencies } from './plugin';
|
||||||
import { Filter, Query, TimeRange } from '../../data/common';
|
import { KibanaContext, Filter, Query, TimeRange } from '../../data/public';
|
||||||
|
|
||||||
type Input = KibanaContext | null;
|
type Input = KibanaContext | null;
|
||||||
type Output = Promise<Render<TimelionRenderValue>>;
|
type Output = Promise<Render<TimelionRenderValue>>;
|
||||||
|
|
|
@ -19,7 +19,8 @@
|
||||||
|
|
||||||
import { get } from 'lodash';
|
import { get } from 'lodash';
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import { ExpressionFunctionDefinition, KibanaContext, Render } from '../../expressions/public';
|
import { KibanaContext } from '../../data/public';
|
||||||
|
import { ExpressionFunctionDefinition, Render } from '../../expressions/public';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { metricsRequestHandler } from './request_handler';
|
import { metricsRequestHandler } from './request_handler';
|
||||||
|
|
|
@ -19,16 +19,12 @@
|
||||||
|
|
||||||
import { get } from 'lodash';
|
import { get } from 'lodash';
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import {
|
import { ExecutionContextSearch } from '../../data/public';
|
||||||
ExecutionContext,
|
import { ExecutionContext, ExpressionFunctionDefinition, Render } from '../../expressions/public';
|
||||||
ExpressionFunctionDefinition,
|
|
||||||
KibanaContext,
|
|
||||||
Render,
|
|
||||||
} from '../../expressions/public';
|
|
||||||
import { VegaVisualizationDependencies } from './plugin';
|
import { VegaVisualizationDependencies } from './plugin';
|
||||||
import { createVegaRequestHandler } from './vega_request_handler';
|
import { createVegaRequestHandler } from './vega_request_handler';
|
||||||
import { VegaInspectorAdapters } from './vega_inspector/index';
|
import { VegaInspectorAdapters } from './vega_inspector/index';
|
||||||
import { TimeRange, Query } from '../../data/public';
|
import { KibanaContext, TimeRange, Query } from '../../data/public';
|
||||||
import { VegaParser } from './data_model/vega_parser';
|
import { VegaParser } from './data_model/vega_parser';
|
||||||
|
|
||||||
type Input = KibanaContext | null;
|
type Input = KibanaContext | null;
|
||||||
|
@ -51,7 +47,7 @@ export type VegaExpressionFunctionDefinition = ExpressionFunctionDefinition<
|
||||||
Input,
|
Input,
|
||||||
Arguments,
|
Arguments,
|
||||||
Output,
|
Output,
|
||||||
ExecutionContext<VegaInspectorAdapters>
|
ExecutionContext<VegaInspectorAdapters, ExecutionContextSearch>
|
||||||
>;
|
>;
|
||||||
|
|
||||||
export const createVegaFn = (
|
export const createVegaFn = (
|
||||||
|
|
|
@ -4,12 +4,12 @@
|
||||||
* you may not use this file except in compliance with the Elastic License.
|
* you may not use this file except in compliance with the Elastic License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { KibanaContext } from 'src/plugins/data/common';
|
||||||
import {
|
import {
|
||||||
Datatable,
|
Datatable,
|
||||||
ExpressionValueFilter,
|
ExpressionValueFilter,
|
||||||
ExpressionImage,
|
ExpressionImage,
|
||||||
ExpressionFunction,
|
ExpressionFunction,
|
||||||
KibanaContext,
|
|
||||||
PointSeries,
|
PointSeries,
|
||||||
Render,
|
Render,
|
||||||
Style,
|
Style,
|
||||||
|
|
|
@ -8,11 +8,11 @@ import { of, merge, timer, throwError } from 'rxjs';
|
||||||
import { takeWhile, switchMap, expand, mergeMap, tap } from 'rxjs/operators';
|
import { takeWhile, switchMap, expand, mergeMap, tap } from 'rxjs/operators';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
AbortError,
|
|
||||||
doSearch,
|
doSearch,
|
||||||
IKibanaSearchResponse,
|
IKibanaSearchResponse,
|
||||||
isErrorResponse,
|
isErrorResponse,
|
||||||
} from '../../../../../../src/plugins/data/common';
|
} from '../../../../../../src/plugins/data/common';
|
||||||
|
import { AbortError } from '../../../../../../src/plugins/kibana_utils/common';
|
||||||
import type { IKibanaSearchRequest } from '../../../../../../src/plugins/data/common';
|
import type { IKibanaSearchRequest } from '../../../../../../src/plugins/data/common';
|
||||||
import type { IAsyncSearchOptions } from '../../../common/search/types';
|
import type { IAsyncSearchOptions } from '../../../common/search/types';
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,8 @@ import type { MockedKeys } from '@kbn/utility-types/jest';
|
||||||
import { coreMock } from '../../../../../src/core/public/mocks';
|
import { coreMock } from '../../../../../src/core/public/mocks';
|
||||||
import { EnhancedSearchInterceptor } from './search_interceptor';
|
import { EnhancedSearchInterceptor } from './search_interceptor';
|
||||||
import { CoreSetup, CoreStart } from 'kibana/public';
|
import { CoreSetup, CoreStart } from 'kibana/public';
|
||||||
import { AbortError, UI_SETTINGS } from '../../../../../src/plugins/data/common';
|
import { UI_SETTINGS } from '../../../../../src/plugins/data/common';
|
||||||
|
import { AbortError } from '../../../../../src/plugins/kibana_utils/public';
|
||||||
import { SearchTimeoutError } from 'src/plugins/data/public';
|
import { SearchTimeoutError } from 'src/plugins/data/public';
|
||||||
import { dataPluginMock } from '../../../../../src/plugins/data/public/mocks';
|
import { dataPluginMock } from '../../../../../src/plugins/data/public/mocks';
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ import {
|
||||||
SearchInterceptorDeps,
|
SearchInterceptorDeps,
|
||||||
UI_SETTINGS,
|
UI_SETTINGS,
|
||||||
} from '../../../../../src/plugins/data/public';
|
} from '../../../../../src/plugins/data/public';
|
||||||
import { AbortError, toPromise } from '../../../../../src/plugins/data/common';
|
import { AbortError, abortSignalToPromise } from '../../../../../src/plugins/kibana_utils/public';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
IAsyncSearchRequest,
|
IAsyncSearchRequest,
|
||||||
|
@ -70,7 +70,7 @@ export class EnhancedSearchInterceptor extends SearchInterceptor {
|
||||||
abortSignal: options.abortSignal,
|
abortSignal: options.abortSignal,
|
||||||
timeout: this.searchTimeout,
|
timeout: this.searchTimeout,
|
||||||
});
|
});
|
||||||
const abortedPromise = toPromise(combinedSignal);
|
const abortedPromise = abortSignalToPromise(combinedSignal);
|
||||||
const strategy = options?.strategy ?? ENHANCED_ES_SEARCH_STRATEGY;
|
const strategy = options?.strategy ?? ENHANCED_ES_SEARCH_STRATEGY;
|
||||||
|
|
||||||
this.pendingCount$.next(this.pendingCount$.getValue() + 1);
|
this.pendingCount$.next(this.pendingCount$.getValue() + 1);
|
||||||
|
|
|
@ -23,7 +23,7 @@ import { IconType } from '@elastic/eui/src/components/icon/icon';
|
||||||
import { Ast, toExpression } from '@kbn/interpreter/common';
|
import { Ast, toExpression } from '@kbn/interpreter/common';
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import { ExecutionContextSearch } from 'src/plugins/expressions';
|
import { DataPublicPluginStart, ExecutionContextSearch } from 'src/plugins/data/public';
|
||||||
import { Action, PreviewState } from './state_management';
|
import { Action, PreviewState } from './state_management';
|
||||||
import { Datasource, Visualization, FramePublicAPI, DatasourcePublicAPI } from '../../types';
|
import { Datasource, Visualization, FramePublicAPI, DatasourcePublicAPI } from '../../types';
|
||||||
import { getSuggestions, switchToSuggestion } from './suggestion_helpers';
|
import { getSuggestions, switchToSuggestion } from './suggestion_helpers';
|
||||||
|
@ -33,7 +33,6 @@ import {
|
||||||
} from '../../../../../../src/plugins/expressions/public';
|
} from '../../../../../../src/plugins/expressions/public';
|
||||||
import { prependDatasourceExpression } from './expression_helpers';
|
import { prependDatasourceExpression } from './expression_helpers';
|
||||||
import { trackUiEvent, trackSuggestionEvent } from '../../lens_ui_telemetry';
|
import { trackUiEvent, trackSuggestionEvent } from '../../lens_ui_telemetry';
|
||||||
import { DataPublicPluginStart } from '../../../../../../src/plugins/data/public';
|
|
||||||
import { validateDatasourceAndVisualization } from './state_helpers';
|
import { validateDatasourceAndVisualization } from './state_helpers';
|
||||||
|
|
||||||
const MAX_SUGGESTIONS_DISPLAYED = 5;
|
const MAX_SUGGESTIONS_DISPLAYED = 5;
|
||||||
|
|
|
@ -20,7 +20,11 @@ import {
|
||||||
EuiTitle,
|
EuiTitle,
|
||||||
} from '@elastic/eui';
|
} from '@elastic/eui';
|
||||||
import { CoreStart, CoreSetup } from 'kibana/public';
|
import { CoreStart, CoreSetup } from 'kibana/public';
|
||||||
import { ExecutionContextSearch } from 'src/plugins/expressions';
|
import {
|
||||||
|
DataPublicPluginStart,
|
||||||
|
ExecutionContextSearch,
|
||||||
|
TimefilterContract,
|
||||||
|
} from 'src/plugins/data/public';
|
||||||
import {
|
import {
|
||||||
ExpressionRendererEvent,
|
ExpressionRendererEvent,
|
||||||
ExpressionRenderError,
|
ExpressionRenderError,
|
||||||
|
@ -44,10 +48,6 @@ import {
|
||||||
VisualizeFieldContext,
|
VisualizeFieldContext,
|
||||||
} from '../../../../../../../src/plugins/ui_actions/public';
|
} from '../../../../../../../src/plugins/ui_actions/public';
|
||||||
import { VIS_EVENT_TO_TRIGGER } from '../../../../../../../src/plugins/visualizations/public';
|
import { VIS_EVENT_TO_TRIGGER } from '../../../../../../../src/plugins/visualizations/public';
|
||||||
import {
|
|
||||||
DataPublicPluginStart,
|
|
||||||
TimefilterContract,
|
|
||||||
} from '../../../../../../../src/plugins/data/public';
|
|
||||||
import { WorkspacePanelWrapper } from './workspace_panel_wrapper';
|
import { WorkspacePanelWrapper } from './workspace_panel_wrapper';
|
||||||
import { DropIllustration } from '../../../assets/drop_illustration';
|
import { DropIllustration } from '../../../assets/drop_illustration';
|
||||||
import { LensInspectorAdapters } from '../../types';
|
import { LensInspectorAdapters } from '../../types';
|
||||||
|
|
|
@ -8,6 +8,7 @@ import _ from 'lodash';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { render, unmountComponentAtNode } from 'react-dom';
|
import { render, unmountComponentAtNode } from 'react-dom';
|
||||||
import {
|
import {
|
||||||
|
ExecutionContextSearch,
|
||||||
Filter,
|
Filter,
|
||||||
IIndexPattern,
|
IIndexPattern,
|
||||||
Query,
|
Query,
|
||||||
|
@ -15,7 +16,6 @@ import {
|
||||||
TimeRange,
|
TimeRange,
|
||||||
IndexPattern,
|
IndexPattern,
|
||||||
} from 'src/plugins/data/public';
|
} from 'src/plugins/data/public';
|
||||||
import { ExecutionContextSearch } from 'src/plugins/expressions';
|
|
||||||
import { PaletteOutput } from 'src/plugins/charts/public';
|
import { PaletteOutput } from 'src/plugins/charts/public';
|
||||||
|
|
||||||
import { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
|
|
|
@ -12,7 +12,7 @@ import {
|
||||||
ExpressionRendererEvent,
|
ExpressionRendererEvent,
|
||||||
ReactExpressionRendererType,
|
ReactExpressionRendererType,
|
||||||
} from 'src/plugins/expressions/public';
|
} from 'src/plugins/expressions/public';
|
||||||
import { ExecutionContextSearch } from 'src/plugins/expressions';
|
import { ExecutionContextSearch } from 'src/plugins/data/public';
|
||||||
import { getOriginalRequestErrorMessage } from '../error_helper';
|
import { getOriginalRequestErrorMessage } from '../error_helper';
|
||||||
|
|
||||||
export interface ExpressionWrapperProps {
|
export interface ExpressionWrapperProps {
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { mergeTables } from './merge_tables';
|
import { mergeTables } from './merge_tables';
|
||||||
|
import { ExpressionValueSearchContext } from 'src/plugins/data/public';
|
||||||
import { Datatable, ExecutionContext } from 'src/plugins/expressions';
|
import { Datatable, ExecutionContext } from 'src/plugins/expressions';
|
||||||
import { LensInspectorAdapters } from './types';
|
import { LensInspectorAdapters } from './types';
|
||||||
|
|
||||||
|
@ -52,7 +53,7 @@ describe('lens_merge_tables', () => {
|
||||||
const adapters: LensInspectorAdapters = { tables: {} };
|
const adapters: LensInspectorAdapters = { tables: {} };
|
||||||
mergeTables.fn(null, { layerIds: ['first', 'second'], tables: [sampleTable1, sampleTable2] }, {
|
mergeTables.fn(null, { layerIds: ['first', 'second'], tables: [sampleTable1, sampleTable2] }, {
|
||||||
inspectorAdapters: adapters,
|
inspectorAdapters: adapters,
|
||||||
} as ExecutionContext<LensInspectorAdapters>);
|
} as ExecutionContext<LensInspectorAdapters, ExpressionValueSearchContext>);
|
||||||
expect(adapters.tables!.first).toBe(sampleTable1);
|
expect(adapters.tables!.first).toBe(sampleTable1);
|
||||||
expect(adapters.tables!.second).toBe(sampleTable2);
|
expect(adapters.tables!.second).toBe(sampleTable2);
|
||||||
});
|
});
|
||||||
|
|
|
@ -9,9 +9,8 @@ import {
|
||||||
ExecutionContext,
|
ExecutionContext,
|
||||||
Datatable,
|
Datatable,
|
||||||
ExpressionFunctionDefinition,
|
ExpressionFunctionDefinition,
|
||||||
ExpressionValueSearchContext,
|
|
||||||
} from 'src/plugins/expressions/public';
|
} from 'src/plugins/expressions/public';
|
||||||
import { search } from '../../../../../src/plugins/data/public';
|
import { ExpressionValueSearchContext, search } from '../../../../../src/plugins/data/public';
|
||||||
const { toAbsoluteDates } = search.aggs;
|
const { toAbsoluteDates } = search.aggs;
|
||||||
|
|
||||||
import { LensMultiTable } from '../types';
|
import { LensMultiTable } from '../types';
|
||||||
|
@ -27,7 +26,7 @@ export const mergeTables: ExpressionFunctionDefinition<
|
||||||
ExpressionValueSearchContext | null,
|
ExpressionValueSearchContext | null,
|
||||||
MergeTables,
|
MergeTables,
|
||||||
LensMultiTable,
|
LensMultiTable,
|
||||||
ExecutionContext<LensInspectorAdapters>
|
ExecutionContext<LensInspectorAdapters, ExpressionValueSearchContext>
|
||||||
> = {
|
> = {
|
||||||
name: 'lens_merge_tables',
|
name: 'lens_merge_tables',
|
||||||
type: 'lens_multitable',
|
type: 'lens_multitable',
|
||||||
|
|
|
@ -29,7 +29,6 @@ import { I18nProvider } from '@kbn/i18n/react';
|
||||||
import {
|
import {
|
||||||
ExpressionFunctionDefinition,
|
ExpressionFunctionDefinition,
|
||||||
ExpressionRenderDefinition,
|
ExpressionRenderDefinition,
|
||||||
ExpressionValueSearchContext,
|
|
||||||
Datatable,
|
Datatable,
|
||||||
DatatableRow,
|
DatatableRow,
|
||||||
} from 'src/plugins/expressions/public';
|
} from 'src/plugins/expressions/public';
|
||||||
|
@ -45,7 +44,7 @@ import {
|
||||||
import { XYArgs, SeriesType, visualizationTypes } from './types';
|
import { XYArgs, SeriesType, visualizationTypes } from './types';
|
||||||
import { VisualizationContainer } from '../visualization_container';
|
import { VisualizationContainer } from '../visualization_container';
|
||||||
import { isHorizontalChart, getSeriesColor } from './state_helpers';
|
import { isHorizontalChart, getSeriesColor } from './state_helpers';
|
||||||
import { parseInterval } from '../../../../../src/plugins/data/common';
|
import { ExpressionValueSearchContext, search } from '../../../../../src/plugins/data/public';
|
||||||
import {
|
import {
|
||||||
ChartsPluginSetup,
|
ChartsPluginSetup,
|
||||||
PaletteRegistry,
|
PaletteRegistry,
|
||||||
|
@ -384,7 +383,8 @@ export function XYChart({
|
||||||
// add minInterval only for single point in domain
|
// add minInterval only for single point in domain
|
||||||
if (data.dateRange && isSingleTimestampInXDomain()) {
|
if (data.dateRange && isSingleTimestampInXDomain()) {
|
||||||
const params = xAxisColumn?.meta?.sourceParams?.params as Record<string, string>;
|
const params = xAxisColumn?.meta?.sourceParams?.params as Record<string, string>;
|
||||||
if (params?.interval !== 'auto') return parseInterval(params?.interval)?.asMilliseconds();
|
if (params?.interval !== 'auto')
|
||||||
|
return search.aggs.parseInterval(params?.interval)?.asMilliseconds();
|
||||||
|
|
||||||
const { fromDate, toDate } = data.dateRange;
|
const { fromDate, toDate } = data.dateRange;
|
||||||
const duration = moment(toDate).diff(moment(fromDate));
|
const duration = moment(toDate).diff(moment(fromDate));
|
||||||
|
|
|
@ -18,10 +18,10 @@ import {
|
||||||
LastEventIndexKey,
|
LastEventIndexKey,
|
||||||
} from '../../../../../common/search_strategy/timeline';
|
} from '../../../../../common/search_strategy/timeline';
|
||||||
import {
|
import {
|
||||||
AbortError,
|
|
||||||
isCompleteResponse,
|
isCompleteResponse,
|
||||||
isErrorResponse,
|
isErrorResponse,
|
||||||
} from '../../../../../../../../src/plugins/data/common';
|
} from '../../../../../../../../src/plugins/data/common';
|
||||||
|
import { AbortError } from '../../../../../../../../src/plugins/kibana_utils/common';
|
||||||
import * as i18n from './translations';
|
import * as i18n from './translations';
|
||||||
import { DocValueFields } from '../../../../../common/search_strategy';
|
import { DocValueFields } from '../../../../../common/search_strategy';
|
||||||
|
|
||||||
|
|
|
@ -18,11 +18,8 @@ import {
|
||||||
MatrixHistogramStrategyResponse,
|
MatrixHistogramStrategyResponse,
|
||||||
MatrixHistogramData,
|
MatrixHistogramData,
|
||||||
} from '../../../../common/search_strategy/security_solution';
|
} from '../../../../common/search_strategy/security_solution';
|
||||||
import {
|
import { isErrorResponse, isCompleteResponse } from '../../../../../../../src/plugins/data/common';
|
||||||
AbortError,
|
import { AbortError } from '../../../../../../../src/plugins/kibana_utils/common';
|
||||||
isErrorResponse,
|
|
||||||
isCompleteResponse,
|
|
||||||
} from '../../../../../../../src/plugins/data/common';
|
|
||||||
import { getInspectResponse } from '../../../helpers';
|
import { getInspectResponse } from '../../../helpers';
|
||||||
import { InspectResponse } from '../../../types';
|
import { InspectResponse } from '../../../types';
|
||||||
import * as i18n from './translations';
|
import * as i18n from './translations';
|
||||||
|
|
|
@ -18,7 +18,7 @@ import {
|
||||||
BrowserField,
|
BrowserField,
|
||||||
BrowserFields,
|
BrowserFields,
|
||||||
} from '../../../../common/search_strategy/index_fields';
|
} from '../../../../common/search_strategy/index_fields';
|
||||||
import { AbortError } from '../../../../../../../src/plugins/data/common';
|
import { AbortError } from '../../../../../../../src/plugins/kibana_utils/common';
|
||||||
import { useShallowEqualSelector } from '../../../common/hooks/use_selector';
|
import { useShallowEqualSelector } from '../../../common/hooks/use_selector';
|
||||||
import * as i18n from './translations';
|
import * as i18n from './translations';
|
||||||
import { SourcererScopeName } from '../../store/sourcerer/model';
|
import { SourcererScopeName } from '../../store/sourcerer/model';
|
||||||
|
|
|
@ -11,11 +11,11 @@ import { takeUntil } from 'rxjs/operators';
|
||||||
import * as i18n from '../translations';
|
import * as i18n from '../translations';
|
||||||
import { useKibana } from '../../../common/lib/kibana';
|
import { useKibana } from '../../../common/lib/kibana';
|
||||||
import {
|
import {
|
||||||
AbortError,
|
|
||||||
isCompleteResponse,
|
isCompleteResponse,
|
||||||
isErrorResponse,
|
isErrorResponse,
|
||||||
isPartialResponse,
|
isPartialResponse,
|
||||||
} from '../../../../../../../src/plugins/data/common';
|
} from '../../../../../../../src/plugins/data/common';
|
||||||
|
import { AbortError } from '../../../../../../../src/plugins/kibana_utils/common';
|
||||||
import {
|
import {
|
||||||
EqlSearchStrategyRequest,
|
EqlSearchStrategyRequest,
|
||||||
EqlSearchStrategyResponse,
|
EqlSearchStrategyResponse,
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue