This commit is contained in:
2025-12-16 21:05:01 +01:00
parent f61e3a4e5a
commit 7532c7ed6d
207 changed files with 7861 additions and 2606 deletions

View File

@@ -0,0 +1,10 @@
export interface DomainEvent<T = unknown> {
readonly eventType: string;
readonly aggregateId: string;
readonly eventData: T;
readonly occurredAt: Date;
}
export interface DomainEventPublisher {
publish(event: DomainEvent): Promise<void>;
}

View File

@@ -1,10 +0,0 @@
export interface IDomainEvent<T = any> {
readonly eventType: string;
readonly aggregateId: string;
readonly eventData: T;
readonly occurredAt: Date;
}
export interface IDomainEventPublisher {
publish(event: IDomainEvent): Promise<void>;
}

View File

@@ -1,4 +1,4 @@
import type { Result } from '../result/Result';
import type { Result } from '../application/Result';
import type { IDomainError } from '../errors/DomainError';
export interface IDomainService {