@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.
117 lines (116 loc) • 4.19 kB
JavaScript
import { __decorateMetadata } from "../_virtual/_@oxc-project_runtime@0.129.0/helpers/decorateMetadata.js";
import { __decorate } from "../_virtual/_@oxc-project_runtime@0.129.0/helpers/decorate.js";
import { Printer } from "./printer.entity.js";
import { Column, CreateDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
//#region src/entities/print-job.entity.ts
var _ref, _ref2;
let PrintJob = class PrintJob {
id;
printer;
printerId;
printerName;
fileName;
fileStorageId;
fileFormat;
fileSize;
fileHash;
createdAt;
updatedAt;
analyzedAt;
startedAt;
endedAt;
status;
analysisState;
statusReason;
progress;
metadata;
statistics;
queuePosition;
queueGroup;
};
__decorate([PrimaryGeneratedColumn(), __decorateMetadata("design:type", Number)], PrintJob.prototype, "id", void 0);
__decorate([
ManyToOne(() => Printer, {
nullable: true,
onDelete: "SET NULL"
}),
JoinColumn({ name: "printerId" }),
__decorateMetadata("design:type", Object)
], PrintJob.prototype, "printer", void 0);
__decorate([Column({ nullable: true }), __decorateMetadata("design:type", Object)], PrintJob.prototype, "printerId", void 0);
__decorate([Column({
type: "varchar",
nullable: true
}), __decorateMetadata("design:type", Object)], PrintJob.prototype, "printerName", void 0);
__decorate([Column({
type: "varchar",
nullable: false
}), __decorateMetadata("design:type", String)], PrintJob.prototype, "fileName", void 0);
__decorate([Column({
type: "varchar",
nullable: true
}), __decorateMetadata("design:type", Object)], PrintJob.prototype, "fileStorageId", void 0);
__decorate([Column({
type: "varchar",
nullable: true
}), __decorateMetadata("design:type", Object)], PrintJob.prototype, "fileFormat", void 0);
__decorate([Column({
type: "int",
nullable: true
}), __decorateMetadata("design:type", Object)], PrintJob.prototype, "fileSize", void 0);
__decorate([Column({
type: "varchar",
nullable: true
}), __decorateMetadata("design:type", Object)], PrintJob.prototype, "fileHash", void 0);
__decorate([CreateDateColumn(), __decorateMetadata("design:type", typeof (_ref = typeof Date !== "undefined" && Date) === "function" ? _ref : Object)], PrintJob.prototype, "createdAt", void 0);
__decorate([UpdateDateColumn(), __decorateMetadata("design:type", typeof (_ref2 = typeof Date !== "undefined" && Date) === "function" ? _ref2 : Object)], PrintJob.prototype, "updatedAt", void 0);
__decorate([Column({
type: Date,
nullable: true
}), __decorateMetadata("design:type", Object)], PrintJob.prototype, "analyzedAt", void 0);
__decorate([Column({
type: Date,
nullable: true
}), __decorateMetadata("design:type", Object)], PrintJob.prototype, "startedAt", void 0);
__decorate([Column({
type: Date,
nullable: true
}), __decorateMetadata("design:type", Object)], PrintJob.prototype, "endedAt", void 0);
__decorate([Column({
type: "varchar",
nullable: false,
default: "PENDING"
}), __decorateMetadata("design:type", Object)], PrintJob.prototype, "status", void 0);
__decorate([Column({
type: "varchar",
nullable: false,
default: "NOT_ANALYZED"
}), __decorateMetadata("design:type", Object)], PrintJob.prototype, "analysisState", void 0);
__decorate([Column({
type: "varchar",
nullable: true
}), __decorateMetadata("design:type", Object)], PrintJob.prototype, "statusReason", void 0);
__decorate([Column({
type: "float",
nullable: true
}), __decorateMetadata("design:type", Object)], PrintJob.prototype, "progress", void 0);
__decorate([Column({
type: "json",
nullable: true
}), __decorateMetadata("design:type", Object)], PrintJob.prototype, "metadata", void 0);
__decorate([Column({
type: "json",
nullable: true
}), __decorateMetadata("design:type", Object)], PrintJob.prototype, "statistics", void 0);
__decorate([Column({
type: "int",
nullable: true
}), __decorateMetadata("design:type", Object)], PrintJob.prototype, "queuePosition", void 0);
__decorate([Column({
type: "varchar",
nullable: true
}), __decorateMetadata("design:type", Object)], PrintJob.prototype, "queueGroup", void 0);
PrintJob = __decorate([Entity()], PrintJob);
//#endregion
export { PrintJob };
//# sourceMappingURL=print-job.entity.js.map