feat: Add TRPC procedure for hotel API, schemas, and use in hotel content page

This commit is contained in:
Chuma McPhoy
2024-07-02 15:27:07 +02:00
parent 965e093100
commit 0d5b775c24
6 changed files with 11510 additions and 36 deletions

View File

@@ -1,5 +1,8 @@
import { z } from "zod"
import { Lang, toUppercaseLang } from "@/constants/languages"
export const getHotelInputSchema = z.object({
hotelId: z.string(),
language: z.nativeEnum(Lang).transform((val) => toUppercaseLang(val)),
})