import { WebAppCategory } from './category' import { Upload } from './upload-file' import { WithMongooseProps } from './with-mongoose-props' import { WithTranslations } from './with-translations' import { WithTenantProps } from './with-tenant-props' import { AslPerson } from './asl-person' import { Structure } from './structure' import { Service } from './service' import { AggregationPage } from './aggregation-page' import { EntityType } from './entity-type' import { Unit } from './unit' import { Document } from './document' export type NewsTranslations = { title: string text: string description: string } export type News = WithMongooseProps< WithTenantProps< NewsTranslations & { highlighted: boolean title: string text: string isPublished: boolean publishedDate: string expirationDate?: string previewImage?: Upload progressiveNumber?: number code?: string internalCode?: number newsImageGallery?: Upload[] documentIds: string[] documents: Document[] peopleIds?: string[] people?: AslPerson[] structureIds?: string[] structures?: Structure[] serviceIds?: string[] services?: Service[] relatorId?: string relator?: Unit relatedNewsIds?: string[] relatedNews?: News[] aggregationPageIds?: string[] aggregationPages?: AggregationPage[] translations: WithTranslations categoryId: string category?: WebAppCategory entityTypeId?: string entityType?: EntityType pageUrl?: string } > >