import { ObjectID } from 'bson'; import mongoose from 'mongoose'; import { Privacy } from '../constants'; import { IAccommodationProps } from './accommodation-props'; import { IBaseCurrency } from './baseCurrency'; import { ICategory } from './category'; import { IInstruction } from './instructions'; import { ILinks } from './links'; import { ILocalizedText } from './localized-text'; import { IMedia } from './media'; import { IPeriod } from './period'; import { IServiceCheckoutOptions } from './service-checkout-options'; import { ServicePrice } from './service-price'; import { IServicePricingElement } from './service-pricing'; import { IServiceRating } from './service-rating'; import { IServiceLocation } from './serviceLocation'; import { ITelephone } from './telephone'; export interface IService { _id: ObjectID; source: ObjectID; externalId: string; privacy: Privacy; status: string; owner: ObjectID; isRealOwner: boolean; stars?: number; basePrice: ServicePrice; pricing: IServicePricingElement[]; baseCurrency: IBaseCurrency; location: IServiceLocation; description?: ILocalizedText; duration: number; externalUrl?: ILocalizedText; instructions?: IInstruction; rules: ILocalizedText[]; subtitle?: ILocalizedText; title: ILocalizedText; links?: ILinks; categories: ICategory[]; media: IMedia[]; otherAttributes: any; periods: IPeriod[]; ratings: IServiceRating; tags: ObjectID[]; telephones: ITelephone[]; isAveragePrice: boolean; isMostlyAvailable: boolean; checkoutOptions?: IServiceCheckoutOptions; importerOptions?: { fromUrl?: string; importPrice?: boolean; importRating?: boolean; }; accommodationProps?: IAccommodationProps; hearts: number; updatedAt: Date; createdAt: Date; } export interface IServiceDocument extends mongoose.Document, IService { _id: ObjectID; pricing: mongoose.Types.Array; } declare const service: any; export default service; export declare type ILocalizedFields = 'title' | 'description' | 'externalUrl' | 'rules' | 'subtitle'; export declare const localizedFields: readonly ["title", "description", "externalUrl", "rules", "subtitle"]; export declare type IServiceSingleLang = Omit & { [key in ILocalizedFields]?: string; }; //# sourceMappingURL=service.d.ts.map