@keshavsoft/kschema-api-gen-actions 1.14.3 → 1.16.2
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/README.md +4 -1
- package/bin/cli.js +1 -1
- package/bin/{v14/tasks/actions/GetMethods/ShowAll → v15/tasks/actions/GetMethods/Distinct}/template/controller.js +7 -2
- package/bin/v15/tasks/actions/GetMethods/Distinct/template/service.js +12 -0
- package/bin/{v13 → v15}/tasks/actions/distinct.js +5 -6
- package/bin/{v14 → v15}/tasks/actions/showAll.js +10 -3
- package/bin/v16/config/actions.json +35 -0
- package/bin/v16/config/actionsV2.json +23 -0
- package/bin/v16/core/showUsage.js +49 -0
- package/bin/{v13 → v16}/start.js +1 -1
- package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/template/controller.js +7 -2
- package/bin/v16/tasks/actions/GetMethods/Distinct/V1/template/service.js +12 -0
- package/bin/v16/tasks/actions/GetMethods/Distinct/V2/template/controller.js +26 -0
- package/bin/v16/tasks/actions/GetMethods/Distinct/V2/template/service.js +12 -0
- package/bin/v16/tasks/actions/GetMethods/ShowAll/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +8 -0
- package/bin/v16/tasks/actions/GetMethods/ShowAll/steps/UpdateRoutesJs/updateImports/index.js +45 -0
- package/bin/v16/tasks/actions/GetMethods/ShowAll/steps/UpdateRoutesJs/updateUse/buildUseLine.js +9 -0
- package/bin/v16/tasks/actions/GetMethods/ShowAll/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +8 -0
- package/bin/v16/tasks/actions/GetMethods/ShowAll/steps/UpdateRoutesJs/updateUse/index.js +46 -0
- package/bin/v16/tasks/actions/GetMethods/ShowAll/steps/resolveFolderName.js +20 -0
- package/bin/v16/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/common/readFile.js +8 -0
- package/bin/v16/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/common/writeFile.js +10 -0
- package/bin/v16/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/updateImports/buildImport.js +9 -0
- package/bin/v16/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +10 -0
- package/bin/v16/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +10 -0
- package/bin/v16/tasks/actions/PostMethods/Insert/steps/announce.js +9 -0
- package/bin/v16/tasks/actions/PostMethods/Insert/steps/createFolder.js +7 -0
- package/bin/v16/tasks/actions/PostMethods/Insert/steps/createHttpFile.js +12 -0
- package/bin/v16/tasks/actions/PostMethods/Insert/steps/decideTemplate.js +3 -0
- package/bin/v16/tasks/actions/PostMethods/Insert/steps/locateDestination.js +7 -0
- package/bin/v16/tasks/actions/PostMethods/Insert/steps/locateSource.js +13 -0
- package/bin/v16/tasks/actions/PostMethods/Insert/steps/updateAppJs.js +7 -0
- package/bin/v16/tasks/actions/PostMethods/Insert/steps/updateEndPointsFile.js +30 -0
- package/bin/v16/tasks/actions/PostMethods/Insert/steps/updateEndPointsJs.js +16 -0
- package/bin/v16/tasks/actions/PostMethods/Insert/template/errors.js +11 -0
- package/bin/{v14 → v16}/tasks/actions/distinct.js +11 -15
- package/bin/{v13 → v16}/tasks/actions/showAll.js +10 -3
- package/package.json +2 -2
- package/bin/v13/core/showUsage.js +0 -50
- package/bin/v13/tasks/actions/GetMethods/Distinct/template/service.js +0 -9
- package/bin/v14/tasks/actions/GetMethods/Distinct/template/service.js +0 -9
- /package/bin/{v13 → v15}/commands/loadCommand.js +0 -0
- /package/bin/{v14 → v15}/config/actions.json +0 -0
- /package/bin/{v14 → v15}/config/actionsV1.json +0 -0
- /package/bin/{v13 → v15}/core/createFolder.js +0 -0
- /package/bin/{v13 → v15}/core/parseInput.js +0 -0
- /package/bin/{v13 → v15}/core/resolveCommand.js +0 -0
- /package/bin/{v14 → v15}/core/showUsage.js +0 -0
- /package/bin/{v14 → v15}/start.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/UpdateRoutesJs/common/readFile.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/UpdateRoutesJs/common/writeFile.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/UpdateRoutesJs/updateImports/buildImport.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/UpdateRoutesJs/updateImports/index.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/UpdateRoutesJs/updateUse/buildUseLine.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/UpdateRoutesJs/updateUse/index.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/announce.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/createFolder.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/createHttpFile.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/decideTemplate.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/locateDestination.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/locateSource.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/resolveFolderName.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/updateAppJs.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/updateEndPointsFile.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/updateEndPointsJs.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/template/errors.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/UpdateRoutesJs/common/readFile.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/UpdateRoutesJs/common/writeFile.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/UpdateRoutesJs/updateImports/buildImport.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/UpdateRoutesJs/updateImports/index.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/UpdateRoutesJs/updateUse/buildUseLine.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/UpdateRoutesJs/updateUse/index.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/announce.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/createFolder.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/createHttpFile.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/decideTemplate.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/locateDestination.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/locateSource.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/resolveFolderName.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/updateAppJs.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/updateEndPointsFile.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/updateEndPointsJs.js +0 -0
- /package/bin/{v13/tasks/actions/GetMethods/Distinct → v15/tasks/actions/GetMethods/ShowAll}/template/controller.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/template/errors.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/template/service.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/common/readFile.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/common/writeFile.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/updateImports/buildImport.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/updateImports/index.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/updateUse/buildUseLine.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/updateUse/index.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/announce.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/createFolder.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/createHttpFile.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/decideTemplate.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/locateDestination.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/locateSource.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/resolveFolderName.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/updateAppJs.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/updateEndPointsFile.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/updateEndPointsJs.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/template/controller.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/template/errors.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/template/middleware.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/template/service.js +0 -0
- /package/bin/{v13 → v15}/tasks/actions/insert.js +0 -0
- /package/bin/{v13 → v15}/tasks/core/createFolder.js +0 -0
- /package/bin/{v13 → v15}/tasks/core/parseInput.js +0 -0
- /package/bin/{v13 → v15}/tasks/core/resolveCommand.js +0 -0
- /package/bin/{v13 → v15}/tasks/core/showUsage.js +0 -0
- /package/bin/{v14 → v16}/commands/loadCommand.js +0 -0
- /package/bin/{v13/config/actions.json → v16/config/actionsV1.json} +0 -0
- /package/bin/{v14 → v16}/core/createFolder.js +0 -0
- /package/bin/{v14 → v16}/core/parseInput.js +0 -0
- /package/bin/{v14 → v16}/core/resolveCommand.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/UpdateRoutesJs/common/readFile.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/UpdateRoutesJs/common/writeFile.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/UpdateRoutesJs/updateImports/buildImport.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/UpdateRoutesJs/updateImports/index.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/UpdateRoutesJs/updateUse/buildUseLine.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/UpdateRoutesJs/updateUse/index.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/announce.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/createFolder.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/createHttpFile.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/decideTemplate.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/locateDestination.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/locateSource.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/resolveFolderName.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/updateAppJs.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/updateEndPointsFile.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/steps/updateEndPointsJs.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/Distinct → v16/tasks/actions/GetMethods/Distinct/V1}/template/errors.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/UpdateRoutesJs/common/readFile.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/UpdateRoutesJs/common/writeFile.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/UpdateRoutesJs/updateImports/buildImport.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/UpdateRoutesJs/updateImports/index.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/UpdateRoutesJs/updateUse/buildUseLine.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/UpdateRoutesJs/updateUse/index.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/announce.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/createFolder.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/createHttpFile.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/decideTemplate.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/locateDestination.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/locateSource.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/resolveFolderName.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/updateAppJs.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/updateEndPointsFile.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/steps/updateEndPointsJs.js +0 -0
- /package/bin/{v14/tasks/actions/GetMethods/ShowAll → v16/tasks/actions/GetMethods/Distinct/V2}/template/errors.js +0 -0
- /package/bin/{v14/tasks/actions/PostMethods/Insert → v16/tasks/actions/GetMethods/ShowAll}/steps/UpdateRoutesJs/common/readFile.js +0 -0
- /package/bin/{v14/tasks/actions/PostMethods/Insert → v16/tasks/actions/GetMethods/ShowAll}/steps/UpdateRoutesJs/common/writeFile.js +0 -0
- /package/bin/{v14/tasks/actions/PostMethods/Insert → v16/tasks/actions/GetMethods/ShowAll}/steps/UpdateRoutesJs/updateImports/buildImport.js +0 -0
- /package/bin/{v14/tasks/actions/PostMethods/Insert → v16/tasks/actions/GetMethods/ShowAll}/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +0 -0
- /package/bin/{v14/tasks/actions/PostMethods/Insert → v16/tasks/actions/GetMethods/ShowAll}/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +0 -0
- /package/bin/{v14/tasks/actions/PostMethods/Insert → v16/tasks/actions/GetMethods/ShowAll}/steps/announce.js +0 -0
- /package/bin/{v14/tasks/actions/PostMethods/Insert → v16/tasks/actions/GetMethods/ShowAll}/steps/createFolder.js +0 -0
- /package/bin/{v14/tasks/actions/PostMethods/Insert → v16/tasks/actions/GetMethods/ShowAll}/steps/createHttpFile.js +0 -0
- /package/bin/{v14/tasks/actions/PostMethods/Insert → v16/tasks/actions/GetMethods/ShowAll}/steps/decideTemplate.js +0 -0
- /package/bin/{v14/tasks/actions/PostMethods/Insert → v16/tasks/actions/GetMethods/ShowAll}/steps/locateDestination.js +0 -0
- /package/bin/{v14/tasks/actions/PostMethods/Insert → v16/tasks/actions/GetMethods/ShowAll}/steps/locateSource.js +0 -0
- /package/bin/{v14/tasks/actions/PostMethods/Insert → v16/tasks/actions/GetMethods/ShowAll}/steps/updateAppJs.js +0 -0
- /package/bin/{v14/tasks/actions/PostMethods/Insert → v16/tasks/actions/GetMethods/ShowAll}/steps/updateEndPointsFile.js +0 -0
- /package/bin/{v14/tasks/actions/PostMethods/Insert → v16/tasks/actions/GetMethods/ShowAll}/steps/updateEndPointsJs.js +0 -0
- /package/bin/{v13 → v16}/tasks/actions/GetMethods/ShowAll/template/controller.js +0 -0
- /package/bin/{v14/tasks/actions/PostMethods/Insert → v16/tasks/actions/GetMethods/ShowAll}/template/errors.js +0 -0
- /package/bin/{v14 → v16}/tasks/actions/GetMethods/ShowAll/template/service.js +0 -0
- /package/bin/{v14 → v16}/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +0 -0
- /package/bin/{v14 → v16}/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/updateImports/index.js +0 -0
- /package/bin/{v14 → v16}/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/updateUse/buildUseLine.js +0 -0
- /package/bin/{v14 → v16}/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +0 -0
- /package/bin/{v14 → v16}/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/updateUse/index.js +0 -0
- /package/bin/{v14 → v16}/tasks/actions/PostMethods/Insert/steps/resolveFolderName.js +0 -0
- /package/bin/{v14 → v16}/tasks/actions/PostMethods/Insert/template/controller.js +0 -0
- /package/bin/{v14 → v16}/tasks/actions/PostMethods/Insert/template/middleware.js +0 -0
- /package/bin/{v14 → v16}/tasks/actions/PostMethods/Insert/template/service.js +0 -0
- /package/bin/{v14 → v16}/tasks/actions/insert.js +0 -0
- /package/bin/{v14 → v16}/tasks/core/createFolder.js +0 -0
- /package/bin/{v14 → v16}/tasks/core/parseInput.js +0 -0
- /package/bin/{v14 → v16}/tasks/core/resolveCommand.js +0 -0
- /package/bin/{v14 → v16}/tasks/core/showUsage.js +0 -0
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import path from "path";
|
|
2
|
-
import
|
|
2
|
+
import endPointsJs from "@keshavsoft/kschema-api-check";
|
|
3
3
|
|
|
4
|
-
import { locateSource } from "./GetMethods/
|
|
5
|
-
import { locateDestination } from "./GetMethods/
|
|
4
|
+
import { locateSource } from "./GetMethods/Distinct/V2/steps/locateSource.js";
|
|
5
|
+
import { locateDestination } from "./GetMethods/Distinct/V2/steps/locateDestination.js";
|
|
6
6
|
import { createFolder } from "../core/createFolder.js";
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
import createHttpFile from "./GetMethods/ShowAll/steps/createHttpFile.js";
|
|
8
|
+
import createHttpFile from "./GetMethods/Distinct/V2/steps/createHttpFile.js";
|
|
10
9
|
|
|
11
|
-
import { announce } from "./GetMethods/
|
|
10
|
+
import { announce } from "./GetMethods/Distinct/V2/steps/announce.js";
|
|
12
11
|
|
|
13
|
-
import resolveFolderName from "./GetMethods/
|
|
12
|
+
import resolveFolderName from "./GetMethods/Distinct/V2/steps/resolveFolderName.js";
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
const startFunc = async ({ cmd = "", toPath, isAnnounce = true, checkBeforeCreate = true }) => {
|
|
16
15
|
const localToPath = toPath;
|
|
17
16
|
|
|
18
17
|
const resolvedFolderName = resolveFolderName({
|
|
@@ -37,16 +36,11 @@ export default ({ cmd = "", toPath, isAnnounce = true, checkBeforeCreate = true
|
|
|
37
36
|
});
|
|
38
37
|
|
|
39
38
|
if (createFolderResponse.KTF) {
|
|
40
|
-
endPointsJs({
|
|
39
|
+
await endPointsJs({
|
|
41
40
|
toPath: localToPath,
|
|
42
41
|
action: resolvedFolderName
|
|
43
42
|
});
|
|
44
43
|
|
|
45
|
-
// updateEndPointsJs({
|
|
46
|
-
// appJsPath: `${localToPath}/end-points.js`,
|
|
47
|
-
// endpoint: resolvedFolderName
|
|
48
|
-
// });
|
|
49
|
-
|
|
50
44
|
createHttpFile({
|
|
51
45
|
inTargetPath: path.join(localToPath, resolvedFolderName),
|
|
52
46
|
toPath: process.cwd()
|
|
@@ -56,4 +50,6 @@ export default ({ cmd = "", toPath, isAnnounce = true, checkBeforeCreate = true
|
|
|
56
50
|
if (isAnnounce) announce({ inResolvedFolderName: resolvedFolderName });
|
|
57
51
|
|
|
58
52
|
return resolveFolderName;
|
|
59
|
-
};
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export default startFunc
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import path from "path";
|
|
2
|
-
import
|
|
2
|
+
import endPointsJs from "@keshavsoft/kschema-api-check";
|
|
3
3
|
|
|
4
4
|
import { locateSource } from "./GetMethods/ShowAll/steps/locateSource.js";
|
|
5
5
|
import { locateDestination } from "./GetMethods/ShowAll/steps/locateDestination.js";
|
|
@@ -12,7 +12,7 @@ import { announce } from "./GetMethods/ShowAll/steps/announce.js";
|
|
|
12
12
|
|
|
13
13
|
import resolveFolderName from "./GetMethods/ShowAll/steps/resolveFolderName.js";
|
|
14
14
|
|
|
15
|
-
export default ({ cmd = "", toPath, isAnnounce = true, checkBeforeCreate = true }) => {
|
|
15
|
+
export default async ({ cmd = "", toPath, isAnnounce = true, checkBeforeCreate = true }) => {
|
|
16
16
|
const localToPath = toPath;
|
|
17
17
|
|
|
18
18
|
const resolvedFolderName = resolveFolderName({
|
|
@@ -37,11 +37,18 @@ export default ({ cmd = "", toPath, isAnnounce = true, checkBeforeCreate = true
|
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
if (createFolderResponse.KTF) {
|
|
40
|
-
endPointsJs(
|
|
40
|
+
const loadEndPointsJs = await endPointsJs();
|
|
41
|
+
|
|
42
|
+
await loadEndPointsJs({
|
|
41
43
|
toPath: localToPath,
|
|
42
44
|
action: resolvedFolderName
|
|
43
45
|
});
|
|
44
46
|
|
|
47
|
+
// await endPointsJs({
|
|
48
|
+
// toPath: localToPath,
|
|
49
|
+
// action: resolvedFolderName
|
|
50
|
+
// });
|
|
51
|
+
|
|
45
52
|
// updateEndPointsJs({
|
|
46
53
|
// appJsPath: `${localToPath}/end-points.js`,
|
|
47
54
|
// endpoint: resolvedFolderName
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keshavsoft/kschema-api-gen-actions",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.2",
|
|
4
4
|
"description": "CLI to scaffold projects using templates",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@keshavsoft/kschema": "^1.17.8",
|
|
14
|
-
"@keshavsoft/kschema-api-check": "^1.
|
|
14
|
+
"@keshavsoft/kschema-api-check": "^1.12.2"
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"exports": {
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
KSchema CLI – Entry Flow
|
|
3
|
-
|
|
4
|
-
1. Read user input from terminal (parseInput)
|
|
5
|
-
2. If no command → show usage (first-time user safety)
|
|
6
|
-
3. If help flags → show usage (quick guidance)
|
|
7
|
-
4. Resolve command dynamically (no hardcoding logic)
|
|
8
|
-
5. If command not found → inform + guide back to usage
|
|
9
|
-
6. Execute command with parsed input
|
|
10
|
-
|
|
11
|
-
Goal:
|
|
12
|
-
- Zero confusion for user
|
|
13
|
-
- Single source of truth (showUsage)
|
|
14
|
-
- Easy to extend (just add commands, no core changes)
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
export default function showUsage(version) {
|
|
18
|
-
const g = "\x1b[32m";
|
|
19
|
-
const y = "\x1b[33m";
|
|
20
|
-
const c = "\x1b[36m";
|
|
21
|
-
const gray = "\x1b[90m";
|
|
22
|
-
const r = "\x1b[0m";
|
|
23
|
-
|
|
24
|
-
console.log(`
|
|
25
|
-
${c}🚀 KSchema Api Generator v${version}${r}
|
|
26
|
-
|
|
27
|
-
${y}Usage:${r}
|
|
28
|
-
${g}npx @keshavsoft/kschema-api-gen${r} <command> [options]
|
|
29
|
-
|
|
30
|
-
${y}Commands:${r}
|
|
31
|
-
${g}StartEndPoint${r} Initialize a new folder and files
|
|
32
|
-
${g}AddSubRoute${r} Initialize a new folder and files
|
|
33
|
-
${g}AddTableName${r} Initialize a new folder and files for TableName
|
|
34
|
-
${g}ShowAll${r} Initialize a new folder and files for action
|
|
35
|
-
|
|
36
|
-
${g}CreateApi${r} Creates new end point and hooks to app.js
|
|
37
|
-
${g}InsertApi${r} Creates new InsertApi end point and hooks to app.js
|
|
38
|
-
|
|
39
|
-
${y}Examples:${r}
|
|
40
|
-
${gray}npx @keshavsoft/kschema-api-gen StartEndPoint${r}
|
|
41
|
-
${gray}npx @keshavsoft/kschema-api-gen AddSubRoute${r}
|
|
42
|
-
${gray}npx @keshavsoft/kschema-api-gen AddTableName${r}
|
|
43
|
-
${gray}npx @keshavsoft/kschema-api-gen ShowAll${r}
|
|
44
|
-
${gray}npx @keshavsoft/kschema-api-gen CreateApi Api/V1/journals/ShowAll${r}
|
|
45
|
-
${gray}npx @keshavsoft/kschema-api-gen InsertApi Api/V1/journals/Insert${r}
|
|
46
|
-
|
|
47
|
-
${y}Tip:${r}
|
|
48
|
-
${gray}npm i -g @keshavsoft/kschema-api-gen${r}
|
|
49
|
-
`);
|
|
50
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/UpdateRoutesJs/common/readFile.js
RENAMED
|
File without changes
|
/package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/UpdateRoutesJs/common/writeFile.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/bin/{v13 → v15}/tasks/actions/GetMethods/Distinct/steps/UpdateRoutesJs/updateUse/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/UpdateRoutesJs/common/readFile.js
RENAMED
|
File without changes
|
/package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/UpdateRoutesJs/common/writeFile.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/bin/{v13 → v15}/tasks/actions/GetMethods/ShowAll/steps/UpdateRoutesJs/updateUse/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/common/readFile.js
RENAMED
|
File without changes
|
/package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/common/writeFile.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/bin/{v13 → v15}/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/updateUse/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/bin/{v14 → v16}/tasks/actions/PostMethods/Insert/steps/UpdateRoutesJs/updateUse/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|