refactor(ticket): make details lot-based and remove class-detail flow
This commit is contained in:
@@ -8,7 +8,6 @@ import type {
|
||||
RequestTicketExtensionPayload,
|
||||
ReviewTicketExtensionPayload,
|
||||
SseTokenResponse,
|
||||
TicketDetail,
|
||||
TicketAssignmentSummary,
|
||||
TicketAssignmentsResponse,
|
||||
TicketExtensionRequestsResponse,
|
||||
@@ -62,16 +61,6 @@ export const ticketService = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
getTicketClassDetail: async (
|
||||
ticketId: string,
|
||||
defectClass: string,
|
||||
): Promise<TicketDetail> => {
|
||||
const response = await axiosClient.get<TicketDetail>(
|
||||
API_ROUTES.TICKETS.CLASS_DETAIL(ticketId, defectClass),
|
||||
);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
getTicketDefectClasses: async (
|
||||
ticketId: string,
|
||||
): Promise<TicketDefectClassesResponse> => {
|
||||
@@ -166,11 +155,12 @@ export const ticketService = {
|
||||
);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
closeTicket: async (
|
||||
ticketId: string,
|
||||
payload: CloseTicketPayload,
|
||||
): Promise<TicketDetail> => {
|
||||
const response = await axiosClient.post<TicketDetail>(
|
||||
): Promise<unknown> => {
|
||||
const response = await axiosClient.post<unknown>(
|
||||
API_ROUTES.TICKETS.CLOSE(ticketId),
|
||||
payload,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user