UNPKG

adpa-enterprise-framework-automation

Version:

Modular, standards-compliant Node.js/TypeScript automation framework for enterprise requirements, project, and data management. Provides CLI and API for BABOK v3, PMBOK 7th Edition, and DMBOK 2.0 (in progress). Production-ready Express.js API with TypeSpe

67 lines 2.6 kB
/** * Document Generator Module (Legacy Adapter) * * DEPRECATED: This file is maintained for backward compatibility. * Please use the new modular structure instead: * - import { DocumentGenerator, ... } from './documentGenerator'; * - import { PMBOKValidator, ... } from './pmbokValidation'; * - import { generateAllWithPMBOKValidation } from './documentGeneratorWithValidation.js'; * * @deprecated Use the new modular structure instead * @version 2.2.0 */ // Import from the refactored modules import { DocumentGenerator, GENERATION_TASKS, DOCUMENT_CONFIG, generateDocumentsWithRetry, generateAllDocuments as generateAll } from './documentGenerator/index.js'; import { PMBOKValidator, PMBOK_DOCUMENT_REQUIREMENTS } from './pmbokValidation/index.js'; import { generateAllWithPMBOKValidation } from './documentGeneratorWithValidation.js'; /** * Export all functionality from new modules for backward compatibility */ // Re-export main classes export { DocumentGenerator, PMBOKValidator }; // Re-export constants export { GENERATION_TASKS, DOCUMENT_CONFIG, PMBOK_DOCUMENT_REQUIREMENTS }; // Re-export utility functions export { generateDocumentsWithRetry }; // Re-export static version export const documentGeneratorVersion = '2.2.0'; /** * Legacy backward compatibility functions */ // Backward compatibility function for generateAllDocuments export async function generateAllDocuments(context) { await generateAll(context); } // Legacy convenience methods - forwarded to new module export function getAvailableCategories() { return [...new Set(GENERATION_TASKS.map(task => task.category))]; } export function getTasksByCategory(category) { return GENERATION_TASKS.filter(task => task.category === category); } export function getTaskByKey(key) { return GENERATION_TASKS.find(task => task.key === key); } /** * Combined generation and validation (forwarded to the integrated module) */ export async function generateAllWithValidation(context, options = {}) { return await generateAllWithPMBOKValidation(context, options); } /** * Creates a DocumentGenerator with recommended default options * @param context Project context * @param customOptions Custom options to override defaults * @returns DocumentGenerator instance */ export function createDocumentGenerator(context, customOptions = {}) { return new DocumentGenerator(context, { maxConcurrent: 1, delayBetweenCalls: 500, continueOnError: true, generateIndex: true, cleanup: true, ...customOptions }); } //# sourceMappingURL=documentGenerator.js.map