29 lines
814 B
TypeScript
29 lines
814 B
TypeScript
|
|
/* import { getService } from "@apps/server/src/core/service-registry"; */
|
||
|
|
import { logger } from "@rdx/logger";
|
||
|
|
import { IModuleServer } from "@rdx/modules";
|
||
|
|
import { Application } from "express";
|
||
|
|
import { initInvoiceModel } from "./intrastructure";
|
||
|
|
|
||
|
|
export const invoicesModule: IModuleServer = {
|
||
|
|
metadata: {
|
||
|
|
name: "invoices",
|
||
|
|
version: "1.0.0",
|
||
|
|
dependencies: [],
|
||
|
|
},
|
||
|
|
init(app: Application) {
|
||
|
|
// const contacts = getService<ContactsService>("contacts");
|
||
|
|
//invoicesRouter(app);
|
||
|
|
logger.info("🚀 Invoices module initialized");
|
||
|
|
},
|
||
|
|
registerDependencies() {
|
||
|
|
logger.info("🚀 Invoices module dependencies registered");
|
||
|
|
return {
|
||
|
|
models: [(sequelize) => initInvoiceModel(sequelize)],
|
||
|
|
services: {
|
||
|
|
getInvoice: () => {},
|
||
|
|
/*...*/
|
||
|
|
},
|
||
|
|
};
|
||
|
|
},
|
||
|
|
};
|