@elastic/elasticsearch 7.11.0 → 7.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/README.md +1 -1
  2. package/api/api/async_search.js +11 -11
  3. package/api/api/autoscaling.js +12 -12
  4. package/api/api/bulk.js +4 -4
  5. package/api/api/cat.js +52 -52
  6. package/api/api/ccr.js +40 -40
  7. package/api/api/clear_scroll.js +2 -2
  8. package/api/api/close_point_in_time.js +2 -2
  9. package/api/api/cluster.js +36 -36
  10. package/api/api/count.js +3 -3
  11. package/api/api/create.js +5 -5
  12. package/api/api/dangling_indices.js +8 -8
  13. package/api/api/delete.js +4 -4
  14. package/api/api/delete_by_query.js +5 -5
  15. package/api/api/delete_by_query_rethrottle.js +4 -4
  16. package/api/api/delete_script.js +3 -3
  17. package/api/api/enrich.js +14 -14
  18. package/api/api/eql.js +41 -10
  19. package/api/api/exists.js +4 -4
  20. package/api/api/exists_source.js +6 -6
  21. package/api/api/explain.js +4 -4
  22. package/api/api/features.js +59 -0
  23. package/api/api/field_caps.js +2 -2
  24. package/api/api/get.js +4 -4
  25. package/api/api/get_script.js +3 -3
  26. package/api/api/get_script_context.js +2 -2
  27. package/api/api/get_script_languages.js +2 -2
  28. package/api/api/get_source.js +4 -4
  29. package/api/api/graph.js +4 -4
  30. package/api/api/ilm.js +26 -26
  31. package/api/api/index.js +4 -4
  32. package/api/api/indices.js +162 -162
  33. package/api/api/info.js +2 -2
  34. package/api/api/ingest.js +14 -14
  35. package/api/api/license.js +14 -14
  36. package/api/api/logstash.js +125 -0
  37. package/api/api/mget.js +4 -4
  38. package/api/api/migration.js +2 -2
  39. package/api/api/ml.js +198 -226
  40. package/api/api/monitoring.js +3 -3
  41. package/api/api/msearch.js +4 -4
  42. package/api/api/msearch_template.js +4 -4
  43. package/api/api/mtermvectors.js +3 -3
  44. package/api/api/nodes.js +10 -10
  45. package/api/api/open_point_in_time.js +2 -2
  46. package/api/api/ping.js +2 -2
  47. package/api/api/put_script.js +5 -5
  48. package/api/api/rank_eval.js +3 -3
  49. package/api/api/reindex.js +3 -3
  50. package/api/api/reindex_rethrottle.js +4 -4
  51. package/api/api/render_search_template.js +2 -2
  52. package/api/api/rollup.js +31 -31
  53. package/api/api/scripts_painless_execute.js +2 -2
  54. package/api/api/scroll.js +2 -2
  55. package/api/api/search.js +5 -5
  56. package/api/api/search_shards.js +2 -2
  57. package/api/api/search_template.js +4 -4
  58. package/api/api/searchable_snapshots.js +14 -14
  59. package/api/api/security.js +85 -85
  60. package/api/api/slm.js +21 -21
  61. package/api/api/snapshot.js +46 -46
  62. package/api/api/sql.js +9 -9
  63. package/api/api/ssl.js +2 -2
  64. package/api/api/tasks.js +7 -7
  65. package/api/api/termvectors.js +3 -3
  66. package/api/api/text_structure.js +65 -0
  67. package/api/api/transform.js +25 -25
  68. package/api/api/update.js +5 -5
  69. package/api/api/update_by_query.js +4 -4
  70. package/api/api/update_by_query_rethrottle.js +4 -4
  71. package/api/api/watcher.js +29 -29
  72. package/api/api/xpack.js +4 -4
  73. package/api/index.js +34 -0
  74. package/api/requestParams.d.ts +43 -18
  75. package/api/utils.js +4 -4
  76. package/free-report-junit.xml +13 -0
  77. package/index.d.ts +64 -8
  78. package/index.js +15 -23
  79. package/lib/Connection.js +2 -2
  80. package/lib/Helpers.d.ts +2 -2
  81. package/lib/Helpers.js +11 -6
  82. package/lib/Serializer.js +8 -6
  83. package/lib/Transport.d.ts +1 -0
  84. package/lib/Transport.js +10 -6
  85. package/lib/pool/BaseConnectionPool.js +3 -3
  86. package/lib/pool/ConnectionPool.js +4 -5
  87. package/package.json +23 -23
  88. package/api/kibana.d.ts +0 -485
package/README.md CHANGED
@@ -28,7 +28,7 @@ npm install @elastic/elasticsearch
28
28
 
29
29
  ### Node.js support
30
30
 
31
- NOTE: The minimum supported version of Node.js is `v8`.
31
+ NOTE: The minimum supported version of Node.js is `v10`.
32
32
 
33
33
  The client versioning follows the Elastc Stack versioning, this means that
34
34
  major, minor, and patch releases are done following a precise schedule that
@@ -35,15 +35,15 @@ AsyncSearchApi.prototype.delete = function asyncSearchDeleteApi (params, options
35
35
  ;[params, options, callback] = normalizeArguments(params, options, callback)
36
36
 
37
37
  // check required parameters
38
- if (params['id'] == null) {
38
+ if (params.id == null) {
39
39
  const err = new this[kConfigurationError]('Missing required parameter: id')
40
40
  return handleError(err, callback)
41
41
  }
42
42
 
43
- var { method, body, id, ...querystring } = params
43
+ let { method, body, id, ...querystring } = params
44
44
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
45
45
 
46
- var path = ''
46
+ let path = ''
47
47
  if (method == null) method = 'DELETE'
48
48
  path = '/' + '_async_search' + '/' + encodeURIComponent(id)
49
49
 
@@ -62,15 +62,15 @@ AsyncSearchApi.prototype.get = function asyncSearchGetApi (params, options, call
62
62
  ;[params, options, callback] = normalizeArguments(params, options, callback)
63
63
 
64
64
  // check required parameters
65
- if (params['id'] == null) {
65
+ if (params.id == null) {
66
66
  const err = new this[kConfigurationError]('Missing required parameter: id')
67
67
  return handleError(err, callback)
68
68
  }
69
69
 
70
- var { method, body, id, ...querystring } = params
70
+ let { method, body, id, ...querystring } = params
71
71
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
72
72
 
73
- var path = ''
73
+ let path = ''
74
74
  if (method == null) method = 'GET'
75
75
  path = '/' + '_async_search' + '/' + encodeURIComponent(id)
76
76
 
@@ -89,15 +89,15 @@ AsyncSearchApi.prototype.status = function asyncSearchStatusApi (params, options
89
89
  ;[params, options, callback] = normalizeArguments(params, options, callback)
90
90
 
91
91
  // check required parameters
92
- if (params['id'] == null) {
92
+ if (params.id == null) {
93
93
  const err = new this[kConfigurationError]('Missing required parameter: id')
94
94
  return handleError(err, callback)
95
95
  }
96
96
 
97
- var { method, body, id, ...querystring } = params
97
+ let { method, body, id, ...querystring } = params
98
98
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
99
99
 
100
- var path = ''
100
+ let path = ''
101
101
  if (method == null) method = 'GET'
102
102
  path = '/' + '_async_search' + '/' + 'status' + '/' + encodeURIComponent(id)
103
103
 
@@ -115,10 +115,10 @@ AsyncSearchApi.prototype.status = function asyncSearchStatusApi (params, options
115
115
  AsyncSearchApi.prototype.submit = function asyncSearchSubmitApi (params, options, callback) {
116
116
  ;[params, options, callback] = normalizeArguments(params, options, callback)
117
117
 
118
- var { method, body, index, ...querystring } = params
118
+ let { method, body, index, ...querystring } = params
119
119
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
120
120
 
121
- var path = ''
121
+ let path = ''
122
122
  if ((index) != null) {
123
123
  if (method == null) method = 'POST'
124
124
  path = '/' + encodeURIComponent(index) + '/' + '_async_search'
@@ -35,15 +35,15 @@ AutoscalingApi.prototype.deleteAutoscalingPolicy = function autoscalingDeleteAut
35
35
  ;[params, options, callback] = normalizeArguments(params, options, callback)
36
36
 
37
37
  // check required parameters
38
- if (params['name'] == null) {
38
+ if (params.name == null) {
39
39
  const err = new this[kConfigurationError]('Missing required parameter: name')
40
40
  return handleError(err, callback)
41
41
  }
42
42
 
43
- var { method, body, name, ...querystring } = params
43
+ let { method, body, name, ...querystring } = params
44
44
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
45
45
 
46
- var path = ''
46
+ let path = ''
47
47
  if (method == null) method = 'DELETE'
48
48
  path = '/' + '_autoscaling' + '/' + 'policy' + '/' + encodeURIComponent(name)
49
49
 
@@ -61,10 +61,10 @@ AutoscalingApi.prototype.deleteAutoscalingPolicy = function autoscalingDeleteAut
61
61
  AutoscalingApi.prototype.getAutoscalingCapacity = function autoscalingGetAutoscalingCapacityApi (params, options, callback) {
62
62
  ;[params, options, callback] = normalizeArguments(params, options, callback)
63
63
 
64
- var { method, body, ...querystring } = params
64
+ let { method, body, ...querystring } = params
65
65
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
66
66
 
67
- var path = ''
67
+ let path = ''
68
68
  if (method == null) method = 'GET'
69
69
  path = '/' + '_autoscaling' + '/' + 'capacity'
70
70
 
@@ -83,15 +83,15 @@ AutoscalingApi.prototype.getAutoscalingPolicy = function autoscalingGetAutoscali
83
83
  ;[params, options, callback] = normalizeArguments(params, options, callback)
84
84
 
85
85
  // check required parameters
86
- if (params['name'] == null) {
86
+ if (params.name == null) {
87
87
  const err = new this[kConfigurationError]('Missing required parameter: name')
88
88
  return handleError(err, callback)
89
89
  }
90
90
 
91
- var { method, body, name, ...querystring } = params
91
+ let { method, body, name, ...querystring } = params
92
92
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
93
93
 
94
- var path = ''
94
+ let path = ''
95
95
  if (method == null) method = 'GET'
96
96
  path = '/' + '_autoscaling' + '/' + 'policy' + '/' + encodeURIComponent(name)
97
97
 
@@ -110,19 +110,19 @@ AutoscalingApi.prototype.putAutoscalingPolicy = function autoscalingPutAutoscali
110
110
  ;[params, options, callback] = normalizeArguments(params, options, callback)
111
111
 
112
112
  // check required parameters
113
- if (params['name'] == null) {
113
+ if (params.name == null) {
114
114
  const err = new this[kConfigurationError]('Missing required parameter: name')
115
115
  return handleError(err, callback)
116
116
  }
117
- if (params['body'] == null) {
117
+ if (params.body == null) {
118
118
  const err = new this[kConfigurationError]('Missing required parameter: body')
119
119
  return handleError(err, callback)
120
120
  }
121
121
 
122
- var { method, body, name, ...querystring } = params
122
+ let { method, body, name, ...querystring } = params
123
123
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
124
124
 
125
- var path = ''
125
+ let path = ''
126
126
  if (method == null) method = 'PUT'
127
127
  path = '/' + '_autoscaling' + '/' + 'policy' + '/' + encodeURIComponent(name)
128
128
 
package/api/api/bulk.js CHANGED
@@ -30,21 +30,21 @@ function bulkApi (params, options, callback) {
30
30
  ;[params, options, callback] = normalizeArguments(params, options, callback)
31
31
 
32
32
  // check required parameters
33
- if (params['body'] == null) {
33
+ if (params.body == null) {
34
34
  const err = new this[kConfigurationError]('Missing required parameter: body')
35
35
  return handleError(err, callback)
36
36
  }
37
37
 
38
38
  // check required url components
39
- if (params['type'] != null && (params['index'] == null)) {
39
+ if (params.type != null && (params.index == null)) {
40
40
  const err = new this[kConfigurationError]('Missing required parameter of the url: index')
41
41
  return handleError(err, callback)
42
42
  }
43
43
 
44
- var { method, body, index, type, ...querystring } = params
44
+ let { method, body, index, type, ...querystring } = params
45
45
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
46
46
 
47
- var path = ''
47
+ let path = ''
48
48
  if ((index) != null && (type) != null) {
49
49
  if (method == null) method = 'POST'
50
50
  path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + '_bulk'
package/api/api/cat.js CHANGED
@@ -23,8 +23,8 @@
23
23
  /* eslint no-unused-vars: 0 */
24
24
 
25
25
  const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils')
26
- const acceptedQuerystring = ['format', 'local', 'h', 'help', 's', 'v', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'bytes', 'master_timeout', 'fields', 'time', 'ts', 'health', 'pri', 'include_unloaded_segments', 'full_id', 'active_only', 'detailed', 'index', 'ignore_unavailable', 'nodes', 'actions', 'parent_task_id', 'size', 'allow_no_match', 'allow_no_datafeeds', 'allow_no_jobs', 'from']
27
- const snakeCase = { expandWildcards: 'expand_wildcards', errorTrace: 'error_trace', filterPath: 'filter_path', masterTimeout: 'master_timeout', includeUnloadedSegments: 'include_unloaded_segments', fullId: 'full_id', activeOnly: 'active_only', ignoreUnavailable: 'ignore_unavailable', parentTaskId: 'parent_task_id', allowNoMatch: 'allow_no_match', allowNoDatafeeds: 'allow_no_datafeeds', allowNoJobs: 'allow_no_jobs' }
26
+ const acceptedQuerystring = ['format', 'local', 'h', 'help', 's', 'v', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'bytes', 'master_timeout', 'fields', 'time', 'ts', 'health', 'pri', 'include_unloaded_segments', 'full_id', 'include_bootstrap', 'active_only', 'detailed', 'index', 'ignore_unavailable', 'nodes', 'actions', 'parent_task_id', 'size', 'allow_no_match', 'allow_no_datafeeds', 'allow_no_jobs', 'from']
27
+ const snakeCase = { expandWildcards: 'expand_wildcards', errorTrace: 'error_trace', filterPath: 'filter_path', masterTimeout: 'master_timeout', includeUnloadedSegments: 'include_unloaded_segments', fullId: 'full_id', includeBootstrap: 'include_bootstrap', activeOnly: 'active_only', ignoreUnavailable: 'ignore_unavailable', parentTaskId: 'parent_task_id', allowNoMatch: 'allow_no_match', allowNoDatafeeds: 'allow_no_datafeeds', allowNoJobs: 'allow_no_jobs' }
28
28
 
29
29
  function CatApi (transport, ConfigurationError) {
30
30
  this.transport = transport
@@ -34,10 +34,10 @@ function CatApi (transport, ConfigurationError) {
34
34
  CatApi.prototype.aliases = function catAliasesApi (params, options, callback) {
35
35
  ;[params, options, callback] = normalizeArguments(params, options, callback)
36
36
 
37
- var { method, body, name, ...querystring } = params
37
+ let { method, body, name, ...querystring } = params
38
38
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
39
39
 
40
- var path = ''
40
+ let path = ''
41
41
  if ((name) != null) {
42
42
  if (method == null) method = 'GET'
43
43
  path = '/' + '_cat' + '/' + 'aliases' + '/' + encodeURIComponent(name)
@@ -60,10 +60,10 @@ CatApi.prototype.aliases = function catAliasesApi (params, options, callback) {
60
60
  CatApi.prototype.allocation = function catAllocationApi (params, options, callback) {
61
61
  ;[params, options, callback] = normalizeArguments(params, options, callback)
62
62
 
63
- var { method, body, nodeId, node_id, ...querystring } = params
63
+ let { method, body, nodeId, node_id, ...querystring } = params
64
64
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
65
65
 
66
- var path = ''
66
+ let path = ''
67
67
  if ((node_id || nodeId) != null) {
68
68
  if (method == null) method = 'GET'
69
69
  path = '/' + '_cat' + '/' + 'allocation' + '/' + encodeURIComponent(node_id || nodeId)
@@ -86,10 +86,10 @@ CatApi.prototype.allocation = function catAllocationApi (params, options, callba
86
86
  CatApi.prototype.count = function catCountApi (params, options, callback) {
87
87
  ;[params, options, callback] = normalizeArguments(params, options, callback)
88
88
 
89
- var { method, body, index, ...querystring } = params
89
+ let { method, body, index, ...querystring } = params
90
90
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
91
91
 
92
- var path = ''
92
+ let path = ''
93
93
  if ((index) != null) {
94
94
  if (method == null) method = 'GET'
95
95
  path = '/' + '_cat' + '/' + 'count' + '/' + encodeURIComponent(index)
@@ -112,10 +112,10 @@ CatApi.prototype.count = function catCountApi (params, options, callback) {
112
112
  CatApi.prototype.fielddata = function catFielddataApi (params, options, callback) {
113
113
  ;[params, options, callback] = normalizeArguments(params, options, callback)
114
114
 
115
- var { method, body, fields, ...querystring } = params
115
+ let { method, body, fields, ...querystring } = params
116
116
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
117
117
 
118
- var path = ''
118
+ let path = ''
119
119
  if ((fields) != null) {
120
120
  if (method == null) method = 'GET'
121
121
  path = '/' + '_cat' + '/' + 'fielddata' + '/' + encodeURIComponent(fields)
@@ -138,10 +138,10 @@ CatApi.prototype.fielddata = function catFielddataApi (params, options, callback
138
138
  CatApi.prototype.health = function catHealthApi (params, options, callback) {
139
139
  ;[params, options, callback] = normalizeArguments(params, options, callback)
140
140
 
141
- var { method, body, ...querystring } = params
141
+ let { method, body, ...querystring } = params
142
142
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
143
143
 
144
- var path = ''
144
+ let path = ''
145
145
  if (method == null) method = 'GET'
146
146
  path = '/' + '_cat' + '/' + 'health'
147
147
 
@@ -159,10 +159,10 @@ CatApi.prototype.health = function catHealthApi (params, options, callback) {
159
159
  CatApi.prototype.help = function catHelpApi (params, options, callback) {
160
160
  ;[params, options, callback] = normalizeArguments(params, options, callback)
161
161
 
162
- var { method, body, ...querystring } = params
162
+ let { method, body, ...querystring } = params
163
163
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
164
164
 
165
- var path = ''
165
+ let path = ''
166
166
  if (method == null) method = 'GET'
167
167
  path = '/' + '_cat'
168
168
 
@@ -180,10 +180,10 @@ CatApi.prototype.help = function catHelpApi (params, options, callback) {
180
180
  CatApi.prototype.indices = function catIndicesApi (params, options, callback) {
181
181
  ;[params, options, callback] = normalizeArguments(params, options, callback)
182
182
 
183
- var { method, body, index, ...querystring } = params
183
+ let { method, body, index, ...querystring } = params
184
184
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
185
185
 
186
- var path = ''
186
+ let path = ''
187
187
  if ((index) != null) {
188
188
  if (method == null) method = 'GET'
189
189
  path = '/' + '_cat' + '/' + 'indices' + '/' + encodeURIComponent(index)
@@ -206,10 +206,10 @@ CatApi.prototype.indices = function catIndicesApi (params, options, callback) {
206
206
  CatApi.prototype.master = function catMasterApi (params, options, callback) {
207
207
  ;[params, options, callback] = normalizeArguments(params, options, callback)
208
208
 
209
- var { method, body, ...querystring } = params
209
+ let { method, body, ...querystring } = params
210
210
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
211
211
 
212
- var path = ''
212
+ let path = ''
213
213
  if (method == null) method = 'GET'
214
214
  path = '/' + '_cat' + '/' + 'master'
215
215
 
@@ -227,10 +227,10 @@ CatApi.prototype.master = function catMasterApi (params, options, callback) {
227
227
  CatApi.prototype.nodeattrs = function catNodeattrsApi (params, options, callback) {
228
228
  ;[params, options, callback] = normalizeArguments(params, options, callback)
229
229
 
230
- var { method, body, ...querystring } = params
230
+ let { method, body, ...querystring } = params
231
231
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
232
232
 
233
- var path = ''
233
+ let path = ''
234
234
  if (method == null) method = 'GET'
235
235
  path = '/' + '_cat' + '/' + 'nodeattrs'
236
236
 
@@ -248,10 +248,10 @@ CatApi.prototype.nodeattrs = function catNodeattrsApi (params, options, callback
248
248
  CatApi.prototype.nodes = function catNodesApi (params, options, callback) {
249
249
  ;[params, options, callback] = normalizeArguments(params, options, callback)
250
250
 
251
- var { method, body, ...querystring } = params
251
+ let { method, body, ...querystring } = params
252
252
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
253
253
 
254
- var path = ''
254
+ let path = ''
255
255
  if (method == null) method = 'GET'
256
256
  path = '/' + '_cat' + '/' + 'nodes'
257
257
 
@@ -269,10 +269,10 @@ CatApi.prototype.nodes = function catNodesApi (params, options, callback) {
269
269
  CatApi.prototype.pendingTasks = function catPendingTasksApi (params, options, callback) {
270
270
  ;[params, options, callback] = normalizeArguments(params, options, callback)
271
271
 
272
- var { method, body, ...querystring } = params
272
+ let { method, body, ...querystring } = params
273
273
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
274
274
 
275
- var path = ''
275
+ let path = ''
276
276
  if (method == null) method = 'GET'
277
277
  path = '/' + '_cat' + '/' + 'pending_tasks'
278
278
 
@@ -290,10 +290,10 @@ CatApi.prototype.pendingTasks = function catPendingTasksApi (params, options, ca
290
290
  CatApi.prototype.plugins = function catPluginsApi (params, options, callback) {
291
291
  ;[params, options, callback] = normalizeArguments(params, options, callback)
292
292
 
293
- var { method, body, ...querystring } = params
293
+ let { method, body, ...querystring } = params
294
294
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
295
295
 
296
- var path = ''
296
+ let path = ''
297
297
  if (method == null) method = 'GET'
298
298
  path = '/' + '_cat' + '/' + 'plugins'
299
299
 
@@ -311,10 +311,10 @@ CatApi.prototype.plugins = function catPluginsApi (params, options, callback) {
311
311
  CatApi.prototype.recovery = function catRecoveryApi (params, options, callback) {
312
312
  ;[params, options, callback] = normalizeArguments(params, options, callback)
313
313
 
314
- var { method, body, index, ...querystring } = params
314
+ let { method, body, index, ...querystring } = params
315
315
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
316
316
 
317
- var path = ''
317
+ let path = ''
318
318
  if ((index) != null) {
319
319
  if (method == null) method = 'GET'
320
320
  path = '/' + '_cat' + '/' + 'recovery' + '/' + encodeURIComponent(index)
@@ -337,10 +337,10 @@ CatApi.prototype.recovery = function catRecoveryApi (params, options, callback)
337
337
  CatApi.prototype.repositories = function catRepositoriesApi (params, options, callback) {
338
338
  ;[params, options, callback] = normalizeArguments(params, options, callback)
339
339
 
340
- var { method, body, ...querystring } = params
340
+ let { method, body, ...querystring } = params
341
341
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
342
342
 
343
- var path = ''
343
+ let path = ''
344
344
  if (method == null) method = 'GET'
345
345
  path = '/' + '_cat' + '/' + 'repositories'
346
346
 
@@ -358,10 +358,10 @@ CatApi.prototype.repositories = function catRepositoriesApi (params, options, ca
358
358
  CatApi.prototype.segments = function catSegmentsApi (params, options, callback) {
359
359
  ;[params, options, callback] = normalizeArguments(params, options, callback)
360
360
 
361
- var { method, body, index, ...querystring } = params
361
+ let { method, body, index, ...querystring } = params
362
362
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
363
363
 
364
- var path = ''
364
+ let path = ''
365
365
  if ((index) != null) {
366
366
  if (method == null) method = 'GET'
367
367
  path = '/' + '_cat' + '/' + 'segments' + '/' + encodeURIComponent(index)
@@ -384,10 +384,10 @@ CatApi.prototype.segments = function catSegmentsApi (params, options, callback)
384
384
  CatApi.prototype.shards = function catShardsApi (params, options, callback) {
385
385
  ;[params, options, callback] = normalizeArguments(params, options, callback)
386
386
 
387
- var { method, body, index, ...querystring } = params
387
+ let { method, body, index, ...querystring } = params
388
388
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
389
389
 
390
- var path = ''
390
+ let path = ''
391
391
  if ((index) != null) {
392
392
  if (method == null) method = 'GET'
393
393
  path = '/' + '_cat' + '/' + 'shards' + '/' + encodeURIComponent(index)
@@ -410,10 +410,10 @@ CatApi.prototype.shards = function catShardsApi (params, options, callback) {
410
410
  CatApi.prototype.snapshots = function catSnapshotsApi (params, options, callback) {
411
411
  ;[params, options, callback] = normalizeArguments(params, options, callback)
412
412
 
413
- var { method, body, repository, ...querystring } = params
413
+ let { method, body, repository, ...querystring } = params
414
414
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
415
415
 
416
- var path = ''
416
+ let path = ''
417
417
  if ((repository) != null) {
418
418
  if (method == null) method = 'GET'
419
419
  path = '/' + '_cat' + '/' + 'snapshots' + '/' + encodeURIComponent(repository)
@@ -436,10 +436,10 @@ CatApi.prototype.snapshots = function catSnapshotsApi (params, options, callback
436
436
  CatApi.prototype.tasks = function catTasksApi (params, options, callback) {
437
437
  ;[params, options, callback] = normalizeArguments(params, options, callback)
438
438
 
439
- var { method, body, ...querystring } = params
439
+ let { method, body, ...querystring } = params
440
440
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
441
441
 
442
- var path = ''
442
+ let path = ''
443
443
  if (method == null) method = 'GET'
444
444
  path = '/' + '_cat' + '/' + 'tasks'
445
445
 
@@ -457,10 +457,10 @@ CatApi.prototype.tasks = function catTasksApi (params, options, callback) {
457
457
  CatApi.prototype.templates = function catTemplatesApi (params, options, callback) {
458
458
  ;[params, options, callback] = normalizeArguments(params, options, callback)
459
459
 
460
- var { method, body, name, ...querystring } = params
460
+ let { method, body, name, ...querystring } = params
461
461
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
462
462
 
463
- var path = ''
463
+ let path = ''
464
464
  if ((name) != null) {
465
465
  if (method == null) method = 'GET'
466
466
  path = '/' + '_cat' + '/' + 'templates' + '/' + encodeURIComponent(name)
@@ -483,10 +483,10 @@ CatApi.prototype.templates = function catTemplatesApi (params, options, callback
483
483
  CatApi.prototype.threadPool = function catThreadPoolApi (params, options, callback) {
484
484
  ;[params, options, callback] = normalizeArguments(params, options, callback)
485
485
 
486
- var { method, body, threadPoolPatterns, thread_pool_patterns, ...querystring } = params
486
+ let { method, body, threadPoolPatterns, thread_pool_patterns, ...querystring } = params
487
487
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
488
488
 
489
- var path = ''
489
+ let path = ''
490
490
  if ((thread_pool_patterns || threadPoolPatterns) != null) {
491
491
  if (method == null) method = 'GET'
492
492
  path = '/' + '_cat' + '/' + 'thread_pool' + '/' + encodeURIComponent(thread_pool_patterns || threadPoolPatterns)
@@ -509,10 +509,10 @@ CatApi.prototype.threadPool = function catThreadPoolApi (params, options, callba
509
509
  CatApi.prototype.mlDataFrameAnalytics = function catMlDataFrameAnalyticsApi (params, options, callback) {
510
510
  ;[params, options, callback] = normalizeArguments(params, options, callback)
511
511
 
512
- var { method, body, id, ...querystring } = params
512
+ let { method, body, id, ...querystring } = params
513
513
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
514
514
 
515
- var path = ''
515
+ let path = ''
516
516
  if ((id) != null) {
517
517
  if (method == null) method = 'GET'
518
518
  path = '/' + '_cat' + '/' + 'ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id)
@@ -535,10 +535,10 @@ CatApi.prototype.mlDataFrameAnalytics = function catMlDataFrameAnalyticsApi (par
535
535
  CatApi.prototype.mlDatafeeds = function catMlDatafeedsApi (params, options, callback) {
536
536
  ;[params, options, callback] = normalizeArguments(params, options, callback)
537
537
 
538
- var { method, body, datafeedId, datafeed_id, ...querystring } = params
538
+ let { method, body, datafeedId, datafeed_id, ...querystring } = params
539
539
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
540
540
 
541
- var path = ''
541
+ let path = ''
542
542
  if ((datafeed_id || datafeedId) != null) {
543
543
  if (method == null) method = 'GET'
544
544
  path = '/' + '_cat' + '/' + 'ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId)
@@ -561,10 +561,10 @@ CatApi.prototype.mlDatafeeds = function catMlDatafeedsApi (params, options, call
561
561
  CatApi.prototype.mlJobs = function catMlJobsApi (params, options, callback) {
562
562
  ;[params, options, callback] = normalizeArguments(params, options, callback)
563
563
 
564
- var { method, body, jobId, job_id, ...querystring } = params
564
+ let { method, body, jobId, job_id, ...querystring } = params
565
565
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
566
566
 
567
- var path = ''
567
+ let path = ''
568
568
  if ((job_id || jobId) != null) {
569
569
  if (method == null) method = 'GET'
570
570
  path = '/' + '_cat' + '/' + 'ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId)
@@ -587,10 +587,10 @@ CatApi.prototype.mlJobs = function catMlJobsApi (params, options, callback) {
587
587
  CatApi.prototype.mlTrainedModels = function catMlTrainedModelsApi (params, options, callback) {
588
588
  ;[params, options, callback] = normalizeArguments(params, options, callback)
589
589
 
590
- var { method, body, modelId, model_id, ...querystring } = params
590
+ let { method, body, modelId, model_id, ...querystring } = params
591
591
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
592
592
 
593
- var path = ''
593
+ let path = ''
594
594
  if ((model_id || modelId) != null) {
595
595
  if (method == null) method = 'GET'
596
596
  path = '/' + '_cat' + '/' + 'ml' + '/' + 'trained_models' + '/' + encodeURIComponent(model_id || modelId)
@@ -613,10 +613,10 @@ CatApi.prototype.mlTrainedModels = function catMlTrainedModelsApi (params, optio
613
613
  CatApi.prototype.transforms = function catTransformsApi (params, options, callback) {
614
614
  ;[params, options, callback] = normalizeArguments(params, options, callback)
615
615
 
616
- var { method, body, transformId, transform_id, ...querystring } = params
616
+ let { method, body, transformId, transform_id, ...querystring } = params
617
617
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
618
618
 
619
- var path = ''
619
+ let path = ''
620
620
  if ((transform_id || transformId) != null) {
621
621
  if (method == null) method = 'GET'
622
622
  path = '/' + '_cat' + '/' + 'transforms' + '/' + encodeURIComponent(transform_id || transformId)