Skip to content

Commit 4f07a66

Browse files
l-trottagithub-actions[bot]
authored andcommitted
making response binary (#3639)
(cherry picked from commit 98f0633)
1 parent f0d898d commit 4f07a66

File tree

9 files changed

+38
-144
lines changed

9 files changed

+38
-144
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 4 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema-serverless.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 18 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 4 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_types/Binary.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
// Vector tile response
2121
export type MapboxVectorTiles = ArrayBuffer
2222

23-
// ES|QL columns
24-
export type EsqlColumns = ArrayBuffer
23+
// ES|QL generic response
24+
export type EsqlResult = ArrayBuffer
2525

2626
// Streaming endpoints response
2727
export type StreamResult = ArrayBuffer

specification/esql/async_query/AsyncQueryResponse.ts

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,8 @@
1717
* under the License.
1818
*/
1919

20-
import { EsqlColumns } from '@_types/Binary'
20+
import { EsqlResult } from '@_types/Binary'
2121

2222
export class Response {
23-
body: {
24-
columns?: EsqlColumns
25-
/**
26-
* A query identifier that is provided only when one of the following conditions is met:
27-
*
28-
* * A query request does not return complete results during the period specified in the `wait_for_completion_timeout` parameter.
29-
* * The `keep_on_completion` parameter value is true.
30-
*
31-
* You can use this ID with the `GET /_query/async/<id>` API to get the current status and available results for the query.
32-
*/
33-
id?: string
34-
/**
35-
* Indicates whether the query is still running.
36-
* If the value is false, the async query has finished and the results are returned.
37-
*/
38-
is_running: boolean
39-
}
23+
body: EsqlResult
4024
}

specification/esql/async_query_get/AsyncQueryGetResponse.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,8 @@
1717
* under the License.
1818
*/
1919

20-
import { EsqlColumns } from '@_types/Binary'
20+
import { EsqlResult } from '@_types/Binary'
2121

2222
export class Response {
23-
body: {
24-
columns?: EsqlColumns
25-
/**
26-
* Indicates whether the query is still running.
27-
* If the value is false, the async query has finished and the results are returned.
28-
*/
29-
is_running: boolean
30-
}
23+
body: EsqlResult
3124
}

specification/esql/query/QueryResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
* under the License.
1818
*/
1919

20-
import { EsqlColumns } from '@_types/Binary'
20+
import { EsqlResult } from '@_types/Binary'
2121

2222
export class Response {
2323
/** @codegen_name data */
24-
body: EsqlColumns
24+
body: EsqlResult
2525
}

0 commit comments

Comments
 (0)