import { parseArticleSeries } from '@weco/common/services/prismic/article-series' ; import { ArticleSeries as DeprecatedArticleSeries } from '@weco/common/model/article-series' ; import { Series } from '../../../types/series' ; import { SeriesPrismicDocument } from '../types/series' ; export function transformSeries ( document ) { const series = parseArticleSeries ( document ) ; return { ... series , prismicDocument : document , } ; }