chore: add new features for cabine
This commit is contained in:
@@ -62,6 +62,17 @@ export const resetClientPenalties = async (clientUsername: string) => {
|
||||
return { success: true, message: data.message };
|
||||
};
|
||||
|
||||
export const resetClientPoints = async (
|
||||
clientUsername: string,
|
||||
resetCancellationsPoints: boolean = false,
|
||||
) => {
|
||||
const { data } = await apiClient.post(
|
||||
`${API}/client/${clientUsername}/point/reset`,
|
||||
{ reset_cancellations_points: resetCancellationsPoints },
|
||||
);
|
||||
return { success: true, message: data.message };
|
||||
};
|
||||
|
||||
export const getAllClientsWithPenalties = async () => {
|
||||
const { data } = await apiClient.get(`${API}/penalties/all`);
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user