UNPKG

@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.

90 lines (89 loc) 3.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "PrintCompletion", { enumerable: true, get: function() { return PrintCompletion; } }); const _typeorm = require("typeorm"); const _printerentity = require("./printer.entity"); const _printcompletioncontextdto = require("../services/interfaces/print-completion-context.dto"); function _ts_decorate(decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; } function _ts_metadata(k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); } class PrintCompletion { id; fileName; createdAt; status; printer; printerId; printerReference; completionLog; context; } _ts_decorate([ (0, _typeorm.PrimaryGeneratedColumn)(), _ts_metadata("design:type", Number) ], PrintCompletion.prototype, "id", void 0); _ts_decorate([ (0, _typeorm.Column)(), _ts_metadata("design:type", String) ], PrintCompletion.prototype, "fileName", void 0); _ts_decorate([ (0, _typeorm.CreateDateColumn)({ type: "int" }), _ts_metadata("design:type", Number) ], PrintCompletion.prototype, "createdAt", void 0); _ts_decorate([ (0, _typeorm.Column)(), _ts_metadata("design:type", String) ], PrintCompletion.prototype, "status", void 0); _ts_decorate([ (0, _typeorm.ManyToOne)(()=>_printerentity.Printer, (p)=>p.printCompletions, { onDelete: "CASCADE" }), (0, _typeorm.JoinColumn)({ name: "printerId" }), _ts_metadata("design:type", typeof _typeorm.Relation === "undefined" ? Object : _typeorm.Relation) ], PrintCompletion.prototype, "printer", void 0); _ts_decorate([ (0, _typeorm.Column)({ nullable: false }), _ts_metadata("design:type", Number) ], PrintCompletion.prototype, "printerId", void 0); _ts_decorate([ (0, _typeorm.Column)({ nullable: true }), _ts_metadata("design:type", String) ], PrintCompletion.prototype, "printerReference", void 0); _ts_decorate([ (0, _typeorm.Column)({ nullable: true }), _ts_metadata("design:type", String) ], PrintCompletion.prototype, "completionLog", void 0); _ts_decorate([ (0, _typeorm.Column)({ type: "simple-json", nullable: true }), _ts_metadata("design:type", typeof _printcompletioncontextdto.PrintCompletionContextDto === "undefined" ? Object : _printcompletioncontextdto.PrintCompletionContextDto) ], PrintCompletion.prototype, "context", void 0); PrintCompletion = _ts_decorate([ (0, _typeorm.Entity)() ], PrintCompletion); //# sourceMappingURL=print-completion.entity.js.map