@opensearch-project/opensearch 3.0.0-beta.5 → 3.0.0-beta.6
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.
- package/CHANGELOG.md +5 -1
- package/api/cat/_api.js +24 -26
- package/api/cluster/_api.js +21 -23
- package/api/danglingIndices/_api.js +3 -5
- package/api/http/_api.js +9 -11
- package/api/indices/_api.js +48 -50
- package/api/ingest/_api.js +5 -7
- package/api/knn/_api.js +6 -8
- package/api/ml/_api.js +7 -9
- package/api/nodes/_api.js +5 -7
- package/api/notifications/_api.js +9 -11
- package/api/ppl/_api.js +4 -6
- package/api/remoteStore/_api.js +1 -3
- package/api/rollups/_api.js +6 -8
- package/api/searchPipeline/_api.js +3 -5
- package/api/security/_api.js +74 -76
- package/api/snapshot/_api.js +11 -13
- package/api/sql/_api.js +6 -8
- package/api/tasks/_api.js +3 -5
- package/api/transforms/_api.js +8 -10
- package/api/utils.js +6 -7
- package/lib/OpenSearchAPI.js +82 -70
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -22,11 +22,15 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
|
22
22
|
### Added
|
|
23
23
|
### Dependencies
|
|
24
24
|
- Bumps `@babel/eslint-parser` from 7.24.8 to 7.25.1
|
|
25
|
-
- Bumps `@types/node` from 20.14.11 to 22.
|
|
25
|
+
- Bumps `@types/node` from 20.14.11 to 22.5.0
|
|
26
|
+
- Bumps `aws4` from 1.13.0 to 1.13.1
|
|
27
|
+
- Bumps `ora` from 8.0.1 to 8.1.0
|
|
28
|
+
- Bumps `simple-statistics` from 7.8.3 to 7.8.4
|
|
26
29
|
### Changed
|
|
27
30
|
### Deprecated
|
|
28
31
|
### Removed
|
|
29
32
|
### Fixed
|
|
33
|
+
- Fixed docker-compose command in Makefile ([#845](https://github.com/opensearch-project/opensearch-js/issues/845))
|
|
30
34
|
### Security
|
|
31
35
|
|
|
32
36
|
## [2.11.0]
|
package/api/cat/_api.js
CHANGED
|
@@ -15,36 +15,34 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { apiFunc } = require('../utils');
|
|
19
|
-
|
|
20
18
|
/** @namespace API-Cat */
|
|
21
19
|
|
|
22
20
|
function CatApi(bindObj) {
|
|
23
21
|
const cache = {};
|
|
24
|
-
this.aliases =
|
|
25
|
-
this.allocation =
|
|
26
|
-
this.allPitSegments =
|
|
27
|
-
this.clusterManager =
|
|
28
|
-
this.count =
|
|
29
|
-
this.fielddata =
|
|
30
|
-
this.health =
|
|
31
|
-
this.help =
|
|
32
|
-
this.indices =
|
|
33
|
-
this.master =
|
|
34
|
-
this.nodeattrs =
|
|
35
|
-
this.nodes =
|
|
36
|
-
this.pendingTasks =
|
|
37
|
-
this.pitSegments =
|
|
38
|
-
this.plugins =
|
|
39
|
-
this.recovery =
|
|
40
|
-
this.repositories =
|
|
41
|
-
this.segmentReplication =
|
|
42
|
-
this.segments =
|
|
43
|
-
this.shards =
|
|
44
|
-
this.snapshots =
|
|
45
|
-
this.tasks =
|
|
46
|
-
this.templates =
|
|
47
|
-
this.threadPool =
|
|
22
|
+
this.aliases = require('./aliases').bind(bindObj);
|
|
23
|
+
this.allocation = require('./allocation').bind(bindObj);
|
|
24
|
+
this.allPitSegments = require('./allPitSegments').bind(bindObj);
|
|
25
|
+
this.clusterManager = require('./clusterManager').bind(bindObj);
|
|
26
|
+
this.count = require('./count').bind(bindObj);
|
|
27
|
+
this.fielddata = require('./fielddata').bind(bindObj);
|
|
28
|
+
this.health = require('./health').bind(bindObj);
|
|
29
|
+
this.help = require('./help').bind(bindObj);
|
|
30
|
+
this.indices = require('./indices').bind(bindObj);
|
|
31
|
+
this.master = require('./master').bind(bindObj);
|
|
32
|
+
this.nodeattrs = require('./nodeattrs').bind(bindObj);
|
|
33
|
+
this.nodes = require('./nodes').bind(bindObj);
|
|
34
|
+
this.pendingTasks = require('./pendingTasks').bind(bindObj);
|
|
35
|
+
this.pitSegments = require('./pitSegments').bind(bindObj);
|
|
36
|
+
this.plugins = require('./plugins').bind(bindObj);
|
|
37
|
+
this.recovery = require('./recovery').bind(bindObj);
|
|
38
|
+
this.repositories = require('./repositories').bind(bindObj);
|
|
39
|
+
this.segmentReplication = require('./segmentReplication').bind(bindObj);
|
|
40
|
+
this.segments = require('./segments').bind(bindObj);
|
|
41
|
+
this.shards = require('./shards').bind(bindObj);
|
|
42
|
+
this.snapshots = require('./snapshots').bind(bindObj);
|
|
43
|
+
this.tasks = require('./tasks').bind(bindObj);
|
|
44
|
+
this.templates = require('./templates').bind(bindObj);
|
|
45
|
+
this.threadPool = require('./threadPool').bind(bindObj);
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
module.exports = CatApi;
|
package/api/cluster/_api.js
CHANGED
|
@@ -15,33 +15,31 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { apiFunc } = require('../utils');
|
|
19
|
-
|
|
20
18
|
/** @namespace API-Cluster */
|
|
21
19
|
|
|
22
20
|
function ClusterApi(bindObj) {
|
|
23
21
|
const cache = {};
|
|
24
|
-
this.allocationExplain =
|
|
25
|
-
this.deleteComponentTemplate =
|
|
26
|
-
this.deleteDecommissionAwareness =
|
|
27
|
-
this.deleteVotingConfigExclusions =
|
|
28
|
-
this.deleteWeightedRouting =
|
|
29
|
-
this.existsComponentTemplate =
|
|
30
|
-
this.getComponentTemplate =
|
|
31
|
-
this.getDecommissionAwareness =
|
|
32
|
-
this.getSettings =
|
|
33
|
-
this.getWeightedRouting =
|
|
34
|
-
this.health =
|
|
35
|
-
this.pendingTasks =
|
|
36
|
-
this.postVotingConfigExclusions =
|
|
37
|
-
this.putComponentTemplate =
|
|
38
|
-
this.putDecommissionAwareness =
|
|
39
|
-
this.putSettings =
|
|
40
|
-
this.putWeightedRouting =
|
|
41
|
-
this.remoteInfo =
|
|
42
|
-
this.reroute =
|
|
43
|
-
this.state =
|
|
44
|
-
this.stats =
|
|
22
|
+
this.allocationExplain = require('./allocationExplain').bind(bindObj);
|
|
23
|
+
this.deleteComponentTemplate = require('./deleteComponentTemplate').bind(bindObj);
|
|
24
|
+
this.deleteDecommissionAwareness = require('./deleteDecommissionAwareness').bind(bindObj);
|
|
25
|
+
this.deleteVotingConfigExclusions = require('./deleteVotingConfigExclusions').bind(bindObj);
|
|
26
|
+
this.deleteWeightedRouting = require('./deleteWeightedRouting').bind(bindObj);
|
|
27
|
+
this.existsComponentTemplate = require('./existsComponentTemplate').bind(bindObj);
|
|
28
|
+
this.getComponentTemplate = require('./getComponentTemplate').bind(bindObj);
|
|
29
|
+
this.getDecommissionAwareness = require('./getDecommissionAwareness').bind(bindObj);
|
|
30
|
+
this.getSettings = require('./getSettings').bind(bindObj);
|
|
31
|
+
this.getWeightedRouting = require('./getWeightedRouting').bind(bindObj);
|
|
32
|
+
this.health = require('./health').bind(bindObj);
|
|
33
|
+
this.pendingTasks = require('./pendingTasks').bind(bindObj);
|
|
34
|
+
this.postVotingConfigExclusions = require('./postVotingConfigExclusions').bind(bindObj);
|
|
35
|
+
this.putComponentTemplate = require('./putComponentTemplate').bind(bindObj);
|
|
36
|
+
this.putDecommissionAwareness = require('./putDecommissionAwareness').bind(bindObj);
|
|
37
|
+
this.putSettings = require('./putSettings').bind(bindObj);
|
|
38
|
+
this.putWeightedRouting = require('./putWeightedRouting').bind(bindObj);
|
|
39
|
+
this.remoteInfo = require('./remoteInfo').bind(bindObj);
|
|
40
|
+
this.reroute = require('./reroute').bind(bindObj);
|
|
41
|
+
this.state = require('./state').bind(bindObj);
|
|
42
|
+
this.stats = require('./stats').bind(bindObj);
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
module.exports = ClusterApi;
|
|
@@ -15,15 +15,13 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { apiFunc } = require('../utils');
|
|
19
|
-
|
|
20
18
|
/** @namespace API-Dangling-Indices */
|
|
21
19
|
|
|
22
20
|
function DanglingindicesApi(bindObj) {
|
|
23
21
|
const cache = {};
|
|
24
|
-
this.deleteDanglingIndex =
|
|
25
|
-
this.importDanglingIndex =
|
|
26
|
-
this.listDanglingIndices =
|
|
22
|
+
this.deleteDanglingIndex = require('./deleteDanglingIndex').bind(bindObj);
|
|
23
|
+
this.importDanglingIndex = require('./importDanglingIndex').bind(bindObj);
|
|
24
|
+
this.listDanglingIndices = require('./listDanglingIndices').bind(bindObj);
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
module.exports = DanglingindicesApi;
|
package/api/http/_api.js
CHANGED
|
@@ -15,21 +15,19 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { apiFunc } = require('../utils');
|
|
19
|
-
|
|
20
18
|
/** @namespace API-Http */
|
|
21
19
|
|
|
22
20
|
function HttpApi(bindObj) {
|
|
23
21
|
const cache = {};
|
|
24
|
-
this.connect =
|
|
25
|
-
this.delete =
|
|
26
|
-
this.get =
|
|
27
|
-
this.head =
|
|
28
|
-
this.options =
|
|
29
|
-
this.patch =
|
|
30
|
-
this.post =
|
|
31
|
-
this.put =
|
|
32
|
-
this.trace =
|
|
22
|
+
this.connect = require('./connect').bind(bindObj);
|
|
23
|
+
this.delete = require('./delete').bind(bindObj);
|
|
24
|
+
this.get = require('./get').bind(bindObj);
|
|
25
|
+
this.head = require('./head').bind(bindObj);
|
|
26
|
+
this.options = require('./options').bind(bindObj);
|
|
27
|
+
this.patch = require('./patch').bind(bindObj);
|
|
28
|
+
this.post = require('./post').bind(bindObj);
|
|
29
|
+
this.put = require('./put').bind(bindObj);
|
|
30
|
+
this.trace = require('./trace').bind(bindObj);
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
module.exports = HttpApi;
|
package/api/indices/_api.js
CHANGED
|
@@ -15,60 +15,58 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { apiFunc } = require('../utils');
|
|
19
|
-
|
|
20
18
|
/** @namespace API-Indices */
|
|
21
19
|
|
|
22
20
|
function IndicesApi(bindObj) {
|
|
23
21
|
const cache = {};
|
|
24
|
-
this.addBlock =
|
|
25
|
-
this.analyze =
|
|
26
|
-
this.clearCache =
|
|
27
|
-
this.clone =
|
|
28
|
-
this.close =
|
|
29
|
-
this.create =
|
|
30
|
-
this.createDataStream =
|
|
31
|
-
this.dataStreamsStats =
|
|
32
|
-
this.delete =
|
|
33
|
-
this.deleteAlias =
|
|
34
|
-
this.deleteDataStream =
|
|
35
|
-
this.deleteIndexTemplate =
|
|
36
|
-
this.deleteTemplate =
|
|
37
|
-
this.exists =
|
|
38
|
-
this.existsAlias =
|
|
39
|
-
this.existsIndexTemplate =
|
|
40
|
-
this.existsTemplate =
|
|
41
|
-
this.flush =
|
|
42
|
-
this.forcemerge =
|
|
43
|
-
this.get =
|
|
44
|
-
this.getAlias =
|
|
45
|
-
this.getDataStream =
|
|
46
|
-
this.getFieldMapping =
|
|
47
|
-
this.getIndexTemplate =
|
|
48
|
-
this.getMapping =
|
|
49
|
-
this.getSettings =
|
|
50
|
-
this.getTemplate =
|
|
51
|
-
this.getUpgrade =
|
|
52
|
-
this.open =
|
|
53
|
-
this.putAlias =
|
|
54
|
-
this.putIndexTemplate =
|
|
55
|
-
this.putMapping =
|
|
56
|
-
this.putSettings =
|
|
57
|
-
this.putTemplate =
|
|
58
|
-
this.recovery =
|
|
59
|
-
this.refresh =
|
|
60
|
-
this.resolveIndex =
|
|
61
|
-
this.rollover =
|
|
62
|
-
this.segments =
|
|
63
|
-
this.shardStores =
|
|
64
|
-
this.shrink =
|
|
65
|
-
this.simulateIndexTemplate =
|
|
66
|
-
this.simulateTemplate =
|
|
67
|
-
this.split =
|
|
68
|
-
this.stats =
|
|
69
|
-
this.updateAliases =
|
|
70
|
-
this.upgrade =
|
|
71
|
-
this.validateQuery =
|
|
22
|
+
this.addBlock = require('./addBlock').bind(bindObj);
|
|
23
|
+
this.analyze = require('./analyze').bind(bindObj);
|
|
24
|
+
this.clearCache = require('./clearCache').bind(bindObj);
|
|
25
|
+
this.clone = require('./clone').bind(bindObj);
|
|
26
|
+
this.close = require('./close').bind(bindObj);
|
|
27
|
+
this.create = require('./create').bind(bindObj);
|
|
28
|
+
this.createDataStream = require('./createDataStream').bind(bindObj);
|
|
29
|
+
this.dataStreamsStats = require('./dataStreamsStats').bind(bindObj);
|
|
30
|
+
this.delete = require('./delete').bind(bindObj);
|
|
31
|
+
this.deleteAlias = require('./deleteAlias').bind(bindObj);
|
|
32
|
+
this.deleteDataStream = require('./deleteDataStream').bind(bindObj);
|
|
33
|
+
this.deleteIndexTemplate = require('./deleteIndexTemplate').bind(bindObj);
|
|
34
|
+
this.deleteTemplate = require('./deleteTemplate').bind(bindObj);
|
|
35
|
+
this.exists = require('./exists').bind(bindObj);
|
|
36
|
+
this.existsAlias = require('./existsAlias').bind(bindObj);
|
|
37
|
+
this.existsIndexTemplate = require('./existsIndexTemplate').bind(bindObj);
|
|
38
|
+
this.existsTemplate = require('./existsTemplate').bind(bindObj);
|
|
39
|
+
this.flush = require('./flush').bind(bindObj);
|
|
40
|
+
this.forcemerge = require('./forcemerge').bind(bindObj);
|
|
41
|
+
this.get = require('./get').bind(bindObj);
|
|
42
|
+
this.getAlias = require('./getAlias').bind(bindObj);
|
|
43
|
+
this.getDataStream = require('./getDataStream').bind(bindObj);
|
|
44
|
+
this.getFieldMapping = require('./getFieldMapping').bind(bindObj);
|
|
45
|
+
this.getIndexTemplate = require('./getIndexTemplate').bind(bindObj);
|
|
46
|
+
this.getMapping = require('./getMapping').bind(bindObj);
|
|
47
|
+
this.getSettings = require('./getSettings').bind(bindObj);
|
|
48
|
+
this.getTemplate = require('./getTemplate').bind(bindObj);
|
|
49
|
+
this.getUpgrade = require('./getUpgrade').bind(bindObj);
|
|
50
|
+
this.open = require('./open').bind(bindObj);
|
|
51
|
+
this.putAlias = require('./putAlias').bind(bindObj);
|
|
52
|
+
this.putIndexTemplate = require('./putIndexTemplate').bind(bindObj);
|
|
53
|
+
this.putMapping = require('./putMapping').bind(bindObj);
|
|
54
|
+
this.putSettings = require('./putSettings').bind(bindObj);
|
|
55
|
+
this.putTemplate = require('./putTemplate').bind(bindObj);
|
|
56
|
+
this.recovery = require('./recovery').bind(bindObj);
|
|
57
|
+
this.refresh = require('./refresh').bind(bindObj);
|
|
58
|
+
this.resolveIndex = require('./resolveIndex').bind(bindObj);
|
|
59
|
+
this.rollover = require('./rollover').bind(bindObj);
|
|
60
|
+
this.segments = require('./segments').bind(bindObj);
|
|
61
|
+
this.shardStores = require('./shardStores').bind(bindObj);
|
|
62
|
+
this.shrink = require('./shrink').bind(bindObj);
|
|
63
|
+
this.simulateIndexTemplate = require('./simulateIndexTemplate').bind(bindObj);
|
|
64
|
+
this.simulateTemplate = require('./simulateTemplate').bind(bindObj);
|
|
65
|
+
this.split = require('./split').bind(bindObj);
|
|
66
|
+
this.stats = require('./stats').bind(bindObj);
|
|
67
|
+
this.updateAliases = require('./updateAliases').bind(bindObj);
|
|
68
|
+
this.upgrade = require('./upgrade').bind(bindObj);
|
|
69
|
+
this.validateQuery = require('./validateQuery').bind(bindObj);
|
|
72
70
|
}
|
|
73
71
|
|
|
74
72
|
module.exports = IndicesApi;
|
package/api/ingest/_api.js
CHANGED
|
@@ -15,17 +15,15 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { apiFunc } = require('../utils');
|
|
19
|
-
|
|
20
18
|
/** @namespace API-Ingest */
|
|
21
19
|
|
|
22
20
|
function IngestApi(bindObj) {
|
|
23
21
|
const cache = {};
|
|
24
|
-
this.deletePipeline =
|
|
25
|
-
this.getPipeline =
|
|
26
|
-
this.processorGrok =
|
|
27
|
-
this.putPipeline =
|
|
28
|
-
this.simulate =
|
|
22
|
+
this.deletePipeline = require('./deletePipeline').bind(bindObj);
|
|
23
|
+
this.getPipeline = require('./getPipeline').bind(bindObj);
|
|
24
|
+
this.processorGrok = require('./processorGrok').bind(bindObj);
|
|
25
|
+
this.putPipeline = require('./putPipeline').bind(bindObj);
|
|
26
|
+
this.simulate = require('./simulate').bind(bindObj);
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
module.exports = IngestApi;
|
package/api/knn/_api.js
CHANGED
|
@@ -15,18 +15,16 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { apiFunc } = require('../utils');
|
|
19
|
-
|
|
20
18
|
/** @namespace API-Knn */
|
|
21
19
|
|
|
22
20
|
function KnnApi(bindObj) {
|
|
23
21
|
const cache = {};
|
|
24
|
-
this.deleteModel =
|
|
25
|
-
this.getModel =
|
|
26
|
-
this.searchModels =
|
|
27
|
-
this.stats =
|
|
28
|
-
this.trainModel =
|
|
29
|
-
this.warmup =
|
|
22
|
+
this.deleteModel = require('./deleteModel').bind(bindObj);
|
|
23
|
+
this.getModel = require('./getModel').bind(bindObj);
|
|
24
|
+
this.searchModels = require('./searchModels').bind(bindObj);
|
|
25
|
+
this.stats = require('./stats').bind(bindObj);
|
|
26
|
+
this.trainModel = require('./trainModel').bind(bindObj);
|
|
27
|
+
this.warmup = require('./warmup').bind(bindObj);
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
module.exports = KnnApi;
|
package/api/ml/_api.js
CHANGED
|
@@ -15,19 +15,17 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { apiFunc } = require('../utils');
|
|
19
|
-
|
|
20
18
|
/** @namespace API-Ml */
|
|
21
19
|
|
|
22
20
|
function MlApi(bindObj) {
|
|
23
21
|
const cache = {};
|
|
24
|
-
this.deleteModel =
|
|
25
|
-
this.deleteModelGroup =
|
|
26
|
-
this.getModelGroup =
|
|
27
|
-
this.getTask =
|
|
28
|
-
this.registerModel =
|
|
29
|
-
this.registerModelGroup =
|
|
30
|
-
this.searchModels =
|
|
22
|
+
this.deleteModel = require('./deleteModel').bind(bindObj);
|
|
23
|
+
this.deleteModelGroup = require('./deleteModelGroup').bind(bindObj);
|
|
24
|
+
this.getModelGroup = require('./getModelGroup').bind(bindObj);
|
|
25
|
+
this.getTask = require('./getTask').bind(bindObj);
|
|
26
|
+
this.registerModel = require('./registerModel').bind(bindObj);
|
|
27
|
+
this.registerModelGroup = require('./registerModelGroup').bind(bindObj);
|
|
28
|
+
this.searchModels = require('./searchModels').bind(bindObj);
|
|
31
29
|
}
|
|
32
30
|
|
|
33
31
|
module.exports = MlApi;
|
package/api/nodes/_api.js
CHANGED
|
@@ -15,17 +15,15 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { apiFunc } = require('../utils');
|
|
19
|
-
|
|
20
18
|
/** @namespace API-Nodes */
|
|
21
19
|
|
|
22
20
|
function NodesApi(bindObj) {
|
|
23
21
|
const cache = {};
|
|
24
|
-
this.hotThreads =
|
|
25
|
-
this.info =
|
|
26
|
-
this.reloadSecureSettings =
|
|
27
|
-
this.stats =
|
|
28
|
-
this.usage =
|
|
22
|
+
this.hotThreads = require('./hotThreads').bind(bindObj);
|
|
23
|
+
this.info = require('./info').bind(bindObj);
|
|
24
|
+
this.reloadSecureSettings = require('./reloadSecureSettings').bind(bindObj);
|
|
25
|
+
this.stats = require('./stats').bind(bindObj);
|
|
26
|
+
this.usage = require('./usage').bind(bindObj);
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
module.exports = NodesApi;
|
|
@@ -15,21 +15,19 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { apiFunc } = require('../utils');
|
|
19
|
-
|
|
20
18
|
/** @namespace API-Notifications */
|
|
21
19
|
|
|
22
20
|
function NotificationsApi(bindObj) {
|
|
23
21
|
const cache = {};
|
|
24
|
-
this.createConfig =
|
|
25
|
-
this.deleteConfig =
|
|
26
|
-
this.deleteConfigs =
|
|
27
|
-
this.getConfig =
|
|
28
|
-
this.getConfigs =
|
|
29
|
-
this.listChannels =
|
|
30
|
-
this.listFeatures =
|
|
31
|
-
this.sendTest =
|
|
32
|
-
this.updateConfig =
|
|
22
|
+
this.createConfig = require('./createConfig').bind(bindObj);
|
|
23
|
+
this.deleteConfig = require('./deleteConfig').bind(bindObj);
|
|
24
|
+
this.deleteConfigs = require('./deleteConfigs').bind(bindObj);
|
|
25
|
+
this.getConfig = require('./getConfig').bind(bindObj);
|
|
26
|
+
this.getConfigs = require('./getConfigs').bind(bindObj);
|
|
27
|
+
this.listChannels = require('./listChannels').bind(bindObj);
|
|
28
|
+
this.listFeatures = require('./listFeatures').bind(bindObj);
|
|
29
|
+
this.sendTest = require('./sendTest').bind(bindObj);
|
|
30
|
+
this.updateConfig = require('./updateConfig').bind(bindObj);
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
module.exports = NotificationsApi;
|
package/api/ppl/_api.js
CHANGED
|
@@ -15,16 +15,14 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { apiFunc } = require('../utils');
|
|
19
|
-
|
|
20
18
|
/** @namespace API-Ppl */
|
|
21
19
|
|
|
22
20
|
function PplApi(bindObj) {
|
|
23
21
|
const cache = {};
|
|
24
|
-
this.explain =
|
|
25
|
-
this.getStats =
|
|
26
|
-
this.postStats =
|
|
27
|
-
this.query =
|
|
22
|
+
this.explain = require('./explain').bind(bindObj);
|
|
23
|
+
this.getStats = require('./getStats').bind(bindObj);
|
|
24
|
+
this.postStats = require('./postStats').bind(bindObj);
|
|
25
|
+
this.query = require('./query').bind(bindObj);
|
|
28
26
|
}
|
|
29
27
|
|
|
30
28
|
module.exports = PplApi;
|
package/api/remoteStore/_api.js
CHANGED
|
@@ -15,13 +15,11 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { apiFunc } = require('../utils');
|
|
19
|
-
|
|
20
18
|
/** @namespace API-Remote-Store */
|
|
21
19
|
|
|
22
20
|
function RemotestoreApi(bindObj) {
|
|
23
21
|
const cache = {};
|
|
24
|
-
this.restore =
|
|
22
|
+
this.restore = require('./restore').bind(bindObj);
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
module.exports = RemotestoreApi;
|
package/api/rollups/_api.js
CHANGED
|
@@ -15,18 +15,16 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { apiFunc } = require('../utils');
|
|
19
|
-
|
|
20
18
|
/** @namespace API-Rollups */
|
|
21
19
|
|
|
22
20
|
function RollupsApi(bindObj) {
|
|
23
21
|
const cache = {};
|
|
24
|
-
this.delete =
|
|
25
|
-
this.explain =
|
|
26
|
-
this.get =
|
|
27
|
-
this.put =
|
|
28
|
-
this.start =
|
|
29
|
-
this.stop =
|
|
22
|
+
this.delete = require('./delete').bind(bindObj);
|
|
23
|
+
this.explain = require('./explain').bind(bindObj);
|
|
24
|
+
this.get = require('./get').bind(bindObj);
|
|
25
|
+
this.put = require('./put').bind(bindObj);
|
|
26
|
+
this.start = require('./start').bind(bindObj);
|
|
27
|
+
this.stop = require('./stop').bind(bindObj);
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
module.exports = RollupsApi;
|
|
@@ -15,15 +15,13 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { apiFunc } = require('../utils');
|
|
19
|
-
|
|
20
18
|
/** @namespace API-Search-Pipeline */
|
|
21
19
|
|
|
22
20
|
function SearchpipelineApi(bindObj) {
|
|
23
21
|
const cache = {};
|
|
24
|
-
this.delete =
|
|
25
|
-
this.get =
|
|
26
|
-
this.put =
|
|
22
|
+
this.delete = require('./delete').bind(bindObj);
|
|
23
|
+
this.get = require('./get').bind(bindObj);
|
|
24
|
+
this.put = require('./put').bind(bindObj);
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
module.exports = SearchpipelineApi;
|
package/api/security/_api.js
CHANGED
|
@@ -15,86 +15,84 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { apiFunc } = require('../utils');
|
|
19
|
-
|
|
20
18
|
/** @namespace API-Security */
|
|
21
19
|
|
|
22
20
|
function SecurityApi(bindObj) {
|
|
23
21
|
const cache = {};
|
|
24
|
-
this.authinfo =
|
|
25
|
-
this.authtoken =
|
|
26
|
-
this.changePassword =
|
|
27
|
-
this.configUpgradeCheck =
|
|
28
|
-
this.configUpgradePerform =
|
|
29
|
-
this.createActionGroup =
|
|
30
|
-
this.createAllowlist =
|
|
31
|
-
this.createRole =
|
|
32
|
-
this.createRoleMapping =
|
|
33
|
-
this.createTenant =
|
|
34
|
-
this.createUpdateTenancyConfig =
|
|
35
|
-
this.createUser =
|
|
36
|
-
this.createUserLegacy =
|
|
37
|
-
this.deleteActionGroup =
|
|
38
|
-
this.deleteDistinguishedName =
|
|
39
|
-
this.deleteRole =
|
|
40
|
-
this.deleteRoleMapping =
|
|
41
|
-
this.deleteTenant =
|
|
42
|
-
this.deleteUser =
|
|
43
|
-
this.deleteUserLegacy =
|
|
44
|
-
this.flushCache =
|
|
45
|
-
this.generateOboToken =
|
|
46
|
-
this.generateUserToken =
|
|
47
|
-
this.generateUserTokenLegacy =
|
|
48
|
-
this.getAccountDetails =
|
|
49
|
-
this.getActionGroup =
|
|
50
|
-
this.getActionGroups =
|
|
51
|
-
this.getAllowlist =
|
|
52
|
-
this.getAuditConfiguration =
|
|
53
|
-
this.getCertificates =
|
|
54
|
-
this.getConfiguration =
|
|
55
|
-
this.getDashboardsInfo =
|
|
56
|
-
this.getDistinguishedName =
|
|
57
|
-
this.getDistinguishedNames =
|
|
58
|
-
this.getPermissionsInfo =
|
|
59
|
-
this.getRole =
|
|
60
|
-
this.getRoleMapping =
|
|
61
|
-
this.getRoleMappings =
|
|
62
|
-
this.getRoles =
|
|
63
|
-
this.getSslinfo =
|
|
64
|
-
this.getTenancyConfig =
|
|
65
|
-
this.getTenant =
|
|
66
|
-
this.getTenants =
|
|
67
|
-
this.getUser =
|
|
68
|
-
this.getUserLegacy =
|
|
69
|
-
this.getUsers =
|
|
70
|
-
this.getUsersLegacy =
|
|
71
|
-
this.health =
|
|
72
|
-
this.migrate =
|
|
73
|
-
this.patchActionGroup =
|
|
74
|
-
this.patchActionGroups =
|
|
75
|
-
this.patchAllowlist =
|
|
76
|
-
this.patchAuditConfiguration =
|
|
77
|
-
this.patchConfiguration =
|
|
78
|
-
this.patchDistinguishedName =
|
|
79
|
-
this.patchDistinguishedNames =
|
|
80
|
-
this.patchRole =
|
|
81
|
-
this.patchRoleMapping =
|
|
82
|
-
this.patchRoleMappings =
|
|
83
|
-
this.patchRoles =
|
|
84
|
-
this.patchTenant =
|
|
85
|
-
this.patchTenants =
|
|
86
|
-
this.patchUser =
|
|
87
|
-
this.patchUsers =
|
|
88
|
-
this.postDashboardsInfo =
|
|
89
|
-
this.reloadHttpCertificates =
|
|
90
|
-
this.reloadTransportCertificates =
|
|
91
|
-
this.tenantInfo =
|
|
92
|
-
this.updateAuditConfiguration =
|
|
93
|
-
this.updateConfiguration =
|
|
94
|
-
this.updateDistinguishedName =
|
|
95
|
-
this.validate =
|
|
96
|
-
this.whoAmI =
|
|
97
|
-
this.whoAmIProtected =
|
|
22
|
+
this.authinfo = require('./authinfo').bind(bindObj);
|
|
23
|
+
this.authtoken = require('./authtoken').bind(bindObj);
|
|
24
|
+
this.changePassword = require('./changePassword').bind(bindObj);
|
|
25
|
+
this.configUpgradeCheck = require('./configUpgradeCheck').bind(bindObj);
|
|
26
|
+
this.configUpgradePerform = require('./configUpgradePerform').bind(bindObj);
|
|
27
|
+
this.createActionGroup = require('./createActionGroup').bind(bindObj);
|
|
28
|
+
this.createAllowlist = require('./createAllowlist').bind(bindObj);
|
|
29
|
+
this.createRole = require('./createRole').bind(bindObj);
|
|
30
|
+
this.createRoleMapping = require('./createRoleMapping').bind(bindObj);
|
|
31
|
+
this.createTenant = require('./createTenant').bind(bindObj);
|
|
32
|
+
this.createUpdateTenancyConfig = require('./createUpdateTenancyConfig').bind(bindObj);
|
|
33
|
+
this.createUser = require('./createUser').bind(bindObj);
|
|
34
|
+
this.createUserLegacy = require('./createUserLegacy').bind(bindObj);
|
|
35
|
+
this.deleteActionGroup = require('./deleteActionGroup').bind(bindObj);
|
|
36
|
+
this.deleteDistinguishedName = require('./deleteDistinguishedName').bind(bindObj);
|
|
37
|
+
this.deleteRole = require('./deleteRole').bind(bindObj);
|
|
38
|
+
this.deleteRoleMapping = require('./deleteRoleMapping').bind(bindObj);
|
|
39
|
+
this.deleteTenant = require('./deleteTenant').bind(bindObj);
|
|
40
|
+
this.deleteUser = require('./deleteUser').bind(bindObj);
|
|
41
|
+
this.deleteUserLegacy = require('./deleteUserLegacy').bind(bindObj);
|
|
42
|
+
this.flushCache = require('./flushCache').bind(bindObj);
|
|
43
|
+
this.generateOboToken = require('./generateOboToken').bind(bindObj);
|
|
44
|
+
this.generateUserToken = require('./generateUserToken').bind(bindObj);
|
|
45
|
+
this.generateUserTokenLegacy = require('./generateUserTokenLegacy').bind(bindObj);
|
|
46
|
+
this.getAccountDetails = require('./getAccountDetails').bind(bindObj);
|
|
47
|
+
this.getActionGroup = require('./getActionGroup').bind(bindObj);
|
|
48
|
+
this.getActionGroups = require('./getActionGroups').bind(bindObj);
|
|
49
|
+
this.getAllowlist = require('./getAllowlist').bind(bindObj);
|
|
50
|
+
this.getAuditConfiguration = require('./getAuditConfiguration').bind(bindObj);
|
|
51
|
+
this.getCertificates = require('./getCertificates').bind(bindObj);
|
|
52
|
+
this.getConfiguration = require('./getConfiguration').bind(bindObj);
|
|
53
|
+
this.getDashboardsInfo = require('./getDashboardsInfo').bind(bindObj);
|
|
54
|
+
this.getDistinguishedName = require('./getDistinguishedName').bind(bindObj);
|
|
55
|
+
this.getDistinguishedNames = require('./getDistinguishedNames').bind(bindObj);
|
|
56
|
+
this.getPermissionsInfo = require('./getPermissionsInfo').bind(bindObj);
|
|
57
|
+
this.getRole = require('./getRole').bind(bindObj);
|
|
58
|
+
this.getRoleMapping = require('./getRoleMapping').bind(bindObj);
|
|
59
|
+
this.getRoleMappings = require('./getRoleMappings').bind(bindObj);
|
|
60
|
+
this.getRoles = require('./getRoles').bind(bindObj);
|
|
61
|
+
this.getSslinfo = require('./getSslinfo').bind(bindObj);
|
|
62
|
+
this.getTenancyConfig = require('./getTenancyConfig').bind(bindObj);
|
|
63
|
+
this.getTenant = require('./getTenant').bind(bindObj);
|
|
64
|
+
this.getTenants = require('./getTenants').bind(bindObj);
|
|
65
|
+
this.getUser = require('./getUser').bind(bindObj);
|
|
66
|
+
this.getUserLegacy = require('./getUserLegacy').bind(bindObj);
|
|
67
|
+
this.getUsers = require('./getUsers').bind(bindObj);
|
|
68
|
+
this.getUsersLegacy = require('./getUsersLegacy').bind(bindObj);
|
|
69
|
+
this.health = require('./health').bind(bindObj);
|
|
70
|
+
this.migrate = require('./migrate').bind(bindObj);
|
|
71
|
+
this.patchActionGroup = require('./patchActionGroup').bind(bindObj);
|
|
72
|
+
this.patchActionGroups = require('./patchActionGroups').bind(bindObj);
|
|
73
|
+
this.patchAllowlist = require('./patchAllowlist').bind(bindObj);
|
|
74
|
+
this.patchAuditConfiguration = require('./patchAuditConfiguration').bind(bindObj);
|
|
75
|
+
this.patchConfiguration = require('./patchConfiguration').bind(bindObj);
|
|
76
|
+
this.patchDistinguishedName = require('./patchDistinguishedName').bind(bindObj);
|
|
77
|
+
this.patchDistinguishedNames = require('./patchDistinguishedNames').bind(bindObj);
|
|
78
|
+
this.patchRole = require('./patchRole').bind(bindObj);
|
|
79
|
+
this.patchRoleMapping = require('./patchRoleMapping').bind(bindObj);
|
|
80
|
+
this.patchRoleMappings = require('./patchRoleMappings').bind(bindObj);
|
|
81
|
+
this.patchRoles = require('./patchRoles').bind(bindObj);
|
|
82
|
+
this.patchTenant = require('./patchTenant').bind(bindObj);
|
|
83
|
+
this.patchTenants = require('./patchTenants').bind(bindObj);
|
|
84
|
+
this.patchUser = require('./patchUser').bind(bindObj);
|
|
85
|
+
this.patchUsers = require('./patchUsers').bind(bindObj);
|
|
86
|
+
this.postDashboardsInfo = require('./postDashboardsInfo').bind(bindObj);
|
|
87
|
+
this.reloadHttpCertificates = require('./reloadHttpCertificates').bind(bindObj);
|
|
88
|
+
this.reloadTransportCertificates = require('./reloadTransportCertificates').bind(bindObj);
|
|
89
|
+
this.tenantInfo = require('./tenantInfo').bind(bindObj);
|
|
90
|
+
this.updateAuditConfiguration = require('./updateAuditConfiguration').bind(bindObj);
|
|
91
|
+
this.updateConfiguration = require('./updateConfiguration').bind(bindObj);
|
|
92
|
+
this.updateDistinguishedName = require('./updateDistinguishedName').bind(bindObj);
|
|
93
|
+
this.validate = require('./validate').bind(bindObj);
|
|
94
|
+
this.whoAmI = require('./whoAmI').bind(bindObj);
|
|
95
|
+
this.whoAmIProtected = require('./whoAmIProtected').bind(bindObj);
|
|
98
96
|
}
|
|
99
97
|
|
|
100
98
|
module.exports = SecurityApi;
|
package/api/snapshot/_api.js
CHANGED
|
@@ -15,23 +15,21 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { apiFunc } = require('../utils');
|
|
19
|
-
|
|
20
18
|
/** @namespace API-Snapshot */
|
|
21
19
|
|
|
22
20
|
function SnapshotApi(bindObj) {
|
|
23
21
|
const cache = {};
|
|
24
|
-
this.cleanupRepository =
|
|
25
|
-
this.clone =
|
|
26
|
-
this.create =
|
|
27
|
-
this.createRepository =
|
|
28
|
-
this.delete =
|
|
29
|
-
this.deleteRepository =
|
|
30
|
-
this.get =
|
|
31
|
-
this.getRepository =
|
|
32
|
-
this.restore =
|
|
33
|
-
this.status =
|
|
34
|
-
this.verifyRepository =
|
|
22
|
+
this.cleanupRepository = require('./cleanupRepository').bind(bindObj);
|
|
23
|
+
this.clone = require('./clone').bind(bindObj);
|
|
24
|
+
this.create = require('./create').bind(bindObj);
|
|
25
|
+
this.createRepository = require('./createRepository').bind(bindObj);
|
|
26
|
+
this.delete = require('./delete').bind(bindObj);
|
|
27
|
+
this.deleteRepository = require('./deleteRepository').bind(bindObj);
|
|
28
|
+
this.get = require('./get').bind(bindObj);
|
|
29
|
+
this.getRepository = require('./getRepository').bind(bindObj);
|
|
30
|
+
this.restore = require('./restore').bind(bindObj);
|
|
31
|
+
this.status = require('./status').bind(bindObj);
|
|
32
|
+
this.verifyRepository = require('./verifyRepository').bind(bindObj);
|
|
35
33
|
}
|
|
36
34
|
|
|
37
35
|
module.exports = SnapshotApi;
|
package/api/sql/_api.js
CHANGED
|
@@ -15,18 +15,16 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { apiFunc } = require('../utils');
|
|
19
|
-
|
|
20
18
|
/** @namespace API-Sql */
|
|
21
19
|
|
|
22
20
|
function SqlApi(bindObj) {
|
|
23
21
|
const cache = {};
|
|
24
|
-
this.close =
|
|
25
|
-
this.explain =
|
|
26
|
-
this.getStats =
|
|
27
|
-
this.postStats =
|
|
28
|
-
this.query =
|
|
29
|
-
this.settings =
|
|
22
|
+
this.close = require('./close').bind(bindObj);
|
|
23
|
+
this.explain = require('./explain').bind(bindObj);
|
|
24
|
+
this.getStats = require('./getStats').bind(bindObj);
|
|
25
|
+
this.postStats = require('./postStats').bind(bindObj);
|
|
26
|
+
this.query = require('./query').bind(bindObj);
|
|
27
|
+
this.settings = require('./settings').bind(bindObj);
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
module.exports = SqlApi;
|
package/api/tasks/_api.js
CHANGED
|
@@ -15,15 +15,13 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { apiFunc } = require('../utils');
|
|
19
|
-
|
|
20
18
|
/** @namespace API-Tasks */
|
|
21
19
|
|
|
22
20
|
function TasksApi(bindObj) {
|
|
23
21
|
const cache = {};
|
|
24
|
-
this.cancel =
|
|
25
|
-
this.get =
|
|
26
|
-
this.list =
|
|
22
|
+
this.cancel = require('./cancel').bind(bindObj);
|
|
23
|
+
this.get = require('./get').bind(bindObj);
|
|
24
|
+
this.list = require('./list').bind(bindObj);
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
module.exports = TasksApi;
|
package/api/transforms/_api.js
CHANGED
|
@@ -15,20 +15,18 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { apiFunc } = require('../utils');
|
|
19
|
-
|
|
20
18
|
/** @namespace API-Transforms */
|
|
21
19
|
|
|
22
20
|
function TransformsApi(bindObj) {
|
|
23
21
|
const cache = {};
|
|
24
|
-
this.delete =
|
|
25
|
-
this.explain =
|
|
26
|
-
this.get =
|
|
27
|
-
this.preview =
|
|
28
|
-
this.put =
|
|
29
|
-
this.search =
|
|
30
|
-
this.start =
|
|
31
|
-
this.stop =
|
|
22
|
+
this.delete = require('./delete').bind(bindObj);
|
|
23
|
+
this.explain = require('./explain').bind(bindObj);
|
|
24
|
+
this.get = require('./get').bind(bindObj);
|
|
25
|
+
this.preview = require('./preview').bind(bindObj);
|
|
26
|
+
this.put = require('./put').bind(bindObj);
|
|
27
|
+
this.search = require('./search').bind(bindObj);
|
|
28
|
+
this.start = require('./start').bind(bindObj);
|
|
29
|
+
this.stop = require('./stop').bind(bindObj);
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
module.exports = TransformsApi;
|
package/api/utils.js
CHANGED
|
@@ -60,12 +60,12 @@ function normalizeArguments(params, options, callback) {
|
|
|
60
60
|
return [params, options, callback];
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
function apiFunc (bindObj, cache, path) {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
63
|
+
// function apiFunc (bindObj, cache, path) { // Used for lazy loading but not compatible with Webpack
|
|
64
|
+
// return function (...args) {
|
|
65
|
+
// if (!cache[path]) cache[path] = require(path).bind(bindObj);
|
|
66
|
+
// return cache[path](...args);
|
|
67
|
+
// }
|
|
68
|
+
// }
|
|
69
69
|
|
|
70
70
|
function logMemoryUsage(context = '') {
|
|
71
71
|
const memoryUsage = process.memoryUsage();
|
|
@@ -82,6 +82,5 @@ module.exports = {
|
|
|
82
82
|
normalizeArguments,
|
|
83
83
|
noop,
|
|
84
84
|
kConfigErr,
|
|
85
|
-
apiFunc,
|
|
86
85
|
logMemoryUsage,
|
|
87
86
|
};
|
package/lib/OpenSearchAPI.js
CHANGED
|
@@ -15,89 +15,101 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict'
|
|
17
17
|
|
|
18
|
-
const { kConfigErr
|
|
18
|
+
const { kConfigErr } = require('../api/utils')
|
|
19
19
|
const kApiModules = Symbol('api modules')
|
|
20
|
-
const kApiLoader = Symbol('api loader')
|
|
21
20
|
|
|
22
21
|
class OpenSearchAPI {
|
|
23
22
|
constructor (opts) {
|
|
24
23
|
this[kConfigErr] = opts.ConfigurationError
|
|
25
|
-
this[kApiModules] = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
this[kApiModules] = {
|
|
25
|
+
cat: new(require('../api/cat/_api'))(this),
|
|
26
|
+
cluster: new(require('../api/cluster/_api'))(this),
|
|
27
|
+
danglingIndices: new(require('../api/danglingIndices/_api'))(this),
|
|
28
|
+
http: new(require('../api/http/_api'))(this),
|
|
29
|
+
indices: new(require('../api/indices/_api'))(this),
|
|
30
|
+
ingest: new(require('../api/ingest/_api'))(this),
|
|
31
|
+
knn: new(require('../api/knn/_api'))(this),
|
|
32
|
+
ml: new(require('../api/ml/_api'))(this),
|
|
33
|
+
nodes: new(require('../api/nodes/_api'))(this),
|
|
34
|
+
notifications: new(require('../api/notifications/_api'))(this),
|
|
35
|
+
ppl: new(require('../api/ppl/_api'))(this),
|
|
36
|
+
remoteStore: new(require('../api/remoteStore/_api'))(this),
|
|
37
|
+
rollups: new(require('../api/rollups/_api'))(this),
|
|
38
|
+
searchPipeline: new(require('../api/searchPipeline/_api'))(this),
|
|
39
|
+
security: new(require('../api/security/_api'))(this),
|
|
40
|
+
snapshot: new(require('../api/snapshot/_api'))(this),
|
|
41
|
+
sql: new(require('../api/sql/_api'))(this),
|
|
42
|
+
tasks: new(require('../api/tasks/_api'))(this),
|
|
43
|
+
transforms: new(require('../api/transforms/_api'))(this),
|
|
32
44
|
}
|
|
33
45
|
|
|
34
46
|
// Setup Root API Functions
|
|
35
47
|
/** @namespace API-Core */
|
|
36
48
|
const cache = {}
|
|
37
|
-
this.bulk =
|
|
38
|
-
this.clearScroll =
|
|
39
|
-
this.count =
|
|
40
|
-
this.create =
|
|
41
|
-
this.createPit =
|
|
42
|
-
this.delete =
|
|
43
|
-
this.deleteAllPits =
|
|
44
|
-
this.deleteByQuery =
|
|
45
|
-
this.deleteByQueryRethrottle =
|
|
46
|
-
this.deletePit =
|
|
47
|
-
this.deleteScript =
|
|
48
|
-
this.exists =
|
|
49
|
-
this.existsSource =
|
|
50
|
-
this.explain =
|
|
51
|
-
this.fieldCaps =
|
|
52
|
-
this.get =
|
|
53
|
-
this.getAllPits =
|
|
54
|
-
this.getScript =
|
|
55
|
-
this.getScriptContext =
|
|
56
|
-
this.getScriptLanguages =
|
|
57
|
-
this.getSource =
|
|
58
|
-
this.index =
|
|
59
|
-
this.info =
|
|
60
|
-
this.mget =
|
|
61
|
-
this.msearch =
|
|
62
|
-
this.msearchTemplate =
|
|
63
|
-
this.mtermvectors =
|
|
64
|
-
this.ping =
|
|
65
|
-
this.putScript =
|
|
66
|
-
this.rankEval =
|
|
67
|
-
this.reindex =
|
|
68
|
-
this.reindexRethrottle =
|
|
69
|
-
this.renderSearchTemplate =
|
|
70
|
-
this.scriptsPainlessExecute =
|
|
71
|
-
this.scroll =
|
|
72
|
-
this.search =
|
|
73
|
-
this.searchShards =
|
|
74
|
-
this.searchTemplate =
|
|
75
|
-
this.termvectors =
|
|
76
|
-
this.update =
|
|
77
|
-
this.updateByQuery =
|
|
78
|
-
this.updateByQueryRethrottle =
|
|
49
|
+
this.bulk = require('../api/_core/bulk').bind(this)
|
|
50
|
+
this.clearScroll = require('../api/_core/clearScroll').bind(this)
|
|
51
|
+
this.count = require('../api/_core/count').bind(this)
|
|
52
|
+
this.create = require('../api/_core/create').bind(this)
|
|
53
|
+
this.createPit = require('../api/_core/createPit').bind(this)
|
|
54
|
+
this.delete = require('../api/_core/delete').bind(this)
|
|
55
|
+
this.deleteAllPits = require('../api/_core/deleteAllPits').bind(this)
|
|
56
|
+
this.deleteByQuery = require('../api/_core/deleteByQuery').bind(this)
|
|
57
|
+
this.deleteByQueryRethrottle = require('../api/_core/deleteByQueryRethrottle').bind(this)
|
|
58
|
+
this.deletePit = require('../api/_core/deletePit').bind(this)
|
|
59
|
+
this.deleteScript = require('../api/_core/deleteScript').bind(this)
|
|
60
|
+
this.exists = require('../api/_core/exists').bind(this)
|
|
61
|
+
this.existsSource = require('../api/_core/existsSource').bind(this)
|
|
62
|
+
this.explain = require('../api/_core/explain').bind(this)
|
|
63
|
+
this.fieldCaps = require('../api/_core/fieldCaps').bind(this)
|
|
64
|
+
this.get = require('../api/_core/get').bind(this)
|
|
65
|
+
this.getAllPits = require('../api/_core/getAllPits').bind(this)
|
|
66
|
+
this.getScript = require('../api/_core/getScript').bind(this)
|
|
67
|
+
this.getScriptContext = require('../api/_core/getScriptContext').bind(this)
|
|
68
|
+
this.getScriptLanguages = require('../api/_core/getScriptLanguages').bind(this)
|
|
69
|
+
this.getSource = require('../api/_core/getSource').bind(this)
|
|
70
|
+
this.index = require('../api/_core/index').bind(this)
|
|
71
|
+
this.info = require('../api/_core/info').bind(this)
|
|
72
|
+
this.mget = require('../api/_core/mget').bind(this)
|
|
73
|
+
this.msearch = require('../api/_core/msearch').bind(this)
|
|
74
|
+
this.msearchTemplate = require('../api/_core/msearchTemplate').bind(this)
|
|
75
|
+
this.mtermvectors = require('../api/_core/mtermvectors').bind(this)
|
|
76
|
+
this.ping = require('../api/_core/ping').bind(this)
|
|
77
|
+
this.putScript = require('../api/_core/putScript').bind(this)
|
|
78
|
+
this.rankEval = require('../api/_core/rankEval').bind(this)
|
|
79
|
+
this.reindex = require('../api/_core/reindex').bind(this)
|
|
80
|
+
this.reindexRethrottle = require('../api/_core/reindexRethrottle').bind(this)
|
|
81
|
+
this.renderSearchTemplate = require('../api/_core/renderSearchTemplate').bind(this)
|
|
82
|
+
this.scriptsPainlessExecute = require('../api/_core/scriptsPainlessExecute').bind(this)
|
|
83
|
+
this.scroll = require('../api/_core/scroll').bind(this)
|
|
84
|
+
this.search = require('../api/_core/search').bind(this)
|
|
85
|
+
this.searchShards = require('../api/_core/searchShards').bind(this)
|
|
86
|
+
this.searchTemplate = require('../api/_core/searchTemplate').bind(this)
|
|
87
|
+
this.termvectors = require('../api/_core/termvectors').bind(this)
|
|
88
|
+
this.update = require('../api/_core/update').bind(this)
|
|
89
|
+
this.updateByQuery = require('../api/_core/updateByQuery').bind(this)
|
|
90
|
+
this.updateByQueryRethrottle = require('../api/_core/updateByQueryRethrottle').bind(this)
|
|
79
91
|
|
|
80
92
|
// Setup API Modules
|
|
81
93
|
Object.defineProperties(this, {
|
|
82
|
-
cat: { get() { return this[
|
|
83
|
-
cluster: { get() { return this[
|
|
84
|
-
danglingIndices: { get() { return this[
|
|
85
|
-
http: { get() { return this[
|
|
86
|
-
indices: { get() { return this[
|
|
87
|
-
ingest: { get() { return this[
|
|
88
|
-
knn: { get() { return this[
|
|
89
|
-
ml: { get() { return this[
|
|
90
|
-
nodes: { get() { return this[
|
|
91
|
-
notifications: { get() { return this[
|
|
92
|
-
ppl: { get() { return this[
|
|
93
|
-
remoteStore: { get() { return this[
|
|
94
|
-
rollups: { get() { return this[
|
|
95
|
-
searchPipeline: { get() { return this[
|
|
96
|
-
security: { get() { return this[
|
|
97
|
-
snapshot: { get() { return this[
|
|
98
|
-
sql: { get() { return this[
|
|
99
|
-
tasks: { get() { return this[
|
|
100
|
-
transforms: { get() { return this[
|
|
94
|
+
cat: { get() { return this[kApiModules].cat } },
|
|
95
|
+
cluster: { get() { return this[kApiModules].cluster } },
|
|
96
|
+
danglingIndices: { get() { return this[kApiModules].danglingIndices } },
|
|
97
|
+
http: { get() { return this[kApiModules].http } },
|
|
98
|
+
indices: { get() { return this[kApiModules].indices } },
|
|
99
|
+
ingest: { get() { return this[kApiModules].ingest } },
|
|
100
|
+
knn: { get() { return this[kApiModules].knn } },
|
|
101
|
+
ml: { get() { return this[kApiModules].ml } },
|
|
102
|
+
nodes: { get() { return this[kApiModules].nodes } },
|
|
103
|
+
notifications: { get() { return this[kApiModules].notifications } },
|
|
104
|
+
ppl: { get() { return this[kApiModules].ppl } },
|
|
105
|
+
remoteStore: { get() { return this[kApiModules].remoteStore } },
|
|
106
|
+
rollups: { get() { return this[kApiModules].rollups } },
|
|
107
|
+
searchPipeline: { get() { return this[kApiModules].searchPipeline } },
|
|
108
|
+
security: { get() { return this[kApiModules].security } },
|
|
109
|
+
snapshot: { get() { return this[kApiModules].snapshot } },
|
|
110
|
+
sql: { get() { return this[kApiModules].sql } },
|
|
111
|
+
tasks: { get() { return this[kApiModules].tasks } },
|
|
112
|
+
transforms: { get() { return this[kApiModules].transforms } },
|
|
101
113
|
})
|
|
102
114
|
}
|
|
103
115
|
}
|
package/package.json
CHANGED