- Introduced ServicesCdcSubscriber for handling Salesforce Change Data Capture events, enabling real-time updates for product and account eligibility changes. - Developed utility functions for building SOQL queries related to services, enhancing data retrieval capabilities. - Created base service classes for internet, SIM, and VPN offerings, improving code organization and maintainability. - Implemented ServicesCacheService for efficient caching and invalidation of service data, leveraging CDC for real-time updates. - Enhanced existing service components to utilize new caching mechanisms and ensure data consistency across the application.
24 lines
957 B
TypeScript
24 lines
957 B
TypeScript
import { Module, forwardRef } from "@nestjs/common";
|
|
import { ConfigModule } from "@nestjs/config";
|
|
import { IntegrationsModule } from "@bff/integrations/integrations.module.js";
|
|
import { OrdersModule } from "@bff/modules/orders/orders.module.js";
|
|
import { ServicesModule } from "@bff/modules/services/services.module.js";
|
|
import { NotificationsModule } from "@bff/modules/notifications/notifications.module.js";
|
|
import { ServicesCdcSubscriber } from "./services-cdc.subscriber.js";
|
|
import { OrderCdcSubscriber } from "./order-cdc.subscriber.js";
|
|
|
|
@Module({
|
|
imports: [
|
|
ConfigModule,
|
|
forwardRef(() => IntegrationsModule),
|
|
forwardRef(() => OrdersModule),
|
|
forwardRef(() => ServicesModule),
|
|
forwardRef(() => NotificationsModule),
|
|
],
|
|
providers: [
|
|
ServicesCdcSubscriber, // CDC for services cache invalidation + notifications
|
|
OrderCdcSubscriber, // CDC for order cache invalidation
|
|
],
|
|
})
|
|
export class SalesforceEventsModule {}
|