feat: Graphql queries and TRPC route setup for Hotel Page Component

This commit is contained in:
Chuma McPhoy
2024-06-26 15:47:37 +02:00
parent 1bd65f77ac
commit 0d8c29bd01
8 changed files with 75 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
import { z } from "zod"
export const validateHotelPageSchema = z.object({
hotel_page: z.object({
hotel_page_id: z.string(),
title: z.string(),
url: z.string(),
}),
})
// Will be extended once we introduce more functionality to our entries.
export type HotelPageDataRaw = z.infer<typeof validateHotelPageSchema>
type HotelPageRaw = HotelPageDataRaw["hotel_page"]
export type HotelPage = HotelPageRaw