Elasticsearch 7 support 🚀 (#760)

* API generation

* Updated typings

* Updated code generation

* Updated test

* Updated ci configuration

* Fixed test
This commit is contained in:
Tomas Della Vedova
2019-01-29 12:10:20 +01:00
committed by GitHub
parent bd2755a302
commit 7acd2e3b07
259 changed files with 4368 additions and 1990 deletions

View File

@ -77,11 +77,14 @@ function buildCcrUnfollow (opts) {
ignore = [ignore]
}
var path = ''
path = '/' + encodeURIComponent(params['index']) + '/' + '_ccr' + '/' + 'unfollow'
// build request object
const parts = [params['index'], '_ccr', 'unfollow']
const request = {
method,
path: '/' + parts.filter(Boolean).map(encodeURIComponent).join('/'),
path,
body: params.body || '',
querystring
}