import api from '@/core/api/axios';
const BASE = '/api/wtm/projects';
export const tealService = {
  upload: (projectId: number, file: File, effectiveDate: string) => { const f = new FormData(); f.append('file', file); f.append('effectiveDate', effectiveDate); return api.post(`${BASE}/${projectId}/teal/upload`, f); },
  getVersions: (projectId: number) => api.get(`${BASE}/${projectId}/teal/versions`),
  getActive: (projectId: number) => api.get(`${BASE}/${projectId}/teal/active`),
  getByWbs: (projectId: number, wbsId: number) => api.get(`${BASE}/${projectId}/teal/by-wbs/${wbsId}`),
};
