Auto-generated code for main (#2261)
This commit is contained in:
@ -52,7 +52,7 @@ export default class Esql {
|
||||
async query (this: That, params: T.EsqlQueryRequest | TB.EsqlQueryRequest, options?: TransportRequestOptions): Promise<T.EsqlQueryResponse>
|
||||
async query (this: That, params: T.EsqlQueryRequest | TB.EsqlQueryRequest, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = []
|
||||
const acceptedBody: string[] = ['columnar', 'filter', 'locale', 'params', 'query', 'version']
|
||||
const acceptedBody: string[] = ['columnar', 'filter', 'locale', 'params', 'query']
|
||||
const querystring: Record<string, any> = {}
|
||||
// @ts-expect-error
|
||||
const userBody: any = params?.body
|
||||
@ -63,12 +63,6 @@ export default class Esql {
|
||||
body = userBody != null ? { ...userBody } : undefined
|
||||
}
|
||||
|
||||
// a version number is required for all ES|QL queries.
|
||||
// inject a default value if none is provided.
|
||||
if (typeof body === 'object' && body.version == null) {
|
||||
body.version = '2024.04.01'
|
||||
}
|
||||
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body ?? {}
|
||||
|
||||
@ -9693,12 +9693,6 @@ export type EqlSearchResponse<TEvent = unknown> = EqlEqlSearchResponseBase<TEven
|
||||
|
||||
export type EqlSearchResultPosition = 'tail' | 'head'
|
||||
|
||||
export type EsqlBaseServerlessEsqlVersion = '2024.04.01'
|
||||
|
||||
export type EsqlBaseStatefulEsqlVersion = '2024.04.01'
|
||||
|
||||
export type EsqlEsqlVersion = '2024.04.01'
|
||||
|
||||
export interface EsqlQueryRequest extends RequestBase {
|
||||
format?: string
|
||||
delimiter?: string
|
||||
@ -9707,7 +9701,6 @@ export interface EsqlQueryRequest extends RequestBase {
|
||||
locale?: string
|
||||
params?: ScalarValue[]
|
||||
query: string
|
||||
version?: EsqlEsqlVersion
|
||||
}
|
||||
|
||||
export type EsqlQueryResponse = EsqlColumns
|
||||
@ -10555,7 +10548,7 @@ export interface IndicesStorage {
|
||||
allow_mmap?: boolean
|
||||
}
|
||||
|
||||
export type IndicesStorageType = 'fs' | '' | 'niofs' | 'mmapfs' | 'hybridfs' | string
|
||||
export type IndicesStorageType = 'fs' | 'niofs' | 'mmapfs' | 'hybridfs' | string
|
||||
|
||||
export interface IndicesTemplateMapping {
|
||||
aliases: Record<IndexName, IndicesAlias>
|
||||
|
||||
@ -9848,12 +9848,6 @@ export type EqlSearchResponse<TEvent = unknown> = EqlEqlSearchResponseBase<TEven
|
||||
|
||||
export type EqlSearchResultPosition = 'tail' | 'head'
|
||||
|
||||
export type EsqlBaseServerlessEsqlVersion = '2024.04.01'
|
||||
|
||||
export type EsqlBaseStatefulEsqlVersion = '2024.04.01'
|
||||
|
||||
export type EsqlEsqlVersion = '2024.04.01'
|
||||
|
||||
export interface EsqlQueryRequest extends RequestBase {
|
||||
format?: string
|
||||
delimiter?: string
|
||||
@ -9864,7 +9858,6 @@ export interface EsqlQueryRequest extends RequestBase {
|
||||
locale?: string
|
||||
params?: ScalarValue[]
|
||||
query: string
|
||||
version?: EsqlEsqlVersion
|
||||
}
|
||||
}
|
||||
|
||||
@ -10729,7 +10722,7 @@ export interface IndicesStorage {
|
||||
allow_mmap?: boolean
|
||||
}
|
||||
|
||||
export type IndicesStorageType = 'fs' | '' | 'niofs' | 'mmapfs' | 'hybridfs' | string
|
||||
export type IndicesStorageType = 'fs' | 'niofs' | 'mmapfs' | 'hybridfs' | string
|
||||
|
||||
export interface IndicesTemplateMapping {
|
||||
aliases: Record<IndexName, IndicesAlias>
|
||||
|
||||
Reference in New Issue
Block a user