From 0b965c8c4dae33d464e5c370612c2e690f95904c Mon Sep 17 00:00:00 2001 From: delvedor Date: Thu, 21 Oct 2021 09:50:21 +0200 Subject: [PATCH] API generation --- src/api/api/async_search.ts | 2 +- src/api/api/delete_by_query.ts | 2 +- src/api/api/eql.ts | 2 +- src/api/api/indices.ts | 2 +- src/api/api/ml.ts | 8 ++++---- src/api/api/mtermvectors.ts | 2 +- src/api/api/search.ts | 2 +- src/api/api/search_mvt.ts | 2 +- src/api/api/search_template.ts | 2 +- src/api/api/update.ts | 2 +- src/api/api/update_by_query.ts | 2 +- 11 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/api/api/async_search.ts b/src/api/api/async_search.ts index 264c881b4..4ffc92af2 100644 --- a/src/api/api/async_search.ts +++ b/src/api/api/async_search.ts @@ -114,7 +114,7 @@ export default class AsyncSearch { async submit (this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptions): Promise> async submit (this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['index'] - const acceptedBody: string[] = ['aggs', 'aggregations', 'collapse', 'highlight', 'indices_boost', 'min_score', 'post_filter', 'profile', 'query', 'rescore', 'script_fields', 'search_after', 'slice', 'fields', 'suggest', 'pit', 'runtime_mappings'] + const acceptedBody: string[] = ['aggs', 'aggregations', 'collapse', 'explain', 'from', 'highlight', 'track_total_hits', 'indices_boost', 'docvalue_fields', 'min_score', 'post_filter', 'profile', 'query', 'rescore', 'script_fields', 'search_after', 'size', 'slice', 'sort', '_source', 'fields', 'suggest', 'terminate_after', 'timeout', 'track_scores', 'version', 'seq_no_primary_term', 'stored_fields', 'pit', 'runtime_mappings', 'stats'] const querystring: Record = {} // @ts-expect-error let body: Record = params?.body ?? undefined diff --git a/src/api/api/delete_by_query.ts b/src/api/api/delete_by_query.ts index d957c4faf..edb765b7c 100644 --- a/src/api/api/delete_by_query.ts +++ b/src/api/api/delete_by_query.ts @@ -42,7 +42,7 @@ export default async function DeleteByQueryApi (this: That, params: T.DeleteByQu export default async function DeleteByQueryApi (this: That, params: T.DeleteByQueryRequest | TB.DeleteByQueryRequest, options?: TransportRequestOptions): Promise export default async function DeleteByQueryApi (this: That, params: T.DeleteByQueryRequest | TB.DeleteByQueryRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['index'] - const acceptedBody: string[] = ['query', 'slice'] + const acceptedBody: string[] = ['max_docs', 'query', 'slice'] const querystring: Record = {} // @ts-expect-error let body: Record = params.body ?? undefined diff --git a/src/api/api/eql.ts b/src/api/api/eql.ts index 49d2bfb9d..e5679de75 100644 --- a/src/api/api/eql.ts +++ b/src/api/api/eql.ts @@ -114,7 +114,7 @@ export default class Eql { async search (this: That, params: T.EqlSearchRequest | TB.EqlSearchRequest, options?: TransportRequestOptions): Promise> async search (this: That, params: T.EqlSearchRequest | TB.EqlSearchRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['index'] - const acceptedBody: string[] = ['query', 'case_sensitive', 'event_category_field', 'tiebreaker_field', 'timestamp_field', 'fetch_size', 'filter', 'size', 'fields', 'result_position'] + const acceptedBody: string[] = ['query', 'case_sensitive', 'event_category_field', 'tiebreaker_field', 'timestamp_field', 'fetch_size', 'filter', 'keep_alive', 'keep_on_completion', 'wait_for_completion_timeout', 'size', 'fields', 'result_position'] const querystring: Record = {} // @ts-expect-error let body: Record = params.body ?? undefined diff --git a/src/api/api/indices.ts b/src/api/api/indices.ts index 59a55d524..213998e31 100644 --- a/src/api/api/indices.ts +++ b/src/api/api/indices.ts @@ -1082,7 +1082,7 @@ export default class Indices { async putTemplate (this: That, params: T.IndicesPutTemplateRequest | TB.IndicesPutTemplateRequest, options?: TransportRequestOptions): Promise async putTemplate (this: That, params: T.IndicesPutTemplateRequest | TB.IndicesPutTemplateRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['name'] - const acceptedBody: string[] = ['aliases', 'index_patterns', 'mappings', 'settings', 'version'] + const acceptedBody: string[] = ['aliases', 'index_patterns', 'mappings', 'order', 'settings', 'version'] const querystring: Record = {} // @ts-expect-error let body: Record = params.body ?? undefined diff --git a/src/api/api/ml.ts b/src/api/api/ml.ts index 945dad7a9..ad376d4a7 100644 --- a/src/api/api/ml.ts +++ b/src/api/api/ml.ts @@ -497,7 +497,7 @@ export default class Ml { async getBuckets (this: That, params: T.MlGetBucketsRequest | TB.MlGetBucketsRequest, options?: TransportRequestOptions): Promise async getBuckets (this: That, params: T.MlGetBucketsRequest | TB.MlGetBucketsRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['job_id', 'timestamp'] - const acceptedBody: string[] = ['anomaly_score', 'expand', 'page'] + const acceptedBody: string[] = ['anomaly_score', 'desc', 'exclude_interim', 'expand', 'page', 'sort', 'start', 'end'] const querystring: Record = {} // @ts-expect-error let body: Record = params.body ?? undefined @@ -920,7 +920,7 @@ export default class Ml { async getRecords (this: That, params: T.MlGetRecordsRequest | TB.MlGetRecordsRequest, options?: TransportRequestOptions): Promise async getRecords (this: That, params: T.MlGetRecordsRequest | TB.MlGetRecordsRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['job_id'] - const acceptedBody: string[] = ['desc', 'page', 'record_score', 'sort'] + const acceptedBody: string[] = ['desc', 'exclude_interim', 'page', 'record_score', 'sort', 'start', 'end'] const querystring: Record = {} // @ts-expect-error let body: Record = params.body ?? undefined @@ -1581,7 +1581,7 @@ export default class Ml { async startDatafeed (this: That, params: T.MlStartDatafeedRequest | TB.MlStartDatafeedRequest, options?: TransportRequestOptions): Promise async startDatafeed (this: That, params: T.MlStartDatafeedRequest | TB.MlStartDatafeedRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['datafeed_id'] - const acceptedBody: string[] = ['end', 'timeout'] + const acceptedBody: string[] = ['end', 'start', 'timeout'] const querystring: Record = {} // @ts-expect-error let body: Record = params.body ?? undefined @@ -1653,7 +1653,7 @@ export default class Ml { async stopDatafeed (this: That, params: T.MlStopDatafeedRequest | TB.MlStopDatafeedRequest, options?: TransportRequestOptions): Promise async stopDatafeed (this: That, params: T.MlStopDatafeedRequest | TB.MlStopDatafeedRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['datafeed_id'] - const acceptedBody: string[] = ['timeout'] + const acceptedBody: string[] = ['force', 'timeout'] const querystring: Record = {} // @ts-expect-error let body: Record = params.body ?? undefined diff --git a/src/api/api/mtermvectors.ts b/src/api/api/mtermvectors.ts index 449504437..1aed66f78 100644 --- a/src/api/api/mtermvectors.ts +++ b/src/api/api/mtermvectors.ts @@ -42,7 +42,7 @@ export default async function MtermvectorsApi (this: That, params?: T.Mtermvecto export default async function MtermvectorsApi (this: That, params?: T.MtermvectorsRequest | TB.MtermvectorsRequest, options?: TransportRequestOptions): Promise export default async function MtermvectorsApi (this: That, params?: T.MtermvectorsRequest | TB.MtermvectorsRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['index'] - const acceptedBody: string[] = ['docs'] + const acceptedBody: string[] = ['docs', 'ids'] const querystring: Record = {} // @ts-expect-error let body: Record = params?.body ?? undefined diff --git a/src/api/api/search.ts b/src/api/api/search.ts index a888230c5..38715356b 100644 --- a/src/api/api/search.ts +++ b/src/api/api/search.ts @@ -42,7 +42,7 @@ export default async function SearchApi (this: That, params export default async function SearchApi (this: That, params?: T.SearchRequest | TB.SearchRequest, options?: TransportRequestOptions): Promise> export default async function SearchApi (this: That, params?: T.SearchRequest | TB.SearchRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['index'] - const acceptedBody: string[] = ['aggs', 'aggregations', 'collapse', 'highlight', 'indices_boost', 'min_score', 'post_filter', 'profile', 'query', 'rescore', 'script_fields', 'search_after', 'slice', 'fields', 'suggest', 'pit', 'runtime_mappings'] + const acceptedBody: string[] = ['aggs', 'aggregations', 'collapse', 'explain', 'from', 'highlight', 'track_total_hits', 'indices_boost', 'docvalue_fields', 'min_score', 'post_filter', 'profile', 'query', 'rescore', 'script_fields', 'search_after', 'size', 'slice', 'sort', '_source', 'fields', 'suggest', 'terminate_after', 'timeout', 'track_scores', 'version', 'seq_no_primary_term', 'stored_fields', 'pit', 'runtime_mappings', 'stats'] const querystring: Record = {} // @ts-expect-error let body: Record = params?.body ?? undefined diff --git a/src/api/api/search_mvt.ts b/src/api/api/search_mvt.ts index e15c7e2d0..15980f840 100644 --- a/src/api/api/search_mvt.ts +++ b/src/api/api/search_mvt.ts @@ -42,7 +42,7 @@ export default async function SearchMvtApi (this: That, params: T.SearchMvtReque export default async function SearchMvtApi (this: That, params: T.SearchMvtRequest | TB.SearchMvtRequest, options?: TransportRequestOptions): Promise export default async function SearchMvtApi (this: That, params: T.SearchMvtRequest | TB.SearchMvtRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['index', 'field', 'zoom', 'x', 'y'] - const acceptedBody: string[] = ['aggs', 'fields', 'query', 'runtime_mappings', 'sort'] + const acceptedBody: string[] = ['aggs', 'exact_bounds', 'extent', 'fields', 'grid_precision', 'grid_type', 'query', 'runtime_mappings', 'size', 'sort'] const querystring: Record = {} // @ts-expect-error let body: Record = params.body ?? undefined diff --git a/src/api/api/search_template.ts b/src/api/api/search_template.ts index 5c240f484..97a260fc3 100644 --- a/src/api/api/search_template.ts +++ b/src/api/api/search_template.ts @@ -42,7 +42,7 @@ export default async function SearchTemplateApi (this: That export default async function SearchTemplateApi (this: That, params?: T.SearchTemplateRequest | TB.SearchTemplateRequest, options?: TransportRequestOptions): Promise> export default async function SearchTemplateApi (this: That, params?: T.SearchTemplateRequest | TB.SearchTemplateRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['index'] - const acceptedBody: string[] = ['id', 'params', 'source'] + const acceptedBody: string[] = ['explain', 'id', 'params', 'profile', 'source'] const querystring: Record = {} // @ts-expect-error let body: Record = params?.body ?? undefined diff --git a/src/api/api/update.ts b/src/api/api/update.ts index 4ab127557..c82e94204 100644 --- a/src/api/api/update.ts +++ b/src/api/api/update.ts @@ -42,7 +42,7 @@ export default async function UpdateApi (this: That, params: T.UpdateRequest | TB.UpdateRequest, options?: TransportRequestOptions): Promise> export default async function UpdateApi (this: That, params: T.UpdateRequest | TB.UpdateRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['id', 'index', 'type'] - const acceptedBody: string[] = ['detect_noop', 'doc', 'doc_as_upsert', 'script', 'scripted_upsert', 'upsert'] + const acceptedBody: string[] = ['detect_noop', 'doc', 'doc_as_upsert', 'script', 'scripted_upsert', '_source', 'upsert'] const querystring: Record = {} // @ts-expect-error let body: Record = params.body ?? undefined diff --git a/src/api/api/update_by_query.ts b/src/api/api/update_by_query.ts index 2dc41349e..a49791570 100644 --- a/src/api/api/update_by_query.ts +++ b/src/api/api/update_by_query.ts @@ -42,7 +42,7 @@ export default async function UpdateByQueryApi (this: That, params: T.UpdateByQu export default async function UpdateByQueryApi (this: That, params: T.UpdateByQueryRequest | TB.UpdateByQueryRequest, options?: TransportRequestOptions): Promise export default async function UpdateByQueryApi (this: That, params: T.UpdateByQueryRequest | TB.UpdateByQueryRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['index'] - const acceptedBody: string[] = ['max_docs', 'query', 'script', 'slice'] + const acceptedBody: string[] = ['max_docs', 'query', 'script', 'slice', 'conflicts'] const querystring: Record = {} // @ts-expect-error let body: Record = params.body ?? undefined