@opensearch-project/opensearch 3.0.0-beta.4 → 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.d.ts +1403 -0
- package/lib/OpenSearchAPI.js +117 -0
- package/package.json +5 -1
- package/.dockerignore +0 -5
- package/.eslintignore +0 -2
- package/.eslintrc.json +0 -34
- package/.prettierrc.json +0 -5
- package/.whitesource +0 -15
- package/ADMINS.md +0 -16
- package/COMPATIBILITY.md +0 -13
- package/DEVELOPER_GUIDE.md +0 -127
- package/MAINTAINERS.md +0 -23
- package/Makefile +0 -17
- package/RELEASING.md +0 -41
- package/SECURITY.md +0 -3
- package/USER_GUIDE.md +0 -316
- package/codecov.yml +0 -14
- package/guides/advanced_index_actions.md +0 -92
- package/guides/bulk.md +0 -126
- package/guides/document_lifecycle.md +0 -162
- package/guides/index_lifecycle.md +0 -142
- package/guides/index_template.md +0 -228
- package/guides/json.md +0 -53
- package/guides/msearch.md +0 -56
- package/guides/search.md +0 -203
- package/jenkins/release.JenkinsFile +0 -11
- package/samples/README.md +0 -17
- package/samples/bulk.js +0 -91
- package/samples/json.js +0 -75
- package/samples/msearch.js +0 -131
- package/samples/rollups.js +0 -139
- package/samples/search.js +0 -155
- package/samples/transforms.ts +0 -146
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;
|