// @flow import note from './Note' import patient from './Patient' import api from './Client' import type { ElationCredentials } from './Client' class Elation { client: *; initialize: () => Promise; Patient: () => $Call; Note: () => $Call; constructor(credentials: ElationCredentials, sandbox: boolean = true) { const APIClient = api(credentials, sandbox) this.client = new APIClient() this.initialize = this.client.initialize } Patient = () => patient(this.client) Note = () => note(this.client) } export default Elation