import { WithTenantProps } from './with-tenant-props' import { WithMongooseProps } from './with-mongoose-props' import { ReferenceEntityTypes } from '../constants' import { EntityType } from './entity-type' import { WebAppCategory } from './category' import { WithTranslations } from './with-translations' import { Upload } from './upload-file' export type AggregationItemTranslatedFields = 'materializedName' | 'materializedDescription' export type AggregationItemTranslations = { [key in AggregationItemTranslatedFields]: string } export type AggregationItem = WithTenantProps< WithMongooseProps<{ materializedName: string materializedDescription: string aggregationPageIds: string[] referenceEntityType: ReferenceEntityTypes referenceId?: string reference: TReference entityTypeId: string entityType?: EntityType categoryId: string category?: WebAppCategory translations: WithTranslations previewImage?: Upload // In teoria nella reference pageUrl?: string }> >