import QueryResponses from './query-responses'; import Topics from './topics'; import Views from './views'; const enums = { scalarType: ['boolean', 'date-iso8601', 'date-time-iso8601', 'decimal', 'double', 'integer', 'long', 'string', 'uuid', 'object'], }; export default class ReportingApiClient { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } this.enums = enums; this.queryResponses = new QueryResponses(options); this.topics = new Topics(options); this.views = new Views(options); } }