import api from './index';

export interface Inspection {
  ID: string;
  DeviceID: string;
  InspectorID: string;
  Status: string;
  CalibratedPower: number;
  CheckTime: string;
}

export const getInspections = () => {
  return api.get<any, Inspection[]>('/inspections');
};

export const createInspection = (data: Partial<Inspection>) => {
  return api.post<any, Inspection>('/inspections', data);
};

