- Add listing-sold event listener with spec for notifications - Add review-deleted event listener with spec for reviews - Improve search handlers with proper Typesense client injection - Improve subscription handlers with ConfigService and quota tracking Co-Authored-By: Paperclip <noreply@paperclip.ing>
15 lines
471 B
TypeScript
15 lines
471 B
TypeScript
import { type DomainEvent } from '@modules/shared';
|
|
import { type NotificationChannel } from '../value-objects/notification-channel.vo';
|
|
|
|
export class NotificationSentEvent implements DomainEvent {
|
|
readonly eventName = 'notification.sent';
|
|
readonly occurredAt = new Date();
|
|
|
|
constructor(
|
|
public readonly aggregateId: string,
|
|
public readonly userId: string,
|
|
public readonly channel: NotificationChannel,
|
|
public readonly templateKey: string,
|
|
) {}
|
|
}
|