import Healthchecks from './healthchecks'; const enums = { itemStateFailedCause: ['ErrorCause1', 'ErrorCause2', 'ErrorCause3'], itemStateProgress: ['Init', 'Pending', 'Completed'], }; export default class PlaygroundApiClient { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } this.enums = enums; this.healthchecks = new Healthchecks(options); } }