"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "PrintJob", {
    enumerable: true,
    get: function() {
        return PrintJob;
    }
});
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 PrintJob {
    id;
    printer;
    printerId;
    printerName;
    fileName;
    fileStorageId;
    fileFormat;
    fileSize;
    fileHash;
    createdAt;
    updatedAt;
    analyzedAt;
    startedAt;
    endedAt;
    status;
    analysisState;
    statusReason;
    progress;
    metadata;
    statistics;
    queuePosition;
    queueGroup;
}
_ts_decorate([
    (0, _typeorm.PrimaryGeneratedColumn)(),
    _ts_metadata("design:type", Number)
], PrintJob.prototype, "id", void 0);
_ts_decorate([
    (0, _typeorm.ManyToOne)(()=>_printerentity.Printer, {
        nullable: true,
        onDelete: "SET NULL"
    }),
    (0, _typeorm.JoinColumn)({
        name: "printerId"
    }),
    _ts_metadata("design:type", typeof _typeorm.Relation === "undefined" ? Object : _typeorm.Relation)
], PrintJob.prototype, "printer", void 0);
_ts_decorate([
    (0, _typeorm.Column)({
        nullable: true
    }),
    _ts_metadata("design:type", Object)
], PrintJob.prototype, "printerId", void 0);
_ts_decorate([
    (0, _typeorm.Column)({
        type: "varchar",
        nullable: true
    }),
    _ts_metadata("design:type", Object)
], PrintJob.prototype, "printerName", void 0);
_ts_decorate([
    (0, _typeorm.Column)({
        type: "varchar",
        nullable: false
    }),
    _ts_metadata("design:type", String)
], PrintJob.prototype, "fileName", void 0);
_ts_decorate([
    (0, _typeorm.Column)({
        type: "varchar",
        nullable: true
    }),
    _ts_metadata("design:type", Object)
], PrintJob.prototype, "fileStorageId", void 0);
_ts_decorate([
    (0, _typeorm.Column)({
        type: "varchar",
        nullable: true
    }),
    _ts_metadata("design:type", Object)
], PrintJob.prototype, "fileFormat", void 0);
_ts_decorate([
    (0, _typeorm.Column)({
        type: "int",
        nullable: true
    }),
    _ts_metadata("design:type", Object)
], PrintJob.prototype, "fileSize", void 0);
_ts_decorate([
    (0, _typeorm.Column)({
        type: "varchar",
        nullable: true
    }),
    _ts_metadata("design:type", Object)
], PrintJob.prototype, "fileHash", void 0);
_ts_decorate([
    (0, _typeorm.CreateDateColumn)(),
    _ts_metadata("design:type", typeof Date === "undefined" ? Object : Date)
], PrintJob.prototype, "createdAt", void 0);
_ts_decorate([
    (0, _typeorm.UpdateDateColumn)(),
    _ts_metadata("design:type", typeof Date === "undefined" ? Object : Date)
], PrintJob.prototype, "updatedAt", void 0);
_ts_decorate([
    (0, _typeorm.Column)({
        type: Date,
        nullable: true
    }),
    _ts_metadata("design:type", Object)
], PrintJob.prototype, "analyzedAt", void 0);
_ts_decorate([
    (0, _typeorm.Column)({
        type: Date,
        nullable: true
    }),
    _ts_metadata("design:type", Object)
], PrintJob.prototype, "startedAt", void 0);
_ts_decorate([
    (0, _typeorm.Column)({
        type: Date,
        nullable: true
    }),
    _ts_metadata("design:type", Object)
], PrintJob.prototype, "endedAt", void 0);
_ts_decorate([
    (0, _typeorm.Column)({
        type: "varchar",
        nullable: false,
        default: "PENDING"
    }),
    _ts_metadata("design:type", typeof PrintJobStatus === "undefined" ? Object : PrintJobStatus)
], PrintJob.prototype, "status", void 0);
_ts_decorate([
    (0, _typeorm.Column)({
        type: "varchar",
        nullable: false,
        default: "NOT_ANALYZED"
    }),
    _ts_metadata("design:type", typeof AnalysisState === "undefined" ? Object : AnalysisState)
], PrintJob.prototype, "analysisState", void 0);
_ts_decorate([
    (0, _typeorm.Column)({
        type: "varchar",
        nullable: true
    }),
    _ts_metadata("design:type", Object)
], PrintJob.prototype, "statusReason", void 0);
_ts_decorate([
    (0, _typeorm.Column)({
        type: "float",
        nullable: true
    }),
    _ts_metadata("design:type", Object)
], PrintJob.prototype, "progress", void 0);
_ts_decorate([
    (0, _typeorm.Column)({
        type: "json",
        nullable: true
    }),
    _ts_metadata("design:type", Object)
], PrintJob.prototype, "metadata", void 0);
_ts_decorate([
    (0, _typeorm.Column)({
        type: "json",
        nullable: true
    }),
    _ts_metadata("design:type", Object)
], PrintJob.prototype, "statistics", void 0);
_ts_decorate([
    (0, _typeorm.Column)({
        type: "int",
        nullable: true
    }),
    _ts_metadata("design:type", Object)
], PrintJob.prototype, "queuePosition", void 0);
_ts_decorate([
    (0, _typeorm.Column)({
        type: "varchar",
        nullable: true
    }),
    _ts_metadata("design:type", Object)
], PrintJob.prototype, "queueGroup", void 0);
PrintJob = _ts_decorate([
    (0, _typeorm.Entity)()
], PrintJob);

//# sourceMappingURL=print-job.entity.js.map