fix: SW-2838 Use of city identifier instead of city name * fix: SW-2838 Updated selection to city identifier instead of city name Approved-by: Christian Andolf Approved-by: Linus Flood
14 lines
384 B
TypeScript
14 lines
384 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(),
|
|
url: z.string().optional(),
|
|
cityIdentifier: z.string().optional(),
|
|
})
|
|
|
|
export type AutoCompleteLocation = z.infer<typeof autoCompleteLocationSchema>
|