import CreateEvents from './create-events'; const enums = { eventType: ['trigger', 'acknowledge', 'resolve'], }; export default class PagerdutyApiClient { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } this.enums = enums; this.createEvents = new CreateEvents(options); } }