feat: add CSV export for approved orders && add non-delivery reason modal for livreurs
This commit is contained in:
@@ -126,6 +126,13 @@ export const getCommandItems = async (commandId: number) => {
|
||||
};
|
||||
};
|
||||
|
||||
export const exportApprovedCommandsCSV = async (): Promise<string> => {
|
||||
const { data } = await apiClient.get(`${V2}/admin/protected/orders/export/csv`, {
|
||||
responseType: "text",
|
||||
});
|
||||
return data as string;
|
||||
};
|
||||
|
||||
export const deleteCommand = async (commandId: number) => {
|
||||
const { data } = await apiClient.delete(
|
||||
`${V2}/admin/protected/orders/${commandId}`,
|
||||
|
||||
Reference in New Issue
Block a user