kschema-fs-api-gen-post-actions 1.12.3 → 1.14.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.
Files changed (398) hide show
  1. package/bin/v14/tasks/actions/Filter/template/v1/readUsingLowdb.js +23 -0
  2. package/bin/v14/tasks/actions/Filter/template/v1/rest.http +7 -0
  3. package/bin/v14/tasks/actions/Filter/template/v1/service.js +9 -0
  4. package/bin/v14/tasks/actions/InsertGenPk/steps/generateRestIfRequested.js +44 -0
  5. package/bin/v14/tasks/actions/WithMail/steps/createActionFolder.js +31 -0
  6. package/bin/v14/tasks/actions/WithMail/steps/showLog.js +9 -0
  7. package/bin/v14/tasks/actions/WithMail/steps/updateEndPointsJs.js +34 -0
  8. package/bin/v14/tasks/actions/filter.js +85 -0
  9. package/bin/v14/tasks/actions/groupBy/steps/UpdateRoutesJs/common/readFile.js +8 -0
  10. package/bin/v14/tasks/actions/groupBy/steps/UpdateRoutesJs/common/writeFile.js +10 -0
  11. package/bin/v14/tasks/actions/groupBy/steps/UpdateRoutesJs/updateImports/buildImport.js +9 -0
  12. package/bin/v14/tasks/actions/groupBy/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +8 -0
  13. package/bin/v14/tasks/actions/groupBy/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +10 -0
  14. package/bin/v14/tasks/actions/groupBy/steps/UpdateRoutesJs/updateImports/index.js +47 -0
  15. package/bin/v14/tasks/actions/groupBy/steps/UpdateRoutesJs/updateUse/buildUseLine.js +5 -0
  16. package/bin/v14/tasks/actions/groupBy/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +9 -0
  17. package/bin/v14/tasks/actions/groupBy/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +10 -0
  18. package/bin/v14/tasks/actions/groupBy/steps/UpdateRoutesJs/updateUse/index.js +56 -0
  19. package/bin/v14/tasks/actions/groupBy/steps/announce.js +9 -0
  20. package/bin/v14/tasks/actions/groupBy/steps/createActionFolder.js +31 -0
  21. package/bin/v14/tasks/actions/groupBy/steps/createFolder.js +7 -0
  22. package/bin/v14/tasks/actions/groupBy/steps/decideTemplate.js +3 -0
  23. package/bin/v14/tasks/actions/groupBy/steps/generateRestIfRequested.js +44 -0
  24. package/bin/v14/tasks/actions/groupBy/steps/locateDestination.js +7 -0
  25. package/bin/v14/tasks/actions/groupBy/steps/locateSource.js +18 -0
  26. package/bin/v14/tasks/actions/groupBy/steps/resolveFolderName.js +20 -0
  27. package/bin/v14/tasks/actions/groupBy/steps/showLog.js +9 -0
  28. package/bin/v14/tasks/actions/groupBy/steps/updateAppJs.js +7 -0
  29. package/bin/v14/tasks/actions/groupBy/steps/updateEndPointsFile.js +30 -0
  30. package/bin/v14/tasks/actions/groupBy/template/v1/aggConfig.js +28 -0
  31. package/bin/v14/tasks/actions/groupBy/template/v1/controller.js +28 -0
  32. package/bin/v14/tasks/actions/groupBy/template/v1/middleware.js +77 -0
  33. package/bin/v14/tasks/actions/groupBy/template/v1/rest.http +6 -0
  34. package/bin/v14/tasks/actions/groupBy/template/v1/service.js +44 -0
  35. package/bin/v14/tasks/actions/groupBy.js +85 -0
  36. package/bin/v14/tasks/common/showLog.js +9 -0
  37. package/bin/v14/tasks/common/updateEndPointsJs.js +35 -0
  38. package/index.js +15 -1
  39. package/package.json +2 -2
  40. package/bin/v11/tasks/actions/insertGenPk copy.js +0 -63
  41. package/bin/v12/tasks/actions/InsertAsIs/actions.json +0 -26
  42. package/bin/v12/tasks/actions/InsertAsIs/template/v1/rest.http +0 -7
  43. package/bin/v12/tasks/actions/InsertGenPk/template/v1/config/getSchema.js +0 -20
  44. package/bin/v12/tasks/actions/InsertGenPk/template/v1/helpers/getSchema.js +0 -11
  45. package/bin/v12/tasks/actions/InsertGenPk/template/v1/insertBase.js +0 -9
  46. package/bin/v12/tasks/actions/InsertGenPk/template/v1/insertGenPk.js +0 -31
  47. package/bin/v12/tasks/actions/InsertGenPk/template/v1/rest.http +0 -8
  48. package/bin/v12/tasks/actions/InsertGenPk/template/v1/service.js +0 -9
  49. package/bin/v12/tasks/actions/WithMail/template/v1/config/getSchema.js +0 -20
  50. package/bin/v12/tasks/actions/WithMail/template/v1/controller.js +0 -27
  51. package/bin/v12/tasks/actions/WithMail/template/v1/getData.js +0 -11
  52. package/bin/v12/tasks/actions/WithMail/template/v1/getSchema.js +0 -11
  53. package/bin/v12/tasks/actions/WithMail/template/v1/helpers/pkHelper.js +0 -19
  54. package/bin/v12/tasks/actions/WithMail/template/v1/helpers-/buildMutate.js +0 -32
  55. package/bin/v12/tasks/actions/WithMail/template/v1/helpers-/buildQuery.js +0 -32
  56. package/bin/v12/tasks/actions/WithMail/template/v1/helpers-/file/read.js +0 -7
  57. package/bin/v12/tasks/actions/WithMail/template/v1/helpers-/file/write.js +0 -5
  58. package/bin/v12/tasks/actions/WithMail/template/v1/helpers-/pkHelper.js +0 -19
  59. package/bin/v12/tasks/actions/WithMail/template/v1/helpers-/validate.js +0 -27
  60. package/bin/v12/tasks/actions/WithMail/template/v1/helpers-/validateHelper.js +0 -27
  61. package/bin/v12/tasks/actions/WithMail/template/v1/helpers-/validators/default.js +0 -5
  62. package/bin/v12/tasks/actions/WithMail/template/v1/helpers-/validators/enum.js +0 -7
  63. package/bin/v12/tasks/actions/WithMail/template/v1/helpers-/validators/length.js +0 -11
  64. package/bin/v12/tasks/actions/WithMail/template/v1/helpers-/validators/minMax.js +0 -11
  65. package/bin/v12/tasks/actions/WithMail/template/v1/helpers-/validators/pattern.js +0 -8
  66. package/bin/v12/tasks/actions/WithMail/template/v1/helpers-/validators/required.js +0 -5
  67. package/bin/v12/tasks/actions/WithMail/template/v1/helpers-/validators/type.js +0 -15
  68. package/bin/v12/tasks/actions/WithMail/template/v1/helpers-/validators/unique.js +0 -8
  69. package/bin/v12/tasks/actions/WithMail/template/v1/insertBase.js +0 -9
  70. package/bin/v12/tasks/actions/WithMail/template/v1/insertGenPk.js +0 -31
  71. package/bin/v12/tasks/actions/WithMail/template/v1/middleware.js +0 -19
  72. package/bin/v12/tasks/actions/WithMail/template/v1/service.js +0 -16
  73. /package/bin/{v11 → v13}/core/createFolder.js +0 -0
  74. /package/bin/{v11 → v13}/core/parseInput.js +0 -0
  75. /package/bin/{v11 → v13}/core/resolveCommand.js +0 -0
  76. /package/bin/{v11 → v13}/core/showUsage.js +0 -0
  77. /package/bin/{v11 → v13}/start.js +0 -0
  78. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/steps/UpdateRoutesJs/common/readFile.js +0 -0
  79. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/steps/UpdateRoutesJs/common/writeFile.js +0 -0
  80. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/steps/UpdateRoutesJs/updateImports/buildImport.js +0 -0
  81. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +0 -0
  82. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +0 -0
  83. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/steps/UpdateRoutesJs/updateImports/index.js +0 -0
  84. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/steps/UpdateRoutesJs/updateUse/buildUseLine.js +0 -0
  85. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +0 -0
  86. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +0 -0
  87. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/steps/UpdateRoutesJs/updateUse/index.js +0 -0
  88. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/steps/announce.js +0 -0
  89. /package/bin/{v11/tasks/actions/InsertGenPk → v13/tasks/actions/Filter}/steps/createActionFolder.js +0 -0
  90. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/steps/createFolder.js +0 -0
  91. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/steps/decideTemplate.js +0 -0
  92. /package/bin/{v11/tasks/actions/InsertGenPk → v13/tasks/actions/Filter}/steps/generateRestIfRequested.js +0 -0
  93. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/steps/locateDestination.js +0 -0
  94. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/steps/locateSource.js +0 -0
  95. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/steps/resolveFolderName.js +0 -0
  96. /package/bin/{v11/tasks/actions/InsertGenPk → v13/tasks/actions/Filter}/steps/showLog.js +0 -0
  97. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/steps/updateAppJs.js +0 -0
  98. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/steps/updateEndPointsFile.js +0 -0
  99. /package/bin/{v11/tasks/actions/InsertGenPk → v13/tasks/actions/Filter}/steps/updateEndPointsJs.js +0 -0
  100. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/template/v1/controller.js +0 -0
  101. /package/bin/{v11/tasks/actions/InsertAsIs → v13/tasks/actions/Filter}/template/v1/errors.js +0 -0
  102. /package/bin/{v12 → v13}/tasks/actions/Filter/template/v1/readUsingLowdb.js +0 -0
  103. /package/bin/{v12 → v13}/tasks/actions/Filter/template/v1/rest.http +0 -0
  104. /package/bin/{v12 → v13}/tasks/actions/Filter/template/v1/service.js +0 -0
  105. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/actions.json +0 -0
  106. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/common/readFile.js +0 -0
  107. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/common/writeFile.js +0 -0
  108. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/updateImports/buildImport.js +0 -0
  109. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +0 -0
  110. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +0 -0
  111. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/updateImports/index.js +0 -0
  112. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/updateUse/buildUseLine.js +0 -0
  113. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +0 -0
  114. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +0 -0
  115. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/steps/UpdateRoutesJs/updateUse/index.js +0 -0
  116. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/steps/announce.js +0 -0
  117. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/steps/createFolder.js +0 -0
  118. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/steps/decideTemplate.js +0 -0
  119. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/steps/locateDestination.js +0 -0
  120. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/steps/locateSource.js +0 -0
  121. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/steps/resolveFolderName.js +0 -0
  122. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/steps/updateAppJs.js +0 -0
  123. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/steps/updateEndPointsFile.js +0 -0
  124. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/config/getSchema.js +0 -0
  125. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/template/v1/controller.js +0 -0
  126. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertAsIs}/template/v1/errors.js +0 -0
  127. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/getData.js +0 -0
  128. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/getSchema.js +0 -0
  129. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/helpers/buildMutate.js +0 -0
  130. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/helpers/buildQuery.js +0 -0
  131. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/helpers/file/read.js +0 -0
  132. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/helpers/file/write.js +0 -0
  133. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/helpers/pkHelper.js +0 -0
  134. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/helpers/validate.js +0 -0
  135. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/helpers/validateHelper.js +0 -0
  136. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/helpers/validators/default.js +0 -0
  137. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/helpers/validators/enum.js +0 -0
  138. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/helpers/validators/length.js +0 -0
  139. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/helpers/validators/minMax.js +0 -0
  140. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/helpers/validators/pattern.js +0 -0
  141. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/helpers/validators/required.js +0 -0
  142. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/helpers/validators/type.js +0 -0
  143. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/helpers/validators/unique.js +0 -0
  144. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/insertBase.js +0 -0
  145. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/insertGenPk.js +0 -0
  146. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/middleware.js +0 -0
  147. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/rest.http +0 -0
  148. /package/bin/{v11 → v13}/tasks/actions/InsertAsIs/template/v1/service.js +0 -0
  149. /package/bin/{v11 → v13}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/common/readFile.js +0 -0
  150. /package/bin/{v11 → v13}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/common/writeFile.js +0 -0
  151. /package/bin/{v11 → v13}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/updateImports/buildImport.js +0 -0
  152. /package/bin/{v11 → v13}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +0 -0
  153. /package/bin/{v11 → v13}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +0 -0
  154. /package/bin/{v11 → v13}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/updateImports/index.js +0 -0
  155. /package/bin/{v11 → v13}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/updateUse/buildUseLine.js +0 -0
  156. /package/bin/{v11 → v13}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +0 -0
  157. /package/bin/{v11 → v13}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +0 -0
  158. /package/bin/{v11 → v13}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/updateUse/index.js +0 -0
  159. /package/bin/{v11 → v13}/tasks/actions/InsertGenPk/steps/announce.js +0 -0
  160. /package/bin/{v11/tasks/actions/WithMail → v13/tasks/actions/InsertGenPk}/steps/createActionFolder.js +0 -0
  161. /package/bin/{v11 → v13}/tasks/actions/InsertGenPk/steps/createFolder.js +0 -0
  162. /package/bin/{v11 → v13}/tasks/actions/InsertGenPk/steps/decideTemplate.js +0 -0
  163. /package/bin/{v12/tasks/actions/Filter → v13/tasks/actions/InsertGenPk}/steps/generateRestIfRequested.js +0 -0
  164. /package/bin/{v11 → v13}/tasks/actions/InsertGenPk/steps/locateDestination.js +0 -0
  165. /package/bin/{v11 → v13}/tasks/actions/InsertGenPk/steps/locateSource.js +0 -0
  166. /package/bin/{v11 → v13}/tasks/actions/InsertGenPk/steps/resolveFolderName.js +0 -0
  167. /package/bin/{v11/tasks/actions/WithMail → v13/tasks/actions/InsertGenPk}/steps/showLog.js +0 -0
  168. /package/bin/{v11 → v13}/tasks/actions/InsertGenPk/steps/updateAppJs.js +0 -0
  169. /package/bin/{v11 → v13}/tasks/actions/InsertGenPk/steps/updateEndPointsFile.js +0 -0
  170. /package/bin/{v11/tasks/actions/WithMail → v13/tasks/actions/InsertGenPk}/steps/updateEndPointsJs.js +0 -0
  171. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertGenPk}/template/v1/config/getSchema.js +0 -0
  172. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v2 → v13/tasks/actions/InsertGenPk/template/v1}/controller.js +0 -0
  173. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v2 → v13/tasks/actions/InsertGenPk/template/v1}/errors.js +0 -0
  174. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v1 → v13/tasks/actions/InsertGenPk/template/v1/helpers}/getData.js +0 -0
  175. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v1 → v13/tasks/actions/InsertGenPk/template/v1/helpers}/getSchema.js +0 -0
  176. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertGenPk}/template/v1/helpers/pkHelper.js +0 -0
  177. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/InsertGenPk}/template/v1/insertBase.js +0 -0
  178. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v2 → v13/tasks/actions/InsertGenPk/template/v1}/insertGenPk.js +0 -0
  179. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v2 → v13/tasks/actions/InsertGenPk/template/v1}/rest.http +0 -0
  180. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v2 → v13/tasks/actions/InsertGenPk/template/v1}/service.js +0 -0
  181. /package/bin/{v11 → v13}/tasks/actions/WithMail/steps/UpdateRoutesJs/common/readFile.js +0 -0
  182. /package/bin/{v11 → v13}/tasks/actions/WithMail/steps/UpdateRoutesJs/common/writeFile.js +0 -0
  183. /package/bin/{v11 → v13}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateImports/buildImport.js +0 -0
  184. /package/bin/{v11 → v13}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +0 -0
  185. /package/bin/{v11 → v13}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +0 -0
  186. /package/bin/{v11 → v13}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateImports/index.js +0 -0
  187. /package/bin/{v11 → v13}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateUse/buildUseLine.js +0 -0
  188. /package/bin/{v11 → v13}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +0 -0
  189. /package/bin/{v11 → v13}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +0 -0
  190. /package/bin/{v11 → v13}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateUse/index.js +0 -0
  191. /package/bin/{v11 → v13}/tasks/actions/WithMail/steps/announce.js +0 -0
  192. /package/bin/{v12/tasks/actions/Filter → v13/tasks/actions/WithMail}/steps/createActionFolder.js +0 -0
  193. /package/bin/{v11 → v13}/tasks/actions/WithMail/steps/createFolder.js +0 -0
  194. /package/bin/{v11 → v13}/tasks/actions/WithMail/steps/decideTemplate.js +0 -0
  195. /package/bin/{v11 → v13}/tasks/actions/WithMail/steps/generateRestIfRequested.js +0 -0
  196. /package/bin/{v11 → v13}/tasks/actions/WithMail/steps/locateDestination.js +0 -0
  197. /package/bin/{v11 → v13}/tasks/actions/WithMail/steps/locateSource.js +0 -0
  198. /package/bin/{v11 → v13}/tasks/actions/WithMail/steps/resolveFolderName.js +0 -0
  199. /package/bin/{v12/tasks/actions/Filter → v13/tasks/actions/WithMail}/steps/showLog.js +0 -0
  200. /package/bin/{v11 → v13}/tasks/actions/WithMail/steps/updateAppJs.js +0 -0
  201. /package/bin/{v11 → v13}/tasks/actions/WithMail/steps/updateEndPointsFile.js +0 -0
  202. /package/bin/{v12/tasks/actions/Filter → v13/tasks/actions/WithMail}/steps/updateEndPointsJs.js +0 -0
  203. /package/bin/{v11 → v13}/tasks/actions/WithMail/template/v1/Mail/sendMailCC.js +0 -0
  204. /package/bin/{v11 → v13}/tasks/actions/WithMail/template/v1/Mail/welcome.html +0 -0
  205. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v2 → v13/tasks/actions/WithMail/template/v1}/config/getSchema.js +0 -0
  206. /package/bin/{v11/tasks/actions/InsertGenPk → v13/tasks/actions/WithMail}/template/v1/controller.js +0 -0
  207. /package/bin/{v11/tasks/actions/InsertGenPk → v13/tasks/actions/WithMail}/template/v1/errors.js +0 -0
  208. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v2/helpers → v13/tasks/actions/WithMail/template/v1}/getData.js +0 -0
  209. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v2/helpers → v13/tasks/actions/WithMail/template/v1}/getSchema.js +0 -0
  210. /package/bin/{v11/tasks/actions/InsertGenPk → v13/tasks/actions/WithMail}/template/v1/helpers/pkHelper.js +0 -0
  211. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v1/helpers → v13/tasks/actions/WithMail/template/v1/helpers-}/buildMutate.js +0 -0
  212. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v1/helpers → v13/tasks/actions/WithMail/template/v1/helpers-}/buildQuery.js +0 -0
  213. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v1/helpers → v13/tasks/actions/WithMail/template/v1/helpers-}/file/read.js +0 -0
  214. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v1/helpers → v13/tasks/actions/WithMail/template/v1/helpers-}/file/write.js +0 -0
  215. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v2/helpers → v13/tasks/actions/WithMail/template/v1/helpers-}/pkHelper.js +0 -0
  216. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v1/helpers → v13/tasks/actions/WithMail/template/v1/helpers-}/validate.js +0 -0
  217. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v1/helpers → v13/tasks/actions/WithMail/template/v1/helpers-}/validateHelper.js +0 -0
  218. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v1/helpers → v13/tasks/actions/WithMail/template/v1/helpers-}/validators/default.js +0 -0
  219. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v1/helpers → v13/tasks/actions/WithMail/template/v1/helpers-}/validators/enum.js +0 -0
  220. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v1/helpers → v13/tasks/actions/WithMail/template/v1/helpers-}/validators/length.js +0 -0
  221. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v1/helpers → v13/tasks/actions/WithMail/template/v1/helpers-}/validators/minMax.js +0 -0
  222. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v1/helpers → v13/tasks/actions/WithMail/template/v1/helpers-}/validators/pattern.js +0 -0
  223. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v1/helpers → v13/tasks/actions/WithMail/template/v1/helpers-}/validators/required.js +0 -0
  224. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v1/helpers → v13/tasks/actions/WithMail/template/v1/helpers-}/validators/type.js +0 -0
  225. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v1/helpers → v13/tasks/actions/WithMail/template/v1/helpers-}/validators/unique.js +0 -0
  226. /package/bin/{v11/tasks/actions/InsertGenPk-/template/v2 → v13/tasks/actions/WithMail/template/v1}/insertBase.js +0 -0
  227. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/WithMail}/template/v1/insertGenPk.js +0 -0
  228. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/WithMail}/template/v1/middleware.js +0 -0
  229. /package/bin/{v11 → v13}/tasks/actions/WithMail/template/v1/rest.http +0 -0
  230. /package/bin/{v11/tasks/actions/InsertGenPk- → v13/tasks/actions/WithMail}/template/v1/service.js +0 -0
  231. /package/bin/{v12 → v13}/tasks/actions/filter.js +0 -0
  232. /package/bin/{v11 → v13}/tasks/actions/insertAsIs.js +0 -0
  233. /package/bin/{v11 → v13}/tasks/actions/insertGenPk.js +0 -0
  234. /package/bin/{v11 → v13}/tasks/actions/withMail.js +0 -0
  235. /package/bin/{v11 → v13}/tasks/core/createFolder.js +0 -0
  236. /package/bin/{v11 → v13}/tasks/core/parseInput.js +0 -0
  237. /package/bin/{v11 → v13}/tasks/core/resolveCommand.js +0 -0
  238. /package/bin/{v11 → v13}/tasks/core/showUsage.js +0 -0
  239. /package/bin/{v12 → v14}/core/createFolder.js +0 -0
  240. /package/bin/{v12 → v14}/core/parseInput.js +0 -0
  241. /package/bin/{v12 → v14}/core/resolveCommand.js +0 -0
  242. /package/bin/{v12 → v14}/core/showUsage.js +0 -0
  243. /package/bin/{v12 → v14}/start.js +0 -0
  244. /package/bin/{v12 → v14}/tasks/actions/Filter/steps/UpdateRoutesJs/common/readFile.js +0 -0
  245. /package/bin/{v12 → v14}/tasks/actions/Filter/steps/UpdateRoutesJs/common/writeFile.js +0 -0
  246. /package/bin/{v12 → v14}/tasks/actions/Filter/steps/UpdateRoutesJs/updateImports/buildImport.js +0 -0
  247. /package/bin/{v12 → v14}/tasks/actions/Filter/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +0 -0
  248. /package/bin/{v12 → v14}/tasks/actions/Filter/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +0 -0
  249. /package/bin/{v12 → v14}/tasks/actions/Filter/steps/UpdateRoutesJs/updateImports/index.js +0 -0
  250. /package/bin/{v12 → v14}/tasks/actions/Filter/steps/UpdateRoutesJs/updateUse/buildUseLine.js +0 -0
  251. /package/bin/{v12 → v14}/tasks/actions/Filter/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +0 -0
  252. /package/bin/{v12 → v14}/tasks/actions/Filter/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +0 -0
  253. /package/bin/{v12 → v14}/tasks/actions/Filter/steps/UpdateRoutesJs/updateUse/index.js +0 -0
  254. /package/bin/{v12 → v14}/tasks/actions/Filter/steps/announce.js +0 -0
  255. /package/bin/{v12/tasks/actions/InsertGenPk → v14/tasks/actions/Filter}/steps/createActionFolder.js +0 -0
  256. /package/bin/{v12 → v14}/tasks/actions/Filter/steps/createFolder.js +0 -0
  257. /package/bin/{v12 → v14}/tasks/actions/Filter/steps/decideTemplate.js +0 -0
  258. /package/bin/{v12/tasks/actions/InsertGenPk → v14/tasks/actions/Filter}/steps/generateRestIfRequested.js +0 -0
  259. /package/bin/{v12 → v14}/tasks/actions/Filter/steps/locateDestination.js +0 -0
  260. /package/bin/{v12 → v14}/tasks/actions/Filter/steps/locateSource.js +0 -0
  261. /package/bin/{v12 → v14}/tasks/actions/Filter/steps/resolveFolderName.js +0 -0
  262. /package/bin/{v12/tasks/actions/InsertGenPk → v14/tasks/actions/Filter}/steps/showLog.js +0 -0
  263. /package/bin/{v12 → v14}/tasks/actions/Filter/steps/updateAppJs.js +0 -0
  264. /package/bin/{v12 → v14}/tasks/actions/Filter/steps/updateEndPointsFile.js +0 -0
  265. /package/bin/{v12/tasks/actions/InsertGenPk → v14/tasks/actions/Filter}/steps/updateEndPointsJs.js +0 -0
  266. /package/bin/{v11/tasks/actions/WithMail → v14/tasks/actions/Filter}/template/v1/controller.js +0 -0
  267. /package/bin/{v11/tasks/actions/WithMail → v14/tasks/actions/Filter}/template/v1/errors.js +0 -0
  268. /package/bin/{v11/tasks/actions/InsertGenPk- → v14/tasks/actions/InsertAsIs}/actions.json +0 -0
  269. /package/bin/{v12 → v14}/tasks/actions/InsertAsIs/steps/UpdateRoutesJs/common/readFile.js +0 -0
  270. /package/bin/{v12 → v14}/tasks/actions/InsertAsIs/steps/UpdateRoutesJs/common/writeFile.js +0 -0
  271. /package/bin/{v12 → v14}/tasks/actions/InsertAsIs/steps/UpdateRoutesJs/updateImports/buildImport.js +0 -0
  272. /package/bin/{v12 → v14}/tasks/actions/InsertAsIs/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +0 -0
  273. /package/bin/{v12 → v14}/tasks/actions/InsertAsIs/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +0 -0
  274. /package/bin/{v12 → v14}/tasks/actions/InsertAsIs/steps/UpdateRoutesJs/updateImports/index.js +0 -0
  275. /package/bin/{v12 → v14}/tasks/actions/InsertAsIs/steps/UpdateRoutesJs/updateUse/buildUseLine.js +0 -0
  276. /package/bin/{v12 → v14}/tasks/actions/InsertAsIs/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +0 -0
  277. /package/bin/{v12 → v14}/tasks/actions/InsertAsIs/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +0 -0
  278. /package/bin/{v12 → v14}/tasks/actions/InsertAsIs/steps/UpdateRoutesJs/updateUse/index.js +0 -0
  279. /package/bin/{v12 → v14}/tasks/actions/InsertAsIs/steps/announce.js +0 -0
  280. /package/bin/{v12 → v14}/tasks/actions/InsertAsIs/steps/createFolder.js +0 -0
  281. /package/bin/{v12 → v14}/tasks/actions/InsertAsIs/steps/decideTemplate.js +0 -0
  282. /package/bin/{v12 → v14}/tasks/actions/InsertAsIs/steps/locateDestination.js +0 -0
  283. /package/bin/{v12 → v14}/tasks/actions/InsertAsIs/steps/locateSource.js +0 -0
  284. /package/bin/{v12 → v14}/tasks/actions/InsertAsIs/steps/resolveFolderName.js +0 -0
  285. /package/bin/{v12 → v14}/tasks/actions/InsertAsIs/steps/updateAppJs.js +0 -0
  286. /package/bin/{v12 → v14}/tasks/actions/InsertAsIs/steps/updateEndPointsFile.js +0 -0
  287. /package/bin/{v11/tasks/actions/InsertGenPk → v14/tasks/actions/InsertAsIs}/template/v1/config/getSchema.js +0 -0
  288. /package/bin/{v12/tasks/actions/Filter → v14/tasks/actions/InsertAsIs}/template/v1/controller.js +0 -0
  289. /package/bin/{v12/tasks/actions/Filter → v14/tasks/actions/InsertAsIs}/template/v1/errors.js +0 -0
  290. /package/bin/{v11/tasks/actions/InsertGenPk/template/v1/helpers → v14/tasks/actions/InsertAsIs/template/v1}/getData.js +0 -0
  291. /package/bin/{v11/tasks/actions/InsertGenPk/template/v1/helpers → v14/tasks/actions/InsertAsIs/template/v1}/getSchema.js +0 -0
  292. /package/bin/{v11/tasks/actions/WithMail/template/v1/helpers- → v14/tasks/actions/InsertAsIs/template/v1/helpers}/buildMutate.js +0 -0
  293. /package/bin/{v11/tasks/actions/WithMail/template/v1/helpers- → v14/tasks/actions/InsertAsIs/template/v1/helpers}/buildQuery.js +0 -0
  294. /package/bin/{v11/tasks/actions/WithMail/template/v1/helpers- → v14/tasks/actions/InsertAsIs/template/v1/helpers}/file/read.js +0 -0
  295. /package/bin/{v11/tasks/actions/WithMail/template/v1/helpers- → v14/tasks/actions/InsertAsIs/template/v1/helpers}/file/write.js +0 -0
  296. /package/bin/{v11/tasks/actions/WithMail/template/v1/helpers- → v14/tasks/actions/InsertAsIs/template/v1/helpers}/pkHelper.js +0 -0
  297. /package/bin/{v11/tasks/actions/WithMail/template/v1/helpers- → v14/tasks/actions/InsertAsIs/template/v1/helpers}/validate.js +0 -0
  298. /package/bin/{v11/tasks/actions/WithMail/template/v1/helpers- → v14/tasks/actions/InsertAsIs/template/v1/helpers}/validateHelper.js +0 -0
  299. /package/bin/{v11/tasks/actions/WithMail/template/v1/helpers- → v14/tasks/actions/InsertAsIs/template/v1/helpers}/validators/default.js +0 -0
  300. /package/bin/{v11/tasks/actions/WithMail/template/v1/helpers- → v14/tasks/actions/InsertAsIs/template/v1/helpers}/validators/enum.js +0 -0
  301. /package/bin/{v11/tasks/actions/WithMail/template/v1/helpers- → v14/tasks/actions/InsertAsIs/template/v1/helpers}/validators/length.js +0 -0
  302. /package/bin/{v11/tasks/actions/WithMail/template/v1/helpers- → v14/tasks/actions/InsertAsIs/template/v1/helpers}/validators/minMax.js +0 -0
  303. /package/bin/{v11/tasks/actions/WithMail/template/v1/helpers- → v14/tasks/actions/InsertAsIs/template/v1/helpers}/validators/pattern.js +0 -0
  304. /package/bin/{v11/tasks/actions/WithMail/template/v1/helpers- → v14/tasks/actions/InsertAsIs/template/v1/helpers}/validators/required.js +0 -0
  305. /package/bin/{v11/tasks/actions/WithMail/template/v1/helpers- → v14/tasks/actions/InsertAsIs/template/v1/helpers}/validators/type.js +0 -0
  306. /package/bin/{v11/tasks/actions/WithMail/template/v1/helpers- → v14/tasks/actions/InsertAsIs/template/v1/helpers}/validators/unique.js +0 -0
  307. /package/bin/{v11/tasks/actions/InsertGenPk → v14/tasks/actions/InsertAsIs}/template/v1/insertBase.js +0 -0
  308. /package/bin/{v11/tasks/actions/WithMail → v14/tasks/actions/InsertAsIs}/template/v1/insertGenPk.js +0 -0
  309. /package/bin/{v11/tasks/actions/WithMail → v14/tasks/actions/InsertAsIs}/template/v1/middleware.js +0 -0
  310. /package/bin/{v11/tasks/actions/InsertGenPk- → v14/tasks/actions/InsertAsIs}/template/v1/rest.http +0 -0
  311. /package/bin/{v11/tasks/actions/WithMail → v14/tasks/actions/InsertAsIs}/template/v1/service.js +0 -0
  312. /package/bin/{v12 → v14}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/common/readFile.js +0 -0
  313. /package/bin/{v12 → v14}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/common/writeFile.js +0 -0
  314. /package/bin/{v12 → v14}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/updateImports/buildImport.js +0 -0
  315. /package/bin/{v12 → v14}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +0 -0
  316. /package/bin/{v12 → v14}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +0 -0
  317. /package/bin/{v12 → v14}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/updateImports/index.js +0 -0
  318. /package/bin/{v12 → v14}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/updateUse/buildUseLine.js +0 -0
  319. /package/bin/{v12 → v14}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +0 -0
  320. /package/bin/{v12 → v14}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +0 -0
  321. /package/bin/{v12 → v14}/tasks/actions/InsertGenPk/steps/UpdateRoutesJs/updateUse/index.js +0 -0
  322. /package/bin/{v12 → v14}/tasks/actions/InsertGenPk/steps/announce.js +0 -0
  323. /package/bin/{v12/tasks/actions/WithMail → v14/tasks/actions/InsertGenPk}/steps/createActionFolder.js +0 -0
  324. /package/bin/{v12 → v14}/tasks/actions/InsertGenPk/steps/createFolder.js +0 -0
  325. /package/bin/{v12 → v14}/tasks/actions/InsertGenPk/steps/decideTemplate.js +0 -0
  326. /package/bin/{v12 → v14}/tasks/actions/InsertGenPk/steps/locateDestination.js +0 -0
  327. /package/bin/{v12 → v14}/tasks/actions/InsertGenPk/steps/locateSource.js +0 -0
  328. /package/bin/{v12 → v14}/tasks/actions/InsertGenPk/steps/resolveFolderName.js +0 -0
  329. /package/bin/{v12/tasks/actions/WithMail → v14/tasks/actions/InsertGenPk}/steps/showLog.js +0 -0
  330. /package/bin/{v12 → v14}/tasks/actions/InsertGenPk/steps/updateAppJs.js +0 -0
  331. /package/bin/{v12 → v14}/tasks/actions/InsertGenPk/steps/updateEndPointsFile.js +0 -0
  332. /package/bin/{v12/tasks/actions/WithMail → v14/tasks/actions/InsertGenPk}/steps/updateEndPointsJs.js +0 -0
  333. /package/bin/{v11/tasks/actions/WithMail → v14/tasks/actions/InsertGenPk}/template/v1/config/getSchema.js +0 -0
  334. /package/bin/{v12/tasks/actions/InsertAsIs → v14/tasks/actions/InsertGenPk}/template/v1/controller.js +0 -0
  335. /package/bin/{v12/tasks/actions/InsertAsIs → v14/tasks/actions/InsertGenPk}/template/v1/errors.js +0 -0
  336. /package/bin/{v11/tasks/actions/WithMail/template/v1 → v14/tasks/actions/InsertGenPk/template/v1/helpers}/getData.js +0 -0
  337. /package/bin/{v11/tasks/actions/WithMail/template/v1 → v14/tasks/actions/InsertGenPk/template/v1/helpers}/getSchema.js +0 -0
  338. /package/bin/{v11/tasks/actions/WithMail → v14/tasks/actions/InsertGenPk}/template/v1/helpers/pkHelper.js +0 -0
  339. /package/bin/{v11/tasks/actions/WithMail → v14/tasks/actions/InsertGenPk}/template/v1/insertBase.js +0 -0
  340. /package/bin/{v11 → v14}/tasks/actions/InsertGenPk/template/v1/insertGenPk.js +0 -0
  341. /package/bin/{v11 → v14}/tasks/actions/InsertGenPk/template/v1/rest.http +0 -0
  342. /package/bin/{v11 → v14}/tasks/actions/InsertGenPk/template/v1/service.js +0 -0
  343. /package/bin/{v12 → v14}/tasks/actions/WithMail/steps/UpdateRoutesJs/common/readFile.js +0 -0
  344. /package/bin/{v12 → v14}/tasks/actions/WithMail/steps/UpdateRoutesJs/common/writeFile.js +0 -0
  345. /package/bin/{v12 → v14}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateImports/buildImport.js +0 -0
  346. /package/bin/{v12 → v14}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateImports/checkDuplicate.js +0 -0
  347. /package/bin/{v12 → v14}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateImports/findInsertIndex.js +0 -0
  348. /package/bin/{v12 → v14}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateImports/index.js +0 -0
  349. /package/bin/{v12 → v14}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateUse/buildUseLine.js +0 -0
  350. /package/bin/{v12 → v14}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateUse/checkDuplicate.js +0 -0
  351. /package/bin/{v12 → v14}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateUse/findInsertIndex.js +0 -0
  352. /package/bin/{v12 → v14}/tasks/actions/WithMail/steps/UpdateRoutesJs/updateUse/index.js +0 -0
  353. /package/bin/{v12 → v14}/tasks/actions/WithMail/steps/announce.js +0 -0
  354. /package/bin/{v12 → v14}/tasks/actions/WithMail/steps/createFolder.js +0 -0
  355. /package/bin/{v12 → v14}/tasks/actions/WithMail/steps/decideTemplate.js +0 -0
  356. /package/bin/{v12 → v14}/tasks/actions/WithMail/steps/generateRestIfRequested.js +0 -0
  357. /package/bin/{v12 → v14}/tasks/actions/WithMail/steps/locateDestination.js +0 -0
  358. /package/bin/{v12 → v14}/tasks/actions/WithMail/steps/locateSource.js +0 -0
  359. /package/bin/{v12 → v14}/tasks/actions/WithMail/steps/resolveFolderName.js +0 -0
  360. /package/bin/{v12 → v14}/tasks/actions/WithMail/steps/updateAppJs.js +0 -0
  361. /package/bin/{v12 → v14}/tasks/actions/WithMail/steps/updateEndPointsFile.js +0 -0
  362. /package/bin/{v12 → v14}/tasks/actions/WithMail/template/v1/Mail/sendMailCC.js +0 -0
  363. /package/bin/{v12 → v14}/tasks/actions/WithMail/template/v1/Mail/welcome.html +0 -0
  364. /package/bin/{v12/tasks/actions/InsertAsIs → v14/tasks/actions/WithMail}/template/v1/config/getSchema.js +0 -0
  365. /package/bin/{v12/tasks/actions/InsertGenPk → v14/tasks/actions/WithMail}/template/v1/controller.js +0 -0
  366. /package/bin/{v12/tasks/actions/InsertGenPk → v14/tasks/actions/WithMail}/template/v1/errors.js +0 -0
  367. /package/bin/{v12/tasks/actions/InsertAsIs → v14/tasks/actions/WithMail}/template/v1/getData.js +0 -0
  368. /package/bin/{v12/tasks/actions/InsertAsIs → v14/tasks/actions/WithMail}/template/v1/getSchema.js +0 -0
  369. /package/bin/{v12/tasks/actions/InsertGenPk → v14/tasks/actions/WithMail}/template/v1/helpers/pkHelper.js +0 -0
  370. /package/bin/{v12/tasks/actions/InsertAsIs/template/v1/helpers → v14/tasks/actions/WithMail/template/v1/helpers-}/buildMutate.js +0 -0
  371. /package/bin/{v12/tasks/actions/InsertAsIs/template/v1/helpers → v14/tasks/actions/WithMail/template/v1/helpers-}/buildQuery.js +0 -0
  372. /package/bin/{v12/tasks/actions/InsertAsIs/template/v1/helpers → v14/tasks/actions/WithMail/template/v1/helpers-}/file/read.js +0 -0
  373. /package/bin/{v12/tasks/actions/InsertAsIs/template/v1/helpers → v14/tasks/actions/WithMail/template/v1/helpers-}/file/write.js +0 -0
  374. /package/bin/{v12/tasks/actions/InsertAsIs/template/v1/helpers → v14/tasks/actions/WithMail/template/v1/helpers-}/pkHelper.js +0 -0
  375. /package/bin/{v12/tasks/actions/InsertAsIs/template/v1/helpers → v14/tasks/actions/WithMail/template/v1/helpers-}/validate.js +0 -0
  376. /package/bin/{v12/tasks/actions/InsertAsIs/template/v1/helpers → v14/tasks/actions/WithMail/template/v1/helpers-}/validateHelper.js +0 -0
  377. /package/bin/{v12/tasks/actions/InsertAsIs/template/v1/helpers → v14/tasks/actions/WithMail/template/v1/helpers-}/validators/default.js +0 -0
  378. /package/bin/{v12/tasks/actions/InsertAsIs/template/v1/helpers → v14/tasks/actions/WithMail/template/v1/helpers-}/validators/enum.js +0 -0
  379. /package/bin/{v12/tasks/actions/InsertAsIs/template/v1/helpers → v14/tasks/actions/WithMail/template/v1/helpers-}/validators/length.js +0 -0
  380. /package/bin/{v12/tasks/actions/InsertAsIs/template/v1/helpers → v14/tasks/actions/WithMail/template/v1/helpers-}/validators/minMax.js +0 -0
  381. /package/bin/{v12/tasks/actions/InsertAsIs/template/v1/helpers → v14/tasks/actions/WithMail/template/v1/helpers-}/validators/pattern.js +0 -0
  382. /package/bin/{v12/tasks/actions/InsertAsIs/template/v1/helpers → v14/tasks/actions/WithMail/template/v1/helpers-}/validators/required.js +0 -0
  383. /package/bin/{v12/tasks/actions/InsertAsIs/template/v1/helpers → v14/tasks/actions/WithMail/template/v1/helpers-}/validators/type.js +0 -0
  384. /package/bin/{v12/tasks/actions/InsertAsIs/template/v1/helpers → v14/tasks/actions/WithMail/template/v1/helpers-}/validators/unique.js +0 -0
  385. /package/bin/{v12/tasks/actions/InsertAsIs → v14/tasks/actions/WithMail}/template/v1/insertBase.js +0 -0
  386. /package/bin/{v12/tasks/actions/InsertAsIs → v14/tasks/actions/WithMail}/template/v1/insertGenPk.js +0 -0
  387. /package/bin/{v12/tasks/actions/InsertAsIs → v14/tasks/actions/WithMail}/template/v1/middleware.js +0 -0
  388. /package/bin/{v12 → v14}/tasks/actions/WithMail/template/v1/rest.http +0 -0
  389. /package/bin/{v12/tasks/actions/InsertAsIs → v14/tasks/actions/WithMail}/template/v1/service.js +0 -0
  390. /package/bin/{v12/tasks/actions/WithMail → v14/tasks/actions/groupBy}/template/v1/errors.js +0 -0
  391. /package/bin/{v12/tasks/actions/InsertGenPk/template/v1/helpers → v14/tasks/actions/groupBy/template/v1}/getData.js +0 -0
  392. /package/bin/{v12 → v14}/tasks/actions/insertAsIs.js +0 -0
  393. /package/bin/{v12 → v14}/tasks/actions/insertGenPk.js +0 -0
  394. /package/bin/{v12 → v14}/tasks/actions/withMail.js +0 -0
  395. /package/bin/{v12 → v14}/tasks/core/createFolder.js +0 -0
  396. /package/bin/{v12 → v14}/tasks/core/parseInput.js +0 -0
  397. /package/bin/{v12 → v14}/tasks/core/resolveCommand.js +0 -0
  398. /package/bin/{v12 → v14}/tasks/core/showUsage.js +0 -0
@@ -0,0 +1,23 @@
1
+ import { JSONFilePreset } from 'lowdb/node'
2
+
3
+ const validateInput = ({ record }) => {
4
+ if (!record || typeof record !== "object") throw new Error("record must be object");
5
+ };
6
+
7
+ const readUsingLowdb = async ({ inRequestBody, inTablePath, inConfigPath }) => {
8
+ validateInput({ record: inRequestBody });
9
+
10
+ const db = await JSONFilePreset(inTablePath, []);
11
+
12
+ await db.read();
13
+
14
+ const filteredRows = db.data.filter(item => {
15
+ return Object.entries(inRequestBody).every(
16
+ ([key, value]) => item[key] === value
17
+ )
18
+ });
19
+
20
+ return await filteredRows;
21
+ };
22
+
23
+ export default readUsingLowdb;
@@ -0,0 +1,7 @@
1
+ POST http://localhost:3025/api/v1/StockItems/insertGenPk
2
+ Content-Type: application/json
3
+
4
+ {
5
+ "StockBaseUnits": "Mts",
6
+ "sgstRate": " 2.50"
7
+ }
@@ -0,0 +1,9 @@
1
+ import readUsingLowdb from "./readUsingLowdb.js";
2
+
3
+ const startFunc = async ({ inRequestBody, inTablePath, inConfigPath }) => {
4
+ const insertedPk = await readUsingLowdb({ inRequestBody, inTablePath, inConfigPath });
5
+
6
+ return insertedPk;
7
+ };
8
+
9
+ export { startFunc };
@@ -0,0 +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
+ };
@@ -0,0 +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
+ };
@@ -0,0 +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
+ };
@@ -0,0 +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
+ };
@@ -0,0 +1,85 @@
1
+ import { locateSource } from "./Filter/steps/locateSource.js";
2
+ import { locateDestination } from "./Filter/steps/locateDestination.js";
3
+ import { announce } from "./Filter/steps/announce.js";
4
+ import resolveFolderName from "./Filter/steps/resolveFolderName.js";
5
+ import { createActionFolder } from "./Filter/steps/createActionFolder.js";
6
+ import { updateEndPointsJs } from "./Filter/steps/updateEndPointsJs.js";
7
+ import { generateRestIfRequested } from "./Filter/steps/generateRestIfRequested.js";
8
+ import { showLog as writeLog } from "./Filter/steps/showLog.js";
9
+
10
+ const startFunc = async ({ toPath, isAnnounce = true, checkBeforeCreate = true,
11
+ toConfigPath, inTargetPath, inFolderName, inGenerateRest = false, showLog = false,
12
+ inPort
13
+ }) => {
14
+ const cmd = "filter";
15
+
16
+ writeLog({
17
+ enabled: showLog,
18
+ message: "Starting WithMail action.",
19
+ data: { cmd: inFolderName, toPath, inFolderName, inGenerateRest }
20
+ });
21
+
22
+ const resolvedFolderName = resolveFolderName({
23
+ name: inFolderName
24
+ });
25
+
26
+ if (resolvedFolderName.KTF === false) {
27
+ writeLog({
28
+ enabled: showLog,
29
+ message: "Folder name validation failed.",
30
+ data: resolvedFolderName
31
+ });
32
+
33
+ console.log(resolvedFolderName.KReason);
34
+
35
+ return;
36
+ };
37
+
38
+ const source = locateSource();
39
+ const destination = locateDestination({
40
+ inResolvedFolderName: resolvedFolderName,
41
+ toPath
42
+ });
43
+
44
+ writeLog({
45
+ enabled: showLog,
46
+ message: "Resolved source and destination.",
47
+ data: { source, destination }
48
+ });
49
+
50
+ const createFolderResponse = createActionFolder({
51
+ source, destination,
52
+ isAnnounce, checkBeforeCreate, showLog
53
+ });
54
+
55
+ if (createFolderResponse.KTF) {
56
+ await updateEndPointsJs({
57
+ toPath,
58
+ cmd,
59
+ inFolderName,
60
+ showLog
61
+ });
62
+
63
+ generateRestIfRequested({
64
+ inGenerateRest,
65
+ toConfigPath,
66
+ inTargetPath,
67
+ toPath,
68
+ resolvedFolderName,
69
+ isShowLog: showLog,
70
+ inPort
71
+ });
72
+ };
73
+
74
+ if (isAnnounce) announce({ inResolvedFolderName: resolvedFolderName });
75
+
76
+ writeLog({
77
+ enabled: showLog,
78
+ message: "WithMail action completed.",
79
+ data: { resolvedFolderName }
80
+ });
81
+
82
+ return resolvedFolderName;
83
+ };
84
+
85
+ export default startFunc;
@@ -0,0 +1,8 @@
1
+ import fs from "fs";
2
+
3
+ const readFile = (inAppJsPath) => {
4
+ const localPath = inAppJsPath;
5
+ return fs.readFileSync(localPath, "utf-8");
6
+ };
7
+
8
+ export default readFile;
@@ -0,0 +1,10 @@
1
+ import fs from "fs";
2
+
3
+ const writeFile = (inAppJsPath, inContent) => {
4
+ const localPath = inAppJsPath;
5
+ const localContent = inContent;
6
+
7
+ fs.writeFileSync(localPath, localContent);
8
+ };
9
+
10
+ export default writeFile;
@@ -0,0 +1,9 @@
1
+ const buildImport = ({ inFuncName, inEndpoint }) => {
2
+ const localEndpoint = inEndpoint;
3
+
4
+ const safeName = localEndpoint.replace(/[^a-zA-Z0-9]/g, "_");
5
+
6
+ return `import { ${inFuncName} } from "./${localEndpoint}/controller.js";`;
7
+ };
8
+
9
+ export default buildImport;
@@ -0,0 +1,8 @@
1
+ const checkUseDuplicate = ({ inContent, inFuncName }) => {
2
+ const localContent = inContent;
3
+ const toCheckLine = `import { ${inFuncName} } from`;
4
+
5
+ return localContent.includes(toCheckLine);
6
+ };
7
+
8
+ export default checkUseDuplicate;
@@ -0,0 +1,10 @@
1
+ const findInsertIndex = (inContent) => {
2
+ const localContent = inContent;
3
+
4
+ const matches = [...localContent.matchAll(/^\s*import.*$/gm)];
5
+ const last = matches.at(-1);
6
+
7
+ return last ? last.index + last[0].length : 0;
8
+ };
9
+
10
+ export default findInsertIndex;
@@ -0,0 +1,47 @@
1
+ import readFile from "../common/readFile.js";
2
+ import buildImport from "./buildImport.js";
3
+ import checkDuplicate from "./checkDuplicate.js";
4
+ import findInsertIndex from "./findInsertIndex.js";
5
+ import writeFile from "../common/writeFile.js";
6
+
7
+ const updateImports = ({ appJsPath, endpoint, showLog, inFuncName }) => {
8
+ const summary = {
9
+ import: { added: false, line: null },
10
+ };
11
+
12
+ const content = readFile(appJsPath);
13
+
14
+ const importLine = buildImport({
15
+ inEndpoint: endpoint,
16
+ inFuncName
17
+ });
18
+
19
+ const fromCheckDuplicate = checkDuplicate({ inContent: content, inFuncName });
20
+
21
+ if (fromCheckDuplicate) {
22
+ summary.import.skipped = true;
23
+
24
+ if (showLog) console.log(summary);
25
+
26
+ return summary;
27
+ };
28
+
29
+ const index = findInsertIndex(content);
30
+
31
+ const before = content.slice(0, index);
32
+ const lineNumber = before.split("\n").length + 1;
33
+
34
+ const updated =
35
+ before + "\n" + importLine + content.slice(index);
36
+
37
+ writeFile(appJsPath, updated);
38
+
39
+ summary.import.added = true;
40
+ summary.import.line = lineNumber;
41
+
42
+ if (showLog) console.log(summary);
43
+
44
+ return summary;
45
+ };
46
+
47
+ export default updateImports;
@@ -0,0 +1,5 @@
1
+ const buildUseLine = ({ inAppOrRouter, inEndpoint, inFuncName }) => {
2
+ return `${inAppOrRouter}.get('/${inEndpoint}', (req, res) => ${inFuncName}({ res, inTableName : tableName}));`;
3
+ };
4
+
5
+ export default buildUseLine;
@@ -0,0 +1,9 @@
1
+ const checkDuplicate = ({ inContent, inEndpoint, inAppOrRouter }) => {
2
+ const localContent = inContent;
3
+ const localEndpoint = inEndpoint;
4
+ const stringToSearch = `${inAppOrRouter}.get('/${localEndpoint}'`;
5
+
6
+ return localContent.includes(stringToSearch);
7
+ };
8
+
9
+ export default checkDuplicate;
@@ -0,0 +1,10 @@
1
+ const findUseInsertIndex = (inContent) => {
2
+ const localContent = inContent;
3
+
4
+ const matches = [...localContent.matchAll(/const\s+router\s*=\s*express\.Router\(\)/g)];
5
+ const match = matches.at(0);
6
+
7
+ return match ? match.index + match[0].length : localContent.length;
8
+ };
9
+
10
+ export default findUseInsertIndex;
@@ -0,0 +1,56 @@
1
+ import readFile from "../common/readFile.js";
2
+ import writeFile from "../common/writeFile.js";
3
+
4
+ import buildUseLine from "./buildUseLine.js";
5
+ import checkDuplicate from "./checkDuplicate.js";
6
+ import findUseInsertIndex from "./findInsertIndex.js";
7
+
8
+ const appOrRouter = "router";
9
+
10
+ const updateAppUse = ({ appJsPath, endpoint, showLog, inFuncName }) => {
11
+ const summary = {
12
+ use: { added: false, skipped: false, line: null }
13
+ };
14
+
15
+ const content = readFile(appJsPath);
16
+
17
+ const useLine = buildUseLine({
18
+ inAppOrRouter: appOrRouter,
19
+ inEndpoint: endpoint,
20
+ inFuncName
21
+ });
22
+
23
+ const fromCheckDuplicate = checkDuplicate({
24
+ inContent: content,
25
+ inEndpoint: endpoint,
26
+ inAppOrRouter: appOrRouter
27
+ });
28
+ console.log("fromCheckDuplicate : ", fromCheckDuplicate);
29
+
30
+ if (fromCheckDuplicate) {
31
+ summary.use.skipped = true;
32
+
33
+ if (showLog) console.log(summary);
34
+
35
+ return summary;
36
+ };
37
+
38
+ const index = findUseInsertIndex(content);
39
+
40
+ const before = content.slice(0, index);
41
+ const lineNumber = before.split("\n").length + 1;
42
+
43
+ const updated =
44
+ before + "\n" + useLine + content.slice(index);
45
+
46
+ writeFile(appJsPath, updated);
47
+
48
+ summary.use.added = true;
49
+ summary.use.line = lineNumber;
50
+
51
+ if (showLog) console.log(summary);
52
+
53
+ return summary;
54
+ };
55
+
56
+ export default updateAppUse;
@@ -0,0 +1,9 @@
1
+ export const announce = ({ inResolvedFolderName }) => {
2
+ console.log(`[keshavsoft] Folder created: ${inResolvedFolderName}`);
3
+
4
+ console.log("");
5
+ console.log("Next:");
6
+ console.log("");
7
+ console.log(`cd ${inResolvedFolderName}`);
8
+ console.log(`npx kschema-api-gen AddSubRoute`);
9
+ };
@@ -0,0 +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
+ };
@@ -0,0 +1,7 @@
1
+ import fs from "fs";
2
+
3
+ export const createFolder = ({ source, destination }) => {
4
+ fs.mkdirSync(destination, { recursive: true });
5
+
6
+ fs.cpSync(source, destination, { recursive: true });
7
+ };
@@ -0,0 +1,3 @@
1
+ export const decideTemplate = ({ inTemplate }) => {
2
+ return inTemplate || "basic";
3
+ };
@@ -0,0 +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
+ };
@@ -0,0 +1,7 @@
1
+ import path from "path";
2
+
3
+ export const locateDestination = ({ inResolvedFolderName, toPath }) => {
4
+ const localToPath = toPath;
5
+
6
+ return path.join(localToPath, inResolvedFolderName);
7
+ };
@@ -0,0 +1,18 @@
1
+ import fs from "fs";
2
+ import path from "path";
3
+ import { fileURLToPath } from "url";
4
+
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = path.dirname(__filename);
7
+
8
+ export const locateSource = () => {
9
+ const templatePath = path.join(__dirname, "..", "template");
10
+
11
+ const versions = fs.readdirSync(templatePath);
12
+
13
+ const maxVersion = Math.max(
14
+ ...versions.map(v => Number(v.replace("v", "")))
15
+ );
16
+
17
+ return path.join(templatePath, `v${maxVersion}`);
18
+ };
@@ -0,0 +1,20 @@
1
+ import fs from "fs";
2
+
3
+ export default function resolveFolderName({ name, inDefaultFolderName = "InsertGenPk" }) {
4
+ const defaultFolderName = inDefaultFolderName;
5
+
6
+ // case 1: force new → timestamp
7
+ if (name === null) {
8
+ name = defaultFolderName;
9
+ };
10
+
11
+ // case 2: user provided → strict
12
+ if (fs.existsSync(name)) {
13
+ return {
14
+ KTF: false,
15
+ KReason: `Folder already exists : ${name}`
16
+ };
17
+ };
18
+
19
+ return name;
20
+ };
@@ -0,0 +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
+ };
@@ -0,0 +1,7 @@
1
+ import updateImports from "./UpdateRoutesJs/updateImports/index.js";
2
+ import updateAppUse from "./UpdateRoutesJs/updateUse/index.js";
3
+
4
+ export default ({ appJsPath, endpoint }) => {
5
+ updateImports({ appJsPath, endpoint });
6
+ updateAppUse({ appJsPath, endpoint });
7
+ };
@@ -0,0 +1,30 @@
1
+ import fs from 'fs';
2
+
3
+ function updateEndPointsFile({ filePath, inTableName }) {
4
+ try {
5
+ let content = readFile(filePath);
6
+
7
+ content = content.replace("<TABLE_NAME>", inTableName);
8
+
9
+ writeFile(filePath, content);
10
+ } catch (e) {
11
+ handleError(e);
12
+ };
13
+ };
14
+
15
+ // read
16
+ function readFile(filePath) {
17
+ return fs.readFileSync(filePath, "utf-8");
18
+ };
19
+
20
+ // write
21
+ function writeFile(filePath, content) {
22
+ fs.writeFileSync(filePath, content);
23
+ };
24
+
25
+ // error handler
26
+ function handleError(e) {
27
+ console.error("ROUTE USE ERROR:", e.message);
28
+ };
29
+
30
+ export { updateEndPointsFile };
@@ -0,0 +1,28 @@
1
+ const aggConfig = {
2
+ sum: {
3
+ init: 0,
4
+ update: (accVal, currentVal) => accVal + (Number(currentVal) || 0)
5
+ },
6
+ count: {
7
+ init: 0,
8
+ update: (accVal, currentVal) => currentVal !== undefined && currentVal !== null ? accVal + 1 : accVal
9
+ },
10
+ max: {
11
+ init: -Infinity,
12
+ update: (accVal, currentVal) => {
13
+ const val = Number(currentVal);
14
+ return !isNaN(val) ? Math.max(accVal, val) : accVal;
15
+ }
16
+ },
17
+ min: {
18
+ init: Infinity,
19
+ update: (accVal, currentVal) => {
20
+ const val = Number(currentVal);
21
+ return !isNaN(val) ? Math.min(accVal, val) : accVal;
22
+ }
23
+ }
24
+ };
25
+
26
+ const allowedAggFuncs = Object.keys(aggConfig);
27
+
28
+ export { aggConfig, allowedAggFuncs };