UNPKG

@fdm-monster/server

Version:

FDM Monster is a bulk OctoPrint, Klipper, PrusaLink and BambuLab manager to set up, configure and monitor 3D printers. Our aim is to provide neat overview over your farm.

21 lines (20 loc) 869 B
import { z } from "zod"; //#region src/services/validators/printer-maintenance-log.validation.ts const createMaintenanceLogSchema = z.object({ printerId: z.number().int().positive(), metadata: z.object({ partsInvolved: z.array(z.string()).optional(), cause: z.string().optional(), notes: z.string().optional() }) }); const completeMaintenanceLogSchema = z.object({ completionNotes: z.string().optional() }); const getMaintenanceLogsQuerySchema = z.object({ printerId: z.coerce.number().int().positive().optional(), completed: z.coerce.boolean().optional(), page: z.coerce.number().int().positive().default(1), pageSize: z.coerce.number().int().positive().max(100).default(20) }); //#endregion export { completeMaintenanceLogSchema, createMaintenanceLogSchema, getMaintenanceLogsQuerySchema }; //# sourceMappingURL=printer-maintenance-log.validation.js.map