import { API_ROUTES } from '@/constants/apiRoutes'; import type { DiscardDetectionPayload, DiscardDetectionResponse, ReviewDetectionRepairProofPayload, ReviewDetectionRepairProofResponse, } from '@/types'; import axiosClient from '../axios/axios'; export const detectionService = { discardDetection: async ( detectionId: number, payload: DiscardDetectionPayload, ): Promise => { const response = await axiosClient.post( API_ROUTES.DETECTIONS.DISCARD(detectionId), payload, ); return response.data; }, reviewRepairProof: async ( ticketId: string, detectionId: number, payload: ReviewDetectionRepairProofPayload, ): Promise => { const response = await axiosClient.post( API_ROUTES.TICKETS.REVIEW_DETECTION_REPAIR_PROOF(ticketId, detectionId), payload, ); return response.data; }, };