Patch deprecated parameters (#851)
* Updated code generation * API generation * API generation * Updated code generation
This commit is contained in:
committed by
delvedor
parent
b2fbcfd8e2
commit
0efa0df934
56
api/requestParams.d.ts
vendored
56
api/requestParams.d.ts
vendored
@ -30,6 +30,8 @@ export interface Generic {
|
||||
export interface Bulk<T = any> extends Generic {
|
||||
index?: string;
|
||||
type?: string;
|
||||
_source_exclude?: string | string[];
|
||||
_source_include?: string | string[];
|
||||
wait_for_active_shards?: string;
|
||||
refresh?: 'true' | 'false' | 'wait_for';
|
||||
routing?: string;
|
||||
@ -386,7 +388,8 @@ 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;
|
||||
analyze_wildcard?: boolean;
|
||||
default_operator?: 'AND' | 'OR';
|
||||
@ -436,7 +439,13 @@ 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;
|
||||
@ -453,7 +462,13 @@ 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;
|
||||
@ -469,7 +484,13 @@ 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';
|
||||
@ -498,7 +519,13 @@ 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;
|
||||
@ -522,7 +549,13 @@ 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;
|
||||
@ -936,6 +969,8 @@ export interface IngestSimulate<T = any> extends Generic {
|
||||
export interface Mget<T = any> extends Generic {
|
||||
index?: string;
|
||||
type?: string;
|
||||
_source_exclude?: string | string[];
|
||||
_source_include?: string | string[];
|
||||
stored_fields?: string | string[];
|
||||
preference?: string;
|
||||
realtime?: boolean;
|
||||
@ -949,7 +984,6 @@ 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;
|
||||
@ -961,7 +995,6 @@ 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;
|
||||
@ -971,7 +1004,6 @@ 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;
|
||||
@ -1082,7 +1114,8 @@ 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;
|
||||
analyze_wildcard?: boolean;
|
||||
default_operator?: 'AND' | 'OR';
|
||||
@ -1139,7 +1172,6 @@ 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;
|
||||
@ -1243,7 +1275,10 @@ 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;
|
||||
@ -1263,7 +1298,13 @@ 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[];
|
||||
@ -1284,7 +1325,8 @@ 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;
|
||||
analyze_wildcard?: boolean;
|
||||
default_operator?: 'AND' | 'OR';
|
||||
|
||||
Reference in New Issue
Block a user