@nestia/migrate 12.0.0-dev.20260612.1 → 12.0.0-dev.20260619.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/NestiaMigrateApplication.mjs +3 -0
- package/lib/NestiaMigrateApplication.mjs.map +1 -0
- package/lib/NestiaMigrateApplication2.mjs +153 -0
- package/lib/NestiaMigrateApplication2.mjs.map +1 -0
- package/lib/_virtual/ExpressionFactory.mjs +4 -0
- package/lib/_virtual/ExpressionFactory.mjs.map +1 -0
- package/lib/_virtual/FilePrinter.mjs +4 -0
- package/lib/_virtual/FilePrinter.mjs.map +1 -0
- package/lib/_virtual/FormatCheatSheet.mjs +4 -0
- package/lib/_virtual/FormatCheatSheet.mjs.map +1 -0
- package/lib/_virtual/INestiaMigrateConfig.mjs +4 -0
- package/lib/_virtual/INestiaMigrateConfig.mjs.map +1 -0
- package/lib/_virtual/INestiaMigrateContext.mjs +4 -0
- package/lib/_virtual/INestiaMigrateContext.mjs.map +1 -0
- package/lib/_virtual/INestiaMigrateController.mjs +4 -0
- package/lib/_virtual/INestiaMigrateController.mjs.map +1 -0
- package/lib/_virtual/INestiaMigrateFile.mjs +4 -0
- package/lib/_virtual/INestiaMigrateFile.mjs.map +1 -0
- package/lib/_virtual/IdentifierFactory.mjs +4 -0
- package/lib/_virtual/IdentifierFactory.mjs.map +1 -0
- package/lib/_virtual/LiteralFactory.mjs +4 -0
- package/lib/_virtual/LiteralFactory.mjs.map +1 -0
- package/lib/_virtual/MapUtil.mjs +4 -0
- package/lib/_virtual/MapUtil.mjs.map +1 -0
- package/lib/_virtual/NEST_TEMPLATE.mjs +4 -0
- package/lib/_virtual/NEST_TEMPLATE.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateApiFileProgrammer.mjs +4 -0
- package/lib/_virtual/NestiaMigrateApiFileProgrammer.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateApiFunctionProgrammer.mjs +4 -0
- package/lib/_virtual/NestiaMigrateApiFunctionProgrammer.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateApiNamespaceProgrammer.mjs +4 -0
- package/lib/_virtual/NestiaMigrateApiNamespaceProgrammer.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateApiProgrammer.mjs +4 -0
- package/lib/_virtual/NestiaMigrateApiProgrammer.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateApiSimulationProgrammer.mjs +4 -0
- package/lib/_virtual/NestiaMigrateApiSimulationProgrammer.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateApiStartProgrammer.mjs +4 -0
- package/lib/_virtual/NestiaMigrateApiStartProgrammer.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateApplication.mjs +4 -0
- package/lib/_virtual/NestiaMigrateApplication.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateCommander.mjs +4 -0
- package/lib/_virtual/NestiaMigrateCommander.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateControllerAnalyzer.mjs +4 -0
- package/lib/_virtual/NestiaMigrateControllerAnalyzer.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateDtoProgrammer.mjs +4 -0
- package/lib/_virtual/NestiaMigrateDtoProgrammer.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateE2eFileProgrammer.mjs +4 -0
- package/lib/_virtual/NestiaMigrateE2eFileProgrammer.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateE2eProgrammer.mjs +4 -0
- package/lib/_virtual/NestiaMigrateE2eProgrammer.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateFileArchiver.mjs +4 -0
- package/lib/_virtual/NestiaMigrateFileArchiver.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateImportProgrammer.mjs +4 -0
- package/lib/_virtual/NestiaMigrateImportProgrammer.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateInquirer.mjs +4 -0
- package/lib/_virtual/NestiaMigrateInquirer.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateNestControllerProgrammer.mjs +4 -0
- package/lib/_virtual/NestiaMigrateNestControllerProgrammer.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateNestMethodProgrammer.mjs +4 -0
- package/lib/_virtual/NestiaMigrateNestMethodProgrammer.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateNestModuleProgrammer.mjs +4 -0
- package/lib/_virtual/NestiaMigrateNestModuleProgrammer.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateNestProgrammer.mjs +4 -0
- package/lib/_virtual/NestiaMigrateNestProgrammer.mjs.map +1 -0
- package/lib/_virtual/NestiaMigrateSchemaProgrammer.mjs +4 -0
- package/lib/_virtual/NestiaMigrateSchemaProgrammer.mjs.map +1 -0
- package/lib/_virtual/SDK_TEMPLATE.mjs +4 -0
- package/lib/_virtual/SDK_TEMPLATE.mjs.map +1 -0
- package/lib/_virtual/StatementFactory.mjs +4 -0
- package/lib/_virtual/StatementFactory.mjs.map +1 -0
- package/lib/_virtual/StringUtil.mjs +4 -0
- package/lib/_virtual/StringUtil.mjs.map +1 -0
- package/lib/_virtual/TypeFactory.mjs +4 -0
- package/lib/_virtual/TypeFactory.mjs.map +1 -0
- package/lib/_virtual/TypeLiteralFactory.mjs +4 -0
- package/lib/_virtual/TypeLiteralFactory.mjs.map +1 -0
- package/lib/_virtual/_commander.mjs +7 -0
- package/lib/_virtual/_commander.mjs.map +1 -0
- package/lib/_virtual/_commonjsHelpers.mjs +35 -0
- package/lib/_virtual/_commonjsHelpers.mjs.map +1 -0
- package/lib/_virtual/_inquirer.mjs +7 -0
- package/lib/_virtual/_inquirer.mjs.map +1 -0
- package/lib/_virtual/_node_child_process.mjs +7 -0
- package/lib/_virtual/_node_child_process.mjs.map +1 -0
- package/lib/_virtual/_node_fs.mjs +7 -0
- package/lib/_virtual/_node_fs.mjs.map +1 -0
- package/lib/_virtual/_node_path.mjs +7 -0
- package/lib/_virtual/_node_path.mjs.map +1 -0
- package/lib/_virtual/_prettier-plugin-jsdoc.mjs +7 -0
- package/lib/_virtual/_prettier-plugin-jsdoc.mjs.map +1 -0
- package/lib/_virtual/_prettier.mjs +7 -0
- package/lib/_virtual/_prettier.mjs.map +1 -0
- package/lib/_virtual/_tstl.mjs +7 -0
- package/lib/_virtual/_tstl.mjs.map +1 -0
- package/lib/_virtual/factory.mjs +7 -0
- package/lib/_virtual/factory.mjs.map +1 -0
- package/lib/_virtual/index.mjs +4 -0
- package/lib/_virtual/index.mjs.map +1 -0
- package/lib/_virtual/index2.mjs +4 -0
- package/lib/_virtual/index2.mjs.map +1 -0
- package/lib/_virtual/index3.mjs +4 -0
- package/lib/_virtual/index3.mjs.map +1 -0
- package/lib/_virtual/index4.mjs +4 -0
- package/lib/_virtual/index4.mjs.map +1 -0
- package/lib/_virtual/migrate.mjs +4 -0
- package/lib/_virtual/migrate.mjs.map +1 -0
- package/lib/_virtual/module.mjs +4 -0
- package/lib/_virtual/module.mjs.map +1 -0
- package/lib/_virtual/prettier-plugin-sort-imports.mjs +7 -0
- package/lib/_virtual/prettier-plugin-sort-imports.mjs.map +1 -0
- package/lib/_virtual/ts.mjs +4 -0
- package/lib/_virtual/ts.mjs.map +1 -0
- package/lib/_virtual/utils.mjs +7 -0
- package/lib/_virtual/utils.mjs.map +1 -0
- package/lib/analyzers/NestiaMigrateControllerAnalyzer.mjs +3 -0
- package/lib/analyzers/NestiaMigrateControllerAnalyzer.mjs.map +1 -0
- package/lib/analyzers/NestiaMigrateControllerAnalyzer2.mjs +53 -0
- package/lib/analyzers/NestiaMigrateControllerAnalyzer2.mjs.map +1 -0
- package/lib/archivers/NestiaMigrateFileArchiver.mjs +3 -0
- package/lib/archivers/NestiaMigrateFileArchiver.mjs.map +1 -0
- package/lib/archivers/NestiaMigrateFileArchiver2.mjs +40 -0
- package/lib/archivers/NestiaMigrateFileArchiver2.mjs.map +1 -0
- package/lib/bundles/NEST_TEMPLATE.js +2 -2
- package/lib/bundles/NEST_TEMPLATE.mjs +3 -0
- package/lib/bundles/NEST_TEMPLATE.mjs.map +1 -0
- package/lib/bundles/NEST_TEMPLATE2.mjs +66 -0
- package/lib/bundles/NEST_TEMPLATE2.mjs.map +1 -0
- package/lib/bundles/SDK_TEMPLATE.js +1 -1
- package/lib/bundles/SDK_TEMPLATE.mjs +3 -0
- package/lib/bundles/SDK_TEMPLATE.mjs.map +1 -0
- package/lib/bundles/SDK_TEMPLATE2.mjs +38 -0
- package/lib/bundles/SDK_TEMPLATE2.mjs.map +1 -0
- package/lib/executable/NestiaMigrateCommander.mjs +3 -0
- package/lib/executable/NestiaMigrateCommander.mjs.map +1 -0
- package/lib/executable/NestiaMigrateCommander2.mjs +148 -0
- package/lib/executable/NestiaMigrateCommander2.mjs.map +1 -0
- package/lib/executable/NestiaMigrateInquirer.mjs +3 -0
- package/lib/executable/NestiaMigrateInquirer.mjs.map +1 -0
- package/lib/executable/NestiaMigrateInquirer2.mjs +93 -0
- package/lib/executable/NestiaMigrateInquirer2.mjs.map +1 -0
- package/lib/executable/migrate.mjs +4 -0
- package/lib/executable/migrate.mjs.map +1 -0
- package/lib/executable/migrate2.mjs +13 -0
- package/lib/executable/migrate2.mjs.map +1 -0
- package/lib/factories/ExpressionFactory.d.ts +9 -0
- package/lib/factories/ExpressionFactory.js +16 -0
- package/lib/factories/ExpressionFactory.js.map +1 -0
- package/lib/factories/ExpressionFactory.mjs +3 -0
- package/lib/factories/ExpressionFactory.mjs.map +1 -0
- package/lib/factories/ExpressionFactory2.mjs +20 -0
- package/lib/factories/ExpressionFactory2.mjs.map +1 -0
- package/lib/factories/FormatCheatSheet.d.ts +25 -0
- package/lib/factories/FormatCheatSheet.js +34 -0
- package/lib/factories/FormatCheatSheet.js.map +1 -0
- package/lib/factories/FormatCheatSheet.mjs +3 -0
- package/lib/factories/FormatCheatSheet.mjs.map +1 -0
- package/lib/factories/FormatCheatSheet2.mjs +37 -0
- package/lib/factories/FormatCheatSheet2.mjs.map +1 -0
- package/lib/factories/IdentifierFactory.d.ts +22 -0
- package/lib/factories/IdentifierFactory.js +50 -0
- package/lib/factories/IdentifierFactory.js.map +1 -0
- package/lib/factories/IdentifierFactory.mjs +3 -0
- package/lib/factories/IdentifierFactory.mjs.map +1 -0
- package/lib/factories/IdentifierFactory2.mjs +56 -0
- package/lib/factories/IdentifierFactory2.mjs.map +1 -0
- package/lib/factories/LiteralFactory.d.ts +9 -0
- package/lib/factories/LiteralFactory.js +48 -0
- package/lib/factories/LiteralFactory.js.map +1 -0
- package/lib/factories/LiteralFactory.mjs +3 -0
- package/lib/factories/LiteralFactory.mjs.map +1 -0
- package/lib/factories/LiteralFactory2.mjs +56 -0
- package/lib/factories/LiteralFactory2.mjs.map +1 -0
- package/lib/factories/StatementFactory.d.ts +14 -0
- package/lib/factories/StatementFactory.js +20 -0
- package/lib/factories/StatementFactory.js.map +1 -0
- package/lib/factories/StatementFactory.mjs +3 -0
- package/lib/factories/StatementFactory.mjs.map +1 -0
- package/lib/factories/StatementFactory2.mjs +26 -0
- package/lib/factories/StatementFactory2.mjs.map +1 -0
- package/lib/factories/TypeFactory.d.ts +24 -0
- package/lib/factories/TypeFactory.js +27 -0
- package/lib/factories/TypeFactory.js.map +1 -0
- package/lib/factories/TypeFactory.mjs +3 -0
- package/lib/factories/TypeFactory.mjs.map +1 -0
- package/lib/factories/TypeFactory2.mjs +31 -0
- package/lib/factories/TypeFactory2.mjs.map +1 -0
- package/lib/factories/TypeLiteralFactory.js +12 -16
- package/lib/factories/TypeLiteralFactory.js.map +1 -1
- package/lib/factories/TypeLiteralFactory.mjs +3 -0
- package/lib/factories/TypeLiteralFactory.mjs.map +1 -0
- package/lib/factories/TypeLiteralFactory2.mjs +72 -0
- package/lib/factories/TypeLiteralFactory2.mjs.map +1 -0
- package/lib/index.mjs +1 -1197
- package/lib/index.mjs.map +1 -1
- package/lib/index2.mjs +53 -0
- package/lib/index2.mjs.map +1 -0
- package/lib/internal/ts.d.ts +35 -24
- package/lib/internal/ts.js +1 -31
- package/lib/internal/ts.js.map +1 -1
- package/lib/internal/ts.mjs +2 -0
- package/lib/internal/ts.mjs.map +1 -0
- package/lib/internal/ts2.mjs +10 -0
- package/lib/internal/ts2.mjs.map +1 -0
- package/lib/module.mjs +2 -0
- package/lib/module.mjs.map +1 -0
- package/lib/module2.mjs +38 -0
- package/lib/module2.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateApiFileProgrammer.js +2 -2
- package/lib/programmers/NestiaMigrateApiFileProgrammer.js.map +1 -1
- package/lib/programmers/NestiaMigrateApiFileProgrammer.mjs +3 -0
- package/lib/programmers/NestiaMigrateApiFileProgrammer.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateApiFileProgrammer2.mjs +49 -0
- package/lib/programmers/NestiaMigrateApiFileProgrammer2.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateApiFunctionProgrammer.js +46 -49
- package/lib/programmers/NestiaMigrateApiFunctionProgrammer.js.map +1 -1
- package/lib/programmers/NestiaMigrateApiFunctionProgrammer.mjs +3 -0
- package/lib/programmers/NestiaMigrateApiFunctionProgrammer.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateApiFunctionProgrammer2.mjs +234 -0
- package/lib/programmers/NestiaMigrateApiFunctionProgrammer2.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateApiNamespaceProgrammer.d.ts +2 -2
- package/lib/programmers/NestiaMigrateApiNamespaceProgrammer.js +62 -63
- package/lib/programmers/NestiaMigrateApiNamespaceProgrammer.js.map +1 -1
- package/lib/programmers/NestiaMigrateApiNamespaceProgrammer.mjs +3 -0
- package/lib/programmers/NestiaMigrateApiNamespaceProgrammer.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateApiNamespaceProgrammer2.mjs +238 -0
- package/lib/programmers/NestiaMigrateApiNamespaceProgrammer2.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateApiProgrammer.js +2 -6
- package/lib/programmers/NestiaMigrateApiProgrammer.js.map +1 -1
- package/lib/programmers/NestiaMigrateApiProgrammer.mjs +3 -0
- package/lib/programmers/NestiaMigrateApiProgrammer.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateApiProgrammer2.mjs +92 -0
- package/lib/programmers/NestiaMigrateApiProgrammer2.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateApiSimulationProgrammer.d.ts +2 -2
- package/lib/programmers/NestiaMigrateApiSimulationProgrammer.js +38 -40
- package/lib/programmers/NestiaMigrateApiSimulationProgrammer.js.map +1 -1
- package/lib/programmers/NestiaMigrateApiSimulationProgrammer.mjs +3 -0
- package/lib/programmers/NestiaMigrateApiSimulationProgrammer.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateApiSimulationProgrammer2.mjs +156 -0
- package/lib/programmers/NestiaMigrateApiSimulationProgrammer2.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateApiStartProgrammer.js +21 -24
- package/lib/programmers/NestiaMigrateApiStartProgrammer.js.map +1 -1
- package/lib/programmers/NestiaMigrateApiStartProgrammer.mjs +3 -0
- package/lib/programmers/NestiaMigrateApiStartProgrammer.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateApiStartProgrammer2.mjs +88 -0
- package/lib/programmers/NestiaMigrateApiStartProgrammer2.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateDtoProgrammer.js +2 -6
- package/lib/programmers/NestiaMigrateDtoProgrammer.js.map +1 -1
- package/lib/programmers/NestiaMigrateDtoProgrammer.mjs +3 -0
- package/lib/programmers/NestiaMigrateDtoProgrammer.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateDtoProgrammer2.mjs +71 -0
- package/lib/programmers/NestiaMigrateDtoProgrammer2.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateE2eFileProgrammer.d.ts +1 -1
- package/lib/programmers/NestiaMigrateE2eFileProgrammer.js +24 -29
- package/lib/programmers/NestiaMigrateE2eFileProgrammer.js.map +1 -1
- package/lib/programmers/NestiaMigrateE2eFileProgrammer.mjs +3 -0
- package/lib/programmers/NestiaMigrateE2eFileProgrammer.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateE2eFileProgrammer2.mjs +88 -0
- package/lib/programmers/NestiaMigrateE2eFileProgrammer2.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateE2eProgrammer.mjs +3 -0
- package/lib/programmers/NestiaMigrateE2eProgrammer.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateE2eProgrammer2.mjs +41 -0
- package/lib/programmers/NestiaMigrateE2eProgrammer2.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateImportProgrammer.js +11 -11
- package/lib/programmers/NestiaMigrateImportProgrammer.js.map +1 -1
- package/lib/programmers/NestiaMigrateImportProgrammer.mjs +3 -0
- package/lib/programmers/NestiaMigrateImportProgrammer.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateImportProgrammer2.mjs +72 -0
- package/lib/programmers/NestiaMigrateImportProgrammer2.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateNestControllerProgrammer.js +5 -9
- package/lib/programmers/NestiaMigrateNestControllerProgrammer.js.map +1 -1
- package/lib/programmers/NestiaMigrateNestControllerProgrammer.mjs +3 -0
- package/lib/programmers/NestiaMigrateNestControllerProgrammer.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateNestControllerProgrammer2.mjs +52 -0
- package/lib/programmers/NestiaMigrateNestControllerProgrammer2.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateNestMethodProgrammer.d.ts +1 -1
- package/lib/programmers/NestiaMigrateNestMethodProgrammer.js +35 -41
- package/lib/programmers/NestiaMigrateNestMethodProgrammer.js.map +1 -1
- package/lib/programmers/NestiaMigrateNestMethodProgrammer.mjs +3 -0
- package/lib/programmers/NestiaMigrateNestMethodProgrammer.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateNestMethodProgrammer2.mjs +229 -0
- package/lib/programmers/NestiaMigrateNestMethodProgrammer2.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateNestModuleProgrammer.js +9 -13
- package/lib/programmers/NestiaMigrateNestModuleProgrammer.js.map +1 -1
- package/lib/programmers/NestiaMigrateNestModuleProgrammer.mjs +3 -0
- package/lib/programmers/NestiaMigrateNestModuleProgrammer.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateNestModuleProgrammer2.mjs +32 -0
- package/lib/programmers/NestiaMigrateNestModuleProgrammer2.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateNestProgrammer.js +2 -6
- package/lib/programmers/NestiaMigrateNestProgrammer.js.map +1 -1
- package/lib/programmers/NestiaMigrateNestProgrammer.mjs +3 -0
- package/lib/programmers/NestiaMigrateNestProgrammer.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateNestProgrammer2.mjs +78 -0
- package/lib/programmers/NestiaMigrateNestProgrammer2.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateSchemaProgrammer.d.ts +1 -1
- package/lib/programmers/NestiaMigrateSchemaProgrammer.js +45 -44
- package/lib/programmers/NestiaMigrateSchemaProgrammer.js.map +1 -1
- package/lib/programmers/NestiaMigrateSchemaProgrammer.mjs +3 -0
- package/lib/programmers/NestiaMigrateSchemaProgrammer.mjs.map +1 -0
- package/lib/programmers/NestiaMigrateSchemaProgrammer2.mjs +388 -0
- package/lib/programmers/NestiaMigrateSchemaProgrammer2.mjs.map +1 -0
- package/lib/programmers/index.mjs +2 -0
- package/lib/programmers/index.mjs.map +1 -0
- package/lib/programmers/index2.mjs +71 -0
- package/lib/programmers/index2.mjs.map +1 -0
- package/lib/structures/INestiaMigrateConfig.mjs +3 -0
- package/lib/structures/INestiaMigrateConfig.mjs.map +1 -0
- package/lib/structures/INestiaMigrateConfig2.mjs +6 -0
- package/lib/structures/INestiaMigrateConfig2.mjs.map +1 -0
- package/lib/structures/INestiaMigrateContext.mjs +3 -0
- package/lib/structures/INestiaMigrateContext.mjs.map +1 -0
- package/lib/structures/INestiaMigrateContext2.mjs +6 -0
- package/lib/structures/INestiaMigrateContext2.mjs.map +1 -0
- package/lib/structures/INestiaMigrateController.mjs +3 -0
- package/lib/structures/INestiaMigrateController.mjs.map +1 -0
- package/lib/structures/INestiaMigrateController2.mjs +6 -0
- package/lib/structures/INestiaMigrateController2.mjs.map +1 -0
- package/lib/structures/INestiaMigrateFile.mjs +3 -0
- package/lib/structures/INestiaMigrateFile.mjs.map +1 -0
- package/lib/structures/INestiaMigrateFile2.mjs +6 -0
- package/lib/structures/INestiaMigrateFile2.mjs.map +1 -0
- package/lib/structures/index.mjs +2 -0
- package/lib/structures/index.mjs.map +1 -0
- package/lib/structures/index2.mjs +38 -0
- package/lib/structures/index2.mjs.map +1 -0
- package/lib/utils/FilePrinter.d.ts +1 -1
- package/lib/utils/FilePrinter.js +4 -13
- package/lib/utils/FilePrinter.js.map +1 -1
- package/lib/utils/FilePrinter.mjs +3 -0
- package/lib/utils/FilePrinter.mjs.map +1 -0
- package/lib/utils/FilePrinter2.mjs +28 -0
- package/lib/utils/FilePrinter2.mjs.map +1 -0
- package/lib/utils/MapUtil.mjs +3 -0
- package/lib/utils/MapUtil.mjs.map +1 -0
- package/lib/utils/MapUtil2.mjs +18 -0
- package/lib/utils/MapUtil2.mjs.map +1 -0
- package/lib/utils/StringUtil.mjs +3 -0
- package/lib/utils/StringUtil.mjs.map +1 -0
- package/lib/utils/StringUtil2.mjs +110 -0
- package/lib/utils/StringUtil2.mjs.map +1 -0
- package/package.json +12 -9
- package/src/bundles/NEST_TEMPLATE.ts +2 -2
- package/src/bundles/SDK_TEMPLATE.ts +1 -1
- package/src/factories/ExpressionFactory.ts +23 -0
- package/src/factories/FormatCheatSheet.ts +71 -0
- package/src/factories/IdentifierFactory.ts +84 -0
- package/src/factories/LiteralFactory.ts +54 -0
- package/src/factories/StatementFactory.ts +56 -0
- package/src/factories/TypeFactory.ts +27 -0
- package/src/factories/TypeLiteralFactory.ts +17 -18
- package/src/internal/ts.ts +59 -78
- package/src/programmers/NestiaMigrateApiFileProgrammer.ts +5 -8
- package/src/programmers/NestiaMigrateApiFunctionProgrammer.ts +68 -83
- package/src/programmers/NestiaMigrateApiNamespaceProgrammer.ts +124 -141
- package/src/programmers/NestiaMigrateApiProgrammer.ts +7 -7
- package/src/programmers/NestiaMigrateApiSimulationProgrammer.ts +63 -68
- package/src/programmers/NestiaMigrateApiStartProgrammer.ts +48 -48
- package/src/programmers/NestiaMigrateDtoProgrammer.ts +4 -4
- package/src/programmers/NestiaMigrateE2eFileProgrammer.ts +33 -34
- package/src/programmers/NestiaMigrateImportProgrammer.ts +20 -20
- package/src/programmers/NestiaMigrateNestControllerProgrammer.ts +8 -8
- package/src/programmers/NestiaMigrateNestMethodProgrammer.ts +80 -92
- package/src/programmers/NestiaMigrateNestModuleProgrammer.ts +18 -20
- package/src/programmers/NestiaMigrateNestProgrammer.ts +7 -7
- package/src/programmers/NestiaMigrateSchemaProgrammer.ts +41 -43
- package/src/utils/FilePrinter.ts +12 -12
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type Expression,
|
|
3
|
+
type Identifier,
|
|
4
|
+
type ParameterDeclaration,
|
|
5
|
+
type StringLiteral,
|
|
6
|
+
SyntaxKind,
|
|
7
|
+
type Token,
|
|
8
|
+
type TypeNode,
|
|
9
|
+
factory,
|
|
10
|
+
} from "@ttsc/factory";
|
|
11
|
+
|
|
12
|
+
import { TypeFactory } from "./TypeFactory";
|
|
13
|
+
|
|
14
|
+
// Conservative "is this string a syntactically valid JavaScript variable
|
|
15
|
+
// name?" test, inlined to avoid pulling in @typia/utils' full namespace.
|
|
16
|
+
const VARIABLE_REGEX = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
|
|
17
|
+
const isVariableName = (str: string): boolean => VARIABLE_REGEX.test(str);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Identifier and member-access helpers. The surface kept here is the subset
|
|
21
|
+
* nestia generators actually call (`identifier`, `access`, `parameter`).
|
|
22
|
+
*/
|
|
23
|
+
export namespace IdentifierFactory {
|
|
24
|
+
/**
|
|
25
|
+
* Build an identifier or string literal depending on whether `name` is a
|
|
26
|
+
* valid JavaScript identifier.
|
|
27
|
+
*/
|
|
28
|
+
export const identifier = (name: string): Identifier | StringLiteral =>
|
|
29
|
+
isVariableName(name)
|
|
30
|
+
? factory.createIdentifier(name)
|
|
31
|
+
: factory.createStringLiteral(name);
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Member access on `input` by `key`. Falls back to element access when the
|
|
35
|
+
* key is not a valid identifier.
|
|
36
|
+
*/
|
|
37
|
+
export const access = (
|
|
38
|
+
input: Expression,
|
|
39
|
+
key: string,
|
|
40
|
+
chain?: boolean,
|
|
41
|
+
): Expression => {
|
|
42
|
+
const postfix = identifier(key);
|
|
43
|
+
if (postfix.kind === "StringLiteral")
|
|
44
|
+
return chain === true
|
|
45
|
+
? factory.createElementAccessChain(
|
|
46
|
+
input,
|
|
47
|
+
factory.createToken(SyntaxKind.QuestionDotToken),
|
|
48
|
+
postfix,
|
|
49
|
+
)
|
|
50
|
+
: factory.createElementAccessExpression(input, postfix);
|
|
51
|
+
return chain === true
|
|
52
|
+
? factory.createPropertyAccessChain(
|
|
53
|
+
input,
|
|
54
|
+
factory.createToken(SyntaxKind.QuestionDotToken),
|
|
55
|
+
postfix,
|
|
56
|
+
)
|
|
57
|
+
: factory.createPropertyAccessExpression(input, postfix);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Parameter declaration with default `any` type when the caller omits one.
|
|
62
|
+
* Passing a `QuestionToken` as `init` marks the parameter optional.
|
|
63
|
+
*/
|
|
64
|
+
export const parameter = (
|
|
65
|
+
name: string | Identifier,
|
|
66
|
+
type?: TypeNode,
|
|
67
|
+
init?: Expression | Token,
|
|
68
|
+
): ParameterDeclaration => {
|
|
69
|
+
const isQuestionToken =
|
|
70
|
+
!!init &&
|
|
71
|
+
init.kind === "Token" &&
|
|
72
|
+
(init as Token).token === SyntaxKind.QuestionToken;
|
|
73
|
+
return factory.createParameterDeclaration(
|
|
74
|
+
undefined,
|
|
75
|
+
undefined,
|
|
76
|
+
name,
|
|
77
|
+
isQuestionToken
|
|
78
|
+
? factory.createToken(SyntaxKind.QuestionToken)
|
|
79
|
+
: undefined,
|
|
80
|
+
type ?? TypeFactory.keyword("any"),
|
|
81
|
+
isQuestionToken ? undefined : (init as Expression | undefined),
|
|
82
|
+
);
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type Expression, factory } from "@ttsc/factory";
|
|
2
|
+
|
|
3
|
+
import { ExpressionFactory } from "./ExpressionFactory";
|
|
4
|
+
import { IdentifierFactory } from "./IdentifierFactory";
|
|
5
|
+
|
|
6
|
+
const PASSTHROUGH_KINDS = new Set<string>([
|
|
7
|
+
"ArrowFunction",
|
|
8
|
+
"CallExpression",
|
|
9
|
+
"Identifier",
|
|
10
|
+
]);
|
|
11
|
+
|
|
12
|
+
const isNode = (value: unknown): value is Expression =>
|
|
13
|
+
typeof value === "object" &&
|
|
14
|
+
value !== null &&
|
|
15
|
+
typeof (value as { kind?: unknown }).kind === "string";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Recursive value-to-AST-literal builder. Hands back already-AST inputs
|
|
19
|
+
* unchanged (so callers can mix factory output with raw JS values inside the
|
|
20
|
+
* same object/array), and emits the appropriate literal node otherwise.
|
|
21
|
+
*/
|
|
22
|
+
export namespace LiteralFactory {
|
|
23
|
+
export const write = (input: any): Expression => {
|
|
24
|
+
if (input === null) return factory.createNull();
|
|
25
|
+
if (isNode(input) && PASSTHROUGH_KINDS.has(input.kind)) return input;
|
|
26
|
+
if (Array.isArray(input)) return writeArray(input);
|
|
27
|
+
if (typeof input === "object") return writeObject(input as object);
|
|
28
|
+
if (typeof input === "boolean")
|
|
29
|
+
return input ? factory.createTrue() : factory.createFalse();
|
|
30
|
+
if (typeof input === "number") return ExpressionFactory.number(input);
|
|
31
|
+
if (typeof input === "string") return factory.createStringLiteral(input);
|
|
32
|
+
if (typeof input === "bigint")
|
|
33
|
+
return factory.createStringLiteral(input.toString());
|
|
34
|
+
if (typeof input === "function")
|
|
35
|
+
return factory.createIdentifier("undefined");
|
|
36
|
+
throw new TypeError("LiteralFactory.write: unsupported input type.");
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const writeObject = (obj: object): Expression =>
|
|
40
|
+
factory.createObjectLiteralExpression(
|
|
41
|
+
Object.entries(obj)
|
|
42
|
+
.filter(([, value]) => value !== undefined)
|
|
43
|
+
.map(([key, value]) =>
|
|
44
|
+
factory.createPropertyAssignment(
|
|
45
|
+
IdentifierFactory.identifier(key),
|
|
46
|
+
write(value),
|
|
47
|
+
),
|
|
48
|
+
),
|
|
49
|
+
true,
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
const writeArray = (array: readonly any[]): Expression =>
|
|
53
|
+
factory.createArrayLiteralExpression(array.map(write), true);
|
|
54
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type Expression,
|
|
3
|
+
NodeFlags,
|
|
4
|
+
type TypeNode,
|
|
5
|
+
type VariableStatement,
|
|
6
|
+
factory,
|
|
7
|
+
} from "@ttsc/factory";
|
|
8
|
+
|
|
9
|
+
import { TypeFactory } from "./TypeFactory";
|
|
10
|
+
|
|
11
|
+
/** Variable-statement helpers. `constant` emits `const`, `mut` emits `let`. */
|
|
12
|
+
export namespace StatementFactory {
|
|
13
|
+
export const mut = (props: {
|
|
14
|
+
name: string;
|
|
15
|
+
type?: TypeNode | undefined;
|
|
16
|
+
initializer?: Expression | undefined;
|
|
17
|
+
}): VariableStatement =>
|
|
18
|
+
factory.createVariableStatement(
|
|
19
|
+
undefined,
|
|
20
|
+
factory.createVariableDeclarationList(
|
|
21
|
+
[
|
|
22
|
+
factory.createVariableDeclaration(
|
|
23
|
+
props.name,
|
|
24
|
+
undefined,
|
|
25
|
+
props.type !== undefined
|
|
26
|
+
? props.type
|
|
27
|
+
: props.initializer === undefined
|
|
28
|
+
? TypeFactory.keyword("any")
|
|
29
|
+
: undefined,
|
|
30
|
+
props.initializer,
|
|
31
|
+
),
|
|
32
|
+
],
|
|
33
|
+
NodeFlags.Let,
|
|
34
|
+
),
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
export const constant = (props: {
|
|
38
|
+
name: string;
|
|
39
|
+
type?: TypeNode | undefined;
|
|
40
|
+
value?: Expression | undefined;
|
|
41
|
+
}): VariableStatement =>
|
|
42
|
+
factory.createVariableStatement(
|
|
43
|
+
undefined,
|
|
44
|
+
factory.createVariableDeclarationList(
|
|
45
|
+
[
|
|
46
|
+
factory.createVariableDeclaration(
|
|
47
|
+
props.name,
|
|
48
|
+
undefined,
|
|
49
|
+
props.type,
|
|
50
|
+
props.value,
|
|
51
|
+
),
|
|
52
|
+
],
|
|
53
|
+
NodeFlags.Const,
|
|
54
|
+
),
|
|
55
|
+
);
|
|
56
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type KeywordTypeNode, SyntaxKind, factory } from "@ttsc/factory";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Higher-level type-keyword factory.
|
|
5
|
+
*
|
|
6
|
+
* Wraps {@link factory.createKeywordTypeNode} with a name-based interface so
|
|
7
|
+
* generator code reads as `TypeFactory.keyword("any")` instead of selecting the
|
|
8
|
+
* `SyntaxKind.AnyKeyword` token by hand.
|
|
9
|
+
*/
|
|
10
|
+
export namespace TypeFactory {
|
|
11
|
+
const KEYWORDS = {
|
|
12
|
+
void: SyntaxKind.VoidKeyword,
|
|
13
|
+
any: SyntaxKind.AnyKeyword,
|
|
14
|
+
unknown: SyntaxKind.UnknownKeyword,
|
|
15
|
+
boolean: SyntaxKind.BooleanKeyword,
|
|
16
|
+
number: SyntaxKind.NumberKeyword,
|
|
17
|
+
bigint: SyntaxKind.BigIntKeyword,
|
|
18
|
+
string: SyntaxKind.StringKeyword,
|
|
19
|
+
never: SyntaxKind.NeverKeyword,
|
|
20
|
+
undefined: SyntaxKind.UndefinedKeyword,
|
|
21
|
+
} as const;
|
|
22
|
+
|
|
23
|
+
export type Keyword = keyof typeof KEYWORDS;
|
|
24
|
+
|
|
25
|
+
export const keyword = (type: Keyword): KeywordTypeNode =>
|
|
26
|
+
factory.createKeywordTypeNode(KEYWORDS[type]);
|
|
27
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SyntaxKind, factory } from "@ttsc/factory";
|
|
2
2
|
import * as typiaUtils from "@typia/utils";
|
|
3
|
+
|
|
3
4
|
import ts from "../internal/ts";
|
|
4
5
|
|
|
5
6
|
const { NamingConvention } =
|
|
@@ -19,42 +20,40 @@ export namespace TypeLiteralFactory {
|
|
|
19
20
|
: Array.isArray(value)
|
|
20
21
|
? generateTuple(value)
|
|
21
22
|
: generateObject(value)
|
|
22
|
-
:
|
|
23
|
+
: factory.createKeywordTypeNode(SyntaxKind.AnyKeyword);
|
|
23
24
|
|
|
24
25
|
const generatestring = (str: string) =>
|
|
25
|
-
|
|
26
|
-
TypeScriptFactory.createStringLiteral(str),
|
|
27
|
-
);
|
|
26
|
+
factory.createLiteralTypeNode(factory.createStringLiteral(str));
|
|
28
27
|
|
|
29
28
|
const generateNumber = (num: number) =>
|
|
30
|
-
|
|
29
|
+
factory.createLiteralTypeNode(
|
|
31
30
|
num < 0
|
|
32
|
-
?
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
? factory.createPrefixUnaryExpression(
|
|
32
|
+
SyntaxKind.MinusToken,
|
|
33
|
+
factory.createNumericLiteral(-num),
|
|
35
34
|
)
|
|
36
|
-
:
|
|
35
|
+
: factory.createNumericLiteral(num),
|
|
37
36
|
);
|
|
38
37
|
|
|
39
38
|
const generateBoolean = (bool: boolean) =>
|
|
40
|
-
|
|
41
|
-
bool ?
|
|
39
|
+
factory.createLiteralTypeNode(
|
|
40
|
+
bool ? factory.createTrue() : factory.createFalse(),
|
|
42
41
|
);
|
|
43
42
|
|
|
44
43
|
const generateNull = () =>
|
|
45
|
-
|
|
44
|
+
factory.createLiteralTypeNode(factory.createNull());
|
|
46
45
|
|
|
47
46
|
const generateTuple = (items: any[]) =>
|
|
48
|
-
|
|
47
|
+
factory.createTupleTypeNode(items.map(generate));
|
|
49
48
|
|
|
50
49
|
const generateObject = (obj: object) =>
|
|
51
|
-
|
|
50
|
+
factory.createTypeLiteralNode(
|
|
52
51
|
Object.entries(obj).map(([key, value]) =>
|
|
53
|
-
|
|
52
|
+
factory.createPropertySignature(
|
|
54
53
|
undefined,
|
|
55
54
|
NamingConvention.variable(key)
|
|
56
|
-
?
|
|
57
|
-
:
|
|
55
|
+
? factory.createIdentifier(key)
|
|
56
|
+
: factory.createStringLiteral(key),
|
|
58
57
|
undefined,
|
|
59
58
|
generate(value),
|
|
60
59
|
),
|
package/src/internal/ts.ts
CHANGED
|
@@ -1,94 +1,75 @@
|
|
|
1
|
-
// Compatibility shim that replaces `import ts from "
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
// Every alias is intentionally `Node`; the migrate package treats AST nodes as
|
|
8
|
-
// opaque tokens it composes and prints — it never inspects them with
|
|
9
|
-
// TypeScript-Compiler-API guards that would need the original brands.
|
|
10
|
-
|
|
1
|
+
// Compatibility shim that replaces `import ts from "typescript"`. AST
|
|
2
|
+
// construction now goes through `@ttsc/factory`'s `factory`, `SyntaxKind`, and
|
|
3
|
+
// `NodeFlags`, imported directly where needed; the value side here exposes only
|
|
4
|
+
// the `isUnionTypeNode` guard the migrate generators still call. The type
|
|
5
|
+
// aliases (`ts.Expression`, `ts.ParameterDeclaration`, …) map to the matching
|
|
6
|
+
// `@ttsc/factory` node types so existing annotations keep their precise shapes.
|
|
11
7
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
type Block,
|
|
9
|
+
type CallExpression,
|
|
10
|
+
type Decorator,
|
|
11
|
+
type Expression,
|
|
12
|
+
type FunctionDeclaration,
|
|
13
|
+
type Identifier,
|
|
14
|
+
type KeywordTypeNode,
|
|
15
|
+
type MethodDeclaration,
|
|
16
|
+
type ModuleDeclaration,
|
|
15
17
|
type Node,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
18
|
+
type ParameterDeclaration,
|
|
19
|
+
type Statement,
|
|
20
|
+
type TypeAliasDeclaration,
|
|
21
|
+
type TypeNode,
|
|
22
|
+
type TypeReferenceNode,
|
|
23
|
+
type UnionTypeNode,
|
|
24
|
+
type VariableStatement,
|
|
25
|
+
} from "@ttsc/factory";
|
|
25
26
|
|
|
26
27
|
interface TsValue {
|
|
27
|
-
|
|
28
|
-
NodeFlags: typeof NodeFlags;
|
|
29
|
-
SyntaxKind: typeof SyntaxKind;
|
|
30
|
-
addSyntheticLeadingComment(
|
|
31
|
-
node: Node,
|
|
32
|
-
kind: number,
|
|
33
|
-
text: string,
|
|
34
|
-
hasTrailingNewLine?: boolean,
|
|
35
|
-
): Node;
|
|
36
|
-
isUnionTypeNode(node: Node | undefined): node is Node;
|
|
37
|
-
isTypeReferenceNode(node: Node | undefined): node is Node;
|
|
38
|
-
isIdentifier(node: Node | undefined): node is Node;
|
|
28
|
+
isUnionTypeNode(node: Node | undefined): node is UnionTypeNode;
|
|
39
29
|
}
|
|
40
30
|
|
|
41
31
|
const ts: TsValue = {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
SyntaxKind,
|
|
45
|
-
// Pushes a synthetic leading comment onto the node's emit metadata, matching
|
|
46
|
-
// the surface of the TypeScript-Compiler-API helper of the same name. The
|
|
47
|
-
// @nestia/factory printer reads `emitNode.leadingComments` and emits them
|
|
48
|
-
// before the node body.
|
|
49
|
-
addSyntheticLeadingComment: (
|
|
50
|
-
node: Node,
|
|
51
|
-
kind: number,
|
|
52
|
-
text: string,
|
|
53
|
-
hasTrailingNewLine?: boolean,
|
|
54
|
-
): Node => {
|
|
55
|
-
const mutable = node as Node & { emitNode?: MutableEmitNode };
|
|
56
|
-
const emitNode = (mutable.emitNode ??= {});
|
|
57
|
-
(emitNode.leadingComments ??= []).push({
|
|
58
|
-
kind,
|
|
59
|
-
text,
|
|
60
|
-
hasTrailingNewLine,
|
|
61
|
-
});
|
|
62
|
-
return node;
|
|
63
|
-
},
|
|
64
|
-
isUnionTypeNode: (node: Node | undefined): node is Node =>
|
|
65
|
-
!!node && node.kind === SyntaxKind.UnionType,
|
|
66
|
-
isTypeReferenceNode: (node: Node | undefined): node is Node =>
|
|
67
|
-
!!node && node.kind === SyntaxKind.TypeReference,
|
|
68
|
-
isIdentifier: (node: Node | undefined): node is Node =>
|
|
69
|
-
!!node && node.kind === SyntaxKind.Identifier,
|
|
32
|
+
isUnionTypeNode: (node: Node | undefined): node is UnionTypeNode =>
|
|
33
|
+
!!node && node.kind === "UnionTypeNode",
|
|
70
34
|
};
|
|
71
35
|
|
|
36
|
+
type _Block = Block;
|
|
37
|
+
type _CallExpression = CallExpression;
|
|
38
|
+
type _Decorator = Decorator;
|
|
39
|
+
type _Expression = Expression;
|
|
40
|
+
type _FunctionDeclaration = FunctionDeclaration;
|
|
41
|
+
type _Identifier = Identifier;
|
|
42
|
+
type _KeywordTypeNode = KeywordTypeNode;
|
|
43
|
+
type _MethodDeclaration = MethodDeclaration;
|
|
44
|
+
type _ModuleDeclaration = ModuleDeclaration;
|
|
72
45
|
type _Node = Node;
|
|
46
|
+
type _ParameterDeclaration = ParameterDeclaration;
|
|
47
|
+
type _Statement = Statement;
|
|
48
|
+
type _TypeAliasDeclaration = TypeAliasDeclaration;
|
|
49
|
+
type _TypeNode = TypeNode;
|
|
50
|
+
type _TypeReferenceNode = TypeReferenceNode;
|
|
51
|
+
type _UnionTypeNode = UnionTypeNode;
|
|
52
|
+
type _VariableStatement = VariableStatement;
|
|
73
53
|
|
|
74
54
|
declare namespace ts {
|
|
75
55
|
export type Node = _Node;
|
|
76
|
-
export type
|
|
77
|
-
export type
|
|
78
|
-
export type
|
|
79
|
-
export type
|
|
80
|
-
export type
|
|
81
|
-
export type
|
|
82
|
-
export type
|
|
83
|
-
export type
|
|
84
|
-
export type
|
|
85
|
-
export type
|
|
86
|
-
export type
|
|
87
|
-
export type
|
|
88
|
-
export type
|
|
89
|
-
export type
|
|
90
|
-
export type
|
|
91
|
-
export type
|
|
56
|
+
export type Block = _Block;
|
|
57
|
+
export type CallExpression = _CallExpression;
|
|
58
|
+
export type ConciseBody = _Block | _Expression;
|
|
59
|
+
export type Decorator = _Decorator;
|
|
60
|
+
export type Expression = _Expression;
|
|
61
|
+
export type FunctionDeclaration = _FunctionDeclaration;
|
|
62
|
+
export type Identifier = _Identifier;
|
|
63
|
+
export type KeywordTypeNode = _KeywordTypeNode;
|
|
64
|
+
export type MethodDeclaration = _MethodDeclaration;
|
|
65
|
+
export type ModuleDeclaration = _ModuleDeclaration;
|
|
66
|
+
export type ParameterDeclaration = _ParameterDeclaration;
|
|
67
|
+
export type Statement = _Statement;
|
|
68
|
+
export type TypeAliasDeclaration = _TypeAliasDeclaration;
|
|
69
|
+
export type TypeNode = _TypeNode;
|
|
70
|
+
export type TypeReferenceNode = _TypeReferenceNode;
|
|
71
|
+
export type UnionTypeNode = _UnionTypeNode;
|
|
72
|
+
export type VariableStatement = _VariableStatement;
|
|
92
73
|
}
|
|
93
74
|
|
|
94
75
|
export default ts;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { factory } from "@ttsc/factory";
|
|
2
2
|
import { IHttpMigrateRoute, OpenApi } from "@typia/interface";
|
|
3
|
-
import ts from "../internal/ts";
|
|
4
3
|
|
|
4
|
+
import ts from "../internal/ts";
|
|
5
5
|
import { INestiaMigrateConfig } from "../structures/INestiaMigrateConfig";
|
|
6
6
|
import { FilePrinter } from "../utils/FilePrinter";
|
|
7
7
|
import { NestiaMigrateApiFunctionProgrammer } from "./NestiaMigrateApiFunctionProgrammer";
|
|
@@ -42,14 +42,11 @@ export namespace NestiaMigrateApiFileProgrammer {
|
|
|
42
42
|
(ref) => `../${"../".repeat(props.namespace.length)}structures/${ref}`,
|
|
43
43
|
),
|
|
44
44
|
...[...props.children].map((child) =>
|
|
45
|
-
|
|
45
|
+
factory.createExportDeclaration(
|
|
46
46
|
undefined,
|
|
47
47
|
false,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
),
|
|
51
|
-
TypeScriptFactory.createStringLiteral(`./${child}/index`),
|
|
52
|
-
undefined,
|
|
48
|
+
factory.createNamespaceExport(factory.createIdentifier(child)),
|
|
49
|
+
factory.createStringLiteral(`./${child}/index`),
|
|
53
50
|
),
|
|
54
51
|
),
|
|
55
52
|
...statements,
|