feat(SW-70): Create TRPC route to get rates
This commit is contained in:
@@ -391,3 +391,17 @@ export const getHotelDataSchema = z.object({
|
||||
// - Example "included" data available in our tempHotelData file.
|
||||
// included: z.any(),
|
||||
})
|
||||
|
||||
const Rate = z.object({
|
||||
id: z.number(),
|
||||
name: z.string(),
|
||||
description: z.string(),
|
||||
size: z.string(),
|
||||
pricePerNight: z.number(),
|
||||
currency: z.string(),
|
||||
imageSrc: z.string(),
|
||||
})
|
||||
|
||||
export const getRatesSchema = z.array(Rate)
|
||||
|
||||
export type Rate = z.infer<typeof Rate>
|
||||
|
||||
Reference in New Issue
Block a user