import { parseEventDoc } from '@weco/common/services/prismic/events' ; import { UiEvent as DeprecatedEvent } from '@weco/common/model/events' ; import { Event } from '../../../types/events' ; import { EventPrismicDocument } from '../types/events' ; export function transformEvent ( document ) { const event = parseEventDoc ( document ) ; return { ... event , prismicDocument : document , } ; }