15 lines
448 B
JavaScript
15 lines
448 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.OrgCreated = void 0;
|
|
const crypto_1 = require("crypto");
|
|
class OrgCreated {
|
|
constructor(aggregateId, payload) {
|
|
this.aggregateId = aggregateId;
|
|
this.payload = payload;
|
|
this.eventId = (0, crypto_1.randomUUID)();
|
|
this.eventName = 'auth.org.created';
|
|
this.occurredOn = new Date();
|
|
}
|
|
}
|
|
exports.OrgCreated = OrgCreated;
|