import { WithMongooseProps } from './with-mongoose-props' import { WithTenantProps } from './with-tenant-props' import { WithTranslations } from './with-translations' import { Upload } from './upload-file' import { WebAppCategory } from './category' import { Link } from './link' import { AggregationPage } from './aggregation-page' import { Structure } from './structure' import { Document } from './document' import { EntityType } from './entity-type' import { Unit } from './unit' export type HowTo = WithMongooseProps< WithTenantProps<{ name: string description: string pageUrl: string subTitle: string overview: string targetDescription: string prelation: string howTo: string isPublished: boolean additionalInformation: string previewImage?: Upload documentIds?: string[] documents?: Document[] categoryId?: string category?: WebAppCategory howToSteps: HowToSection[] entityTypeId?: string entityType?: EntityType aggregationPageIds: string[] aggregationPages?: AggregationPage[] translations: WithTranslations<{ name: string description: string subTitle: string targetDescription: string prelation: string howTo: string overview: string additionalInformation: string }> targetPageIds?: string[] targetPages?: AggregationPage[] }> > export type HowToSection = WithMongooseProps< WithTenantProps<{ number: number howToId?: string title: string howToAccess: string howToAccessLinks?: Link[] howToAccessDocumentsIds: string[] howToAccessDocuments?: Document[] howToContacts?: string // rich text whatINeed: string whatINeedLinks: Link[] whatINeedDocumentsIds: string[] whatINeedDocuments?: Document[] where: string whereDocumentsIds: string[] whereDocuments?: Document[] translations: WithTranslations<{ title: string howToAccess: string // howToAccessLinks?: Link[]; howToContacts?: string // rich text whatINeed: string // whatINeedLinks: Link[]; where: string whereContacts: string costs: string // costsLinks: Link[]; costsContacts: string // rich text openHours: string openContacts: string // rich text managerInformation: string managerContacts: string // managerLinks: Link[]; whatIGet: string // whatIGetLinks: Link[]; }> whereStructureIds: string[] whereStructures?: Structure[] whereStructureId: string // deprecated whereStructure?: Structure // deprecated managerUnitId: string managerUnit?: Unit whereContacts: string costs: string costsLinks: Link[] costsContacts: string // rich text costsDocumentsIds: string[] costsDocuments?: Document[] openHours: string openContacts: string // rich text managerInformation: string managerContacts: string managerLinks: Link[] whatIGet: string whatIGetLinks: Link[] whatIGetDocumentsIds: string[] whatIGetDocuments?: Document[] }> >