/opt/mawid/packages/shared/src/schemas
NameSizeModeActions
appointment.ts10640644editdlrm
auth.ts4770644editdlrm
clinic.ts8630644editdlrm
index.ts1840644editdlrm
service.ts5720644editdlrm
staff.ts5500644editdlrm
working-hours.ts7650644editdlrm
Edit: /opt/mawid/packages/shared/src/schemas/service.ts (572B)
import { z } from 'zod'; export const i18nNameSchema = z.object({ ar: z.string().min(1), tr: z.string().min(1), en: z.string().min(1), }); export const createServiceSchema = z.object({ name: i18nNameSchema, durationMinutes: z.number().int().positive().max(24 * 60), price: z.number().nonnegative().optional(), active: z.boolean().default(true), }); export type CreateServiceInput = z.infer; export const updateServiceSchema = createServiceSchema.partial(); export type UpdateServiceInput = z.infer;