import { get, post, put } from './apiClient';
import type { Tenant, CreateTenantRequest, UpdateTenantRequest } from '../types/tenant';

export const getTenants = () => get<Tenant[]>('/tenants');
export const createTenant = (req: CreateTenantRequest) => post<Tenant>('/tenants', req);
export const updateTenant = (id: number, req: UpdateTenantRequest) => put<Tenant>(`/tenants/${id}`, req);
