feat: Graphql queries and TRPC route setup for Hotel Page Component
This commit is contained in:
16
server/routers/contentstack/hotelPage/output.ts
Normal file
16
server/routers/contentstack/hotelPage/output.ts
Normal 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
|
||||
Reference in New Issue
Block a user