import SearchPersons from './search-persons'; const enums = { }; export default class SyriusRestApiClient { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } this.enums = enums; this.searchPersons = new SearchPersons(options); } }