"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.generatePostmanFiles = void 0;
// imports
const path = require("node:path");
const types_1 = require("../../types");
const utils_1 = require("../../utils");
const generatePostmanFiles = async (generateCommandState) => {
    await utils_1.TemplateGenerator.createDirectory('', path.join('postman', generateCommandState.schema.boundedContextName));
    await utils_1.TemplateGenerator.generateStaticContents(generateCommandState.command, types_1.TemplateElement.BACK_POSTMAN, '', path.join('postman', generateCommandState.schema.boundedContextName), {
        boundedContextName: generateCommandState.schema.boundedContextName,
        moduleName: generateCommandState.schema.moduleName,
        moduleNames: generateCommandState.schema.moduleNames,
        force: generateCommandState.flags.force,
        verbose: generateCommandState.flags.verbose,
        excludeFiles: generateCommandState.schema.excluded,
        lockFiles: generateCommandState.lockFiles,
        templateData: { ...generateCommandState },
    });
};
exports.generatePostmanFiles = generatePostmanFiles;
