import Services from './services'; const enums = { serviceState: ['unavailable', 'available', 'error'], serviceType: ['public', 'internal'], }; export default class RegistryApiClient { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } this.enums = enums; this.services = new Services(options); } }