"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addReferences = void 0;
const path = require("node:path");
const config_1 = require("../../config");
const utils_1 = require("../../utils");
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.generateFrontInterface(generateCommandState.schema.properties, { overwrite: generateCommandState.flags.overwriteInterface });
    codeWriter.generateFrontRoutes();
    codeWriter.declareDashboardComponents();
    codeWriter.declareFrontBoundedContext();
    codeWriter.generateFrontNavigation();
    codeWriter.registerFrontNavigation();
    codeWriter.generateDashboardTranslations(generateCommandState.schema.properties, 'en');
    codeWriter.generateDashboardTranslations(generateCommandState.schema.properties, 'es');
    codeWriter.generateDashboardNavigationTranslation('en');
    codeWriter.generateDashboardNavigationTranslation('es');
};
exports.addReferences = addReferences;
