@anoki/fse-common
Version:
Common types for FSE
30 lines (27 loc) • 939 B
text/typescript
import { WithMongooseProps } from './with-mongoose-props'
import { ReferenceEntityTypes } from '../constants'
import { EntityType } from './entity-type'
import { WithTranslations } from './with-translations'
import { Upload } from './upload-file'
import { Category } from './category'
import { AggregationPage } from './aggregation-page'
export type AggregationItemTranslations = {
materializedName: string
materializedDescription: string
}
export type AggregationItem<TReference = any> = WithMongooseProps<
AggregationItemTranslations & {
aggregationPageIds: string[]
aggregationPages: AggregationPage[]
referenceEntityType: ReferenceEntityTypes
referenceId?: string
reference: TReference
entityTypeId: string
entityType?: EntityType
categoryId: string
category?: Category
translations: WithTranslations<AggregationItemTranslations>
previewImage?: Upload
updatedById?: string
}
>