import { WithMongooseProps } from './with-mongoose-props' import { WithTenantProps } from './with-tenant-props' import { AddressSchema } from './address' import { ContactSchema } from './contact' import { WebAppCategory } from './category' import { EntityType } from './entity-type' import { WithTranslations } from './with-translations' import { Upload } from './upload-file' import { AggregationPage } from './aggregation-page' import { Service } from './service' import { AslPerson } from './asl-person' import { New } from './new' import { Unit } from './unit' export type StructureTranslatedFields = { name: string subTitle?: string whatIs?: string shortDescription: string targetDescription: string howToReach?: string openingHours?: string contacts?: string } export type Structure = WithMongooseProps< WithTenantProps< StructureTranslatedFields & { name: string subTitle?: string whatIs?: string targetDescription?: string address: AddressSchema howToReach?: string openingHours?: string contacts?: string services: Service[] pageUrl: string isPublished: boolean managerId?: string manager?: AslPerson coordinatorId?: string coordinator?: AslPerson categoryId?: string previewImage?: Upload category?: WebAppCategory entityTypeId?: string entityType?: EntityType structureGallery?: Upload[] updateById?: string aggregationPageIds?: string[] // partiamo di aggregationPages: AggregationPage[] targetPageIds?: string[] // a chi รจ rivolto targetPages?: AggregationPage[] structurePersonal?: AslPerson[] news?: New[] additionalInformation?: string unitIds?: string[] units?: Unit[] similarStructuresIds?: string[] similarStructures?: Structure[] translations: WithTranslations } > >