feat(ticket): use assignment detections API for unassigned issues
This commit is contained in:
@@ -9,6 +9,8 @@ import type {
|
||||
ReviewTicketExtensionPayload,
|
||||
SseTokenResponse,
|
||||
TicketAssignmentSummary,
|
||||
TicketAssignmentDetectionsParams,
|
||||
TicketAssignmentDetectionsResponse,
|
||||
TicketAssignmentsResponse,
|
||||
TicketExtensionRequestsResponse,
|
||||
TicketExtensionRequestsParams,
|
||||
@@ -52,6 +54,27 @@ export const ticketService = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
getTicketAssignmentDetections: async (
|
||||
ticketId: string,
|
||||
params?: TicketAssignmentDetectionsParams,
|
||||
): Promise<TicketAssignmentDetectionsResponse> => {
|
||||
const response = await axiosClient.get<TicketAssignmentDetectionsResponse>(
|
||||
API_ROUTES.TICKETS.ASSIGNMENT_DETECTIONS(ticketId),
|
||||
{
|
||||
params: {
|
||||
assignment_status: params?.assignment_status ?? 'unassigned',
|
||||
class_name: params?.class_name,
|
||||
skip: params?.skip ?? 0,
|
||||
limit: params?.limit ?? 500,
|
||||
},
|
||||
paramsSerializer: {
|
||||
indexes: null,
|
||||
},
|
||||
},
|
||||
);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
getTicketTimeline: async (
|
||||
ticketId: string,
|
||||
): Promise<TicketTimelineResponse> => {
|
||||
|
||||
Reference in New Issue
Block a user