import { AxiosInstance } from 'axios' ; import { Timezone } from '../@types' ; export default function ( client ) { return { async getTimezones ( ) { return await client . get ( 'timezones' , { baseURL : 'https://api.mailerlite.com/api/master/' , } ) ; } , async getTimezone ( timezoneId ) { return await client . get ( `timezones/${ timezoneId }` , { baseURL : 'https://api.mailerlite.com/api/master/' , } ) ; } , } ; }