Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions src/es/apis/bulk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,26 @@
*/

/*
* This file was auto generated by elastic/elastic-client-generator-js.
* DO NOT MODIFY IT BY HAND. Instead, modify the source open API file,
* This file was automatically generated by elastic/elastic-client-generator-js.
* DO NOT MODIFY IT BY HAND. Instead, modify the source open api file,
* and elastic/elastic-client-generator-js to regenerate this file again.
*/

import { z } from 'zod'
import { BulkRequest } from './schemas/_global.ts'
import type { EsApiDefinition } from '../types.ts'

const BulkRequestPassthrough = BulkRequest.extend({
operations: z.array(z.any()).optional().meta({ found_in: 'body' })
})

export const bulkApis: EsApiDefinition[] = [
{
name: 'bulk',
description: 'Bulk index or delete documents.',
method: 'POST',
path: '/{index}/_bulk',
input: BulkRequest,
bodyFormat: 'ndjson'
}
{
name: "bulk",
description: "Bulk index or delete documents.",
method: "POST",
path: "/{index}/_bulk",
input: BulkRequestPassthrough,
bodyFormat: 'ndjson',
},
]
25 changes: 15 additions & 10 deletions src/es/apis/msearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,26 @@
*/

/*
* This file was auto generated by elastic/elastic-client-generator-js.
* DO NOT MODIFY IT BY HAND. Instead, modify the source open API file,
* This file was automatically generated by elastic/elastic-client-generator-js.
* DO NOT MODIFY IT BY HAND. Instead, modify the source open api file,
* and elastic/elastic-client-generator-js to regenerate this file again.
*/

import { z } from 'zod'
import { MsearchRequest } from './schemas/_global.ts'
import type { EsApiDefinition } from '../types.ts'

const MsearchRequestPassthrough = MsearchRequest.extend({
searches: z.array(z.any()).optional().meta({ found_in: 'body' })
})

export const msearchApis: EsApiDefinition[] = [
{
name: 'msearch',
description: 'Run multiple searches.',
method: 'GET',
path: '/{index}/_msearch',
input: MsearchRequest,
bodyFormat: 'ndjson'
}
{
name: "msearch",
description: "Run multiple searches.",
method: "GET",
path: "/{index}/_msearch",
input: MsearchRequestPassthrough,
bodyFormat: 'ndjson',
},
]
25 changes: 15 additions & 10 deletions src/es/apis/msearch_template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,26 @@
*/

/*
* This file was auto generated by elastic/elastic-client-generator-js.
* DO NOT MODIFY IT BY HAND. Instead, modify the source open API file,
* This file was automatically generated by elastic/elastic-client-generator-js.
* DO NOT MODIFY IT BY HAND. Instead, modify the source open api file,
* and elastic/elastic-client-generator-js to regenerate this file again.
*/

import { z } from 'zod'
import { MsearchTemplateRequest } from './schemas/_global.ts'
import type { EsApiDefinition } from '../types.ts'

const MsearchTemplateRequestPassthrough = MsearchTemplateRequest.extend({
search_templates: z.array(z.any()).optional().meta({ found_in: 'body' })
})

export const msearchTemplateApis: EsApiDefinition[] = [
{
name: 'msearch-template',
description: 'Run multiple templated searches.',
method: 'GET',
path: '/{index}/_msearch/template',
input: MsearchTemplateRequest,
bodyFormat: 'ndjson'
}
{
name: "msearch-template",
description: "Run multiple templated searches.",
method: "GET",
path: "/{index}/_msearch/template",
input: MsearchTemplateRequestPassthrough,
bodyFormat: 'ndjson',
},
]