import { apiDelete, apiGet, apiPost, apiPut } from './apiClient.js';

export async function getClients(limit = 50, page = 1) {
    return apiGet(`/api/Clients?limit=${limit}&page=${page}`);
}

export async function getClientById(id) {
    return apiGet(`/api/Clients/${id}`);
}

export async function createClient(data) {
    return apiPost('/api/Clients', data);
}

export async function updateClient(id, data) {
    return apiPut(`/api/Clients/${id}`, data);
}

export async function deleteClient(id) {
    return apiDelete(`/api/Clients/${id}`);
}
