ddd-ts-kit 0.87.0 → 0.88.0

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 (363) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.fr.md +13 -13
  3. package/README.md +12 -12
  4. package/dist/check/canonical/earlier-context-file.d.ts +15 -0
  5. package/dist/check/canonical/earlier-context-file.d.ts.map +1 -0
  6. package/dist/check/canonical/earlier-context-file.js +33 -0
  7. package/dist/check/canonical/earlier-context-file.js.map +1 -0
  8. package/dist/check/canonical/stray-entry.d.ts.map +1 -1
  9. package/dist/check/canonical/stray-entry.js +11 -9
  10. package/dist/check/canonical/stray-entry.js.map +1 -1
  11. package/dist/check/configuration/module-problems.js +2 -2
  12. package/dist/check/configuration/module-problems.js.map +1 -1
  13. package/dist/check/errors/code-list.d.ts +1 -1
  14. package/dist/check/errors/code-list.d.ts.map +1 -1
  15. package/dist/check/errors/is-codes-file.d.ts +1 -1
  16. package/dist/check/errors/is-codes-file.d.ts.map +1 -1
  17. package/dist/check/errors/is-codes-file.js +1 -1
  18. package/dist/check/errors/is-codes-file.js.map +1 -1
  19. package/dist/check/explain/errors-docs.js +5 -5
  20. package/dist/check/explain/errors-docs.js.map +1 -1
  21. package/dist/check/explain/language-docs.js +1 -1
  22. package/dist/check/explain/language-docs.js.map +1 -1
  23. package/dist/check/explain/module-docs.d.ts.map +1 -1
  24. package/dist/check/explain/module-docs.js +16 -12
  25. package/dist/check/explain/module-docs.js.map +1 -1
  26. package/dist/check/fixtures/authz-granted-fixtures.js +2 -2
  27. package/dist/check/fixtures/authz-granted-fixtures.js.map +1 -1
  28. package/dist/check/fixtures/authz-scope-narrows-fixtures.js +4 -4
  29. package/dist/check/fixtures/authz-scope-narrows-fixtures.js.map +1 -1
  30. package/dist/check/fixtures/context-file-fixtures.d.ts +4 -0
  31. package/dist/check/fixtures/context-file-fixtures.d.ts.map +1 -0
  32. package/dist/check/fixtures/context-file-fixtures.js +36 -0
  33. package/dist/check/fixtures/context-file-fixtures.js.map +1 -0
  34. package/dist/check/fixtures/fixtures.d.ts.map +1 -1
  35. package/dist/check/fixtures/fixtures.js +2 -0
  36. package/dist/check/fixtures/fixtures.js.map +1 -1
  37. package/dist/check/fixtures/module-fixtures.d.ts.map +1 -1
  38. package/dist/check/fixtures/module-fixtures.js +50 -17
  39. package/dist/check/fixtures/module-fixtures.js.map +1 -1
  40. package/dist/check/fixtures/named-refusal-fixtures.js +5 -5
  41. package/dist/check/fixtures/named-refusal-fixtures.js.map +1 -1
  42. package/dist/check/fixtures/vocabulary-fixtures.js +2 -2
  43. package/dist/check/fixtures/vocabulary-fixtures.js.map +1 -1
  44. package/dist/check/project/locate.d.ts.map +1 -1
  45. package/dist/check/project/locate.js +18 -9
  46. package/dist/check/project/locate.js.map +1 -1
  47. package/dist/check/rules/errors-code-listed.js +6 -8
  48. package/dist/check/rules/errors-code-listed.js.map +1 -1
  49. package/dist/check/rules/errors-code-unique.js +2 -2
  50. package/dist/check/rules/errors-code-unique.js.map +1 -1
  51. package/dist/check/rules/errors-known-code.js +2 -2
  52. package/dist/check/rules/errors-known-code.js.map +1 -1
  53. package/dist/check/rules/language-glossary-term.js +1 -1
  54. package/dist/check/rules/language-glossary-term.js.map +1 -1
  55. package/dist/check/rules/module-complete.d.ts.map +1 -1
  56. package/dist/check/rules/module-complete.js +67 -13
  57. package/dist/check/rules/module-complete.js.map +1 -1
  58. package/dist/check/rules/naming-suffix.d.ts.map +1 -1
  59. package/dist/check/rules/naming-suffix.js +12 -9
  60. package/dist/check/rules/naming-suffix.js.map +1 -1
  61. package/dist/check/rules/tree-closed.d.ts.map +1 -1
  62. package/dist/check/rules/tree-closed.js +8 -1
  63. package/dist/check/rules/tree-closed.js.map +1 -1
  64. package/dist/check/support/path-in-context.d.ts +5 -1
  65. package/dist/check/support/path-in-context.d.ts.map +1 -1
  66. package/dist/check/support/path-in-context.js +12 -3
  67. package/dist/check/support/path-in-context.js.map +1 -1
  68. package/dist/commands/context-layout.d.ts +4 -0
  69. package/dist/commands/context-layout.d.ts.map +1 -0
  70. package/dist/commands/context-layout.js +48 -0
  71. package/dist/commands/context-layout.js.map +1 -0
  72. package/dist/commands/generate.js +2 -2
  73. package/dist/commands/generate.js.map +1 -1
  74. package/dist/commands/move-to-module.d.ts.map +1 -1
  75. package/dist/commands/move-to-module.js +2 -0
  76. package/dist/commands/move-to-module.js.map +1 -1
  77. package/dist/config/stack.d.ts +1 -1
  78. package/dist/context-files/context-file-at.d.ts +7 -0
  79. package/dist/context-files/context-file-at.d.ts.map +1 -0
  80. package/dist/context-files/context-file-at.js +9 -0
  81. package/dist/context-files/context-file-at.js.map +1 -0
  82. package/dist/context-files/context-file-placement.d.ts +8 -0
  83. package/dist/context-files/context-file-placement.d.ts.map +1 -0
  84. package/dist/context-files/context-file-placement.js +23 -0
  85. package/dist/context-files/context-file-placement.js.map +1 -0
  86. package/dist/context-files/context-file.d.ts +16 -0
  87. package/dist/context-files/context-file.d.ts.map +1 -0
  88. package/dist/context-files/context-file.js +12 -0
  89. package/dist/context-files/context-file.js.map +1 -0
  90. package/dist/context-files/earlier-place-of.d.ts +7 -0
  91. package/dist/context-files/earlier-place-of.d.ts.map +1 -0
  92. package/dist/context-files/earlier-place-of.js +10 -0
  93. package/dist/context-files/earlier-place-of.js.map +1 -0
  94. package/dist/context-files/index.d.ts +5 -0
  95. package/dist/context-files/index.d.ts.map +1 -0
  96. package/dist/context-files/index.js +5 -0
  97. package/dist/context-files/index.js.map +1 -0
  98. package/dist/context-layout/context-layout.d.ts +19 -0
  99. package/dist/context-layout/context-layout.d.ts.map +1 -0
  100. package/dist/context-layout/context-layout.js +55 -0
  101. package/dist/context-layout/context-layout.js.map +1 -0
  102. package/dist/context-layout/index.d.ts +2 -0
  103. package/dist/context-layout/index.d.ts.map +1 -0
  104. package/dist/context-layout/index.js +2 -0
  105. package/dist/context-layout/index.js.map +1 -0
  106. package/dist/context-layout/module-moves.d.ts +21 -0
  107. package/dist/context-layout/module-moves.d.ts.map +1 -0
  108. package/dist/context-layout/module-moves.js +146 -0
  109. package/dist/context-layout/module-moves.js.map +1 -0
  110. package/dist/controllers/migrate-context.js +20 -15
  111. package/dist/controllers/migrate-context.js.map +1 -1
  112. package/dist/controllers/plan-context.d.ts +5 -1
  113. package/dist/controllers/plan-context.d.ts.map +1 -1
  114. package/dist/controllers/plan-context.js +19 -5
  115. package/dist/controllers/plan-context.js.map +1 -1
  116. package/dist/depcruise/layer-rules.js +21 -7
  117. package/dist/depcruise/layer-rules.js.map +1 -1
  118. package/dist/describe/read-adapters.d.ts.map +1 -1
  119. package/dist/describe/read-adapters.js +6 -4
  120. package/dist/describe/read-adapters.js.map +1 -1
  121. package/dist/describe/read-controllers.d.ts.map +1 -1
  122. package/dist/describe/read-controllers.js +5 -3
  123. package/dist/describe/read-controllers.js.map +1 -1
  124. package/dist/describe/read-errors.d.ts +1 -1
  125. package/dist/describe/read-errors.d.ts.map +1 -1
  126. package/dist/describe/read-errors.js +5 -3
  127. package/dist/describe/read-errors.js.map +1 -1
  128. package/dist/describe/read-routes.d.ts.map +1 -1
  129. package/dist/describe/read-routes.js +5 -5
  130. package/dist/describe/read-routes.js.map +1 -1
  131. package/dist/docs/context-facts.d.ts +1 -1
  132. package/dist/docs/context-facts.d.ts.map +1 -1
  133. package/dist/docs/read-context.d.ts.map +1 -1
  134. package/dist/docs/read-context.js +2 -1
  135. package/dist/docs/read-context.js.map +1 -1
  136. package/dist/docs/refresh-context-doc.js +1 -1
  137. package/dist/docs/refresh-context-doc.js.map +1 -1
  138. package/dist/docs/state-machine-lines.d.ts +1 -1
  139. package/dist/docs/state-machine-lines.d.ts.map +1 -1
  140. package/dist/docs/state-machine-lines.js +6 -2
  141. package/dist/docs/state-machine-lines.js.map +1 -1
  142. package/dist/file-moves/file-move.d.ts +6 -0
  143. package/dist/file-moves/file-move.d.ts.map +1 -0
  144. package/dist/file-moves/file-move.js +2 -0
  145. package/dist/file-moves/file-move.js.map +1 -0
  146. package/dist/file-moves/index.d.ts +3 -0
  147. package/dist/file-moves/index.d.ts.map +1 -0
  148. package/dist/file-moves/index.js +2 -0
  149. package/dist/file-moves/index.js.map +1 -0
  150. package/dist/file-moves/move-files.d.ts +15 -0
  151. package/dist/file-moves/move-files.d.ts.map +1 -0
  152. package/dist/file-moves/move-files.js +37 -0
  153. package/dist/file-moves/move-files.js.map +1 -0
  154. package/dist/generate/errors/codes-list.d.ts +1 -1
  155. package/dist/generate/errors/codes-list.d.ts.map +1 -1
  156. package/dist/generate/errors/write-named-refusal.d.ts +1 -1
  157. package/dist/generate/errors/write-named-refusal.d.ts.map +1 -1
  158. package/dist/generate/errors/write-named-refusal.js +3 -2
  159. package/dist/generate/errors/write-named-refusal.js.map +1 -1
  160. package/dist/generate/kind.d.ts +1 -1
  161. package/dist/generate/kind.d.ts.map +1 -1
  162. package/dist/generate/kinds/adapter-kind.d.ts.map +1 -1
  163. package/dist/generate/kinds/adapter-kind.js +22 -2
  164. package/dist/generate/kinds/adapter-kind.js.map +1 -1
  165. package/dist/generate/kinds/error-kind.js +1 -1
  166. package/dist/generate/kinds/error-kind.js.map +1 -1
  167. package/dist/generate/kinds/module-kind.js +1 -1
  168. package/dist/generate/kinds/module-kind.js.map +1 -1
  169. package/dist/generate/kinds/port-kind.d.ts.map +1 -1
  170. package/dist/generate/kinds/port-kind.js +3 -1
  171. package/dist/generate/kinds/port-kind.js.map +1 -1
  172. package/dist/generate/kinds/presentation/controller-of.d.ts +1 -1
  173. package/dist/generate/kinds/presentation/controller-of.d.ts.map +1 -1
  174. package/dist/generate/kinds/presentation/controller-of.js +7 -5
  175. package/dist/generate/kinds/presentation/controller-of.js.map +1 -1
  176. package/dist/generate/permissions-file.d.ts +4 -1
  177. package/dist/generate/permissions-file.d.ts.map +1 -1
  178. package/dist/generate/permissions-file.js +6 -2
  179. package/dist/generate/permissions-file.js.map +1 -1
  180. package/dist/generate/place-context-files.d.ts +9 -0
  181. package/dist/generate/place-context-files.d.ts.map +1 -0
  182. package/dist/generate/place-context-files.js +14 -0
  183. package/dist/generate/place-context-files.js.map +1 -0
  184. package/dist/generate/place-generated-files.d.ts +18 -0
  185. package/dist/generate/place-generated-files.d.ts.map +1 -0
  186. package/dist/generate/{place-in-modules.js → place-generated-files.js} +42 -17
  187. package/dist/generate/place-generated-files.js.map +1 -0
  188. package/dist/generate/refresh-docs.d.ts.map +1 -1
  189. package/dist/generate/refresh-docs.js +3 -0
  190. package/dist/generate/refresh-docs.js.map +1 -1
  191. package/dist/generate/refuse-earlier-layout.d.ts +9 -0
  192. package/dist/generate/refuse-earlier-layout.d.ts.map +1 -0
  193. package/dist/generate/refuse-earlier-layout.js +15 -0
  194. package/dist/generate/refuse-earlier-layout.js.map +1 -0
  195. package/dist/help/notes.d.ts +1 -1
  196. package/dist/help/notes.d.ts.map +1 -1
  197. package/dist/help/notes.js +24 -9
  198. package/dist/help/notes.js.map +1 -1
  199. package/dist/help/usage.d.ts +1 -1
  200. package/dist/help/usage.d.ts.map +1 -1
  201. package/dist/help/usage.js +1 -0
  202. package/dist/help/usage.js.map +1 -1
  203. package/dist/init/manifest/versions.js +24 -24
  204. package/dist/init/run-init.d.ts.map +1 -1
  205. package/dist/init/run-init.js +6 -0
  206. package/dist/init/run-init.js.map +1 -1
  207. package/dist/knip/ignore-code-types-where-they-are.d.ts +11 -0
  208. package/dist/knip/ignore-code-types-where-they-are.d.ts.map +1 -0
  209. package/dist/knip/ignore-code-types-where-they-are.js +56 -0
  210. package/dist/knip/ignore-code-types-where-they-are.js.map +1 -0
  211. package/dist/knip/index.d.ts +2 -0
  212. package/dist/knip/index.d.ts.map +1 -0
  213. package/dist/knip/index.js +2 -0
  214. package/dist/knip/index.js.map +1 -0
  215. package/dist/model-modules/index.d.ts +1 -1
  216. package/dist/model-modules/index.d.ts.map +1 -1
  217. package/dist/model-modules/index.js +1 -1
  218. package/dist/model-modules/index.js.map +1 -1
  219. package/dist/model-modules/into-module.d.ts +5 -1
  220. package/dist/model-modules/into-module.d.ts.map +1 -1
  221. package/dist/model-modules/into-module.js +12 -5
  222. package/dist/model-modules/into-module.js.map +1 -1
  223. package/dist/model-modules/is-context-level.d.ts +5 -3
  224. package/dist/model-modules/is-context-level.d.ts.map +1 -1
  225. package/dist/model-modules/is-context-level.js +17 -4
  226. package/dist/model-modules/is-context-level.js.map +1 -1
  227. package/dist/model-modules/module-layers.d.ts +7 -1
  228. package/dist/model-modules/module-layers.d.ts.map +1 -1
  229. package/dist/model-modules/module-layers.js +8 -2
  230. package/dist/model-modules/module-layers.js.map +1 -1
  231. package/dist/model-modules/module-name-flaw.d.ts +2 -2
  232. package/dist/model-modules/module-name-flaw.js +4 -4
  233. package/dist/model-modules/module-name-flaw.js.map +1 -1
  234. package/dist/model-modules/module-placement.d.ts +5 -1
  235. package/dist/model-modules/module-placement.d.ts.map +1 -1
  236. package/dist/model-modules/module-placement.js +47 -18
  237. package/dist/model-modules/module-placement.js.map +1 -1
  238. package/dist/model-modules/module-split.d.ts +9 -5
  239. package/dist/model-modules/module-split.d.ts.map +1 -1
  240. package/dist/model-modules/module-split.js +30 -13
  241. package/dist/model-modules/module-split.js.map +1 -1
  242. package/dist/model-modules/role-directories-of.d.ts.map +1 -1
  243. package/dist/model-modules/role-directories-of.js +6 -1
  244. package/dist/model-modules/role-directories-of.js.map +1 -1
  245. package/dist/model-modules/role-folders-of.d.ts +1 -1
  246. package/dist/model-modules/role-folders-of.d.ts.map +1 -1
  247. package/dist/model-modules/role-folders-of.js +15 -5
  248. package/dist/model-modules/role-folders-of.js.map +1 -1
  249. package/dist/model-modules/role-folders.d.ts +2 -2
  250. package/dist/model-modules/role-folders.js +2 -2
  251. package/dist/move-to-module/module-move.d.ts +2 -4
  252. package/dist/move-to-module/module-move.d.ts.map +1 -1
  253. package/dist/move-to-module/move-to-module.d.ts +2 -6
  254. package/dist/move-to-module/move-to-module.d.ts.map +1 -1
  255. package/dist/move-to-module/move-to-module.js +2 -31
  256. package/dist/move-to-module/move-to-module.js.map +1 -1
  257. package/dist/move-to-module/moves-into-module.d.ts +1 -1
  258. package/dist/move-to-module/moves-into-module.d.ts.map +1 -1
  259. package/dist/move-to-module/moves-into-module.js +25 -6
  260. package/dist/move-to-module/moves-into-module.js.map +1 -1
  261. package/dist/refusals/code-types-pattern.d.ts +4 -0
  262. package/dist/refusals/code-types-pattern.d.ts.map +1 -0
  263. package/dist/refusals/code-types-pattern.js +6 -0
  264. package/dist/refusals/code-types-pattern.js.map +1 -0
  265. package/dist/refusals/ignore-code-types.d.ts +1 -1
  266. package/dist/refusals/ignore-code-types.d.ts.map +1 -1
  267. package/dist/refusals/ignore-code-types.js +3 -2
  268. package/dist/refusals/ignore-code-types.js.map +1 -1
  269. package/dist/refusals/path-from-contexts.d.ts +1 -1
  270. package/dist/refusals/path-from-contexts.js +2 -2
  271. package/dist/refusals/path-from-contexts.js.map +1 -1
  272. package/dist/refusals/with-codes.d.ts +1 -1
  273. package/dist/refusals/with-codes.d.ts.map +1 -1
  274. package/dist/refusals/with-codes.js +1 -1
  275. package/dist/refusals/with-codes.js.map +1 -1
  276. package/dist/refusals/write-refusal-classes.d.ts.map +1 -1
  277. package/dist/refusals/write-refusal-classes.js +4 -2
  278. package/dist/refusals/write-refusal-classes.js.map +1 -1
  279. package/dist/run.d.ts.map +1 -1
  280. package/dist/run.js +2 -0
  281. package/dist/run.js.map +1 -1
  282. package/dist/version.d.ts +1 -1
  283. package/dist/version.js +1 -1
  284. package/package.json +2 -2
  285. package/templates/command/handler.spec.buses.ts.tpl +1 -1
  286. package/templates/command/handler.spec.tsyringe.ts.tpl +1 -1
  287. package/templates/context/permission-set.tpl +1 -1
  288. package/templates/context/permissions.spec.ts.tpl +1 -1
  289. package/templates/error/refusal.ts.tpl +1 -1
  290. package/templates/file-upload/handler.spec.ts.tpl +1 -1
  291. package/templates/init/rules/application.md.tpl +3 -2
  292. package/templates/init/rules/domain.md.tpl +3 -2
  293. package/templates/init/rules/infrastructure.md.tpl +1 -0
  294. package/templates/init/rules/presentation.md.tpl +2 -1
  295. package/templates/pipeline/knip.json.tpl +1 -1
  296. package/templates/pipeline/package-scripts.json +1 -1
  297. package/templates/policy/policy.declared.ts.tpl +1 -1
  298. package/templates/policy/policy.ts.tpl +1 -1
  299. package/templates/presets/identity/context/application/authorization/change-member-roles.policy.ts.tpl +1 -1
  300. package/templates/presets/identity/context/application/authorization/grant-delegations.policy.ts.tpl +1 -1
  301. package/templates/presets/identity/context/application/authorization/invite-members.policy.ts.tpl +1 -1
  302. package/templates/presets/identity/context/application/authorization/read-members.policy.ts.tpl +1 -1
  303. package/templates/presets/identity/context/application/authorization/remove-members.policy.ts.tpl +1 -1
  304. package/templates/presets/identity/context/application/authorization/revoke-delegations.policy.ts.tpl +1 -1
  305. package/templates/presets/identity/context/application/authorization/revoke-invitations.policy.ts.tpl +1 -1
  306. package/templates/presets/identity/context/application/commands/accept-invitation/accept-invitation.command.ts.tpl +1 -1
  307. package/templates/presets/identity/context/application/commands/change-member-role/change-member-role.command.ts.tpl +1 -1
  308. package/templates/presets/identity/context/application/commands/change-member-role/change-member-role.handler.ts.tpl +1 -1
  309. package/templates/presets/identity/context/application/commands/deactivate-account/deactivate-account.command.ts.tpl +1 -1
  310. package/templates/presets/identity/context/application/commands/decline-invitation/decline-invitation.command.ts.tpl +1 -1
  311. package/templates/presets/identity/context/application/commands/grant-delegation/grant-delegation.command.ts.tpl +1 -1
  312. package/templates/presets/identity/context/application/commands/grant-delegation/grant-delegation.handler.ts.tpl +1 -1
  313. package/templates/presets/identity/context/application/commands/invite-member/invite-member.command.ts.tpl +1 -1
  314. package/templates/presets/identity/context/application/commands/invite-member/invite-member.handler.ts.tpl +1 -1
  315. package/templates/presets/identity/context/application/commands/open-organisation/open-organisation.command.ts.tpl +1 -1
  316. package/templates/presets/identity/context/application/commands/provision-account/provision-account.command.ts.tpl +1 -1
  317. package/templates/presets/identity/context/application/commands/remove-member/remove-member.command.ts.tpl +1 -1
  318. package/templates/presets/identity/context/application/commands/remove-member/remove-member.handler.ts.tpl +1 -1
  319. package/templates/presets/identity/context/application/commands/revoke-delegation/revoke-delegation.command.ts.tpl +1 -1
  320. package/templates/presets/identity/context/application/commands/revoke-delegation/revoke-delegation.handler.ts.tpl +1 -1
  321. package/templates/presets/identity/context/application/commands/revoke-invitation/revoke-invitation.command.ts.tpl +1 -1
  322. package/templates/presets/identity/context/application/commands/revoke-invitation/revoke-invitation.handler.ts.tpl +1 -1
  323. package/templates/presets/identity/context/application/queries/search-members/search-members.handler.ts.tpl +1 -1
  324. package/templates/presets/identity/context/application/queries/search-members/search-members.query.ts.tpl +1 -1
  325. package/templates/presets/identity/context/domain/errors/above-own-role.error.named.ts.tpl +1 -1
  326. package/templates/presets/identity/context/domain/errors/account-already-deactivated.error.named.ts.tpl +1 -1
  327. package/templates/presets/identity/context/domain/errors/already-member.error.named.ts.tpl +1 -1
  328. package/templates/presets/identity/context/domain/errors/deactivated-account.error.named.ts.tpl +1 -1
  329. package/templates/presets/identity/context/domain/errors/delegation-not-active.error.named.ts.tpl +1 -1
  330. package/templates/presets/identity/context/domain/errors/delegation-period-inverted.error.named.ts.tpl +1 -1
  331. package/templates/presets/identity/context/domain/errors/delegation-to-oneself.error.named.ts.tpl +1 -1
  332. package/templates/presets/identity/context/domain/errors/delegation-too-long.error.named.ts.tpl +1 -1
  333. package/templates/presets/identity/context/domain/errors/delegation-with-no-right.error.named.ts.tpl +1 -1
  334. package/templates/presets/identity/context/domain/errors/email-not-verified.error.named.ts.tpl +1 -1
  335. package/templates/presets/identity/context/domain/errors/invalid-display-name.error.named.ts.tpl +1 -1
  336. package/templates/presets/identity/context/domain/errors/invalid-email-address.error.named.ts.tpl +1 -1
  337. package/templates/presets/identity/context/domain/errors/invalid-organisation-name.error.named.ts.tpl +1 -1
  338. package/templates/presets/identity/context/domain/errors/invalid-organisation-slug.error.named.ts.tpl +1 -1
  339. package/templates/presets/identity/context/domain/errors/invitation-expired.error.named.ts.tpl +1 -1
  340. package/templates/presets/identity/context/domain/errors/invitation-not-addressed-to-account.error.named.ts.tpl +1 -1
  341. package/templates/presets/identity/context/domain/errors/invitation-not-pending.error.named.ts.tpl +1 -1
  342. package/templates/presets/identity/context/domain/errors/last-owner.error.named.ts.tpl +1 -1
  343. package/templates/presets/identity/context/domain/errors/not-an-owner.error.named.ts.tpl +1 -1
  344. package/templates/presets/identity/context/domain/errors/organisation-slug-taken.error.named.ts.tpl +1 -1
  345. package/templates/presets/identity/context/domain/errors/own-role.error.named.ts.tpl +1 -1
  346. package/templates/presets/identity/context/domain/errors/right-not-in-role.error.named.ts.tpl +1 -1
  347. package/templates/presets/identity/context/domain/errors/unknown-account.error.named.ts.tpl +1 -1
  348. package/templates/presets/identity/context/domain/errors/unknown-delegation.error.named.ts.tpl +1 -1
  349. package/templates/presets/identity/context/domain/errors/unknown-invitation.error.named.ts.tpl +1 -1
  350. package/templates/presets/identity/context/domain/errors/unknown-member.error.named.ts.tpl +1 -1
  351. package/templates/presets/identity/context/domain/errors/unknown-organisation.error.named.ts.tpl +1 -1
  352. package/templates/presets/identity/context/test/worlds/__context__.world.ts.tpl +1 -1
  353. package/templates/query/handler.spec.buses.ts.tpl +1 -1
  354. package/templates/query/handler.spec.tsyringe.ts.tpl +1 -1
  355. package/templates/query/search.handler.declared.ts.tpl +1 -1
  356. package/templates/query/search.handler.spec.buses.ts.tpl +1 -1
  357. package/templates/query/search.handler.spec.tsyringe.ts.tpl +1 -1
  358. package/templates/query/search.handler.ts.tpl +1 -1
  359. package/dist/generate/place-in-modules.d.ts +0 -16
  360. package/dist/generate/place-in-modules.d.ts.map +0 -1
  361. package/dist/generate/place-in-modules.js.map +0 -1
  362. /package/templates/presets/identity/context/{domain/errors/codes.named.ts.tpl → __context__.codes.named.ts.tpl} +0 -0
  363. /package/templates/presets/identity/context/{application/authorization/__context__.permissions.ts.tpl → __context__.permissions.ts.tpl} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { DomainRefusal } from '@ddd-ts-kit/kernel';
2
- import { {{context.pascal}}Codes } from '{{alias.context}}/domain/errors/codes{{alias.ext}}';
2
+ import { {{context.pascal}}Codes } from '{{alias.context}}/{{context.kebab}}.codes{{alias.ext}}';
3
3
 
4
4
  export class RightNotInRole extends DomainRefusal {
5
5
  readonly code = {{context.pascal}}Codes.RightNotInRole;
@@ -1,5 +1,5 @@
1
1
  import { DomainRefusal } from '@ddd-ts-kit/kernel';
2
- import { {{context.pascal}}Codes } from '{{alias.context}}/domain/errors/codes{{alias.ext}}';
2
+ import { {{context.pascal}}Codes } from '{{alias.context}}/{{context.kebab}}.codes{{alias.ext}}';
3
3
 
4
4
  export class UnknownAccount extends DomainRefusal {
5
5
  readonly code = {{context.pascal}}Codes.UnknownAccount;
@@ -1,5 +1,5 @@
1
1
  import { DomainRefusal } from '@ddd-ts-kit/kernel';
2
- import { {{context.pascal}}Codes } from '{{alias.context}}/domain/errors/codes{{alias.ext}}';
2
+ import { {{context.pascal}}Codes } from '{{alias.context}}/{{context.kebab}}.codes{{alias.ext}}';
3
3
 
4
4
  export class UnknownDelegation extends DomainRefusal {
5
5
  readonly code = {{context.pascal}}Codes.UnknownDelegation;
@@ -1,5 +1,5 @@
1
1
  import { DomainRefusal } from '@ddd-ts-kit/kernel';
2
- import { {{context.pascal}}Codes } from '{{alias.context}}/domain/errors/codes{{alias.ext}}';
2
+ import { {{context.pascal}}Codes } from '{{alias.context}}/{{context.kebab}}.codes{{alias.ext}}';
3
3
 
4
4
  /** No invitation answers the token or the identifier given. The token of an invitation is never a fact of a refusal. */
5
5
  export class UnknownInvitation extends DomainRefusal {
@@ -1,5 +1,5 @@
1
1
  import { DomainRefusal } from '@ddd-ts-kit/kernel';
2
- import { {{context.pascal}}Codes } from '{{alias.context}}/domain/errors/codes{{alias.ext}}';
2
+ import { {{context.pascal}}Codes } from '{{alias.context}}/{{context.kebab}}.codes{{alias.ext}}';
3
3
 
4
4
  export class UnknownMember extends DomainRefusal {
5
5
  readonly code = {{context.pascal}}Codes.UnknownMember;
@@ -1,5 +1,5 @@
1
1
  import { DomainRefusal } from '@ddd-ts-kit/kernel';
2
- import { {{context.pascal}}Codes } from '{{alias.context}}/domain/errors/codes{{alias.ext}}';
2
+ import { {{context.pascal}}Codes } from '{{alias.context}}/{{context.kebab}}.codes{{alias.ext}}';
3
3
 
4
4
  export class UnknownOrganisation extends DomainRefusal {
5
5
  readonly code = {{context.pascal}}Codes.UnknownOrganisation;
@@ -5,7 +5,7 @@ import { contextModule, createTestApplication, fake } from '@ddd-ts-kit/di';
5
5
  import type { Actor } from '@ddd-ts-kit/kernel';
6
6
  import * as {{context.camel}}Declarations from '{{alias.context}}/{{context.kebab}}.declarations{{alias.ext}}';
7
7
  import { platformTestModule } from '{{alias.platform}}/composition/platform-test.module{{alias.ext}}';
8
- import { {{context.camel}}Permissions } from '{{alias.context}}/application/authorization/{{context.kebab}}.permissions{{alias.ext}}';
8
+ import { {{context.camel}}Permissions } from '{{alias.context}}/{{context.kebab}}.permissions{{alias.ext}}';
9
9
  import { IdentityProviderAdmin } from '{{alias.context}}/application/ports/identity-provider-admin.port{{alias.ext}}';
10
10
  import { InvitationTokens } from '{{alias.context}}/application/ports/invitation-tokens.port{{alias.ext}}';
11
11
  import { SearchMembersReader } from '{{alias.context}}/application/ports/search-members-reader.port{{alias.ext}}';
@@ -10,7 +10,7 @@ import { anActor } from '@ddd-ts-kit/auth/testing';
10
10
  {{/if}}
11
11
  import { createTestBuses } from '@ddd-ts-kit/testing';
12
12
  {{#if access.protected}}
13
- import { {{context.camel}}Permissions } from '{{alias.context}}/application/authorization/{{context.kebab}}.permissions{{alias.ext}}';
13
+ import { {{context.camel}}Permissions } from '{{alias.context}}/{{context.kebab}}.permissions{{alias.ext}}';
14
14
  {{/if}}
15
15
  import { {{name.pascal}}Handler } from '{{alias.context}}/application/queries/{{name.kebab}}/{{name.kebab}}.handler{{alias.ext}}';
16
16
  import { {{name.pascal}}Query } from '{{alias.context}}/application/queries/{{name.kebab}}/{{name.kebab}}.query{{alias.ext}}';
@@ -8,7 +8,7 @@ import { anActor } from '@ddd-ts-kit/auth/testing';
8
8
  {{spec.contextImports}}
9
9
  import { platformTestModule } from '{{alias.platform}}/composition/platform-test.module{{alias.ext}}';
10
10
  {{#if access.protected}}
11
- import { {{context.camel}}Permissions } from '{{alias.context}}/application/authorization/{{context.kebab}}.permissions{{alias.ext}}';
11
+ import { {{context.camel}}Permissions } from '{{alias.context}}/{{context.kebab}}.permissions{{alias.ext}}';
12
12
  {{/if}}
13
13
  import { {{name.pascal}}Reader } from '{{alias.context}}/application/ports/{{name.kebab}}-reader.port{{alias.ext}}';
14
14
  import { {{name.pascal}}Query } from '{{alias.context}}/application/queries/{{name.kebab}}/{{name.kebab}}.query{{alias.ext}}';
@@ -1,6 +1,6 @@
1
1
  import type { Access } from '@ddd-ts-kit/auth';
2
2
  import { QueryHandler } from '@ddd-ts-kit/kernel/declarations';
3
- import { {{context.camel}}Permissions } from '{{alias.context}}/application/authorization/{{context.kebab}}.permissions{{alias.ext}}';
3
+ import { {{context.camel}}Permissions } from '{{alias.context}}/{{context.kebab}}.permissions{{alias.ext}}';
4
4
  import type { {{name.pascal}}Reader } from '{{alias.context}}/application/ports/{{name.kebab}}-reader.port{{alias.ext}}';
5
5
  import { {{name.pascal}}Query } from '{{alias.context}}/application/queries/{{name.kebab}}/{{name.kebab}}.query{{alias.ext}}';
6
6
  import type { {{name.pascal}}Result } from '{{alias.context}}/application/queries/{{name.kebab}}/{{name.kebab}}.result{{alias.ext}}';
@@ -9,7 +9,7 @@ import {
9
9
  import { anActor } from '@ddd-ts-kit/auth/testing';
10
10
  import { FixedClock, offsetPage } from '@ddd-ts-kit/kernel';
11
11
  import { createTestBuses } from '@ddd-ts-kit/testing';
12
- import { {{context.camel}}Permissions } from '{{alias.context}}/application/authorization/{{context.kebab}}.permissions{{alias.ext}}';
12
+ import { {{context.camel}}Permissions } from '{{alias.context}}/{{context.kebab}}.permissions{{alias.ext}}';
13
13
  import { {{name.pascal}}Handler } from '{{alias.context}}/application/queries/{{name.kebab}}/{{name.kebab}}.handler{{alias.ext}}';
14
14
  import { {{name.pascal}}Query } from '{{alias.context}}/application/queries/{{name.kebab}}/{{name.kebab}}.query{{alias.ext}}';
15
15
  import type { {{name.pascal}}Item } from '{{alias.context}}/application/queries/{{name.kebab}}/{{name.kebab}}.result{{alias.ext}}';
@@ -7,7 +7,7 @@ import { anActor } from '@ddd-ts-kit/auth/testing';
7
7
  import { offsetPage } from '@ddd-ts-kit/kernel';
8
8
  import { platformTestModule } from '{{alias.platform}}/composition/platform-test.module{{alias.ext}}';
9
9
  {{#if access.protected}}
10
- import { {{context.camel}}Permissions } from '{{alias.context}}/application/authorization/{{context.kebab}}.permissions{{alias.ext}}';
10
+ import { {{context.camel}}Permissions } from '{{alias.context}}/{{context.kebab}}.permissions{{alias.ext}}';
11
11
  {{/if}}
12
12
  import { {{name.pascal}}Reader } from '{{alias.context}}/application/ports/{{name.kebab}}-reader.port{{alias.ext}}';
13
13
  import { {{name.pascal}}Query } from '{{alias.context}}/application/queries/{{name.kebab}}/{{name.kebab}}.query{{alias.ext}}';
@@ -1,6 +1,6 @@
1
1
  import type { Access } from '@ddd-ts-kit/auth';
2
2
  import type { QueryHandler } from '@ddd-ts-kit/kernel';
3
- import { {{context.camel}}Permissions } from '{{alias.context}}/application/authorization/{{context.kebab}}.permissions{{alias.ext}}';
3
+ import { {{context.camel}}Permissions } from '{{alias.context}}/{{context.kebab}}.permissions{{alias.ext}}';
4
4
  import type { {{name.pascal}}Reader } from '{{alias.context}}/application/ports/{{name.kebab}}-reader.port{{alias.ext}}';
5
5
  import type { {{name.pascal}}Query } from '{{alias.context}}/application/queries/{{name.kebab}}/{{name.kebab}}.query{{alias.ext}}';
6
6
  import type { {{name.pascal}}Result } from '{{alias.context}}/application/queries/{{name.kebab}}/{{name.kebab}}.result{{alias.ext}}';
@@ -1,16 +0,0 @@
1
- import type { Config } from '../config/index.js';
2
- import type { Workspace } from '../workspace/index.js';
3
- /** What `generate` was asked: the context its kind writes in, the `--module` given, and the command as typed. */
4
- export interface ModuleRequest {
5
- readonly context: string | undefined;
6
- readonly module: string | undefined;
7
- readonly command: string;
8
- }
9
- /**
10
- * In a project whose contexts have modules of their model, the generators keep naming files as
11
- * they are without modules: the workspace reads each where it is and writes it in the module
12
- * `--module` names, and the imports written follow. Answers what stops it, before the generated
13
- * declarations are derived from the tree.
14
- */
15
- export declare function placeInModules(ws: Workspace, config: Config, request: ModuleRequest): () => void;
16
- //# sourceMappingURL=place-in-modules.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"place-in-modules.d.ts","sourceRoot":"","sources":["../../src/generate/place-in-modules.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,iHAAiH;AACjH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,MAAM,IAAI,CAsChG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"place-in-modules.js","sourceRoot":"","sources":["../../src/generate/place-in-modules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAUnG;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,EAAa,EAAE,MAAc,EAAE,OAAsB;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