import api from './api';

export interface DemoDataResult {
  clientiCreati: number;
  locationCreate: number;
  risorseCreate: number;
  articoliCreati: number;
  eventiCreati: number;
  message: string;
}

export const demoService = {
  generateDemoData: async (): Promise<DemoDataResult> => {
    const response = await api.post('/demo/generate');
    return response.data;
  },

  clearDemoData: async (): Promise<DemoDataResult> => {
    const response = await api.post('/demo/clear');
    return response.data;
  },
};
