mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 19:13:14 -04:00
App Services API updates for CSV Export (#94537)
* App Arch API updates for CSV Export * add logging to show error cause from es * revert logging the error in an inconsistent way
This commit is contained in:
parent
378073c74a
commit
067543b51b
13 changed files with 155 additions and 18 deletions
|
@ -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) > [IScopedSearchClient](./kibana-plugin-plugins-data-server.iscopedsearchclient.md) > [cancelSession](./kibana-plugin-plugins-data-server.iscopedsearchclient.cancelsession.md)
|
||||||
|
|
||||||
|
## IScopedSearchClient.cancelSession property
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
cancelSession: IScopedSearchSessionsClient['cancel'];
|
||||||
|
```
|
|
@ -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) > [IScopedSearchClient](./kibana-plugin-plugins-data-server.iscopedsearchclient.md) > [deleteSession](./kibana-plugin-plugins-data-server.iscopedsearchclient.deletesession.md)
|
||||||
|
|
||||||
|
## IScopedSearchClient.deleteSession property
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
deleteSession: IScopedSearchSessionsClient['delete'];
|
||||||
|
```
|
|
@ -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) > [IScopedSearchClient](./kibana-plugin-plugins-data-server.iscopedsearchclient.md) > [extendSession](./kibana-plugin-plugins-data-server.iscopedsearchclient.extendsession.md)
|
||||||
|
|
||||||
|
## IScopedSearchClient.extendSession property
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
extendSession: IScopedSearchSessionsClient['extend'];
|
||||||
|
```
|
|
@ -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) > [IScopedSearchClient](./kibana-plugin-plugins-data-server.iscopedsearchclient.md) > [findSessions](./kibana-plugin-plugins-data-server.iscopedsearchclient.findsessions.md)
|
||||||
|
|
||||||
|
## IScopedSearchClient.findSessions property
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
findSessions: IScopedSearchSessionsClient['find'];
|
||||||
|
```
|
|
@ -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) > [IScopedSearchClient](./kibana-plugin-plugins-data-server.iscopedsearchclient.md) > [getSession](./kibana-plugin-plugins-data-server.iscopedsearchclient.getsession.md)
|
||||||
|
|
||||||
|
## IScopedSearchClient.getSession property
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
getSession: IScopedSearchSessionsClient['get'];
|
||||||
|
```
|
|
@ -0,0 +1,24 @@
|
||||||
|
<!-- 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) > [IScopedSearchClient](./kibana-plugin-plugins-data-server.iscopedsearchclient.md)
|
||||||
|
|
||||||
|
## IScopedSearchClient interface
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export interface IScopedSearchClient extends ISearchClient
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Property | Type | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| [cancelSession](./kibana-plugin-plugins-data-server.iscopedsearchclient.cancelsession.md) | <code>IScopedSearchSessionsClient['cancel']</code> | |
|
||||||
|
| [deleteSession](./kibana-plugin-plugins-data-server.iscopedsearchclient.deletesession.md) | <code>IScopedSearchSessionsClient['delete']</code> | |
|
||||||
|
| [extendSession](./kibana-plugin-plugins-data-server.iscopedsearchclient.extendsession.md) | <code>IScopedSearchSessionsClient['extend']</code> | |
|
||||||
|
| [findSessions](./kibana-plugin-plugins-data-server.iscopedsearchclient.findsessions.md) | <code>IScopedSearchSessionsClient['find']</code> | |
|
||||||
|
| [getSession](./kibana-plugin-plugins-data-server.iscopedsearchclient.getsession.md) | <code>IScopedSearchSessionsClient['get']</code> | |
|
||||||
|
| [saveSession](./kibana-plugin-plugins-data-server.iscopedsearchclient.savesession.md) | <code>IScopedSearchSessionsClient['save']</code> | |
|
||||||
|
| [updateSession](./kibana-plugin-plugins-data-server.iscopedsearchclient.updatesession.md) | <code>IScopedSearchSessionsClient['update']</code> | |
|
||||||
|
|
|
@ -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) > [IScopedSearchClient](./kibana-plugin-plugins-data-server.iscopedsearchclient.md) > [saveSession](./kibana-plugin-plugins-data-server.iscopedsearchclient.savesession.md)
|
||||||
|
|
||||||
|
## IScopedSearchClient.saveSession property
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
saveSession: IScopedSearchSessionsClient['save'];
|
||||||
|
```
|
|
@ -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) > [IScopedSearchClient](./kibana-plugin-plugins-data-server.iscopedsearchclient.md) > [updateSession](./kibana-plugin-plugins-data-server.iscopedsearchclient.updatesession.md)
|
||||||
|
|
||||||
|
## IScopedSearchClient.updateSession property
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
updateSession: IScopedSearchSessionsClient['update'];
|
||||||
|
```
|
|
@ -52,6 +52,7 @@
|
||||||
| [IFieldSubType](./kibana-plugin-plugins-data-server.ifieldsubtype.md) | |
|
| [IFieldSubType](./kibana-plugin-plugins-data-server.ifieldsubtype.md) | |
|
||||||
| [IFieldType](./kibana-plugin-plugins-data-server.ifieldtype.md) | |
|
| [IFieldType](./kibana-plugin-plugins-data-server.ifieldtype.md) | |
|
||||||
| [IndexPatternAttributes](./kibana-plugin-plugins-data-server.indexpatternattributes.md) | Interface for an index pattern saved object |
|
| [IndexPatternAttributes](./kibana-plugin-plugins-data-server.indexpatternattributes.md) | Interface for an index pattern saved object |
|
||||||
|
| [IScopedSearchClient](./kibana-plugin-plugins-data-server.iscopedsearchclient.md) | |
|
||||||
| [ISearchOptions](./kibana-plugin-plugins-data-server.isearchoptions.md) | |
|
| [ISearchOptions](./kibana-plugin-plugins-data-server.isearchoptions.md) | |
|
||||||
| [ISearchSessionService](./kibana-plugin-plugins-data-server.isearchsessionservice.md) | |
|
| [ISearchSessionService](./kibana-plugin-plugins-data-server.isearchsessionservice.md) | |
|
||||||
| [ISearchSetup](./kibana-plugin-plugins-data-server.isearchsetup.md) | |
|
| [ISearchSetup](./kibana-plugin-plugins-data-server.isearchsetup.md) | |
|
||||||
|
|
|
@ -220,6 +220,7 @@ export {
|
||||||
} from '../common';
|
} from '../common';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
IScopedSearchClient,
|
||||||
ISearchStrategy,
|
ISearchStrategy,
|
||||||
ISearchSetup,
|
ISearchSetup,
|
||||||
ISearchStart,
|
ISearchStart,
|
||||||
|
|
|
@ -963,6 +963,29 @@ export class IndexPatternsServiceProvider implements Plugin_3<void, IndexPattern
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Warning: (ae-forgotten-export) The symbol "ISearchClient" needs to be exported by the entry point index.d.ts
|
||||||
|
// Warning: (ae-missing-release-tag) "IScopedSearchClient" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
|
//
|
||||||
|
// @public (undocumented)
|
||||||
|
export interface IScopedSearchClient extends ISearchClient {
|
||||||
|
// (undocumented)
|
||||||
|
cancelSession: IScopedSearchSessionsClient['cancel'];
|
||||||
|
// (undocumented)
|
||||||
|
deleteSession: IScopedSearchSessionsClient['delete'];
|
||||||
|
// (undocumented)
|
||||||
|
extendSession: IScopedSearchSessionsClient['extend'];
|
||||||
|
// (undocumented)
|
||||||
|
findSessions: IScopedSearchSessionsClient['find'];
|
||||||
|
// (undocumented)
|
||||||
|
getSession: IScopedSearchSessionsClient['get'];
|
||||||
|
// Warning: (ae-forgotten-export) The symbol "IScopedSearchSessionsClient" needs to be exported by the entry point index.d.ts
|
||||||
|
//
|
||||||
|
// (undocumented)
|
||||||
|
saveSession: IScopedSearchSessionsClient['save'];
|
||||||
|
// (undocumented)
|
||||||
|
updateSession: IScopedSearchSessionsClient['update'];
|
||||||
|
}
|
||||||
|
|
||||||
// Warning: (ae-missing-release-tag) "ISearchOptions" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
// Warning: (ae-missing-release-tag) "ISearchOptions" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||||
//
|
//
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
|
@ -980,8 +1003,6 @@ export interface ISearchOptions {
|
||||||
//
|
//
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
export interface ISearchSessionService<T = unknown> {
|
export interface ISearchSessionService<T = unknown> {
|
||||||
// Warning: (ae-forgotten-export) The symbol "IScopedSearchSessionsClient" needs to be exported by the entry point index.d.ts
|
|
||||||
//
|
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
asScopedProvider: (core: CoreStart) => (request: KibanaRequest) => IScopedSearchSessionsClient<T>;
|
asScopedProvider: (core: CoreStart) => (request: KibanaRequest) => IScopedSearchSessionsClient<T>;
|
||||||
}
|
}
|
||||||
|
@ -1010,8 +1031,6 @@ export interface ISearchStart<SearchStrategyRequest extends IKibanaSearchRequest
|
||||||
//
|
//
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
aggs: AggsStart;
|
aggs: AggsStart;
|
||||||
// Warning: (ae-forgotten-export) The symbol "IScopedSearchClient" needs to be exported by the entry point index.d.ts
|
|
||||||
//
|
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
asScoped: (request: KibanaRequest_2) => IScopedSearchClient;
|
asScoped: (request: KibanaRequest_2) => IScopedSearchClient;
|
||||||
getSearchStrategy: (name?: string) => ISearchStrategy<SearchStrategyRequest, SearchStrategyResponse>;
|
getSearchStrategy: (name?: string) => ISearchStrategy<SearchStrategyRequest, SearchStrategyResponse>;
|
||||||
|
@ -1481,20 +1500,20 @@ export function usageProvider(core: CoreSetup_2): SearchUsage;
|
||||||
// src/plugins/data/server/index.ts:101:26 - (ae-forgotten-export) The symbol "HistogramFormat" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:101:26 - (ae-forgotten-export) The symbol "HistogramFormat" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:128:27 - (ae-forgotten-export) The symbol "isFilterable" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:128:27 - (ae-forgotten-export) The symbol "isFilterable" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:128:27 - (ae-forgotten-export) The symbol "isNestedField" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:128:27 - (ae-forgotten-export) The symbol "isNestedField" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:243:20 - (ae-forgotten-export) The symbol "getRequestInspectorStats" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:244:20 - (ae-forgotten-export) The symbol "getRequestInspectorStats" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:243:20 - (ae-forgotten-export) The symbol "getResponseInspectorStats" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:244:20 - (ae-forgotten-export) The symbol "getResponseInspectorStats" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:243:20 - (ae-forgotten-export) The symbol "tabifyAggResponse" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:244:20 - (ae-forgotten-export) The symbol "tabifyAggResponse" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:243:20 - (ae-forgotten-export) The symbol "tabifyGetColumns" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:244:20 - (ae-forgotten-export) The symbol "tabifyGetColumns" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:245:1 - (ae-forgotten-export) The symbol "CidrMask" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:246:1 - (ae-forgotten-export) The symbol "CidrMask" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:246:1 - (ae-forgotten-export) The symbol "dateHistogramInterval" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:247:1 - (ae-forgotten-export) The symbol "dateHistogramInterval" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:255:1 - (ae-forgotten-export) The symbol "InvalidEsCalendarIntervalError" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:256:1 - (ae-forgotten-export) The symbol "InvalidEsCalendarIntervalError" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:256:1 - (ae-forgotten-export) The symbol "InvalidEsIntervalFormatError" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:257:1 - (ae-forgotten-export) The symbol "InvalidEsIntervalFormatError" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:257:1 - (ae-forgotten-export) The symbol "Ipv4Address" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:258:1 - (ae-forgotten-export) The symbol "Ipv4Address" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:261:1 - (ae-forgotten-export) The symbol "isValidEsInterval" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:262:1 - (ae-forgotten-export) The symbol "isValidEsInterval" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:262:1 - (ae-forgotten-export) The symbol "isValidInterval" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:263:1 - (ae-forgotten-export) The symbol "isValidInterval" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:266:1 - (ae-forgotten-export) The symbol "propFilter" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:267:1 - (ae-forgotten-export) The symbol "propFilter" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:269:1 - (ae-forgotten-export) The symbol "toAbsoluteDates" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:270:1 - (ae-forgotten-export) The symbol "toAbsoluteDates" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/index.ts:270:1 - (ae-forgotten-export) The symbol "calcAutoIntervalLessThan" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/index.ts:271:1 - (ae-forgotten-export) The symbol "calcAutoIntervalLessThan" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/plugin.ts:79:74 - (ae-forgotten-export) The symbol "DataEnhancements" needs to be exported by the entry point index.d.ts
|
// src/plugins/data/server/plugin.ts:79:74 - (ae-forgotten-export) The symbol "DataEnhancements" needs to be exported by the entry point index.d.ts
|
||||||
// src/plugins/data/server/search/types.ts:114: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:114:5 - (ae-forgotten-export) The symbol "ISearchStartSearchSource" needs to be exported by the entry point index.d.ts
|
||||||
|
|
||||||
|
|
|
@ -16,4 +16,5 @@ export function plugin(initializerContext: PluginInitializerContext) {
|
||||||
|
|
||||||
export { SavedSearch, SavedSearchLoader, createSavedSearchesLoader } from './saved_searches';
|
export { SavedSearch, SavedSearchLoader, createSavedSearchesLoader } from './saved_searches';
|
||||||
export { ISearchEmbeddable, SEARCH_EMBEDDABLE_TYPE, SearchInput } from './application/embeddable';
|
export { ISearchEmbeddable, SEARCH_EMBEDDABLE_TYPE, SearchInput } from './application/embeddable';
|
||||||
|
export { loadSharingDataHelpers } from './shared';
|
||||||
export { DISCOVER_APP_URL_GENERATOR, DiscoverUrlGeneratorState } from './url_generator';
|
export { DISCOVER_APP_URL_GENERATOR, DiscoverUrlGeneratorState } from './url_generator';
|
||||||
|
|
14
src/plugins/discover/public/shared/index.ts
Normal file
14
src/plugins/discover/public/shared/index.ts
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
/*
|
||||||
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||||
|
* or more contributor license agreements. Licensed under the Elastic License
|
||||||
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
||||||
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
|
* Side Public License, v 1.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Allows the getSharingData function to be lazy loadable
|
||||||
|
*/
|
||||||
|
export async function loadSharingDataHelpers() {
|
||||||
|
return await import('../application/helpers/get_sharing_data');
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue