@anoki/fse-common
Version:
Common types for FSE
26 lines (24 loc) • 749 B
text/typescript
import { Category } from './category'
import { EntityType } from './entity-type'
import { AggregationPage } from './aggregation-page'
import { WithTranslations } from './with-translations'
import { WithMongooseProps } from './with-mongoose-props'
/**
* Used to add basic fields to document
*/
export type WithBasicFields<TData, TTranslatedFields> = WithMongooseProps<
TData & {
pageUrl: string
isPublished: boolean
categoryId: string
category?: Category
entityTypeId: string
entityType?: EntityType
updatedById?: string
targetPageIds: string[]
targetPages: AggregationPage[]
aggregationPageIds: string[]
aggregationPages: AggregationPage[]
translations: WithTranslations<TTranslatedFields>
}
>