add some more docs to the template body type as well as optional composed_of

Signed-off-by: Emma Indal <emma.indahl@gmail.com>
This commit is contained in:
Emma Indal
2022-06-10 10:33:29 +02:00
parent 535847cf14
commit 7c26e81120
2 changed files with 16 additions and 4 deletions
@@ -146,7 +146,8 @@ export type ElasticSearchCustomIndexTemplate = {
// @public
export type ElasticSearchCustomIndexTemplateBody = {
index_patterns: string[];
template: Record<string, any>;
composed_of?: string[];
template?: Record<string, any>;
};
// @public (undocumented)
@@ -50,10 +50,21 @@ export type ElasticSearchCustomIndexTemplate = {
* @public
*/
export type ElasticSearchCustomIndexTemplateBody = {
/**
* Array of wildcard (*) expressions used to match the names of data streams and indices during creation.
*/
index_patterns: string[];
// See available properties of template
// https://www.elastic.co/guide/en/elasticsearch/reference/7.15/indices-put-template.html#put-index-template-api-request-body
template: Record<string, any>;
/**
* An ordered list of component template names.
* Component templates are merged in the order specified,
* meaning that the last component template specified has the highest precedence.
*/
composed_of?: string[];
/**
* See available properties of template
* https://www.elastic.co/guide/en/elasticsearch/reference/7.15/indices-put-template.html#put-index-template-api-request-body
*/
template?: Record<string, any>;
};
/**