"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addReferences = void 0;
const config_1 = require("../../config");
const utils_1 = require("../../utils");
const path = require("node:path");
const addReferences = (generateCommandState) => {
    const codeWriter = new utils_1.CodeWriter(path.join('src'), path.join(config_1.cliterConfig.appContainer), config_1.cliterConfig.apiContainer, generateCommandState.schema.boundedContextName.toLowerCase(), generateCommandState.schema.moduleName.toLowerCase(), generateCommandState.schema.moduleNames.toLowerCase(), generateCommandState.schema.aggregateName);
    codeWriter.generateBoundedContextBackReferences(generateCommandState.schema.properties);
    codeWriter.declareApplicationItemsInModule();
    codeWriter.declareBoundedContextModuleInApplicationModule();
    codeWriter.declareApplicationItemsExports();
};
exports.addReferences = addReferences;
