UNPKG

@kadconsulting/dry

Version:
8 lines (7 loc) 927 B
import { BookingAttributes, CalendarAttributes } from '../types/main'; import { CalendarEvent } from '../components/CalendarComponent/CalendarComponent'; import { ResourceCalendarEvent } from '../components/ResourceCalendar/ResourceCalendar'; declare const transformResourceBookingsToCalendarEvents: (bookings: BookingAttributes[], resourceId: string | number, selectedFilters?: Record<string | number, [string | number]>) => ResourceCalendarEvent[]; declare const transformResourceCalendarToCalendarEvents: (calendar: CalendarAttributes[], resourceId: string | number, blockedTimeColor?: string) => ResourceCalendarEvent[]; declare const transformAllBookingsToCalendarEvents: (bookings: BookingAttributes[], selectedFilters?: Record<string | number, [string | number]>) => CalendarEvent[]; export { transformResourceBookingsToCalendarEvents, transformAllBookingsToCalendarEvents, transformResourceCalendarToCalendarEvents, };