npm.io
1.3.15 • Published 3 years ago

indexea

Licence
MIT
Version
1.3.15
Deps
0
Size
643 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

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