* chore(docker): add healthcheck to service in docker-compose.yml and update deploy workflow to include docker compose down * refactor(orders): add useOrdersInfiniteQuery for improved pagination and add load more button in orders list components * refactor(graphql): remove NotifyService and related notification logic from orders and API, clean up unused dependencies * refactor(api): streamline customer, order, service, and slot actions by wrapping server functions with client action utility to rethrow error messages to client
10 lines
478 B
TypeScript
10 lines
478 B
TypeScript
import * as slots from './server/slots';
|
|
import { wrapClientAction } from '@/utils/actions';
|
|
|
|
export const getSlot = wrapClientAction(slots.getSlot);
|
|
export const getSlots = wrapClientAction(slots.getSlots);
|
|
export const createSlot = wrapClientAction(slots.createSlot);
|
|
export const updateSlot = wrapClientAction(slots.updateSlot);
|
|
export const deleteSlot = wrapClientAction(slots.deleteSlot);
|
|
export const getAvailableTimeSlots = wrapClientAction(slots.getAvailableTimeSlots);
|