import { fetcher } from '.' ; import { eventSeriesFetchLinks , EventSeriesPrismicDocument , } from '../types/event-series' ; const fetchLinks = eventSeriesFetchLinks ; const eventSeriesFetcher = fetcher < EventSeriesPrismicDocument > ( 'event-series' , fetchLinks ) ; export const fetchEventSeriesById = eventSeriesFetcher . getById ; export const fetchEventSeries = eventSeriesFetcher . getByType ; export const fetchEventSeriesClientSide = eventSeriesFetcher . getByTypeClientSide ;