import AccessTokenWrappers from './access-token-wrappers'; import Configurations from './configurations'; import Feedbacks from './feedbacks'; const enums = { compareString: ['greaterThan', 'equals', 'smallerThan'], formType: ['mobileInvitation', 'code'], ratingViewType: ['slide', 'numbersSquare', 'gradingSlider', 'gradingDropdown', 'stars', 'emoticons', 'numbers', 'smilies', 'bars'], }; export default class MedalliaApiClient { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } this.enums = enums; this.accessTokenWrappers = new AccessTokenWrappers(options); this.configurations = new Configurations(options); this.feedbacks = new Feedbacks(options); } }