ddd-ts-kit 0.10.0 → 0.12.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 (299) hide show
  1. package/README.md +13 -7
  2. package/dist/check/canonical/roles.d.ts.map +1 -1
  3. package/dist/check/canonical/roles.js +18 -0
  4. package/dist/check/canonical/roles.js.map +1 -1
  5. package/dist/check/catalogue/architecture-rules.d.ts.map +1 -1
  6. package/dist/check/catalogue/architecture-rules.js +4 -0
  7. package/dist/check/catalogue/architecture-rules.js.map +1 -1
  8. package/dist/check/catalogue/eslint-only-rules.d.ts.map +1 -1
  9. package/dist/check/catalogue/eslint-only-rules.js +4 -0
  10. package/dist/check/catalogue/eslint-only-rules.js.map +1 -1
  11. package/dist/check/domain-events/refused-before-commit.js +1 -1
  12. package/dist/check/domain-events/refused-before-commit.js.map +1 -1
  13. package/dist/check/errors/kit-error-codes.d.ts.map +1 -1
  14. package/dist/check/errors/kit-error-codes.js +2 -0
  15. package/dist/check/errors/kit-error-codes.js.map +1 -1
  16. package/dist/check/explain/errors-docs.js +1 -1
  17. package/dist/check/explain/errors-docs.js.map +1 -1
  18. package/dist/check/explain/events-docs.js +1 -1
  19. package/dist/check/explain/events-docs.js.map +1 -1
  20. package/dist/check/explain/lifecycle-docs.d.ts +3 -0
  21. package/dist/check/explain/lifecycle-docs.d.ts.map +1 -0
  22. package/dist/check/explain/lifecycle-docs.js +33 -0
  23. package/dist/check/explain/lifecycle-docs.js.map +1 -0
  24. package/dist/check/explain/rule-docs.d.ts.map +1 -1
  25. package/dist/check/explain/rule-docs.js +2 -0
  26. package/dist/check/explain/rule-docs.js.map +1 -1
  27. package/dist/check/fixtures/domain-events-fixtures.d.ts.map +1 -1
  28. package/dist/check/fixtures/domain-events-fixtures.js +18 -0
  29. package/dist/check/fixtures/domain-events-fixtures.js.map +1 -1
  30. package/dist/check/fixtures/fixtures.d.ts.map +1 -1
  31. package/dist/check/fixtures/fixtures.js +2 -0
  32. package/dist/check/fixtures/fixtures.js.map +1 -1
  33. package/dist/check/fixtures/lifecycle-fixtures.d.ts +3 -0
  34. package/dist/check/fixtures/lifecycle-fixtures.d.ts.map +1 -0
  35. package/dist/check/fixtures/lifecycle-fixtures.js +90 -0
  36. package/dist/check/fixtures/lifecycle-fixtures.js.map +1 -0
  37. package/dist/check/fixtures/standard-fixtures.d.ts.map +1 -1
  38. package/dist/check/fixtures/standard-fixtures.js +8 -0
  39. package/dist/check/fixtures/standard-fixtures.js.map +1 -1
  40. package/dist/check/lifecycle/is-aggregate-file.d.ts +4 -0
  41. package/dist/check/lifecycle/is-aggregate-file.d.ts.map +1 -0
  42. package/dist/check/lifecycle/is-aggregate-file.js +6 -0
  43. package/dist/check/lifecycle/is-aggregate-file.js.map +1 -0
  44. package/dist/check/lifecycle/machines-imported.d.ts +4 -0
  45. package/dist/check/lifecycle/machines-imported.d.ts.map +1 -0
  46. package/dist/check/lifecycle/machines-imported.js +11 -0
  47. package/dist/check/lifecycle/machines-imported.js.map +1 -0
  48. package/dist/check/lifecycle/shorthand-status-writes.d.ts +7 -0
  49. package/dist/check/lifecycle/shorthand-status-writes.d.ts.map +1 -0
  50. package/dist/check/lifecycle/shorthand-status-writes.js +34 -0
  51. package/dist/check/lifecycle/shorthand-status-writes.js.map +1 -0
  52. package/dist/check/lifecycle/status-writes.d.ts +14 -0
  53. package/dist/check/lifecycle/status-writes.d.ts.map +1 -0
  54. package/dist/check/lifecycle/status-writes.js +29 -0
  55. package/dist/check/lifecycle/status-writes.js.map +1 -0
  56. package/dist/check/rules/domain-events-transactional-before-commit.js +1 -1
  57. package/dist/check/rules/domain-events-transactional-before-commit.js.map +1 -1
  58. package/dist/check/rules/lifecycle-status-through-machine.d.ts +3 -0
  59. package/dist/check/rules/lifecycle-status-through-machine.d.ts.map +1 -0
  60. package/dist/check/rules/lifecycle-status-through-machine.js +55 -0
  61. package/dist/check/rules/lifecycle-status-through-machine.js.map +1 -0
  62. package/dist/check/rules/process-sends-commands-only.d.ts +3 -0
  63. package/dist/check/rules/process-sends-commands-only.d.ts.map +1 -0
  64. package/dist/check/rules/process-sends-commands-only.js +39 -0
  65. package/dist/check/rules/process-sends-commands-only.js.map +1 -0
  66. package/dist/check/standard/parallel-names.d.ts.map +1 -1
  67. package/dist/check/standard/parallel-names.js +6 -0
  68. package/dist/check/standard/parallel-names.js.map +1 -1
  69. package/dist/commands/generate.js +25 -19
  70. package/dist/commands/generate.js.map +1 -1
  71. package/dist/commands/init.d.ts.map +1 -1
  72. package/dist/commands/init.js +4 -0
  73. package/dist/commands/init.js.map +1 -1
  74. package/dist/config/index.d.ts +1 -1
  75. package/dist/config/index.d.ts.map +1 -1
  76. package/dist/config/index.js +1 -1
  77. package/dist/config/index.js.map +1 -1
  78. package/dist/config/parse-stack.d.ts.map +1 -1
  79. package/dist/config/parse-stack.js +3 -1
  80. package/dist/config/parse-stack.js.map +1 -1
  81. package/dist/config/stack.d.ts +17 -0
  82. package/dist/config/stack.d.ts.map +1 -1
  83. package/dist/config/stack.js +2 -0
  84. package/dist/config/stack.js.map +1 -1
  85. package/dist/declared/declared-role.d.ts.map +1 -1
  86. package/dist/declared/declared-role.js +1 -0
  87. package/dist/declared/declared-role.js.map +1 -1
  88. package/dist/describe/context-description.d.ts +6 -0
  89. package/dist/describe/context-description.d.ts.map +1 -1
  90. package/dist/describe/describe-context.d.ts.map +1 -1
  91. package/dist/describe/describe-context.js +3 -0
  92. package/dist/describe/describe-context.js.map +1 -1
  93. package/dist/describe/format-description.d.ts.map +1 -1
  94. package/dist/describe/format-description.js +13 -1
  95. package/dist/describe/format-description.js.map +1 -1
  96. package/dist/docs/background-job-facts.d.ts +7 -0
  97. package/dist/docs/background-job-facts.d.ts.map +1 -0
  98. package/dist/docs/background-job-facts.js +2 -0
  99. package/dist/docs/background-job-facts.js.map +1 -0
  100. package/dist/docs/context-facts.d.ts +9 -0
  101. package/dist/docs/context-facts.d.ts.map +1 -1
  102. package/dist/docs/object-properties.d.ts +11 -0
  103. package/dist/docs/object-properties.d.ts.map +1 -0
  104. package/dist/docs/object-properties.js +21 -0
  105. package/dist/docs/object-properties.js.map +1 -0
  106. package/dist/docs/process-facts.d.ts +8 -0
  107. package/dist/docs/process-facts.d.ts.map +1 -0
  108. package/dist/docs/process-facts.js +2 -0
  109. package/dist/docs/process-facts.js.map +1 -0
  110. package/dist/docs/read-background-jobs.d.ts +5 -0
  111. package/dist/docs/read-background-jobs.d.ts.map +1 -0
  112. package/dist/docs/read-background-jobs.js +16 -0
  113. package/dist/docs/read-background-jobs.js.map +1 -0
  114. package/dist/docs/read-context.d.ts.map +1 -1
  115. package/dist/docs/read-context.js +6 -0
  116. package/dist/docs/read-context.js.map +1 -1
  117. package/dist/docs/read-processes.d.ts +5 -0
  118. package/dist/docs/read-processes.d.ts.map +1 -0
  119. package/dist/docs/read-processes.js +22 -0
  120. package/dist/docs/read-processes.js.map +1 -0
  121. package/dist/docs/read-state-machines.d.ts +10 -0
  122. package/dist/docs/read-state-machines.d.ts.map +1 -0
  123. package/dist/docs/read-state-machines.js +81 -0
  124. package/dist/docs/read-state-machines.js.map +1 -0
  125. package/dist/docs/read-vocabularies.d.ts +4 -0
  126. package/dist/docs/read-vocabularies.d.ts.map +1 -0
  127. package/dist/docs/read-vocabularies.js +14 -0
  128. package/dist/docs/read-vocabularies.js.map +1 -0
  129. package/dist/docs/refresh-context-doc.d.ts +1 -1
  130. package/dist/docs/refresh-context-doc.d.ts.map +1 -1
  131. package/dist/docs/refresh-context-doc.js +32 -3
  132. package/dist/docs/refresh-context-doc.js.map +1 -1
  133. package/dist/docs/state-machine-facts.d.ts +18 -0
  134. package/dist/docs/state-machine-facts.d.ts.map +1 -0
  135. package/dist/docs/state-machine-facts.js +2 -0
  136. package/dist/docs/state-machine-facts.js.map +1 -0
  137. package/dist/docs/state-machine-lines.d.ts +8 -0
  138. package/dist/docs/state-machine-lines.d.ts.map +1 -0
  139. package/dist/docs/state-machine-lines.js +32 -0
  140. package/dist/docs/state-machine-lines.js.map +1 -0
  141. package/dist/generate/kind.d.ts +4 -0
  142. package/dist/generate/kind.d.ts.map +1 -1
  143. package/dist/generate/kinds/background/background-job-vars.d.ts +7 -0
  144. package/dist/generate/kinds/background/background-job-vars.d.ts.map +1 -0
  145. package/dist/generate/kinds/background/background-job-vars.js +29 -0
  146. package/dist/generate/kinds/background/background-job-vars.js.map +1 -0
  147. package/dist/generate/kinds/background/job-import.d.ts +8 -0
  148. package/dist/generate/kinds/background/job-import.d.ts.map +1 -0
  149. package/dist/generate/kinds/background/job-import.js +17 -0
  150. package/dist/generate/kinds/background/job-import.js.map +1 -0
  151. package/dist/generate/kinds/background/payload-field.d.ts +18 -0
  152. package/dist/generate/kinds/background/payload-field.d.ts.map +1 -0
  153. package/dist/generate/kinds/background/payload-field.js +52 -0
  154. package/dist/generate/kinds/background/payload-field.js.map +1 -0
  155. package/dist/generate/kinds/background/require-container.d.ts +7 -0
  156. package/dist/generate/kinds/background/require-container.d.ts.map +1 -0
  157. package/dist/generate/kinds/background/require-container.js +13 -0
  158. package/dist/generate/kinds/background/require-container.js.map +1 -0
  159. package/dist/generate/kinds/background-job-kind.d.ts +3 -0
  160. package/dist/generate/kinds/background-job-kind.d.ts.map +1 -0
  161. package/dist/generate/kinds/background-job-kind.js +49 -0
  162. package/dist/generate/kinds/background-job-kind.js.map +1 -0
  163. package/dist/generate/kinds/job/command-input.d.ts +11 -0
  164. package/dist/generate/kinds/job/command-input.d.ts.map +1 -0
  165. package/dist/generate/kinds/job/command-input.js +13 -0
  166. package/dist/generate/kinds/job/command-input.js.map +1 -0
  167. package/dist/generate/kinds/job/granted-in-spec.d.ts +6 -0
  168. package/dist/generate/kinds/job/granted-in-spec.d.ts.map +1 -0
  169. package/dist/generate/kinds/job/granted-in-spec.js +18 -0
  170. package/dist/generate/kinds/job/granted-in-spec.js.map +1 -0
  171. package/dist/generate/kinds/job/job-vars.d.ts.map +1 -1
  172. package/dist/generate/kinds/job/job-vars.js +1 -17
  173. package/dist/generate/kinds/job/job-vars.js.map +1 -1
  174. package/dist/generate/kinds/job/read-sent-command.d.ts +8 -2
  175. package/dist/generate/kinds/job/read-sent-command.d.ts.map +1 -1
  176. package/dist/generate/kinds/job/read-sent-command.js +18 -12
  177. package/dist/generate/kinds/job/read-sent-command.js.map +1 -1
  178. package/dist/generate/kinds/job/sent-command.d.ts +4 -1
  179. package/dist/generate/kinds/job/sent-command.d.ts.map +1 -1
  180. package/dist/generate/kinds/process-kind.d.ts +3 -0
  181. package/dist/generate/kinds/process-kind.d.ts.map +1 -0
  182. package/dist/generate/kinds/process-kind.js +39 -0
  183. package/dist/generate/kinds/process-kind.js.map +1 -0
  184. package/dist/generate/kinds/route/cache-policy-text.d.ts +8 -0
  185. package/dist/generate/kinds/route/cache-policy-text.d.ts.map +1 -0
  186. package/dist/generate/kinds/route/cache-policy-text.js +41 -0
  187. package/dist/generate/kinds/route/cache-policy-text.js.map +1 -0
  188. package/dist/generate/kinds/route/controller-plan.d.ts +2 -0
  189. package/dist/generate/kinds/route/controller-plan.d.ts.map +1 -1
  190. package/dist/generate/kinds/route/controller-vars.js +4 -1
  191. package/dist/generate/kinds/route/controller-vars.js.map +1 -1
  192. package/dist/generate/kinds/route/plan-controller.d.ts.map +1 -1
  193. package/dist/generate/kinds/route/plan-controller.js +4 -1
  194. package/dist/generate/kinds/route/plan-controller.js.map +1 -1
  195. package/dist/generate/kinds/route-kind.d.ts.map +1 -1
  196. package/dist/generate/kinds/route-kind.js +8 -1
  197. package/dist/generate/kinds/route-kind.js.map +1 -1
  198. package/dist/generate/kinds/state-machine/parse-transitions.d.ts +4 -0
  199. package/dist/generate/kinds/state-machine/parse-transitions.d.ts.map +1 -0
  200. package/dist/generate/kinds/state-machine/parse-transitions.js +24 -0
  201. package/dist/generate/kinds/state-machine/parse-transitions.js.map +1 -0
  202. package/dist/generate/kinds/state-machine/requested-transition.d.ts +9 -0
  203. package/dist/generate/kinds/state-machine/requested-transition.d.ts.map +1 -0
  204. package/dist/generate/kinds/state-machine/requested-transition.js +2 -0
  205. package/dist/generate/kinds/state-machine/requested-transition.js.map +1 -0
  206. package/dist/generate/kinds/state-machine/state-machine-vars.d.ts +12 -0
  207. package/dist/generate/kinds/state-machine/state-machine-vars.d.ts.map +1 -0
  208. package/dist/generate/kinds/state-machine/state-machine-vars.js +44 -0
  209. package/dist/generate/kinds/state-machine/state-machine-vars.js.map +1 -0
  210. package/dist/generate/kinds/state-machine/status-vocabulary.d.ts +9 -0
  211. package/dist/generate/kinds/state-machine/status-vocabulary.d.ts.map +1 -0
  212. package/dist/generate/kinds/state-machine/status-vocabulary.js +26 -0
  213. package/dist/generate/kinds/state-machine/status-vocabulary.js.map +1 -0
  214. package/dist/generate/kinds/state-machine-kind.d.ts +3 -0
  215. package/dist/generate/kinds/state-machine-kind.d.ts.map +1 -0
  216. package/dist/generate/kinds/state-machine-kind.js +33 -0
  217. package/dist/generate/kinds/state-machine-kind.js.map +1 -0
  218. package/dist/generate/kinds.d.ts.map +1 -1
  219. package/dist/generate/kinds.js +6 -0
  220. package/dist/generate/kinds.js.map +1 -1
  221. package/dist/generate/vocabulary/held-entries.d.ts +4 -0
  222. package/dist/generate/vocabulary/held-entries.d.ts.map +1 -0
  223. package/dist/generate/vocabulary/held-entries.js +6 -0
  224. package/dist/generate/vocabulary/held-entries.js.map +1 -0
  225. package/dist/generate/vocabulary/vocabulary-text.d.ts.map +1 -1
  226. package/dist/generate/vocabulary/vocabulary-text.js +2 -2
  227. package/dist/generate/vocabulary/vocabulary-text.js.map +1 -1
  228. package/dist/help/usage.d.ts +1 -1
  229. package/dist/help/usage.d.ts.map +1 -1
  230. package/dist/help/usage.js +3 -2
  231. package/dist/help/usage.js.map +1 -1
  232. package/dist/init/files/project-files.d.ts.map +1 -1
  233. package/dist/init/files/project-files.js +3 -1
  234. package/dist/init/files/project-files.js.map +1 -1
  235. package/dist/init/manifest/dependencies-for.d.ts.map +1 -1
  236. package/dist/init/manifest/dependencies-for.js +2 -0
  237. package/dist/init/manifest/dependencies-for.js.map +1 -1
  238. package/dist/init/manifest/versions.js +24 -24
  239. package/dist/init/stack/resolve-queue.d.ts +13 -0
  240. package/dist/init/stack/resolve-queue.d.ts.map +1 -0
  241. package/dist/init/stack/resolve-queue.js +25 -0
  242. package/dist/init/stack/resolve-queue.js.map +1 -0
  243. package/dist/init/stack/resolve-stack.d.ts.map +1 -1
  244. package/dist/init/stack/resolve-stack.js +12 -1
  245. package/dist/init/stack/resolve-stack.js.map +1 -1
  246. package/dist/init/stack/stack-options.d.ts +4 -0
  247. package/dist/init/stack/stack-options.d.ts.map +1 -1
  248. package/dist/init/template-vars.js +4 -3
  249. package/dist/init/template-vars.js.map +1 -1
  250. package/dist/stack/stack-vars.d.ts.map +1 -1
  251. package/dist/stack/stack-vars.js +21 -1
  252. package/dist/stack/stack-vars.js.map +1 -1
  253. package/dist/version.d.ts +1 -1
  254. package/dist/version.js +1 -1
  255. package/package.json +2 -2
  256. package/templates/background-job/background-job.declared.ts.tpl +26 -0
  257. package/templates/background-job/background-job.spec.ts.tpl +63 -0
  258. package/templates/background-job/background-job.ts.tpl +24 -0
  259. package/templates/background-job/wiring.tsyringe.tpl +5 -0
  260. package/templates/context/CONTEXT.md.tpl +15 -0
  261. package/templates/controller/controller.class-validator.ts.tpl +3 -0
  262. package/templates/controller/controller.none.ts.tpl +3 -0
  263. package/templates/controller/controller.search.ts.tpl +3 -0
  264. package/templates/controller/controller.standard-schema.ts.tpl +3 -0
  265. package/templates/controller/controller.zod.ts.tpl +3 -0
  266. package/templates/docs/openapi.json.tpl +9 -0
  267. package/templates/init/docker/docker-compose.yml.tpl +20 -0
  268. package/templates/init/docker/env.example.tpl +10 -0
  269. package/templates/init/docker/varnish.vcl.tpl +74 -0
  270. package/templates/init/e2e/start-application.database.ts.tpl +28 -0
  271. package/templates/init/e2e/start-application.memory.ts.tpl +30 -0
  272. package/templates/init/e2e/test-environment.ts.tpl +5 -0
  273. package/templates/init/main.ts.tpl +13 -0
  274. package/templates/init/platform/auth/http-boundary.ts.tpl +29 -0
  275. package/templates/init/platform/compose-application.tsyringe.ts.tpl +13 -0
  276. package/templates/init/platform/config/app-config.ts.tpl +6 -0
  277. package/templates/init/platform/config/load-config.ts.tpl +12 -0
  278. package/templates/init/platform/create-platform.manual.ts.tpl +31 -0
  279. package/templates/init/platform/database/persistence-over.drizzle.ts.tpl +20 -1
  280. package/templates/init/platform/database/persistence-over.knex.ts.tpl +18 -1
  281. package/templates/init/platform/database/persistence.orm.ts.tpl +12 -1
  282. package/templates/init/platform/database/schema.drizzle.ts.tpl +12 -2
  283. package/templates/init/platform/database/schema.knex.ts.tpl +7 -1
  284. package/templates/init/platform/platform.manual.ts.tpl +7 -0
  285. package/templates/init/platform/platform.module.tsyringe.ts.tpl +43 -3
  286. package/templates/init/platform/redis/open-redis.ts.tpl +37 -1
  287. package/templates/init/rules/application.md.tpl +3 -2
  288. package/templates/init/rules/domain.md.tpl +1 -0
  289. package/templates/init/rules/presentation.md.tpl +2 -1
  290. package/templates/pipeline/package-scripts.json +1 -1
  291. package/templates/process/process.spec.ts.tpl +44 -0
  292. package/templates/process/process.ts.tpl +41 -0
  293. package/templates/process/timeout-job.declared.ts.tpl +18 -0
  294. package/templates/process/timeout-job.spec.ts.tpl +43 -0
  295. package/templates/process/timeout-job.ts.tpl +16 -0
  296. package/templates/process/timeout-job.wiring.tsyringe.tpl +5 -0
  297. package/templates/service/main.ts.tpl +13 -0
  298. package/templates/state-machine/state-machine.spec.ts.tpl +16 -0
  299. package/templates/state-machine/state-machine.ts.tpl +16 -0
package/README.md CHANGED
@@ -46,12 +46,13 @@ ddd-ts-kit init [--http express|fastify|nest|none]
46
46
  [--events in-memory|outbox] [--docs-ui swagger|scalar|redoc|none]
47
47
  [--ci github|gitlab|both|none] [--ci-extras <extra>,...|none]
48
48
  [--authn jwt|keycloak|none] [--authz rbac|abac|rebac|custom]
49
- [--broker none|rabbitmq|kafka|nats|redis|custom] [--cache none|redis] [--audit on|off]
49
+ [--broker none|rabbitmq|kafka|nats|redis|custom] [--cache none|redis]
50
+ [--http-cache none|varnish] [--storage local|s3|none] [--audit on|off]
50
51
  [--errors none|sentry] [--logger stdout|pino|winston]
51
52
  [--style declared|explicit] [--assembly barrel|discovery]
52
53
  [--dependencies signature|listed] [--refusals factories|classes]
53
54
  [--routes controllers|functions] [--value-objects throwing|result]
54
- [--literals named|free] [--tenancy none|shared-table]
55
+ [--literals named|free] [--tenancy none|shared-table] [--queue database|redis|memory]
55
56
  [--package-manager npm|pnpm]
56
57
  [--allow-no-outbox "<reason>"] [--import-alias '$<name>/']
57
58
  [--import-extension none|js] [--sdk]
@@ -195,7 +196,9 @@ config, `docsUi`, `ci` and `logger` included.
195
196
  | `src/platform/auth/` | `create-authenticator.ts` (`--authn jwt`: `JwtAuthenticator` on `AUTH_ISSUER`, `AUTH_AUDIENCE`, `AUTH_JWKS_URI`; `--authn keycloak`: `keycloakAuthenticator` on `KEYCLOAK_URL`, `KEYCLOAK_REALM`, `KEYCLOAK_AUDIENCE` and the optional `KEYCLOAK_CLIENT_ID`; `--authn none`: `development-header-authenticator.ts`, which reads `x-development-actor` and throws in production), `principal-of.ts`, `security-schemes.ts`, `offline-authenticator.ts`, `http-boundary.ts` (`resolvePrincipal` answering a `Session`, `executionScope`, `errorMapper` and `onError`, spread into the mount options: every request runs inside the execution scope, with its correlation id), `create-authorizer.ts` and the files of the model (`roles.ts`, with the role `system` every system actor holds; `attribute-policies.ts`; `relationship-schema.ts`, `create-tuple-store.ts` and its contract spec, `relation-tuples.ts`, `relate-system-actors.ts`, `permission-mapping.ts` and `permissions.ts`; `custom-authorizer.ts`, its `authorizerContract` spec and `permissions.ts`), `authorization.ts` (`authorizationModule` with tsyringe) or `use-case-protection.ts` (the guard of the hand-wired buses), `access-policies.ts`, and with `--audit off` `log-decisions.ts` (one log entry per decision, ids and codes only). Without an HTTP stack there is no authenticator and no boundary |
196
197
  | `--audit on` | `src/platform/audit/`: `create-audit.ts` (the trail, the `onDecision` of the authorization, the refusals of the guards at the edge given to the HTTP boundary as `onGuardRefusal`, the middleware before the unit of work, the integration events subscribed under the consumer name `audit`), `audited-events.ts` (the registry `generate integration-event` adds to), `audit.module.ts`, and with an HTTP stack the read side: `audit.permissions.ts` (`audit:trail.read`), `search-audit-entries.query.ts`, its handler, `search-audit-entries.route.ts` (`GET /audit/entries`: cursor pages, filters `actorId`, `action`, `outcome`, `correlationId`). It is a capability of the platform, not a bounded context: no model, one protected query over the `AuditReader` port, bounded by the tenant of the actor (with `--tenancy shared-table`, by the tenant of the work through `TenantAuditReader`: platform staff read across tenants only inside `acrossTenants`). The refusals of a caller without a credential are not recorded. A scheduled job is audited like a request: origin `schedule`, actor `system:<context>.<job>`. With knex the two tables and their append-only triggers are created by the first migration; with drizzle the tables are in `schema.ts` and `npm run db:audit-guard` prints the trigger statements for a custom migration; with prisma, typeorm, `custom` or no ORM the trail is an `InMemoryAuditTrail` behind a `TODO(platform)`. The test databases leave the audit schema out of `reset()` |
197
198
  | `--tenancy shared-table` | recorded as `stack.tenancy`; Knex or Drizzle only. Every `generate repository` is tenant-scoped (as `--tenant-scoped`), through `tenantTable` and `ownTenantTable` or `tenantCondition` and `ownTenantCondition`; the outbox keeps the tenant of each event (`createOutboxTables(knex, { tenant: true })` and `KnexOutboxStore`'s `tenant: true`, or `tenantOutboxTable`), so consumers run in it; `tenancy/scoped-statement` judges the adapters. Row-level security, schema per tenant and database per tenant are refused, with what to wire by hand ([Multitenancy](../../docs/concepts/multitenancy.md)) |
199
+ | `--queue database\|redis\|memory` | recorded as `stack.queue`. `database` (the default on Knex or Drizzle with tsyringe): `createJobTable` and `createProcessTable`, or `jobsTable` and `processesTable`, in the `messaging` schema, `Persistence` gains `jobs` and `processes`, and the platform module rebinds `JobStore` and `ProcessStore` to them, so a job enqueued by a command is written in its transaction; `redis` (with `--cache redis`): `RedisJobStore` on the connection of the cache, the processes in the database; `memory` (the default otherwise): nothing is written, the kernel module keeps both in the process. Refused off tsyringe, `database` with another ORM, `redis` without the cache |
198
200
  | `--cache redis` | `src/platform/redis/open-redis.ts` (`RedisServices`: the cache bound to the kernel `Cache`, the limiter to `RateLimiter`, the lock to `Lock`, which keeps a scheduled job to one instance, the relay signal as the `wakeOn` of the outbox relay with `relayWakeUpMiddleware` on the command bus), `http/refusal-for.ts` (one sliding window per caller address, 429 `application/problem+json` with `retry-after`; `RATE_LIMIT_MAX`, `RATE_LIMIT_WINDOW_MS`), `GET /health/ready` on the HTTP server, `REDIS_URL` validated, a compose service `cache` running Dragonfly with a healthcheck. Without a server (tools, tests without `REDIS_URL`) the same ports stay in the memory of the process |
201
+ | `--http-cache varnish` | a compose service `varnish` (Varnish 9.1.0, reaching the API on `host.docker.internal`) with its VCL in `docker/varnish/default.vcl` (only answers whose `Cache-Control` allows them by `max-age` or `s-maxage` are kept, filed under their `xkey` tags, purged by `PURGE` from the machine of Varnish or with `VARNISH_PURGE_KEY`, `x-cache: HIT\|MISS`), `VARNISH_URL` and `VARNISH_PURGE_KEY` validated, `cacheTags: { header: CacheTagHeader.xkey }` in the HTTP boundary, and the outbox relay of `main.ts` and of every `generate service` entry point publishing through `PurgingPublisher` with `VarnishCachePurger` (the end-to-end application records the purges in `purges`); on `--di manual` and `nest` the platform gains `cacheInvalidation`; with `--tenancy`, the tags of the answers and the purges are filed under the tenant (`perTenant`) and the tenant of a request is read from `x-tenant-id`. Needs an HTTP framework and `--events outbox`: a purge is a row of the outbox |
199
202
  | `--errors sentry` | unexpected failures reported to Sentry or GlitchTip (one protocol, only the DSN differs) through the kernel `ErrorReporter`, bound to `@ddd-ts-kit/sentry`. `src/platform/errors.ts` (`initSentry` on the validated configuration, then `reportProcessFailures`), the second import of `main.ts`, of `apps/<context>/main.ts` and of `apps/worker/main.ts`, right after `tracing.ts`; `errors` handed to `composeApplication`, which gives it to the kernel module on tsyringe (`errorReporter`, flushed by `container.stop()` before the logger, `errorReportingMiddleware` first on both buses, the default scheduler observing with `reportFailedRuns`) or to `createPlatform` by hand (the same middleware, `onRun: reportFailedRuns(errors)`, `platform.errors`, flushed two seconds at most when the application stops); `reportHttpErrors` in `auth/http-boundary.ts` for every request answered 5xx; `DeadLetterReports` on the `onFailure` hook of a provided broker (`createEventProvider(config, errors)`, with `observing` around each consumer) and of the outbox relay. `SENTRY_DSN`, `SENTRY_ENVIRONMENT` (default: `NODE_ENV`), `SENTRY_RELEASE` and `SENTRY_SCRUB_MESSAGES` validated in `config/load-config.ts` as `errorReporting`: without a DSN the application starts and reports nothing; a DSN that is not a URL refuses the start. Dependencies `@ddd-ts-kit/sentry` and `@sentry/node`. A compose profile `errors` running GlitchTip 6.2.6 with its own PostgreSQL and Valkey (`GLITCHTIP_PORT`, loopback only, development bootstrap), and a section of the generated README saying how to read its DSN. The tools and the tests compose the application without a reporter. It goes with every other choice of the stack; with `--errors none` nothing of this is written |
200
203
  | `--authn keycloak` | a compose service `keycloak` (Keycloak 26.8.0, `start-dev --import-realm`, profile `identity`) and `docker/keycloak/<project>-realm.json`: the API client, a public client `<project>-local` with the direct grant, its audience and `tenant_id` mappers, the realm role `admin`, and the demo users `demo-admin` and `demo-user`, for local development only |
201
204
  | `src/platform/events/` | `event-provider.ts` (`bus`, `forConsumer(name)`, `start()`, `close()`), `in-process-events.ts`, and for `--broker` `create-event-provider.ts`: `RabbitMqEventBus` (`AMQP_URL`), `KafkaEventBus` (`KAFKA_BROKERS`, with `aggregate-key-of.ts` for per-aggregate order), `NatsEventBus` (`NATS_URL`) or `RedisStreamsEventBus` of `@ddd-ts-kit/redis/event-bus` (`REDIS_URL`: Redis, Dragonfly or Valkey), each with one subscriber per consuming context (`forConsumer`), `assertTopology` at start, its address validated and a compose service with a healthcheck; or `custom-event-bus.ts` with its `eventBusContract` spec. `start-outbox-relay.ts` with the outbox. `--broker redis` with `--cache redis` is one server and one compose service, `cache`; alone, the service is `streams` |
@@ -269,12 +272,13 @@ ddd-ts-kit generate --help --json
269
272
  | `error` (`refusal`) | `<context> <Concept> <refusal> [--code CODE] [--term ...]...` | a static factory `<refusal>` on `domain/errors/<concept>.error.ts`, the class of the errors of that concept (created when absent, extending `ConceptError`), and its case in `test/unit/<concept>.error.spec.ts`. The factory is added after the last one; run again, the command changes nothing. `<Concept>` is a term of the glossary (`--term` adds it). The code is the name of the refusal in constant case, with the concept before it when the name is one word or a code of the kit (`Appointment notFound` sets `APPOINTMENT_NOT_FOUND`); `--code` takes one of the forms `errors/factory-name` accepts. Refused: a name such as `create` or `error1`, and a code already set in the context |
270
273
  | `domain-error` | `<context> <Name> [--code CODE]` | one class per error with a stable code, spec: the form of a project whose config says `"stack.refusals": "classes"` or nothing. Refused under `factories`, with the `generate error` command to run instead |
271
274
  | `domain-service` | `<context> <Name>` | service, spec |
275
+ | `state-machine` | `<context> <Aggregate> [--value <state>]... [--transition "<intention>:<from>[,<from>]...[><to>]"]...` | the vocabulary `<Aggregate>Status` (created from `--value`, two states at least, or given the values it misses), `domain/state-machines/<aggregate>.state-machine.ts` (`<aggregate>Lifecycle`: every value a state, the first one initial, the transitions asked, a `TODO(domain)` for the refusal of the concept error) and `test/unit/<aggregate>.state-machine.spec.ts` (each transition where it leads, a refusal from a state it does not leave); the aggregate is left to use it |
272
276
  | `repository` | `<context> <Aggregate> [--tenant-scoped]` | the port `domain/repositories/<name>.repository.ts` (`abstract class <Name>Repository extends Repository<<Name>>`), the adapter of the project's ORM (`implements` the port) with its mapper and table (or model), a fake, one `repositoryContract` spec run on both, registration |
273
277
  | `command` | `<context> <UseCaseName> (--permission <aggregate>.<action> \| --public) [--aggregate <Name>]` | `<use-case>.command.ts` on `AuthorizedCommand` (plain `Command` when public), `<use-case>.handler.ts` (it builds the aggregate, saves it and answers: the events leave with the save), spec through the bus with the refusal of an actor who lacks the permission, registration with `.requires(...)` or `.public()` (and the repository when missing). A generated command answers `void` or the identifier of its aggregate, so no `<use-case>.result.ts` is written |
274
278
  | `query` | `<context> <UseCaseName> (--permission <aggregate>.<action> \| --public) [--search]` | `<use-case>.query.ts` on `AuthorizedQuery` (plain `Query` when public), `<use-case>.result.ts`, `<use-case>.handler.ts`, the read port `application/ports/<use-case>-reader.port.ts` (an abstract class), its in-memory adapter, fake, spec, registration on the query bus. With `--search` (needs `--permission`): a kernel `PageRequest` in the query, the item, the sort and `Page<Item>` in the result file, a handler that asks `Access.scope` and hands the scope to the read port, an in-memory reader paging by offset or cursor |
275
279
  | `port` | `<context> <Name>` | `application/ports/<name>.port.ts`, one abstract class, and its fake |
276
- | `route` | `<context> <UseCaseName> --method <GET\|POST\|PUT\|PATCH\|DELETE> --path <p> [--command\|--query] [--group <Name>] [--mapper] [--serializer]` | under `"stack.routes": "controllers"`: a controller class in `presentation/http/<resource>/<use-case>/` (the resource is the first segment of the path), depending on `CommandBus` or `QueryBus`, behind the route group of its resource, written with it when it is new (`<resource>.routes.ts`: prefix, tag, `Authenticated`); a public use case stands in no group and says `guards: [Public]`; with class-validator one class per file (`<use-case>.params.ts`, `.body.ts`, `.answer.ts`, `.accepted.ts`, `.line.ts`); `--mapper` and `--serializer` add a request mapper and a serializer the controller is given; a spec; no registration in a declared project, a controller built by hand in `<context>.routes.ts` (the module file with hand wiring) in an explicit one. Under `"functions"`: a `defineRoute` function, its spec, its registration in `<context>.routes.ts`, and `<use-case>-<role>.dto.ts` classes |
277
- | `controller` | the same arguments as `route` | the controller class, whatever `stack.routes` says: for a project of function routes that writes its next route as a class |
280
+ | `route` | `<context> <UseCaseName> --method <GET\|POST\|PUT\|PATCH\|DELETE> --path <p> [--command\|--query] [--group <Name>] [--mapper] [--serializer] [--cache public\|private\|no-store]` | under `"stack.routes": "controllers"`: a controller class in `presentation/http/<resource>/<use-case>/` (the resource is the first segment of the path), depending on `CommandBus` or `QueryBus`, behind the route group of its resource, written with it when it is new (`<resource>.routes.ts`: prefix, tag, `Authenticated`); a public use case stands in no group and says `guards: [Public]`; with class-validator one class per file (`<use-case>.params.ts`, `.body.ts`, `.answer.ts`, `.accepted.ts`, `.line.ts`); `--mapper` and `--serializer` add a request mapper and a serializer the controller is given; a spec; no registration in a declared project, a controller built by hand in `<context>.routes.ts` (the module file with hand wiring) in an explicit one. Under `"functions"`: a `defineRoute` function, its spec, its registration in `<context>.routes.ts`, and `<use-case>-<role>.dto.ts` classes |
281
+ | `controller` | the same arguments as `route` | the controller class, whatever `stack.routes` says: for a project of function routes that writes its next route as a class. `--cache` writes its cache policy: `private` (a `GET` of a caller, `max-age=0`, `must-revalidate`, strong `ETag`), `public` (a `GET` of a public use case, `max-age` 1m, `s-maxage` 5m, tagged with the resources of its path), `no-store`; refused on a write, and `public` behind a route group |
278
282
  | `route-group` (`group`) | `<context> <Name> [--prefix <path>] [--group <ParentName>] [--public \| --role <role>]` | `presentation/http/<name>.routes.ts`: an empty class carrying `@RouteGroup`, behind `Authenticated` unless `--public` or `--role` says otherwise (`HasRole(Role.Admin)`, the role read from the vocabulary of the platform, `<platformDir>/auth/role.ts`, which gets it when it does not hold it); with `--group` it refines that group and inherits from it |
279
283
  | `guard` | `<context> <Name>` | `presentation/http/guards/<name>.guard.ts`: a declared guard class to fill, and its spec |
280
284
  | `integration-event` | `<context> <Aggregate> <Fact> [--version n]` | `defineIntegrationEvent` declaration in the published language (its payload in `<event>.v<n>.payload.ts` with class-validator or a schema of your own), index export, the publisher `application/integration/publishers/<event>.publisher.ts`, spec, registration, a line of `platform/audit/audited-events.ts` |
@@ -282,6 +286,8 @@ ddd-ts-kit generate --help --json
282
286
  | `event-handler` | `<context> <Aggregate> <Fact> [--phase after-commit]` | reaction to a domain event of the context, spec, subscription; before the commit of the unit of work by default, after it with `--phase after-commit` (an effect no transaction covers, at most once), and the spec runs the reaction in that phase |
283
287
  | `projection` (`projector`) | `<context> <Name> <event-type>` | a projector in `application/projections/<name>.projection.ts`, declared with `@Projection('<context>.<name>')` and one `@On(definition)` method for the integration event, which the context itself or a declared upstream publishes, and its spec; declared style only. It keeps one read model: its port is received in the constructor |
284
288
  | `job` | `<context> <Name> (--every <duration> \| --cron "<expression>" [--time-zone <zone>]) --command <UseCaseName>` | `application/scheduling/<name>.job.ts`, a class `<Name>Job implements ScheduledJob` that sends the command, as `systemActor('<context>.<name>')` when it is protected, with `execution.scheduledAt` when the command takes it; `test/unit/<name>.job.spec.ts`, which runs the job (by name on tsyringe, `application.jobs.runNow`; `job.run(occurrence)` with hand wiring) and asserts the command it sent; its registration; its switch in `platform/job-settings.ts`; the grant of its system actor (below) |
289
+ | `background-job` | `<context> <Name> --command <UseCaseName>` | `application/background/<name>.background-job.ts`, a class `<Name>BackgroundJob implements BackgroundJob<<Name>Payload>` named by its static `jobName` `<context>.<name>`, that sends the command as `execution.actor` when it is protected, followed by one field of `<Name>Payload` per other parameter of the constructor of the command (strings, numbers, booleans, literals and lists of them as written, a `Date` as its ISO text; anything else is refused); `test/unit/<name>.background-job.spec.ts`, which enqueues it with a payload of every field as a user holding the permission and runs what is due; its registration (`@Background()`, or `builder.backgroundJob(..)` in the module file). `--di tsyringe` only |
290
+ | `process` (`process-manager`) | `<context> <Name>` | `application/processes/<name>.process.ts` (its state, `processName`, `timeoutJob`, `isState`, a first step that arms a deadline, a step that ends it in time, the step of the deadline), `application/background/<name>-timeout.background-job.ts`, which delivers its timeouts through `ProcessRunner`, and the specs of both (`givenProcess`, the queue of the test application). `--di tsyringe` only |
285
291
  | `acl` | `<context> <upstreamOrSystemName>` | translator in `infrastructure/anti-corruption/`, spec |
286
292
  | `e2e` | `<context> <UseCaseName>` | `test/e2e/<use-case>.e2e.spec.ts` driving the route of the use case: 401 without a credential, 403 without the permission, the documented status with it; for a command, one more test asserts the trace of the request, exact on names and structure, with `installTestTracing()` and `expectSpanTree(storyOf(trace), [...])` of `@ddd-ts-kit/tracing/testing` (`POST /invoices`, then `command IssueInvoiceCommand`, then `repository InvoiceRepository.save`); needs the route |
287
293
  | `policy` | `<context> <Name> --permission <aggregate>.<action>` | `application/authorization/<name>.policy.ts`, spec; declared: the class carries `@Policy(permission, { name })` and nothing else is written; explicit: registration in `platform/auth/access-policies.ts` |
@@ -771,11 +777,11 @@ saying what to do instead. Exit code 1 when there is at least one error.
771
777
  | `aspects/outside-in` | an import of `@ddd-ts-kit/aspects/decorators` outside `infrastructure/` of a context and the platform directory: `presentation/`, the module file, `published-language/`, the shared kernel, `main.ts`, any other source (`domain/` and `application/` are reported by the two `layer/*` rules instead) |
772
778
  | `tracing/platform-only` | an import of `@ddd-ts-kit/tracing` or of an `@opentelemetry/*` package outside the platform directory, `main.ts` and `apps/`, tests included |
773
779
  | `tenancy/scoped-statement` | with `stack.tenancy` other than `none`, in `infrastructure/` of a context, tests aside: on Knex the executor used other than as an argument (`executor()(`, `executor().from(`, `executor().raw(`, `const db = ...executor();`) and any `.raw(`; on Drizzle, statement by statement, a read, update or delete on the executor whose where has no `tenantCondition(` nor `ownTenantCondition(` (inline or in the local it is given), an insert whose row has no `tenantScopeOf(`, a relational query (`executor().query`), a raw `execute(`, or the executor held in a variable; on both, a read model store built without its `tenant` option. A where built by another function is not followed |
774
- | `standard/no-parallel-interface` | a class, interface or type alias declared as `ILogger`, `AppLogger`, `LoggerService`, `LoggerInterface`, `IMetrics`, `MetricsService`, `ICache`, `CacheService`, `UserContext`, `CurrentUser`, `AuthContext`, `RequestContext` (outside `presentation/` and the platform), `UserSession`, `AuthSession`, `SessionData`, `PaginatedResult`, `PageResult`, `PaginatedResponse`, `Paginated`, `PaginationParams`, `PageParams`, `AuditLog`, `AuditLogEntry`, `AuditRecord`, `IJobScheduler`, `JobSchedulerService`, `CronScheduler`, `TaskScheduler`, `IScheduledJob`, `CronJob`, `ScheduledTask`, `BackgroundJob`, `IErrorReporter`, `ErrorReporterService`, `ErrorTracker`, `ExceptionReporter`, `CrashReporter`, `I` followed by a standard name (`IClock`, `IIdGenerator`, `IUnitOfWork`, `ISession`, ...) or a name of `standardInterfaces`; a class that implements or extends the standard interface is an adapter and is not reported |
780
+ | `standard/no-parallel-interface` | a class, interface or type alias declared as `ILogger`, `AppLogger`, `LoggerService`, `LoggerInterface`, `IMetrics`, `MetricsService`, `ICache`, `CacheService`, `UserContext`, `CurrentUser`, `AuthContext`, `RequestContext` (outside `presentation/` and the platform), `UserSession`, `AuthSession`, `SessionData`, `PaginatedResult`, `PageResult`, `PaginatedResponse`, `Paginated`, `PaginationParams`, `PageParams`, `AuditLog`, `AuditLogEntry`, `AuditRecord`, `IJobScheduler`, `JobSchedulerService`, `CronScheduler`, `TaskScheduler`, `IScheduledJob`, `CronJob`, `ScheduledTask`, `BackgroundJob`, `IErrorReporter`, `ErrorReporterService`, `ErrorTracker`, `ExceptionReporter`, `CrashReporter`, `CacheInvalidator`, `CacheInvalidationService`, `CachePurgeService`, `CdnPurger`, `I` followed by a standard name (`IClock`, `IIdGenerator`, `IUnitOfWork`, `ISession`, ...) or a name of `standardInterfaces`; a class that implements or extends the standard interface is an adapter and is not reported |
775
781
  | `events/outbox-required` | `stack.events` other than `outbox` with an ORM and no `stack.events` deviation; in `domain/` and `application/`, the import of a broker client or of a bus or relay implementation; a publisher depending on more than `IntegrationEventPublisher`; a platform module that hands out a publisher and never names `OutboxPublisher` |
776
782
  | `events/consumer-idempotent` | an integration event handler class (`application/integration/handlers/*.integration-handler.ts`) that neither carries `@IntegrationEventHandler` nor is registered in its module file under a consumer name; an `@IntegrationEventHandler` whose `consumer` is not a non-empty string literal; a free `on(` or `consume(` without `processed`; a consumer name used twice, in declarations and registrations alike |
777
783
  | `domain-events/dispatched-on-save` | a call of `pullEvents()` in `application/` or `infrastructure/` of a context; `DomainEventDispatcher` imported, listed as a dependency or received by a constructor in `application/commands/`, `application/queries/` or a repository adapter. The module file, the tests, the platform and `main.ts` are left alone |
778
- | `domain-events/transactional-before-commit` | a domain event handler (a class of `application/event-handlers/*.event-handler.ts` or `application/integration/publishers/*.publisher.ts`, or any class carrying `@DomainEventHandler`) that runs before the commit and depends on `Cache`, `Lock`, `RateLimiter`, `JobScheduler` or `EventBus` of the kernel, on a port of `application/ports/` that is not a persistence port (no adapter under `infrastructure/persistence/`, or one anywhere else under `infrastructure/`), on anything imported from `infrastructure/`, another context, the platform or a package other than `@ddd-ts-kit/kernel` and `@ddd-ts-kit/auth`; an after-commit handler (`phase: 'after-commit'` in its decorator, or in the third argument of every `.on(` of the module file that mentions it) depending on `IntegrationEventPublisher`. `check-file` leaves the adapters of a port to the whole check |
784
+ | `domain-events/transactional-before-commit` | a domain event handler (a class of `application/event-handlers/*.event-handler.ts` or `application/integration/publishers/*.publisher.ts`, or any class carrying `@DomainEventHandler`) that runs before the commit and depends on `Cache`, `CachePurger`, `Lock`, `RateLimiter`, `JobScheduler` or `EventBus` of the kernel, on a port of `application/ports/` that is not a persistence port (no adapter under `infrastructure/persistence/`, or one anywhere else under `infrastructure/`), on anything imported from `infrastructure/`, another context, the platform or a package other than `@ddd-ts-kit/kernel` and `@ddd-ts-kit/auth`; an after-commit handler (`phase: 'after-commit'` in its decorator, or in the third argument of every `.on(` of the module file that mentions it) depending on `IntegrationEventPublisher`. `check-file` leaves the adapters of a port to the whole check |
779
785
  | `event-sourcing/state-in-apply` | in a class of `domain/aggregates/` extending `EventSourcedAggregate`, a write to something of `this` (assignment, increment, mutating call) outside the constructor, static methods, `apply<Fact>` methods and `restore`; `this.record(..)` inside an apply method |
780
786
  | `event-sourcing/past-tense` | in a file of `domain/aggregates/` holding an event-sourced aggregate, a name imported from `domain/events/` whose fact (the words after the name of the aggregate) holds no past participle, or only one spelled like its imperative at its head (`SetPrice`) |
781
787
  | `event-sourcing/store-behind-repository` | `EventStore`, `SnapshotStore`, `CheckpointStore`, `EventSourcedRepository`, `EventSerializer`, `CatchUpSubscription` or `InMemoryEventStore` imported in `domain/` or `application/` |
@@ -1000,7 +1006,7 @@ the process, without a container:
1000
1006
  with Prisma, every kind generated, installed for real from the packed kit: the frozen install of
1001
1007
  a pipeline, the build, `verify`, and `affected` from the installed CLI.
1002
1008
  - `first-class.spec.ts`: the first-class stack, `--validation class-validator --orm knex --authn
1003
- keycloak --authz rebac --cache redis --audit on --errors sentry --logger pino --style declared`
1009
+ keycloak --authz rebac --cache redis --http-cache varnish --audit on --errors sentry --logger pino --style declared`
1004
1010
  (legacy decorator mode), three times, with `--broker redis` (one server for the cache and the
1005
1011
  event bus), `--broker nats` and `--broker kafka`: the same analyzers before and after the
1006
1012
  business decisions of `test/first-class-proof.ts`, a failed job and a dead-lettered event
@@ -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,WAAW,CAAC;AAEtC,qEAAqE;AACrE,eAAO,MAAM,KAAK,EAAE,SAAS,IAAI,EAmEhC,CAAC"}
1
+ {"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/roles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,qEAAqE;AACrE,eAAO,MAAM,KAAK,EAAE,SAAS,IAAI,EAqFhC,CAAC"}
@@ -9,6 +9,12 @@ export const ROLES = [
9
9
  { directory: 'domain/errors', suffixes: ['.error.ts'] },
10
10
  { directory: 'domain/repositories', suffixes: ['.repository.ts'] },
11
11
  { directory: 'domain/services', suffixes: ['.service.ts'], specFor: ['.service.ts'] },
12
+ {
13
+ directory: 'domain/state-machines',
14
+ suffixes: ['.state-machine.ts'],
15
+ oneConcept: true,
16
+ specFor: ['.state-machine.ts'],
17
+ },
12
18
  {
13
19
  directory: 'application/commands/*',
14
20
  suffixes: ['.command.ts', '.handler.ts', '.result.ts'],
@@ -30,6 +36,18 @@ export const ROLES = [
30
36
  specFor: ['.event-handler.ts'],
31
37
  },
32
38
  { directory: 'application/scheduling', suffixes: ['.job.ts'], oneConcept: true, specFor: ['.job.ts'] },
39
+ {
40
+ directory: 'application/processes',
41
+ suffixes: ['.process.ts'],
42
+ oneConcept: true,
43
+ specFor: ['.process.ts'],
44
+ },
45
+ {
46
+ directory: 'application/background',
47
+ suffixes: ['.background-job.ts'],
48
+ oneConcept: true,
49
+ specFor: ['.background-job.ts'],
50
+ },
33
51
  {
34
52
  directory: 'application/projections',
35
53
  suffixes: ['.projection.ts'],
@@ -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,EAAE,OAAO,EAAE,CAAC,eAAe,CAAC,EAAE;IAC7G,EAAE,SAAS,EAAE,iBAAiB,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE;IAC5E,EAAE,SAAS,EAAE,sBAAsB,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE;IAClG,EAAE,SAAS,EAAE,qBAAqB,EAAE,QAAQ,EAAE,CAAC,gBAAgB,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE;IACpF,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE;IACzE,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE;IACvD,EAAE,SAAS,EAAE,qBAAqB,EAAE,QAAQ,EAAE,CAAC,gBAAgB,CAAC,EAAE;IAClE,EAAE,SAAS,EAAE,iBAAiB,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE;IACrF;QACE,SAAS,EAAE,wBAAwB;QACnC,QAAQ,EAAE,CAAC,aAAa,EAAE,aAAa,EAAE,YAAY,CAAC;QACtD,UAAU,EA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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;CAC1D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"architecture-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AA2E7C,gHAAgH;AAChH,eAAO,MAAM,kBAAkB,EAAE,SAAS,IAAI,EA0E7C,CAAC"}
1
+ {"version":3,"file":"architecture-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AA6E7C,gHAAgH;AAChH,eAAO,MAAM,kBAAkB,EAAE,SAAS,IAAI,EA4E7C,CAAC"}
@@ -44,6 +44,7 @@ import { languageDeclaredVocabulary } from '../rules/language-declared-vocabular
44
44
  import { languageGlossaryTerm } from '../rules/language-glossary-term.js';
45
45
  import { languageNoTechnicalName } from '../rules/language-no-technical-name.js';
46
46
  import { layerApplicationInward } from '../rules/layer-application-inward.js';
47
+ import { lifecycleStatusThroughMachine } from '../rules/lifecycle-status-through-machine.js';
47
48
  import { layerDomainPurity } from '../rules/layer-domain-purity.js';
48
49
  import { layerInfrastructureNoPresentation } from '../rules/layer-infrastructure-no-presentation.js';
49
50
  import { layerPresentationNoInfrastructure } from '../rules/layer-presentation-no-infrastructure.js';
@@ -57,6 +58,7 @@ import { portsImplementsNeverExtends } from '../rules/ports-implements-never-ext
57
58
  import { portsNoConcreteDependency } from '../rules/ports-no-concrete-dependency.js';
58
59
  import { portsNoTokenConstant } from '../rules/ports-no-token-constant.js';
59
60
  import { portsValueImport } from '../rules/ports-value-import.js';
61
+ import { processSendsCommandsOnly } from '../rules/process-sends-commands-only.js';
60
62
  import { purityNoAmbientRandomness } from '../rules/purity-no-ambient-randomness.js';
61
63
  import { purityNoEnvironment } from '../rules/purity-no-environment.js';
62
64
  import { purityNoSystemClock } from '../rules/purity-no-system-clock.js';
@@ -137,6 +139,8 @@ export const ARCHITECTURE_RULES = [
137
139
  portsNoConcreteDependency,
138
140
  portsValueImport,
139
141
  schedulingJobTriggersUseCase,
142
+ lifecycleStatusThroughMachine,
143
+ processSendsCommandsOnly,
140
144
  schedulingJobName,
141
145
  importsAliasOnly,
142
146
  importsExtension,
@@ -1 +1 @@
1
- {"version":3,"file":"architecture-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM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B;IAClB,eAAe;IACf,WAAW;IACX,qBAAqB;IACrB,aAAa;IACb,oBAAoB;IACpB,wBAAwB;IACxB,4BAA4B;IAC5B,qCAAqC;IACrC,yBAAyB;IACzB,sBAAsB;IACtB,kCAAkC;IAClC,mCAAmC;IACnC,6BAA6B;IAC7B,kBAAkB;IAClB,aAAa;IACb,kBAAkB;IAClB,kBAAkB;IAClB,gBAAgB;IAChB,mBAAmB;IACnB,sBAAsB;IACtB,2BAA2B;IAC3B,2BAA2B;IAC3B,uBAAuB;IACvB,wBAAwB;IACxB,yBAAyB;IACzB,gCAAgC;IAChC,kBAAkB;IAClB,2BAA2B;IAC3B,oBAAoB;IACpB,yBAAyB;IACzB,gBAAgB;IAChB,4BAA4B;IAC5B,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,oBAAoB;IACpB,gBAAgB;IAChB,eAAe;IACf,2BAA2B;IAC3B,wBAAwB;IACxB,qBAAqB;CACtB,CAAC"}
1
+ {"version":3,"file":"architecture-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,mBAAmB,E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IAChC,WAAW;IACX,mBAAmB;IACnB,oBAAoB;IACpB,oBAAoB;IACpB,uBAAuB;IACvB,0BAA0B;IAC1B,mBAAmB;IACnB,yBAAyB;IACzB,mBAAmB;IACnB,aAAa;IACb,iBAAiB;IACjB,uBAAuB;IACvB,mBAAmB;IACnB,kBAAkB;IAClB,mBAAmB;IACnB,kBAAkB;IAClB,eAAe;IACf,WAAW;IACX,qBAAqB;IACrB,aAAa;IACb,oBAAoB;IACpB,wBAAwB;IACxB,4BAA4B;IAC5B,qCAAqC;IACrC,yBAAyB;IACzB,sBAAsB;IACtB,kCAAkC;IAClC,mCAAmC;IACnC,6BAA6B;IAC7B,kBAAkB;IAClB,aAAa;IACb,kBAAkB;IAClB,kBAAkB;IAClB,gBAAgB;IAChB,mBAAmB;IACnB,sBAAsB;IACtB,2BAA2B;IAC3B,2BAA2B;IAC3B,uBAAuB;IACvB,wBAAwB;IACxB,yBAAyB;IACzB,gCAAgC;IAChC,kBAAkB;IAClB,2BAA2B;IAC3B,oBAAoB;IACpB,yBAAyB;IACzB,gBAAgB;IAChB,4BAA4B;IAC5B,6BAA6B;IAC7B,wBAAwB;IACxB,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,oBAAoB;IACpB,gBAAgB;IAChB,eAAe;IACf,2BAA2B;IAC3B,wBAAwB;IACxB,qBAAqB;CACtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"eslint-only-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/eslint-only-rules.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAAE,EAsD7F,CAAC"}
1
+ {"version":3,"file":"eslint-only-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/eslint-only-rules.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAAE,EA2D7F,CAAC"}
@@ -44,6 +44,10 @@ export const ESLINT_ONLY_RULES = [
44
44
  id: 'presentation/controller-delegates',
45
45
  description: 'A controller takes the bus of its method (CommandBus for POST, PUT, PATCH, DELETE; QueryBus for GET, HEAD), a request mapper and a serializer, and nothing else.',
46
46
  },
47
+ {
48
+ id: 'presentation/shared-cache-varies',
49
+ description: 'A route, a controller or a route group that knows its caller (a guard other than Public, security schemes) and declares a public cache policy names in vary the request headers its answer depends on.',
50
+ },
47
51
  {
48
52
  id: 'presentation/guard-at-the-edge',
49
53
  description: 'A *.guard.ts file imports nothing from domain/ or infrastructure/, no repository, no unit of work and no command bus.',
@@ -1 +1 @@
1
- {"version":3,"file":"eslint-only-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/eslint-only-rules.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAqE;IACjG;QACE,EAAE,EAAE,gCAAgC;QACpC,WAAW,EACT,0GAA0G;KAC7G;IACD;QACE,EAAE,EAAE,kCAAkC;QACtC,WAAW,EAAE,kGAAkG;KAChH;IACD;QACE,EAAE,EAAE,yBAAyB;QAC7B,WAAW,EAAE,sGAAsG;KACpH;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EACT,kKAAkK;KACrK;IACD;QACE,EAAE,EAAE,+BAA+B;QACnC,WAAW,EACT,gMAAgM;KACnM;IACD;QACE,EAAE,EAAE,qBAAqB;QACzB,WAAW,EACT,kOAAkO;KACrO;IACD;QACE,EAAE,EAAE,uBAAuB;QAC3B,WAAW,EACT,gLAAgL;KACnL;IACD;QACE,EAAE,EAAE,2BAA2B;QAC/B,WAAW,EAAE,6EAA6E;KAC3F;IACD,EAAE,EAAE,EAAE,sCAAsC,EAAE,WAAW,EAAE,oDAAoD,EAAE;IACjH;QACE,EAAE,EAAE,+BAA+B;QACnC,WAAW,EACT,sHAAsH;KACzH;IACD;QACE,EAAE,EAAE,mCAAmC;QACvC,WAAW,EACT,kKAAkK;KACrK;IACD;QACE,EAAE,EAAE,gCAAgC;QACpC,WAAW,EACT,uHAAuH;KAC1H;CACF,CAAC"}
1
+ {"version":3,"file":"eslint-only-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/eslint-only-rules.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAqE;IACjG;QACE,EAAE,EAAE,gCAAgC;QACpC,WAAW,EACT,0GAA0G;KAC7G;IACD;QACE,EAAE,EAAE,kCAAkC;QACtC,WAAW,EAAE,kGAAkG;KAChH;IACD;QACE,EAAE,EAAE,yBAAyB;QAC7B,WAAW,EAAE,sGAAsG;KACpH;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EACT,kKAAkK;KACrK;IACD;QACE,EAAE,EAAE,+BAA+B;QACnC,WAAW,EACT,gMAAgM;KACnM;IACD;QACE,EAAE,EAAE,qBAAqB;QACzB,WAAW,EACT,kOAAkO;KACrO;IACD;QACE,EAAE,EAAE,uBAAuB;QAC3B,WAAW,EACT,gLAAgL;KACnL;IACD;QACE,EAAE,EAAE,2BAA2B;QAC/B,WAAW,EAAE,6EAA6E;KAC3F;IACD,EAAE,EAAE,EAAE,sCAAsC,EAAE,WAAW,EAAE,oDAAoD,EAAE;IACjH;QACE,EAAE,EAAE,+BAA+B;QACnC,WAAW,EACT,sHAAsH;KACzH;IACD;QACE,EAAE,EAAE,mCAAmC;QACvC,WAAW,EACT,kKAAkK;KACrK;IACD;QACE,EAAE,EAAE,kCAAkC;QACtC,WAAW,EACT,wMAAwM;KAC3M;IACD;QACE,EAAE,EAAE,gCAAgC;QACpC,WAAW,EACT,uHAAuH;KAC1H;CACF,CAAC"}
@@ -1,7 +1,7 @@
1
1
  const KERNEL = '@ddd-ts-kit/kernel';
2
2
  const TRUSTED_PACKAGES = [KERNEL, '@ddd-ts-kit/auth'];
3
3
  /** The ports of the kernel whose effect no transaction covers. */
4
- const OUTSIDE_THE_TRANSACTION = ['Cache', 'Lock', 'RateLimiter', 'JobScheduler', 'EventBus'];
4
+ const OUTSIDE_THE_TRANSACTION = ['Cache', 'CachePurger', 'Lock', 'RateLimiter', 'JobScheduler', 'EventBus'];
5
5
  /**
6
6
  * Why a handler of `context` that runs before the commit may not depend on this, in the words
7
7
  * that follow the name of the dependency; undefined when it may. A port of `application/ports/`
@@ -1 +1 @@
1
- {"version":3,"file":"refused-before-commit.js","sourceRoot":"","sources":["../../../src/check/domain-events/refused-before-commit.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAG,oBAAoB,CAAC;AACpC,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;AACtD,kEAAkE;AAClE,MAAM,uBAAuB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,CAAC,CAAC;AAE7F;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAe,EAAE,EAAE,IAAI,EAAE,MAAM,EAAqB;IACtF,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,oBAAoB,MAAM,CAAC,IAAI,EAAE,CAAC;IAC3C,CAAC;IAED,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IAED,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;IAE5B,IAAI,QAAQ,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;QACjC,OAAO,+BAA+B,CAAC;IACzC,CAAC;IAED,IAAI,QAAQ,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAChC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,QAAQ,CAAC,OAAO,KAAK,OAAO,EAAE,CAAC;QACjC,OAAO,gCAAgC,QAAQ,CAAC,OAAO,EAAE,CAAC;IAC5D,CAAC;IAED,OAAO,QAAQ,CAAC,KAAK,KAAK,gBAAgB,CAAC,CAAC,CAAC,wCAAwC,CAAC,CAAC,CAAC,SAAS,CAAC;AACpG,CAAC;AAED,SAAS,WAAW,CAAC,IAAY,EAAE,WAAmB;IACpD,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;QAC5C,OAAO,gCAAgC,WAAW,EAAE,CAAC;IACvD,CAAC;IAED,OAAO,WAAW,KAAK,MAAM,IAAI,uBAAuB,CAAC,QAAQ,CAAC,IAAI,CAAC;QACrE,CAAC,CAAC,4CAA4C;QAC9C,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC"}
1
+ {"version":3,"file":"refused-before-commit.js","sourceRoot":"","sources":["../../../src/check/domain-events/refused-before-commit.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAG,oBAAoB,CAAC;AACpC,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;AACtD,kEAAkE;AAClE,MAAM,uBAAuB,GAAG,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,CAAC,CAAC;AAE5G;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAe,EAAE,EAAE,IAAI,EAAE,MAAM,EAAqB;IACtF,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,oBAAoB,MAAM,CAAC,IAAI,EAAE,CAAC;IAC3C,CAAC;IAED,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IAED,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;IAE5B,IAAI,QAAQ,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;QACjC,OAAO,+BAA+B,CAAC;IACzC,CAAC;IAED,IAAI,QAAQ,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAChC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,QAAQ,CAAC,OAAO,KAAK,OAAO,EAAE,CAAC;QACjC,OAAO,gCAAgC,QAAQ,CAAC,OAAO,EAAE,CAAC;IAC5D,CAAC;IAED,OAAO,QAAQ,CAAC,KAAK,KAAK,gBAAgB,CAAC,CAAC,CAAC,wCAAwC,CAAC,CAAC,CAAC,SAAS,CAAC;AACpG,CAAC;AAED,SAAS,WAAW,CAAC,IAAY,EAAE,WAAmB;IACpD,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;QAC5C,OAAO,gCAAgC,WAAW,EAAE,CAAC;IACvD,CAAC;IAED,OAAO,WAAW,KAAK,MAAM,IAAI,uBAAuB,CAAC,QAAQ,CAAC,IAAI,CAAC;QACrE,CAAC,CAAC,4CAA4C;QAC9C,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"kit-error-codes.d.ts","sourceRoot":"","sources":["../../../src/check/errors/kit-error-codes.ts"],"names":[],"mappings":"AAAA,yHAAyH;AACzH,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,EAmB5C,CAAC"}
1
+ {"version":3,"file":"kit-error-codes.d.ts","sourceRoot":"","sources":["../../../src/check/errors/kit-error-codes.ts"],"names":[],"mappings":"AAAA,yHAAyH;AACzH,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,EAqB5C,CAAC"}
@@ -13,6 +13,8 @@ export const KIT_ERROR_CODES = [
13
13
  'CIRCUIT_OPEN',
14
14
  'BULKHEAD_FULL',
15
15
  'ATTEMPTS_EXHAUSTED',
16
+ 'PRECONDITION_FAILED',
17
+ 'PRECONDITION_REQUIRED',
16
18
  'FILE_TOO_LARGE',
17
19
  'UNSUPPORTED_MEDIA_TYPE',
18
20
  'FILE_NOT_FOUND',
@@ -1 +1 @@
1
- {"version":3,"file":"kit-error-codes.js","sourceRoot":"","sources":["../../../src/check/errors/kit-error-codes.ts"],"names":[],"mappings":"AAAA,yHAAyH;AACzH,MAAM,CAAC,MAAM,eAAe,GAAsB;IAChD,mBAAmB;IACnB,WAAW;IACX,UAAU;IACV,qBAAqB;IACrB,cAAc;IACd,WAAW;IACX,sBAAsB;IACtB,kBAAkB;IAClB,sBAAsB;IACtB,SAAS;IACT,cAAc;IACd,eAAe;IACf,oBAAoB;IACpB,gBAAgB;IAChB,wBAAwB;IACxB,gBAAgB;IAChB,eAAe;IACf,kBAAkB;CACnB,CAAC"}
1
+ {"version":3,"file":"kit-error-codes.js","sourceRoot":"","sources":["../../../src/check/errors/kit-error-codes.ts"],"names":[],"mappings":"AAAA,yHAAyH;AACzH,MAAM,CAAC,MAAM,eAAe,GAAsB;IAChD,mBAAmB;IACnB,WAAW;IACX,UAAU;IACV,qBAAqB;IACrB,cAAc;IACd,WAAW;IACX,sBAAsB;IACtB,kBAAkB;IAClB,sBAAsB;IACtB,SAAS;IACT,cAAc;IACd,eAAe;IACf,oBAAoB;IACpB,qBAAqB;IACrB,uBAAuB;IACvB,gBAAgB;IAChB,wBAAwB;IACxB,gBAAgB;IAChB,eAAe;IACf,kBAAkB;CACnB,CAAC"}
@@ -21,7 +21,7 @@ export const ERRORS_DOCS = {
21
21
  }`,
22
22
  },
23
23
  'errors/known-code': {
24
- 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 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, CONCURRENCY_CONFLICT, INVALID_CRITERIA, INVALID_PAGE_REQUEST, TIMEOUT, CIRCUIT_OPEN, BULKHEAD_FULL, ATTEMPTS_EXHAUSTED, 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" only.',
24
+ 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 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, CONCURRENCY_CONFLICT, INVALID_CRITERIA, INVALID_PAGE_REQUEST, TIMEOUT, CIRCUIT_OPEN, BULKHEAD_FULL, ATTEMPTS_EXHAUSTED, 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" only.',
25
25
  bad: `// domain/errors/appointment.error.ts sets 'SLOT_TAKEN'
26
26
  defineRoute({ method: 'POST', path: '/appointments', errors: ['FORBIDDEN', 'SLOT_ALREADY_TAKEN'], security: ['bearer'] }, book);`,
27
27
  good: `defineRoute({ method: 'POST', path: '/appointments', errors: ['FORBIDDEN', 'SLOT_TAKEN'], security: ['bearer'] }, book);`,
@@ -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,y1BAAy1B;QAC91B,GAAG,EAAE;;;;;;;;EAQP;QACE,IAAI,EAAE;;;;;;;;EAQR;KACC;IACD,mBAAmB,EAAE;QACnB,GAAG,EAAE,i9BAAi9B;QACt9B,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,y1BAAy1B;QAC91B,GAAG,EAAE;;;;;;;;EAQP;QACE,IAAI,EAAE;;;;;;;;EAQR;KACC;IACD,mBAAmB,EAAE;QACnB,GAAG,EAAE,whCAAwhC;QAC7hC,GAAG,EAAE;iIACwH;QAC7H,IAAI,EAAE,0HAA0H;KACjI;CACF,CAAC"}
@@ -51,7 +51,7 @@ await this.invoices.save(invoice);
51
51
  await this.invoices.remove(invoice);`,
52
52
  },
53
53
  'domain-events/transactional-before-commit': {
54
- why: "An effect of a domain event exists only if the state change that recorded the event is committed. A handler that runs before the commit runs inside the transaction, and the commit can still fail after it ran (a deferred constraint, a serialization failure, a lost connection): that is safe only when the rollback undoes everything the handler did, so a before-commit handler has transactional effects only. Judged: every production class of application/event-handlers/*.event-handler.ts and application/integration/publishers/*.publisher.ts, and any class carrying @DomainEventHandler. Its phase is after-commit when its decorator says phase: 'after-commit', or, without a decorator, when every .on(..) of <context>.module.ts whose callback mentions it has a third argument holding phase: 'after-commit'; otherwise it is before-commit. Its dependencies are the names of its dependency list, of .toClass(Handler, [..]) and the types of its constructor parameters, resolved through the imports. Before the commit it may depend on the domain/ of its context, on the kernel ports except Cache, Lock, RateLimiter, JobScheduler and EventBus, on @ddd-ts-kit/auth, on application helpers of its context, and on a port of application/ports/ only when it is a persistence port: at least one production class implements it under infrastructure/persistence/ and none anywhere else under infrastructure/. Refused: those five kernel ports, any other port of application/ports/, anything of infrastructure/, of another context, of the platform or of another package. An after-commit handler is refused IntegrationEventPublisher alone: after the commit nothing makes the outbox row atomic with a state change, so it sends a command instead.",
54
+ why: "An effect of a domain event exists only if the state change that recorded the event is committed. A handler that runs before the commit runs inside the transaction, and the commit can still fail after it ran (a deferred constraint, a serialization failure, a lost connection): that is safe only when the rollback undoes everything the handler did, so a before-commit handler has transactional effects only. Judged: every production class of application/event-handlers/*.event-handler.ts and application/integration/publishers/*.publisher.ts, and any class carrying @DomainEventHandler. Its phase is after-commit when its decorator says phase: 'after-commit', or, without a decorator, when every .on(..) of <context>.module.ts whose callback mentions it has a third argument holding phase: 'after-commit'; otherwise it is before-commit. Its dependencies are the names of its dependency list, of .toClass(Handler, [..]) and the types of its constructor parameters, resolved through the imports. Before the commit it may depend on the domain/ of its context, on the kernel ports except Cache, CachePurger, Lock, RateLimiter, JobScheduler and EventBus (CacheInvalidation is allowed: the purge it asks for commits with the work), on @ddd-ts-kit/auth, on application helpers of its context, and on a port of application/ports/ only when it is a persistence port: at least one production class implements it under infrastructure/persistence/ and none anywhere else under infrastructure/. Refused: those five kernel ports, any other port of application/ports/, anything of infrastructure/, of another context, of the platform or of another package. An after-commit handler is refused IntegrationEventPublisher alone: after the commit nothing makes the outbox row atomic with a state change, so it sends a command instead.",
55
55
  bad: `// application/event-handlers/invoice-issued.event-handler.ts
56
56
  // Mailer is implemented under infrastructure/external/: the mail leaves even when the commit fails
57
57
  @DomainEventHandler(InvoiceIssued, { name: 'billing.invoice.issued' }, [InvoiceRepository, Mailer, Cache])
@@ -1 +1 @@
1
- {"version":3,"file":"events-docs.js","sourceRoot":"","sources":["../../../src/check/explain/events-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,oBAAoB,EAAE;QACpB,GAAG,EAAE,2LAA2L;QAChM,GAAG,EAAE,kCAAkC;QACvC,IAAI,EAAE,2CAA2C;KAClD;IACD,sCAAsC,EAAE;QACtC,GAAG,EAAE,2UAA2U;QAChV,GAAG,EAAE;uEAC8D;QACnE,IAAI,EAAE;;;IAGN;KACD;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,wVAAwV;QAC7V,GAAG,EAAE;;;qDAG4C;QACjD,IAAI,EAAE;;;yDAG+C;KACtD;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,mlBAAmlB;QACxlB,GAAG,EAAE;;;qFAG4E;QACjF,IAAI,EAAE;;;;;;qCAM2B;KAClC;IACD,kCAAkC,EAAE;QAClC,GAAG,EAAE,svBAAsvB;QAC3vB,GAAG,EAAE;;;sDAG6C;QAClD,IAAI,EAAE;;;;qCAI2B;KAClC;IACD,2CAA2C,EAAE;QAC3C,GAAG,EAAE,8rDAA8rD;QACnsD,GAAG,EAAE;;;;2HAIkH;QACvH,IAAI,EAAE;;;;;;;;;;;;uCAY6B;KACpC;CACF,CAAC"}
1
+ {"version":3,"file":"events-docs.js","sourceRoot":"","sources":["../../../src/check/explain/events-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,oBAAoB,EAAE;QACpB,GAAG,EAAE,2LAA2L;QAChM,GAAG,EAAE,kCAAkC;QACvC,IAAI,EAAE,2CAA2C;KAClD;IACD,sCAAsC,EAAE;QACtC,GAAG,EAAE,2UAA2U;QAChV,GAAG,EAAE;uEAC8D;QACnE,IAAI,EAAE;;;IAGN;KACD;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,wVAAwV;QAC7V,GAAG,EAAE;;;qDAG4C;QACjD,IAAI,EAAE;;;yDAG+C;KACtD;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,mlBAAmlB;QACxlB,GAAG,EAAE;;;qFAG4E;QACjF,IAAI,EAAE;;;;;;qCAM2B;KAClC;IACD,kCAAkC,EAAE;QAClC,GAAG,EAAE,svBAAsvB;QAC3vB,GAAG,EAAE;;;sDAG6C;QAClD,IAAI,EAAE;;;;qCAI2B;KAClC;IACD,2CAA2C,EAAE;QAC3C,GAAG,EAAE,uxDAAuxD;QAC5xD,GAAG,EAAE;;;;2HAIkH;QACvH,IAAI,EAAE;;;;;;;;;;;;uCAY6B;KACpC;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { RuleDoc } from '../model/rule-doc.js';
2
+ export declare const LIFECYCLE_DOCS: Readonly<Record<string, RuleDoc>>;
3
+ //# sourceMappingURL=lifecycle-docs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lifecycle-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/lifecycle-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA+B5D,CAAC"}
@@ -0,0 +1,33 @@
1
+ export const LIFECYCLE_DOCS = {
2
+ 'lifecycle/status-through-machine': {
3
+ why: 'A state machine says once which status follows which, and what refuses a forbidden transition with a static factory of the concept error. An aggregate that also writes its status by hand keeps a second, silent copy of its lifecycle: a transition the machine forbids happens anyway, and the diagram of CONTEXT.md, drawn from the machine, lies. So an aggregate whose machine exists (domain/state-machines/<aggregate>.state-machine.ts) imports it once it writes a status, and writes its status only from machine.next(..) or machine.start(..), or copies a status it read.',
4
+ bad: `// domain/aggregates/appointment.aggregate.ts
5
+ confirm(now: Date): void {
6
+ if (this.state.status !== 'requested') {
7
+ throw AppointmentError.alreadyConfirmed(this.id);
8
+ }
9
+
10
+ this.state = { ...this.state, changedAt: now, status: 'booked' };
11
+ }`,
12
+ good: `// domain/aggregates/appointment.aggregate.ts
13
+ confirm(now: Date): void {
14
+ this.state = { ...this.state, changedAt: now, status: appointmentLifecycle.next(this.state.status, 'confirm') };
15
+ }`,
16
+ },
17
+ 'process/sends-commands-only': {
18
+ why: 'A process manager coordinates: it reacts to events, keeps its own state and decides what happens next. When it also loads and saves aggregates, of its context or another, or calls an outside system, it becomes a use case nobody can send, with no permission, no audit, and a transaction that spans what it should only coordinate. Its steps answer a decision whose commands do the work, each in its own handler; a file of application/processes/*.process.ts imports no aggregate, entity, repository, domain service, port or infrastructure.',
19
+ bad: `// application/processes/appointment-reminder.process.ts
20
+ import { ReminderRepository } from '@/contexts/notification/domain/repositories/reminder.repository';
21
+
22
+ export class AppointmentReminderProcess {
23
+ constructor(private readonly reminders: ReminderRepository) {}
24
+ }`,
25
+ good: `// application/processes/appointment-reminder.process.ts
26
+ export class AppointmentReminderProcess implements ProcessManager<ReminderProcessState> {
27
+ booked(event: AppointmentBookedV1, current: ReminderProcessState | undefined) {
28
+ return { state: { appointmentId: event.payload.appointmentId, stage: 'waiting' }, commands: [new PlanReminderCommand(/* ... */)] };
29
+ }
30
+ }`,
31
+ },
32
+ };
33
+ //# sourceMappingURL=lifecycle-docs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lifecycle-docs.js","sourceRoot":"","sources":["../../../src/check/explain/lifecycle-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAsC;IAC/D,kCAAkC,EAAE;QAClC,GAAG,EAAE,yjBAAyjB;QAC9jB,GAAG,EAAE;;;;;;;EAOP;QACE,IAAI,EAAE;;;EAGR;KACC;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,0hBAA0hB;QAC/hB,GAAG,EAAE;;;;;EAKP;QACE,IAAI,EAAE;;;;;EAKR;KACC;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"rule-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/rule-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAmBpD,oGAAoG;AACpG,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAkBvD,CAAC"}
1
+ {"version":3,"file":"rule-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/rule-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAoBpD,oGAAoG;AACpG,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmBvD,CAAC"}
@@ -8,6 +8,7 @@ import { IMPORTS_DOCS } from './imports-docs.js';
8
8
  import { LANGUAGE_DOCS } from './language-docs.js';
9
9
  import { LAYER_DOCS } from './layer-docs.js';
10
10
  import { LAYOUT_DOCS } from './layout-docs.js';
11
+ import { LIFECYCLE_DOCS } from './lifecycle-docs.js';
11
12
  import { PERSISTENCE_DOCS } from './persistence-docs.js';
12
13
  import { PORTS_DOCS } from './ports-docs.js';
13
14
  import { SCHEDULING_DOCS } from './scheduling-docs.js';
@@ -27,6 +28,7 @@ export const RULE_DOCS = {
27
28
  ...LANGUAGE_DOCS,
28
29
  ...LAYER_DOCS,
29
30
  ...LAYOUT_DOCS,
31
+ ...LIFECYCLE_DOCS,
30
32
  ...PERSISTENCE_DOCS,
31
33
  ...PORTS_DOCS,
32
34
  ...SCHEDULING_DOCS,
@@ -1 +1 @@
1
- {"version":3,"file":"rule-docs.js","sourceRoot":"","sources":["../../../src/check/explain/rule-docs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE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MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,oGAAoG;AACpG,MAAM,CAAC,MAAM,SAAS,GAAsC;IAC1D,GAAG,UAAU;IACb,GAAG,UAAU;IACb,GAAG,YAAY;IACf,GAAG,WAAW;IACd,GAAG,mBAAmB;IACtB,GAAG,WAAW;IACd,GAAG,YAAY;IACf,GAAG,aAAa;IAChB,GAAG,UAAU;IACb,GAAG,WAAW;IACd,GAAG,cAAc;IACjB,GAAG,gBAAgB;IACnB,GAAG,UAAU;IACb,GAAG,eAAe;IAClB,GAAG,aAAa;IAChB,GAAG,YAAY;IACf,GAAG,SAAS;IACZ,GAAG,WAAW;CACf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"domain-events-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/domain-events-fixtures.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA0M5C,eAAO,MAAM,sBAAsB,EAAE,SAAS,OAAO,EAA4D,CAAC"}
1
+ {"version":3,"file":"domain-events-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/domain-events-fixtures.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA4N5C,eAAO,MAAM,sBAAsB,EAAE,SAAS,OAAO,EAA4D,CAAC"}
@@ -81,6 +81,24 @@ const TRANSACTIONAL_BEFORE_COMMIT = [
81
81
  expect: { file: EVENT_HANDLER },
82
82
  files: declaredProject({ ...DECLARED_CONTEXT, [EVENT_HANDLER]: reacting([FROM_KERNEL('Cache')], ['Cache']) }),
83
83
  },
84
+ {
85
+ ruleId: TRANSACTIONAL,
86
+ name: 'a before-commit handler given the purger of the shared caches, which purges before the commit',
87
+ expect: { file: EVENT_HANDLER },
88
+ files: declaredProject({
89
+ ...DECLARED_CONTEXT,
90
+ [EVENT_HANDLER]: reacting([FROM_KERNEL('CachePurger')], ['CachePurger']),
91
+ }),
92
+ },
93
+ {
94
+ ruleId: TRANSACTIONAL,
95
+ name: 'a before-commit handler asking for a purge after the commit',
96
+ expect: 'pass',
97
+ files: declaredProject({
98
+ ...DECLARED_CONTEXT,
99
+ [EVENT_HANDLER]: reacting([FROM_KERNEL('CacheInvalidation')], ['CacheInvalidation']),
100
+ }),
101
+ },
84
102
  {
85
103
  ruleId: TRANSACTIONAL,
86
104
  name: 'a before-commit handler given a port whose adapter is under infrastructure/external',
@@ -1 +1 @@
1
- {"version":3,"file":"domain-events-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/domain-events-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc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WAAW,MAAM,GAAG,EACrE,kCAAkC,YAAY,GAAG,EACjD,mGAAmG,EACnG,uHAAuH,EACvH,EAAE,EACF,yCAAyC,CAAC,mBAAmB,EAAE,OAAO,EAAE,GAAG,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EACvG,mFAAmF,EACnF,gEAAgE,EAChE,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,OAAO,SAAS,EAAE,CAAC,EACpD,KAAK,EACL,GAAG,CACJ,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"domain-events-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/domain-events-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,GACpH,KAAK,CAAC;AAER,MAAM,IAAI,GAAG,kCAAkC,CAAC;AAChD,MAAM,aAAa,GAAG,2CAA2C,CAAC;AAClE,MAAM,MAAM,GAAG,sBAAsB,CAAC;AACtC,MAAM,YAAY,GAAG,mCAAmC,CAAC;AAEzD,MAAM,cAAc,GAAG,MAAM,CAC3B,8BAA8B,YAAY,GAAG,EAC7C,mGAAmG,EACnG,EAAE,EACF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YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,MAAM,GAAG,EACrE,kCAAkC,YAAY,GAAG,EACjD,mGAAmG,EACnG,uHAAuH,EACvH,EAAE,EACF,yCAAyC,CAAC,mBAAmB,EAAE,OAAO,EAAE,GAAG,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EACvG,mFAAmF,EACnF,gEAAgE,EAChE,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,OAAO,SAAS,EAAE,CAAC,EACpD,KAAK,EACL,GAAG,CACJ,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/fixtures.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,SAAS,OAAO,EAoCtC,CAAC"}
1
+ {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/fixtures.ts"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,SAAS,OAAO,EAqCtC,CAAC"}
@@ -22,6 +22,7 @@ import { LANGUAGE_FIXTURES } from './language-fixtures.js';
22
22
  import { VOCABULARY_FIXTURES } from './vocabulary-fixtures.js';
23
23
  import { LAYER_FIXTURES } from './layer-fixtures.js';
24
24
  import { LAYOUT_FIXTURES } from './layout-fixtures.js';
25
+ import { LIFECYCLE_FIXTURES } from './lifecycle-fixtures.js';
25
26
  import { NAMING_FIXTURES } from './naming-fixtures.js';
26
27
  import { OUTBOX_FIXTURES } from './outbox-fixtures.js';
27
28
  import { PERSISTENCE_FIXTURES } from './persistence-fixtures.js';
@@ -63,6 +64,7 @@ export const FIXTURES = [
63
64
  ...VOCABULARY_FIXTURES,
64
65
  ...LAYER_FIXTURES,
65
66
  ...LAYOUT_FIXTURES,
67
+ ...LIFECYCLE_FIXTURES,
66
68
  ...NAMING_FIXTURES,
67
69
  ...OUTBOX_FIXTURES,
68
70
  ...PERSISTENCE_FIXTURES,
@@ -1 +1 @@
1
- {"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,mBAAm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;IACjB,GAAG,cAAc;IACjB,GAAG,oBAAoB;IACvB,GAAG,eAAe;IAClB,GAAG,8BAA8B;IACjC,GAAG,iBAAiB;IACpB,GAAG,gBAAgB;IACnB,GAAG,iBAAiB;IACpB,GAAG,qBAAqB;IACxB,GAAG,sBAAsB;IACzB,GAAG,eAAe;IAClB,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,cAAc;IACjB,GAAG,eAAe;IAClB,GAAG,kBAAkB;IACrB,GAAG,eAAe;IAClB,GAAG,eAAe;IAClB,GAAG,oBAAoB;IACvB,GAAG,cAAc;IACjB,GAAG,eAAe;IAClB,GAAG,mBAAmB;IACtB,GAAG,iBAAiB;IACpB,GAAG,gBAAgB;IACnB,GAAG,aAAa;IAChB,GAAG,gBAAgB;IACnB,GAAG,aAAa;CACjB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Fixture } from './fixture.js';
2
+ export declare const LIFECYCLE_FIXTURES: readonly Fixture[];
3
+ //# sourceMappingURL=lifecycle-fixtures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lifecycle-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/lifecycle-fixtures.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAwB5C,eAAO,MAAM,kBAAkB,EAAE,SAAS,OAAO,EAqFhD,CAAC"}