kschema-fs-api-gen-post-actions 1.11.4 → 1.12.3
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/bin/v11/tasks/actions/InsertGenPk/steps/createActionFolder.js +31 -31
- package/bin/v11/tasks/actions/InsertGenPk/steps/generateRestIfRequested.js +44 -44
- package/bin/v11/tasks/actions/InsertGenPk/steps/showLog.js +9 -9
- package/bin/v11/tasks/actions/InsertGenPk/steps/updateEndPointsJs.js +34 -34
- package/bin/v11/tasks/actions/InsertGenPk/template/v1/rest.http +8 -8
- package/bin/v11/tasks/actions/InsertGenPk-/template/v2/rest.http +8 -8
- package/bin/v11/tasks/actions/WithMail/steps/createActionFolder.js +31 -31
- package/bin/v11/tasks/actions/WithMail/steps/generateRestIfRequested.js +43 -43
- package/bin/v11/tasks/actions/WithMail/steps/showLog.js +9 -9
- package/bin/v11/tasks/actions/WithMail/steps/updateEndPointsJs.js +34 -34
- package/bin/v11/tasks/actions/withMail.js +81 -81
- package/bin/{v10/tasks/actions/WithMail → v12/tasks/actions/Filter}/steps/createActionFolder.js +31 -31
- package/bin/v12/tasks/actions/Filter/steps/generateRestIfRequested.js +44 -0
- package/bin/{v10/tasks/actions/WithMail → v12/tasks/actions/Filter}/steps/showLog.js +9 -9
- package/bin/{v10/tasks/actions/WithMail → v12/tasks/actions/Filter}/steps/updateEndPointsJs.js +34 -34
- package/bin/v12/tasks/actions/Filter/template/v1/readUsingLowdb.js +23 -0
- package/bin/v12/tasks/actions/Filter/template/v1/rest.http +7 -0
- package/bin/v12/tasks/actions/Filter/template/v1/service.js +9 -0
- package/bin/v12/tasks/actions/InsertGenPk/steps/createActionFolder.js +31 -0
- package/bin/v12/tasks/actions/InsertGenPk/steps/generateRestIfRequested.js +44 -0
- package/bin/v12/tasks/actions/InsertGenPk/steps/showLog.js +9 -0
- package/bin/v12/tasks/actions/InsertGenPk/steps/updateEndPointsJs.js +34 -0
- package/bin/{v10/tasks/actions/WithMail-/template/v3 → v12/tasks/actions/InsertGenPk/template/v1}/insertGenPk.js +2 -2
- package/bin/v12/tasks/actions/InsertGenPk/template/v1/rest.http +8 -0
- package/bin/{v10/tasks/actions/WithMail-/template/v4 → v12/tasks/actions/InsertGenPk/template/v1}/service.js +1 -8
- package/bin/v12/tasks/actions/WithMail/steps/createActionFolder.js +31 -0
- package/bin/{v10 → v12}/tasks/actions/WithMail/steps/generateRestIfRequested.js +43 -43
- package/bin/{v10/tasks/actions/WithMail- → v12/tasks/actions/WithMail}/steps/resolveFolderName.js +1 -1
- package/bin/v12/tasks/actions/WithMail/steps/showLog.js +9 -0
- package/bin/v12/tasks/actions/WithMail/steps/updateEndPointsJs.js +34 -0
- package/bin/v12/tasks/actions/filter.js +85 -0
- package/bin/v12/tasks/actions/insertGenPk.js +85 -0
- package/bin/{v10 → v12}/tasks/actions/withMail.js +81 -81
- package/index.js +12 -1
- package/package.json +2 -2
- package/bin/v10/tasks/actions/InsertGenPk/actions.json +0 -26
- package/bin/v10/tasks/actions/InsertGenPk/template/v1/rest.http +0 -7
- package/bin/v10/tasks/actions/WithMail/template/v1/Mail/sendMailCC.js +0 -45
- package/bin/v10/tasks/actions/WithMail/template/v1/Mail/welcome.html +0 -213
- package/bin/v10/tasks/actions/WithMail/template/v1/config/getSchema.js +0 -20
- package/bin/v10/tasks/actions/WithMail/template/v1/controller.js +0 -27
- package/bin/v10/tasks/actions/WithMail/template/v1/errors.js +0 -11
- package/bin/v10/tasks/actions/WithMail/template/v1/getData.js +0 -11
- package/bin/v10/tasks/actions/WithMail/template/v1/getSchema.js +0 -11
- package/bin/v10/tasks/actions/WithMail/template/v1/helpers/pkHelper.js +0 -19
- package/bin/v10/tasks/actions/WithMail/template/v1/helpers-/buildMutate.js +0 -32
- package/bin/v10/tasks/actions/WithMail/template/v1/helpers-/buildQuery.js +0 -32
- package/bin/v10/tasks/actions/WithMail/template/v1/helpers-/file/read.js +0 -7
- package/bin/v10/tasks/actions/WithMail/template/v1/helpers-/file/write.js +0 -5
- package/bin/v10/tasks/actions/WithMail/template/v1/helpers-/pkHelper.js +0 -19
- package/bin/v10/tasks/actions/WithMail/template/v1/helpers-/validate.js +0 -27
- package/bin/v10/tasks/actions/WithMail/template/v1/helpers-/validateHelper.js +0 -27
- package/bin/v10/tasks/actions/WithMail/template/v1/helpers-/validators/default.js +0 -5
- package/bin/v10/tasks/actions/WithMail/template/v1/helpers-/validators/enum.js +0 -7
- package/bin/v10/tasks/actions/WithMail/template/v1/helpers-/validators/length.js +0 -11
- package/bin/v10/tasks/actions/WithMail/template/v1/helpers-/validators/minMax.js +0 -11
- package/bin/v10/tasks/actions/WithMail/template/v1/helpers-/validators/pattern.js +0 -8
- package/bin/v10/tasks/actions/WithMail/template/v1/helpers-/validators/required.js +0 -5
- package/bin/v10/tasks/actions/WithMail/template/v1/helpers-/validators/type.js +0 -15
- package/bin/v10/tasks/actions/WithMail/template/v1/helpers-/validators/unique.js +0 -8
- package/bin/v10/tasks/actions/WithMail/template/v1/insertBase.js +0 -9
- package/bin/v10/tasks/actions/WithMail/template/v1/insertGenPk.js +0 -31
- package/bin/v10/tasks/actions/WithMail/template/v1/middleware.js +0 -19
- package/bin/v10/tasks/actions/WithMail/template/v1/rest.http +0 -6
- package/bin/v10/tasks/actions/WithMail/template/v1/service.js +0 -16
- package/bin/v10/tasks/actions/WithMail-/actions.json +0 -26
- package/bin/v10/tasks/actions/WithMail-/steps/createHttpFile.js +0 -12
- package/bin/v10/tasks/actions/WithMail-/steps/updateEndPointsJs.js +0 -16
- package/bin/v10/tasks/actions/WithMail-/template/v1/controller.js +0 -28
- package/bin/v10/tasks/actions/WithMail-/template/v1/middleware.js +0 -19
- package/bin/v10/tasks/actions/WithMail-/template/v1/service.js +0 -44
- package/bin/v10/tasks/actions/WithMail-/template/v2/controller.js +0 -24
- package/bin/v10/tasks/actions/WithMail-/template/v2/middleware.js +0 -19
- package/bin/v10/tasks/actions/WithMail-/template/v2/rest.http +0 -7
- package/bin/v10/tasks/actions/WithMail-/template/v2/service.js +0 -18
- package/bin/v10/tasks/actions/WithMail-/template/v3/Mail/sendMailCC.js +0 -45
- package/bin/v10/tasks/actions/WithMail-/template/v3/Mail/welcome.html +0 -213
- package/bin/v10/tasks/actions/WithMail-/template/v3/errors.js +0 -11
- package/bin/v10/tasks/actions/WithMail-/template/v3/helpers/buildMutate.js +0 -32
- package/bin/v10/tasks/actions/WithMail-/template/v3/helpers/buildQuery.js +0 -32
- package/bin/v10/tasks/actions/WithMail-/template/v3/helpers/file/read.js +0 -7
- package/bin/v10/tasks/actions/WithMail-/template/v3/helpers/file/write.js +0 -5
- package/bin/v10/tasks/actions/WithMail-/template/v3/helpers/validate.js +0 -27
- package/bin/v10/tasks/actions/WithMail-/template/v3/helpers/validateHelper.js +0 -27
- package/bin/v10/tasks/actions/WithMail-/template/v3/helpers/validators/default.js +0 -5
- package/bin/v10/tasks/actions/WithMail-/template/v3/helpers/validators/enum.js +0 -7
- package/bin/v10/tasks/actions/WithMail-/template/v3/helpers/validators/length.js +0 -11
- package/bin/v10/tasks/actions/WithMail-/template/v3/helpers/validators/minMax.js +0 -11
- package/bin/v10/tasks/actions/WithMail-/template/v3/helpers/validators/pattern.js +0 -8
- package/bin/v10/tasks/actions/WithMail-/template/v3/helpers/validators/required.js +0 -5
- package/bin/v10/tasks/actions/WithMail-/template/v3/helpers/validators/type.js +0 -15
- package/bin/v10/tasks/actions/WithMail-/template/v3/helpers/validators/unique.js +0 -8
- package/bin/v10/tasks/actions/WithMail-/template/v3/middleware.js +0 -19
- package/bin/v10/tasks/actions/WithMail-/template/v3/rest.http +0 -7
- package/bin/v10/tasks/actions/WithMail-/template/v3/service.js +0 -16
- package/bin/v10/tasks/actions/WithMail-/template/v4/Mail/sendMailCC.js +0 -45
- package/bin/v10/tasks/actions/WithMail-/template/v4/Mail/welcome.html +0 -213
- package/bin/v10/tasks/actions/WithMail-/template/v4/config/getSchema.js +0 -20
- package/bin/v10/tasks/actions/WithMail-/template/v4/errors.js +0 -11
- package/bin/v10/tasks/actions/WithMail-/template/v4/getData.js +0 -11
- package/bin/v10/tasks/actions/WithMail-/template/v4/getSchema.js +0 -11
- package/bin/v10/tasks/actions/WithMail-/template/v4/helpers/pkHelper.js +0 -19
- package/bin/v10/tasks/actions/WithMail-/template/v4/helpers-/buildMutate.js +0 -32
- package/bin/v10/tasks/actions/WithMail-/template/v4/helpers-/buildQuery.js +0 -32
- package/bin/v10/tasks/actions/WithMail-/template/v4/helpers-/file/read.js +0 -7
- package/bin/v10/tasks/actions/WithMail-/template/v4/helpers-/file/write.js +0 -5
- package/bin/v10/tasks/actions/WithMail-/template/v4/helpers-/validate.js +0 -27
- package/bin/v10/tasks/actions/WithMail-/template/v4/helpers-/validateHelper.js +0 -27
- package/bin/v10/tasks/actions/WithMail-/template/v4/helpers-/validators/default.js +0 -5
- package/bin/v10/tasks/actions/WithMail-/template/v4/helpers-/validators/enum.js +0 -7
- package/bin/v10/tasks/actions/WithMail-/template/v4/helpers-/validators/length.js +0 -11
- package/bin/v10/tasks/actions/WithMail-/template/v4/helpers-/validators/minMax.js +0 -11
- package/bin/v10/tasks/actions/WithMail-/template/v4/helpers-/validators/pattern.js +0 -8
- package/bin/v10/tasks/actions/WithMail-/template/v4/helpers-/validators/required.js +0 -5
- package/bin/v10/tasks/actions/WithMail-/template/v4/helpers-/validators/type.js +0 -15
- package/bin/v10/tasks/actions/WithMail-/template/v4/helpers-/validators/unique.js +0 -8
- package/bin/v10/tasks/actions/WithMail-/template/v4/insertBase.js +0 -9
- package/bin/v10/tasks/actions/WithMail-/template/v4/insertGenPk.js +0 -31
- package/bin/v10/tasks/actions/WithMail-/template/v4/middleware.js +0 -19
- package/bin/v10/tasks/actions/insertGenPk.js +0 -63
- package/bin/v10/tasks/actions/withMail copy.js +0 -60
- /package/bin/{v10 → v12}/core/createFolder.js +0 -0
- /package/bin/{v10 → v12}/core/parseInput.js +0 -0
- /package/bin/{v10 → v12}/core/resolveCommand.js +0 -0
- /package/bin/{v10 → v12}/core/showUsage.js +0 -0
- /package/bin/{v10 → v12}/start.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/steps/UpdateRoutesJs/common/readFile.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/steps/UpdateRoutesJs/common/writeFile.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/steps/UpdateRoutesJs/updateImports/buildImport.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/steps/UpdateRoutesJs/updateImports/index.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/steps/UpdateRoutesJs/updateUse/buildUseLine.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/steps/UpdateRoutesJs/updateUse/index.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/steps/announce.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/steps/createFolder.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/steps/decideTemplate.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/steps/locateDestination.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/steps/locateSource.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/steps/resolveFolderName.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/steps/updateAppJs.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/steps/updateEndPointsFile.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/template/v1/controller.js +0 -0
- /package/bin/{v10/tasks/actions/InsertAsIs → v12/tasks/actions/Filter}/template/v1/errors.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/actions.json +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/common/readFile.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/common/writeFile.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/updateImports/buildImport.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/updateImports/index.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/updateUse/buildUseLine.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/updateUse/index.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/steps/announce.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/steps/createFolder.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/steps/decideTemplate.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/steps/locateDestination.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/steps/locateSource.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/steps/resolveFolderName.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/steps/updateAppJs.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/steps/updateEndPointsFile.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/config/getSchema.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/template/v1/controller.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/InsertAsIs}/template/v1/errors.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/getData.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/getSchema.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/helpers/buildMutate.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/helpers/buildQuery.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/helpers/file/read.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/helpers/file/write.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/helpers/pkHelper.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/helpers/validate.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/helpers/validateHelper.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/helpers/validators/default.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/helpers/validators/enum.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/helpers/validators/length.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/helpers/validators/minMax.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/helpers/validators/pattern.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/helpers/validators/required.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/helpers/validators/type.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/helpers/validators/unique.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/insertBase.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/insertGenPk.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/middleware.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/rest.http +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertAsIs/template/v1/service.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail- → v12/tasks/actions/InsertGenPk}/steps/UpdateRoutesJs/common/readFile.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail- → v12/tasks/actions/InsertGenPk}/steps/UpdateRoutesJs/common/writeFile.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail- → v12/tasks/actions/InsertGenPk}/steps/UpdateRoutesJs/updateImports/buildImport.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail- → v12/tasks/actions/InsertGenPk}/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail- → v12/tasks/actions/InsertGenPk}/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail- → v12/tasks/actions/InsertGenPk}/steps/UpdateRoutesJs/updateImports/index.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail- → v12/tasks/actions/InsertGenPk}/steps/UpdateRoutesJs/updateUse/buildUseLine.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail- → v12/tasks/actions/InsertGenPk}/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail- → v12/tasks/actions/InsertGenPk}/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail- → v12/tasks/actions/InsertGenPk}/steps/UpdateRoutesJs/updateUse/index.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail- → v12/tasks/actions/InsertGenPk}/steps/announce.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail- → v12/tasks/actions/InsertGenPk}/steps/createFolder.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail- → v12/tasks/actions/InsertGenPk}/steps/decideTemplate.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail- → v12/tasks/actions/InsertGenPk}/steps/locateDestination.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail- → v12/tasks/actions/InsertGenPk}/steps/locateSource.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail → v12/tasks/actions/InsertGenPk}/steps/resolveFolderName.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail- → v12/tasks/actions/InsertGenPk}/steps/updateAppJs.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail- → v12/tasks/actions/InsertGenPk}/steps/updateEndPointsFile.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertGenPk/template/v1/config/getSchema.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail-/template/v3 → v12/tasks/actions/InsertGenPk/template/v1}/controller.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail- → v12/tasks/actions/InsertGenPk}/template/v1/errors.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk/template/v1 → v12/tasks/actions/InsertGenPk/template/v1/helpers}/getData.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk/template/v1 → v12/tasks/actions/InsertGenPk/template/v1/helpers}/getSchema.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertGenPk/template/v1/helpers/pkHelper.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/InsertGenPk/template/v1/insertBase.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/WithMail/steps/UpdateRoutesJs/common/readFile.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/WithMail/steps/UpdateRoutesJs/common/writeFile.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateImports/buildImport.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateImports/index.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateUse/buildUseLine.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateUse/index.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/WithMail/steps/announce.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/WithMail/steps/createFolder.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/WithMail/steps/decideTemplate.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/WithMail/steps/locateDestination.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/WithMail/steps/locateSource.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/WithMail/steps/updateAppJs.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/WithMail/steps/updateEndPointsFile.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail-/template/v2 → v12/tasks/actions/WithMail/template/v1}/Mail/sendMailCC.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail-/template/v2 → v12/tasks/actions/WithMail/template/v1}/Mail/welcome.html +0 -0
- /package/bin/{v10/tasks/actions/WithMail-/template/v3 → v12/tasks/actions/WithMail/template/v1}/config/getSchema.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail-/template/v4 → v12/tasks/actions/WithMail/template/v1}/controller.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail-/template/v2 → v12/tasks/actions/WithMail/template/v1}/errors.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail-/template/v3 → v12/tasks/actions/WithMail/template/v1}/getData.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail-/template/v3 → v12/tasks/actions/WithMail/template/v1}/getSchema.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail-/template/v4/helpers- → v12/tasks/actions/WithMail/template/v1/helpers}/pkHelper.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk/template/v1/helpers → v12/tasks/actions/WithMail/template/v1/helpers-}/buildMutate.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk/template/v1/helpers → v12/tasks/actions/WithMail/template/v1/helpers-}/buildQuery.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk/template/v1/helpers → v12/tasks/actions/WithMail/template/v1/helpers-}/file/read.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk/template/v1/helpers → v12/tasks/actions/WithMail/template/v1/helpers-}/file/write.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail-/template/v3/helpers → v12/tasks/actions/WithMail/template/v1/helpers-}/pkHelper.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk/template/v1/helpers → v12/tasks/actions/WithMail/template/v1/helpers-}/validate.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk/template/v1/helpers → v12/tasks/actions/WithMail/template/v1/helpers-}/validateHelper.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk/template/v1/helpers → v12/tasks/actions/WithMail/template/v1/helpers-}/validators/default.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk/template/v1/helpers → v12/tasks/actions/WithMail/template/v1/helpers-}/validators/enum.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk/template/v1/helpers → v12/tasks/actions/WithMail/template/v1/helpers-}/validators/length.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk/template/v1/helpers → v12/tasks/actions/WithMail/template/v1/helpers-}/validators/minMax.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk/template/v1/helpers → v12/tasks/actions/WithMail/template/v1/helpers-}/validators/pattern.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk/template/v1/helpers → v12/tasks/actions/WithMail/template/v1/helpers-}/validators/required.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk/template/v1/helpers → v12/tasks/actions/WithMail/template/v1/helpers-}/validators/type.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk/template/v1/helpers → v12/tasks/actions/WithMail/template/v1/helpers-}/validators/unique.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail-/template/v3 → v12/tasks/actions/WithMail/template/v1}/insertBase.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/WithMail}/template/v1/insertGenPk.js +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/WithMail}/template/v1/middleware.js +0 -0
- /package/bin/{v10/tasks/actions/WithMail-/template/v4 → v12/tasks/actions/WithMail/template/v1}/rest.http +0 -0
- /package/bin/{v10/tasks/actions/InsertGenPk → v12/tasks/actions/WithMail}/template/v1/service.js +0 -0
- /package/bin/{v10 → v12}/tasks/actions/insertAsIs.js +0 -0
- /package/bin/{v10 → v12}/tasks/core/createFolder.js +0 -0
- /package/bin/{v10 → v12}/tasks/core/parseInput.js +0 -0
- /package/bin/{v10 → v12}/tasks/core/resolveCommand.js +0 -0
- /package/bin/{v10 → v12}/tasks/core/showUsage.js +0 -0
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { createFolder } from "../../../../core/createFolder.js";
|
|
2
|
-
import { showLog } from "./showLog.js";
|
|
3
|
-
|
|
4
|
-
export const createActionFolder = ({
|
|
5
|
-
source,
|
|
6
|
-
destination,
|
|
7
|
-
isAnnounce,
|
|
8
|
-
checkBeforeCreate,
|
|
9
|
-
showLog: isShowLog
|
|
10
|
-
}) => {
|
|
11
|
-
showLog({
|
|
12
|
-
enabled: isShowLog,
|
|
13
|
-
message: "Copying WithMail template.",
|
|
14
|
-
data: { source, destination }
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
const response = createFolder({
|
|
18
|
-
source,
|
|
19
|
-
destination,
|
|
20
|
-
isAnnounce,
|
|
21
|
-
checkBeforeCreate
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
showLog({
|
|
25
|
-
enabled: isShowLog,
|
|
26
|
-
message: response.KTF ? "Template copy completed." : "Template copy skipped.",
|
|
27
|
-
data: response
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
return response;
|
|
31
|
-
};
|
|
1
|
+
import { createFolder } from "../../../../core/createFolder.js";
|
|
2
|
+
import { showLog } from "./showLog.js";
|
|
3
|
+
|
|
4
|
+
export const createActionFolder = ({
|
|
5
|
+
source,
|
|
6
|
+
destination,
|
|
7
|
+
isAnnounce,
|
|
8
|
+
checkBeforeCreate,
|
|
9
|
+
showLog: isShowLog
|
|
10
|
+
}) => {
|
|
11
|
+
showLog({
|
|
12
|
+
enabled: isShowLog,
|
|
13
|
+
message: "Copying WithMail template.",
|
|
14
|
+
data: { source, destination }
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const response = createFolder({
|
|
18
|
+
source,
|
|
19
|
+
destination,
|
|
20
|
+
isAnnounce,
|
|
21
|
+
checkBeforeCreate
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
showLog({
|
|
25
|
+
enabled: isShowLog,
|
|
26
|
+
message: response.KTF ? "Template copy completed." : "Template copy skipped.",
|
|
27
|
+
data: response
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
return response;
|
|
31
|
+
};
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import path from "path";
|
|
2
|
-
import generateRest from "kschema-fs-api-gen-rest";
|
|
3
|
-
import { showLog } from "./showLog.js";
|
|
4
|
-
|
|
5
|
-
export const generateRestIfRequested = ({
|
|
6
|
-
inGenerateRest,
|
|
7
|
-
toConfigPath,
|
|
8
|
-
inTargetPath,
|
|
9
|
-
toPath,
|
|
10
|
-
resolvedFolderName,
|
|
11
|
-
isShowLog, inPort
|
|
12
|
-
}) => {
|
|
13
|
-
if (!inGenerateRest) {
|
|
14
|
-
showLog({
|
|
15
|
-
enabled: isShowLog,
|
|
16
|
-
message: "REST generation not requested."
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
return;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const restTargetPath = path.join(toPath, resolvedFolderName);
|
|
23
|
-
|
|
24
|
-
showLog({
|
|
25
|
-
enabled: isShowLog,
|
|
26
|
-
message: "Generating REST files.",
|
|
27
|
-
data: { toConfigPath, inTargetPath, toPath: restTargetPath }
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
const response = generateRest({
|
|
31
|
-
toConfigPath,
|
|
32
|
-
inTargetPath,
|
|
33
|
-
toPath: restTargetPath,
|
|
34
|
-
inPort
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
showLog({
|
|
38
|
-
enabled: isShowLog,
|
|
39
|
-
message: "REST generation completed.",
|
|
40
|
-
data: response
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
return response;
|
|
44
|
-
};
|
|
1
|
+
import path from "path";
|
|
2
|
+
import generateRest from "kschema-fs-api-gen-rest";
|
|
3
|
+
import { showLog } from "./showLog.js";
|
|
4
|
+
|
|
5
|
+
export const generateRestIfRequested = ({
|
|
6
|
+
inGenerateRest,
|
|
7
|
+
toConfigPath,
|
|
8
|
+
inTargetPath,
|
|
9
|
+
toPath,
|
|
10
|
+
resolvedFolderName,
|
|
11
|
+
isShowLog, inPort
|
|
12
|
+
}) => {
|
|
13
|
+
if (!inGenerateRest) {
|
|
14
|
+
showLog({
|
|
15
|
+
enabled: isShowLog,
|
|
16
|
+
message: "REST generation not requested."
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
return;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const restTargetPath = path.join(toPath, resolvedFolderName);
|
|
23
|
+
|
|
24
|
+
showLog({
|
|
25
|
+
enabled: isShowLog,
|
|
26
|
+
message: "Generating REST files.",
|
|
27
|
+
data: { toConfigPath, inTargetPath, toPath: restTargetPath }
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const response = generateRest({
|
|
31
|
+
toConfigPath,
|
|
32
|
+
inTargetPath,
|
|
33
|
+
toPath: restTargetPath,
|
|
34
|
+
inPort
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
showLog({
|
|
38
|
+
enabled: isShowLog,
|
|
39
|
+
message: "REST generation completed.",
|
|
40
|
+
data: response
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
return response;
|
|
44
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export const showLog = ({ enabled, message, data }) => {
|
|
2
|
-
if (!enabled) return;
|
|
3
|
-
|
|
4
|
-
console.log(`[withMail] ${message}`);
|
|
5
|
-
|
|
6
|
-
if (data === undefined) return;
|
|
7
|
-
|
|
8
|
-
console.log(data);
|
|
9
|
-
};
|
|
1
|
+
export const showLog = ({ enabled, message, data }) => {
|
|
2
|
+
if (!enabled) return;
|
|
3
|
+
|
|
4
|
+
console.log(`[withMail] ${message}`);
|
|
5
|
+
|
|
6
|
+
if (data === undefined) return;
|
|
7
|
+
|
|
8
|
+
console.log(data);
|
|
9
|
+
};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import path from "path";
|
|
2
|
-
import fixEndpointsJs from "express-fix-endpoints-post-js";
|
|
3
|
-
import { showLog } from "./showLog.js";
|
|
4
|
-
|
|
5
|
-
export const updateEndPointsJs = async ({
|
|
6
|
-
toPath,
|
|
7
|
-
cmd,
|
|
8
|
-
inFolderName,
|
|
9
|
-
showLog: isShowLog
|
|
10
|
-
}) => {
|
|
11
|
-
const endPointsJsPath = path.join(toPath, "end-points.js");
|
|
12
|
-
|
|
13
|
-
showLog({
|
|
14
|
-
enabled: isShowLog,
|
|
15
|
-
message: "Updating end-points.js for body parsing.",
|
|
16
|
-
data: { endPointsJsPath, cmd, inFolderName }
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
const response = await fixEndpointsJs({
|
|
20
|
-
endPointsJsPath,
|
|
21
|
-
showLog: isShowLog,
|
|
22
|
-
inActionName: cmd,
|
|
23
|
-
inFolderName,
|
|
24
|
-
inGetType: "bodyParse"
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
showLog({
|
|
28
|
-
enabled: isShowLog,
|
|
29
|
-
message: "end-points.js update completed.",
|
|
30
|
-
data: response
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
return response;
|
|
34
|
-
};
|
|
1
|
+
import path from "path";
|
|
2
|
+
import fixEndpointsJs from "express-fix-endpoints-post-js";
|
|
3
|
+
import { showLog } from "./showLog.js";
|
|
4
|
+
|
|
5
|
+
export const updateEndPointsJs = async ({
|
|
6
|
+
toPath,
|
|
7
|
+
cmd,
|
|
8
|
+
inFolderName,
|
|
9
|
+
showLog: isShowLog
|
|
10
|
+
}) => {
|
|
11
|
+
const endPointsJsPath = path.join(toPath, "end-points.js");
|
|
12
|
+
|
|
13
|
+
showLog({
|
|
14
|
+
enabled: isShowLog,
|
|
15
|
+
message: "Updating end-points.js for body parsing.",
|
|
16
|
+
data: { endPointsJsPath, cmd, inFolderName }
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const response = await fixEndpointsJs({
|
|
20
|
+
endPointsJsPath,
|
|
21
|
+
showLog: isShowLog,
|
|
22
|
+
inActionName: cmd,
|
|
23
|
+
inFolderName,
|
|
24
|
+
inGetType: "bodyParse"
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
showLog({
|
|
28
|
+
enabled: isShowLog,
|
|
29
|
+
message: "end-points.js update completed.",
|
|
30
|
+
data: response
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
return response;
|
|
34
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
POST http://localhost:3000/api/v1/StockItems/withMail
|
|
2
|
-
Content-Type: application/json
|
|
3
|
-
|
|
4
|
-
{
|
|
5
|
-
"StockItemName": "Item1",
|
|
6
|
-
"StockGstApplicable": "",
|
|
7
|
-
"StockBaseUnits": ""
|
|
8
|
-
}
|
|
1
|
+
POST http://localhost:3000/api/v1/StockItems/withMail
|
|
2
|
+
Content-Type: application/json
|
|
3
|
+
|
|
4
|
+
{
|
|
5
|
+
"StockItemName": "Item1",
|
|
6
|
+
"StockGstApplicable": "",
|
|
7
|
+
"StockBaseUnits": ""
|
|
8
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
POST http://localhost:3000/api/v1/StockItems/withMail
|
|
2
|
-
Content-Type: application/json
|
|
3
|
-
|
|
4
|
-
{
|
|
5
|
-
"StockItemName": "Item1",
|
|
6
|
-
"StockGstApplicable": "",
|
|
7
|
-
"StockBaseUnits": ""
|
|
8
|
-
}
|
|
1
|
+
POST http://localhost:3000/api/v1/StockItems/withMail
|
|
2
|
+
Content-Type: application/json
|
|
3
|
+
|
|
4
|
+
{
|
|
5
|
+
"StockItemName": "Item1",
|
|
6
|
+
"StockGstApplicable": "",
|
|
7
|
+
"StockBaseUnits": ""
|
|
8
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { createFolder } from "../../../../core/createFolder.js";
|
|
2
|
-
import { showLog } from "./showLog.js";
|
|
3
|
-
|
|
4
|
-
export const createActionFolder = ({
|
|
5
|
-
source,
|
|
6
|
-
destination,
|
|
7
|
-
isAnnounce,
|
|
8
|
-
checkBeforeCreate,
|
|
9
|
-
showLog: isShowLog
|
|
10
|
-
}) => {
|
|
11
|
-
showLog({
|
|
12
|
-
enabled: isShowLog,
|
|
13
|
-
message: "Copying WithMail template.",
|
|
14
|
-
data: { source, destination }
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
const response = createFolder({
|
|
18
|
-
source,
|
|
19
|
-
destination,
|
|
20
|
-
isAnnounce,
|
|
21
|
-
checkBeforeCreate
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
showLog({
|
|
25
|
-
enabled: isShowLog,
|
|
26
|
-
message: response.KTF ? "Template copy completed." : "Template copy skipped.",
|
|
27
|
-
data: response
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
return response;
|
|
31
|
-
};
|
|
1
|
+
import { createFolder } from "../../../../core/createFolder.js";
|
|
2
|
+
import { showLog } from "./showLog.js";
|
|
3
|
+
|
|
4
|
+
export const createActionFolder = ({
|
|
5
|
+
source,
|
|
6
|
+
destination,
|
|
7
|
+
isAnnounce,
|
|
8
|
+
checkBeforeCreate,
|
|
9
|
+
showLog: isShowLog
|
|
10
|
+
}) => {
|
|
11
|
+
showLog({
|
|
12
|
+
enabled: isShowLog,
|
|
13
|
+
message: "Copying WithMail template.",
|
|
14
|
+
data: { source, destination }
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const response = createFolder({
|
|
18
|
+
source,
|
|
19
|
+
destination,
|
|
20
|
+
isAnnounce,
|
|
21
|
+
checkBeforeCreate
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
showLog({
|
|
25
|
+
enabled: isShowLog,
|
|
26
|
+
message: response.KTF ? "Template copy completed." : "Template copy skipped.",
|
|
27
|
+
data: response
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
return response;
|
|
31
|
+
};
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import path from "path";
|
|
2
|
-
import generateRest from "kschema-fs-api-gen-rest";
|
|
3
|
-
import { showLog } from "./showLog.js";
|
|
4
|
-
|
|
5
|
-
export const generateRestIfRequested = ({
|
|
6
|
-
inGenerateRest,
|
|
7
|
-
toConfigPath,
|
|
8
|
-
inTargetPath,
|
|
9
|
-
toPath,
|
|
10
|
-
resolvedFolderName,
|
|
11
|
-
isShowLog
|
|
12
|
-
}) => {
|
|
13
|
-
if (!inGenerateRest) {
|
|
14
|
-
showLog({
|
|
15
|
-
enabled: isShowLog,
|
|
16
|
-
message: "REST generation not requested."
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
return;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const restTargetPath = path.join(toPath, resolvedFolderName);
|
|
23
|
-
|
|
24
|
-
showLog({
|
|
25
|
-
enabled: isShowLog,
|
|
26
|
-
message: "Generating REST files.",
|
|
27
|
-
data: { toConfigPath, inTargetPath, toPath: restTargetPath }
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
const response = generateRest({
|
|
31
|
-
toConfigPath,
|
|
32
|
-
inTargetPath,
|
|
33
|
-
toPath: restTargetPath
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
showLog({
|
|
37
|
-
enabled: isShowLog,
|
|
38
|
-
message: "REST generation completed.",
|
|
39
|
-
data: response
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
return response;
|
|
43
|
-
};
|
|
1
|
+
import path from "path";
|
|
2
|
+
import generateRest from "kschema-fs-api-gen-rest";
|
|
3
|
+
import { showLog } from "./showLog.js";
|
|
4
|
+
|
|
5
|
+
export const generateRestIfRequested = ({
|
|
6
|
+
inGenerateRest,
|
|
7
|
+
toConfigPath,
|
|
8
|
+
inTargetPath,
|
|
9
|
+
toPath,
|
|
10
|
+
resolvedFolderName,
|
|
11
|
+
isShowLog
|
|
12
|
+
}) => {
|
|
13
|
+
if (!inGenerateRest) {
|
|
14
|
+
showLog({
|
|
15
|
+
enabled: isShowLog,
|
|
16
|
+
message: "REST generation not requested."
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
return;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const restTargetPath = path.join(toPath, resolvedFolderName);
|
|
23
|
+
|
|
24
|
+
showLog({
|
|
25
|
+
enabled: isShowLog,
|
|
26
|
+
message: "Generating REST files.",
|
|
27
|
+
data: { toConfigPath, inTargetPath, toPath: restTargetPath }
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const response = generateRest({
|
|
31
|
+
toConfigPath,
|
|
32
|
+
inTargetPath,
|
|
33
|
+
toPath: restTargetPath
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
showLog({
|
|
37
|
+
enabled: isShowLog,
|
|
38
|
+
message: "REST generation completed.",
|
|
39
|
+
data: response
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
return response;
|
|
43
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export const showLog = ({ enabled, message, data }) => {
|
|
2
|
-
if (!enabled) return;
|
|
3
|
-
|
|
4
|
-
console.log(`[withMail] ${message}`);
|
|
5
|
-
|
|
6
|
-
if (data === undefined) return;
|
|
7
|
-
|
|
8
|
-
console.log(data);
|
|
9
|
-
};
|
|
1
|
+
export const showLog = ({ enabled, message, data }) => {
|
|
2
|
+
if (!enabled) return;
|
|
3
|
+
|
|
4
|
+
console.log(`[withMail] ${message}`);
|
|
5
|
+
|
|
6
|
+
if (data === undefined) return;
|
|
7
|
+
|
|
8
|
+
console.log(data);
|
|
9
|
+
};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import path from "path";
|
|
2
|
-
import fixEndpointsJs from "express-fix-endpoints-post-js";
|
|
3
|
-
import { showLog } from "./showLog.js";
|
|
4
|
-
|
|
5
|
-
export const updateEndPointsJs = async ({
|
|
6
|
-
toPath,
|
|
7
|
-
cmd,
|
|
8
|
-
inFolderName,
|
|
9
|
-
showLog: isShowLog
|
|
10
|
-
}) => {
|
|
11
|
-
const endPointsJsPath = path.join(toPath, "end-points.js");
|
|
12
|
-
|
|
13
|
-
showLog({
|
|
14
|
-
enabled: isShowLog,
|
|
15
|
-
message: "Updating end-points.js for body parsing.",
|
|
16
|
-
data: { endPointsJsPath, cmd, inFolderName }
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
const response = await fixEndpointsJs({
|
|
20
|
-
endPointsJsPath,
|
|
21
|
-
showLog: isShowLog,
|
|
22
|
-
inActionName: cmd,
|
|
23
|
-
inFolderName,
|
|
24
|
-
inGetType: "bodyParse"
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
showLog({
|
|
28
|
-
enabled: isShowLog,
|
|
29
|
-
message: "end-points.js update completed.",
|
|
30
|
-
data: response
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
return response;
|
|
34
|
-
};
|
|
1
|
+
import path from "path";
|
|
2
|
+
import fixEndpointsJs from "express-fix-endpoints-post-js";
|
|
3
|
+
import { showLog } from "./showLog.js";
|
|
4
|
+
|
|
5
|
+
export const updateEndPointsJs = async ({
|
|
6
|
+
toPath,
|
|
7
|
+
cmd,
|
|
8
|
+
inFolderName,
|
|
9
|
+
showLog: isShowLog
|
|
10
|
+
}) => {
|
|
11
|
+
const endPointsJsPath = path.join(toPath, "end-points.js");
|
|
12
|
+
|
|
13
|
+
showLog({
|
|
14
|
+
enabled: isShowLog,
|
|
15
|
+
message: "Updating end-points.js for body parsing.",
|
|
16
|
+
data: { endPointsJsPath, cmd, inFolderName }
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const response = await fixEndpointsJs({
|
|
20
|
+
endPointsJsPath,
|
|
21
|
+
showLog: isShowLog,
|
|
22
|
+
inActionName: cmd,
|
|
23
|
+
inFolderName,
|
|
24
|
+
inGetType: "bodyParse"
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
showLog({
|
|
28
|
+
enabled: isShowLog,
|
|
29
|
+
message: "end-points.js update completed.",
|
|
30
|
+
data: response
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
return response;
|
|
34
|
+
};
|
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import { locateSource } from "./WithMail/steps/locateSource.js";
|
|
2
|
-
import { locateDestination } from "./WithMail/steps/locateDestination.js";
|
|
3
|
-
import { announce } from "./WithMail/steps/announce.js";
|
|
4
|
-
import resolveFolderName from "./WithMail/steps/resolveFolderName.js";
|
|
5
|
-
import { createActionFolder } from "./WithMail/steps/createActionFolder.js";
|
|
6
|
-
import { updateEndPointsJs } from "./WithMail/steps/updateEndPointsJs.js";
|
|
7
|
-
import { generateRestIfRequested } from "./WithMail/steps/generateRestIfRequested.js";
|
|
8
|
-
import { showLog as writeLog } from "./WithMail/steps/showLog.js";
|
|
9
|
-
|
|
10
|
-
const startFunc = async ({ cmd = "", toPath, isAnnounce = true, checkBeforeCreate = true,
|
|
11
|
-
toConfigPath, inTargetPath, inFolderName, inGenerateRest = false, showLog = false
|
|
12
|
-
}) => {
|
|
13
|
-
writeLog({
|
|
14
|
-
enabled: showLog,
|
|
15
|
-
message: "Starting WithMail action.",
|
|
16
|
-
data: { cmd, toPath, inFolderName, inGenerateRest }
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
const resolvedFolderName = resolveFolderName({
|
|
20
|
-
name: cmd
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
if (resolvedFolderName.KTF === false) {
|
|
24
|
-
writeLog({
|
|
25
|
-
enabled: showLog,
|
|
26
|
-
message: "Folder name validation failed.",
|
|
27
|
-
data: resolvedFolderName
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
console.log(resolvedFolderName.KReason);
|
|
31
|
-
|
|
32
|
-
return;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
const source = locateSource();
|
|
36
|
-
const destination = locateDestination({
|
|
37
|
-
inResolvedFolderName: resolvedFolderName,
|
|
38
|
-
toPath
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
writeLog({
|
|
42
|
-
enabled: showLog,
|
|
43
|
-
message: "Resolved source and destination.",
|
|
44
|
-
data: { source, destination }
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
const createFolderResponse = createActionFolder({
|
|
48
|
-
source, destination,
|
|
49
|
-
isAnnounce, checkBeforeCreate, showLog
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
if (createFolderResponse.KTF) {
|
|
53
|
-
await updateEndPointsJs({
|
|
54
|
-
toPath,
|
|
55
|
-
cmd,
|
|
56
|
-
inFolderName,
|
|
57
|
-
showLog
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
generateRestIfRequested({
|
|
61
|
-
inGenerateRest,
|
|
62
|
-
toConfigPath,
|
|
63
|
-
inTargetPath,
|
|
64
|
-
toPath,
|
|
65
|
-
resolvedFolderName,
|
|
66
|
-
isShowLog: showLog
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
if (isAnnounce) announce({ inResolvedFolderName: resolvedFolderName });
|
|
71
|
-
|
|
72
|
-
writeLog({
|
|
73
|
-
enabled: showLog,
|
|
74
|
-
message: "WithMail action completed.",
|
|
75
|
-
data: { resolvedFolderName }
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
return resolvedFolderName;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
export default startFunc;
|
|
1
|
+
import { locateSource } from "./WithMail/steps/locateSource.js";
|
|
2
|
+
import { locateDestination } from "./WithMail/steps/locateDestination.js";
|
|
3
|
+
import { announce } from "./WithMail/steps/announce.js";
|
|
4
|
+
import resolveFolderName from "./WithMail/steps/resolveFolderName.js";
|
|
5
|
+
import { createActionFolder } from "./WithMail/steps/createActionFolder.js";
|
|
6
|
+
import { updateEndPointsJs } from "./WithMail/steps/updateEndPointsJs.js";
|
|
7
|
+
import { generateRestIfRequested } from "./WithMail/steps/generateRestIfRequested.js";
|
|
8
|
+
import { showLog as writeLog } from "./WithMail/steps/showLog.js";
|
|
9
|
+
|
|
10
|
+
const startFunc = async ({ cmd = "", toPath, isAnnounce = true, checkBeforeCreate = true,
|
|
11
|
+
toConfigPath, inTargetPath, inFolderName, inGenerateRest = false, showLog = false
|
|
12
|
+
}) => {
|
|
13
|
+
writeLog({
|
|
14
|
+
enabled: showLog,
|
|
15
|
+
message: "Starting WithMail action.",
|
|
16
|
+
data: { cmd, toPath, inFolderName, inGenerateRest }
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const resolvedFolderName = resolveFolderName({
|
|
20
|
+
name: cmd
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
if (resolvedFolderName.KTF === false) {
|
|
24
|
+
writeLog({
|
|
25
|
+
enabled: showLog,
|
|
26
|
+
message: "Folder name validation failed.",
|
|
27
|
+
data: resolvedFolderName
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
console.log(resolvedFolderName.KReason);
|
|
31
|
+
|
|
32
|
+
return;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const source = locateSource();
|
|
36
|
+
const destination = locateDestination({
|
|
37
|
+
inResolvedFolderName: resolvedFolderName,
|
|
38
|
+
toPath
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
writeLog({
|
|
42
|
+
enabled: showLog,
|
|
43
|
+
message: "Resolved source and destination.",
|
|
44
|
+
data: { source, destination }
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
const createFolderResponse = createActionFolder({
|
|
48
|
+
source, destination,
|
|
49
|
+
isAnnounce, checkBeforeCreate, showLog
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
if (createFolderResponse.KTF) {
|
|
53
|
+
await updateEndPointsJs({
|
|
54
|
+
toPath,
|
|
55
|
+
cmd,
|
|
56
|
+
inFolderName,
|
|
57
|
+
showLog
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
generateRestIfRequested({
|
|
61
|
+
inGenerateRest,
|
|
62
|
+
toConfigPath,
|
|
63
|
+
inTargetPath,
|
|
64
|
+
toPath,
|
|
65
|
+
resolvedFolderName,
|
|
66
|
+
isShowLog: showLog
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
if (isAnnounce) announce({ inResolvedFolderName: resolvedFolderName });
|
|
71
|
+
|
|
72
|
+
writeLog({
|
|
73
|
+
enabled: showLog,
|
|
74
|
+
message: "WithMail action completed.",
|
|
75
|
+
data: { resolvedFolderName }
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
return resolvedFolderName;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export default startFunc;
|