import type { IModuleServer } from "@erp/core/api"; import { models, paymentMethodsRouter } from "./infrastructure"; import { buildCatalogsDependencies, buildCatalogsPublicServices, } from "./infrastructure/payment-methods/di/catalogs.di"; export * from "./infrastructure/payment-methods/persistence/sequelize"; export const catalogsAPIModule: IModuleServer = { name: "catalogs", version: "1.0.0", dependencies: [], async setup(params) { const internal = buildCatalogsDependencies(params); const publicServices = buildCatalogsPublicServices(params, internal); params.logger.info("🚀 Catalogs module dependencies registered", { label: this.name, }); return { models, services: { paymentMethod: publicServices, }, internal, }; }, async start(params) { const { logger } = params; paymentMethodsRouter(params); logger.info("🚀 Catalogs module started", { label: this.name, }); }, }; export default catalogsAPIModule;