feat(tickets): add summary cards above ticket list
This commit is contained in:
@@ -17,6 +17,8 @@ import type {
|
||||
TicketOverviewDetail,
|
||||
TicketListParams,
|
||||
TicketListResponse,
|
||||
TicketSummaryParams,
|
||||
TicketSummaryResponse,
|
||||
TicketTimelineResponse,
|
||||
} from '@/types';
|
||||
|
||||
@@ -45,6 +47,20 @@ export const ticketService = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
getTicketSummary: async (
|
||||
params?: TicketSummaryParams,
|
||||
): Promise<TicketSummaryResponse> => {
|
||||
const response = await axiosClient.get<TicketSummaryResponse>(
|
||||
API_ROUTES.TICKETS.SUMMARY,
|
||||
{
|
||||
params: {
|
||||
chainage_id: params?.chainage_id,
|
||||
},
|
||||
},
|
||||
);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
getTicketOverview: async (
|
||||
ticketId: string,
|
||||
): Promise<TicketOverviewDetail> => {
|
||||
|
||||
Reference in New Issue
Block a user