26 lines
898 B
TypeScript
26 lines
898 B
TypeScript
|
|
import type { IModuleServer } from "@erp/core/api";
|
||
|
|
|
||
|
|
import type { IOnboardingPublicServices } from "./application";
|
||
|
|
import { buildOnboardingDependencies } from "./infrastructure/di";
|
||
|
|
import { onboardingRouter } from "./infrastructure/express/onboarding.routes";
|
||
|
|
import { models } from "./infrastructure/persistence/sequelize";
|
||
|
|
|
||
|
|
export type { IOnboardingPublicServices } from "./application";
|
||
|
|
export * from "./application";
|
||
|
|
export * from "./infrastructure/persistence/sequelize";
|
||
|
|
|
||
|
|
export const onboardingAPIModule: IModuleServer = {
|
||
|
|
name: "onboarding",
|
||
|
|
version: "1.0.0",
|
||
|
|
dependencies: ["companies", "identity"],
|
||
|
|
setup(params) {
|
||
|
|
const internal = buildOnboardingDependencies(params);
|
||
|
|
const general: IOnboardingPublicServices = {};
|
||
|
|
return { models, services: { general }, internal };
|
||
|
|
},
|
||
|
|
start(params) {
|
||
|
|
onboardingRouter(params);
|
||
|
|
},
|
||
|
|
};
|
||
|
|
export default onboardingAPIModule;
|