API generation

This commit is contained in:
delvedor
2020-08-03 12:00:49 +02:00
parent e6f1b645a2
commit 573b29777c
211 changed files with 471 additions and 507 deletions

View File

@ -667,17 +667,6 @@ export interface IndicesCreate<T = RequestBody> extends Generic {
body?: T;
}
export interface IndicesCreateDataStream<T = RequestBody> extends Generic {
name: string;
body?: T;
}
export interface IndicesDataStreamsStats extends Generic {
name?: string | string[];
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
forbid_closed_indices?: boolean;
}
export interface IndicesDelete extends Generic {
index: string | string[];
timeout?: string;
@ -694,10 +683,6 @@ export interface IndicesDeleteAlias extends Generic {
master_timeout?: string;
}
export interface IndicesDeleteDataStream extends Generic {
name: string | string[];
}
export interface IndicesDeleteIndexTemplate extends Generic {
name: string;
timeout?: string;
@ -799,10 +784,6 @@ export interface IndicesGetAlias extends Generic {
local?: boolean;
}
export interface IndicesGetDataStream extends Generic {
name?: string | string[];
}
export interface IndicesGetFieldMapping extends Generic {
fields: string | string[];
index?: string | string[];
@ -1763,6 +1744,19 @@ export interface IlmStart extends Generic {
export interface IlmStop extends Generic {
}
export interface IndicesCreateDataStream<T = RequestBody> extends Generic {
name: string;
body?: T;
}
export interface IndicesDataStreamsStats extends Generic {
name?: string | string[];
}
export interface IndicesDeleteDataStream extends Generic {
name: string | string[];
}
export interface IndicesFreeze extends Generic {
index: string;
timeout?: string;
@ -1773,6 +1767,10 @@ export interface IndicesFreeze extends Generic {
wait_for_active_shards?: string;
}
export interface IndicesGetDataStream extends Generic {
name?: string | string[];
}
export interface IndicesReloadSearchAnalyzers extends Generic {
index: string | string[];
ignore_unavailable?: boolean;