2025-12-10 16:08:34 +09:00
|
|
|
import { Module, forwardRef } from "@nestjs/common";
|
2025-09-06 10:01:44 +09:00
|
|
|
import { ConfigModule } from "@nestjs/config";
|
2025-12-10 16:08:34 +09:00
|
|
|
import { IntegrationsModule } from "@bff/integrations/integrations.module.js";
|
|
|
|
|
import { OrdersModule } from "@bff/modules/orders/orders.module.js";
|
2025-12-25 13:20:45 +09:00
|
|
|
import { ServicesModule } from "@bff/modules/services/services.module.js";
|
2025-12-23 11:36:44 +09:00
|
|
|
import { NotificationsModule } from "@bff/modules/notifications/notifications.module.js";
|
2025-12-25 13:59:28 +09:00
|
|
|
import { ServicesCdcSubscriber } from "./services-cdc.subscriber.js";
|
2025-12-10 16:08:34 +09:00
|
|
|
import { OrderCdcSubscriber } from "./order-cdc.subscriber.js";
|
2025-09-06 10:01:44 +09:00
|
|
|
|
|
|
|
|
@Module({
|
2025-12-10 16:08:34 +09:00
|
|
|
imports: [
|
|
|
|
|
ConfigModule,
|
|
|
|
|
forwardRef(() => IntegrationsModule),
|
|
|
|
|
forwardRef(() => OrdersModule),
|
2025-12-25 13:20:45 +09:00
|
|
|
forwardRef(() => ServicesModule),
|
2025-12-23 11:36:44 +09:00
|
|
|
forwardRef(() => NotificationsModule),
|
2025-12-10 16:08:34 +09:00
|
|
|
],
|
2025-11-06 16:32:29 +09:00
|
|
|
providers: [
|
2025-12-25 13:59:28 +09:00
|
|
|
ServicesCdcSubscriber, // CDC for services cache invalidation + notifications
|
2025-11-17 11:49:58 +09:00
|
|
|
OrderCdcSubscriber, // CDC for order cache invalidation
|
2025-11-06 16:32:29 +09:00
|
|
|
],
|
2025-09-06 10:01:44 +09:00
|
|
|
})
|
|
|
|
|
export class SalesforceEventsModule {}
|