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.

32 lines (31 loc) 1.36 kB
import { z } from "zod"; //#region src/services/printer-api.interface.ts const uploadFileInputSchema = z.object({ stream: z.custom((val) => { return val && typeof val === "object" && "pipe" in val && typeof val.pipe === "function"; }, "Must be a readable stream"), fileName: z.string().min(1), contentLength: z.number().int().positive(), startPrint: z.boolean(), uploadToken: z.string().optional() }); const OctoprintType = 0; const MoonrakerType = 1; const PrusaLinkType = 2; const BambuType = 3; let PrinterTypesEnum = /* @__PURE__ */ function(PrinterTypesEnum) { PrinterTypesEnum[PrinterTypesEnum["Octoprint"] = 0] = "Octoprint"; PrinterTypesEnum[PrinterTypesEnum["Moonraker"] = 1] = "Moonraker"; PrinterTypesEnum[PrinterTypesEnum["PrusaLink"] = 2] = "PrusaLink"; PrinterTypesEnum[PrinterTypesEnum["Bambu"] = 3] = "Bambu"; return PrinterTypesEnum; }({}); let ReprintState = /* @__PURE__ */ function(ReprintState) { ReprintState[ReprintState["PrinterNotAvailable"] = 0] = "PrinterNotAvailable"; ReprintState[ReprintState["NoLastPrint"] = 1] = "NoLastPrint"; ReprintState[ReprintState["LastPrintReady"] = 2] = "LastPrintReady"; return ReprintState; }({}); //#endregion export { BambuType, MoonrakerType, OctoprintType, PrinterTypesEnum, PrusaLinkType, ReprintState, uploadFileInputSchema }; //# sourceMappingURL=printer-api.interface.js.map