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.

93 lines (92 loc) 2.93 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "CameraStream", { enumerable: true, get: function() { return CameraStream; } }); const _typeorm = require("typeorm"); const _printerentity = require("./printer.entity"); 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 CameraStream { id; streamURL; name; printer; printerId; aspectRatio; rotationClockwise; flipHorizontal; flipVertical; } _ts_decorate([ (0, _typeorm.PrimaryGeneratedColumn)(), _ts_metadata("design:type", Number) ], CameraStream.prototype, "id", void 0); _ts_decorate([ (0, _typeorm.Column)(), _ts_metadata("design:type", String) ], CameraStream.prototype, "streamURL", void 0); _ts_decorate([ (0, _typeorm.Column)(), _ts_metadata("design:type", String) ], CameraStream.prototype, "name", void 0); _ts_decorate([ (0, _typeorm.OneToOne)(()=>_printerentity.Printer, { nullable: true }), (0, _typeorm.JoinColumn)({ name: "printerId" }), _ts_metadata("design:type", typeof _typeorm.Relation === "undefined" ? Object : _typeorm.Relation) ], CameraStream.prototype, "printer", void 0); _ts_decorate([ (0, _typeorm.Column)({ nullable: true, unique: true }), _ts_metadata("design:type", Object) ], CameraStream.prototype, "printerId", void 0); _ts_decorate([ (0, _typeorm.Column)({ nullable: false, default: "16:9" }), _ts_metadata("design:type", String) ], CameraStream.prototype, "aspectRatio", void 0); _ts_decorate([ (0, _typeorm.Column)({ nullable: false, default: 0 }), _ts_metadata("design:type", Number) ], CameraStream.prototype, "rotationClockwise", void 0); _ts_decorate([ (0, _typeorm.Column)({ nullable: false, default: false }), _ts_metadata("design:type", Boolean) ], CameraStream.prototype, "flipHorizontal", void 0); _ts_decorate([ (0, _typeorm.Column)({ nullable: false, default: false }), _ts_metadata("design:type", Boolean) ], CameraStream.prototype, "flipVertical", void 0); CameraStream = _ts_decorate([ (0, _typeorm.Entity)() ], CameraStream); //# sourceMappingURL=camera-stream.entity.js.map