export type FacetFilter = 'type:PHARMACY' | 'type:CLINIC' | 'type:PHARMACY_VIRTUAL' export interface CliniaResponse { facets: any meta: { query: string page: number numPages: number perPage: number total: number } records: T[] } export interface PlaceData { id: string // The Clinia Id of the resource. documentType: string // Type of document. This will always be set to health_facility. type: string // The type of the resource. Possible Place types are detailed here. name: string // The name of the resource. address: AddressData // The address of the resource. geoPoint: GeoPointData // The coordinates of the resource. Useful to locate resource on a map. distance: number // The distance (in meters) the is from the location used to filter the query. onlineBookingUrl: string // The url for the online booking system of the resource. openingHours: Map> // The opening hours of the resource. This object has integers from 1 to 7 as keys, representing days of the week from Monday to Sunday as per ISO 8601. phones: Array // Phones associated with this resource. socials: Array // The social links of the resource. Can be a website or a social media link. note: string // Special notes on the resource. services: Array // The services offered by the resource. owner: string // The owner of the resource in the Clinia ecosystem. } export interface AddressData { streetAddress: string // Street number plus route name. suiteNumber: string // Suite, door, appartment number. postalCode: string // Postal code. neighborhood: string // Neighborhood. locality: string // Locality. place: string // City. region: string // Name of the region. regionCode: string // ISO 3166-2 region code. country: string // Name of the country. countryCode: string // ISO 3166 country code } export interface PhoneData { number: string //The phone number. extension: string //The extension of the phone number. countryCode: string //The country code associated with this phone number. type: | 'MAIN' | 'ALTERNATE' | 'RECEPTION' | 'FAX' | 'TEXT_TELEPHONE_TTY' | 'INFO' | 'OTHER' //The type of phone. isTollFree: boolean //If the number is toll free or not. province?: string //If the number is specific to a province } export interface IntervalData { start: string // Start time of the time interval. Format is HH:mm. end: string // End time of the time interval. Format is HH:mm. } export interface GeoPointData { lat: number // Latitude lng: number // Longitude } export interface SocialData { url: string // Url representing the link. type: string // Type of link. }