import { AggregationPage } from './aggregation-page' import { AslPerson } from './asl-person' import { WebAppCategory } from './category' import { Document } from './document' import { EntityType } from './entity-type' import { News } from './news' import { Structure } from './structure' import { Unit } from './unit' import { Upload } from './upload-file' import { User } from './user' import { WithMongooseProps } from './with-mongoose-props' import { WithTenantProps } from './with-tenant-props' import { WithTranslations } from './with-translations' export type ServiceTranslatedField = { name: string subTitle: string whatIs?: string shortDescription?: string howINeed?: string additionalInformation?: string accessDescription?: string waitingTimesDescription?: string targetDescription?: string priceDescription?: string outputDescription?: string openingHours?: string contacts?: string } export type ServiceRelatedStructure = WithMongooseProps<{ serviceId: string structureId?: string structure?: Structure structureName?: string contacts: string openingHours: string translations: WithTranslations<{ structureName?: string contacts?: string openingHours?: string }> }> export type Service = WithMongooseProps< WithTenantProps< ServiceTranslatedField & { name: string subTitle: string whatIs?: string shortDescription?: string onlineUrl?: string howINeed?: string additionalInformation?: string accessDescription?: string waitingTimesDescription?: string targetDescription?: string priceDescription?: string outputDescription?: string openingHours?: string contacts?: string translations: WithTranslations isActive: boolean isPublished: boolean relatedServicesIds?: string[] relatedServices?: Service[] previewImage?: Upload relatedNews: News[] managerId?: string manager?: AslPerson targetPageIds?: string[] // a chi รจ rivolto targetPages: AggregationPage[] documentIds?: string[] documents?: Document[] unitId?: string unit?: Unit userId?: string categoryId?: string entityTypeId?: string aggregationPageIds?: string[] // partiamo di aggregationPages: AggregationPage[] structureIds?: string[] structures?: Structure[] pageUrl: string user?: User tenantId: string category?: WebAppCategory entityType?: EntityType relatedStructures?: ServiceRelatedStructure[] } > >