feat(ticket): add issue-by-issue repair review page

This commit is contained in:
2026-07-22 14:46:34 +05:30
parent 76c87811d8
commit e94da54aa9
19 changed files with 1262 additions and 109 deletions

View File

@@ -2,6 +2,8 @@ import { API_ROUTES } from '@/constants/apiRoutes';
import type {
DiscardDetectionPayload,
DiscardDetectionResponse,
ReviewDetectionRepairProofPayload,
ReviewDetectionRepairProofResponse,
} from '@/types';
import axiosClient from '../axios/axios';
@@ -18,4 +20,17 @@ export const detectionService = {
return response.data;
},
reviewRepairProof: async (
ticketId: string,
detectionId: number,
payload: ReviewDetectionRepairProofPayload,
): Promise<ReviewDetectionRepairProofResponse> => {
const response = await axiosClient.post<ReviewDetectionRepairProofResponse>(
API_ROUTES.TICKETS.REVIEW_DETECTION_REPAIR_PROOF(ticketId, detectionId),
payload,
);
return response.data;
},
};