refactor(SW-302): code cleanup
This commit is contained in:
@@ -164,7 +164,7 @@ const detailedFacilitySchema = z.object({
|
||||
filter: z.string().optional(),
|
||||
})
|
||||
|
||||
const facilitySchema = z.object({
|
||||
export const facilitySchema = z.object({
|
||||
headingText: z.string().optional(), // TODO: Should not be optional, remove when we get meetingsAndConferences headingText
|
||||
heroImages: z.array(
|
||||
z.object({
|
||||
|
||||
@@ -26,7 +26,6 @@ import {
|
||||
getRatesInputSchema,
|
||||
} from "./input"
|
||||
import {
|
||||
Facility,
|
||||
getAvailabilitySchema,
|
||||
getHotelDataSchema,
|
||||
getRatesSchema,
|
||||
@@ -44,6 +43,7 @@ import {
|
||||
import { FacilityEnum } from "@/types/components/hotelPage/facilities"
|
||||
import { AvailabilityEnum } from "@/types/components/hotelReservation/selectHotel/selectHotel"
|
||||
import type { RequestOptionsWithOutBody } from "@/types/fetch"
|
||||
import type { Facility } from "@/types/hotel"
|
||||
import type { GetHotelPageData } from "@/types/trpc/routers/contentstack/hotelPage"
|
||||
|
||||
const meter = metrics.getMeter("trpc.hotels")
|
||||
@@ -213,7 +213,7 @@ export const hotelQueryRouter = router({
|
||||
? contentstackData?.content[0]
|
||||
: null
|
||||
|
||||
const facilities: Array<Facility> = [
|
||||
const facilities: Facility[] = [
|
||||
{
|
||||
...apiJson.data.attributes.restaurantImages,
|
||||
id: FacilityEnum.restaurant,
|
||||
|
||||
Reference in New Issue
Block a user