ddd-ts-kit 0.103.0 → 0.105.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.
- package/CHANGELOG.md +110 -6
- package/README.fr.md +29 -18
- package/README.md +28 -16
- package/dist/check/canonical/earlier-context-file.d.ts +1 -6
- package/dist/check/canonical/earlier-context-file.d.ts.map +1 -1
- package/dist/check/canonical/earlier-context-file.js +4 -10
- package/dist/check/canonical/earlier-context-file.js.map +1 -1
- package/dist/check/canonical/stray-entry.d.ts.map +1 -1
- package/dist/check/canonical/stray-entry.js +14 -1
- package/dist/check/canonical/stray-entry.js.map +1 -1
- package/dist/check/catalogue/eslint-only-rules.d.ts.map +1 -1
- package/dist/check/catalogue/eslint-only-rules.js +1 -1
- package/dist/check/catalogue/eslint-only-rules.js.map +1 -1
- package/dist/check/commands/check-command.d.ts.map +1 -1
- package/dist/check/commands/check-command.js +24 -1
- package/dist/check/commands/check-command.js.map +1 -1
- package/dist/check/commands/check-file-command.d.ts.map +1 -1
- package/dist/check/commands/check-file-command.js +3 -0
- package/dist/check/commands/check-file-command.js.map +1 -1
- package/dist/check/commands/explain-command.d.ts.map +1 -1
- package/dist/check/commands/explain-command.js +8 -21
- package/dist/check/commands/explain-command.js.map +1 -1
- package/dist/check/events/domain-event-names.d.ts +1 -1
- package/dist/check/events/domain-event-names.js +1 -1
- package/dist/check/explain/delegated-doc.d.ts +4 -0
- package/dist/check/explain/delegated-doc.d.ts.map +1 -0
- package/dist/check/explain/delegated-doc.js +11 -0
- package/dist/check/explain/delegated-doc.js.map +1 -0
- package/dist/check/explain/delegated-docs.d.ts +8 -0
- package/dist/check/explain/delegated-docs.d.ts.map +1 -0
- package/dist/check/explain/delegated-docs.js +292 -0
- package/dist/check/explain/delegated-docs.js.map +1 -0
- package/dist/check/explain/errors-docs.d.ts.map +1 -1
- package/dist/check/explain/errors-docs.js +10 -18
- package/dist/check/explain/errors-docs.js.map +1 -1
- package/dist/check/explain/layer-docs.d.ts.map +1 -1
- package/dist/check/explain/layer-docs.js +6 -4
- package/dist/check/explain/layer-docs.js.map +1 -1
- package/dist/check/explain/module-docs.js +1 -1
- package/dist/check/explain/module-docs.js.map +1 -1
- package/dist/check/explain/ports-docs.js +1 -1
- package/dist/check/explain/ports-docs.js.map +1 -1
- package/dist/check/explain/standard-docs.js +2 -2
- package/dist/check/explain/standard-docs.js.map +1 -1
- package/dist/check/explain/tree-docs.js +2 -2
- package/dist/check/explain/tree-docs.js.map +1 -1
- package/dist/check/explain/wiring-docs.js +1 -1
- package/dist/check/explain/wiring-docs.js.map +1 -1
- package/dist/check/fixtures/context-file-fixtures.d.ts +1 -1
- package/dist/check/fixtures/context-file-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/context-file-fixtures.js +4 -6
- package/dist/check/fixtures/context-file-fixtures.js.map +1 -1
- package/dist/check/fixtures/earlier-declarations-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/earlier-declarations-fixtures.js +2 -4
- package/dist/check/fixtures/earlier-declarations-fixtures.js.map +1 -1
- package/dist/check/fixtures/fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/fixtures.js +4 -0
- package/dist/check/fixtures/fixtures.js.map +1 -1
- package/dist/check/fixtures/layer-entry-fixtures.d.ts +4 -0
- package/dist/check/fixtures/layer-entry-fixtures.d.ts.map +1 -0
- package/dist/check/fixtures/layer-entry-fixtures.js +35 -0
- package/dist/check/fixtures/layer-entry-fixtures.js.map +1 -0
- package/dist/check/fixtures/layer-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/layer-fixtures.js.map +1 -1
- package/dist/check/fixtures/module-fixtures.js +2 -2
- package/dist/check/fixtures/module-fixtures.js.map +1 -1
- package/dist/check/fixtures/other-language-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/other-language-fixtures.js +1 -1
- package/dist/check/fixtures/other-language-fixtures.js.map +1 -1
- package/dist/check/fixtures/ports-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/ports-fixtures.js +1 -0
- package/dist/check/fixtures/ports-fixtures.js.map +1 -1
- package/dist/check/fixtures/purity-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/purity-fixtures.js +18 -0
- package/dist/check/fixtures/purity-fixtures.js.map +1 -1
- package/dist/check/fixtures/role-folder-fixtures.d.ts +4 -0
- package/dist/check/fixtures/role-folder-fixtures.d.ts.map +1 -0
- package/dist/check/fixtures/role-folder-fixtures.js +31 -0
- package/dist/check/fixtures/role-folder-fixtures.js.map +1 -0
- package/dist/check/fixtures/test-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/test-fixtures.js +9 -0
- package/dist/check/fixtures/test-fixtures.js.map +1 -1
- package/dist/check/fixtures/tree-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/tree-fixtures.js +0 -1
- package/dist/check/fixtures/tree-fixtures.js.map +1 -1
- package/dist/check/layers/outer-entry.d.ts +13 -0
- package/dist/check/layers/outer-entry.d.ts.map +1 -0
- package/dist/check/layers/outer-entry.js +29 -0
- package/dist/check/layers/outer-entry.js.map +1 -0
- package/dist/check/rules/clean-braces.js +1 -1
- package/dist/check/rules/clean-braces.js.map +1 -1
- package/dist/check/rules/declarations-barrel-current.d.ts.map +1 -1
- package/dist/check/rules/declarations-barrel-current.js +3 -12
- package/dist/check/rules/declarations-barrel-current.js.map +1 -1
- package/dist/check/rules/layer-application-inward.d.ts.map +1 -1
- package/dist/check/rules/layer-application-inward.js +3 -1
- package/dist/check/rules/layer-application-inward.js.map +1 -1
- package/dist/check/rules/layer-domain-purity.d.ts.map +1 -1
- package/dist/check/rules/layer-domain-purity.js +3 -1
- package/dist/check/rules/layer-domain-purity.js.map +1 -1
- package/dist/check/rules/module-complete.d.ts.map +1 -1
- package/dist/check/rules/module-complete.js +6 -2
- package/dist/check/rules/module-complete.js.map +1 -1
- package/dist/check/rules/naming-suffix.js +7 -1
- package/dist/check/rules/naming-suffix.js.map +1 -1
- package/dist/check/rules/ports-abstract-class.d.ts.map +1 -1
- package/dist/check/rules/ports-abstract-class.js +16 -2
- package/dist/check/rules/ports-abstract-class.js.map +1 -1
- package/dist/check/rules/purity-no-ambient-randomness.d.ts.map +1 -1
- package/dist/check/rules/purity-no-ambient-randomness.js +4 -0
- package/dist/check/rules/purity-no-ambient-randomness.js.map +1 -1
- package/dist/check/rules/purity-no-environment.d.ts.map +1 -1
- package/dist/check/rules/purity-no-environment.js +5 -0
- package/dist/check/rules/purity-no-environment.js.map +1 -1
- package/dist/check/rules/purity-no-system-clock.d.ts.map +1 -1
- package/dist/check/rules/purity-no-system-clock.js +4 -0
- package/dist/check/rules/purity-no-system-clock.js.map +1 -1
- package/dist/check/rules/test-no-mocks.d.ts.map +1 -1
- package/dist/check/rules/test-no-mocks.js +16 -6
- package/dist/check/rules/test-no-mocks.js.map +1 -1
- package/dist/check/rules/tree-closed.d.ts.map +1 -1
- package/dist/check/rules/tree-closed.js +1 -2
- package/dist/check/rules/tree-closed.js.map +1 -1
- package/dist/commands/affected.d.ts.map +1 -1
- package/dist/commands/affected.js +5 -4
- package/dist/commands/affected.js.map +1 -1
- package/dist/commands/cited.d.ts.map +1 -1
- package/dist/commands/cited.js +2 -1
- package/dist/commands/cited.js.map +1 -1
- package/dist/commands/depcruise-config.d.ts.map +1 -1
- package/dist/commands/depcruise-config.js +10 -7
- package/dist/commands/depcruise-config.js.map +1 -1
- package/dist/commands/digest.d.ts.map +1 -1
- package/dist/commands/digest.js +2 -1
- package/dist/commands/digest.js.map +1 -1
- package/dist/commands/docs.d.ts.map +1 -1
- package/dist/commands/docs.js +9 -16
- package/dist/commands/docs.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +6 -2
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/drizzle-generate.d.ts.map +1 -1
- package/dist/commands/drizzle-generate.js +9 -2
- package/dist/commands/drizzle-generate.js.map +1 -1
- package/dist/commands/json-report.d.ts +8 -0
- package/dist/commands/json-report.d.ts.map +1 -0
- package/dist/commands/json-report.js +42 -0
- package/dist/commands/json-report.js.map +1 -0
- package/dist/commands/knex-generate.d.ts.map +1 -1
- package/dist/commands/knex-generate.js +8 -2
- package/dist/commands/knex-generate.js.map +1 -1
- package/dist/commands/lint.d.ts +2 -2
- package/dist/commands/lint.d.ts.map +1 -1
- package/dist/commands/lint.js +26 -5
- package/dist/commands/lint.js.map +1 -1
- package/dist/commands/mutation.d.ts.map +1 -1
- package/dist/commands/mutation.js +3 -2
- package/dist/commands/mutation.js.map +1 -1
- package/dist/commands/plan-waves.d.ts +2 -1
- package/dist/commands/plan-waves.d.ts.map +1 -1
- package/dist/commands/plan-waves.js +8 -4
- package/dist/commands/plan-waves.js.map +1 -1
- package/dist/commands/print-report.d.ts.map +1 -1
- package/dist/commands/print-report.js +2 -1
- package/dist/commands/print-report.js.map +1 -1
- package/dist/commands/prisma-generate.d.ts.map +1 -1
- package/dist/commands/prisma-generate.js +5 -4
- package/dist/commands/prisma-generate.js.map +1 -1
- package/dist/commands/status.d.ts +1 -0
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +16 -3
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/typeorm-generate.d.ts.map +1 -1
- package/dist/commands/typeorm-generate.js +19 -16
- package/dist/commands/typeorm-generate.js.map +1 -1
- package/dist/commands/verify-slice.d.ts.map +1 -1
- package/dist/commands/verify-slice.js +3 -2
- package/dist/commands/verify-slice.js.map +1 -1
- package/dist/commit/resolved-trunk.d.ts +3 -0
- package/dist/commit/resolved-trunk.d.ts.map +1 -0
- package/dist/commit/resolved-trunk.js +7 -0
- package/dist/commit/resolved-trunk.js.map +1 -0
- package/dist/commit/trunk-example.d.ts +3 -0
- package/dist/commit/trunk-example.d.ts.map +1 -0
- package/dist/commit/trunk-example.js +6 -0
- package/dist/commit/trunk-example.js.map +1 -0
- package/dist/context-files/context-file.d.ts +1 -1
- package/dist/declared/earlier-layout-notice.d.ts +1 -1
- package/dist/declared/earlier-layout-notice.js +1 -1
- package/dist/declared/earlier-layout-notice.js.map +1 -1
- package/dist/declared/keeps-role-folder-files.d.ts +1 -2
- package/dist/declared/keeps-role-folder-files.d.ts.map +1 -1
- package/dist/declared/keeps-role-folder-files.js +1 -2
- package/dist/declared/keeps-role-folder-files.js.map +1 -1
- package/dist/declared/keeps-single-file.d.ts +2 -3
- package/dist/declared/keeps-single-file.d.ts.map +1 -1
- package/dist/declared/keeps-single-file.js +2 -3
- package/dist/declared/keeps-single-file.js.map +1 -1
- package/dist/describe/context-description.d.ts +2 -0
- package/dist/describe/context-description.d.ts.map +1 -1
- package/dist/describe/describe-context.d.ts.map +1 -1
- package/dist/describe/describe-context.js +6 -0
- package/dist/describe/describe-context.js.map +1 -1
- package/dist/describe/format-description.js +1 -1
- package/dist/describe/format-description.js.map +1 -1
- package/dist/digest/branch-points.d.ts.map +1 -1
- package/dist/digest/branch-points.js +3 -2
- package/dist/digest/branch-points.js.map +1 -1
- package/dist/docs/spec-heading.d.ts +5 -1
- package/dist/docs/spec-heading.d.ts.map +1 -1
- package/dist/docs/spec-heading.js +8 -2
- package/dist/docs/spec-heading.js.map +1 -1
- package/dist/generate/errors/refuse-taken-class-name.d.ts +9 -0
- package/dist/generate/errors/refuse-taken-class-name.d.ts.map +1 -0
- package/dist/generate/errors/refuse-taken-class-name.js +22 -0
- package/dist/generate/errors/refuse-taken-class-name.js.map +1 -0
- package/dist/generate/errors/write-named-refusal.d.ts.map +1 -1
- package/dist/generate/errors/write-named-refusal.js +2 -0
- package/dist/generate/errors/write-named-refusal.js.map +1 -1
- package/dist/generate/kinds/background-job-kind.d.ts.map +1 -1
- package/dist/generate/kinds/background-job-kind.js +8 -1
- package/dist/generate/kinds/background-job-kind.js.map +1 -1
- package/dist/generate/kinds/generate-context.js +1 -0
- package/dist/generate/kinds/generate-context.js.map +1 -1
- package/dist/generate/kinds/process-kind.d.ts.map +1 -1
- package/dist/generate/kinds/process-kind.js +8 -1
- package/dist/generate/kinds/process-kind.js.map +1 -1
- package/dist/help/flag-notes.d.ts.map +1 -1
- package/dist/help/flag-notes.js +8 -0
- package/dist/help/flag-notes.js.map +1 -1
- package/dist/help/reading-notes.d.ts.map +1 -1
- package/dist/help/reading-notes.js +4 -2
- package/dist/help/reading-notes.js.map +1 -1
- package/dist/help/tool-notes.d.ts.map +1 -1
- package/dist/help/tool-notes.js +1 -2
- package/dist/help/tool-notes.js.map +1 -1
- package/dist/help/usage.js +3 -3
- package/dist/init/manifest/versions.js +24 -24
- package/dist/init/run-init.d.ts.map +1 -1
- package/dist/init/run-init.js +6 -2
- package/dist/init/run-init.js.map +1 -1
- package/dist/lint/eslint-in-project.d.ts +1 -1
- package/dist/lint/eslint-in-project.d.ts.map +1 -1
- package/dist/lint/eslint-in-project.js +1 -6
- package/dist/lint/eslint-in-project.js.map +1 -1
- package/dist/lint/format-verdict.d.ts +2 -2
- package/dist/lint/format-verdict.d.ts.map +1 -1
- package/dist/lint/format-verdict.js +3 -4
- package/dist/lint/format-verdict.js.map +1 -1
- package/dist/lint/lint-verdict.d.ts +2 -13
- package/dist/lint/lint-verdict.d.ts.map +1 -1
- package/dist/lint/lint-verdict.js +4 -22
- package/dist/lint/lint-verdict.js.map +1 -1
- package/dist/lint/parse-lint-answer.d.ts +1 -3
- package/dist/lint/parse-lint-answer.d.ts.map +1 -1
- package/dist/lint/parse-lint-answer.js +0 -2
- package/dist/lint/parse-lint-answer.js.map +1 -1
- package/dist/measures/format-measures.js +1 -1
- package/dist/measures/format-measures.js.map +1 -1
- package/dist/measures/measures-view.d.ts +1 -1
- package/dist/measures/measures-view.d.ts.map +1 -1
- package/dist/merge/merge-in-progress.d.ts +7 -0
- package/dist/merge/merge-in-progress.d.ts.map +1 -0
- package/dist/merge/merge-in-progress.js +22 -0
- package/dist/merge/merge-in-progress.js.map +1 -0
- package/dist/migration/answered-as-json.d.ts +13 -0
- package/dist/migration/answered-as-json.d.ts.map +1 -0
- package/dist/migration/answered-as-json.js +38 -0
- package/dist/migration/answered-as-json.js.map +1 -0
- package/dist/migration/audit-guard/run-orm-tool.d.ts.map +1 -1
- package/dist/migration/audit-guard/run-orm-tool.js +2 -1
- package/dist/migration/audit-guard/run-orm-tool.js.map +1 -1
- package/dist/migration/index.d.ts +1 -0
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +1 -0
- package/dist/migration/index.js.map +1 -1
- package/dist/migration/knex-schema-difference.d.ts.map +1 -1
- package/dist/migration/knex-schema-difference.js +2 -1
- package/dist/migration/knex-schema-difference.js.map +1 -1
- package/dist/migration/run-on-in-process-database.d.ts.map +1 -1
- package/dist/migration/run-on-in-process-database.js +2 -1
- package/dist/migration/run-on-in-process-database.js.map +1 -1
- package/dist/migration/tool-stdio.d.ts +6 -0
- package/dist/migration/tool-stdio.d.ts.map +1 -0
- package/dist/migration/tool-stdio.js +17 -0
- package/dist/migration/tool-stdio.js.map +1 -0
- package/dist/model-modules/module-layers.d.ts +1 -1
- package/dist/model-modules/module-layers.d.ts.map +1 -1
- package/dist/model-modules/module-layers.js +1 -1
- package/dist/model-modules/module-layers.js.map +1 -1
- package/dist/model-modules/role-folders-of.js +1 -1
- package/dist/model-modules/role-folders-of.js.map +1 -1
- package/dist/plan/batched-waves.d.ts +2 -0
- package/dist/plan/batched-waves.d.ts.map +1 -1
- package/dist/plan/batched-waves.js +6 -4
- package/dist/plan/batched-waves.js.map +1 -1
- package/dist/plan/format-plan.d.ts.map +1 -1
- package/dist/plan/format-plan.js +12 -2
- package/dist/plan/format-plan.js.map +1 -1
- package/dist/plan/plan-problems.d.ts +5 -0
- package/dist/plan/plan-problems.d.ts.map +1 -1
- package/dist/plan/plan-problems.js +6 -1
- package/dist/plan/plan-problems.js.map +1 -1
- package/dist/plan/plan-waves.d.ts +2 -0
- package/dist/plan/plan-waves.d.ts.map +1 -1
- package/dist/plan/plan-waves.js +1 -1
- package/dist/plan/plan-waves.js.map +1 -1
- package/dist/plan/ready-now.d.ts +8 -0
- package/dist/plan/ready-now.d.ts.map +1 -0
- package/dist/plan/ready-now.js +25 -0
- package/dist/plan/ready-now.js.map +1 -0
- package/dist/plan/wave-plan.d.ts +8 -0
- package/dist/plan/wave-plan.d.ts.map +1 -1
- package/dist/progress/format-progress.js +10 -1
- package/dist/progress/format-progress.js.map +1 -1
- package/dist/progress/progress.d.ts +2 -0
- package/dist/progress/progress.d.ts.map +1 -1
- package/dist/progress/ready-rows.d.ts +7 -0
- package/dist/progress/ready-rows.d.ts.map +1 -0
- package/dist/progress/ready-rows.js +14 -0
- package/dist/progress/ready-rows.js.map +1 -0
- package/dist/run.d.ts +2 -0
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +1 -1
- package/dist/run.js.map +1 -1
- package/dist/stories/open-story-scope.d.ts.map +1 -1
- package/dist/stories/open-story-scope.js +2 -1
- package/dist/stories/open-story-scope.js.map +1 -1
- package/dist/stories/origin-of.d.ts.map +1 -1
- package/dist/stories/origin-of.js +14 -2
- package/dist/stories/origin-of.js.map +1 -1
- package/dist/stories/origin-phase.js +4 -4
- package/dist/stories/origin-phase.js.map +1 -1
- package/dist/stories/read-story-phases.js +8 -4
- package/dist/stories/read-story-phases.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/worker/base-of.d.ts.map +1 -1
- package/dist/worker/base-of.js +2 -2
- package/dist/worker/base-of.js.map +1 -1
- package/dist/worker/briefing-of.js +2 -2
- package/dist/worker/briefing-of.js.map +1 -1
- package/dist/worker/open-worker-scope.js +1 -1
- package/dist/worker/open-worker-scope.js.map +1 -1
- package/dist/workspace/workspace.d.ts.map +1 -1
- package/dist/workspace/workspace.js +2 -1
- package/dist/workspace/workspace.js.map +1 -1
- package/package.json +5 -5
- package/templates/acl/translator.spec.ts.tpl +3 -3
- package/templates/adapter/adapter.spec.ts.tpl +2 -7
- package/templates/adapter/simulated.spec.ts.tpl +1 -1
- package/templates/aggregate/aggregate.spec.ts.tpl +1 -9
- package/templates/background-job/background-job.spec.buses.ts.tpl +19 -3
- package/templates/background-job/background-job.spec.tsyringe.ts.tpl +42 -12
- package/templates/controller/guard.spec.ts.tpl +4 -4
- package/templates/domain-service/domain-service.spec.ts.tpl +2 -2
- package/templates/init/rules/application.md.tpl +2 -0
- package/templates/init/rules/domain.md.tpl +2 -0
- package/templates/init/rules/infrastructure.md.tpl +2 -0
- package/templates/pipeline/lefthook.yml +4 -0
- package/templates/pipeline/package-scripts.json +1 -1
- package/templates/pipeline/vitest.config.ts.tpl +2 -0
- package/templates/process/timeout-job.spec.buses.ts.tpl +15 -2
- package/templates/process/timeout-job.spec.tsyringe.ts.tpl +21 -2
- package/templates/query/search.reader.spec.ts.tpl +1 -1
- package/templates/repository/knex/mapper.ts.tpl +1 -1
- package/templates/value-object/value-object.spec.ts.tpl +1 -5
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
export const ERRORS_DOCS = {
|
|
2
2
|
'errors/code-unique': {
|
|
3
3
|
why: 'The code is the identity of a refusal for everything outside the domain: the HTTP mapper gives it a status, the OpenAPI document lists it, the audit trail and the span record it as the reason, a client branches on it and a test asserts it. Nothing downstream knows the class or the factory. Two refusals of one context under one code are therefore one refusal for every reader, whatever their messages say. The code is checked per context, since each context owns its language: the same code in two contexts is allowed, and the error mapper of the application gives it one status. Every form is read: the first argument of `refusal(..)` in a factory of a concept class, the `readonly code` field of a class per error, and under "stack.refusals": "named" the values of <context>.codes.ts, the code list of the context, where two keys under one value are reported. Judged under "stack.refusals": "factories" and "named": a project whose config does not say was written when an error was a class, and keeps working untouched.',
|
|
4
|
-
bad:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
static slotTaken(calendarId: string) {
|
|
15
|
-
return AppointmentError.refusal('SLOT_TAKEN', 'The slot is already held.', { calendarId });
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
static outsideAvailability(startsAt: Date) {
|
|
19
|
-
return AppointmentError.refusal('OUTSIDE_AVAILABILITY', 'The calendar takes no appointment then.', { startsAt });
|
|
20
|
-
}
|
|
21
|
-
}`,
|
|
4
|
+
bad: `// appointment.codes.ts
|
|
5
|
+
export const AppointmentCodes = {
|
|
6
|
+
SlotTaken: 'BOOKING_REFUSED',
|
|
7
|
+
OutsideAvailability: 'BOOKING_REFUSED',
|
|
8
|
+
} as const;`,
|
|
9
|
+
good: `// appointment.codes.ts
|
|
10
|
+
export const AppointmentCodes = {
|
|
11
|
+
SlotTaken: 'SLOT_TAKEN',
|
|
12
|
+
OutsideAvailability: 'OUTSIDE_AVAILABILITY',
|
|
13
|
+
} as const;`,
|
|
22
14
|
},
|
|
23
15
|
'errors/code-listed': {
|
|
24
16
|
why: 'Under "stack.refusals": "named" a refusal is a class of its own, `SlotTaken`, and its code is what everything outside the domain knows it by: the error mapper gives it a status, the OpenAPI document and the client list it, a test asserts it. The codes of a context are therefore one closed list, <context>.codes.ts, `export const SchedulingCodes = { SlotTaken: \'SLOT_TAKEN\' } as const`, and each class reads its code from it under its own name, `readonly code = SchedulingCodes.SlotTaken`: the list is the contract of the context in one file, two refusals cannot drift to one code unseen, and the type of each code stays its own literal. Reported: a refusal class (a class of domain/errors/ that extends DomainRefusal, abstract ones aside) without a code, with a code written another way (a string literal, another entry, the list of another context), a context with refusal classes and no codes.ts, a class whose name the list does not hold; in codes.ts, a list missing or not `as const`, a key that names no refusal class of the context (a code nothing raises), and a value that is not a string literal in constant case. The value is usually the name of the class in constant case, but need not be: a migrated project keeps its codes, since the code is the contract. Judged under "stack.refusals": "named" only.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors-docs.js","sourceRoot":"","sources":["../../../src/check/explain/errors-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,oBAAoB,EAAE;QACpB,GAAG,EAAE,ggCAAggC;QACrgC,GAAG,EAAE
|
|
1
|
+
{"version":3,"file":"errors-docs.js","sourceRoot":"","sources":["../../../src/check/explain/errors-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,oBAAoB,EAAE;QACpB,GAAG,EAAE,ggCAAggC;QACrgC,GAAG,EAAE;;;;YAIG;QACR,IAAI,EAAE;;;;YAIE;KACT;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,qyCAAqyC;QAC1yC,GAAG,EAAE;;;;;;;;;EASP;QACE,IAAI,EAAE;;;;;;;;;;;;;;EAcR;KACC;IACD,mBAAmB,EAAE;QACnB,GAAG,EAAE,ktCAAktC;QACvtC,GAAG,EAAE;iIACwH;QAC7H,IAAI,EAAE,0HAA0H;KACjI;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layer-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/layer-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"layer-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/layer-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAuCxD,CAAC"}
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
export const LAYER_DOCS = {
|
|
2
2
|
'layer/domain-purity': {
|
|
3
|
-
why: 'The domain is the part of the system that has to survive a change of framework, database or transport. Every outside import ties a business rule to a technical choice and makes it impossible to test without that choice. Values that come from the outside world (ids, time, randomness) enter as parameters. The packages that apply a concern from outside (@ddd-ts-kit/aspects, audit, redis, scheduling, sentry, tracing) are refused whatever `domainAllowedPackages` says. The kernel itself is allowed, its entry @ddd-ts-kit/kernel/declarations is not: a declaration is wiring, and the domain declares nothing, neither a decorator on a class nor a dependency list. A repository port is a plain abstract class.',
|
|
3
|
+
why: 'The domain is the part of the system that has to survive a change of framework, database or transport. Every outside import ties a business rule to a technical choice and makes it impossible to test without that choice. Values that come from the outside world (ids, time, randomness) enter as parameters. The packages that apply a concern from outside (@ddd-ts-kit/aspects, audit, redis, scheduling, sentry, tracing) are refused whatever `domainAllowedPackages` says. The kernel itself is allowed, its entry @ddd-ts-kit/kernel/declarations is not: a declaration is wiring, and the domain declares nothing, neither a decorator on a class nor a dependency list. A repository port is a plain abstract class. An allowed package of the kit does not allow its entries for adapters, wiring and test doubles (@ddd-ts-kit/kernel/testing, @ddd-ts-kit/auth/jwt, /passport, /rebac, /di, /testing): the domain imports one only when `domainAllowedPackages` names that entry itself.',
|
|
4
4
|
bad: `// domain/aggregates/invoice.aggregate.ts
|
|
5
5
|
import { randomUUID } from 'node:crypto';
|
|
6
6
|
import { IsEmail } from 'class-validator';
|
|
7
7
|
import { Logged } from '@ddd-ts-kit/aspects/decorators';
|
|
8
|
-
import { Repository } from '@ddd-ts-kit/kernel/declarations'
|
|
8
|
+
import { Repository } from '@ddd-ts-kit/kernel/declarations';
|
|
9
|
+
import { FixedClock } from '@ddd-ts-kit/kernel/testing';`,
|
|
9
10
|
good: `// domain/aggregates/invoice.aggregate.ts
|
|
10
11
|
import { AggregateRoot } from '@ddd-ts-kit/kernel';
|
|
11
12
|
import { Money } from '@/contexts/billing/domain/value-objects/money.vo';`,
|
|
12
13
|
},
|
|
13
14
|
'layer/application-inward': {
|
|
14
|
-
why: 'A use case orchestrates the domain and talks to the outside through ports. If it imports an adapter, a framework or a driver, the technical choice can no longer be replaced or faked, and the handler cannot be unit tested with plain fakes. Cross-cutting behaviour reaches a use case from outside: @ddd-ts-kit/aspects, audit, redis, scheduling, sentry and tracing are refused whatever `applicationAllowedPackages` says, their place is the composition root, a bus middleware or an adapter. The declarations of the kernel (@ddd-ts-kit/kernel/declarations) are part of the kernel and belong here: a handler, a job or a policy says what it is and names the ports it depends on, which are abstract classes, without knowing a container. A background job (application/background/*.background-job.ts), and no other file of the layer, also imports @ddd-ts-kit/validation and the validation library of the stack, no other, for the schema of its payload: the payload a queue keeps outlives the deploy that enqueued it, like the payload of an integration event, and the worker reads it with that schema before each run.',
|
|
15
|
+
why: 'A use case orchestrates the domain and talks to the outside through ports. If it imports an adapter, a framework or a driver, the technical choice can no longer be replaced or faked, and the handler cannot be unit tested with plain fakes. Cross-cutting behaviour reaches a use case from outside: @ddd-ts-kit/aspects, audit, redis, scheduling, sentry and tracing are refused whatever `applicationAllowedPackages` says, their place is the composition root, a bus middleware or an adapter. The declarations of the kernel (@ddd-ts-kit/kernel/declarations) are part of the kernel and belong here: a handler, a job or a policy says what it is and names the ports it depends on, which are abstract classes, without knowing a container. A background job (application/background/*.background-job.ts), and no other file of the layer, also imports @ddd-ts-kit/validation and the validation library of the stack, no other, for the schema of its payload: the payload a queue keeps outlives the deploy that enqueued it, like the payload of an integration event, and the worker reads it with that schema before each run. @ddd-ts-kit/auth is allowed for permissions and policies, not its adapters, its wiring or its test doubles (@ddd-ts-kit/auth/jwt, /passport, /rebac, /di, /testing, nor @ddd-ts-kit/kernel/testing): a use case imports one only when `applicationAllowedPackages` names that entry itself.',
|
|
15
16
|
bad: `// application/commands/issue-invoice/issue-invoice.handler.ts
|
|
16
17
|
import { PgInvoiceRepository } from '@/contexts/billing/infrastructure/persistence/pg-invoice.repository';
|
|
17
18
|
import { RedisCache } from '@ddd-ts-kit/redis';
|
|
18
|
-
import { retry } from '@ddd-ts-kit/aspects'
|
|
19
|
+
import { retry } from '@ddd-ts-kit/aspects';
|
|
20
|
+
import { passportAuthenticator } from '@ddd-ts-kit/auth/passport';`,
|
|
19
21
|
good: `// application/commands/issue-invoice/issue-invoice.handler.ts
|
|
20
22
|
import { Cache, Clock } from '@ddd-ts-kit/kernel';
|
|
21
23
|
import { CommandHandler } from '@ddd-ts-kit/kernel/declarations';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layer-docs.js","sourceRoot":"","sources":["../../../src/check/explain/layer-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAsC;IAC3D,qBAAqB,EAAE;QACrB,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"layer-docs.js","sourceRoot":"","sources":["../../../src/check/explain/layer-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAsC;IAC3D,qBAAqB,EAAE;QACrB,GAAG,EAAE,y8BAAy8B;QAC98B,GAAG,EAAE;;;;;yDAKgD;QACrD,IAAI,EAAE;;0EAEgE;KACvE;IACD,0BAA0B,EAAE;QAC1B,GAAG,EAAE,+2CAA+2C;QACp3C,GAAG,EAAE;;;;mEAI0D;QAC/D,IAAI,EAAE;;;+FAGqF;KAC5F;IACD,sCAAsC,EAAE;QACtC,GAAG,EAAE,4MAA4M;QACjN,GAAG,EAAE;2GACkG;QACvG,IAAI,EAAE;wHAC8G;KACrH;IACD,sCAAsC,EAAE;QACtC,GAAG,EAAE,2JAA2J;QAChK,GAAG,EAAE;oFAC2E;QAChF,IAAI,EAAE;+FACqF;KAC5F;CACF,CAAC"}
|
|
@@ -12,7 +12,7 @@ export const MODULE_DOCS = {
|
|
|
12
12
|
| \`waitlist\` | The waitlist of a calendar and the offers made to waiters. |`,
|
|
13
13
|
},
|
|
14
14
|
'module/complete': {
|
|
15
|
-
why: 'A context half divided into modules is read two ways at once: a concept may be in its module or still at the level of the context, and the reader has to look in both. Once a context declares modules, each module is one folder of the context holding its four layers, and every file of a layer belongs to one of them, with its specs in the module folder of its test folder (test/unit/<module>/). The context keeps at its own level what every module shares: the closed list of its error codes (<context>.codes.ts) and its permission set (<context>.permissions.ts) at its root, the schema, tables and migrations of its database (infrastructure/persistence/), its route groups, guards and shared shapes (presentation/http/), the fakes, builders and worlds of its specs, and the generated declarations. A module still where 0.86 and 0.87 put it (domain/<module>/) is reported too: `ddd-ts-kit context-layout` moves it. It is a warning so that a large context moves into its modules one cluster per commit, with `ddd-ts-kit move-to-module`, which rewrites the imports and takes the specs of a moved file with it.',
|
|
15
|
+
why: 'A context half divided into modules is read two ways at once: a concept may be in its module or still at the level of the context, and the reader has to look in both. Once a context declares modules, each module is one folder of the context holding its four layers, and every file of a layer belongs to one of them, with its specs in the module folder of its test folder (test/unit/<module>/). The context keeps at its own level what every module shares: the closed list of its error codes (<context>.codes.ts) and its permission set (<context>.permissions.ts) at its root, the schema, tables and migrations of its database (infrastructure/persistence/), its route groups, guards and shared shapes (presentation/http/), the fakes, builders and worlds of its specs, and the generated declarations. A module still where 0.86 and 0.87 put it (domain/<module>/) is reported too, as an error: `ddd-ts-kit context-layout` moves it. It is a warning so that a large context moves into its modules one cluster per commit, with `ddd-ts-kit move-to-module`, which rewrites the imports and takes the specs of a moved file with it.',
|
|
16
16
|
bad: `contexts/scheduling/calendars/domain/aggregates/calendar.aggregate.ts
|
|
17
17
|
contexts/scheduling/domain/aggregates/waitlist.aggregate.ts // still at the level of the context
|
|
18
18
|
contexts/scheduling/infrastructure/persistence/knex-waitlist.repository.ts // an adapter of the waitlist, outside it`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-docs.js","sourceRoot":"","sources":["../../../src/check/explain/module-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,iBAAiB,EAAE;QACjB,GAAG,EAAE,8rBAA8rB;QACnsB,GAAG,EAAE;0CACiC;QACtC,IAAI,EAAE;;;;;;8EAMoE;KAC3E;IACD,iBAAiB,EAAE;QACjB,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"module-docs.js","sourceRoot":"","sources":["../../../src/check/explain/module-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,iBAAiB,EAAE;QACjB,GAAG,EAAE,8rBAA8rB;QACnsB,GAAG,EAAE;0CACiC;QACtC,IAAI,EAAE;;;;;;8EAMoE;KAC3E;IACD,iBAAiB,EAAE;QACjB,GAAG,EAAE,gmCAAgmC;QACrmC,GAAG,EAAE;;uHAE8G;QACnH,IAAI,EAAE;;;;;6GAKmG;KAC1G;IACD,iBAAiB,EAAE;QACjB,GAAG,EAAE,0jBAA0jB;QAC/jB,GAAG,EAAE;;;oGAG2F;QAChG,IAAI,EAAE;;oFAE0E;KACjF;CACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const PORTS_DOCS = {
|
|
2
2
|
'ports/abstract-class': {
|
|
3
|
-
why: 'A port is a contract and, at once, the injection token under which its adapter is bound: the abstract class names the dependency and carries its type. A port that holds a body, a constructor, an initializer or a hidden member is no longer a contract: a fake or a plain object cannot stand for it, and the container refuses to bind it. An interface vanishes at run time and cannot be a token, so a port file declares none. One exception is a member: `static readonly tokenKey`, the identity of a port a published package exposes. Checked in domain/repositories/*.repository.ts and application/ports/*.port.ts.',
|
|
3
|
+
why: 'A port is a contract and, at once, the injection token under which its adapter is bound: the abstract class names the dependency and carries its type. A port that holds a body, a constructor, an initializer or a hidden member is no longer a contract: a fake or a plain object cannot stand for it, and the container refuses to bind it. An interface vanishes at run time and cannot be a token, so a port file declares none, and a port file that declares no abstract class at all (a type, a token) is reported too. One exception is a member: `static readonly tokenKey`, the identity of a port a published package exposes. Checked in domain/repositories/*.repository.ts and application/ports/*.port.ts.',
|
|
4
4
|
bad: `// application/ports/payment-gateway.port.ts
|
|
5
5
|
export interface PaymentGateway { charge(invoiceId: string): Promise<void> }
|
|
6
6
|
export abstract class Mailer {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ports-docs.js","sourceRoot":"","sources":["../../../src/check/explain/ports-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAsC;IAC3D,sBAAsB,EAAE;QACtB,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"ports-docs.js","sourceRoot":"","sources":["../../../src/check/explain/ports-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAsC;IAC3D,sBAAsB,EAAE;QACtB,GAAG,EAAE,4rBAA4rB;QACjsB,GAAG,EAAE;;;;;EAKP;QACE,IAAI,EAAE;;;;;uEAK6D;KACpE;IACD,gCAAgC,EAAE;QAChC,GAAG,EAAE,shBAAshB;QAC3hB,GAAG,EAAE;;;;kHAIyG;QAC9G,IAAI,EAAE;;;;+DAIqD;KAC5D;IACD,yBAAyB,EAAE;QACzB,GAAG,EAAE,+bAA+b;QACpc,GAAG,EAAE;;;;sFAI6E;QAClF,IAAI,EAAE;;;;;;+EAMqE;KAC5E;IACD,8BAA8B,EAAE;QAC9B,GAAG,EAAE,omBAAomB;QACzmB,GAAG,EAAE;;;;;;;;qGAQ4F;QACjG,IAAI,EAAE;;;;;;EAMR;KACC;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,4WAA4W;QACjX,GAAG,EAAE;;;;iGAIwF;QAC7F,IAAI,EAAE;;;;iGAIuF;KAC9F;CACF,CAAC"}
|
|
@@ -35,9 +35,9 @@ export class PinoLogger implements Logger {}`,
|
|
|
35
35
|
'governance/recorded-deviation': {
|
|
36
36
|
why: 'The architecture can be changed deliberately, not case by case. A suppression, a lowered severity or a widened list that points to no decision is indistinguishable from a shortcut, and gets copied. The decision record says why, for what scope and until when, so the exception can be reviewed today and removed later.',
|
|
37
37
|
bad: `// eslint-disable-next-line no-console -- needed for the demo
|
|
38
|
-
"rules": { "test/spec-required": "off" }`,
|
|
38
|
+
"rules": { "test/spec-required": { "severity": "off", "files": ["src/contexts/billing/infrastructure/**"] } }`,
|
|
39
39
|
good: `// eslint-disable-next-line no-console -- ADR-0004: startup banner read by operations
|
|
40
|
-
"rules": { "test/spec-required": "off" },
|
|
40
|
+
"rules": { "test/spec-required": { "severity": "off", "files": ["src/contexts/billing/infrastructure/**"] } },
|
|
41
41
|
"deviations": [{ "what": "rules.test/spec-required", "adr": "0009", "reason": "Generated adapters are covered by the contract suite." }]
|
|
42
42
|
// docs/adr/0004-startup-banner.md, docs/adr/0009-no-spec-for-generated-adapters.md`,
|
|
43
43
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standard-docs.js","sourceRoot":"","sources":["../../../src/check/explain/standard-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAsC;IAC9D,oBAAoB,EAAE;QACpB,GAAG,EAAE,8cAA8c;QACnd,GAAG,EAAE;wDAC+C;QACpD,IAAI,EAAE;;;wDAG8C;KACrD;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,yiBAAyiB;QAC9iB,GAAG,EAAE;4CACmC;QACxC,IAAI,EAAE;;wDAE8C;KACrD;IACD,gCAAgC,EAAE;QAChC,GAAG,EAAE,qkBAAqkB;QAC1kB,GAAG,EAAE;;;;;gFAKuE;QAC5E,IAAI,EAAE;;;;;;6CAMmC;KAC1C;IACD,+BAA+B,EAAE;QAC/B,GAAG,EAAE,8TAA8T;QACnU,GAAG,EAAE;
|
|
1
|
+
{"version":3,"file":"standard-docs.js","sourceRoot":"","sources":["../../../src/check/explain/standard-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAsC;IAC9D,oBAAoB,EAAE;QACpB,GAAG,EAAE,8cAA8c;QACnd,GAAG,EAAE;wDAC+C;QACpD,IAAI,EAAE;;;wDAG8C;KACrD;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,yiBAAyiB;QAC9iB,GAAG,EAAE;4CACmC;QACxC,IAAI,EAAE;;wDAE8C;KACrD;IACD,gCAAgC,EAAE;QAChC,GAAG,EAAE,qkBAAqkB;QAC1kB,GAAG,EAAE;;;;;gFAKuE;QAC5E,IAAI,EAAE;;;;;;6CAMmC;KAC1C;IACD,+BAA+B,EAAE;QAC/B,GAAG,EAAE,8TAA8T;QACnU,GAAG,EAAE;8GACqG;QAC1G,IAAI,EAAE;;;oFAG0E;KACjF;CACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const TREE_DOCS = {
|
|
2
2
|
'tree/closed': {
|
|
3
|
-
why: 'A fixed tree means every concept has one obvious place, so people and tools find it without reading the code. An ad hoc folder (utils, helpers, common, types, functions) is where unnamed concepts go to hide: a function that reads a value is a method of that value object, a decision over several objects a domain service, a shared shape of data a value object, an interchangeable rule an abstract class of domain/services with one service per variant (docs/ARCHITECTURE.md, a concept with no role of its own). A real new need is declared in extraDirectories with its reason. In the declared style the generated summary <context>.declarations.ts lives at the root of the context, next to CONTEXT.md, and the generated <layer>.declarations.ts of each layer in that layer; a module file may stay at the root when the wiring of a context is unusual. A context divided into modules of its model keeps one more place in the explicit style: <module>/<module>.module.ts, at the root of the folder of each module, registers what the module holds (its handlers, consumers, reactions, jobs and routes) and is composed by <context>.module.ts, which then stays small; nothing else sits at the root of a module. The tree is read as git sees it: what git ignores, and a dot-directory of a context such as the .claude/ a sandbox leaves behind, are not part of it.',
|
|
3
|
+
why: 'A fixed tree means every concept has one obvious place, so people and tools find it without reading the code. Its sources are .ts files: a .js, .mjs, .cjs, .jsx, .tsx, .mts or .cts file in a context is read by no rule and is reported. An ad hoc folder (utils, helpers, common, types, functions) is where unnamed concepts go to hide: a function that reads a value is a method of that value object, a decision over several objects a domain service, a shared shape of data a value object, an interchangeable rule an abstract class of domain/services with one service per variant (docs/ARCHITECTURE.md, a concept with no role of its own). A real new need is declared in extraDirectories with its reason. In the declared style the generated summary <context>.declarations.ts lives at the root of the context, next to CONTEXT.md, and the generated <layer>.declarations.ts of each layer in that layer; a module file may stay at the root when the wiring of a context is unusual. A context divided into modules of its model keeps one more place in the explicit style: <module>/<module>.module.ts, at the root of the folder of each module, registers what the module holds (its handlers, consumers, reactions, jobs and routes) and is composed by <context>.module.ts, which then stays small; nothing else sits at the root of a module. The tree is read as git sees it: what git ignores, and a dot-directory of a context such as the .claude/ a sandbox leaves behind, are not part of it.',
|
|
4
4
|
bad: `contexts/billing/domain/utils/rounding.ts`,
|
|
5
5
|
good: `contexts/billing/domain/value-objects/money.vo.ts
|
|
6
6
|
contexts/billing/billing.declarations.ts // declared style only
|
|
@@ -18,7 +18,7 @@ contexts/billing/invoices/invoices.module.ts // explicit st
|
|
|
18
18
|
good: `docs/architecture/design-review.md: "add the port \`src/contexts/billing/application/ports/credit-limit-reader.port.ts\`"`,
|
|
19
19
|
},
|
|
20
20
|
'naming/suffix': {
|
|
21
|
-
why: 'The suffix states the role of a file before it is opened and lets the other rules know what they are looking at. Kebab-case avoids case-only renames that break on some file systems. A use case folder holds its message, its handler and, when it answers something, its result (*.result.ts); a job is application/scheduling/*.job.ts. Under presentation/http/ a controller lives in a folder of its own, presentation/http/<resource>/<use-case>/, with the schemas of its request and of its answer (*.params.ts, *.query.ts, *.headers.ts, *.body.ts, *.accepted.ts, *.answer.ts, *.line.ts), its *.mapper.ts and its *.serializer.ts; a route group is presentation/http/<name>.routes.ts, a guard presentation/http/guards/*.guard.ts, and what several routes share is under presentation/http/shared/. Function routes stay flat: *.route.ts and *.dto.ts, listed in presentation/http/<context>.routes.ts.',
|
|
21
|
+
why: 'The suffix states the role of a file before it is opened and lets the other rules know what they are looking at. Kebab-case avoids case-only renames that break on some file systems. A use case folder holds its message, its handler and, when it answers something, its result (*.result.ts); a job is application/scheduling/*.job.ts. Under presentation/http/ a controller lives in a folder of its own, presentation/http/<resource>/<use-case>/, with the schemas of its request and of its answer (*.params.ts, *.query.ts, *.headers.ts, *.body.ts, *.accepted.ts, *.answer.ts, *.line.ts), its *.mapper.ts and its *.serializer.ts; a route group is presentation/http/<name>.routes.ts, a guard presentation/http/guards/*.guard.ts, and what several routes share is under presentation/http/shared/. Function routes stay flat: *.route.ts and *.dto.ts, listed in presentation/http/<context>.routes.ts. A barrel (index.ts) in a role folder that has a suffix is reported: a role folder holds its role files and nothing else, each imported by its own path.',
|
|
22
22
|
bad: `domain/aggregates/Invoice.ts`,
|
|
23
23
|
good: `domain/aggregates/invoice.aggregate.ts
|
|
24
24
|
application/commands/issue-invoice/issue-invoice.result.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-docs.js","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAsC;IAC1D,aAAa,EAAE;QACb,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"tree-docs.js","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAsC;IAC1D,aAAa,EAAE;QACb,GAAG,EAAE,k8CAAk8C;QACv8C,GAAG,EAAE,2CAA2C;QAChD,IAAI,EAAE;;;2GAGiG;KACxG;IACD,kBAAkB,EAAE;QAClB,GAAG,EAAE,4OAA4O;QACjP,GAAG,EAAE,6GAA6G;QAClH,IAAI,EAAE,6GAA6G;KACpH;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,g9BAAg9B;QACr9B,GAAG,EAAE,iHAAiH;QACtH,IAAI,EAAE,2HAA2H;KAClI;IACD,eAAe,EAAE;QACf,GAAG,EAAE,ihCAAihC;QACthC,GAAG,EAAE,8BAA8B;QACnC,IAAI,EAAE;;;;qEAI2D;KAClE;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,kyBAAkyB;QACvyB,GAAG,EAAE;;;;kCAIyB;QAC9B,IAAI,EAAE;;;;;oCAK0B;KACjC;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,svCAAsvC;QAC3vC,GAAG,EAAE;;;EAGP;QACE,IAAI,EAAE;;;EAGR;KACC;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,kYAAkY;QACvY,GAAG,EAAE;;;;;;;2CAOkC;QACvC,IAAI,EAAE;;;4BAGkB;KACzB;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,kaAAka;QACva,GAAG,EAAE,kFAAkF;QACvF,IAAI,EAAE,qCAAqC;KAC5C;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,y9BAAy9B;QAC99B,GAAG,EAAE;;;uBAGc;QACnB,IAAI,EAAE;;;;;;;;2FAQiF;KACxF;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,qlCAAqlC;QAC1lC,GAAG,EAAE;gHACuG;QAC5G,IAAI,EAAE;;;;;qHAK2G;KAClH;IACD,eAAe,EAAE;QACf,GAAG,EAAE,4SAA4S;QACjT,GAAG,EAAE;gDACuC;QAC5C,IAAI,EAAE;qDAC2C;KAClD;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,gUAAgU;QACrU,GAAG,EAAE,iFAAiF;QACtF,IAAI,EAAE;8BACoB;KAC3B;IACD,2BAA2B,EAAE;QAC3B,GAAG,EAAE,uvBAAuvB;QAC5vB,GAAG,EAAE;qFAC4E;QACjF,IAAI,EAAE;;;KAGL;KACF;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,yqBAAyqB;QAC9qB,GAAG,EAAE,yEAAyE;QAC9E,IAAI,EAAE;qFAC2E;KAClF;CACF,CAAC"}
|
|
@@ -30,7 +30,7 @@ export class IssueInvoiceHandler {}
|
|
|
30
30
|
export class InvoiceIssuedEventHandler {}`,
|
|
31
31
|
},
|
|
32
32
|
'declarations/barrel-current': {
|
|
33
|
-
why: 'With stack.assembly set to barrel, the composition root assembles a context from <context>.declarations.ts and from nothing else. That file only re-exports the generated <layer>.declarations.ts of each layer of the context that holds a role file (application/application.declarations.ts, infrastructure/infrastructure.declarations.ts, presentation/presentation.declarations.ts), in each module of its model. A role file added by hand and missing from the declarations of its layer compiles, passes its unit tests and is never registered. The same file registers what each constructor of its layer is injected, read from its signature: a constructor changed without regenerating would be given the dependencies of the old one. Each file is derived from the tree, one export per role file sorted by path then one injected(Class, [Tokens]) per class that takes something, so it is compared with what the tree says, and the message names the class whose list is stale; the declarations of a layer that holds no role file any more are reported until they are deleted. A context still declared as an earlier version wrote it,
|
|
33
|
+
why: 'With stack.assembly set to barrel, the composition root assembles a context from <context>.declarations.ts and from nothing else. That file only re-exports the generated <layer>.declarations.ts of each layer of the context that holds a role file (application/application.declarations.ts, infrastructure/infrastructure.declarations.ts, presentation/presentation.declarations.ts), in each module of its model. A role file added by hand and missing from the declarations of its layer compiles, passes its unit tests and is never registered. The same file registers what each constructor of its layer is injected, read from its signature: a constructor changed without regenerating would be given the dependencies of the old one. Each file is derived from the tree, one export per role file sorted by path then one injected(Class, [Tokens]) per class that takes something, so it is compared with what the tree says, and the message names the class whose list is stale; the declarations of a layer that holds no role file any more are reported until they are deleted. A context still declared as an earlier version wrote it, the single <context>.declarations.ts of 0.84 or one <folder>.declarations.ts per role folder as 0.85 and 0.86 wrote them (application/commands/commands.declarations.ts), is reported once, at its summary, and ddd-ts-kit docs moves it to the files of its layers. With stack.assembly set to discovery the role files are found at startup, <context>.dependencies.ts holds the lists alone and is compared the same way, and generated declarations left behind are reported.',
|
|
34
34
|
bad: `// application/application.declarations.ts, while IssueInvoiceHandler now also takes a Clock
|
|
35
35
|
export * from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.command';
|
|
36
36
|
export * from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.handler';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiring-docs.js","sourceRoot":"","sources":["../../../src/check/explain/wiring-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,4BAA4B,EAAE;QAC5B,GAAG,EAAE,2uBAA2uB;QAChvB,GAAG,EAAE;;;sCAG6B;QAClC,IAAI,EAAE;;;;;;+CAMqC;KAC5C;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,irBAAirB;QACtrB,GAAG,EAAE;;;;;;wBAMe;QACpB,IAAI,EAAE;;;;;0CAKgC;KACvC;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"wiring-docs.js","sourceRoot":"","sources":["../../../src/check/explain/wiring-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,4BAA4B,EAAE;QAC5B,GAAG,EAAE,2uBAA2uB;QAChvB,GAAG,EAAE;;;sCAG6B;QAClC,IAAI,EAAE;;;;;;+CAMqC;KAC5C;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,irBAAirB;QACtrB,GAAG,EAAE;;;;;;wBAMe;QACpB,IAAI,EAAE;;;;;0CAKgC;KACvC;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,mjDAAmjD;QACxjD,GAAG,EAAE;;;;;;;6FAOoF;QACzF,IAAI,EAAE;;;;;;;;;;;;;;+EAcqE;KAC5E;IACD,oCAAoC,EAAE;QACpC,GAAG,EAAE,omCAAomC;QACzmC,GAAG,EAAE;;;;;;;;;iEASwD;QAC7D,IAAI,EAAE;;;;;;;EAOR;KACC;IACD,iCAAiC,EAAE;QACjC,GAAG,EAAE,o8BAAo8B;QACz8B,GAAG,EAAE;+DACsD;QAC3D,IAAI,EAAE;;;;;;;+DAOqD;KAC5D;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,+bAA+b;QACpc,GAAG,EAAE;yIACgI;QACrI,IAAI,EAAE;yIAC+H;KACtI;IACD,cAAc,EAAE;QACd,GAAG,EAAE,kXAAkX;QACvX,GAAG,EAAE;;uEAE8D;QACnE,IAAI,EAAE;;2IAEiI;KACxI;IACD,iCAAiC,EAAE;QACjC,GAAG,EAAE,qMAAqM;QAC1M,GAAG,EAAE,qDAAqD;QAC1D,IAAI,EAAE,qGAAqG;KAC5G;CACF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Fixture } from './fixture.js';
|
|
2
|
-
/** The code list and the permission set of a context: at its root, and
|
|
2
|
+
/** The code list and the permission set of a context: at its root, and where 0.86 and 0.87 kept them, an error. */
|
|
3
3
|
export declare const CONTEXT_FILE_FIXTURES: readonly Fixture[];
|
|
4
4
|
//# sourceMappingURL=context-file-fixtures.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-file-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/context-file-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBzC,
|
|
1
|
+
{"version":3,"file":"context-file-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/context-file-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBzC,mHAAmH;AACnH,eAAO,MAAM,qBAAqB,EAAE,SAAS,OAAO,EAyBnD,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { source } from './source.js';
|
|
|
4
4
|
const { BILLING } = PATHS;
|
|
5
5
|
const CODES = source("export const BillingCodes = { InvoiceVoid: 'INVOICE_VOID' } as const;");
|
|
6
6
|
const PERMISSIONS = source("import { definePermissions } from '@ddd-ts-kit/auth';", '', "export const billingPermissions = definePermissions('billing', {", " 'invoice.issue': { description: 'Issue invoice' },", '});');
|
|
7
|
-
/** The code list and the permission set of a context: at its root, and
|
|
7
|
+
/** The code list and the permission set of a context: at its root, and where 0.86 and 0.87 kept them, an error. */
|
|
8
8
|
export const CONTEXT_FILE_FIXTURES = [
|
|
9
9
|
{
|
|
10
10
|
ruleId: 'tree/closed',
|
|
@@ -14,21 +14,19 @@ export const CONTEXT_FILE_FIXTURES = [
|
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
ruleId: 'tree/closed',
|
|
17
|
-
name: 'the code list where 0.86 and 0.87 kept it:
|
|
17
|
+
name: 'the code list where 0.86 and 0.87 kept it: an error, which context-layout moves',
|
|
18
18
|
expect: { file: `${BILLING}/domain/errors/codes.ts` },
|
|
19
|
-
severity: 'warn',
|
|
20
19
|
files: project({ [`${BILLING}/domain/errors/codes.ts`]: CODES }),
|
|
21
20
|
},
|
|
22
21
|
{
|
|
23
22
|
ruleId: 'tree/closed',
|
|
24
|
-
name: 'the permission set where 0.86 and 0.87 kept it:
|
|
23
|
+
name: 'the permission set where 0.86 and 0.87 kept it: an error, which context-layout moves',
|
|
25
24
|
expect: { file: `${BILLING}/application/authorization/billing.permissions.ts` },
|
|
26
|
-
severity: 'warn',
|
|
27
25
|
files: project({ [`${BILLING}/application/authorization/billing.permissions.ts`]: PERMISSIONS }),
|
|
28
26
|
},
|
|
29
27
|
{
|
|
30
28
|
ruleId: 'tree/closed',
|
|
31
|
-
name: 'the code list at the root and where 0.86 and 0.87 kept it:
|
|
29
|
+
name: 'the code list at the root and where 0.86 and 0.87 kept it: one of each',
|
|
32
30
|
expect: { file: `${BILLING}/domain/errors/codes.ts` },
|
|
33
31
|
files: project({ [`${BILLING}/billing.codes.ts`]: CODES, [`${BILLING}/domain/errors/codes.ts`]: CODES }),
|
|
34
32
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-file-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/context-file-fixtures.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;AAE1B,MAAM,KAAK,GAAG,MAAM,CAAC,uEAAuE,CAAC,CAAC;AAE9F,MAAM,WAAW,GAAG,MAAM,CACxB,uDAAuD,EACvD,EAAE,EACF,kEAAkE,EAClE,sDAAsD,EACtD,KAAK,CACN,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"context-file-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/context-file-fixtures.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"earlier-declarations-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/earlier-declarations-fixtures.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgBzC,sGAAsG;AACtG,eAAO,MAAM,6BAA6B,EAAE,SAAS,OAAO,
|
|
1
|
+
{"version":3,"file":"earlier-declarations-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/earlier-declarations-fixtures.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgBzC,sGAAsG;AACtG,eAAO,MAAM,6BAA6B,EAAE,SAAS,OAAO,EA2C3D,CAAC"}
|
|
@@ -20,16 +20,14 @@ export const EARLIER_DECLARATIONS_FIXTURES = [
|
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
ruleId: 'declarations/barrel-current',
|
|
23
|
-
name: 'the declarations of the role folders of 0.85 and 0.86, current and not moved yet:
|
|
23
|
+
name: 'the declarations of the role folders of 0.85 and 0.86, current and not moved yet: an error, which docs moves',
|
|
24
24
|
expect: { file: BARREL },
|
|
25
|
-
severity: 'warn',
|
|
26
25
|
files: withoutFile(withoutFile(declaredProject(DECLARED_CONTEXT, ROLE_FOLDER_DECLARATIONS), APPLICATION_DECLARATIONS), `${BILLING}/infrastructure/infrastructure.declarations.ts`),
|
|
27
26
|
},
|
|
28
27
|
{
|
|
29
28
|
ruleId: 'declarations/barrel-current',
|
|
30
|
-
name: 'the single declarations file of 0.84, current and not moved yet:
|
|
29
|
+
name: 'the single declarations file of 0.84, current and not moved yet: an error, which docs moves',
|
|
31
30
|
expect: { file: BARREL },
|
|
32
|
-
severity: 'warn',
|
|
33
31
|
files: singleFile(SINGLE_FILE_DECLARATIONS),
|
|
34
32
|
},
|
|
35
33
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file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AE;SAC7F,CAAC;KACH;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"earlier-declarations-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/earlier-declarations-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,EAAE,wBAAwB,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;AAE5D,sGAAsG;AACtG,MAAM,UAAU,GAAG,CAAC,YAAoB,EAAgB,EAAE,CACxD,MAAM,CAAC,WAAW,CAChB,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,gBAAgB,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,MAAM,CAClF,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,KAAK,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,OAAO,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CACrG,CACF,CAAC;AAEJ,sGAAsG;AACtG,MAAM,CAAC,MAAM,6BAA6B,GAAuB;IAC/D;QACE,MAAM,EAAE,6BAA6B;QACrC,IAAI,EAAE,qGAAqG;QAC3G,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,gDAAgD,EAAE;QAC5E,KAAK,EAAE,eAAe,CAAC,gBAAgB,EAAE;YACvC,GAAG,qBAAqB;YACxB,CAAC,GAAG,OAAO,gDAAgD,CAAC,EAC1D,wBAAwB,CAAC,GAAG,OAAO,gDAAgD,CAAC,IAAI,EAAE;SAC7F,CAAC;KACH;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,IAAI,EAAE,8GAA8G;QACpH,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QACxB,KAAK,EAAE,WAAW,CAChB,WAAW,CAAC,eAAe,CAAC,gBAAgB,EAAE,wBAAwB,CAAC,EAAE,wBAAwB,CAAC,EAClG,GAAG,OAAO,gDAAgD,CAC3D;KACF;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,IAAI,EAAE,6FAA6F;QACnG,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QACxB,KAAK,EAAE,UAAU,CAAC,wBAAwB,CAAC;KAC5C;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,IAAI,EAAE,+EAA+E;QACrF,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QACxB,KAAK,EAAE,UAAU,CACf,wBAAwB,CAAC,OAAO,CAC9B,oFAAoF,EACpF,EAAE,CACH,CACF;KACF;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,IAAI,EAAE,6GAA6G;QACnH,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QACxB,KAAK,EAAE,eAAe,CAAC,gBAAgB,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,wBAAwB,EAAE,CAAC;KACjF;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/fixtures.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/fixtures.ts"],"names":[],"mappings":"AA0DA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,SAAS,OAAO,EA2DtC,CAAC"}
|
|
@@ -31,6 +31,7 @@ import { IMPORTS_FIXTURES } from './imports-fixtures.js';
|
|
|
31
31
|
import { LANGUAGE_FIXTURES } from './language-fixtures.js';
|
|
32
32
|
import { VOCABULARY_FIXTURES } from './vocabulary-fixtures.js';
|
|
33
33
|
import { OTHER_LANGUAGE_FIXTURES } from './other-language-fixtures.js';
|
|
34
|
+
import { LAYER_ENTRY_FIXTURES } from './layer-entry-fixtures.js';
|
|
34
35
|
import { LAYER_FIXTURES } from './layer-fixtures.js';
|
|
35
36
|
import { LAYOUT_FIXTURES } from './layout-fixtures.js';
|
|
36
37
|
import { LIFECYCLE_FIXTURES } from './lifecycle-fixtures.js';
|
|
@@ -42,6 +43,7 @@ import { NEST_FIXTURES } from './nest-fixtures.js';
|
|
|
42
43
|
import { OUTBOX_FIXTURES } from './outbox-fixtures.js';
|
|
43
44
|
import { PERSISTENCE_FIXTURES } from './persistence-fixtures.js';
|
|
44
45
|
import { PORTS_FIXTURES } from './ports-fixtures.js';
|
|
46
|
+
import { ROLE_FOLDER_FIXTURES } from './role-folder-fixtures.js';
|
|
45
47
|
import { PURITY_FIXTURES } from './purity-fixtures.js';
|
|
46
48
|
import { SCHEDULING_FIXTURES } from './scheduling-fixtures.js';
|
|
47
49
|
import { SHARED_KERNEL_FIXTURES } from './shared-kernel-fixtures.js';
|
|
@@ -96,6 +98,7 @@ export const FIXTURES = [
|
|
|
96
98
|
...VOCABULARY_FIXTURES,
|
|
97
99
|
...OTHER_LANGUAGE_FIXTURES,
|
|
98
100
|
...LAYER_FIXTURES,
|
|
101
|
+
...LAYER_ENTRY_FIXTURES,
|
|
99
102
|
...LAYOUT_FIXTURES,
|
|
100
103
|
...LIFECYCLE_FIXTURES,
|
|
101
104
|
...MODULE_FIXTURES,
|
|
@@ -114,6 +117,7 @@ export const FIXTURES = [
|
|
|
114
117
|
...TEST_FIXTURES,
|
|
115
118
|
...TRACING_FIXTURES,
|
|
116
119
|
...TREE_FIXTURES,
|
|
120
|
+
...ROLE_FOLDER_FIXTURES,
|
|
117
121
|
...VALUE_OBJECT_FILE_FIXTURES,
|
|
118
122
|
...MODEL_FUNCTION_FIXTURES,
|
|
119
123
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AAC5F,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAA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IACnB,GAAG,aAAa;IAChB,GAAG,oBAAoB;IACvB,GAAG,0BAA0B;IAC7B,GAAG,uBAAuB;CAC3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layer-entry-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/layer-entry-fixtures.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQzC,sGAAsG;AACtG,eAAO,MAAM,oBAAoB,EAAE,SAAS,OAAO,EAqClD,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { CONFIG_FILE } from '../../config/index.js';
|
|
2
|
+
import { aggregate } from './aggregate.js';
|
|
3
|
+
import { config } from './config.js';
|
|
4
|
+
import { handler } from './handler.js';
|
|
5
|
+
import { outsidePackageDeviation } from './outside-package-deviation.js';
|
|
6
|
+
import { PATHS } from './paths.js';
|
|
7
|
+
import { project } from './project.js';
|
|
8
|
+
const { AGGREGATE, HANDLER } = PATHS;
|
|
9
|
+
/** An allowed package of the kit does not allow its entries for adapters, wiring and test doubles. */
|
|
10
|
+
export const LAYER_ENTRY_FIXTURES = [
|
|
11
|
+
{
|
|
12
|
+
ruleId: 'layer/domain-purity',
|
|
13
|
+
name: 'the test doubles of the kernel in the domain: the allow-list names the kernel, not its testing entry',
|
|
14
|
+
expect: { file: AGGREGATE },
|
|
15
|
+
files: project(aggregate("import { FixedClock } from '@ddd-ts-kit/kernel/testing';\nexport class Invoice {}\nexport { FixedClock };\n")),
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
ruleId: 'layer/application-inward',
|
|
19
|
+
name: 'an authentication adapter of @ddd-ts-kit/auth in a handler: the allow-list names the package, not its adapters',
|
|
20
|
+
expect: { file: HANDLER },
|
|
21
|
+
files: project(handler("import { passportAuthenticator } from '@ddd-ts-kit/auth/passport';\nexport class IssueInvoiceHandler {}\nexport { passportAuthenticator };\n")),
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
ruleId: 'layer/application-inward',
|
|
25
|
+
name: 'an entry of @ddd-ts-kit/auth the allow-list names itself',
|
|
26
|
+
expect: 'pass',
|
|
27
|
+
files: project(handler("import type { RelationTuple } from '@ddd-ts-kit/auth/rebac';\nexport class IssueInvoiceHandler {}\nexport type T = RelationTuple;\n"), {
|
|
28
|
+
[CONFIG_FILE]: config({
|
|
29
|
+
applicationAllowedPackages: ['@ddd-ts-kit/kernel', '@ddd-ts-kit/auth', '@ddd-ts-kit/auth/rebac'],
|
|
30
|
+
deviations: [outsidePackageDeviation('applicationAllowedPackages', '@ddd-ts-kit/auth/rebac')],
|
|
31
|
+
}),
|
|
32
|
+
}),
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
//# sourceMappingURL=layer-entry-fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layer-entry-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/layer-entry-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;AAErC,sGAAsG;AACtG,MAAM,CAAC,MAAM,oBAAoB,GAAuB;IACtD;QACE,MAAM,EAAE,qBAAqB;QAC7B,IAAI,EAAE,sGAAsG;QAC5G,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAC3B,KAAK,EAAE,OAAO,CACZ,SAAS,CACP,6GAA6G,CAC9G,CACF;KACF;IACD;QACE,MAAM,EAAE,0BAA0B;QAClC,IAAI,EAAE,gHAAgH;QACtH,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;QACzB,KAAK,EAAE,OAAO,CACZ,OAAO,CACL,8IAA8I,CAC/I,CACF;KACF;IACD;QACE,MAAM,EAAE,0BAA0B;QAClC,IAAI,EAAE,0DAA0D;QAChE,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,OAAO,CACZ,OAAO,CACL,qIAAqI,CACtI,EACD;YACE,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;gBACpB,0BAA0B,EAAE,CAAC,oBAAoB,EAAE,kBAAkB,EAAE,wBAAwB,CAAC;gBAChG,UAAU,EAAE,CAAC,uBAAuB,CAAC,4BAA4B,EAAE,wBAAwB,CAAC,CAAC;aAC9F,CAAC;SACH,CACF;KACF;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layer-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/layer-fixtures.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAazC,eAAO,MAAM,cAAc,EAAE,SAAS,OAAO,
|
|
1
|
+
{"version":3,"file":"layer-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/layer-fixtures.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAazC,eAAO,MAAM,cAAc,EAAE,SAAS,OAAO,EA0R5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layer-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/layer-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EA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AA0B;IAC7D,OAAO,OAAO,CAAC;QACb,CAAC,IAAI,CAAC,EAAE,MAAM,CACZ,0BAA0B,EAC1B,8FAA8F,EAC9F,yDAAyD,EACzD,GAAG,OAAO,EACV,EAAE,EACF,8DAA8D,EAC9D,EAAE,EACF,+FAA+F,EAC/F,qDAAqD,EACrD,EAAE,EACF,sCAAsC,EACtC,EAAE,EACF,yDAAyD,EACzD,EAAE,EACF,wGAAwG,EACxG,GAAG,CACJ;QACD,CAAC,GAAG,OAAO,gDAAgD,CAAC,EAAE,OAAO,CAAC,IAAI;QAC1E,CAAC,MAAM,CAAC,EAAE,MAAM,CACd,+CAA+C,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,EACrG,EAAE,EACF,2DAA2D,EAC3D,oFAAoF,EACpF,GAAG,CACJ;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -70,9 +70,9 @@ export const MODULE_FIXTURES = [
|
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
ruleId: 'module/complete',
|
|
73
|
-
name: 'a module where 0.86 and 0.87 put it, under domain
|
|
73
|
+
name: 'a module where 0.86 and 0.87 put it, under domain/: an error, whatever the severity of the rule',
|
|
74
74
|
expect: { file: `${BILLING}/domain/invoices` },
|
|
75
|
-
severity: '
|
|
75
|
+
severity: 'error',
|
|
76
76
|
files: project({ [`${BILLING}/domain/invoices/events/invoice-issued.event.ts`]: 'export const invoiceIssued = 1;\n' }, withModules({ invoices: {} })),
|
|
77
77
|
},
|
|
78
78
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/module-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAA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ourceRoot":"","sources":["../../../src/check/fixtures/other-language-fixtures.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA8DzC,eAAO,MAAM,uBAAuB,EAAE,SAAS,OAAO,
|
|
1
|
+
{"version":3,"file":"other-language-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/other-language-fixtures.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA8DzC,eAAO,MAAM,uBAAuB,EAAE,SAAS,OAAO,EAgMrD,CAAC"}
|
|
@@ -124,7 +124,7 @@ export const OTHER_LANGUAGE_FIXTURES = [
|
|
|
124
124
|
name: 'a table keyed by a type of a port of the context',
|
|
125
125
|
expect: { file: INTEGRATION_HANDLER },
|
|
126
126
|
files: named({
|
|
127
|
-
[PORT]: "export type CatalogState = 'draft' | 'issued'
|
|
127
|
+
[PORT]: lines("export type CatalogState = 'draft' | 'issued';", '', 'export abstract class CatalogReader {', ' abstract stateOf(productId: string): Promise<CatalogState>;', '}'),
|
|
128
128
|
[INTEGRATION_HANDLER]: lines("import type { CatalogState } from '@/contexts/billing/application/ports/catalog-reader.port.js';", READS_STATUS, '', "export const STATUSES: Record<CatalogState, InvoiceStatus> = { 'issued': InvoiceStatus.Issued };"),
|
|
129
129
|
}),
|
|
130
130
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"other-language-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/other-language-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EA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"ports-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/ports-fixtures.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ports-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/ports-fixtures.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA4SzC,eAAO,MAAM,cAAc,EAAE,SAAS,OAAO,EAM5C,CAAC"}
|
|
@@ -117,6 +117,7 @@ const TOKEN_CONSTANT = [
|
|
|
117
117
|
ruleId: 'ports/no-token-constant',
|
|
118
118
|
name: 'a token declared with token()',
|
|
119
119
|
expect: { file: PORT },
|
|
120
|
+
also: ['ports/abstract-class'],
|
|
120
121
|
files: project({
|
|
121
122
|
[PORT]: source("import { token } from '@ddd-ts-kit/kernel';", '', "export const PAYMENT_GATEWAY = token<PaymentGateway>('billing.PaymentGateway');"),
|
|
122
123
|
}),
|