fase(15): reporting module with pdf generation

This commit is contained in:
debian
2026-03-06 05:57:05 -05:00
parent 3ff36f0b6a
commit cffa1aeea9
64 changed files with 3462 additions and 87 deletions

View File

@@ -0,0 +1,18 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReportStatus = void 0;
const ValueObject_1 = require("../../../../shared/domain/ValueObject");
class ReportStatus extends ValueObject_1.ValueObject {
get value() { return this.props.value; }
static pending() { return new ReportStatus({ value: 'pending' }); }
static generating() { return new ReportStatus({ value: 'generating' }); }
static ready() { return new ReportStatus({ value: 'ready' }); }
static failed() { return new ReportStatus({ value: 'failed' }); }
static fromString(s) {
if (s === 'pending' || s === 'generating' || s === 'ready' || s === 'failed') {
return new ReportStatus({ value: s });
}
throw new Error(`Invalid report status: ${s}`);
}
}
exports.ReportStatus = ReportStatus;