API generation

This commit is contained in:
delvedor
2019-05-16 16:54:53 -04:00
parent 0efa0df934
commit 30c3afe150
11 changed files with 116 additions and 53 deletions

View File

@ -388,6 +388,7 @@ export interface Delete extends Generic {
export interface DeleteByQuery<T = any> extends Generic {
index: string | string[];
type?: string | string[];
_source_exclude?: string | string[];
_source_include?: string | string[];
analyzer?: string;
@ -439,13 +440,9 @@ export interface DeleteScript extends Generic {
export interface Exists extends Generic {
id: string;
index: string;
<<<<<<< HEAD
type: string;
=======
type?: string;
_source_exclude?: string | string[];
_source_include?: string | string[];
>>>>>>> 844206e... Patch deprecated parameters (#851)
stored_fields?: string | string[];
parent?: string;
preference?: string;
@ -462,13 +459,9 @@ export interface Exists extends Generic {
export interface ExistsSource extends Generic {
id: string;
index: string;
<<<<<<< HEAD
type: string;
=======
type?: string;
_source_exclude?: string | string[];
_source_include?: string | string[];
>>>>>>> 844206e... Patch deprecated parameters (#851)
parent?: string;
preference?: string;
realtime?: boolean;
@ -484,13 +477,9 @@ export interface ExistsSource extends Generic {
export interface Explain<T = any> extends Generic {
id: string;
index: string;
<<<<<<< HEAD
type: string;
=======
type?: string;
_source_exclude?: string | string[];
_source_include?: string | string[];
>>>>>>> 844206e... Patch deprecated parameters (#851)
analyze_wildcard?: boolean;
analyzer?: string;
default_operator?: 'AND' | 'OR';
@ -519,13 +508,9 @@ export interface FieldCaps<T = any> extends Generic {
export interface Get extends Generic {
id: string;
index: string;
<<<<<<< HEAD
type: string;
=======
type?: string;
_source_exclude?: string | string[];
_source_include?: string | string[];
>>>>>>> 844206e... Patch deprecated parameters (#851)
stored_fields?: string | string[];
parent?: string;
preference?: string;
@ -549,13 +534,9 @@ export interface GetScript extends Generic {
export interface GetSource extends Generic {
id: string;
index: string;
<<<<<<< HEAD
type: string;
=======
type?: string;
_source_exclude?: string | string[];
_source_include?: string | string[];
>>>>>>> 844206e... Patch deprecated parameters (#851)
parent?: string;
preference?: string;
realtime?: boolean;
@ -984,6 +965,7 @@ export interface Mget<T = any> extends Generic {
export interface Msearch<T = any> extends Generic {
index?: string | string[];
type?: string | string[];
search_type?: 'query_then_fetch' | 'query_and_fetch' | 'dfs_query_then_fetch' | 'dfs_query_and_fetch';
max_concurrent_searches?: number;
typed_keys?: boolean;
@ -995,6 +977,7 @@ export interface Msearch<T = any> extends Generic {
export interface MsearchTemplate<T = any> extends Generic {
index?: string | string[];
type?: string | string[];
search_type?: 'query_then_fetch' | 'query_and_fetch' | 'dfs_query_then_fetch' | 'dfs_query_and_fetch';
typed_keys?: boolean;
max_concurrent_searches?: number;
@ -1004,6 +987,7 @@ export interface MsearchTemplate<T = any> extends Generic {
export interface Mtermvectors<T = any> extends Generic {
index?: string;
type?: string;
ids?: string | string[];
term_statistics?: boolean;
field_statistics?: boolean;
@ -1114,6 +1098,7 @@ export interface Scroll<T = any> extends Generic {
export interface Search<T = any> extends Generic {
index?: string | string[];
type?: string | string[];
_source_exclude?: string | string[];
_source_include?: string | string[];
analyzer?: string;
@ -1172,6 +1157,7 @@ export interface SearchShards extends Generic {
export interface SearchTemplate<T = any> extends Generic {
index?: string | string[];
type?: string | string[];
ignore_unavailable?: boolean;
ignore_throttled?: boolean;
allow_no_indices?: boolean;
@ -1275,10 +1261,7 @@ export interface TasksList extends Generic {
export interface Termvectors<T = any> extends Generic {
index: string;
<<<<<<< HEAD
type: string;
=======
>>>>>>> 844206e... Patch deprecated parameters (#851)
id?: string;
term_statistics?: boolean;
field_statistics?: boolean;
@ -1298,13 +1281,9 @@ export interface Termvectors<T = any> extends Generic {
export interface Update<T = any> extends Generic {
id: string;
index: string;
<<<<<<< HEAD
type: string;
=======
type?: string;
_source_exclude?: string | string[];
_source_include?: string | string[];
>>>>>>> 844206e... Patch deprecated parameters (#851)
wait_for_active_shards?: string;
fields?: string | string[];
_source?: string | string[];
@ -1325,6 +1304,7 @@ export interface Update<T = any> extends Generic {
export interface UpdateByQuery<T = any> extends Generic {
index: string | string[];
type?: string | string[];
_source_exclude?: string | string[];
_source_include?: string | string[];
analyzer?: string;