@fdm-monster/server
Version:
FDM Monster is a bulk OctoPrint manager to set up, configure and monitor 3D printers. Our aim is to provide extremely optimized websocket performance and reliability.
42 lines (41 loc) • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
downloadFileSchema: function() {
return downloadFileSchema;
},
getFileSchema: function() {
return getFileSchema;
},
startPrintFileSchema: function() {
return startPrintFileSchema;
},
uploadFileSchema: function() {
return uploadFileSchema;
}
});
const _zod = require("zod");
const startPrintFileSchema = _zod.z.object({
filePath: _zod.z.string().min(1)
});
const downloadFileSchema = _zod.z.object({
path: _zod.z.string().min(1)
});
const getFileSchema = _zod.z.object({
path: _zod.z.string().min(1)
});
const uploadFileSchema = _zod.z.object({
startPrint: _zod.z.enum([
'true',
'false'
])
});
//# sourceMappingURL=printer-files-controller.validation.js.map