import { parseEventSeries } from '@weco/common/services/prismic/event-series' ; import { EventSeries as DeprecatedEventSeries } from '@weco/common/model/event-series' ; import { EventSeries } from '../../../types/event-series' ; import { EventSeriesPrismicDocument } from '../types/event-series' ; export function transformEventSeries ( document ) { const eventSeries = parseEventSeries ( document ) ; return { ... eventSeries , prismicDocument : document , } ; }