* feat(SW-1519): Removed displayWebpage from hotel schema * feat(SW-1519): Removed gallery from hotel schema * feat(SW-1519): Removed conferencesAndMeetings from hotel schema * feat(SW-1519): Removed healthAndWellness from hotel schema * feat(SW-1519): Removed restaurantImages from hotel schema * feat(SW-1519): Removed restaurantsOverviewPage from hotel schema Approved-by: Fredrik Thorsson Approved-by: Matilda Landström
24 lines
511 B
TypeScript
24 lines
511 B
TypeScript
import { z } from "zod"
|
|
|
|
import { attributesSchema } from "@/server/routers/hotels/schemas/hotel"
|
|
|
|
export const nearbyHotelsSchema = z.object({
|
|
attributes: z.lazy(() =>
|
|
attributesSchema.pick({
|
|
address: true,
|
|
cityId: true,
|
|
cityName: true,
|
|
detailedFacilities: true,
|
|
hotelContent: true,
|
|
isActive: true,
|
|
isPublished: true,
|
|
location: true,
|
|
name: true,
|
|
operaId: true,
|
|
ratings: true,
|
|
})
|
|
),
|
|
id: z.string(),
|
|
type: z.literal("hotels"),
|
|
})
|