/** * PropertyService Enum * Services available at the property * Used in detailsJSON.services array */ const PropertyService = Object.freeze({ ELECTRICITY: 'Electricity', INTERNET: 'Internet', HEATING: 'Heating', WATER: 'Water', POOL: 'Pool', PRIVATE_GARDEN: 'PrivateGarden', PARKING: 'Parking', SECURITY_247: 'Security247', CENTRAL_HEATING: 'CentralHeating', CENTRAL_AIR_CONDITIONING: 'CentralAirConditioning', EQUIPPED_KITCHEN: 'EquippedKitchen', MAIDS_ROOM: 'MaidsRoom', ELEVATOR: 'Elevator', }); const PropertyServiceLabels = Object.freeze({ [PropertyService.ELECTRICITY]: 'كهرباء', [PropertyService.INTERNET]: 'إنترنت', [PropertyService.HEATING]: 'تدفئة', [PropertyService.WATER]: 'ماء', [PropertyService.POOL]: 'مسبح', [PropertyService.PRIVATE_GARDEN]: 'حديقة خاصة', [PropertyService.PARKING]: 'موقف سيارات', [PropertyService.SECURITY_247]: 'حراسة 24 ساعة', [PropertyService.CENTRAL_HEATING]: 'تدفئة مركزية', [PropertyService.CENTRAL_AIR_CONDITIONING]: 'تكييف مركزي', [PropertyService.EQUIPPED_KITCHEN]: 'مطبخ مجهز', [PropertyService.MAIDS_ROOM]: 'غرفة خادمة', [PropertyService.ELEVATOR]: 'مصعد', }); // All services as array const PropertyServicesList = Object.freeze(Object.values(PropertyService)); const PropertyServiceTranslationKeys = Object.freeze({ [PropertyService.ELECTRICITY]: 'propertyService.electricity', [PropertyService.INTERNET]: 'propertyService.internet', [PropertyService.HEATING]: 'propertyService.heating', [PropertyService.WATER]: 'propertyService.water', [PropertyService.POOL]: 'propertyService.pool', [PropertyService.PRIVATE_GARDEN]: 'propertyService.privateGarden', [PropertyService.PARKING]: 'propertyService.parking', [PropertyService.SECURITY_247]: 'propertyService.security247', [PropertyService.CENTRAL_HEATING]: 'propertyService.centralHeating', [PropertyService.CENTRAL_AIR_CONDITIONING]: 'propertyService.centralAirConditioning', [PropertyService.EQUIPPED_KITCHEN]: 'propertyService.equippedKitchen', [PropertyService.MAIDS_ROOM]: 'propertyService.maidsRoom', [PropertyService.ELEVATOR]: 'propertyService.elevator', }); export { PropertyService, PropertyServiceLabels, PropertyServicesList, PropertyServiceTranslationKeys };