import api from './index';

export interface CleaningTemplate {
  id?: string;
  name: string;
  equipmentType: string;
  formula: any;
  description?: string;
  createdAt?: number;
  updatedAt?: number;
}

export const getCleaningTemplates = () => {
  return api.get('/cleaning-templates');
};

export const createCleaningTemplate = (data: CleaningTemplate) => {
  return api.post('/cleaning-templates', data);
};

export const updateCleaningTemplate = (id: string, data: CleaningTemplate) => {
  return api.put(`/cleaning-templates/${id}`, data);
};

export const deleteCleaningTemplate = (id: string) => {
  return api.delete(`/cleaning-templates/${id}`);
};

