- 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>
14 lines
368 B
TypeScript
14 lines
368 B
TypeScript
import { type DomainEvent } from '@modules/shared';
|
|
|
|
export class QuotaExceededEvent implements DomainEvent {
|
|
readonly eventName = 'quota.exceeded';
|
|
readonly occurredAt = new Date();
|
|
|
|
constructor(
|
|
public readonly aggregateId: string, // userId
|
|
public readonly metric: string,
|
|
public readonly limit: number,
|
|
public readonly used: number,
|
|
) {}
|
|
}
|