Skip to content

Commit

Permalink
API generation
Browse files Browse the repository at this point in the history
  • Loading branch information
delvedor committed Sep 28, 2021
1 parent e09a480 commit 385f38c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/api/api/async_search.ts
Expand Up @@ -132,7 +132,7 @@ export default class AsyncSearch {
async submit<TDocument = unknown> (this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptions): Promise<T.AsyncSearchSubmitResponse<TDocument>>
async submit<TDocument = unknown> (this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = ['index']
const acceptedQuery: string[] = ['error_trace', 'filter_path', 'human', 'pretty', 'source_query_string']
const acceptedQuery: string[] = ['batched_reduce_size', 'wait_for_completion_timeout', 'keep_on_completion', 'typed_keys', 'error_trace', 'filter_path', 'human', 'pretty', 'source_query_string']
const querystring: Record<string, any> = {}
// @ts-expect-error
let body: Record<string, any> = params?.body ?? undefined
Expand Down
4 changes: 0 additions & 4 deletions src/api/typesWithBodyKey.ts
Expand Up @@ -5099,7 +5099,6 @@ export interface AsyncSearchSubmitRequest extends RequestBase {
allow_partial_search_results?: boolean
analyzer?: string
analyze_wildcard?: boolean
batched_reduce_size?: long
collapse?: SearchFieldCollapse
default_operator?: DefaultOperator
df?: string
Expand All @@ -5112,7 +5111,6 @@ export interface AsyncSearchSubmitRequest extends RequestBase {
ignore_unavailable?: boolean
indices_boost?: Record<IndexName, double>[]
keep_alive?: Time
keep_on_completion?: boolean
lenient?: boolean
max_concurrent_shard_requests?: long
min_score?: double
Expand Down Expand Up @@ -5142,9 +5140,7 @@ export interface AsyncSearchSubmitRequest extends RequestBase {
timeout?: string
track_scores?: boolean
track_total_hits?: boolean
typed_keys?: boolean
version?: boolean
wait_for_completion_timeout?: Time
fields?: (Field | DateField)[]
runtime_mappings?: MappingRuntimeFields
}
Expand Down

0 comments on commit 385f38c

Please sign in to comment.