From 4bca80bafcf108e4df9dd39d77b7bb5c51041ac2 Mon Sep 17 00:00:00 2001 From: delvedor Date: Mon, 3 Aug 2020 12:02:03 +0200 Subject: [PATCH] API generation --- api/api/clear_scroll.js | 2 +- api/kibana.d.ts | 18 +++--- docs/reference.asciidoc | 2 +- index.d.ts | 120 ++++++++++++++++++++-------------------- 4 files changed, 71 insertions(+), 71 deletions(-) diff --git a/api/api/clear_scroll.js b/api/api/clear_scroll.js index ba3fef02f..d3017af36 100644 --- a/api/api/clear_scroll.js +++ b/api/api/clear_scroll.js @@ -27,7 +27,7 @@ function buildClearScroll (opts) { /** * Perform a clear_scroll request * Explicitly clears the search context for a scroll. - * https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#_clear_scroll_api + * https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-scroll-api.html */ return function clearScroll (params, options, callback) { options = options || {} diff --git a/api/kibana.d.ts b/api/kibana.d.ts index 88c2cbb1f..5c556f475 100644 --- a/api/kibana.d.ts +++ b/api/kibana.d.ts @@ -119,7 +119,7 @@ interface KibanaClient { allocationExplain, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.ClusterAllocationExplain, options?: TransportRequestOptions): TransportRequestPromise> deleteComponentTemplate, TContext = Context>(params?: RequestParams.ClusterDeleteComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> deleteVotingConfigExclusions, TContext = Context>(params?: RequestParams.ClusterDeleteVotingConfigExclusions, options?: TransportRequestOptions): TransportRequestPromise> - existsComponentTemplate, TContext = Context>(params?: RequestParams.ClusterExistsComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> + existsComponentTemplate(params?: RequestParams.ClusterExistsComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> getComponentTemplate, TContext = Context>(params?: RequestParams.ClusterGetComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> getSettings, TContext = Context>(params?: RequestParams.ClusterGetSettings, options?: TransportRequestOptions): TransportRequestPromise> health, TContext = Context>(params?: RequestParams.ClusterHealth, options?: TransportRequestOptions): TransportRequestPromise> @@ -155,8 +155,8 @@ interface KibanaClient { get, TContext = Context>(params?: RequestParams.EqlGet, options?: TransportRequestOptions): TransportRequestPromise> search, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.EqlSearch, options?: TransportRequestOptions): TransportRequestPromise> } - exists, TContext = Context>(params?: RequestParams.Exists, options?: TransportRequestOptions): TransportRequestPromise> - existsSource, TContext = Context>(params?: RequestParams.ExistsSource, options?: TransportRequestOptions): TransportRequestPromise> + exists(params?: RequestParams.Exists, options?: TransportRequestOptions): TransportRequestPromise> + existsSource(params?: RequestParams.ExistsSource, options?: TransportRequestOptions): TransportRequestPromise> explain, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.Explain, options?: TransportRequestOptions): TransportRequestPromise> fieldCaps, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.FieldCaps, options?: TransportRequestOptions): TransportRequestPromise> get, TContext = Context>(params?: RequestParams.Get, options?: TransportRequestOptions): TransportRequestPromise> @@ -194,11 +194,11 @@ interface KibanaClient { deleteDataStream, TContext = Context>(params?: RequestParams.IndicesDeleteDataStream, options?: TransportRequestOptions): TransportRequestPromise> deleteIndexTemplate, TContext = Context>(params?: RequestParams.IndicesDeleteIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> deleteTemplate, TContext = Context>(params?: RequestParams.IndicesDeleteTemplate, options?: TransportRequestOptions): TransportRequestPromise> - exists, TContext = Context>(params?: RequestParams.IndicesExists, options?: TransportRequestOptions): TransportRequestPromise> - existsAlias, TContext = Context>(params?: RequestParams.IndicesExistsAlias, options?: TransportRequestOptions): TransportRequestPromise> - existsIndexTemplate, TContext = Context>(params?: RequestParams.IndicesExistsIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> - existsTemplate, TContext = Context>(params?: RequestParams.IndicesExistsTemplate, options?: TransportRequestOptions): TransportRequestPromise> - existsType, TContext = Context>(params?: RequestParams.IndicesExistsType, options?: TransportRequestOptions): TransportRequestPromise> + exists(params?: RequestParams.IndicesExists, options?: TransportRequestOptions): TransportRequestPromise> + existsAlias(params?: RequestParams.IndicesExistsAlias, options?: TransportRequestOptions): TransportRequestPromise> + existsIndexTemplate(params?: RequestParams.IndicesExistsIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> + existsTemplate(params?: RequestParams.IndicesExistsTemplate, options?: TransportRequestOptions): TransportRequestPromise> + existsType(params?: RequestParams.IndicesExistsType, options?: TransportRequestOptions): TransportRequestPromise> flush, TContext = Context>(params?: RequestParams.IndicesFlush, options?: TransportRequestOptions): TransportRequestPromise> flushSynced, TContext = Context>(params?: RequestParams.IndicesFlushSynced, options?: TransportRequestOptions): TransportRequestPromise> forcemerge, TContext = Context>(params?: RequestParams.IndicesForcemerge, options?: TransportRequestOptions): TransportRequestPromise> @@ -331,7 +331,7 @@ interface KibanaClient { stats, TContext = Context>(params?: RequestParams.NodesStats, options?: TransportRequestOptions): TransportRequestPromise> usage, TContext = Context>(params?: RequestParams.NodesUsage, options?: TransportRequestOptions): TransportRequestPromise> } - ping, TContext = Context>(params?: RequestParams.Ping, options?: TransportRequestOptions): TransportRequestPromise> + ping(params?: RequestParams.Ping, options?: TransportRequestOptions): TransportRequestPromise> putScript, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.PutScript, options?: TransportRequestOptions): TransportRequestPromise> rankEval, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.RankEval, options?: TransportRequestOptions): TransportRequestPromise> reindex, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.Reindex, options?: TransportRequestOptions): TransportRequestPromise> diff --git a/docs/reference.asciidoc b/docs/reference.asciidoc index 7a027d187..99a6bb342 100644 --- a/docs/reference.asciidoc +++ b/docs/reference.asciidoc @@ -1056,7 +1056,7 @@ client.clearScroll({ body: object }) ---- -link:{ref}/search-request-body.html#_clear_scroll_api[Documentation] + +link:{ref}/clear-scroll-api.html[Documentation] + [cols=2*] |=== |`scroll_id` or `scrollId` diff --git a/index.d.ts b/index.d.ts index 4f2673652..80f00ab2d 100644 --- a/index.d.ts +++ b/index.d.ts @@ -442,14 +442,14 @@ declare class Client { deleteVotingConfigExclusions, TContext = Context>(callback: callbackFn): TransportRequestCallback deleteVotingConfigExclusions, TContext = Context>(params: RequestParams.ClusterDeleteVotingConfigExclusions, callback: callbackFn): TransportRequestCallback deleteVotingConfigExclusions, TContext = Context>(params: RequestParams.ClusterDeleteVotingConfigExclusions, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - exists_component_template, TContext = Context>(params?: RequestParams.ClusterExistsComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> - exists_component_template, TContext = Context>(callback: callbackFn): TransportRequestCallback - exists_component_template, TContext = Context>(params: RequestParams.ClusterExistsComponentTemplate, callback: callbackFn): TransportRequestCallback - exists_component_template, TContext = Context>(params: RequestParams.ClusterExistsComponentTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - existsComponentTemplate, TContext = Context>(params?: RequestParams.ClusterExistsComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> - existsComponentTemplate, TContext = Context>(callback: callbackFn): TransportRequestCallback - existsComponentTemplate, TContext = Context>(params: RequestParams.ClusterExistsComponentTemplate, callback: callbackFn): TransportRequestCallback - existsComponentTemplate, TContext = Context>(params: RequestParams.ClusterExistsComponentTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + exists_component_template(params?: RequestParams.ClusterExistsComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> + exists_component_template(callback: callbackFn): TransportRequestCallback + exists_component_template(params: RequestParams.ClusterExistsComponentTemplate, callback: callbackFn): TransportRequestCallback + exists_component_template(params: RequestParams.ClusterExistsComponentTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + existsComponentTemplate(params?: RequestParams.ClusterExistsComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> + existsComponentTemplate(callback: callbackFn): TransportRequestCallback + existsComponentTemplate(params: RequestParams.ClusterExistsComponentTemplate, callback: callbackFn): TransportRequestCallback + existsComponentTemplate(params: RequestParams.ClusterExistsComponentTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback get_component_template, TContext = Context>(params?: RequestParams.ClusterGetComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> get_component_template, TContext = Context>(callback: callbackFn): TransportRequestCallback get_component_template, TContext = Context>(params: RequestParams.ClusterGetComponentTemplate, callback: callbackFn): TransportRequestCallback @@ -663,18 +663,18 @@ declare class Client { search, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.EqlSearch, callback: callbackFn): TransportRequestCallback search, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.EqlSearch, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback } - exists, TContext = Context>(params?: RequestParams.Exists, options?: TransportRequestOptions): TransportRequestPromise> - exists, TContext = Context>(callback: callbackFn): TransportRequestCallback - exists, TContext = Context>(params: RequestParams.Exists, callback: callbackFn): TransportRequestCallback - exists, TContext = Context>(params: RequestParams.Exists, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - exists_source, TContext = Context>(params?: RequestParams.ExistsSource, options?: TransportRequestOptions): TransportRequestPromise> - exists_source, TContext = Context>(callback: callbackFn): TransportRequestCallback - exists_source, TContext = Context>(params: RequestParams.ExistsSource, callback: callbackFn): TransportRequestCallback - exists_source, TContext = Context>(params: RequestParams.ExistsSource, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - existsSource, TContext = Context>(params?: RequestParams.ExistsSource, options?: TransportRequestOptions): TransportRequestPromise> - existsSource, TContext = Context>(callback: callbackFn): TransportRequestCallback - existsSource, TContext = Context>(params: RequestParams.ExistsSource, callback: callbackFn): TransportRequestCallback - existsSource, TContext = Context>(params: RequestParams.ExistsSource, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + exists(params?: RequestParams.Exists, options?: TransportRequestOptions): TransportRequestPromise> + exists(callback: callbackFn): TransportRequestCallback + exists(params: RequestParams.Exists, callback: callbackFn): TransportRequestCallback + exists(params: RequestParams.Exists, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + exists_source(params?: RequestParams.ExistsSource, options?: TransportRequestOptions): TransportRequestPromise> + exists_source(callback: callbackFn): TransportRequestCallback + exists_source(params: RequestParams.ExistsSource, callback: callbackFn): TransportRequestCallback + exists_source(params: RequestParams.ExistsSource, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + existsSource(params?: RequestParams.ExistsSource, options?: TransportRequestOptions): TransportRequestPromise> + existsSource(callback: callbackFn): TransportRequestCallback + existsSource(params: RequestParams.ExistsSource, callback: callbackFn): TransportRequestCallback + existsSource(params: RequestParams.ExistsSource, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback explain, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.Explain, options?: TransportRequestOptions): TransportRequestPromise> explain, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback explain, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.Explain, callback: callbackFn): TransportRequestCallback @@ -888,42 +888,42 @@ declare class Client { deleteTemplate, TContext = Context>(callback: callbackFn): TransportRequestCallback deleteTemplate, TContext = Context>(params: RequestParams.IndicesDeleteTemplate, callback: callbackFn): TransportRequestCallback deleteTemplate, TContext = Context>(params: RequestParams.IndicesDeleteTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - exists, TContext = Context>(params?: RequestParams.IndicesExists, options?: TransportRequestOptions): TransportRequestPromise> - exists, TContext = Context>(callback: callbackFn): TransportRequestCallback - exists, TContext = Context>(params: RequestParams.IndicesExists, callback: callbackFn): TransportRequestCallback - exists, TContext = Context>(params: RequestParams.IndicesExists, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - exists_alias, TContext = Context>(params?: RequestParams.IndicesExistsAlias, options?: TransportRequestOptions): TransportRequestPromise> - exists_alias, TContext = Context>(callback: callbackFn): TransportRequestCallback - exists_alias, TContext = Context>(params: RequestParams.IndicesExistsAlias, callback: callbackFn): TransportRequestCallback - exists_alias, TContext = Context>(params: RequestParams.IndicesExistsAlias, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - existsAlias, TContext = Context>(params?: RequestParams.IndicesExistsAlias, options?: TransportRequestOptions): TransportRequestPromise> - existsAlias, TContext = Context>(callback: callbackFn): TransportRequestCallback - existsAlias, TContext = Context>(params: RequestParams.IndicesExistsAlias, callback: callbackFn): TransportRequestCallback - existsAlias, TContext = Context>(params: RequestParams.IndicesExistsAlias, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - exists_index_template, TContext = Context>(params?: RequestParams.IndicesExistsIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> - exists_index_template, TContext = Context>(callback: callbackFn): TransportRequestCallback - exists_index_template, TContext = Context>(params: RequestParams.IndicesExistsIndexTemplate, callback: callbackFn): TransportRequestCallback - exists_index_template, TContext = Context>(params: RequestParams.IndicesExistsIndexTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - existsIndexTemplate, TContext = Context>(params?: RequestParams.IndicesExistsIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> - existsIndexTemplate, TContext = Context>(callback: callbackFn): TransportRequestCallback - existsIndexTemplate, TContext = Context>(params: RequestParams.IndicesExistsIndexTemplate, callback: callbackFn): TransportRequestCallback - existsIndexTemplate, TContext = Context>(params: RequestParams.IndicesExistsIndexTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - exists_template, TContext = Context>(params?: RequestParams.IndicesExistsTemplate, options?: TransportRequestOptions): TransportRequestPromise> - exists_template, TContext = Context>(callback: callbackFn): TransportRequestCallback - exists_template, TContext = Context>(params: RequestParams.IndicesExistsTemplate, callback: callbackFn): TransportRequestCallback - exists_template, TContext = Context>(params: RequestParams.IndicesExistsTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - existsTemplate, TContext = Context>(params?: RequestParams.IndicesExistsTemplate, options?: TransportRequestOptions): TransportRequestPromise> - existsTemplate, TContext = Context>(callback: callbackFn): TransportRequestCallback - existsTemplate, TContext = Context>(params: RequestParams.IndicesExistsTemplate, callback: callbackFn): TransportRequestCallback - existsTemplate, TContext = Context>(params: RequestParams.IndicesExistsTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - exists_type, TContext = Context>(params?: RequestParams.IndicesExistsType, options?: TransportRequestOptions): TransportRequestPromise> - exists_type, TContext = Context>(callback: callbackFn): TransportRequestCallback - exists_type, TContext = Context>(params: RequestParams.IndicesExistsType, callback: callbackFn): TransportRequestCallback - exists_type, TContext = Context>(params: RequestParams.IndicesExistsType, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - existsType, TContext = Context>(params?: RequestParams.IndicesExistsType, options?: TransportRequestOptions): TransportRequestPromise> - existsType, TContext = Context>(callback: callbackFn): TransportRequestCallback - existsType, TContext = Context>(params: RequestParams.IndicesExistsType, callback: callbackFn): TransportRequestCallback - existsType, TContext = Context>(params: RequestParams.IndicesExistsType, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + exists(params?: RequestParams.IndicesExists, options?: TransportRequestOptions): TransportRequestPromise> + exists(callback: callbackFn): TransportRequestCallback + exists(params: RequestParams.IndicesExists, callback: callbackFn): TransportRequestCallback + exists(params: RequestParams.IndicesExists, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + exists_alias(params?: RequestParams.IndicesExistsAlias, options?: TransportRequestOptions): TransportRequestPromise> + exists_alias(callback: callbackFn): TransportRequestCallback + exists_alias(params: RequestParams.IndicesExistsAlias, callback: callbackFn): TransportRequestCallback + exists_alias(params: RequestParams.IndicesExistsAlias, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + existsAlias(params?: RequestParams.IndicesExistsAlias, options?: TransportRequestOptions): TransportRequestPromise> + existsAlias(callback: callbackFn): TransportRequestCallback + existsAlias(params: RequestParams.IndicesExistsAlias, callback: callbackFn): TransportRequestCallback + existsAlias(params: RequestParams.IndicesExistsAlias, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + exists_index_template(params?: RequestParams.IndicesExistsIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> + exists_index_template(callback: callbackFn): TransportRequestCallback + exists_index_template(params: RequestParams.IndicesExistsIndexTemplate, callback: callbackFn): TransportRequestCallback + exists_index_template(params: RequestParams.IndicesExistsIndexTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + existsIndexTemplate(params?: RequestParams.IndicesExistsIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> + existsIndexTemplate(callback: callbackFn): TransportRequestCallback + existsIndexTemplate(params: RequestParams.IndicesExistsIndexTemplate, callback: callbackFn): TransportRequestCallback + existsIndexTemplate(params: RequestParams.IndicesExistsIndexTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + exists_template(params?: RequestParams.IndicesExistsTemplate, options?: TransportRequestOptions): TransportRequestPromise> + exists_template(callback: callbackFn): TransportRequestCallback + exists_template(params: RequestParams.IndicesExistsTemplate, callback: callbackFn): TransportRequestCallback + exists_template(params: RequestParams.IndicesExistsTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + existsTemplate(params?: RequestParams.IndicesExistsTemplate, options?: TransportRequestOptions): TransportRequestPromise> + existsTemplate(callback: callbackFn): TransportRequestCallback + existsTemplate(params: RequestParams.IndicesExistsTemplate, callback: callbackFn): TransportRequestCallback + existsTemplate(params: RequestParams.IndicesExistsTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + exists_type(params?: RequestParams.IndicesExistsType, options?: TransportRequestOptions): TransportRequestPromise> + exists_type(callback: callbackFn): TransportRequestCallback + exists_type(params: RequestParams.IndicesExistsType, callback: callbackFn): TransportRequestCallback + exists_type(params: RequestParams.IndicesExistsType, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + existsType(params?: RequestParams.IndicesExistsType, options?: TransportRequestOptions): TransportRequestPromise> + existsType(callback: callbackFn): TransportRequestCallback + existsType(params: RequestParams.IndicesExistsType, callback: callbackFn): TransportRequestCallback + existsType(params: RequestParams.IndicesExistsType, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback flush, TContext = Context>(params?: RequestParams.IndicesFlush, options?: TransportRequestOptions): TransportRequestPromise> flush, TContext = Context>(callback: callbackFn): TransportRequestCallback flush, TContext = Context>(params: RequestParams.IndicesFlush, callback: callbackFn): TransportRequestCallback @@ -1769,10 +1769,10 @@ declare class Client { usage, TContext = Context>(params: RequestParams.NodesUsage, callback: callbackFn): TransportRequestCallback usage, TContext = Context>(params: RequestParams.NodesUsage, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback } - ping, TContext = Context>(params?: RequestParams.Ping, options?: TransportRequestOptions): TransportRequestPromise> - ping, TContext = Context>(callback: callbackFn): TransportRequestCallback - ping, TContext = Context>(params: RequestParams.Ping, callback: callbackFn): TransportRequestCallback - ping, TContext = Context>(params: RequestParams.Ping, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + ping(params?: RequestParams.Ping, options?: TransportRequestOptions): TransportRequestPromise> + ping(callback: callbackFn): TransportRequestCallback + ping(params: RequestParams.Ping, callback: callbackFn): TransportRequestCallback + ping(params: RequestParams.Ping, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback put_script, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.PutScript, options?: TransportRequestOptions): TransportRequestPromise> put_script, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback put_script, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.PutScript, callback: callbackFn): TransportRequestCallback