17 lines
565 B
TypeScript
17 lines
565 B
TypeScript
import { z } from "zod"
|
|
|
|
import { getHotelDataSchema, roomSchema } from "@/server/routers/hotels/output"
|
|
|
|
export type HotelData = z.infer<typeof getHotelDataSchema>
|
|
|
|
export type Hotel = HotelData["data"]["attributes"]
|
|
export type HotelAddress = HotelData["data"]["attributes"]["address"]
|
|
export type HotelLocation = HotelData["data"]["attributes"]["location"]
|
|
|
|
type HotelRatings = HotelData["data"]["attributes"]["ratings"]
|
|
export type HotelTripAdvisor =
|
|
| NonNullable<HotelRatings>["tripAdvisor"]
|
|
| undefined
|
|
|
|
export type RoomData = z.infer<typeof roomSchema>
|