UNPKG

@anoki/fse-common

Version:

Common types for FSE

26 lines (25 loc) 958 B
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; }>;