Files
Autonomous-Bug-Explorer/dist/modules/reporting/domain/events/ReportRequested.js

15 lines
478 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReportRequested = void 0;
const crypto_1 = require("crypto");
class ReportRequested {
constructor(aggregateId, payload) {
this.aggregateId = aggregateId;
this.payload = payload;
this.eventId = (0, crypto_1.randomUUID)();
this.eventName = 'reporting.report_requested';
this.occurredOn = new Date();
}
}
exports.ReportRequested = ReportRequested;