indexea-js-sdk
indexea typescript sdk
Install
$ npm install indexea
Usage
import { WidgetsApi, SearchApi } from 'indexea/apis'
// initialize indexea openapi client
const config = {
basePath: '/v1',
headers: { accept: 'application/json' },
accessToken: () => {
return 'user token'
},
credentials: 'include',
middleware: []
}
var searchApi = new SearchApi(config);
searchApi.searchWidgetSearch({ widget, index, 'test', {}, 0, 20 }).then(res => {
console.log(res);
});
Update
$ ./openapi.sh full_path_of_openapi.yml
$ git add *
$ git commit -m "update version"
$ npm version patch
$ npm publish
$ git push