@elastic/elasticsearch 7.11.0 → 7.14.1

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 (97) hide show
  1. package/README.md +4 -2
  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 +127 -127
  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 +81 -0
  23. package/api/api/field_caps.js +2 -2
  24. package/api/api/fleet.js +65 -0
  25. package/api/api/get.js +4 -4
  26. package/api/api/get_script.js +3 -3
  27. package/api/api/get_script_context.js +2 -2
  28. package/api/api/get_script_languages.js +2 -2
  29. package/api/api/get_source.js +4 -4
  30. package/api/api/graph.js +4 -4
  31. package/api/api/ilm.js +50 -28
  32. package/api/api/index.js +4 -4
  33. package/api/api/indices.js +381 -381
  34. package/api/api/info.js +2 -2
  35. package/api/api/ingest.js +37 -15
  36. package/api/api/license.js +14 -14
  37. package/api/api/logstash.js +125 -0
  38. package/api/api/mget.js +4 -4
  39. package/api/api/migration.js +2 -2
  40. package/api/api/ml.js +338 -208
  41. package/api/api/monitoring.js +3 -3
  42. package/api/api/msearch.js +4 -4
  43. package/api/api/msearch_template.js +4 -4
  44. package/api/api/mtermvectors.js +3 -3
  45. package/api/api/nodes.js +12 -12
  46. package/api/api/open_point_in_time.js +2 -2
  47. package/api/api/ping.js +2 -2
  48. package/api/api/put_script.js +5 -5
  49. package/api/api/rank_eval.js +3 -3
  50. package/api/api/reindex.js +3 -3
  51. package/api/api/reindex_rethrottle.js +4 -4
  52. package/api/api/render_search_template.js +2 -2
  53. package/api/api/rollup.js +31 -31
  54. package/api/api/scripts_painless_execute.js +2 -2
  55. package/api/api/scroll.js +2 -2
  56. package/api/api/search.js +5 -5
  57. package/api/api/search_shards.js +2 -2
  58. package/api/api/search_template.js +4 -4
  59. package/api/api/searchable_snapshots.js +42 -15
  60. package/api/api/security.js +464 -86
  61. package/api/api/shutdown.js +124 -0
  62. package/api/api/slm.js +21 -21
  63. package/api/api/snapshot.js +76 -48
  64. package/api/api/sql.js +96 -12
  65. package/api/api/ssl.js +2 -2
  66. package/api/api/tasks.js +7 -7
  67. package/api/api/terms_enum.js +56 -0
  68. package/api/api/termvectors.js +3 -3
  69. package/api/api/text_structure.js +65 -0
  70. package/api/api/transform.js +25 -25
  71. package/api/api/update.js +5 -5
  72. package/api/api/update_by_query.js +4 -4
  73. package/api/api/update_by_query_rethrottle.js +4 -4
  74. package/api/api/watcher.js +29 -29
  75. package/api/api/xpack.js +4 -4
  76. package/api/index.js +179 -120
  77. package/api/new.d.ts +1584 -0
  78. package/api/requestParams.d.ts +203 -7
  79. package/api/types.d.ts +15455 -0
  80. package/api/utils.js +4 -4
  81. package/free-report-junit.xml +3410 -0
  82. package/index.d.ts +326 -23
  83. package/index.js +28 -36
  84. package/lib/Connection.js +6 -4
  85. package/lib/Helpers.d.ts +4 -2
  86. package/lib/Helpers.js +31 -17
  87. package/lib/Serializer.d.ts +5 -0
  88. package/lib/Serializer.js +17 -6
  89. package/lib/Transport.d.ts +4 -2
  90. package/lib/Transport.js +194 -79
  91. package/lib/errors.d.ts +7 -0
  92. package/lib/errors.js +26 -2
  93. package/lib/pool/BaseConnectionPool.js +3 -3
  94. package/lib/pool/ConnectionPool.js +4 -5
  95. package/lib/pool/index.d.ts +5 -0
  96. package/package.json +26 -26
  97. package/api/kibana.d.ts +0 -485
package/api/index.js CHANGED
@@ -19,9 +19,13 @@
19
19
 
20
20
  'use strict'
21
21
 
22
+ const AsyncSearchApi = require('./api/async_search')
23
+ const AutoscalingApi = require('./api/autoscaling')
22
24
  const bulkApi = require('./api/bulk')
23
25
  const CatApi = require('./api/cat')
26
+ const CcrApi = require('./api/ccr')
24
27
  const clearScrollApi = require('./api/clear_scroll')
28
+ const closePointInTimeApi = require('./api/close_point_in_time')
25
29
  const ClusterApi = require('./api/cluster')
26
30
  const countApi = require('./api/count')
27
31
  const createApi = require('./api/create')
@@ -30,121 +34,133 @@ const deleteApi = require('./api/delete')
30
34
  const deleteByQueryApi = require('./api/delete_by_query')
31
35
  const deleteByQueryRethrottleApi = require('./api/delete_by_query_rethrottle')
32
36
  const deleteScriptApi = require('./api/delete_script')
37
+ const EnrichApi = require('./api/enrich')
38
+ const EqlApi = require('./api/eql')
33
39
  const existsApi = require('./api/exists')
34
40
  const existsSourceApi = require('./api/exists_source')
35
41
  const explainApi = require('./api/explain')
42
+ const FeaturesApi = require('./api/features')
36
43
  const fieldCapsApi = require('./api/field_caps')
44
+ const FleetApi = require('./api/fleet')
37
45
  const getApi = require('./api/get')
38
46
  const getScriptApi = require('./api/get_script')
39
47
  const getScriptContextApi = require('./api/get_script_context')
40
48
  const getScriptLanguagesApi = require('./api/get_script_languages')
41
49
  const getSourceApi = require('./api/get_source')
50
+ const GraphApi = require('./api/graph')
51
+ const IlmApi = require('./api/ilm')
42
52
  const indexApi = require('./api/index')
43
53
  const IndicesApi = require('./api/indices')
44
54
  const infoApi = require('./api/info')
45
55
  const IngestApi = require('./api/ingest')
56
+ const LicenseApi = require('./api/license')
57
+ const LogstashApi = require('./api/logstash')
46
58
  const mgetApi = require('./api/mget')
59
+ const MigrationApi = require('./api/migration')
60
+ const MlApi = require('./api/ml')
61
+ const MonitoringApi = require('./api/monitoring')
47
62
  const msearchApi = require('./api/msearch')
48
63
  const msearchTemplateApi = require('./api/msearch_template')
49
64
  const mtermvectorsApi = require('./api/mtermvectors')
50
65
  const NodesApi = require('./api/nodes')
66
+ const openPointInTimeApi = require('./api/open_point_in_time')
51
67
  const pingApi = require('./api/ping')
52
68
  const putScriptApi = require('./api/put_script')
53
69
  const rankEvalApi = require('./api/rank_eval')
54
70
  const reindexApi = require('./api/reindex')
55
71
  const reindexRethrottleApi = require('./api/reindex_rethrottle')
56
72
  const renderSearchTemplateApi = require('./api/render_search_template')
73
+ const RollupApi = require('./api/rollup')
57
74
  const scriptsPainlessExecuteApi = require('./api/scripts_painless_execute')
58
75
  const scrollApi = require('./api/scroll')
59
76
  const searchApi = require('./api/search')
60
77
  const searchShardsApi = require('./api/search_shards')
61
78
  const searchTemplateApi = require('./api/search_template')
62
- const SnapshotApi = require('./api/snapshot')
63
- const TasksApi = require('./api/tasks')
64
- const termvectorsApi = require('./api/termvectors')
65
- const updateApi = require('./api/update')
66
- const updateByQueryApi = require('./api/update_by_query')
67
- const updateByQueryRethrottleApi = require('./api/update_by_query_rethrottle')
68
- const AsyncSearchApi = require('./api/async_search')
69
- const AutoscalingApi = require('./api/autoscaling')
70
- const CcrApi = require('./api/ccr')
71
- const closePointInTimeApi = require('./api/close_point_in_time')
72
- const EnrichApi = require('./api/enrich')
73
- const EqlApi = require('./api/eql')
74
- const GraphApi = require('./api/graph')
75
- const IlmApi = require('./api/ilm')
76
- const LicenseApi = require('./api/license')
77
- const MigrationApi = require('./api/migration')
78
- const MlApi = require('./api/ml')
79
- const MonitoringApi = require('./api/monitoring')
80
- const openPointInTimeApi = require('./api/open_point_in_time')
81
- const RollupApi = require('./api/rollup')
82
79
  const SearchableSnapshotsApi = require('./api/searchable_snapshots')
83
80
  const SecurityApi = require('./api/security')
81
+ const ShutdownApi = require('./api/shutdown')
84
82
  const SlmApi = require('./api/slm')
83
+ const SnapshotApi = require('./api/snapshot')
85
84
  const SqlApi = require('./api/sql')
86
85
  const SslApi = require('./api/ssl')
86
+ const TasksApi = require('./api/tasks')
87
+ const termsEnumApi = require('./api/terms_enum')
88
+ const termvectorsApi = require('./api/termvectors')
89
+ const TextStructureApi = require('./api/text_structure')
87
90
  const TransformApi = require('./api/transform')
91
+ const updateApi = require('./api/update')
92
+ const updateByQueryApi = require('./api/update_by_query')
93
+ const updateByQueryRethrottleApi = require('./api/update_by_query_rethrottle')
88
94
  const WatcherApi = require('./api/watcher')
89
95
  const XpackApi = require('./api/xpack')
90
96
 
91
97
  const { kConfigurationError } = require('./utils')
92
- const kCat = Symbol('Cat')
93
- const kCluster = Symbol('Cluster')
94
- const kDanglingIndices = Symbol('DanglingIndices')
95
- const kIndices = Symbol('Indices')
96
- const kIngest = Symbol('Ingest')
97
- const kNodes = Symbol('Nodes')
98
- const kSnapshot = Symbol('Snapshot')
99
- const kTasks = Symbol('Tasks')
100
98
  const kAsyncSearch = Symbol('AsyncSearch')
101
99
  const kAutoscaling = Symbol('Autoscaling')
100
+ const kCat = Symbol('Cat')
102
101
  const kCcr = Symbol('Ccr')
102
+ const kCluster = Symbol('Cluster')
103
+ const kDanglingIndices = Symbol('DanglingIndices')
103
104
  const kEnrich = Symbol('Enrich')
104
105
  const kEql = Symbol('Eql')
106
+ const kFeatures = Symbol('Features')
107
+ const kFleet = Symbol('Fleet')
105
108
  const kGraph = Symbol('Graph')
106
109
  const kIlm = Symbol('Ilm')
110
+ const kIndices = Symbol('Indices')
111
+ const kIngest = Symbol('Ingest')
107
112
  const kLicense = Symbol('License')
113
+ const kLogstash = Symbol('Logstash')
108
114
  const kMigration = Symbol('Migration')
109
115
  const kMl = Symbol('Ml')
110
116
  const kMonitoring = Symbol('Monitoring')
117
+ const kNodes = Symbol('Nodes')
111
118
  const kRollup = Symbol('Rollup')
112
119
  const kSearchableSnapshots = Symbol('SearchableSnapshots')
113
120
  const kSecurity = Symbol('Security')
121
+ const kShutdown = Symbol('Shutdown')
114
122
  const kSlm = Symbol('Slm')
123
+ const kSnapshot = Symbol('Snapshot')
115
124
  const kSql = Symbol('Sql')
116
125
  const kSsl = Symbol('Ssl')
126
+ const kTasks = Symbol('Tasks')
127
+ const kTextStructure = Symbol('TextStructure')
117
128
  const kTransform = Symbol('Transform')
118
129
  const kWatcher = Symbol('Watcher')
119
130
  const kXpack = Symbol('Xpack')
120
131
 
121
132
  function ESAPI (opts) {
122
133
  this[kConfigurationError] = opts.ConfigurationError
123
- this[kCat] = null
124
- this[kCluster] = null
125
- this[kDanglingIndices] = null
126
- this[kIndices] = null
127
- this[kIngest] = null
128
- this[kNodes] = null
129
- this[kSnapshot] = null
130
- this[kTasks] = null
131
134
  this[kAsyncSearch] = null
132
135
  this[kAutoscaling] = null
136
+ this[kCat] = null
133
137
  this[kCcr] = null
138
+ this[kCluster] = null
139
+ this[kDanglingIndices] = null
134
140
  this[kEnrich] = null
135
141
  this[kEql] = null
142
+ this[kFeatures] = null
143
+ this[kFleet] = null
136
144
  this[kGraph] = null
137
145
  this[kIlm] = null
146
+ this[kIndices] = null
147
+ this[kIngest] = null
138
148
  this[kLicense] = null
149
+ this[kLogstash] = null
139
150
  this[kMigration] = null
140
151
  this[kMl] = null
141
152
  this[kMonitoring] = null
153
+ this[kNodes] = null
142
154
  this[kRollup] = null
143
155
  this[kSearchableSnapshots] = null
144
156
  this[kSecurity] = null
157
+ this[kShutdown] = null
145
158
  this[kSlm] = null
159
+ this[kSnapshot] = null
146
160
  this[kSql] = null
147
161
  this[kSsl] = null
162
+ this[kTasks] = null
163
+ this[kTextStructure] = null
148
164
  this[kTransform] = null
149
165
  this[kWatcher] = null
150
166
  this[kXpack] = null
@@ -152,6 +168,7 @@ function ESAPI (opts) {
152
168
 
153
169
  ESAPI.prototype.bulk = bulkApi
154
170
  ESAPI.prototype.clearScroll = clearScrollApi
171
+ ESAPI.prototype.closePointInTime = closePointInTimeApi
155
172
  ESAPI.prototype.count = countApi
156
173
  ESAPI.prototype.create = createApi
157
174
  ESAPI.prototype.delete = deleteApi
@@ -173,6 +190,7 @@ ESAPI.prototype.mget = mgetApi
173
190
  ESAPI.prototype.msearch = msearchApi
174
191
  ESAPI.prototype.msearchTemplate = msearchTemplateApi
175
192
  ESAPI.prototype.mtermvectors = mtermvectorsApi
193
+ ESAPI.prototype.openPointInTime = openPointInTimeApi
176
194
  ESAPI.prototype.ping = pingApi
177
195
  ESAPI.prototype.putScript = putScriptApi
178
196
  ESAPI.prototype.rankEval = rankEvalApi
@@ -184,14 +202,30 @@ ESAPI.prototype.scroll = scrollApi
184
202
  ESAPI.prototype.search = searchApi
185
203
  ESAPI.prototype.searchShards = searchShardsApi
186
204
  ESAPI.prototype.searchTemplate = searchTemplateApi
205
+ ESAPI.prototype.termsEnum = termsEnumApi
187
206
  ESAPI.prototype.termvectors = termvectorsApi
188
207
  ESAPI.prototype.update = updateApi
189
208
  ESAPI.prototype.updateByQuery = updateByQueryApi
190
209
  ESAPI.prototype.updateByQueryRethrottle = updateByQueryRethrottleApi
191
- ESAPI.prototype.closePointInTime = closePointInTimeApi
192
- ESAPI.prototype.openPointInTime = openPointInTimeApi
193
210
 
194
211
  Object.defineProperties(ESAPI.prototype, {
212
+ asyncSearch: {
213
+ get () {
214
+ if (this[kAsyncSearch] === null) {
215
+ this[kAsyncSearch] = new AsyncSearchApi(this.transport, this[kConfigurationError])
216
+ }
217
+ return this[kAsyncSearch]
218
+ }
219
+ },
220
+ async_search: { get () { return this.asyncSearch } },
221
+ autoscaling: {
222
+ get () {
223
+ if (this[kAutoscaling] === null) {
224
+ this[kAutoscaling] = new AutoscalingApi(this.transport, this[kConfigurationError])
225
+ }
226
+ return this[kAutoscaling]
227
+ }
228
+ },
195
229
  cat: {
196
230
  get () {
197
231
  if (this[kCat] === null) {
@@ -200,7 +234,16 @@ Object.defineProperties(ESAPI.prototype, {
200
234
  return this[kCat]
201
235
  }
202
236
  },
237
+ ccr: {
238
+ get () {
239
+ if (this[kCcr] === null) {
240
+ this[kCcr] = new CcrApi(this.transport, this[kConfigurationError])
241
+ }
242
+ return this[kCcr]
243
+ }
244
+ },
203
245
  clear_scroll: { get () { return this.clearScroll } },
246
+ close_point_in_time: { get () { return this.closePointInTime } },
204
247
  cluster: {
205
248
  get () {
206
249
  if (this[kCluster] === null) {
@@ -221,88 +264,6 @@ Object.defineProperties(ESAPI.prototype, {
221
264
  delete_by_query: { get () { return this.deleteByQuery } },
222
265
  delete_by_query_rethrottle: { get () { return this.deleteByQueryRethrottle } },
223
266
  delete_script: { get () { return this.deleteScript } },
224
- exists_source: { get () { return this.existsSource } },
225
- field_caps: { get () { return this.fieldCaps } },
226
- get_script: { get () { return this.getScript } },
227
- get_script_context: { get () { return this.getScriptContext } },
228
- get_script_languages: { get () { return this.getScriptLanguages } },
229
- get_source: { get () { return this.getSource } },
230
- indices: {
231
- get () {
232
- if (this[kIndices] === null) {
233
- this[kIndices] = new IndicesApi(this.transport, this[kConfigurationError])
234
- }
235
- return this[kIndices]
236
- }
237
- },
238
- ingest: {
239
- get () {
240
- if (this[kIngest] === null) {
241
- this[kIngest] = new IngestApi(this.transport, this[kConfigurationError])
242
- }
243
- return this[kIngest]
244
- }
245
- },
246
- msearch_template: { get () { return this.msearchTemplate } },
247
- nodes: {
248
- get () {
249
- if (this[kNodes] === null) {
250
- this[kNodes] = new NodesApi(this.transport, this[kConfigurationError])
251
- }
252
- return this[kNodes]
253
- }
254
- },
255
- put_script: { get () { return this.putScript } },
256
- rank_eval: { get () { return this.rankEval } },
257
- reindex_rethrottle: { get () { return this.reindexRethrottle } },
258
- render_search_template: { get () { return this.renderSearchTemplate } },
259
- scripts_painless_execute: { get () { return this.scriptsPainlessExecute } },
260
- search_shards: { get () { return this.searchShards } },
261
- search_template: { get () { return this.searchTemplate } },
262
- snapshot: {
263
- get () {
264
- if (this[kSnapshot] === null) {
265
- this[kSnapshot] = new SnapshotApi(this.transport, this[kConfigurationError])
266
- }
267
- return this[kSnapshot]
268
- }
269
- },
270
- tasks: {
271
- get () {
272
- if (this[kTasks] === null) {
273
- this[kTasks] = new TasksApi(this.transport, this[kConfigurationError])
274
- }
275
- return this[kTasks]
276
- }
277
- },
278
- update_by_query: { get () { return this.updateByQuery } },
279
- update_by_query_rethrottle: { get () { return this.updateByQueryRethrottle } },
280
- asyncSearch: {
281
- get () {
282
- if (this[kAsyncSearch] === null) {
283
- this[kAsyncSearch] = new AsyncSearchApi(this.transport, this[kConfigurationError])
284
- }
285
- return this[kAsyncSearch]
286
- }
287
- },
288
- async_search: { get () { return this.asyncSearch } },
289
- autoscaling: {
290
- get () {
291
- if (this[kAutoscaling] === null) {
292
- this[kAutoscaling] = new AutoscalingApi(this.transport, this[kConfigurationError])
293
- }
294
- return this[kAutoscaling]
295
- }
296
- },
297
- ccr: {
298
- get () {
299
- if (this[kCcr] === null) {
300
- this[kCcr] = new CcrApi(this.transport, this[kConfigurationError])
301
- }
302
- return this[kCcr]
303
- }
304
- },
305
- close_point_in_time: { get () { return this.closePointInTime } },
306
267
  enrich: {
307
268
  get () {
308
269
  if (this[kEnrich] === null) {
@@ -319,6 +280,28 @@ Object.defineProperties(ESAPI.prototype, {
319
280
  return this[kEql]
320
281
  }
321
282
  },
283
+ exists_source: { get () { return this.existsSource } },
284
+ features: {
285
+ get () {
286
+ if (this[kFeatures] === null) {
287
+ this[kFeatures] = new FeaturesApi(this.transport, this[kConfigurationError])
288
+ }
289
+ return this[kFeatures]
290
+ }
291
+ },
292
+ field_caps: { get () { return this.fieldCaps } },
293
+ fleet: {
294
+ get () {
295
+ if (this[kFleet] === null) {
296
+ this[kFleet] = new FleetApi(this.transport, this[kConfigurationError])
297
+ }
298
+ return this[kFleet]
299
+ }
300
+ },
301
+ get_script: { get () { return this.getScript } },
302
+ get_script_context: { get () { return this.getScriptContext } },
303
+ get_script_languages: { get () { return this.getScriptLanguages } },
304
+ get_source: { get () { return this.getSource } },
322
305
  graph: {
323
306
  get () {
324
307
  if (this[kGraph] === null) {
@@ -335,6 +318,22 @@ Object.defineProperties(ESAPI.prototype, {
335
318
  return this[kIlm]
336
319
  }
337
320
  },
321
+ indices: {
322
+ get () {
323
+ if (this[kIndices] === null) {
324
+ this[kIndices] = new IndicesApi(this.transport, this[kConfigurationError])
325
+ }
326
+ return this[kIndices]
327
+ }
328
+ },
329
+ ingest: {
330
+ get () {
331
+ if (this[kIngest] === null) {
332
+ this[kIngest] = new IngestApi(this.transport, this[kConfigurationError])
333
+ }
334
+ return this[kIngest]
335
+ }
336
+ },
338
337
  license: {
339
338
  get () {
340
339
  if (this[kLicense] === null) {
@@ -343,6 +342,14 @@ Object.defineProperties(ESAPI.prototype, {
343
342
  return this[kLicense]
344
343
  }
345
344
  },
345
+ logstash: {
346
+ get () {
347
+ if (this[kLogstash] === null) {
348
+ this[kLogstash] = new LogstashApi(this.transport, this[kConfigurationError])
349
+ }
350
+ return this[kLogstash]
351
+ }
352
+ },
346
353
  migration: {
347
354
  get () {
348
355
  if (this[kMigration] === null) {
@@ -367,7 +374,20 @@ Object.defineProperties(ESAPI.prototype, {
367
374
  return this[kMonitoring]
368
375
  }
369
376
  },
377
+ msearch_template: { get () { return this.msearchTemplate } },
378
+ nodes: {
379
+ get () {
380
+ if (this[kNodes] === null) {
381
+ this[kNodes] = new NodesApi(this.transport, this[kConfigurationError])
382
+ }
383
+ return this[kNodes]
384
+ }
385
+ },
370
386
  open_point_in_time: { get () { return this.openPointInTime } },
387
+ put_script: { get () { return this.putScript } },
388
+ rank_eval: { get () { return this.rankEval } },
389
+ reindex_rethrottle: { get () { return this.reindexRethrottle } },
390
+ render_search_template: { get () { return this.renderSearchTemplate } },
371
391
  rollup: {
372
392
  get () {
373
393
  if (this[kRollup] === null) {
@@ -376,6 +396,9 @@ Object.defineProperties(ESAPI.prototype, {
376
396
  return this[kRollup]
377
397
  }
378
398
  },
399
+ scripts_painless_execute: { get () { return this.scriptsPainlessExecute } },
400
+ search_shards: { get () { return this.searchShards } },
401
+ search_template: { get () { return this.searchTemplate } },
379
402
  searchableSnapshots: {
380
403
  get () {
381
404
  if (this[kSearchableSnapshots] === null) {
@@ -393,6 +416,14 @@ Object.defineProperties(ESAPI.prototype, {
393
416
  return this[kSecurity]
394
417
  }
395
418
  },
419
+ shutdown: {
420
+ get () {
421
+ if (this[kShutdown] === null) {
422
+ this[kShutdown] = new ShutdownApi(this.transport, this[kConfigurationError])
423
+ }
424
+ return this[kShutdown]
425
+ }
426
+ },
396
427
  slm: {
397
428
  get () {
398
429
  if (this[kSlm] === null) {
@@ -401,6 +432,14 @@ Object.defineProperties(ESAPI.prototype, {
401
432
  return this[kSlm]
402
433
  }
403
434
  },
435
+ snapshot: {
436
+ get () {
437
+ if (this[kSnapshot] === null) {
438
+ this[kSnapshot] = new SnapshotApi(this.transport, this[kConfigurationError])
439
+ }
440
+ return this[kSnapshot]
441
+ }
442
+ },
404
443
  sql: {
405
444
  get () {
406
445
  if (this[kSql] === null) {
@@ -417,6 +456,24 @@ Object.defineProperties(ESAPI.prototype, {
417
456
  return this[kSsl]
418
457
  }
419
458
  },
459
+ tasks: {
460
+ get () {
461
+ if (this[kTasks] === null) {
462
+ this[kTasks] = new TasksApi(this.transport, this[kConfigurationError])
463
+ }
464
+ return this[kTasks]
465
+ }
466
+ },
467
+ terms_enum: { get () { return this.termsEnum } },
468
+ textStructure: {
469
+ get () {
470
+ if (this[kTextStructure] === null) {
471
+ this[kTextStructure] = new TextStructureApi(this.transport, this[kConfigurationError])
472
+ }
473
+ return this[kTextStructure]
474
+ }
475
+ },
476
+ text_structure: { get () { return this.textStructure } },
420
477
  transform: {
421
478
  get () {
422
479
  if (this[kTransform] === null) {
@@ -425,6 +482,8 @@ Object.defineProperties(ESAPI.prototype, {
425
482
  return this[kTransform]
426
483
  }
427
484
  },
485
+ update_by_query: { get () { return this.updateByQuery } },
486
+ update_by_query_rethrottle: { get () { return this.updateByQueryRethrottle } },
428
487
  watcher: {
429
488
  get () {
430
489
  if (this[kWatcher] === null) {