update rezerv

This commit is contained in:
2026-05-31 21:38:09 +03:30
parent f36a4af379
commit 5eb5bd233c
11 changed files with 1056 additions and 128 deletions
+17
View File
@@ -45,3 +45,20 @@ export function deleteBusinessService(id: string) {
method: 'DELETE',
});
}
export type ClassPriceItem = {
classId: string;
price: number;
durationMinutes?: number | null;
isActive?: boolean;
};
export function setBusinessServiceClassPrices(
id: string,
prices: ClassPriceItem[],
) {
return api<BusinessService>(`/business-services/${id}/class-prices`, {
method: 'PUT',
body: JSON.stringify({ prices }),
});
}