This commit is contained in:
Iliyan Angelov
2025-11-17 23:50:14 +02:00
parent 0c59fe1173
commit a1bd576540
43 changed files with 2598 additions and 359 deletions

View File

@@ -14,6 +14,10 @@ export interface BookingData {
email: string;
phone: string;
};
services?: Array<{
service_id: number;
quantity: number;
}>;
}
export interface Booking {

View File

@@ -0,0 +1,29 @@
import apiClient from './apiClient';
/**
* Contact API Service
*/
export interface ContactFormData {
name: string;
email: string;
subject: string;
message: string;
phone?: string;
}
export interface ContactResponse {
status: string;
message: string;
}
/**
* Submit contact form
*/
export const submitContactForm = async (
formData: ContactFormData
): Promise<ContactResponse> => {
const response = await apiClient.post('/contact/submit', formData);
return response.data;
};

View File

@@ -100,6 +100,16 @@ export const getRoomById = async (
return response.data;
};
/**
* Get booked dates for a specific room
*/
export const getRoomBookedDates = async (
roomId: number
): Promise<{ success: boolean; data: { room_id: number; booked_dates: string[] } }> => {
const response = await apiClient.get(`/rooms/${roomId}/booked-dates`);
return response.data;
};
/**
* Get room by room number
*/