ddd-ts-kit 0.109.0 → 0.110.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (479) hide show
  1. package/CHANGELOG.md +142 -0
  2. package/README.fr.md +31 -13
  3. package/README.md +26 -13
  4. package/dist/affected/reach-of.d.ts.map +1 -1
  5. package/dist/affected/reach-of.js +4 -1
  6. package/dist/affected/reach-of.js.map +1 -1
  7. package/dist/check/canonical/holds-shared-files.d.ts +3 -0
  8. package/dist/check/canonical/holds-shared-files.d.ts.map +1 -0
  9. package/dist/check/canonical/holds-shared-files.js +7 -0
  10. package/dist/check/canonical/holds-shared-files.js.map +1 -0
  11. package/dist/check/canonical/is-shared-directory.d.ts +7 -0
  12. package/dist/check/canonical/is-shared-directory.d.ts.map +1 -0
  13. package/dist/check/canonical/is-shared-directory.js +13 -0
  14. package/dist/check/canonical/is-shared-directory.js.map +1 -0
  15. package/dist/check/canonical/role.d.ts +2 -0
  16. package/dist/check/canonical/role.d.ts.map +1 -1
  17. package/dist/check/canonical/roles.d.ts.map +1 -1
  18. package/dist/check/canonical/roles.js +10 -5
  19. package/dist/check/canonical/roles.js.map +1 -1
  20. package/dist/check/canonical/shared-directories.d.ts +3 -0
  21. package/dist/check/canonical/shared-directories.d.ts.map +1 -0
  22. package/dist/check/canonical/shared-directories.js +8 -0
  23. package/dist/check/canonical/shared-directories.js.map +1 -0
  24. package/dist/check/canonical/stray-entry.d.ts.map +1 -1
  25. package/dist/check/canonical/stray-entry.js +43 -4
  26. package/dist/check/canonical/stray-entry.js.map +1 -1
  27. package/dist/check/configuration/module-problems.js +20 -16
  28. package/dist/check/configuration/module-problems.js.map +1 -1
  29. package/dist/check/errors/code-reference.d.ts +7 -0
  30. package/dist/check/errors/code-reference.d.ts.map +1 -0
  31. package/dist/check/errors/code-reference.js +2 -0
  32. package/dist/check/errors/code-reference.js.map +1 -0
  33. package/dist/check/errors/code-references.d.ts +7 -0
  34. package/dist/check/errors/code-references.d.ts.map +1 -0
  35. package/dist/check/errors/code-references.js +13 -0
  36. package/dist/check/errors/code-references.js.map +1 -0
  37. package/dist/check/errors/kit-code-keys.d.ts +3 -0
  38. package/dist/check/errors/kit-code-keys.d.ts.map +1 -0
  39. package/dist/check/errors/kit-code-keys.js +5 -0
  40. package/dist/check/errors/kit-code-keys.js.map +1 -0
  41. package/dist/check/errors/kit-codes-list.d.ts +3 -0
  42. package/dist/check/errors/kit-codes-list.d.ts.map +1 -0
  43. package/dist/check/errors/kit-codes-list.js +3 -0
  44. package/dist/check/errors/kit-codes-list.js.map +1 -0
  45. package/dist/check/explain/errors-docs.d.ts.map +1 -1
  46. package/dist/check/explain/errors-docs.js +5 -2
  47. package/dist/check/explain/errors-docs.js.map +1 -1
  48. package/dist/check/explain/module-docs.d.ts.map +1 -1
  49. package/dist/check/explain/module-docs.js +9 -6
  50. package/dist/check/explain/module-docs.js.map +1 -1
  51. package/dist/check/explain/tree-docs.d.ts.map +1 -1
  52. package/dist/check/explain/tree-docs.js +3 -1
  53. package/dist/check/explain/tree-docs.js.map +1 -1
  54. package/dist/check/fixtures/errors-route.d.ts +1 -1
  55. package/dist/check/fixtures/errors-route.d.ts.map +1 -1
  56. package/dist/check/fixtures/errors-route.js +2 -2
  57. package/dist/check/fixtures/errors-route.js.map +1 -1
  58. package/dist/check/fixtures/fixtures.d.ts.map +1 -1
  59. package/dist/check/fixtures/fixtures.js +2 -0
  60. package/dist/check/fixtures/fixtures.js.map +1 -1
  61. package/dist/check/fixtures/module-fixtures.d.ts.map +1 -1
  62. package/dist/check/fixtures/module-fixtures.js +27 -31
  63. package/dist/check/fixtures/module-fixtures.js.map +1 -1
  64. package/dist/check/fixtures/named-refusal-fixtures.d.ts.map +1 -1
  65. package/dist/check/fixtures/named-refusal-fixtures.js +40 -0
  66. package/dist/check/fixtures/named-refusal-fixtures.js.map +1 -1
  67. package/dist/check/fixtures/shared-folder-fixtures.d.ts +7 -0
  68. package/dist/check/fixtures/shared-folder-fixtures.d.ts.map +1 -0
  69. package/dist/check/fixtures/shared-folder-fixtures.js +176 -0
  70. package/dist/check/fixtures/shared-folder-fixtures.js.map +1 -0
  71. package/dist/check/fixtures/shared-kernel-fixtures.d.ts.map +1 -1
  72. package/dist/check/fixtures/shared-kernel-fixtures.js +11 -0
  73. package/dist/check/fixtures/shared-kernel-fixtures.js.map +1 -1
  74. package/dist/check/fixtures/with-modules.d.ts +4 -0
  75. package/dist/check/fixtures/with-modules.d.ts.map +1 -0
  76. package/dist/check/fixtures/with-modules.js +22 -0
  77. package/dist/check/fixtures/with-modules.js.map +1 -0
  78. package/dist/check/model/context-location.d.ts +5 -0
  79. package/dist/check/model/context-location.d.ts.map +1 -1
  80. package/dist/check/project/locate.js +12 -5
  81. package/dist/check/project/locate.js.map +1 -1
  82. package/dist/check/rules/errors-known-code.d.ts.map +1 -1
  83. package/dist/check/rules/errors-known-code.js +60 -9
  84. package/dist/check/rules/errors-known-code.js.map +1 -1
  85. package/dist/check/rules/module-complete.d.ts.map +1 -1
  86. package/dist/check/rules/module-complete.js +19 -20
  87. package/dist/check/rules/module-complete.js.map +1 -1
  88. package/dist/check/rules/module-declared.js +5 -1
  89. package/dist/check/rules/module-declared.js.map +1 -1
  90. package/dist/check/rules/test-acceptance-black-box.d.ts.map +1 -1
  91. package/dist/check/rules/test-acceptance-black-box.js +6 -7
  92. package/dist/check/rules/test-acceptance-black-box.js.map +1 -1
  93. package/dist/check/rules/test-builder-required.d.ts.map +1 -1
  94. package/dist/check/rules/test-builder-required.js +15 -12
  95. package/dist/check/rules/test-builder-required.js.map +1 -1
  96. package/dist/check/rules/test-spec-required.d.ts.map +1 -1
  97. package/dist/check/rules/test-spec-required.js +12 -11
  98. package/dist/check/rules/test-spec-required.js.map +1 -1
  99. package/dist/check/rules/tree-closed.js +1 -1
  100. package/dist/check/rules/tree-closed.js.map +1 -1
  101. package/dist/check/support/path-in-context.d.ts +1 -1
  102. package/dist/check/support/path-in-context.d.ts.map +1 -1
  103. package/dist/check/support/path-in-context.js +6 -3
  104. package/dist/check/support/path-in-context.js.map +1 -1
  105. package/dist/check/support/test-folder-of.d.ts +11 -0
  106. package/dist/check/support/test-folder-of.d.ts.map +1 -0
  107. package/dist/check/support/test-folder-of.js +12 -0
  108. package/dist/check/support/test-folder-of.js.map +1 -0
  109. package/dist/commands/drizzle-generate.d.ts.map +1 -1
  110. package/dist/commands/drizzle-generate.js +9 -0
  111. package/dist/commands/drizzle-generate.js.map +1 -1
  112. package/dist/commands/generate.js +9 -1
  113. package/dist/commands/generate.js.map +1 -1
  114. package/dist/commands/lint.d.ts +2 -1
  115. package/dist/commands/lint.d.ts.map +1 -1
  116. package/dist/commands/lint.js +4 -1
  117. package/dist/commands/lint.js.map +1 -1
  118. package/dist/commands/move-to-module.d.ts.map +1 -1
  119. package/dist/commands/move-to-module.js +0 -2
  120. package/dist/commands/move-to-module.js.map +1 -1
  121. package/dist/context-layout/context-layout.d.ts +3 -2
  122. package/dist/context-layout/context-layout.d.ts.map +1 -1
  123. package/dist/context-layout/context-layout.js +18 -8
  124. package/dist/context-layout/context-layout.js.map +1 -1
  125. package/dist/context-layout/imports-of.d.ts +11 -0
  126. package/dist/context-layout/imports-of.d.ts.map +1 -0
  127. package/dist/context-layout/imports-of.js +20 -0
  128. package/dist/context-layout/imports-of.js.map +1 -0
  129. package/dist/context-layout/module-moves.d.ts +10 -7
  130. package/dist/context-layout/module-moves.d.ts.map +1 -1
  131. package/dist/context-layout/module-moves.js +65 -122
  132. package/dist/context-layout/module-moves.js.map +1 -1
  133. package/dist/context-layout/runner-configs-by-hand.d.ts +11 -0
  134. package/dist/context-layout/runner-configs-by-hand.d.ts.map +1 -0
  135. package/dist/context-layout/runner-configs-by-hand.js +23 -0
  136. package/dist/context-layout/runner-configs-by-hand.js.map +1 -0
  137. package/dist/context-layout/settle.d.ts +20 -0
  138. package/dist/context-layout/settle.d.ts.map +1 -0
  139. package/dist/context-layout/settle.js +58 -0
  140. package/dist/context-layout/settle.js.map +1 -0
  141. package/dist/controllers/declared-code.d.ts +3 -0
  142. package/dist/controllers/declared-code.d.ts.map +1 -0
  143. package/dist/controllers/declared-code.js +8 -0
  144. package/dist/controllers/declared-code.js.map +1 -0
  145. package/dist/controllers/finish-migration.d.ts.map +1 -1
  146. package/dist/controllers/finish-migration.js +5 -3
  147. package/dist/controllers/finish-migration.js.map +1 -1
  148. package/dist/controllers/migrate-context.js +3 -2
  149. package/dist/controllers/migrate-context.js.map +1 -1
  150. package/dist/controllers/plan-context.d.ts +1 -1
  151. package/dist/controllers/plan-context.d.ts.map +1 -1
  152. package/dist/controllers/plan-context.js +11 -6
  153. package/dist/controllers/plan-context.js.map +1 -1
  154. package/dist/controllers/render-controller.d.ts.map +1 -1
  155. package/dist/controllers/render-controller.js +20 -4
  156. package/dist/controllers/render-controller.js.map +1 -1
  157. package/dist/depcruise/hygiene-rules.js +2 -2
  158. package/dist/depcruise/hygiene-rules.js.map +1 -1
  159. package/dist/depcruise/test-files.d.ts +4 -1
  160. package/dist/depcruise/test-files.d.ts.map +1 -1
  161. package/dist/depcruise/test-files.js +5 -2
  162. package/dist/depcruise/test-files.js.map +1 -1
  163. package/dist/describe/codes-named-in.d.ts +8 -0
  164. package/dist/describe/codes-named-in.d.ts.map +1 -0
  165. package/dist/describe/codes-named-in.js +33 -0
  166. package/dist/describe/codes-named-in.js.map +1 -0
  167. package/dist/describe/read-controllers.js +2 -2
  168. package/dist/describe/read-controllers.js.map +1 -1
  169. package/dist/describe/read-route-groups.d.ts +6 -2
  170. package/dist/describe/read-route-groups.d.ts.map +1 -1
  171. package/dist/describe/read-route-groups.js +8 -4
  172. package/dist/describe/read-route-groups.js.map +1 -1
  173. package/dist/describe/read-routes.d.ts.map +1 -1
  174. package/dist/describe/read-routes.js +7 -2
  175. package/dist/describe/read-routes.js.map +1 -1
  176. package/dist/docs/spec-heading.d.ts +5 -4
  177. package/dist/docs/spec-heading.d.ts.map +1 -1
  178. package/dist/docs/spec-heading.js +4 -6
  179. package/dist/docs/spec-heading.js.map +1 -1
  180. package/dist/docs/spec-of-page.d.ts +7 -2
  181. package/dist/docs/spec-of-page.d.ts.map +1 -1
  182. package/dist/docs/spec-of-page.js +8 -3
  183. package/dist/docs/spec-of-page.js.map +1 -1
  184. package/dist/docs/specs-by-directory.d.ts +2 -2
  185. package/dist/docs/specs-by-directory.d.ts.map +1 -1
  186. package/dist/docs/specs-by-directory.js +4 -5
  187. package/dist/docs/specs-by-directory.js.map +1 -1
  188. package/dist/docs/write-behaviour.d.ts +1 -1
  189. package/dist/docs/write-behaviour.d.ts.map +1 -1
  190. package/dist/docs/write-behaviour.js +17 -2
  191. package/dist/docs/write-behaviour.js.map +1 -1
  192. package/dist/file-moves/follow-in-migrations.d.ts +10 -0
  193. package/dist/file-moves/follow-in-migrations.d.ts.map +1 -0
  194. package/dist/file-moves/follow-in-migrations.js +30 -0
  195. package/dist/file-moves/follow-in-migrations.js.map +1 -0
  196. package/dist/file-moves/move-files.d.ts +2 -1
  197. package/dist/file-moves/move-files.d.ts.map +1 -1
  198. package/dist/file-moves/move-files.js +4 -2
  199. package/dist/file-moves/move-files.js.map +1 -1
  200. package/dist/generate/errors/write-named-refusal.d.ts.map +1 -1
  201. package/dist/generate/errors/write-named-refusal.js +6 -2
  202. package/dist/generate/errors/write-named-refusal.js.map +1 -1
  203. package/dist/generate/kinds/builder-kind.js +1 -1
  204. package/dist/generate/kinds/builder-kind.js.map +1 -1
  205. package/dist/generate/kinds/declarations-of.js +1 -1
  206. package/dist/generate/kinds/declarations-of.js.map +1 -1
  207. package/dist/generate/kinds/declare-storage.d.ts +2 -1
  208. package/dist/generate/kinds/declare-storage.d.ts.map +1 -1
  209. package/dist/generate/kinds/declare-storage.js +19 -5
  210. package/dist/generate/kinds/declare-storage.js.map +1 -1
  211. package/dist/generate/kinds/e2e/acting-role.d.ts +15 -0
  212. package/dist/generate/kinds/e2e/acting-role.d.ts.map +1 -0
  213. package/dist/generate/kinds/e2e/acting-role.js +19 -0
  214. package/dist/generate/kinds/e2e/acting-role.js.map +1 -0
  215. package/dist/generate/kinds/e2e-kind.d.ts.map +1 -1
  216. package/dist/generate/kinds/e2e-kind.js +5 -1
  217. package/dist/generate/kinds/e2e-kind.js.map +1 -1
  218. package/dist/generate/kinds/gateway-kind.d.ts.map +1 -1
  219. package/dist/generate/kinds/gateway-kind.js +14 -2
  220. package/dist/generate/kinds/gateway-kind.js.map +1 -1
  221. package/dist/generate/kinds/generate-repository.js +1 -1
  222. package/dist/generate/kinds/generate-repository.js.map +1 -1
  223. package/dist/generate/kinds/module-kind.d.ts.map +1 -1
  224. package/dist/generate/kinds/module-kind.js +9 -1
  225. package/dist/generate/kinds/module-kind.js.map +1 -1
  226. package/dist/generate/kinds/route/group-vars.d.ts.map +1 -1
  227. package/dist/generate/kinds/route/group-vars.js +5 -3
  228. package/dist/generate/kinds/route/group-vars.js.map +1 -1
  229. package/dist/generate/kinds/route/route-vars.js +1 -1
  230. package/dist/generate/kinds/route/route-vars.js.map +1 -1
  231. package/dist/generate/kinds/world/context-fakes.d.ts +1 -1
  232. package/dist/generate/kinds/world/context-fakes.d.ts.map +1 -1
  233. package/dist/generate/kinds/world/context-fakes.js +8 -7
  234. package/dist/generate/kinds/world/context-fakes.js.map +1 -1
  235. package/dist/generate/kinds/world/context-world.d.ts +1 -1
  236. package/dist/generate/kinds/world/context-world.d.ts.map +1 -1
  237. package/dist/generate/kinds/world/context-world.js +3 -1
  238. package/dist/generate/kinds/world/context-world.js.map +1 -1
  239. package/dist/generate/place-generated-files.d.ts +2 -0
  240. package/dist/generate/place-generated-files.d.ts.map +1 -1
  241. package/dist/generate/place-generated-files.js +13 -13
  242. package/dist/generate/place-generated-files.js.map +1 -1
  243. package/dist/generate/refresh-docs.d.ts +1 -1
  244. package/dist/generate/refresh-docs.d.ts.map +1 -1
  245. package/dist/generate/refresh-docs.js +3 -1
  246. package/dist/generate/refresh-docs.js.map +1 -1
  247. package/dist/generate/refuse-earlier-layout.d.ts +4 -3
  248. package/dist/generate/refuse-earlier-layout.d.ts.map +1 -1
  249. package/dist/generate/refuse-earlier-layout.js +9 -6
  250. package/dist/generate/refuse-earlier-layout.js.map +1 -1
  251. package/dist/help/flag-notes.d.ts.map +1 -1
  252. package/dist/help/flag-notes.js +8 -7
  253. package/dist/help/flag-notes.js.map +1 -1
  254. package/dist/help/tool-notes.d.ts.map +1 -1
  255. package/dist/help/tool-notes.js +23 -17
  256. package/dist/help/tool-notes.js.map +1 -1
  257. package/dist/help/usage.js +1 -1
  258. package/dist/help/work-notes.d.ts.map +1 -1
  259. package/dist/help/work-notes.js +4 -3
  260. package/dist/help/work-notes.js.map +1 -1
  261. package/dist/init/manifest/versions.js +25 -25
  262. package/dist/init/rewire-personal-data.d.ts.map +1 -1
  263. package/dist/init/rewire-personal-data.js +4 -2
  264. package/dist/init/rewire-personal-data.js.map +1 -1
  265. package/dist/init/rewire-tables.d.ts.map +1 -1
  266. package/dist/init/rewire-tables.js +4 -2
  267. package/dist/init/rewire-tables.js.map +1 -1
  268. package/dist/init/with-held-imports.d.ts +9 -0
  269. package/dist/init/with-held-imports.d.ts.map +1 -0
  270. package/dist/init/with-held-imports.js +15 -0
  271. package/dist/init/with-held-imports.js.map +1 -0
  272. package/dist/knip/enter-module-test-folders.d.ts +10 -0
  273. package/dist/knip/enter-module-test-folders.d.ts.map +1 -0
  274. package/dist/knip/enter-module-test-folders.js +42 -0
  275. package/dist/knip/enter-module-test-folders.js.map +1 -0
  276. package/dist/knip/index.d.ts +1 -0
  277. package/dist/knip/index.d.ts.map +1 -1
  278. package/dist/knip/index.js +1 -0
  279. package/dist/knip/index.js.map +1 -1
  280. package/dist/lint/eslint-in-project.d.ts +1 -1
  281. package/dist/lint/eslint-in-project.d.ts.map +1 -1
  282. package/dist/lint/eslint-in-project.js +3 -2
  283. package/dist/lint/eslint-in-project.js.map +1 -1
  284. package/dist/lint/lint-run.d.ts +2 -0
  285. package/dist/lint/lint-run.d.ts.map +1 -1
  286. package/dist/merge/landed-commit.js +14 -2
  287. package/dist/merge/landed-commit.js.map +1 -1
  288. package/dist/merge/landed-point.js +3 -0
  289. package/dist/merge/landed-point.js.map +1 -1
  290. package/dist/merge/lost/dropped-additions.d.ts +20 -0
  291. package/dist/merge/lost/dropped-additions.d.ts.map +1 -0
  292. package/dist/merge/lost/dropped-additions.js +42 -0
  293. package/dist/merge/lost/dropped-additions.js.map +1 -0
  294. package/dist/merge/lost/expected-over.d.ts +13 -0
  295. package/dist/merge/lost/expected-over.d.ts.map +1 -0
  296. package/dist/merge/lost/expected-over.js +16 -0
  297. package/dist/merge/lost/expected-over.js.map +1 -0
  298. package/dist/merge/lost/kept-rows.d.ts +4 -2
  299. package/dist/merge/lost/kept-rows.d.ts.map +1 -1
  300. package/dist/merge/lost/kept-rows.js +10 -7
  301. package/dist/merge/lost/kept-rows.js.map +1 -1
  302. package/dist/merge/lost/lost-lines.d.ts +2 -2
  303. package/dist/merge/lost/lost-lines.d.ts.map +1 -1
  304. package/dist/merge/lost/lost-lines.js +5 -3
  305. package/dist/merge/lost/lost-lines.js.map +1 -1
  306. package/dist/merge/lost/lost-tests.d.ts +2 -2
  307. package/dist/merge/lost/lost-tests.d.ts.map +1 -1
  308. package/dist/merge/lost/lost-tests.js +5 -3
  309. package/dist/merge/lost/lost-tests.js.map +1 -1
  310. package/dist/merge/lost/verify-merge.d.ts.map +1 -1
  311. package/dist/merge/lost/verify-merge.js +12 -5
  312. package/dist/merge/lost/verify-merge.js.map +1 -1
  313. package/dist/merge/merge-trunk.d.ts.map +1 -1
  314. package/dist/merge/merge-trunk.js +35 -7
  315. package/dist/merge/merge-trunk.js.map +1 -1
  316. package/dist/merge/slices-from-fork.d.ts +20 -0
  317. package/dist/merge/slices-from-fork.d.ts.map +1 -0
  318. package/dist/merge/slices-from-fork.js +27 -0
  319. package/dist/merge/slices-from-fork.js.map +1 -0
  320. package/dist/merge/trunk-of.d.ts +4 -2
  321. package/dist/merge/trunk-of.d.ts.map +1 -1
  322. package/dist/merge/trunk-of.js +4 -2
  323. package/dist/merge/trunk-of.js.map +1 -1
  324. package/dist/migration/warn-dropped-context-tables.d.ts.map +1 -1
  325. package/dist/migration/warn-dropped-context-tables.js +6 -4
  326. package/dist/migration/warn-dropped-context-tables.js.map +1 -1
  327. package/dist/model-modules/context-level-folder-of.d.ts +9 -0
  328. package/dist/model-modules/context-level-folder-of.d.ts.map +1 -0
  329. package/dist/model-modules/context-level-folder-of.js +11 -0
  330. package/dist/model-modules/context-level-folder-of.js.map +1 -0
  331. package/dist/model-modules/earlier-folders.d.ts +10 -0
  332. package/dist/model-modules/earlier-folders.d.ts.map +1 -0
  333. package/dist/model-modules/earlier-folders.js +20 -0
  334. package/dist/model-modules/earlier-folders.js.map +1 -0
  335. package/dist/model-modules/folders-of-context.d.ts +8 -0
  336. package/dist/model-modules/folders-of-context.d.ts.map +1 -0
  337. package/dist/model-modules/folders-of-context.js +11 -0
  338. package/dist/model-modules/folders-of-context.js.map +1 -0
  339. package/dist/model-modules/held-file-of.d.ts +10 -0
  340. package/dist/model-modules/held-file-of.d.ts.map +1 -0
  341. package/dist/model-modules/held-file-of.js +18 -0
  342. package/dist/model-modules/held-file-of.js.map +1 -0
  343. package/dist/model-modules/index.d.ts +8 -1
  344. package/dist/model-modules/index.d.ts.map +1 -1
  345. package/dist/model-modules/index.js +8 -1
  346. package/dist/model-modules/index.js.map +1 -1
  347. package/dist/model-modules/into-module.d.ts +3 -3
  348. package/dist/model-modules/into-module.d.ts.map +1 -1
  349. package/dist/model-modules/into-module.js +9 -12
  350. package/dist/model-modules/into-module.js.map +1 -1
  351. package/dist/model-modules/is-context-level.d.ts +4 -5
  352. package/dist/model-modules/is-context-level.d.ts.map +1 -1
  353. package/dist/model-modules/is-context-level.js +6 -16
  354. package/dist/model-modules/is-context-level.js.map +1 -1
  355. package/dist/model-modules/is-held-by-shared.d.ts +8 -0
  356. package/dist/model-modules/is-held-by-shared.d.ts.map +1 -0
  357. package/dist/model-modules/is-held-by-shared.js +20 -0
  358. package/dist/model-modules/is-held-by-shared.js.map +1 -0
  359. package/dist/model-modules/module-layers.d.ts +9 -2
  360. package/dist/model-modules/module-layers.d.ts.map +1 -1
  361. package/dist/model-modules/module-layers.js +10 -3
  362. package/dist/model-modules/module-layers.js.map +1 -1
  363. package/dist/model-modules/module-name-flaw.d.ts +4 -1
  364. package/dist/model-modules/module-name-flaw.d.ts.map +1 -1
  365. package/dist/model-modules/module-name-flaw.js +6 -2
  366. package/dist/model-modules/module-name-flaw.js.map +1 -1
  367. package/dist/model-modules/module-placement.d.ts +8 -6
  368. package/dist/model-modules/module-placement.d.ts.map +1 -1
  369. package/dist/model-modules/module-placement.js +32 -30
  370. package/dist/model-modules/module-placement.js.map +1 -1
  371. package/dist/model-modules/module-split.d.ts +7 -5
  372. package/dist/model-modules/module-split.d.ts.map +1 -1
  373. package/dist/model-modules/module-split.js +18 -17
  374. package/dist/model-modules/module-split.js.map +1 -1
  375. package/dist/model-modules/module-test-folder-of.d.ts +8 -0
  376. package/dist/model-modules/module-test-folder-of.d.ts.map +1 -0
  377. package/dist/model-modules/module-test-folder-of.js +11 -0
  378. package/dist/model-modules/module-test-folder-of.js.map +1 -0
  379. package/dist/model-modules/role-folders-of.d.ts +5 -3
  380. package/dist/model-modules/role-folders-of.d.ts.map +1 -1
  381. package/dist/model-modules/role-folders-of.js +19 -11
  382. package/dist/model-modules/role-folders-of.js.map +1 -1
  383. package/dist/model-modules/role-folders.d.ts +1 -1
  384. package/dist/model-modules/role-folders.js +1 -1
  385. package/dist/model-modules/subject-module.d.ts +13 -0
  386. package/dist/model-modules/subject-module.d.ts.map +1 -0
  387. package/dist/model-modules/subject-module.js +34 -0
  388. package/dist/model-modules/subject-module.js.map +1 -0
  389. package/dist/move-to-module/moves-into-module.d.ts.map +1 -1
  390. package/dist/move-to-module/moves-into-module.js +29 -16
  391. package/dist/move-to-module/moves-into-module.js.map +1 -1
  392. package/dist/naming/plural.d.ts.map +1 -1
  393. package/dist/naming/plural.js +5 -0
  394. package/dist/naming/plural.js.map +1 -1
  395. package/dist/plan/format-plan.js +1 -1
  396. package/dist/plan/format-plan.js.map +1 -1
  397. package/dist/progress/build-next-of.d.ts.map +1 -1
  398. package/dist/progress/build-next-of.js +8 -3
  399. package/dist/progress/build-next-of.js.map +1 -1
  400. package/dist/refusals/apply-plan.d.ts.map +1 -1
  401. package/dist/refusals/apply-plan.js +8 -4
  402. package/dist/refusals/apply-plan.js.map +1 -1
  403. package/dist/refusals/move-named-specs.d.ts.map +1 -1
  404. package/dist/refusals/move-named-specs.js +7 -4
  405. package/dist/refusals/move-named-specs.js.map +1 -1
  406. package/dist/refusals/unit-folder-of.d.ts +9 -0
  407. package/dist/refusals/unit-folder-of.d.ts.map +1 -0
  408. package/dist/refusals/unit-folder-of.js +15 -0
  409. package/dist/refusals/unit-folder-of.js.map +1 -0
  410. package/dist/slice/plan-staging.d.ts +2 -1
  411. package/dist/slice/plan-staging.d.ts.map +1 -1
  412. package/dist/slice/plan-staging.js +3 -1
  413. package/dist/slice/plan-staging.js.map +1 -1
  414. package/dist/stack/declares-roles.d.ts +8 -0
  415. package/dist/stack/declares-roles.d.ts.map +1 -0
  416. package/dist/stack/declares-roles.js +11 -0
  417. package/dist/stack/declares-roles.js.map +1 -0
  418. package/dist/stack/stack-vars.d.ts.map +1 -1
  419. package/dist/stack/stack-vars.js +2 -1
  420. package/dist/stack/stack-vars.js.map +1 -1
  421. package/dist/version.d.ts +1 -1
  422. package/dist/version.js +1 -1
  423. package/dist/worker/progress-of.js +12 -1
  424. package/dist/worker/progress-of.js.map +1 -1
  425. package/dist/worker/row-commits.js +7 -1
  426. package/dist/worker/row-commits.js.map +1 -1
  427. package/package.json +6 -6
  428. package/templates/command/handler.spec.buses.ts.tpl +4 -1
  429. package/templates/command/handler.spec.container.ts.tpl +6 -1
  430. package/templates/controller/controller.spec.ts.tpl +4 -1
  431. package/templates/controller/guard.spec.ts.tpl +2 -2
  432. package/templates/controller/guard.ts.tpl +2 -1
  433. package/templates/e2e/e2e.spec.ts.tpl +5 -2
  434. package/templates/error/codes-import.ts.tpl +1 -0
  435. package/templates/error/refusal-case.spec.ts.tpl +1 -1
  436. package/templates/error/refusal.spec.ts.tpl +1 -0
  437. package/templates/file-upload/handler.spec.ts.tpl +4 -1
  438. package/templates/init/e2e/create-credentials.jwt.ts.tpl +13 -0
  439. package/templates/init/e2e/create-credentials.keycloak.ts.tpl +13 -0
  440. package/templates/init/e2e/create-credentials.none.ts.tpl +13 -0
  441. package/templates/init/e2e/create-credentials.passport.ts.tpl +13 -0
  442. package/templates/init/platform/audit/search-audit-entries/search-audit-entries.controller.ts.tpl +2 -2
  443. package/templates/init/platform/audit/search-audit-entries/search-audit-entries.route.ts.tpl +2 -2
  444. package/templates/init/platform/composition/create-platform.manual.ts.tpl +14 -4
  445. package/templates/init/platform/http/start-http-server.fastify.ts.tpl +8 -2
  446. package/templates/init/rules/presentation.md.tpl +2 -2
  447. package/templates/init/rules/tests.md.tpl +1 -0
  448. package/templates/nest-controller/controller.spec.ts.tpl +4 -1
  449. package/templates/pipeline/biome.json.tpl +1 -1
  450. package/templates/pipeline/jest.mutation.config.js.tpl +1 -1
  451. package/templates/pipeline/knip.json.tpl +2 -0
  452. package/templates/pipeline/package-scripts.json +2 -2
  453. package/templates/pipeline/vitest.config.ts.tpl +11 -6
  454. package/templates/pipeline/vitest.mutation.config.ts.tpl +1 -1
  455. package/templates/presets/identity/context/presentation/http/accounts.routes.ts.tpl +2 -1
  456. package/templates/presets/identity/context/presentation/http/invitations.routes.ts.tpl +2 -1
  457. package/templates/presets/identity/context/presentation/http/organisations.routes.ts.tpl +2 -1
  458. package/templates/presets/identity/context/test/unit/change-member-role.handler.spec.ts.tpl +2 -1
  459. package/templates/presets/identity/context/test/unit/deactivate-account.handler.spec.ts.tpl +4 -4
  460. package/templates/presets/identity/context/test/unit/grant-delegation.handler.spec.ts.tpl +2 -1
  461. package/templates/presets/identity/context/test/unit/invite-member.handler.spec.ts.tpl +3 -3
  462. package/templates/presets/identity/context/test/unit/provision-account.handler.spec.ts.tpl +2 -1
  463. package/templates/presets/identity/context/test/unit/remove-member.handler.spec.ts.tpl +2 -1
  464. package/templates/presets/identity/context/test/unit/revoke-delegation.handler.spec.ts.tpl +2 -1
  465. package/templates/presets/identity/context/test/unit/revoke-invitation.handler.spec.ts.tpl +2 -1
  466. package/templates/presets/identity/context/test/unit/search-members.handler.spec.ts.tpl +2 -2
  467. package/templates/query/handler.spec.buses.ts.tpl +4 -1
  468. package/templates/query/handler.spec.container.ts.tpl +6 -1
  469. package/templates/query/search.handler.spec.buses.ts.tpl +2 -2
  470. package/templates/query/search.handler.spec.container.ts.tpl +2 -2
  471. package/templates/query/search.reader.spec.ts.tpl +2 -2
  472. package/templates/route/route.class-validator.ts.tpl +5 -0
  473. package/templates/route/route.none.ts.tpl +6 -1
  474. package/templates/route/route.search.ts.tpl +3 -3
  475. package/templates/route/route.spec.ts.tpl +4 -1
  476. package/templates/route/route.standard-schema.ts.tpl +5 -0
  477. package/templates/route/route.typebox.ts.tpl +5 -0
  478. package/templates/route/route.zod.ts.tpl +5 -0
  479. package/templates/value-object/value-object.spec.ts.tpl +6 -3
@@ -11,5 +11,7 @@ export interface Role {
11
11
  readonly perContext?: readonly string[];
12
12
  /** Suffixes whose files need a spec (test/spec-required). */
13
13
  readonly specFor?: readonly string[];
14
+ /** True when `shared/` of a context divided into modules holds the directory too, for what belongs to no module. */
15
+ readonly shared?: boolean;
14
16
  }
15
17
  //# sourceMappingURL=role.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"role.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/role.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,IAAI;IACnB,iFAAiF;IACjF,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,4EAA4E;IAC5E,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,2GAA2G;IAC3G,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,wDAAwD;IACxD,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,iIAAiI;IACjI,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC"}
1
+ {"version":3,"file":"role.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/role.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,IAAI;IACnB,iFAAiF;IACjF,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,4EAA4E;IAC5E,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,2GAA2G;IAC3G,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,wDAAwD;IACxD,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,iIAAiI;IACjI,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,oHAAoH;IACpH,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;CAC3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/roles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC,qEAAqE;AACrE,eAAO,MAAM,KAAK,EAAE,SAAS,IAAI,EA6FhC,CAAC"}
1
+ {"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/roles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC,qEAAqE;AACrE,eAAO,MAAM,KAAK,EAAE,SAAS,IAAI,EAkGhC,CAAC"}
@@ -68,12 +68,17 @@ export const ROLES = [
68
68
  {
69
69
  directory: 'infrastructure/persistence',
70
70
  suffixes: ['.repository.ts', '.mapper.ts', '.reader.ts', '.schema.ts', '.personal-fields.ts'],
71
+ shared: true,
71
72
  },
72
73
  { directory: 'infrastructure/external', suffixes: [] },
73
74
  { directory: 'infrastructure/anti-corruption', suffixes: [] },
74
- { directory: 'presentation/http', suffixes: ['.routes.ts', '.route.ts', '.controller.ts', '.dto.ts'] },
75
- { directory: 'presentation/http/guards', suffixes: ['.guard.ts'] },
76
- { directory: 'presentation/http/shared', suffixes: [] },
75
+ {
76
+ directory: 'presentation/http',
77
+ suffixes: ['.routes.ts', '.route.ts', '.controller.ts', '.dto.ts'],
78
+ shared: true,
79
+ },
80
+ { directory: 'presentation/http/guards', suffixes: ['.guard.ts'], shared: true },
81
+ { directory: 'presentation/http/shared', suffixes: [], shared: true },
77
82
  {
78
83
  directory: 'presentation/http/*/*',
79
84
  suffixes: [
@@ -90,7 +95,7 @@ export const ROLES = [
90
95
  ],
91
96
  },
92
97
  { directory: 'presentation/cli', suffixes: [] },
93
- { directory: 'test/builders', suffixes: ['.builder.ts'] },
94
- { directory: 'test/worlds', suffixes: ['.world.ts'] },
98
+ { directory: 'test/builders', suffixes: ['.builder.ts'], shared: true },
99
+ { directory: 'test/worlds', suffixes: ['.world.ts'], shared: true },
95
100
  ];
96
101
  //# sourceMappingURL=roles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"roles.js","sourceRoot":"","sources":["../../../src/check/canonical/roles.ts"],"names":[],"mappings":"AAEA,qEAAqE;AACrE,MAAM,CAAC,MAAM,KAAK,GAAoB;IACpC,EAAE,SAAS,EAAE,oBAAoB,EAAE,QAAQ,EAAE,EAAE,EAAE;IACjD,EAAE,SAAS,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC,eAAe,CAAC,EAAE,UAAU,EAAE,IAAI,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EAAE,EAAE,EAAE;IACtD,EAAE,SAAS,EAAE,gCAAgC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC7D;QACE,SAAS,EAAE,mBAAmB;QAC9B,QAAQ,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,SAAS,CAAC;QAClE,MAAM,EAAE,IAAI;KACb;IACD,EAAE,SAAS,EAAE,0BAA0B,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE;IAChF,EAAE,SAAS,EAAE,0BAA0B,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;IACrE;QACE,SAAS,EAAE,uBAAuB;QAClC,QAAQ,EAAE;YACR,gBAAgB;YAChB,YAAY;YACZ,WAAW;YACX,aAAa;YACb,UAAU;YACV,cAAc;YACd,YAAY;YACZ,UAAU;YACV,YAAY;YACZ,gBAAgB;SACjB;KACF;IACD,EAAE,SAAS,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC/C,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE;IACvE,EAAE,SAAS,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE;CACpE,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** The directories `shared/` of a context divided into modules holds files in, relative to it: its role directories, and the open ones of its tests: what the specs of several modules share, and the specs of what it holds (a guard) or of several modules. */
2
+ export declare const SHARED_DIRECTORIES: readonly string[];
3
+ //# sourceMappingURL=shared-directories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared-directories.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/shared-directories.ts"],"names":[],"mappings":"AAGA,iQAAiQ;AACjQ,eAAO,MAAM,kBAAkB,EAAE,SAAS,MAAM,EAG/C,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { OPEN_DIRECTORIES } from './open-directories.js';
2
+ import { ROLES } from './roles.js';
3
+ /** The directories `shared/` of a context divided into modules holds files in, relative to it: its role directories, and the open ones of its tests: what the specs of several modules share, and the specs of what it holds (a guard) or of several modules. */
4
+ export const SHARED_DIRECTORIES = [
5
+ ...ROLES.filter((role) => role.shared === true).map((role) => role.directory),
6
+ ...OPEN_DIRECTORIES,
7
+ ];
8
+ //# sourceMappingURL=shared-directories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared-directories.js","sourceRoot":"","sources":["../../../src/check/canonical/shared-directories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,iQAAiQ;AACjQ,MAAM,CAAC,MAAM,kBAAkB,GAAsB;IACnD,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC;IAC7E,GAAG,gBAAgB;CACpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"stray-entry.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/stray-entry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAK3C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAsB1C;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAkB1E"}
1
+ {"version":3,"file":"stray-entry.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/stray-entry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAY3C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AA0B1C;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAsB1E"}
@@ -2,8 +2,10 @@ import path from 'node:path';
2
2
  import { CONTEXT_FILES } from '../../context-files/index.js';
3
3
  import { controllersFile } from '../../nest-controllers/controllers-file.js';
4
4
  import { barrelFile, dependenciesFile, isDeclarationsFile } from '../../declared/index.js';
5
- import { declaredModules, moduleFileOf, moduleOfModuleFile, moduleSplit, WITHOUT_MODULE } from '../../model-modules/index.js';
5
+ import { declaredModules, moduleFileOf, moduleOfModuleFile, moduleSplit, SHARED_FOLDER, WITHOUT_MODULE, } from '../../model-modules/index.js';
6
6
  import { isCanonicalDirectory } from './is-canonical-directory.js';
7
+ import { holdsSharedFiles } from './holds-shared-files.js';
8
+ import { isSharedDirectory } from './is-shared-directory.js';
7
9
  import { OPEN_DIRECTORIES } from './open-directories.js';
8
10
  import { roleOf } from './role-of.js';
9
11
  import { ownEntry } from '../../config/values/own-entry.js';
@@ -19,6 +21,9 @@ export function strayEntry(entry, config) {
19
21
  if (placed === undefined || (placed.module !== undefined && placed.inside === '') || inDotDirectory(entry)) {
20
22
  return undefined;
21
23
  }
24
+ if (placed.shared) {
25
+ return strayInShared(placed, entry.endsWith('/'));
26
+ }
22
27
  // At its root, a module of the model holds its module file, which the module file of the context composes.
23
28
  if (moduleOfModuleFile(placed.inside, placed.modules) !== undefined) {
24
29
  return undefined;
@@ -44,16 +49,50 @@ function place(entry, config) {
44
49
  return undefined;
45
50
  }
46
51
  const modules = declaredModules(config, context);
47
- const { module, path: inside } = moduleSplit(rest.join('/'), modules);
52
+ const extras = ownEntry(contexts, context)?.extraDirectories ?? [];
53
+ const written = rest.join('/');
54
+ const { module, path: split } = moduleSplit(written, modules);
55
+ // The whole of shared/ is closed, what it does not hold too, unless the config opens it by name: it is then read as written.
56
+ const underShared = modules.length > 0 && rest[0] === SHARED_FOLDER;
57
+ const shared = underShared && !coveredByExtra(extras, written);
58
+ const unsplit = underShared ? written : split;
48
59
  return {
49
60
  context,
50
61
  declared: stack.style === 'declared',
51
- inside,
62
+ inside: shared ? rest.slice(1).join('/') : unsplit,
63
+ shared,
52
64
  modules,
53
65
  ...(module === undefined ? {} : { module }),
54
- extras: ownEntry(contexts, context)?.extraDirectories ?? [],
66
+ extras,
55
67
  };
56
68
  }
69
+ /**
70
+ * `shared/` of a context divided into modules is closed: the directories that hold what belongs to
71
+ * no module, and no other. An extra directory of the config opens it only when it names `shared/`.
72
+ */
73
+ function strayInShared({ context, declared, inside, modules }, directory) {
74
+ const written = `${SHARED_FOLDER}/${inside}`;
75
+ const held = `${SHARED_FOLDER}/ of ${context} holds only what belongs to none of its modules (${modules.join(', ')}): infrastructure/persistence/ (the schema and the tables of the context), presentation/http/ (its route groups, guards/ and shared/) and test/ (the worlds, the fakes and builders of no module, the specs of what it holds or of several modules)`;
76
+ if (directory) {
77
+ return isSharedDirectory(inside)
78
+ ? undefined
79
+ : {
80
+ message: `"${written}" is not a directory of ${SHARED_FOLDER}/.`,
81
+ fix: `${held}. Move its files into the module whose concepts they serve, in the directory of their role (<module>/<layer>/<role>/).`,
82
+ };
83
+ }
84
+ if (OTHER_CODE.test(inside)) {
85
+ return notTypeScript(written);
86
+ }
87
+ // The declarations of a layer of shared/, which the generator writes for the guards it holds.
88
+ const generated = declared && inside.includes('/') && isDeclarationsFile(context, inside, WITHOUT_MODULE);
89
+ return !inside.endsWith('.ts') || generated || holdsSharedFiles(path.posix.dirname(inside))
90
+ ? undefined
91
+ : {
92
+ message: `"${written}" is not in a directory of ${SHARED_FOLDER}/.`,
93
+ fix: `${held}. Move it into one of them, or into the module whose concepts it serves.`,
94
+ };
95
+ }
57
96
  function strayDirectory({ context, inside, module, extras }) {
58
97
  if (isCanonicalDirectory(inside) || coveredByExtra(extras, inside)) {
59
98
  return undefined;
@@ -1 +1 @@
1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C,IAAI,CAAC,IAAI,CAAC,QAAQ,OAAO,YAAY,CAAC;IAEtE,OAAO;QACL,OAAO,EAAE,IAAI,IAAI,oCAAoC;QACrD,GAAG,EAAE,gDAAgD,OAAO,iCAAiC;KAC9F,CAAC;AACJ,CAAC;AAED,SAAS,cAAc,CAAC,MAAyB,EAAE,SAAiB;IAClE,OAAO,MAAM,CAAC,IAAI,CAChB,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,KAAK,KAAK,IAAI,SAAS,CAAC,UAAU,CAAC,GAAG,KAAK,GAAG,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,SAAS,GAAG,CAAC,CACzG,CAAC;AACJ,CAAC"}
@@ -31,22 +31,7 @@ export function moduleProblems(context, { modules }, written) {
31
31
  }
32
32
  function namingProblems(context, modules) {
33
33
  return modules.flatMap(({ name, classification }) => {
34
- const reason = moduleNameFlaw(name)?.reason;
35
- const problems = [];
36
- if (reason === 'format') {
37
- problems.push({
38
- needle: name,
39
- message: `The module "${name}" of "${context}" is not written in kebab-case.`,
40
- fix: `Name it as its folder is named, in kebab-case: <module>/, holding <module>/domain/, <module>/application/...`,
41
- });
42
- }
43
- else if (reason === 'role-folder') {
44
- problems.push({
45
- needle: name,
46
- message: `The module "${name}" of "${context}" has the name of a role folder.`,
47
- fix: 'A module is a part of the model, named in its language; its layers keep their role folders under it (<module>/domain/aggregates/).',
48
- });
49
- }
34
+ const problems = nameProblems(context, name);
50
35
  if (classification !== undefined && !isOneOf(CLASSIFICATIONS, classification)) {
51
36
  problems.push({
52
37
  needle: name,
@@ -57,4 +42,23 @@ function namingProblems(context, modules) {
57
42
  return problems;
58
43
  });
59
44
  }
45
+ /** What to say of a name that cannot be a folder of the tree of its context, by the reason `moduleNameFlaw` gives; a technical word is for the rule module/declared. */
46
+ const REFUSED_NAMES = {
47
+ format: (name, context) => ({
48
+ message: `The module "${name}" of "${context}" is not written in kebab-case.`,
49
+ fix: `Name it as its folder is named, in kebab-case: <module>/, holding <module>/domain/, <module>/application/...`,
50
+ }),
51
+ 'role-folder': (name, context) => ({
52
+ message: `The module "${name}" of "${context}" has the name of a role folder.`,
53
+ fix: 'A module is a part of the model, named in its language; its layers keep their role folders under it (<module>/domain/aggregates/).',
54
+ }),
55
+ 'shared-folder': (name, context) => ({
56
+ message: `The module "${name}" of "${context}" takes the name of the folder ${name}/.`,
57
+ fix: `${name}/ is where a context divided into modules keeps what belongs to none of its modules (the schema of its database, its route groups, what its specs share): it is never declared. Name the module after the cluster of concepts it holds.`,
58
+ }),
59
+ };
60
+ function nameProblems(context, name) {
61
+ const refused = REFUSED_NAMES[moduleNameFlaw(name)?.reason ?? ''];
62
+ return refused === undefined ? [] : [{ needle: name, ...refused(name, context) }];
63
+ }
60
64
  //# sourceMappingURL=module-problems.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module-problems.js","sourceRoot":"","sources":["../../../src/check/configuration/module-problems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAsB,MAAM,cAAc,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAShD,MAAM,KAAK,GACT,+IAA+I,CAAC;AAElJ;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,OAAe,EAAE,EAAE,OAAO,EAAiB,EAAE,OAAgB;IAC1F,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QACvB,OAAO;YACL;gBACE,MAAM,EAAE,SAAS;gBACjB,OAAO,EAAE,YAAY,OAAO,4CAA4C,OAAO,YAAY;gBAC3F,GAAG,EAAE,KAAK;aACX;SACF,CAAC;IACJ,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC;SACnC,MAAM,C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AAC,OAAe,EAAE,IAAY;IACjD,MAAM,OAAO,GAAG,aAAa,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC;IAElE,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;AACpF,CAAC"}
@@ -0,0 +1,7 @@
1
+ /** A code named by a member of a code list, `SchedulingCodes.SlotTaken`: the list, the key, and where it is written. */
2
+ export interface CodeReference {
3
+ readonly list: string;
4
+ readonly key: string;
5
+ readonly start: number;
6
+ }
7
+ //# sourceMappingURL=code-reference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-reference.d.ts","sourceRoot":"","sources":["../../../src/check/errors/code-reference.ts"],"names":[],"mappings":"AAAA,wHAAwH;AACxH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=code-reference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-reference.js","sourceRoot":"","sources":["../../../src/check/errors/code-reference.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { CodeReference } from './code-reference.js';
2
+ /**
3
+ * The members of a code list a text names between two offsets, each one whole:
4
+ * `SchedulingCodes.SlotTaken`, `KitCodes.Forbidden`. A call, a longer chain and a spread are not one.
5
+ */
6
+ export declare function codeReferences(code: string, from: number, to: number): CodeReference[];
7
+ //# sourceMappingURL=code-references.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-references.d.ts","sourceRoot":"","sources":["../../../src/check/errors/code-references.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAItD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,aAAa,EAAE,CAMtF"}
@@ -0,0 +1,13 @@
1
+ const MEMBER = /(?<![\w$.])([A-Za-z_$][\w$]*)\s*\.\s*([A-Za-z_$][\w$]*)(?![\w$]|\s*[.(])/g;
2
+ /**
3
+ * The members of a code list a text names between two offsets, each one whole:
4
+ * `SchedulingCodes.SlotTaken`, `KitCodes.Forbidden`. A call, a longer chain and a spread are not one.
5
+ */
6
+ export function codeReferences(code, from, to) {
7
+ return [...code.slice(from, to).matchAll(MEMBER)].map((match) => ({
8
+ list: match[1] ?? '',
9
+ key: match[2] ?? '',
10
+ start: from + match.index,
11
+ }));
12
+ }
13
+ //# sourceMappingURL=code-references.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-references.js","sourceRoot":"","sources":["../../../src/check/errors/code-references.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAG,2EAA2E,CAAC;AAE3F;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,IAAY,EAAE,IAAY,EAAE,EAAU;IACnE,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAChE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE;QACpB,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE;QACnB,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,KAAK;KAC1B,CAAC,CAAC,CAAC;AACN,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** The codes of the kit by the key `KitCodes` of `@ddd-ts-kit/kernel` gives each: `Forbidden` names `FORBIDDEN`. */
2
+ export declare const KIT_CODE_KEYS: ReadonlyMap<string, string>;
3
+ //# sourceMappingURL=kit-code-keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kit-code-keys.d.ts","sourceRoot":"","sources":["../../../src/check/errors/kit-code-keys.ts"],"names":[],"mappings":"AAGA,oHAAoH;AACpH,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAErD,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { toName } from '../../naming/index.js';
2
+ import { KIT_ERROR_CODES } from './kit-error-codes.js';
3
+ /** The codes of the kit by the key `KitCodes` of `@ddd-ts-kit/kernel` gives each: `Forbidden` names `FORBIDDEN`. */
4
+ export const KIT_CODE_KEYS = new Map(KIT_ERROR_CODES.map((code) => [toName(code).pascal, code]));
5
+ //# sourceMappingURL=kit-code-keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kit-code-keys.js","sourceRoot":"","sources":["../../../src/check/errors/kit-code-keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,oHAAoH;AACpH,MAAM,CAAC,MAAM,aAAa,GAAgC,IAAI,GAAG,CAC/D,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAC3D,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** The name of the code list of the kit, as `@ddd-ts-kit/kernel` exports it. */
2
+ export declare const KIT_CODES_LIST = "KitCodes";
3
+ //# sourceMappingURL=kit-codes-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kit-codes-list.d.ts","sourceRoot":"","sources":["../../../src/check/errors/kit-codes-list.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,eAAO,MAAM,cAAc,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** The name of the code list of the kit, as `@ddd-ts-kit/kernel` exports it. */
2
+ export const KIT_CODES_LIST = 'KitCodes';
3
+ //# sourceMappingURL=kit-codes-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kit-codes-list.js","sourceRoot":"","sources":["../../../src/check/errors/kit-codes-list.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"errors-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/errors-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAgDzD,CAAC"}
1
+ {"version":3,"file":"errors-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/errors-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmDzD,CAAC"}
@@ -41,10 +41,13 @@ export class SlotTaken extends DomainRefusal {
41
41
  }`,
42
42
  },
43
43
  'errors/known-code': {
44
- why: 'The `errors` list of a route is what the OpenAPI document promises: one problem response per status of the codes it names. A code written there that no refusal sets, misspelled or left behind by a renamed factory, is a response the contract documents and the API never gives, while the refusal really raised is missing from it. A code exists when a factory or an error class of the context of the route sets it, when the <context>.codes.ts of that context lists it (under "stack.refusals": "named"), when a class outside the contexts (the platform, the shared kernel) does, or when it is a code of the kit: VALIDATION_FAILED, NOT_FOUND, CONFLICT, INVARIANT_VIOLATION, UNAUTHORIZED, FORBIDDEN, NOT_ACCEPTABLE, CONCURRENCY_CONFLICT, INVALID_CRITERIA, INVALID_PAGE_REQUEST, TIMEOUT, CIRCUIT_OPEN, BULKHEAD_FULL, ATTEMPTS_EXHAUSTED, SERVICE_UNAVAILABLE (a unit of work the database could not serve in time), the conditions of a write: PRECONDITION_FAILED, PRECONDITION_REQUIRED, and the refusals of a file: FILE_TOO_LARGE, UNSUPPORTED_MEDIA_TYPE, FILE_NOT_FOUND, FILE_REJECTED, INVALID_FILE_KEY. A code another context sets does not count: a context answers with its own language. Judged under "stack.refusals": "factories" and "named".',
44
+ why: 'The `errors` list of a route is what the OpenAPI document promises: one problem response per status of the codes it names. A code written there that no refusal sets, misspelled or left behind by a renamed factory, is a response the contract documents and the API never gives, while the refusal really raised is missing from it. A code is written as a string or as a member of a code list, `SchedulingCodes.SlotTaken` or `KitCodes.Forbidden` of @ddd-ts-kit/kernel, which the compiler checks too; a key the list does not hold is reported, and so is a list that is neither that of a context, of the shared kernel nor of the kit. A code exists when a factory or an error class of the context of the route sets it, when the <context>.codes.ts of that context lists it (under "stack.refusals": "named"), when a class outside the contexts (the platform, the shared kernel) does, or when it is a code of the kit: VALIDATION_FAILED, NOT_FOUND, CONFLICT, INVARIANT_VIOLATION, UNAUTHORIZED, FORBIDDEN, NOT_ACCEPTABLE, CONCURRENCY_CONFLICT, INVALID_CRITERIA, INVALID_PAGE_REQUEST, TIMEOUT, CIRCUIT_OPEN, BULKHEAD_FULL, ATTEMPTS_EXHAUSTED, SERVICE_UNAVAILABLE (a unit of work the database could not serve in time), the conditions of a write: PRECONDITION_FAILED, PRECONDITION_REQUIRED, and the refusals of a file: FILE_TOO_LARGE, UNSUPPORTED_MEDIA_TYPE, FILE_NOT_FOUND, FILE_REJECTED, INVALID_FILE_KEY. A code another context sets does not count: a context answers with its own language. Judged under "stack.refusals": "factories" and "named".',
45
45
  bad: `// domain/errors/appointment.error.ts sets 'SLOT_TAKEN'
46
46
  defineRoute({ method: 'POST', path: '/appointments', errors: ['FORBIDDEN', 'SLOT_ALREADY_TAKEN'], security: ['bearer'] }, book);`,
47
- good: `defineRoute({ method: 'POST', path: '/appointments', errors: ['FORBIDDEN', 'SLOT_TAKEN'], security: ['bearer'] }, book);`,
47
+ good: `defineRoute({ method: 'POST', path: '/appointments', errors: ['FORBIDDEN', 'SLOT_TAKEN'], security: ['bearer'] }, book);
48
+
49
+ // or, under "stack.refusals": "named", by the members of the code lists
50
+ defineRoute({ method: 'POST', path: '/appointments', errors: [KitCodes.Forbidden, SchedulingCodes.SlotTaken], security: ['bearer'] }, book);`,
48
51
  },
49
52
  };
50
53
  //# sourceMappingURL=errors-docs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors-docs.js","sourceRoot":"","sources":["../../../src/check/explain/errors-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,oBAAoB,EAAE;QACpB,GAAG,EAAE,ggCAAggC;QACrgC,GAAG,EAAE;;;;YAIG;QACR,IAAI,EAAE;;;;YAIE;KACT;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,qyCAAqyC;QAC1yC,GAAG,EAAE;;;;;;;;;EASP;QACE,IAAI,EAAE;;;;;;;;;;;;;;EAcR;KACC;IACD,mBAAmB,EAAE;QACnB,GAAG,EAAE,ktCAAktC;QACvtC,GAAG,EAAE;iIACwH;QAC7H,IAAI,EAAE,0HAA0H;KACjI;CACF,CAAC"}
1
+ {"version":3,"file":"errors-docs.js","sourceRoot":"","sources":["../../../src/check/explain/errors-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,oBAAoB,EAAE;QACpB,GAAG,EAAE,ggCAAggC;QACrgC,GAAG,EAAE;;;;YAIG;QACR,IAAI,EAAE;;;;YAIE;KACT;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,qyCAAqyC;QAC1yC,GAAG,EAAE;;;;;;;;;EASP;QACE,IAAI,EAAE;;;;;;;;;;;;;;EAcR;KACC;IACD,mBAAmB,EAAE;QACnB,GAAG,EAAE,4/CAA4/C;QACjgD,GAAG,EAAE;iIACwH;QAC7H,IAAI,EAAE;;;6IAGmI;KAC1I;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"module-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/module-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmCzD,CAAC"}
1
+ {"version":3,"file":"module-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/module-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAsCzD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  export const MODULE_DOCS = {
2
2
  'module/declared': {
3
- why: 'A module of the model divides one bounded context, one language, one schema and one consistency, into parts a reader opens separately. Evans: "Choose modules that tell the story of the system and contain a cohesive set of concepts. Give the modules names that become part of the ubiquitous language." A module named after a technical grouping (shared, common, core, utils) tells no story and becomes the place where everything else goes. The row of the "## Modules" table of CONTEXT.md says what each holds, so that a person or an agent picks the right one before opening a file. A part that needs its own glossary, its own schema or its own published language is not a module: it is another context.',
4
- bad: `"scheduling": { "modules": { "shared": {}, "calendar-stuff": {} } }
3
+ why: 'A module of the model divides one bounded context, one language, one schema and one consistency, into parts a reader opens separately. Evans: "Choose modules that tell the story of the system and contain a cohesive set of concepts. Give the modules names that become part of the ubiquitous language." A module named after a technical grouping (common, core, utils) tells no story and becomes the place where everything else goes; `shared` is no module either, it is the folder of what belongs to none, and config/valid refuses it as a name. The row of the "## Modules" table of CONTEXT.md says what each holds, so that a person or an agent picks the right one before opening a file. A part that needs its own glossary, its own schema or its own published language is not a module: it is another context.',
4
+ bad: `"scheduling": { "modules": { "common": {}, "calendar-stuff": {} } }
5
5
  // CONTEXT.md has no "## Modules" section`,
6
6
  good: `"scheduling": { "modules": { "calendars": { "classification": "supporting" }, "waitlist": {} } }
7
7
  // CONTEXT.md
@@ -12,15 +12,18 @@ export const MODULE_DOCS = {
12
12
  | \`waitlist\` | The waitlist of a calendar and the offers made to waiters. |`,
13
13
  },
14
14
  'module/complete': {
15
- why: 'A context half divided into modules is read two ways at once: a concept may be in its module or still at the level of the context, and the reader has to look in both. Once a context declares modules, each module is one folder of the context holding its four layers, and every file of a layer belongs to one of them, with its specs in the module folder of its test folder (test/unit/<module>/). The context keeps at its own level what every module shares: the closed list of its error codes (<context>.codes.ts) and its permission set (<context>.permissions.ts) at its root, the schema, tables and migrations of its database (infrastructure/persistence/), its route groups, guards and shared shapes (presentation/http/), the fakes, builders and worlds of its specs, and the generated declarations. A module still where 0.86 and 0.87 put it (domain/<module>/) is reported too, as an error: `ddd-ts-kit context-layout` moves it. It is a warning so that a large context moves into its modules one cluster per commit, with `ddd-ts-kit move-to-module`, which rewrites the imports and takes the specs of a moved file with it.',
15
+ why: 'A context half divided into modules is read two ways at once: a concept may be in its module or still at the level of the context, and the reader has to look in both. Once a context declares modules, no layer folder stays at its root beside them: each module is one folder of the context holding its four layers and its tests (<module>/test/, with unit/, integration/, builders/ and fakes/), so that a part of the model is opened, moved and reviewed as one folder. A builder or a fake follows its subject, the aggregate or the port it is named after. What belongs to no module has one place: the closed list of its error codes (<context>.codes.ts) and its permission set (<context>.permissions.ts) at the root of the context, and in shared/ the schema and tables of its database (shared/infrastructure/persistence/), its route groups, guards and shared shapes (shared/presentation/http/), its worlds and the fakes, builders and specs of no module (shared/test/). shared/ holds no domain and no application: a concept two modules need belongs to one of them, or is a module. A file of a layer left at the level of the context, or a file of a module left in shared/, is a warning, so that a large context moves into its modules one cluster per commit with `ddd-ts-kit move-to-module`, which rewrites the imports and takes the specs of a moved file with it. The layout of an earlier version is an error whatever the severity of the rule: test/ at the level of the context, or a layer folder there that holds nothing but what shared/ holds now; `ddd-ts-kit context-layout` moves them.',
16
16
  bad: `contexts/scheduling/calendars/domain/aggregates/calendar.aggregate.ts
17
17
  contexts/scheduling/domain/aggregates/waitlist.aggregate.ts // still at the level of the context
18
- contexts/scheduling/infrastructure/persistence/knex-waitlist.repository.ts // an adapter of the waitlist, outside it`,
18
+ contexts/scheduling/shared/infrastructure/persistence/knex-waitlist.repository.ts // an adapter of the waitlist, in shared/
19
+ contexts/scheduling/test/unit/calendars/calendar.aggregate.spec.ts // the earlier layout: an error`,
19
20
  good: `contexts/scheduling/calendars/domain/aggregates/calendar.aggregate.ts
21
+ contexts/scheduling/calendars/test/unit/calendar.aggregate.spec.ts
22
+ contexts/scheduling/calendars/test/builders/calendar.builder.ts
20
23
  contexts/scheduling/waitlist/domain/aggregates/waitlist.aggregate.ts
21
24
  contexts/scheduling/waitlist/infrastructure/persistence/knex-waitlist.repository.ts
22
- contexts/scheduling/test/unit/waitlist/waitlist.aggregate.spec.ts
23
- contexts/scheduling/infrastructure/persistence/scheduling.schema.ts // the database of the context
25
+ contexts/scheduling/shared/infrastructure/persistence/scheduling.schema.ts // the database of the context
26
+ contexts/scheduling/shared/test/worlds/scheduling.world.ts
24
27
  contexts/scheduling/scheduling.codes.ts // one per context, at its root`,
25
28
  },
26
29
  'module/no-cycle': {
@@ -1 +1 @@
1
- {"version":3,"file":"module-docs.js","sourceRoot":"","sources":["../../../src/check/explain/module-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,iBAAiB,EAAE;QACjB,GAAG,EAAE,8rBAA8rB;QACnsB,GAAG,EAAE;0CACiC;QACtC,IAAI,EAAE;;;;;;8EAMoE;KAC3E;IACD,iBAAiB,EAAE;QACjB,GAAG,EAAE,gmCAAgmC;QACrmC,GAAG,EAAE;;uHAE8G;QACnH,IAAI,EAAE;;;;;6GAKmG;KAC1G;IACD,iBAAiB,EAAE;QACjB,GAAG,EAAE,0jBAA0jB;QAC/jB,GAAG,EAAE;;;oGAG2F;QAChG,IAAI,EAAE;;oFAE0E;KACjF;CACF,CAAC"}
1
+ {"version":3,"file":"module-docs.js","sourceRoot":"","sources":["../../../src/check/explain/module-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,iBAAiB,EAAE;QACjB,GAAG,EAAE,qyBAAqyB;QAC1yB,GAAG,EAAE;0CACiC;QACtC,IAAI,EAAE;;;;;;8EAMoE;KAC3E;IACD,iBAAiB,EAAE;QACjB,GAAG,EAAE,8iDAA8iD;QACnjD,GAAG,EAAE;;;6GAGoG;QACzG,IAAI,EAAE;;;;;;;6GAOmG;KAC1G;IACD,iBAAiB,EAAE;QACjB,GAAG,EAAE,0jBAA0jB;QAC/jB,GAAG,EAAE;;;oGAG2F;QAChG,IAAI,EAAE;;oFAE0E;KACjF;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tree-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAgIvD,CAAC"}
1
+ {"version":3,"file":"tree-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAkIvD,CAAC"}
@@ -5,7 +5,9 @@ export const TREE_DOCS = {
5
5
  good: `contexts/billing/domain/value-objects/money.vo.ts
6
6
  contexts/billing/billing.declarations.ts // declared style only
7
7
  contexts/billing/application/application.declarations.ts // declared style only
8
- contexts/billing/invoices/invoices.module.ts // explicit style, a module of the model`,
8
+ contexts/billing/invoices/invoices.module.ts // explicit style, a module of the model
9
+ contexts/billing/invoices/test/unit/invoice.aggregate.spec.ts // a module holds its tests
10
+ contexts/billing/shared/infrastructure/persistence/billing.schema.ts // what belongs to no module`,
9
11
  },
10
12
  'tree/context-doc': {
11
13
  why: 'CONTEXT.md is where the vocabulary and the boundaries are agreed with the domain experts. Without it, names drift and nobody can tell whether a concept belongs here. The classification says how much design effort the context deserves.',
@@ -1 +1 @@
1
- {"version":3,"file":"tree-docs.js","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAsC;IAC1D,aAAa,EAAE;QACb,GAAG,EAAE,k8CAAk8C;QACv8C,GAAG,EAAE,2CAA2C;QAChD,IAAI,EAAE;;;2GAGiG;KACxG;IACD,kBAAkB,EAAE;QAClB,GAAG,EAAE,4OAA4O;QACjP,GAAG,EAAE,6GAA6G;QAClH,IAAI,EAAE,6GAA6G;KACpH;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,g9BAAg9B;QACr9B,GAAG,EAAE,iHAAiH;QACtH,IAAI,EAAE,2HAA2H;KAClI;IACD,eAAe,EAAE;QACf,GAAG,EAAE,ihCAAihC;QACthC,GAAG,EAAE,8BAA8B;QACnC,IAAI,EAAE;;;;qEAI2D;KAClE;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,kyBAAkyB;QACvyB,GAAG,EAAE;;;;kCAIyB;QAC9B,IAAI,EAAE;;;;;oCAK0B;KACjC;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,svCAAsvC;QAC3vC,GAAG,EAAE;;;EAGP;QACE,IAAI,EAAE;;;EAGR;KACC;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,kYAAkY;QACvY,GAAG,EAAE;;;;;;;2CAOkC;QACvC,IAAI,EAAE;;;4BAGkB;KACzB;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,kaAAka;QACva,GAAG,EAAE,kFAAkF;QACvF,IAAI,EAAE,qCAAqC;KAC5C;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,y9BAAy9B;QAC99B,GAAG,EAAE;;;uBAGc;QACnB,IAAI,EAAE;;;;;;;;2FAQiF;KACxF;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,qlCAAqlC;QAC1lC,GAAG,EAAE;gHACuG;QAC5G,IAAI,EAAE;;;;;qHAK2G;KAClH;IACD,eAAe,EAAE;QACf,GAAG,EAAE,4SAA4S;QACjT,GAAG,EAAE;gDACuC;QAC5C,IAAI,EAAE;qDAC2C;KAClD;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,gUAAgU;QACrU,GAAG,EAAE,iFAAiF;QACtF,IAAI,EAAE;8BACoB;KAC3B;IACD,2BAA2B,EAAE;QAC3B,GAAG,EAAE,uvBAAuvB;QAC5vB,GAAG,EAAE;qFAC4E;QACjF,IAAI,EAAE;;;KAGL;KACF;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,yqBAAyqB;QAC9qB,GAAG,EAAE,yEAAyE;QAC9E,IAAI,EAAE;qFAC2E;KAClF;CACF,CAAC"}
1
+ {"version":3,"file":"tree-docs.js","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAsC;IAC1D,aAAa,EAAE;QACb,GAAG,EAAE,k8CAAk8C;QACv8C,GAAG,EAAE,2CAA2C;QAChD,IAAI,EAAE;;;;;kGAKwF;KAC/F;IACD,kBAAkB,EAAE;QAClB,GAAG,EAAE,4OAA4O;QACjP,GAAG,EAAE,6GAA6G;QAClH,IAAI,EAAE,6GAA6G;KACpH;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,g9BAAg9B;QACr9B,GAAG,EAAE,iHAAiH;QACtH,IAAI,EAAE,2HAA2H;KAClI;IACD,eAAe,EAAE;QACf,GAAG,EAAE,ihCAAihC;QACthC,GAAG,EAAE,8BAA8B;QACnC,IAAI,EAAE;;;;qEAI2D;KAClE;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,kyBAAkyB;QACvyB,GAAG,EAAE;;;;kCAIyB;QAC9B,IAAI,EAAE;;;;;oCAK0B;KACjC;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,svCAAsvC;QAC3vC,GAAG,EAAE;;;EAGP;QACE,IAAI,EAAE;;;EAGR;KACC;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,kYAAkY;QACvY,GAAG,EAAE;;;;;;;2CAOkC;QACvC,IAAI,EAAE;;;4BAGkB;KACzB;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,kaAAka;QACva,GAAG,EAAE,kFAAkF;QACvF,IAAI,EAAE,qCAAqC;KAC5C;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,y9BAAy9B;QAC99B,GAAG,EAAE;;;uBAGc;QACnB,IAAI,EAAE;;;;;;;;2FAQiF;KACxF;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,qlCAAqlC;QAC1lC,GAAG,EAAE;gHACuG;QAC5G,IAAI,EAAE;;;;;qHAK2G;KAClH;IACD,eAAe,EAAE;QACf,GAAG,EAAE,4SAA4S;QACjT,GAAG,EAAE;gDACuC;QAC5C,IAAI,EAAE;qDAC2C;KAClD;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,gUAAgU;QACrU,GAAG,EAAE,iFAAiF;QACtF,IAAI,EAAE;8BACoB;KAC3B;IACD,2BAA2B,EAAE;QAC3B,GAAG,EAAE,uvBAAuvB;QAC5vB,GAAG,EAAE;qFAC4E;QACjF,IAAI,EAAE;;;KAGL;KACF;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,yqBAAyqB;QAC9qB,GAAG,EAAE,yEAAyE;QAC9E,IAAI,EAAE;qFAC2E;KAClF;CACF,CAAC"}
@@ -1,3 +1,3 @@
1
- /** A route of billing declaring `codes` in its `errors`, for the fixtures of `errors/known-code`. */
1
+ /** A route of billing declaring `codes` in its `errors`, for the fixtures of `errors/known-code`: a code is written as a string, a member of a code list (`BillingCodes.UnknownInvoice`) as it is. */
2
2
  export declare function errorsRoute(...codes: string[]): string;
3
3
  //# sourceMappingURL=errors-route.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors-route.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/errors-route.ts"],"names":[],"mappings":"AAEA,qGAAqG;AACrG,wBAAgB,WAAW,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAStD"}
1
+ {"version":3,"file":"errors-route.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/errors-route.ts"],"names":[],"mappings":"AAEA,sMAAsM;AACtM,wBAAgB,WAAW,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAStD"}
@@ -1,6 +1,6 @@
1
1
  import { source } from './source.js';
2
- /** A route of billing declaring `codes` in its `errors`, for the fixtures of `errors/known-code`. */
2
+ /** A route of billing declaring `codes` in its `errors`, for the fixtures of `errors/known-code`: a code is written as a string, a member of a code list (`BillingCodes.UnknownInvoice`) as it is. */
3
3
  export function errorsRoute(...codes) {
4
- return source("import { defineRoute } from '@ddd-ts-kit/http';", '', 'export const issueInvoiceRoute = defineRoute(', ` { method: 'POST', path: '/invoices', errors: [${codes.map((code) => `'${code}'`).join(', ')}], security: false },`, ' issue,', ');');
4
+ return source("import { defineRoute } from '@ddd-ts-kit/http';", '', 'export const issueInvoiceRoute = defineRoute(', ` { method: 'POST', path: '/invoices', errors: [${codes.map((code) => (code.includes('.') ? code : `'${code}'`)).join(', ')}], security: false },`, ' issue,', ');');
5
5
  }
6
6
  //# sourceMappingURL=errors-route.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors-route.js","sourceRoot":"","sources":["../../../src/check/fixtures/errors-route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,qGAAqG;AACrG,MAAM,UAAU,WAAW,CAAC,GAAG,KAAe;IAC5C,OAAO,MAAM,CACX,iDAAiD,EACjD,EAAE,EACF,+CAA+C,EAC/C,mDAAmD,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,uBAAuB,EACrH,UAAU,EACV,IAAI,CACL,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"errors-route.js","sourceRoot":"","sources":["../../../src/check/fixtures/errors-route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,sMAAsM;AACtM,MAAM,UAAU,WAAW,CAAC,GAAG,KAAe;IAC5C,OAAO,MAAM,CACX,iDAAiD,EACjD,EAAE,EACF,+CAA+C,EAC/C,mDAAmD,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,uBAAuB,EACnJ,UAAU,EACV,IAAI,CACL,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/fixtures.ts"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,SAAS,OAAO,EA4DtC,CAAC"}
1
+ {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/fixtures.ts"],"names":[],"mappings":"AA4DA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,SAAS,OAAO,EA6DtC,CAAC"}
@@ -36,6 +36,7 @@ import { LAYER_FIXTURES } from './layer-fixtures.js';
36
36
  import { LAYOUT_FIXTURES } from './layout-fixtures.js';
37
37
  import { LIFECYCLE_FIXTURES } from './lifecycle-fixtures.js';
38
38
  import { MODULE_FIXTURES } from './module-fixtures.js';
39
+ import { SHARED_FOLDER_FIXTURES } from './shared-folder-fixtures.js';
39
40
  import { NAMED_REFUSAL_FIXTURES } from './named-refusal-fixtures.js';
40
41
  import { NAMING_FIXTURES } from './naming-fixtures.js';
41
42
  import { NEST_CONTROLLERS_FIXTURES } from './nest-controllers-fixtures.js';
@@ -103,6 +104,7 @@ export const FIXTURES = [
103
104
  ...LAYOUT_FIXTURES,
104
105
  ...LIFECYCLE_FIXTURES,
105
106
  ...MODULE_FIXTURES,
107
+ ...SHARED_FOLDER_FIXTURES,
106
108
  ...NAMING_FIXTURES,
107
109
  ...BUSINESS_NAME_FIXTURES,
108
110
  ...OUTBOX_FIXTURES,
@@ -1 +1 @@
1
- {"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AAC5F,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,C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,GAAG,qBAAqB;IACxB,GAAG,qBAAqB;IACxB,GAAG,6BAA6B;IAChC,GAAG,sBAAsB;IACzB,GAAG,eAAe;IAClB,GAAG,sBAAsB;IACzB,GAAG,eAAe;IAClB,GAAG,sBAAsB;IACzB,GAAG,uBAAuB;IAC1B,GAAG,eAAe;IAClB,GAAG,kBAAkB;IACrB,GAAG,oBAAoB;IACvB,GAAG,cAAc;IACjB,GAAG,mBAAmB;IACtB,GAAG,gBAAgB;IACnB,GAAG,iBAAiB;IACpB,GAAG,mBAAmB;IACtB,GAAG,uBAAuB;IAC1B,GAAG,cAAc;IACjB,GAAG,oBAAoB;IACvB,GAAG,eAAe;IAClB,GAAG,kBAAkB;IACrB,GAAG,eAAe;IAClB,GAAG,sBAAsB;IACzB,GAAG,eAAe;IAClB,GAAG,sBAAsB;IACzB,GAAG,eAAe;IAClB,GAAG,oBAAoB;IACvB,GAAG,cAAc;IACjB,GAAG,eAAe;IAClB,GAAG,mBAAmB;IACtB,GAAG,iBAAiB;IACpB,GAAG,aAAa;IAChB,GAAG,yBAAyB;IAC5B,GAAG,gBAAgB;IACnB,GAAG,gBAAgB;IACnB,GAAG,yBAAyB;IAC5B,GAAG,aAAa;IAChB,GAAG,gBAAgB;IACnB,GAAG,aAAa;IAChB,GAAG,oBAAoB;IACvB,GAAG,0BAA0B;IAC7B,GAAG,uBAAuB;CAC3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"module-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/module-fixtures.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBzC,eAAO,MAAM,eAAe,EAAE,SAAS,OAAO,EAqL7C,CAAC"}
1
+ {"version":3,"file":"module-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/module-fixtures.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkBzC,eAAO,MAAM,eAAe,EAAE,SAAS,OAAO,EAmM7C,CAAC"}