import { ServiceLocationType } from './enums'; export interface ServiceLocationSensitive { id: number; type: ServiceLocationType; display_on_booking_page: boolean; } export interface ServiceLocationLocation extends ServiceLocationSensitive { type: ServiceLocationType.LOCATION; store_location_id: number; store_location_address: string; store_location_address_latitude: number; store_location_address_longitude: number; } export interface ServiceLocationPhone extends ServiceLocationSensitive { type: ServiceLocationType.PHONE; phone: string; } export interface ServiceLocationAddress extends ServiceLocationSensitive { type: ServiceLocationType.ADDRESS; address: string; } export interface ServiceLocationLink extends ServiceLocationSensitive { type: ServiceLocationType.LINK; link: string; } export type ServiceLocation = { id: number; type: ServiceLocationType; } | ServiceLocationLocation | ServiceLocationPhone | ServiceLocationAddress | ServiceLocationLink; export interface LocationGeo { lat: number; lng: number; }