import { CalendarResponse } from '../../interfaces/calendar.interface' import { Api } from '../api' export const CALENDAR_API = '/service/calendar/events/element' export class Calendar { api: Api constructor(api: Api) { this.api = api } async getCalendarEvents(elementHash: string, month: number, year: number) { const response = await this.api.apisauce.get( `${CALENDAR_API}/${elementHash}`, { month: (month + 1).toString(), withDescendants: 'true', year: year.toString(), }, { cache: false, }, ) return response } }