Chore/remove enrichHotel call * chore: remove enrichHotel api call * include cityId when errors happen * remove unused funciton and cleanup code * tests no longer expect us to have called a function that is not used * remove commented code Approved-by: Linus Flood
14 lines
395 B
TypeScript
14 lines
395 B
TypeScript
import { z } from "zod"
|
|
|
|
export const autoCompleteLocationSchema = z.object({
|
|
id: z.string(),
|
|
name: z.string(),
|
|
type: z.enum(["cities", "hotels", "countries"]),
|
|
searchTokens: z.array(z.string()),
|
|
destination: z.string().optional(),
|
|
url: z.string().optional(),
|
|
cityIdentifier: z.string().optional(),
|
|
})
|
|
|
|
export type AutoCompleteLocation = z.infer<typeof autoCompleteLocationSchema>
|