feat(api): improve notifications, reviews, search, and subscriptions modules
- 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>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { type DomainEvent } from '@modules/shared/domain/domain-event';
|
||||
import { type DomainEvent } from '@modules/shared';
|
||||
|
||||
export class QuotaExceededEvent implements DomainEvent {
|
||||
readonly eventName = 'quota.exceeded';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { type PlanTier } from '@prisma/client';
|
||||
import { type DomainEvent } from '@modules/shared/domain/domain-event';
|
||||
import { type DomainEvent } from '@modules/shared';
|
||||
|
||||
export class SubscriptionCancelledEvent implements DomainEvent {
|
||||
readonly eventName = 'subscription.cancelled';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { type PlanTier } from '@prisma/client';
|
||||
import { type DomainEvent } from '@modules/shared/domain/domain-event';
|
||||
import { type DomainEvent } from '@modules/shared';
|
||||
|
||||
export class SubscriptionCreatedEvent implements DomainEvent {
|
||||
readonly eventName = 'subscription.created';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { type PlanTier } from '@prisma/client';
|
||||
import { type DomainEvent } from '@modules/shared/domain/domain-event';
|
||||
import { type DomainEvent } from '@modules/shared';
|
||||
|
||||
export class SubscriptionUpgradedEvent implements DomainEvent {
|
||||
readonly eventName = 'subscription.upgraded';
|
||||
|
||||
Reference in New Issue
Block a user