@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.
38 lines (37 loc) • 1.23 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, {
batchPrinterSchema: function() {
return batchPrinterSchema;
},
batchPrintersEnabledSchema: function() {
return batchPrintersEnabledSchema;
},
executeBatchRePrinterSchema: function() {
return executeBatchRePrinterSchema;
}
});
const _zod = require("zod");
const _genericvalidation = require("./generic.validation");
const batchPrinterSchema = (isSqlite)=>_zod.z.object({
printerIds: _zod.z.array((0, _genericvalidation.idRuleV2)(isSqlite))
});
const executeBatchRePrinterSchema = (isSqlite)=>_zod.z.object({
prints: _zod.z.array(_zod.z.object({
printerId: (0, _genericvalidation.idRuleV2)(isSqlite),
path: _zod.z.string()
}))
});
const batchPrintersEnabledSchema = (isSqlite)=>_zod.z.object({
printerIds: _zod.z.array((0, _genericvalidation.idRuleV2)(isSqlite)),
enabled: _zod.z.boolean()
});
//# sourceMappingURL=batch-controller.validation.js.map