ddd-ts-kit 0.99.0 → 0.101.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 +229 -0
- package/README.fr.md +253 -64
- package/README.md +233 -65
- package/dist/acceptance/lock-acceptance.d.ts +2 -0
- package/dist/acceptance/lock-acceptance.d.ts.map +1 -1
- package/dist/acceptance/lock-acceptance.js +28 -8
- package/dist/acceptance/lock-acceptance.js.map +1 -1
- package/dist/acceptance/lock-in.d.ts +4 -0
- package/dist/acceptance/lock-in.d.ts.map +1 -0
- package/dist/acceptance/lock-in.js +45 -0
- package/dist/acceptance/lock-in.js.map +1 -0
- package/dist/acceptance/previous-lock-of.d.ts +32 -0
- package/dist/acceptance/previous-lock-of.d.ts.map +1 -0
- package/dist/acceptance/previous-lock-of.js +29 -0
- package/dist/acceptance/previous-lock-of.js.map +1 -0
- package/dist/acceptance/read-acceptance.js +13 -3
- package/dist/acceptance/read-acceptance.js.map +1 -1
- package/dist/acceptance/read-committed-lock.d.ts +28 -0
- package/dist/acceptance/read-committed-lock.d.ts.map +1 -0
- package/dist/acceptance/read-committed-lock.js +27 -0
- package/dist/acceptance/read-committed-lock.js.map +1 -0
- package/dist/acceptance/read-lock.d.ts.map +1 -1
- package/dist/acceptance/read-lock.js +2 -41
- package/dist/acceptance/read-lock.js.map +1 -1
- package/dist/affected/changed-paths.d.ts +2 -1
- package/dist/affected/changed-paths.d.ts.map +1 -1
- package/dist/affected/changed-paths.js +10 -6
- package/dist/affected/changed-paths.js.map +1 -1
- package/dist/affected/format-selection.d.ts.map +1 -1
- package/dist/affected/format-selection.js +2 -1
- package/dist/affected/format-selection.js.map +1 -1
- package/dist/affected/reach-of.d.ts.map +1 -1
- package/dist/affected/reach-of.js +2 -1
- package/dist/affected/reach-of.js.map +1 -1
- package/dist/affected/run-affected.d.ts.map +1 -1
- package/dist/affected/run-affected.js +0 -1
- package/dist/affected/run-affected.js.map +1 -1
- package/dist/check/authz/permission-sets.d.ts +1 -1
- package/dist/check/authz/permission-sets.d.ts.map +1 -1
- package/dist/check/authz/permission-sets.js.map +1 -1
- package/dist/check/canonical/stray-entry.d.ts.map +1 -1
- package/dist/check/canonical/stray-entry.js +2 -1
- package/dist/check/canonical/stray-entry.js.map +1 -1
- package/dist/check/commands/changed-files.d.ts +5 -5
- package/dist/check/commands/changed-files.d.ts.map +1 -1
- package/dist/check/commands/changed-files.js +7 -7
- package/dist/check/commands/changed-files.js.map +1 -1
- package/dist/check/commands/check-command.d.ts.map +1 -1
- package/dist/check/commands/check-command.js +3 -1
- package/dist/check/commands/check-command.js.map +1 -1
- package/dist/check/commands/check-file-command.js +2 -1
- 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 +3 -2
- package/dist/check/commands/explain-command.js.map +1 -1
- package/dist/check/commands/rules-command.d.ts.map +1 -1
- package/dist/check/commands/rules-command.js +5 -2
- package/dist/check/commands/rules-command.js.map +1 -1
- package/dist/check/commands/self-check.d.ts.map +1 -1
- package/dist/check/commands/self-check.js +2 -1
- package/dist/check/commands/self-check.js.map +1 -1
- package/dist/check/configuration/config-inspection.d.ts +2 -0
- package/dist/check/configuration/config-inspection.d.ts.map +1 -1
- package/dist/check/configuration/config-inspection.js +9 -3
- package/dist/check/configuration/config-inspection.js.map +1 -1
- package/dist/check/configuration/leaving-directories.d.ts +7 -0
- package/dist/check/configuration/leaving-directories.d.ts.map +1 -0
- package/dist/check/configuration/leaving-directories.js +13 -0
- package/dist/check/configuration/leaving-directories.js.map +1 -0
- package/dist/check/configuration/unknown-keys.d.ts +8 -0
- package/dist/check/configuration/unknown-keys.d.ts.map +1 -0
- package/dist/check/configuration/unknown-keys.js +84 -0
- package/dist/check/configuration/unknown-keys.js.map +1 -0
- package/dist/check/engine/format-check.d.ts.map +1 -1
- package/dist/check/engine/format-check.js +3 -2
- package/dist/check/engine/format-check.js.map +1 -1
- package/dist/check/explain/layer-docs.js +1 -1
- package/dist/check/explain/layer-docs.js.map +1 -1
- package/dist/check/explain/privacy-docs.js +1 -1
- package/dist/check/explain/privacy-docs.js.map +1 -1
- package/dist/check/fixtures/layer-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/layer-fixtures.js +47 -1
- package/dist/check/fixtures/layer-fixtures.js.map +1 -1
- package/dist/check/fixtures/privacy-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/privacy-fixtures.js +39 -0
- package/dist/check/fixtures/privacy-fixtures.js.map +1 -1
- package/dist/check/privacy/published-events-of.d.ts.map +1 -1
- package/dist/check/privacy/published-events-of.js +4 -2
- package/dist/check/privacy/published-events-of.js.map +1 -1
- package/dist/check/project/load-project.d.ts.map +1 -1
- package/dist/check/project/load-project.js +2 -1
- package/dist/check/project/load-project.js.map +1 -1
- package/dist/check/rules/config-valid.d.ts.map +1 -1
- package/dist/check/rules/config-valid.js +7 -2
- package/dist/check/rules/config-valid.js.map +1 -1
- package/dist/check/rules/context-declared-relationship.d.ts.map +1 -1
- package/dist/check/rules/context-declared-relationship.js +2 -1
- package/dist/check/rules/context-declared-relationship.js.map +1 -1
- package/dist/check/rules/context-no-cycle.d.ts.map +1 -1
- package/dist/check/rules/context-no-cycle.js +2 -1
- package/dist/check/rules/context-no-cycle.js.map +1 -1
- package/dist/check/rules/declarations-barrel-current.d.ts.map +1 -1
- package/dist/check/rules/declarations-barrel-current.js +2 -1
- 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 +11 -2
- package/dist/check/rules/layer-application-inward.js.map +1 -1
- package/dist/check/rules/nest-controllers-current.d.ts.map +1 -1
- package/dist/check/rules/nest-controllers-current.js +2 -1
- package/dist/check/rules/nest-controllers-current.js.map +1 -1
- package/dist/check/rules/privacy-declared-field.d.ts +3 -1
- package/dist/check/rules/privacy-declared-field.d.ts.map +1 -1
- package/dist/check/rules/privacy-declared-field.js +10 -2
- package/dist/check/rules/privacy-declared-field.js.map +1 -1
- package/dist/check/rules/tree-context-doc.d.ts.map +1 -1
- package/dist/check/rules/tree-context-doc.js +2 -1
- package/dist/check/rules/tree-context-doc.js.map +1 -1
- package/dist/check/scheduling/is-background-job-file.d.ts +4 -0
- package/dist/check/scheduling/is-background-job-file.d.ts.map +1 -0
- package/dist/check/scheduling/is-background-job-file.js +8 -0
- package/dist/check/scheduling/is-background-job-file.js.map +1 -0
- package/dist/check/scheduling/job-classes.d.ts.map +1 -1
- package/dist/check/scheduling/job-classes.js +1 -7
- package/dist/check/scheduling/job-classes.js.map +1 -1
- package/dist/check/schemas/class-shapes.d.ts.map +1 -1
- package/dist/check/schemas/class-shapes.js +5 -26
- package/dist/check/schemas/class-shapes.js.map +1 -1
- package/dist/check/structure/class-statements.d.ts +13 -0
- package/dist/check/structure/class-statements.d.ts.map +1 -0
- package/dist/check/structure/class-statements.js +34 -0
- package/dist/check/structure/class-statements.js.map +1 -0
- package/dist/check/structure/property-of.d.ts +13 -0
- package/dist/check/structure/property-of.d.ts.map +1 -0
- package/dist/check/structure/property-of.js +23 -0
- package/dist/check/structure/property-of.js.map +1 -0
- package/dist/citations/ref-notes.js +7 -2
- package/dist/citations/ref-notes.js.map +1 -1
- package/dist/citations/removals-since.d.ts +2 -1
- package/dist/citations/removals-since.d.ts.map +1 -1
- package/dist/citations/removals-since.js +3 -2
- package/dist/citations/removals-since.js.map +1 -1
- package/dist/citations/stale-names-at.d.ts +6 -1
- package/dist/citations/stale-names-at.d.ts.map +1 -1
- package/dist/citations/stale-names-at.js +14 -6
- package/dist/citations/stale-names-at.js.map +1 -1
- package/dist/commands/acceptance.d.ts.map +1 -1
- package/dist/commands/acceptance.js +4 -4
- package/dist/commands/acceptance.js.map +1 -1
- package/dist/commands/affected.d.ts +4 -1
- package/dist/commands/affected.d.ts.map +1 -1
- package/dist/commands/affected.js +14 -2
- package/dist/commands/affected.js.map +1 -1
- package/dist/commands/arguments-error.d.ts +5 -0
- package/dist/commands/arguments-error.d.ts.map +1 -0
- package/dist/commands/arguments-error.js +5 -0
- package/dist/commands/arguments-error.js.map +1 -0
- package/dist/commands/arguments.js +2 -2
- package/dist/commands/arguments.js.map +1 -1
- package/dist/commands/build-aliases.d.ts.map +1 -1
- package/dist/commands/build-aliases.js +2 -1
- package/dist/commands/build-aliases.js.map +1 -1
- package/dist/commands/cited.d.ts.map +1 -1
- package/dist/commands/cited.js +8 -11
- package/dist/commands/cited.js.map +1 -1
- package/dist/commands/commit-size.d.ts.map +1 -1
- package/dist/commands/commit-size.js +2 -1
- package/dist/commands/commit-size.js.map +1 -1
- package/dist/commands/context-layout.d.ts.map +1 -1
- package/dist/commands/context-layout.js +6 -4
- package/dist/commands/context-layout.js.map +1 -1
- package/dist/commands/controllers.d.ts.map +1 -1
- package/dist/commands/controllers.js +4 -2
- package/dist/commands/controllers.js.map +1 -1
- package/dist/commands/depcruise-config.d.ts.map +1 -1
- package/dist/commands/depcruise-config.js +5 -3
- package/dist/commands/depcruise-config.js.map +1 -1
- package/dist/commands/describe.d.ts.map +1 -1
- package/dist/commands/describe.js +2 -1
- package/dist/commands/describe.js.map +1 -1
- package/dist/commands/digest.d.ts +8 -0
- package/dist/commands/digest.d.ts.map +1 -0
- package/dist/commands/digest.js +23 -0
- package/dist/commands/digest.js.map +1 -0
- package/dist/commands/docs.d.ts.map +1 -1
- package/dist/commands/docs.js +4 -2
- package/dist/commands/docs.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +2 -1
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/drizzle-generate.d.ts.map +1 -1
- package/dist/commands/drizzle-generate.js +2 -2
- package/dist/commands/drizzle-generate.js.map +1 -1
- package/dist/commands/error-factories.d.ts.map +1 -1
- package/dist/commands/error-factories.js +2 -1
- package/dist/commands/error-factories.js.map +1 -1
- package/dist/commands/format-context.d.ts +1 -1
- package/dist/commands/format-context.d.ts.map +1 -1
- package/dist/commands/format-context.js +16 -16
- package/dist/commands/format-context.js.map +1 -1
- package/dist/commands/generate.d.ts +6 -3
- package/dist/commands/generate.d.ts.map +1 -1
- package/dist/commands/generate.js +32 -68
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +8 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/known-context.d.ts.map +1 -1
- package/dist/commands/known-context.js +2 -1
- package/dist/commands/known-context.js.map +1 -1
- package/dist/commands/list.d.ts.map +1 -1
- package/dist/commands/list.js +4 -3
- package/dist/commands/list.js.map +1 -1
- package/dist/commands/measures.d.ts.map +1 -1
- package/dist/commands/measures.js +2 -1
- package/dist/commands/measures.js.map +1 -1
- package/dist/commands/merge-trunk.d.ts.map +1 -1
- package/dist/commands/merge-trunk.js +3 -2
- package/dist/commands/merge-trunk.js.map +1 -1
- package/dist/commands/move-to-module.d.ts.map +1 -1
- package/dist/commands/move-to-module.js +9 -5
- package/dist/commands/move-to-module.js.map +1 -1
- package/dist/commands/mutation.d.ts.map +1 -1
- package/dist/commands/mutation.js +5 -2
- package/dist/commands/mutation.js.map +1 -1
- package/dist/commands/plan-waves.d.ts +3 -2
- package/dist/commands/plan-waves.d.ts.map +1 -1
- package/dist/commands/plan-waves.js +15 -19
- package/dist/commands/plan-waves.js.map +1 -1
- package/dist/commands/platform-folders.d.ts.map +1 -1
- package/dist/commands/platform-folders.js +2 -1
- package/dist/commands/platform-folders.js.map +1 -1
- package/dist/commands/print-report.d.ts +1 -1
- package/dist/commands/print-report.d.ts.map +1 -1
- package/dist/commands/print-report.js +15 -6
- package/dist/commands/print-report.js.map +1 -1
- package/dist/commands/prisma-generate.d.ts +2 -1
- package/dist/commands/prisma-generate.d.ts.map +1 -1
- package/dist/commands/prisma-generate.js +14 -7
- package/dist/commands/prisma-generate.js.map +1 -1
- package/dist/commands/sdk.d.ts.map +1 -1
- package/dist/commands/sdk.js +3 -4
- package/dist/commands/sdk.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +3 -2
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/stories.d.ts.map +1 -1
- package/dist/commands/stories.js +2 -1
- package/dist/commands/stories.js.map +1 -1
- package/dist/commands/story-check.d.ts.map +1 -1
- package/dist/commands/story-check.js +2 -1
- package/dist/commands/story-check.js.map +1 -1
- package/dist/commands/story-scope.d.ts.map +1 -1
- package/dist/commands/story-scope.js +2 -1
- package/dist/commands/story-scope.js.map +1 -1
- package/dist/commands/story.d.ts.map +1 -1
- package/dist/commands/story.js +2 -1
- package/dist/commands/story.js.map +1 -1
- package/dist/commands/todo.d.ts +4 -1
- package/dist/commands/todo.d.ts.map +1 -1
- package/dist/commands/todo.js +12 -6
- package/dist/commands/todo.js.map +1 -1
- package/dist/commands/typeorm-generate.d.ts +3 -1
- package/dist/commands/typeorm-generate.d.ts.map +1 -1
- package/dist/commands/typeorm-generate.js +36 -7
- package/dist/commands/typeorm-generate.js.map +1 -1
- package/dist/commands/value-objects.d.ts.map +1 -1
- package/dist/commands/value-objects.js +2 -1
- package/dist/commands/value-objects.js.map +1 -1
- package/dist/commands/verify-merge.d.ts.map +1 -1
- package/dist/commands/verify-merge.js +2 -1
- package/dist/commands/verify-merge.js.map +1 -1
- package/dist/commands/verify-slice.d.ts.map +1 -1
- package/dist/commands/verify-slice.js +5 -2
- package/dist/commands/verify-slice.js.map +1 -1
- package/dist/commands/worker-scope.d.ts.map +1 -1
- package/dist/commands/worker-scope.js +3 -2
- package/dist/commands/worker-scope.js.map +1 -1
- package/dist/commands/worktree.d.ts.map +1 -1
- package/dist/commands/worktree.js +2 -1
- package/dist/commands/worktree.js.map +1 -1
- package/dist/commit/commit-of.d.ts +6 -0
- package/dist/commit/commit-of.d.ts.map +1 -0
- package/dist/commit/commit-of.js +9 -0
- package/dist/commit/commit-of.js.map +1 -0
- package/dist/commit/known-commit.d.ts +6 -0
- package/dist/commit/known-commit.d.ts.map +1 -0
- package/dist/commit/known-commit.js +14 -0
- package/dist/commit/known-commit.js.map +1 -0
- package/dist/commit/run-git.d.ts +2 -1
- package/dist/commit/run-git.d.ts.map +1 -1
- package/dist/commit/run-git.js +3 -1
- package/dist/commit/run-git.js.map +1 -1
- package/dist/commit/worker-scope-file.d.ts.map +1 -1
- package/dist/commit/worker-scope-file.js +2 -1
- package/dist/commit/worker-scope-file.js.map +1 -1
- package/dist/config/config.d.ts +2 -0
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/default-allowed-packages.d.ts.map +1 -1
- package/dist/config/default-allowed-packages.js +2 -14
- package/dist/config/default-allowed-packages.js.map +1 -1
- package/dist/config/derived-config-keys.d.ts +6 -0
- package/dist/config/derived-config-keys.d.ts.map +1 -0
- package/dist/config/derived-config-keys.js +6 -0
- package/dist/config/derived-config-keys.js.map +1 -0
- package/dist/config/directories-of.d.ts +4 -0
- package/dist/config/directories-of.d.ts.map +1 -0
- package/dist/config/directories-of.js +13 -0
- package/dist/config/directories-of.js.map +1 -0
- package/dist/config/index.d.ts +7 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +7 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/inside-defaults-of.d.ts +4 -0
- package/dist/config/inside-defaults-of.d.ts.map +1 -0
- package/dist/config/inside-defaults-of.js +9 -0
- package/dist/config/inside-defaults-of.js.map +1 -0
- package/dist/config/is-control-plane.d.ts.map +1 -1
- package/dist/config/is-control-plane.js +2 -1
- package/dist/config/is-control-plane.js.map +1 -1
- package/dist/config/known-config-keys.d.ts +7 -0
- package/dist/config/known-config-keys.d.ts.map +1 -0
- package/dist/config/known-config-keys.js +41 -0
- package/dist/config/known-config-keys.js.map +1 -0
- package/dist/config/known-stack-keys.d.ts +3 -0
- package/dist/config/known-stack-keys.d.ts.map +1 -0
- package/dist/config/known-stack-keys.js +39 -0
- package/dist/config/known-stack-keys.js.map +1 -0
- package/dist/config/leaves-project.d.ts +3 -0
- package/dist/config/leaves-project.d.ts.map +1 -0
- package/dist/config/leaves-project.js +11 -0
- package/dist/config/leaves-project.js.map +1 -0
- package/dist/config/leaving-directory-problem.d.ts +7 -0
- package/dist/config/leaving-directory-problem.d.ts.map +1 -0
- package/dist/config/leaving-directory-problem.js +8 -0
- package/dist/config/leaving-directory-problem.js.map +1 -0
- package/dist/config/normalized-directory.d.ts +3 -0
- package/dist/config/normalized-directory.d.ts.map +1 -0
- package/dist/config/normalized-directory.js +7 -0
- package/dist/config/normalized-directory.js.map +1 -0
- package/dist/config/parse-config.d.ts +8 -2
- package/dist/config/parse-config.d.ts.map +1 -1
- package/dist/config/parse-config.js +31 -8
- package/dist/config/parse-config.js.map +1 -1
- package/dist/config/payload-schema-packages-of.d.ts +7 -0
- package/dist/config/payload-schema-packages-of.d.ts.map +1 -0
- package/dist/config/payload-schema-packages-of.js +10 -0
- package/dist/config/payload-schema-packages-of.js.map +1 -0
- package/dist/config/project-directories.d.ts +4 -0
- package/dist/config/project-directories.d.ts.map +1 -0
- package/dist/config/project-directories.js +3 -0
- package/dist/config/project-directories.js.map +1 -0
- package/dist/config/read-config.d.ts +2 -1
- package/dist/config/read-config.d.ts.map +1 -1
- package/dist/config/read-config.js +2 -2
- package/dist/config/read-config.js.map +1 -1
- package/dist/config/schema-libraries-of.d.ts +6 -0
- package/dist/config/schema-libraries-of.d.ts.map +1 -0
- package/dist/config/schema-libraries-of.js +18 -0
- package/dist/config/schema-libraries-of.js.map +1 -0
- package/dist/config/values/nearest-of.d.ts +7 -0
- package/dist/config/values/nearest-of.d.ts.map +1 -0
- package/dist/config/values/nearest-of.js +34 -0
- package/dist/config/values/nearest-of.js.map +1 -0
- package/dist/config/values/own-entry.d.ts +6 -0
- package/dist/config/values/own-entry.d.ts.map +1 -0
- package/dist/config/values/own-entry.js +8 -0
- package/dist/config/values/own-entry.js.map +1 -0
- package/dist/controllers/finish-migration.js +7 -2
- package/dist/controllers/finish-migration.js.map +1 -1
- package/dist/controllers/migrate-context.js +17 -5
- package/dist/controllers/migrate-context.js.map +1 -1
- package/dist/depcruise/context-rules.d.ts.map +1 -1
- package/dist/depcruise/context-rules.js +2 -1
- package/dist/depcruise/context-rules.js.map +1 -1
- package/dist/depcruise/layer-rules.d.ts.map +1 -1
- package/dist/depcruise/layer-rules.js +38 -8
- package/dist/depcruise/layer-rules.js.map +1 -1
- package/dist/derived/behaviour-pages.d.ts +3 -0
- package/dist/derived/behaviour-pages.d.ts.map +1 -0
- package/dist/derived/behaviour-pages.js +3 -0
- package/dist/derived/behaviour-pages.js.map +1 -0
- package/dist/derived/derived-file-kind.d.ts +19 -0
- package/dist/derived/derived-file-kind.d.ts.map +1 -0
- package/dist/derived/derived-file-kind.js +2 -0
- package/dist/derived/derived-file-kind.js.map +1 -0
- package/dist/derived/derived-files.d.ts +9 -0
- package/dist/derived/derived-files.d.ts.map +1 -0
- package/dist/derived/derived-files.js +71 -0
- package/dist/derived/derived-files.js.map +1 -0
- package/dist/derived/derived-tree.d.ts +9 -0
- package/dist/derived/derived-tree.d.ts.map +1 -0
- package/dist/derived/derived-tree.js +2 -0
- package/dist/derived/derived-tree.js.map +1 -0
- package/dist/derived/is-derived.d.ts +7 -11
- package/dist/derived/is-derived.d.ts.map +1 -1
- package/dist/derived/is-derived.js +8 -16
- package/dist/derived/is-derived.js.map +1 -1
- package/dist/describe/read-event-definitions.d.ts +2 -0
- package/dist/describe/read-event-definitions.d.ts.map +1 -1
- package/dist/describe/read-event-definitions.js +1 -0
- package/dist/describe/read-event-definitions.js.map +1 -1
- package/dist/digest/branch-points.d.ts +14 -0
- package/dist/digest/branch-points.d.ts.map +1 -0
- package/dist/digest/branch-points.js +32 -0
- package/dist/digest/branch-points.js.map +1 -0
- package/dist/digest/changed-path.d.ts +7 -0
- package/dist/digest/changed-path.d.ts.map +1 -0
- package/dist/digest/changed-path.js +2 -0
- package/dist/digest/changed-path.js.map +1 -0
- package/dist/digest/changed-paths.d.ts +8 -0
- package/dist/digest/changed-paths.d.ts.map +1 -0
- package/dist/digest/changed-paths.js +35 -0
- package/dist/digest/changed-paths.js.map +1 -0
- package/dist/digest/changes-of.d.ts +8 -0
- package/dist/digest/changes-of.d.ts.map +1 -0
- package/dist/digest/changes-of.js +20 -0
- package/dist/digest/changes-of.js.map +1 -0
- package/dist/digest/context-changes.d.ts +9 -0
- package/dist/digest/context-changes.d.ts.map +1 -0
- package/dist/digest/context-changes.js +60 -0
- package/dist/digest/context-changes.js.map +1 -0
- package/dist/digest/context-entries.d.ts +14 -0
- package/dist/digest/context-entries.d.ts.map +1 -0
- package/dist/digest/context-entries.js +18 -0
- package/dist/digest/context-entries.js.map +1 -0
- package/dist/digest/digest.d.ts +90 -0
- package/dist/digest/digest.d.ts.map +1 -0
- package/dist/digest/digest.js +2 -0
- package/dist/digest/digest.js.map +1 -0
- package/dist/digest/files-to-read.d.ts +16 -0
- package/dist/digest/files-to-read.d.ts.map +1 -0
- package/dist/digest/files-to-read.js +33 -0
- package/dist/digest/files-to-read.js.map +1 -0
- package/dist/digest/format-digest.d.ts +8 -0
- package/dist/digest/format-digest.d.ts.map +1 -0
- package/dist/digest/format-digest.js +105 -0
- package/dist/digest/format-digest.js.map +1 -0
- package/dist/digest/grant-sources.d.ts +22 -0
- package/dist/digest/grant-sources.d.ts.map +1 -0
- package/dist/digest/grant-sources.js +47 -0
- package/dist/digest/grant-sources.js.map +1 -0
- package/dist/digest/grants-of.d.ts +19 -0
- package/dist/digest/grants-of.d.ts.map +1 -0
- package/dist/digest/grants-of.js +35 -0
- package/dist/digest/grants-of.js.map +1 -0
- package/dist/digest/index.d.ts +3 -0
- package/dist/digest/index.d.ts.map +1 -0
- package/dist/digest/index.js +3 -0
- package/dist/digest/index.js.map +1 -0
- package/dist/digest/new-spec-titles.d.ts +11 -0
- package/dist/digest/new-spec-titles.d.ts.map +1 -0
- package/dist/digest/new-spec-titles.js +38 -0
- package/dist/digest/new-spec-titles.js.map +1 -0
- package/dist/digest/project-tree.d.ts +16 -0
- package/dist/digest/project-tree.d.ts.map +1 -0
- package/dist/digest/project-tree.js +2 -0
- package/dist/digest/project-tree.js.map +1 -0
- package/dist/digest/read-digest.d.ts +11 -0
- package/dist/digest/read-digest.d.ts.map +1 -0
- package/dist/digest/read-digest.js +52 -0
- package/dist/digest/read-digest.js.map +1 -0
- package/dist/digest/reading-part.d.ts +10 -0
- package/dist/digest/reading-part.d.ts.map +1 -0
- package/dist/digest/reading-part.js +40 -0
- package/dist/digest/reading-part.js.map +1 -0
- package/dist/digest/tree-at.d.ts +9 -0
- package/dist/digest/tree-at.d.ts.map +1 -0
- package/dist/digest/tree-at.js +77 -0
- package/dist/digest/tree-at.js.map +1 -0
- package/dist/digest/without-generated-sections.d.ts +3 -0
- package/dist/digest/without-generated-sections.d.ts.map +1 -0
- package/dist/digest/without-generated-sections.js +21 -0
- package/dist/digest/without-generated-sections.js.map +1 -0
- package/dist/docs/all-rules.d.ts +4 -0
- package/dist/docs/all-rules.d.ts.map +1 -0
- package/dist/docs/all-rules.js +5 -0
- package/dist/docs/all-rules.js.map +1 -0
- package/dist/docs/behaviour-page.d.ts +6 -2
- package/dist/docs/behaviour-page.d.ts.map +1 -1
- package/dist/docs/behaviour-page.js +65 -57
- package/dist/docs/behaviour-page.js.map +1 -1
- package/dist/docs/cited-rows.d.ts +11 -0
- package/dist/docs/cited-rows.d.ts.map +1 -0
- package/dist/docs/cited-rows.js +13 -0
- package/dist/docs/cited-rows.js.map +1 -0
- package/dist/docs/context-sections.d.ts +18 -0
- package/dist/docs/context-sections.d.ts.map +1 -0
- package/dist/docs/context-sections.js +112 -0
- package/dist/docs/context-sections.js.map +1 -0
- package/dist/docs/counts-of.d.ts +3 -1
- package/dist/docs/counts-of.d.ts.map +1 -1
- package/dist/docs/counts-of.js +8 -8
- package/dist/docs/counts-of.js.map +1 -1
- package/dist/docs/describe-on-disk.d.ts +7 -0
- package/dist/docs/describe-on-disk.d.ts.map +1 -0
- package/dist/docs/describe-on-disk.js +6 -0
- package/dist/docs/describe-on-disk.js.map +1 -0
- package/dist/docs/is-empty-rules.d.ts +4 -0
- package/dist/docs/is-empty-rules.d.ts.map +1 -0
- package/dist/docs/is-empty-rules.js +5 -0
- package/dist/docs/is-empty-rules.js.map +1 -0
- package/dist/docs/is-generated-title.d.ts +7 -0
- package/dist/docs/is-generated-title.d.ts.map +1 -0
- package/dist/docs/is-generated-title.js +96 -0
- package/dist/docs/is-generated-title.js.map +1 -0
- package/dist/docs/joined-specs.d.ts +23 -0
- package/dist/docs/joined-specs.d.ts.map +1 -0
- package/dist/docs/joined-specs.js +95 -0
- package/dist/docs/joined-specs.js.map +1 -0
- package/dist/docs/kebab-of-use-case.d.ts +4 -0
- package/dist/docs/kebab-of-use-case.d.ts.map +1 -0
- package/dist/docs/kebab-of-use-case.js +6 -0
- package/dist/docs/kebab-of-use-case.js.map +1 -0
- package/dist/docs/page-section.d.ts +17 -3
- package/dist/docs/page-section.d.ts.map +1 -1
- package/dist/docs/policy-owners.d.ts +8 -0
- package/dist/docs/policy-owners.d.ts.map +1 -0
- package/dist/docs/policy-owners.js +13 -0
- package/dist/docs/policy-owners.js.map +1 -0
- package/dist/docs/read-context.d.ts.map +1 -1
- package/dist/docs/read-context.js +2 -1
- package/dist/docs/read-context.js.map +1 -1
- package/dist/docs/read-job-files.d.ts +16 -0
- package/dist/docs/read-job-files.d.ts.map +1 -0
- package/dist/docs/read-job-files.js +50 -0
- package/dist/docs/read-job-files.js.map +1 -0
- package/dist/docs/read-jobs.d.ts +2 -6
- package/dist/docs/read-jobs.d.ts.map +1 -1
- package/dist/docs/read-jobs.js +3 -45
- package/dist/docs/read-jobs.js.map +1 -1
- package/dist/docs/readable-title.d.ts +10 -0
- package/dist/docs/readable-title.d.ts.map +1 -0
- package/dist/docs/readable-title.js +38 -0
- package/dist/docs/readable-title.js.map +1 -0
- package/dist/docs/refresh-context-doc.d.ts +4 -2
- package/dist/docs/refresh-context-doc.d.ts.map +1 -1
- package/dist/docs/refresh-context-doc.js +12 -4
- package/dist/docs/refresh-context-doc.js.map +1 -1
- package/dist/docs/rules-where.d.ts +4 -0
- package/dist/docs/rules-where.d.ts.map +1 -0
- package/dist/docs/rules-where.js +12 -0
- package/dist/docs/rules-where.js.map +1 -0
- package/dist/docs/spec-heading.d.ts +3 -0
- package/dist/docs/spec-heading.d.ts.map +1 -0
- package/dist/docs/spec-heading.js +10 -0
- package/dist/docs/spec-heading.js.map +1 -0
- package/dist/docs/spec-of-page.d.ts +5 -0
- package/dist/docs/spec-of-page.d.ts.map +1 -0
- package/dist/docs/spec-of-page.js +14 -0
- package/dist/docs/spec-of-page.js.map +1 -0
- package/dist/docs/spec-roles.d.ts +9 -0
- package/dist/docs/spec-roles.d.ts.map +1 -0
- package/dist/docs/spec-roles.js +50 -0
- package/dist/docs/spec-roles.js.map +1 -0
- package/dist/docs/spec-subject.d.ts +15 -0
- package/dist/docs/spec-subject.d.ts.map +1 -0
- package/dist/docs/spec-subject.js +19 -0
- package/dist/docs/spec-subject.js.map +1 -0
- package/dist/docs/specs-by-directory.d.ts +7 -0
- package/dist/docs/specs-by-directory.d.ts.map +1 -0
- package/dist/docs/specs-by-directory.js +31 -0
- package/dist/docs/specs-by-directory.js.map +1 -0
- package/dist/docs/use-case-of-spec.d.ts +11 -0
- package/dist/docs/use-case-of-spec.d.ts.map +1 -0
- package/dist/docs/use-case-of-spec.js +40 -0
- package/dist/docs/use-case-of-spec.js.map +1 -0
- package/dist/docs/use-cases-of-context.d.ts +8 -0
- package/dist/docs/use-cases-of-context.d.ts.map +1 -0
- package/dist/docs/use-cases-of-context.js +2 -0
- package/dist/docs/use-cases-of-context.js.map +1 -0
- package/dist/docs/write-behaviour.d.ts +6 -5
- package/dist/docs/write-behaviour.d.ts.map +1 -1
- package/dist/docs/write-behaviour.js +37 -47
- package/dist/docs/write-behaviour.js.map +1 -1
- package/dist/docs/write-code-owners.d.ts.map +1 -1
- package/dist/docs/write-code-owners.js +3 -2
- package/dist/docs/write-code-owners.js.map +1 -1
- package/dist/docs/write-docs.d.ts.map +1 -1
- package/dist/docs/write-docs.js +4 -2
- package/dist/docs/write-docs.js.map +1 -1
- package/dist/doctor/format-diagnosis.js +2 -4
- package/dist/doctor/format-diagnosis.js.map +1 -1
- package/dist/generate/context-argument.d.ts +5 -0
- package/dist/generate/context-argument.d.ts.map +1 -0
- package/dist/generate/context-argument.js +9 -0
- package/dist/generate/context-argument.js.map +1 -0
- package/dist/generate/flags-of.d.ts +4 -0
- package/dist/generate/flags-of.d.ts.map +1 -0
- package/dist/generate/flags-of.js +6 -0
- package/dist/generate/flags-of.js.map +1 -0
- package/dist/generate/found-prerequisite.d.ts +7 -0
- package/dist/generate/found-prerequisite.d.ts.map +1 -0
- package/dist/generate/found-prerequisite.js +12 -0
- package/dist/generate/found-prerequisite.js.map +1 -0
- package/dist/generate/generate-arguments.d.ts +4 -0
- package/dist/generate/generate-arguments.d.ts.map +1 -0
- package/dist/generate/generate-arguments.js +12 -0
- package/dist/generate/generate-arguments.js.map +1 -0
- package/dist/generate/generate-options.d.ts +172 -0
- package/dist/generate/generate-options.d.ts.map +1 -0
- package/dist/generate/generate-options.js +57 -0
- package/dist/generate/generate-options.js.map +1 -0
- package/dist/generate/generator-probe.d.ts +19 -0
- package/dist/generate/generator-probe.d.ts.map +1 -0
- package/dist/generate/generator-probe.js +2 -0
- package/dist/generate/generator-probe.js.map +1 -0
- package/dist/generate/held-to-glossary.d.ts +9 -0
- package/dist/generate/held-to-glossary.d.ts.map +1 -0
- package/dist/generate/held-to-glossary.js +11 -0
- package/dist/generate/held-to-glossary.js.map +1 -0
- package/dist/generate/kind-help.d.ts +21 -0
- package/dist/generate/kind-help.d.ts.map +1 -0
- package/dist/generate/kind-help.js +20 -0
- package/dist/generate/kind-help.js.map +1 -0
- package/dist/generate/kind-in.d.ts +8 -0
- package/dist/generate/kind-in.d.ts.map +1 -0
- package/dist/generate/kind-in.js +29 -0
- package/dist/generate/kind-in.js.map +1 -0
- package/dist/generate/kind.d.ts +4 -1
- package/dist/generate/kind.d.ts.map +1 -1
- package/dist/generate/kinds/acl-kind.d.ts.map +1 -1
- package/dist/generate/kinds/acl-kind.js +3 -2
- package/dist/generate/kinds/acl-kind.js.map +1 -1
- package/dist/generate/kinds/adapter-kind.js +1 -1
- package/dist/generate/kinds/adapter-kind.js.map +1 -1
- package/dist/generate/kinds/aggregate-kind.d.ts.map +1 -1
- package/dist/generate/kinds/aggregate-kind.js +24 -13
- package/dist/generate/kinds/aggregate-kind.js.map +1 -1
- package/dist/generate/kinds/ask-policy-in-generated-use-case.js +2 -2
- package/dist/generate/kinds/ask-policy-in-generated-use-case.js.map +1 -1
- package/dist/generate/kinds/background/background-job-vars.d.ts.map +1 -1
- package/dist/generate/kinds/background/background-job-vars.js +33 -0
- package/dist/generate/kinds/background/background-job-vars.js.map +1 -1
- package/dist/generate/kinds/background/class-payload-schema.d.ts +5 -0
- package/dist/generate/kinds/background/class-payload-schema.d.ts.map +1 -0
- package/dist/generate/kinds/background/class-payload-schema.js +88 -0
- package/dist/generate/kinds/background/class-payload-schema.js.map +1 -0
- package/dist/generate/kinds/background/object-payload-schema.d.ts +7 -0
- package/dist/generate/kinds/background/object-payload-schema.d.ts.map +1 -0
- package/dist/generate/kinds/background/object-payload-schema.js +75 -0
- package/dist/generate/kinds/background/object-payload-schema.js.map +1 -0
- package/dist/generate/kinds/background/payload-field.d.ts +5 -0
- package/dist/generate/kinds/background/payload-field.d.ts.map +1 -1
- package/dist/generate/kinds/background/payload-field.js +7 -0
- package/dist/generate/kinds/background/payload-field.js.map +1 -1
- package/dist/generate/kinds/background/payload-of.d.ts +9 -0
- package/dist/generate/kinds/background/payload-of.d.ts.map +1 -0
- package/dist/generate/kinds/background/payload-of.js +2 -0
- package/dist/generate/kinds/background/payload-of.js.map +1 -0
- package/dist/generate/kinds/background/payload-schema-of.d.ts +10 -0
- package/dist/generate/kinds/background/payload-schema-of.d.ts.map +1 -0
- package/dist/generate/kinds/background/payload-schema-of.js +21 -0
- package/dist/generate/kinds/background/payload-schema-of.js.map +1 -0
- package/dist/generate/kinds/background/payload-schema.d.ts +16 -0
- package/dist/generate/kinds/background/payload-schema.d.ts.map +1 -0
- package/dist/generate/kinds/background/payload-schema.js +2 -0
- package/dist/generate/kinds/background/payload-schema.js.map +1 -0
- package/dist/generate/kinds/background/payload-shape.d.ts +19 -0
- package/dist/generate/kinds/background/payload-shape.d.ts.map +1 -0
- package/dist/generate/kinds/background/payload-shape.js +31 -0
- package/dist/generate/kinds/background/payload-shape.js.map +1 -0
- package/dist/generate/kinds/background/payload-texts.d.ts +12 -0
- package/dist/generate/kinds/background/payload-texts.d.ts.map +1 -0
- package/dist/generate/kinds/background/payload-texts.js +10 -0
- package/dist/generate/kinds/background/payload-texts.js.map +1 -0
- package/dist/generate/kinds/background/written-payload-schema.d.ts +11 -0
- package/dist/generate/kinds/background/written-payload-schema.d.ts.map +1 -0
- package/dist/generate/kinds/background/written-payload-schema.js +193 -0
- package/dist/generate/kinds/background/written-payload-schema.js.map +1 -0
- package/dist/generate/kinds/background-job-kind.js +1 -1
- package/dist/generate/kinds/background-job-kind.js.map +1 -1
- package/dist/generate/kinds/birth-names.d.ts +11 -0
- package/dist/generate/kinds/birth-names.d.ts.map +1 -0
- package/dist/generate/kinds/birth-names.js +17 -0
- package/dist/generate/kinds/birth-names.js.map +1 -0
- package/dist/generate/kinds/birth-of.d.ts +16 -0
- package/dist/generate/kinds/birth-of.d.ts.map +1 -0
- package/dist/generate/kinds/birth-of.js +26 -0
- package/dist/generate/kinds/birth-of.js.map +1 -0
- package/dist/generate/kinds/birth-span.d.ts +9 -0
- package/dist/generate/kinds/birth-span.d.ts.map +1 -0
- package/dist/generate/kinds/birth-span.js +39 -0
- package/dist/generate/kinds/birth-span.js.map +1 -0
- package/dist/generate/kinds/birth-vars.d.ts +8 -0
- package/dist/generate/kinds/birth-vars.d.ts.map +1 -0
- package/dist/generate/kinds/birth-vars.js +12 -0
- package/dist/generate/kinds/birth-vars.js.map +1 -0
- package/dist/generate/kinds/birth.d.ts +7 -0
- package/dist/generate/kinds/birth.d.ts.map +1 -0
- package/dist/generate/kinds/birth.js +2 -0
- package/dist/generate/kinds/birth.js.map +1 -0
- package/dist/generate/kinds/builder-kind.d.ts.map +1 -1
- package/dist/generate/kinds/builder-kind.js +43 -4
- package/dist/generate/kinds/builder-kind.js.map +1 -1
- package/dist/generate/kinds/command-context.d.ts +2 -2
- package/dist/generate/kinds/command-context.d.ts.map +1 -1
- package/dist/generate/kinds/command-context.js +12 -3
- package/dist/generate/kinds/command-context.js.map +1 -1
- package/dist/generate/kinds/command-kind.d.ts.map +1 -1
- package/dist/generate/kinds/command-kind.js +18 -11
- package/dist/generate/kinds/command-kind.js.map +1 -1
- package/dist/generate/kinds/context-kind.d.ts.map +1 -1
- package/dist/generate/kinds/context-kind.js +1 -0
- package/dist/generate/kinds/context-kind.js.map +1 -1
- package/dist/generate/kinds/context-request.d.ts +3 -0
- package/dist/generate/kinds/context-request.d.ts.map +1 -1
- package/dist/generate/kinds/declarations-of.d.ts +11 -0
- package/dist/generate/kinds/declarations-of.d.ts.map +1 -0
- package/dist/generate/kinds/declarations-of.js +17 -0
- package/dist/generate/kinds/declarations-of.js.map +1 -0
- package/dist/generate/kinds/e2e/jobs-sending.d.ts +4 -1
- package/dist/generate/kinds/e2e/jobs-sending.d.ts.map +1 -1
- package/dist/generate/kinds/e2e/jobs-sending.js +10 -4
- package/dist/generate/kinds/e2e/jobs-sending.js.map +1 -1
- package/dist/generate/kinds/e2e/reaction-of.d.ts.map +1 -1
- package/dist/generate/kinds/e2e/reaction-of.js +9 -4
- package/dist/generate/kinds/e2e/reaction-of.js.map +1 -1
- package/dist/generate/kinds/e2e-kind.js +7 -2
- package/dist/generate/kinds/e2e-kind.js.map +1 -1
- package/dist/generate/kinds/erasure-handler-kind.d.ts.map +1 -1
- package/dist/generate/kinds/erasure-handler-kind.js +7 -3
- package/dist/generate/kinds/erasure-handler-kind.js.map +1 -1
- package/dist/generate/kinds/event-type-as-published.d.ts +11 -0
- package/dist/generate/kinds/event-type-as-published.d.ts.map +1 -0
- package/dist/generate/kinds/event-type-as-published.js +17 -0
- package/dist/generate/kinds/event-type-as-published.js.map +1 -0
- package/dist/generate/kinds/factory-of.d.ts +3 -0
- package/dist/generate/kinds/factory-of.d.ts.map +1 -0
- package/dist/generate/kinds/factory-of.js +13 -0
- package/dist/generate/kinds/factory-of.js.map +1 -0
- package/dist/generate/kinds/file-upload-kind.d.ts.map +1 -1
- package/dist/generate/kinds/file-upload-kind.js +3 -2
- package/dist/generate/kinds/file-upload-kind.js.map +1 -1
- package/dist/generate/kinds/form-kind.js +1 -1
- package/dist/generate/kinds/form-kind.js.map +1 -1
- package/dist/generate/kinds/gateway-kind.d.ts.map +1 -1
- package/dist/generate/kinds/gateway-kind.js +3 -1
- package/dist/generate/kinds/gateway-kind.js.map +1 -1
- package/dist/generate/kinds/generate-context.d.ts.map +1 -1
- package/dist/generate/kinds/generate-context.js +24 -6
- package/dist/generate/kinds/generate-context.js.map +1 -1
- package/dist/generate/kinds/generate-event-sourced-repository.d.ts.map +1 -1
- package/dist/generate/kinds/generate-event-sourced-repository.js +4 -2
- package/dist/generate/kinds/generate-event-sourced-repository.js.map +1 -1
- package/dist/generate/kinds/instant-of.d.ts +4 -0
- package/dist/generate/kinds/instant-of.d.ts.map +1 -0
- package/dist/generate/kinds/instant-of.js +5 -0
- package/dist/generate/kinds/instant-of.js.map +1 -0
- package/dist/generate/kinds/integration-event-kind.d.ts.map +1 -1
- package/dist/generate/kinds/integration-event-kind.js +2 -9
- package/dist/generate/kinds/integration-event-kind.js.map +1 -1
- package/dist/generate/kinds/integration-handler-kind.d.ts.map +1 -1
- package/dist/generate/kinds/integration-handler-kind.js +33 -16
- package/dist/generate/kinds/integration-handler-kind.js.map +1 -1
- package/dist/generate/kinds/job/read-sent-command.d.ts.map +1 -1
- package/dist/generate/kinds/job/read-sent-command.js +1 -7
- package/dist/generate/kinds/job/read-sent-command.js.map +1 -1
- package/dist/generate/kinds/job/without-comments.d.ts +7 -0
- package/dist/generate/kinds/job/without-comments.d.ts.map +1 -0
- package/dist/generate/kinds/job/without-comments.js +13 -0
- package/dist/generate/kinds/job/without-comments.js.map +1 -0
- package/dist/generate/kinds/job-kind.d.ts.map +1 -1
- package/dist/generate/kinds/job-kind.js +14 -3
- package/dist/generate/kinds/job-kind.js.map +1 -1
- package/dist/generate/kinds/module-kind.js +3 -3
- package/dist/generate/kinds/module-kind.js.map +1 -1
- package/dist/generate/kinds/parameter-count.d.ts +6 -0
- package/dist/generate/kinds/parameter-count.d.ts.map +1 -0
- package/dist/generate/kinds/parameter-count.js +32 -0
- package/dist/generate/kinds/parameter-count.js.map +1 -0
- package/dist/generate/kinds/parse-version.d.ts +3 -0
- package/dist/generate/kinds/parse-version.d.ts.map +1 -0
- package/dist/generate/kinds/parse-version.js +9 -0
- package/dist/generate/kinds/parse-version.js.map +1 -0
- package/dist/generate/kinds/personal-data/personal-request-of.d.ts.map +1 -1
- package/dist/generate/kinds/personal-data/personal-request-of.js +9 -6
- package/dist/generate/kinds/personal-data/personal-request-of.js.map +1 -1
- package/dist/generate/kinds/personal-data/personal-vars.js +1 -1
- package/dist/generate/kinds/personal-data/personal-vars.js.map +1 -1
- package/dist/generate/kinds/pick-declaration.d.ts +9 -0
- package/dist/generate/kinds/pick-declaration.d.ts.map +1 -0
- package/dist/generate/kinds/pick-declaration.js +14 -0
- package/dist/generate/kinds/pick-declaration.js.map +1 -0
- package/dist/generate/kinds/plan-vars.d.ts.map +1 -1
- package/dist/generate/kinds/plan-vars.js +2 -1
- package/dist/generate/kinds/plan-vars.js.map +1 -1
- package/dist/generate/kinds/policy-kind.d.ts.map +1 -1
- package/dist/generate/kinds/policy-kind.js +15 -2
- package/dist/generate/kinds/policy-kind.js.map +1 -1
- package/dist/generate/kinds/presentation/controller-of.d.ts.map +1 -1
- package/dist/generate/kinds/presentation/controller-of.js +17 -5
- package/dist/generate/kinds/presentation/controller-of.js.map +1 -1
- package/dist/generate/kinds/projection-kind.d.ts.map +1 -1
- package/dist/generate/kinds/projection-kind.js +24 -13
- package/dist/generate/kinds/projection-kind.js.map +1 -1
- package/dist/generate/kinds/property-kind.js +1 -1
- package/dist/generate/kinds/property-kind.js.map +1 -1
- package/dist/generate/kinds/query-context.d.ts +7 -3
- package/dist/generate/kinds/query-context.d.ts.map +1 -1
- package/dist/generate/kinds/query-context.js +16 -5
- package/dist/generate/kinds/query-context.js.map +1 -1
- package/dist/generate/kinds/query-kind.d.ts.map +1 -1
- package/dist/generate/kinds/query-kind.js +4 -1
- package/dist/generate/kinds/query-kind.js.map +1 -1
- package/dist/generate/kinds/refuse-unpublished-version.d.ts +7 -0
- package/dist/generate/kinds/refuse-unpublished-version.d.ts.map +1 -0
- package/dist/generate/kinds/refuse-unpublished-version.js +15 -0
- package/dist/generate/kinds/refuse-unpublished-version.js.map +1 -0
- package/dist/generate/kinds/repository-kind.js +1 -1
- package/dist/generate/kinds/repository-kind.js.map +1 -1
- package/dist/generate/kinds/representation-kind.js +1 -1
- package/dist/generate/kinds/representation-kind.js.map +1 -1
- package/dist/generate/kinds/route/carries-body.d.ts +4 -0
- package/dist/generate/kinds/route/carries-body.d.ts.map +1 -0
- package/dist/generate/kinds/route/carries-body.js +6 -0
- package/dist/generate/kinds/route/carries-body.js.map +1 -0
- package/dist/generate/kinds/route/controller-types.d.ts +3 -1
- package/dist/generate/kinds/route/controller-types.d.ts.map +1 -1
- package/dist/generate/kinds/route/controller-types.js +7 -4
- package/dist/generate/kinds/route/controller-types.js.map +1 -1
- package/dist/generate/kinds/route/controller-vars.d.ts.map +1 -1
- package/dist/generate/kinds/route/controller-vars.js +15 -8
- package/dist/generate/kinds/route/controller-vars.js.map +1 -1
- package/dist/generate/kinds/route/described-field.d.ts +4 -0
- package/dist/generate/kinds/route/described-field.d.ts.map +1 -0
- package/dist/generate/kinds/route/described-field.js +5 -0
- package/dist/generate/kinds/route/described-field.js.map +1 -0
- package/dist/generate/kinds/route/dto-classes.d.ts.map +1 -1
- package/dist/generate/kinds/route/dto-classes.js +2 -2
- package/dist/generate/kinds/route/dto-classes.js.map +1 -1
- package/dist/generate/kinds/route/find-use-case.d.ts.map +1 -1
- package/dist/generate/kinds/route/find-use-case.js +4 -1
- package/dist/generate/kinds/route/find-use-case.js.map +1 -1
- package/dist/generate/kinds/route/group-prefix.d.ts.map +1 -1
- package/dist/generate/kinds/route/group-prefix.js +9 -3
- package/dist/generate/kinds/route/group-prefix.js.map +1 -1
- package/dist/generate/kinds/route/message-call.d.ts +15 -0
- package/dist/generate/kinds/route/message-call.d.ts.map +1 -0
- package/dist/generate/kinds/route/message-call.js +19 -0
- package/dist/generate/kinds/route/message-call.js.map +1 -0
- package/dist/generate/kinds/route/message-fields-of.d.ts +15 -0
- package/dist/generate/kinds/route/message-fields-of.d.ts.map +1 -0
- package/dist/generate/kinds/route/message-fields-of.js +13 -0
- package/dist/generate/kinds/route/message-fields-of.js.map +1 -0
- package/dist/generate/kinds/route/message-plan.d.ts +31 -0
- package/dist/generate/kinds/route/message-plan.d.ts.map +1 -0
- package/dist/generate/kinds/route/message-plan.js +46 -0
- package/dist/generate/kinds/route/message-plan.js.map +1 -0
- package/dist/generate/kinds/route/message-vars.d.ts +11 -0
- package/dist/generate/kinds/route/message-vars.d.ts.map +1 -0
- package/dist/generate/kinds/route/message-vars.js +92 -0
- package/dist/generate/kinds/route/message-vars.js.map +1 -0
- package/dist/generate/kinds/route/nest-controller-vars.d.ts.map +1 -1
- package/dist/generate/kinds/route/nest-controller-vars.js +2 -2
- package/dist/generate/kinds/route/nest-controller-vars.js.map +1 -1
- package/dist/generate/kinds/route/plan-of.d.ts +14 -0
- package/dist/generate/kinds/route/plan-of.d.ts.map +1 -0
- package/dist/generate/kinds/route/plan-of.js +6 -0
- package/dist/generate/kinds/route/plan-of.js.map +1 -0
- package/dist/generate/kinds/route/resolve-group.d.ts.map +1 -1
- package/dist/generate/kinds/route/resolve-group.js +4 -2
- package/dist/generate/kinds/route/resolve-group.js.map +1 -1
- package/dist/generate/kinds/route/route-vars.d.ts +6 -2
- package/dist/generate/kinds/route/route-vars.d.ts.map +1 -1
- package/dist/generate/kinds/route/route-vars.js +37 -14
- package/dist/generate/kinds/route/route-vars.js.map +1 -1
- package/dist/generate/kinds/route/sample-params.d.ts +3 -0
- package/dist/generate/kinds/route/sample-params.d.ts.map +1 -0
- package/dist/generate/kinds/route/sample-params.js +7 -0
- package/dist/generate/kinds/route/sample-params.js.map +1 -0
- package/dist/generate/kinds/route/spec-vars.d.ts +22 -0
- package/dist/generate/kinds/route/spec-vars.d.ts.map +1 -0
- package/dist/generate/kinds/route/spec-vars.js +80 -0
- package/dist/generate/kinds/route/spec-vars.js.map +1 -0
- package/dist/generate/kinds/route/standard-schema-of.d.ts +17 -0
- package/dist/generate/kinds/route/standard-schema-of.d.ts.map +1 -0
- package/dist/generate/kinds/route/standard-schema-of.js +74 -0
- package/dist/generate/kinds/route/standard-schema-of.js.map +1 -0
- package/dist/generate/kinds/route/use-case.d.ts +3 -0
- package/dist/generate/kinds/route/use-case.d.ts.map +1 -1
- package/dist/generate/kinds/route/writes-body-of.d.ts +4 -0
- package/dist/generate/kinds/route/writes-body-of.d.ts.map +1 -0
- package/dist/generate/kinds/route/writes-body-of.js +5 -0
- package/dist/generate/kinds/route/writes-body-of.js.map +1 -0
- package/dist/generate/kinds/route/writes-params-of.d.ts +4 -0
- package/dist/generate/kinds/route/writes-params-of.d.ts.map +1 -0
- package/dist/generate/kinds/route/writes-params-of.js +5 -0
- package/dist/generate/kinds/route/writes-params-of.js.map +1 -0
- package/dist/generate/kinds/route-group-kind.js +3 -2
- package/dist/generate/kinds/route-group-kind.js.map +1 -1
- package/dist/generate/kinds/route-kind.js +2 -2
- package/dist/generate/kinds/route-kind.js.map +1 -1
- package/dist/generate/kinds/state-machine-kind.js +1 -1
- package/dist/generate/kinds/state-machine-kind.js.map +1 -1
- package/dist/generate/kinds/traced-command.d.ts +1 -1
- package/dist/generate/kinds/traced-command.d.ts.map +1 -1
- package/dist/generate/kinds/traced-command.js +5 -2
- package/dist/generate/kinds/traced-command.js.map +1 -1
- package/dist/generate/kinds/use-case-context.d.ts +7 -0
- package/dist/generate/kinds/use-case-context.d.ts.map +1 -0
- package/dist/generate/kinds/use-case-context.js +2 -0
- package/dist/generate/kinds/use-case-context.js.map +1 -0
- package/dist/generate/kinds/wanted-event.d.ts +6 -0
- package/dist/generate/kinds/wanted-event.d.ts.map +1 -0
- package/dist/generate/kinds/wanted-event.js +2 -0
- package/dist/generate/kinds/wanted-event.js.map +1 -0
- package/dist/generate/kinds/worker-kind.d.ts.map +1 -1
- package/dist/generate/kinds/worker-kind.js +2 -1
- package/dist/generate/kinds/worker-kind.js.map +1 -1
- package/dist/generate/kinds/world/context-fakes.d.ts +2 -1
- package/dist/generate/kinds/world/context-fakes.d.ts.map +1 -1
- package/dist/generate/kinds/world/context-fakes.js +24 -4
- package/dist/generate/kinds/world/context-fakes.js.map +1 -1
- package/dist/generate/kinds/world/context-world.d.ts +37 -0
- package/dist/generate/kinds/world/context-world.d.ts.map +1 -0
- package/dist/generate/kinds/world/context-world.js +60 -0
- package/dist/generate/kinds/world/context-world.js.map +1 -0
- package/dist/generate/kinds/world/fake-class.d.ts +2 -0
- package/dist/generate/kinds/world/fake-class.d.ts.map +1 -1
- package/dist/generate/kinds/world/fake-class.js +2 -2
- package/dist/generate/kinds/world/fake-class.js.map +1 -1
- package/dist/generate/kinds/world/is-world-comment.d.ts +3 -0
- package/dist/generate/kinds/world/is-world-comment.d.ts.map +1 -0
- package/dist/generate/kinds/world/is-world-comment.js +12 -0
- package/dist/generate/kinds/world/is-world-comment.js.map +1 -0
- package/dist/generate/kinds/world/world-arrangement.d.ts +32 -0
- package/dist/generate/kinds/world/world-arrangement.d.ts.map +1 -0
- package/dist/generate/kinds/world/world-arrangement.js +110 -0
- package/dist/generate/kinds/world/world-arrangement.js.map +1 -0
- package/dist/generate/kinds/world/world-comments.d.ts +11 -0
- package/dist/generate/kinds/world/world-comments.d.ts.map +1 -0
- package/dist/generate/kinds/world/world-comments.js +11 -0
- package/dist/generate/kinds/world/world-comments.js.map +1 -0
- package/dist/generate/kinds/world/world-vars.d.ts.map +1 -1
- package/dist/generate/kinds/world/world-vars.js +6 -2
- package/dist/generate/kinds/world/world-vars.js.map +1 -1
- package/dist/generate/kinds/write-event-sourced-aggregate.d.ts.map +1 -1
- package/dist/generate/kinds/write-event-sourced-aggregate.js +9 -3
- package/dist/generate/kinds/write-event-sourced-aggregate.js.map +1 -1
- package/dist/generate/kinds-help.d.ts +1 -15
- package/dist/generate/kinds-help.d.ts.map +1 -1
- package/dist/generate/kinds-help.js +2 -16
- package/dist/generate/kinds-help.js.map +1 -1
- package/dist/generate/learn-terms.d.ts +4 -1
- package/dist/generate/learn-terms.d.ts.map +1 -1
- package/dist/generate/learn-terms.js +6 -2
- package/dist/generate/learn-terms.js.map +1 -1
- package/dist/generate/missing-prerequisite.d.ts +10 -0
- package/dist/generate/missing-prerequisite.d.ts.map +1 -0
- package/dist/generate/missing-prerequisite.js +10 -0
- package/dist/generate/missing-prerequisite.js.map +1 -0
- package/dist/generate/open-scope.d.ts.map +1 -1
- package/dist/generate/open-scope.js +9 -5
- package/dist/generate/open-scope.js.map +1 -1
- package/dist/generate/place-generated-files.d.ts.map +1 -1
- package/dist/generate/place-generated-files.js +2 -1
- package/dist/generate/place-generated-files.js.map +1 -1
- package/dist/generate/prerequisite-refusal.d.ts +8 -0
- package/dist/generate/prerequisite-refusal.d.ts.map +1 -0
- package/dist/generate/prerequisite-refusal.js +11 -0
- package/dist/generate/prerequisite-refusal.js.map +1 -0
- package/dist/generate/refresh-barrels.d.ts.map +1 -1
- package/dist/generate/refresh-barrels.js +4 -1
- package/dist/generate/refresh-barrels.js.map +1 -1
- package/dist/generate/refuse-undeclared-flags.d.ts +9 -0
- package/dist/generate/refuse-undeclared-flags.d.ts.map +1 -0
- package/dist/generate/refuse-undeclared-flags.js +34 -0
- package/dist/generate/refuse-undeclared-flags.js.map +1 -0
- package/dist/generate/require-file.d.ts.map +1 -1
- package/dist/generate/require-file.js +4 -3
- package/dist/generate/require-file.js.map +1 -1
- package/dist/generate/without-language-todo.d.ts +3 -0
- package/dist/generate/without-language-todo.d.ts.map +1 -0
- package/dist/generate/without-language-todo.js +7 -0
- package/dist/generate/without-language-todo.js.map +1 -0
- package/dist/generator-lock/held-lock-refusal.d.ts +5 -0
- package/dist/generator-lock/held-lock-refusal.d.ts.map +1 -0
- package/dist/generator-lock/held-lock-refusal.js +14 -0
- package/dist/generator-lock/held-lock-refusal.js.map +1 -0
- package/dist/generator-lock/holder-of.d.ts +9 -0
- package/dist/generator-lock/holder-of.d.ts.map +1 -0
- package/dist/generator-lock/holder-of.js +40 -0
- package/dist/generator-lock/holder-of.js.map +1 -0
- package/dist/generator-lock/index.d.ts +2 -0
- package/dist/generator-lock/index.d.ts.map +1 -0
- package/dist/generator-lock/index.js +2 -0
- package/dist/generator-lock/index.js.map +1 -0
- package/dist/generator-lock/is-same-holder.d.ts +4 -0
- package/dist/generator-lock/is-same-holder.d.ts.map +1 -0
- package/dist/generator-lock/is-same-holder.js +5 -0
- package/dist/generator-lock/is-same-holder.js.map +1 -0
- package/dist/generator-lock/is-stale.d.ts +9 -0
- package/dist/generator-lock/is-stale.d.ts.map +1 -0
- package/dist/generator-lock/is-stale.js +24 -0
- package/dist/generator-lock/is-stale.js.map +1 -0
- package/dist/generator-lock/lock-holder.d.ts +10 -0
- package/dist/generator-lock/lock-holder.d.ts.map +1 -0
- package/dist/generator-lock/lock-holder.js +2 -0
- package/dist/generator-lock/lock-holder.js.map +1 -0
- package/dist/generator-lock/lock-timing.d.ts +7 -0
- package/dist/generator-lock/lock-timing.d.ts.map +1 -0
- package/dist/generator-lock/lock-timing.js +2 -0
- package/dist/generator-lock/lock-timing.js.map +1 -0
- package/dist/generator-lock/own-lock.d.ts +18 -0
- package/dist/generator-lock/own-lock.d.ts.map +1 -0
- package/dist/generator-lock/own-lock.js +44 -0
- package/dist/generator-lock/own-lock.js.map +1 -0
- package/dist/generator-lock/remove-made-folder.d.ts +3 -0
- package/dist/generator-lock/remove-made-folder.d.ts.map +1 -0
- package/dist/generator-lock/remove-made-folder.js +14 -0
- package/dist/generator-lock/remove-made-folder.js.map +1 -0
- package/dist/generator-lock/remove-stale.d.ts +7 -0
- package/dist/generator-lock/remove-stale.d.ts.map +1 -0
- package/dist/generator-lock/remove-stale.js +23 -0
- package/dist/generator-lock/remove-stale.js.map +1 -0
- package/dist/generator-lock/with-generator-lock.d.ts +24 -0
- package/dist/generator-lock/with-generator-lock.d.ts.map +1 -0
- package/dist/generator-lock/with-generator-lock.js +69 -0
- package/dist/generator-lock/with-generator-lock.js.map +1 -0
- package/dist/help/command-help-data.d.ts +14 -0
- package/dist/help/command-help-data.d.ts.map +1 -0
- package/dist/help/command-help-data.js +15 -0
- package/dist/help/command-help-data.js.map +1 -0
- package/dist/help/command-help.d.ts +7 -0
- package/dist/help/command-help.d.ts.map +1 -0
- package/dist/help/command-help.js +21 -0
- package/dist/help/command-help.js.map +1 -0
- package/dist/help/flag-notes.d.ts +4 -0
- package/dist/help/flag-notes.d.ts.map +1 -0
- package/dist/help/flag-notes.js +112 -0
- package/dist/help/flag-notes.js.map +1 -0
- package/dist/help/help-for.d.ts +7 -0
- package/dist/help/help-for.d.ts.map +1 -0
- package/dist/help/help-for.js +37 -0
- package/dist/help/help-for.js.map +1 -0
- package/dist/help/kind-asked.d.ts +4 -0
- package/dist/help/kind-asked.d.ts.map +1 -0
- package/dist/help/kind-asked.js +6 -0
- package/dist/help/kind-asked.js.map +1 -0
- package/dist/help/kind-help-text.d.ts +4 -0
- package/dist/help/kind-help-text.d.ts.map +1 -0
- package/dist/help/kind-help-text.js +46 -0
- package/dist/help/kind-help-text.js.map +1 -0
- package/dist/help/kind-line.d.ts +4 -0
- package/dist/help/kind-line.d.ts.map +1 -0
- package/dist/help/kind-line.js +6 -0
- package/dist/help/kind-line.js.map +1 -0
- package/dist/help/note-lines.d.ts +4 -0
- package/dist/help/note-lines.d.ts.map +1 -0
- package/dist/help/note-lines.js +8 -0
- package/dist/help/note-lines.js.map +1 -0
- package/dist/help/note.d.ts +10 -0
- package/dist/help/note.d.ts.map +1 -0
- package/dist/help/note.js +2 -0
- package/dist/help/note.js.map +1 -0
- package/dist/help/notes.d.ts +3 -2
- package/dist/help/notes.d.ts.map +1 -1
- package/dist/help/notes.js +6 -318
- package/dist/help/notes.js.map +1 -1
- package/dist/help/reading-notes.d.ts +4 -0
- package/dist/help/reading-notes.d.ts.map +1 -0
- package/dist/help/reading-notes.js +150 -0
- package/dist/help/reading-notes.js.map +1 -0
- package/dist/help/reference-text.d.ts.map +1 -1
- package/dist/help/reference-text.js +4 -4
- package/dist/help/reference-text.js.map +1 -1
- package/dist/help/tool-notes.d.ts +4 -0
- package/dist/help/tool-notes.d.ts.map +1 -0
- package/dist/help/tool-notes.js +152 -0
- package/dist/help/tool-notes.js.map +1 -0
- package/dist/help/usage-for.d.ts +6 -0
- package/dist/help/usage-for.d.ts.map +1 -0
- package/dist/help/usage-for.js +16 -0
- package/dist/help/usage-for.js.map +1 -0
- package/dist/help/usage-lines-of.d.ts +3 -0
- package/dist/help/usage-lines-of.d.ts.map +1 -0
- package/dist/help/usage-lines-of.js +19 -0
- package/dist/help/usage-lines-of.js.map +1 -0
- package/dist/help/usage.d.ts +3 -1
- package/dist/help/usage.d.ts.map +1 -1
- package/dist/help/usage.js +10 -4
- package/dist/help/usage.js.map +1 -1
- package/dist/help/work-notes.d.ts +4 -0
- package/dist/help/work-notes.d.ts.map +1 -0
- package/dist/help/work-notes.js +197 -0
- package/dist/help/work-notes.js.map +1 -0
- package/dist/init/agent-permissions.d.ts.map +1 -1
- package/dist/init/agent-permissions.js +10 -1
- package/dist/init/agent-permissions.js.map +1 -1
- package/dist/init/forced-note.d.ts +4 -0
- package/dist/init/forced-note.d.ts.map +1 -0
- package/dist/init/forced-note.js +14 -0
- package/dist/init/forced-note.js.map +1 -0
- package/dist/init/ignore-worktrees.d.ts.map +1 -1
- package/dist/init/ignore-worktrees.js +7 -1
- package/dist/init/ignore-worktrees.js.map +1 -1
- package/dist/init/is-pipeline-definition.d.ts +3 -0
- package/dist/init/is-pipeline-definition.d.ts.map +1 -0
- package/dist/init/is-pipeline-definition.js +7 -0
- package/dist/init/is-pipeline-definition.js.map +1 -0
- package/dist/init/is-team-file.d.ts +9 -0
- package/dist/init/is-team-file.d.ts.map +1 -0
- package/dist/init/is-team-file.js +12 -0
- package/dist/init/is-team-file.js.map +1 -0
- package/dist/init/kept-combination-notes.d.ts +5 -0
- package/dist/init/kept-combination-notes.d.ts.map +1 -0
- package/dist/init/kept-combination-notes.js +18 -0
- package/dist/init/kept-combination-notes.js.map +1 -0
- package/dist/init/kept-or-merged.d.ts +11 -0
- package/dist/init/kept-or-merged.d.ts.map +1 -0
- package/dist/init/kept-or-merged.js +23 -0
- package/dist/init/kept-or-merged.js.map +1 -0
- package/dist/init/manifest/versions.js +24 -24
- package/dist/init/manifest/versions.js.map +1 -1
- package/dist/init/manifest/write-manifest.js +8 -0
- package/dist/init/manifest/write-manifest.js.map +1 -1
- package/dist/init/manifest/write-overrides.js +4 -0
- package/dist/init/manifest/write-overrides.js.map +1 -1
- package/dist/init/merged-ignore-files.d.ts +3 -0
- package/dist/init/merged-ignore-files.d.ts.map +1 -0
- package/dist/init/merged-ignore-files.js +3 -0
- package/dist/init/merged-ignore-files.js.map +1 -0
- package/dist/init/merged-ignore-lines.d.ts +9 -0
- package/dist/init/merged-ignore-lines.d.ts.map +1 -0
- package/dist/init/merged-ignore-lines.js +32 -0
- package/dist/init/merged-ignore-lines.js.map +1 -0
- package/dist/init/refuse-unprojected-root.d.ts +7 -0
- package/dist/init/refuse-unprojected-root.d.ts.map +1 -0
- package/dist/init/refuse-unprojected-root.js +31 -0
- package/dist/init/refuse-unprojected-root.js.map +1 -0
- package/dist/init/run-init.d.ts +3 -2
- package/dist/init/run-init.d.ts.map +1 -1
- package/dist/init/run-init.js +29 -9
- package/dist/init/run-init.js.map +1 -1
- package/dist/init/stack/http-cache-misfit.d.ts +4 -0
- package/dist/init/stack/http-cache-misfit.d.ts.map +1 -0
- package/dist/init/stack/http-cache-misfit.js +21 -0
- package/dist/init/stack/http-cache-misfit.js.map +1 -0
- package/dist/init/stack/resolve-stack.d.ts.map +1 -1
- package/dist/init/stack/resolve-stack.js +2 -1
- package/dist/init/stack/resolve-stack.js.map +1 -1
- package/dist/issues-url.d.ts +3 -0
- package/dist/issues-url.d.ts.map +1 -0
- package/dist/issues-url.js +3 -0
- package/dist/issues-url.js.map +1 -0
- package/dist/json/format-json.d.ts +2 -1
- package/dist/json/format-json.d.ts.map +1 -1
- package/dist/json/format-json.js +2 -1
- package/dist/json/format-json.js.map +1 -1
- package/dist/json/stdout-json.d.ts +7 -0
- package/dist/json/stdout-json.d.ts.map +1 -0
- package/dist/json/stdout-json.js +9 -0
- package/dist/json/stdout-json.js.map +1 -0
- package/dist/layout/fit-declaration.d.ts +2 -1
- package/dist/layout/fit-declaration.d.ts.map +1 -1
- package/dist/layout/fit-declaration.js +3 -2
- package/dist/layout/fit-declaration.js.map +1 -1
- package/dist/merge/is-derived-in-merge.d.ts.map +1 -1
- package/dist/merge/is-derived-in-merge.js +1 -2
- package/dist/merge/is-derived-in-merge.js.map +1 -1
- package/dist/merge/landed-point.js +1 -1
- package/dist/merge/landed-point.js.map +1 -1
- package/dist/merge/lost/in-progress-merge.js +1 -1
- package/dist/merge/lost/in-progress-merge.js.map +1 -1
- package/dist/merge/lost/merge-base-of.d.ts.map +1 -1
- package/dist/merge/lost/merge-base-of.js +6 -9
- package/dist/merge/lost/merge-base-of.js.map +1 -1
- package/dist/merge/lost/merge-of-record.d.ts.map +1 -1
- package/dist/merge/lost/merge-of-record.js +4 -9
- package/dist/merge/lost/merge-of-record.js.map +1 -1
- package/dist/merge/lost/merges-since.d.ts +1 -1
- package/dist/merge/lost/merges-since.d.ts.map +1 -1
- package/dist/merge/lost/merges-since.js +1 -1
- package/dist/merge/lost/merges-since.js.map +1 -1
- package/dist/merge/lost/since-of.d.ts +11 -2
- package/dist/merge/lost/since-of.d.ts.map +1 -1
- package/dist/merge/lost/since-of.js +17 -9
- package/dist/merge/lost/since-of.js.map +1 -1
- package/dist/merge/lost/verify-merge.js +1 -1
- package/dist/merge/lost/verify-merge.js.map +1 -1
- package/dist/merge/lost/verify-merges.d.ts +2 -0
- package/dist/merge/lost/verify-merges.d.ts.map +1 -1
- package/dist/merge/lost/verify-merges.js +8 -5
- package/dist/merge/lost/verify-merges.js.map +1 -1
- package/dist/merge/merge-exclusions.d.ts +3 -4
- package/dist/merge/merge-exclusions.d.ts.map +1 -1
- package/dist/merge/merge-exclusions.js +19 -19
- package/dist/merge/merge-exclusions.js.map +1 -1
- package/dist/merge/merge-state.d.ts.map +1 -1
- package/dist/merge/merge-state.js +2 -1
- package/dist/merge/merge-state.js.map +1 -1
- package/dist/merge/merge-steps.d.ts.map +1 -1
- package/dist/merge/merge-steps.js +0 -1
- package/dist/merge/merge-steps.js.map +1 -1
- package/dist/merge/merge-trunk.js +1 -1
- package/dist/merge/merge-trunk.js.map +1 -1
- package/dist/merge/resume-merge.js +1 -1
- package/dist/merge/resume-merge.js.map +1 -1
- package/dist/merge/sharing-branches.js +1 -1
- package/dist/merge/sharing-branches.js.map +1 -1
- package/dist/merge/trunk-of.d.ts.map +1 -1
- package/dist/merge/trunk-of.js +8 -5
- package/dist/merge/trunk-of.js.map +1 -1
- package/dist/migration/audit-guard/orm-tool-entry.d.ts +3 -0
- package/dist/migration/audit-guard/orm-tool-entry.d.ts.map +1 -0
- package/dist/migration/audit-guard/orm-tool-entry.js +12 -0
- package/dist/migration/audit-guard/orm-tool-entry.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 -7
- package/dist/migration/audit-guard/run-orm-tool.js.map +1 -1
- package/dist/migration/has-database-url.d.ts +3 -0
- package/dist/migration/has-database-url.d.ts.map +1 -0
- package/dist/migration/has-database-url.js +5 -0
- package/dist/migration/has-database-url.js.map +1 -0
- package/dist/migration/index.d.ts +4 -0
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +4 -0
- package/dist/migration/index.js.map +1 -1
- package/dist/migration/migration-name.d.ts +8 -0
- package/dist/migration/migration-name.d.ts.map +1 -0
- package/dist/migration/migration-name.js +14 -0
- package/dist/migration/migration-name.js.map +1 -0
- package/dist/migration/offline-prisma-migration.d.ts +18 -0
- package/dist/migration/offline-prisma-migration.d.ts.map +1 -0
- package/dist/migration/offline-prisma-migration.js +91 -0
- package/dist/migration/offline-prisma-migration.js.map +1 -0
- package/dist/migration/plan-replay.d.ts.map +1 -1
- package/dist/migration/plan-replay.js +3 -7
- package/dist/migration/plan-replay.js.map +1 -1
- package/dist/migration/run-on-in-process-database.d.ts +8 -0
- package/dist/migration/run-on-in-process-database.d.ts.map +1 -0
- package/dist/migration/run-on-in-process-database.js +55 -0
- package/dist/migration/run-on-in-process-database.js.map +1 -0
- package/dist/migration/tool-step.d.ts +8 -0
- package/dist/migration/tool-step.d.ts.map +1 -0
- package/dist/migration/tool-step.js +2 -0
- package/dist/migration/tool-step.js.map +1 -0
- package/dist/model-modules/declared-module.d.ts.map +1 -1
- package/dist/model-modules/declared-module.js +2 -2
- package/dist/model-modules/declared-module.js.map +1 -1
- package/dist/model-modules/declared-modules.d.ts.map +1 -1
- package/dist/model-modules/declared-modules.js +2 -1
- package/dist/model-modules/declared-modules.js.map +1 -1
- package/dist/model-modules/module-placement.d.ts.map +1 -1
- package/dist/model-modules/module-placement.js +2 -1
- package/dist/model-modules/module-placement.js.map +1 -1
- package/dist/naming/index.d.ts +1 -0
- package/dist/naming/index.d.ts.map +1 -1
- package/dist/naming/index.js +1 -0
- package/dist/naming/index.js.map +1 -1
- package/dist/naming/name.d.ts +1 -1
- package/dist/naming/name.d.ts.map +1 -1
- package/dist/naming/parse-context-name.d.ts +1 -0
- package/dist/naming/parse-context-name.d.ts.map +1 -1
- package/dist/naming/parse-context-name.js +5 -3
- package/dist/naming/parse-context-name.js.map +1 -1
- package/dist/naming/read-name.d.ts +8 -0
- package/dist/naming/read-name.d.ts.map +1 -0
- package/dist/naming/read-name.js +20 -0
- package/dist/naming/read-name.js.map +1 -0
- package/dist/nest-controllers/refresh-nest-controllers.d.ts.map +1 -1
- package/dist/nest-controllers/refresh-nest-controllers.js +4 -1
- package/dist/nest-controllers/refresh-nest-controllers.js.map +1 -1
- package/dist/plan/copy-of-project.d.ts +3 -0
- package/dist/plan/copy-of-project.d.ts.map +1 -0
- package/dist/plan/copy-of-project.js +43 -0
- package/dist/plan/copy-of-project.js.map +1 -0
- package/dist/plan/format-plan.d.ts +4 -3
- package/dist/plan/format-plan.d.ts.map +1 -1
- package/dist/plan/format-plan.js +48 -17
- package/dist/plan/format-plan.js.map +1 -1
- package/dist/plan/is-started.d.ts +4 -0
- package/dist/plan/is-started.d.ts.map +1 -0
- package/dist/plan/is-started.js +6 -0
- package/dist/plan/is-started.js.map +1 -0
- package/dist/plan/missing-dependencies.d.ts +10 -0
- package/dist/plan/missing-dependencies.d.ts.map +1 -0
- package/dist/plan/missing-dependencies.js +35 -0
- package/dist/plan/missing-dependencies.js.map +1 -0
- package/dist/plan/plan-problems.d.ts +4 -2
- package/dist/plan/plan-problems.d.ts.map +1 -1
- package/dist/plan/plan-problems.js +30 -2
- 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 +3 -3
- package/dist/plan/plan-waves.js.map +1 -1
- package/dist/plan/planned-words.d.ts +11 -23
- package/dist/plan/planned-words.d.ts.map +1 -1
- package/dist/plan/planned-words.js +50 -105
- package/dist/plan/planned-words.js.map +1 -1
- package/dist/plan/refused-command.d.ts +18 -0
- package/dist/plan/refused-command.d.ts.map +1 -0
- package/dist/plan/refused-command.js +109 -0
- package/dist/plan/refused-command.js.map +1 -0
- package/dist/plan/replay-plan.d.ts +27 -0
- package/dist/plan/replay-plan.d.ts.map +1 -0
- package/dist/plan/replay-plan.js +91 -0
- package/dist/plan/replay-plan.js.map +1 -0
- package/dist/plan/replay.d.ts +39 -0
- package/dist/plan/replay.d.ts.map +1 -0
- package/dist/plan/replay.js +52 -0
- package/dist/plan/replay.js.map +1 -0
- package/dist/plan/replayed-plan.d.ts +13 -0
- package/dist/plan/replayed-plan.d.ts.map +1 -0
- package/dist/plan/replayed-plan.js +17 -0
- package/dist/plan/replayed-plan.js.map +1 -0
- package/dist/plan/rows-to-plan.d.ts +1 -1
- package/dist/plan/rows-to-plan.d.ts.map +1 -1
- package/dist/plan/rows-to-plan.js +2 -1
- package/dist/plan/rows-to-plan.js.map +1 -1
- package/dist/plan/transitive-dependencies.d.ts +8 -0
- package/dist/plan/transitive-dependencies.d.ts.map +1 -0
- package/dist/plan/transitive-dependencies.js +26 -0
- package/dist/plan/transitive-dependencies.js.map +1 -0
- package/dist/plan/wave-plan.d.ts +55 -9
- package/dist/plan/wave-plan.d.ts.map +1 -1
- package/dist/platform-folders/placements.d.ts.map +1 -1
- package/dist/platform-folders/placements.js +17 -1
- package/dist/platform-folders/placements.js.map +1 -1
- package/dist/presets/apply-preset.d.ts.map +1 -1
- package/dist/presets/apply-preset.js +2 -2
- package/dist/presets/apply-preset.js.map +1 -1
- package/dist/presets/outside-the-tenancy.d.ts.map +1 -1
- package/dist/presets/outside-the-tenancy.js +3 -1
- package/dist/presets/outside-the-tenancy.js.map +1 -1
- package/dist/progress/format-progress.d.ts.map +1 -1
- package/dist/progress/format-progress.js +3 -2
- package/dist/progress/format-progress.js.map +1 -1
- package/dist/progress/slice.d.ts +7 -1
- package/dist/progress/slice.d.ts.map +1 -1
- package/dist/progress/slice.js +2 -1
- package/dist/progress/slice.js.map +1 -1
- package/dist/refusals/apply-plan.d.ts.map +1 -1
- package/dist/refusals/apply-plan.js +2 -1
- package/dist/refusals/apply-plan.js.map +1 -1
- package/dist/refuse-windows-shell.d.ts +17 -0
- package/dist/refuse-windows-shell.d.ts.map +1 -0
- package/dist/refuse-windows-shell.js +32 -0
- package/dist/refuse-windows-shell.js.map +1 -0
- package/dist/review/generated-file-kind.d.ts +13 -0
- package/dist/review/generated-file-kind.d.ts.map +1 -0
- package/dist/review/generated-file-kind.js +2 -0
- package/dist/review/generated-file-kind.js.map +1 -0
- package/dist/review/generated-files-named.d.ts +4 -0
- package/dist/review/generated-files-named.d.ts.map +1 -0
- package/dist/review/generated-files-named.js +8 -0
- package/dist/review/generated-files-named.js.map +1 -0
- package/dist/review/generated-files.d.ts +9 -0
- package/dist/review/generated-files.d.ts.map +1 -0
- package/dist/review/generated-files.js +20 -0
- package/dist/review/generated-files.js.map +1 -0
- package/dist/review/index.d.ts +3 -0
- package/dist/review/index.d.ts.map +1 -0
- package/dist/review/index.js +3 -0
- package/dist/review/index.js.map +1 -0
- package/dist/run.d.ts +5 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +62 -25
- package/dist/run.js.map +1 -1
- package/dist/slice/plan-staging.d.ts.map +1 -1
- package/dist/slice/plan-staging.js +2 -1
- package/dist/slice/plan-staging.js.map +1 -1
- package/dist/slice/run-script.d.ts.map +1 -1
- package/dist/slice/run-script.js +0 -1
- package/dist/slice/run-script.js.map +1 -1
- package/dist/slice/slice-to-verify.d.ts +3 -0
- package/dist/slice/slice-to-verify.d.ts.map +1 -1
- package/dist/slice/storage-of-slice.d.ts +1 -1
- package/dist/slice/storage-of-slice.d.ts.map +1 -1
- package/dist/slice/storage-of-slice.js.map +1 -1
- package/dist/slice/verification-file.d.ts.map +1 -1
- package/dist/slice/verification-file.js +2 -1
- package/dist/slice/verification-file.js.map +1 -1
- package/dist/slice/verify-slice.d.ts +1 -1
- package/dist/slice/verify-slice.d.ts.map +1 -1
- package/dist/slice/verify-slice.js +4 -4
- package/dist/slice/verify-slice.js.map +1 -1
- package/dist/stories/open-story-scope.js +4 -5
- package/dist/stories/open-story-scope.js.map +1 -1
- package/dist/stories/read-story-phases.js +1 -1
- package/dist/stories/read-story-phases.js.map +1 -1
- package/dist/stories/story-scope-file.d.ts.map +1 -1
- package/dist/stories/story-scope-file.js +2 -1
- package/dist/stories/story-scope-file.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/worker/add-worktree.d.ts +2 -1
- package/dist/worker/add-worktree.d.ts.map +1 -1
- package/dist/worker/add-worktree.js +2 -1
- package/dist/worker/add-worktree.js.map +1 -1
- package/dist/worker/agent-file.d.ts.map +1 -1
- package/dist/worker/agent-file.js +2 -1
- package/dist/worker/agent-file.js.map +1 -1
- package/dist/worker/base-of.d.ts +6 -1
- package/dist/worker/base-of.d.ts.map +1 -1
- package/dist/worker/base-of.js +4 -8
- package/dist/worker/base-of.js.map +1 -1
- package/dist/worker/branch-standing.js +1 -1
- package/dist/worker/branch-standing.js.map +1 -1
- package/dist/worker/briefing-of.d.ts.map +1 -1
- package/dist/worker/briefing-of.js +2 -1
- package/dist/worker/briefing-of.js.map +1 -1
- package/dist/worker/ensure-contains-base.d.ts +4 -2
- package/dist/worker/ensure-contains-base.d.ts.map +1 -1
- package/dist/worker/ensure-contains-base.js +4 -3
- package/dist/worker/ensure-contains-base.js.map +1 -1
- package/dist/worker/install-dependencies.d.ts.map +1 -1
- package/dist/worker/install-dependencies.js +0 -1
- package/dist/worker/install-dependencies.js.map +1 -1
- package/dist/worker/open-worker-scope.d.ts.map +1 -1
- package/dist/worker/open-worker-scope.js +22 -16
- package/dist/worker/open-worker-scope.js.map +1 -1
- package/dist/worker/report-file.d.ts.map +1 -1
- package/dist/worker/report-file.js +2 -1
- package/dist/worker/report-file.js.map +1 -1
- package/dist/workspace/disk-writes.d.ts +10 -0
- package/dist/workspace/disk-writes.d.ts.map +1 -0
- package/dist/workspace/disk-writes.js +2 -0
- package/dist/workspace/disk-writes.js.map +1 -0
- package/dist/workspace/files-git-does-not-hold.d.ts +7 -0
- package/dist/workspace/files-git-does-not-hold.d.ts.map +1 -0
- package/dist/workspace/files-git-does-not-hold.js +28 -0
- package/dist/workspace/files-git-does-not-hold.js.map +1 -0
- package/dist/workspace/gist-of.d.ts +9 -0
- package/dist/workspace/gist-of.d.ts.map +1 -0
- package/dist/workspace/gist-of.js +55 -0
- package/dist/workspace/gist-of.js.map +1 -0
- package/dist/workspace/index.d.ts +1 -0
- package/dist/workspace/index.d.ts.map +1 -1
- package/dist/workspace/index.js.map +1 -1
- package/dist/workspace/is-language-step.d.ts +4 -0
- package/dist/workspace/is-language-step.d.ts.map +1 -0
- package/dist/workspace/is-language-step.js +5 -0
- package/dist/workspace/is-language-step.js.map +1 -0
- package/dist/workspace/kit-folder.d.ts +5 -0
- package/dist/workspace/kit-folder.d.ts.map +1 -0
- package/dist/workspace/kit-folder.js +5 -0
- package/dist/workspace/kit-folder.js.map +1 -0
- package/dist/workspace/leaving-project.d.ts +14 -0
- package/dist/workspace/leaving-project.d.ts.map +1 -0
- package/dist/workspace/leaving-project.js +17 -0
- package/dist/workspace/leaving-project.js.map +1 -0
- package/dist/workspace/names-on-disk.d.ts +4 -0
- package/dist/workspace/names-on-disk.d.ts.map +1 -0
- package/dist/workspace/names-on-disk.js +15 -0
- package/dist/workspace/names-on-disk.js.map +1 -0
- package/dist/workspace/real-path-of.d.ts +12 -0
- package/dist/workspace/real-path-of.d.ts.map +1 -0
- package/dist/workspace/real-path-of.js +59 -0
- package/dist/workspace/real-path-of.js.map +1 -0
- package/dist/workspace/real-root-of.d.ts +3 -0
- package/dist/workspace/real-root-of.d.ts.map +1 -0
- package/dist/workspace/real-root-of.js +7 -0
- package/dist/workspace/real-root-of.js.map +1 -0
- package/dist/workspace/refuse-leaving.d.ts +8 -0
- package/dist/workspace/refuse-leaving.d.ts.map +1 -0
- package/dist/workspace/refuse-leaving.js +26 -0
- package/dist/workspace/refuse-leaving.js.map +1 -0
- package/dist/workspace/refuse-unheld.d.ts +10 -0
- package/dist/workspace/refuse-unheld.d.ts.map +1 -0
- package/dist/workspace/refuse-unheld.js +56 -0
- package/dist/workspace/refuse-unheld.js.map +1 -0
- package/dist/workspace/todo-place.d.ts +10 -0
- package/dist/workspace/todo-place.d.ts.map +1 -0
- package/dist/workspace/todo-place.js +2 -0
- package/dist/workspace/todo-place.js.map +1 -0
- package/dist/workspace/workspace-report.d.ts +5 -3
- package/dist/workspace/workspace-report.d.ts.map +1 -1
- package/dist/workspace/workspace.d.ts +17 -7
- package/dist/workspace/workspace.d.ts.map +1 -1
- package/dist/workspace/workspace.js +46 -49
- package/dist/workspace/workspace.js.map +1 -1
- package/dist/workspace/write-if-allowed.d.ts +16 -2
- package/dist/workspace/write-if-allowed.d.ts.map +1 -1
- package/dist/workspace/write-if-allowed.js +64 -4
- package/dist/workspace/write-if-allowed.js.map +1 -1
- package/dist/workspace/written-of.d.ts +18 -0
- package/dist/workspace/written-of.d.ts.map +1 -0
- package/dist/workspace/written-of.js +15 -0
- package/dist/workspace/written-of.js.map +1 -0
- package/dist/worktree/open-worktree.js +2 -2
- package/dist/worktree/open-worktree.js.map +1 -1
- package/package.json +5 -4
- package/templates/adapter/simulated.spec.ts.tpl +3 -3
- package/templates/aggregate/aggregate.spec.ts.tpl +17 -5
- package/templates/aggregate/aggregate.ts.tpl +12 -8
- package/templates/aggregate/event-sourced.aggregate.spec.ts.tpl +8 -8
- package/templates/aggregate/event-sourced.aggregate.ts.tpl +5 -5
- package/templates/background-job/background-job.declared.ts.tpl +14 -11
- package/templates/background-job/background-job.spec.buses.ts.tpl +17 -2
- package/templates/background-job/background-job.spec.tsyringe.ts.tpl +16 -0
- package/templates/background-job/background-job.ts.tpl +14 -11
- package/templates/builder/builder.ts.tpl +19 -5
- package/templates/builder/event-sourced.builder.ts.tpl +5 -5
- package/templates/command/handler.declared.ts.tpl +8 -5
- package/templates/command/handler.spec.buses.ts.tpl +35 -22
- package/templates/command/handler.spec.tsyringe.ts.tpl +30 -13
- package/templates/command/handler.ts.tpl +8 -5
- package/templates/controller/controller.class-validator.ts.tpl +11 -0
- package/templates/controller/controller.spec.ts.tpl +29 -34
- package/templates/controller/controller.standard-schema.ts.tpl +16 -0
- package/templates/controller/controller.typebox.ts.tpl +12 -0
- package/templates/controller/controller.zod.ts.tpl +12 -0
- package/templates/domain-event/domain-event.spec.ts.tpl +1 -1
- package/templates/domain-service/domain-service.spec.ts.tpl +3 -3
- package/templates/entity/entity.spec.ts.tpl +1 -1
- package/templates/error/case.spec.ts.tpl +0 -1
- package/templates/error/refusal-case.spec.ts.tpl +0 -1
- package/templates/event-handler/event-handler.declared.ts.tpl +8 -1
- package/templates/event-handler/event-handler.spec.ts.tpl +19 -25
- package/templates/event-handler/event-handler.ts.tpl +8 -1
- package/templates/event-handler/wiring.manual.tpl +1 -1
- package/templates/event-handler/wiring.tsyringe.tpl +2 -2
- package/templates/file-upload/controller.spec.ts.tpl +8 -30
- package/templates/init/AGENTS.md.tpl +5 -5
- package/templates/init/README.md.tpl +23 -1
- package/templates/init/REVIEW.md.tpl +1 -1
- package/templates/init/docker/docker-compose.yml.tpl +10 -8
- package/templates/init/docker/dockerignore.tpl +3 -0
- package/templates/init/docker/env.example.tpl +16 -1
- package/templates/init/e2e/jest.e2e.config.js.tpl +11 -1
- package/templates/init/gitignore.tpl +3 -0
- package/templates/init/platform/auth/authentication/actor-of-token.ts.tpl +2 -2
- package/templates/init/platform/auth/authentication/bearer-strategy.ts.tpl +34 -3
- package/templates/init/platform/config/app-config.ts.tpl +15 -0
- package/templates/init/platform/config/load-config.ts.tpl +66 -0
- package/templates/init/platform/database/data-source.typeorm.ts.tpl +2 -0
- package/templates/init/platform/database/prisma.config.ts.tpl +5 -1
- package/templates/init/platform/http/start-http-server.express.ts.tpl +14 -8
- package/templates/init/platform/http/start-http-server.fastify.ts.tpl +16 -3
- package/templates/init/platform/http/start-http-server.hono.ts.tpl +22 -3
- package/templates/init/platform/http/start-http-server.nest.ts.tpl +20 -8
- package/templates/init/platform/http/too-many-requests-for.ts.tpl +2 -2
- package/templates/init/platform/jobs/background-jobs.ts.tpl +3 -2
- package/templates/init/platform/jobs/create-background-work.ts.tpl +1 -0
- package/templates/init/rules/application.md.tpl +2 -2
- package/templates/integration-event/payload.class-validator.ts.tpl +2 -2
- package/templates/integration-handler/integration-handler.spec.ts.tpl +12 -17
- package/templates/job/job.spec.buses.ts.tpl +15 -2
- package/templates/job/job.spec.tsyringe.ts.tpl +36 -9
- package/templates/nest-controller/controller.spec.ts.tpl +36 -35
- package/templates/nest-controller/controller.ts.tpl +6 -0
- package/templates/nest-controller/upload.spec.ts.tpl +9 -30
- package/templates/pipeline/github/actions/setup/action.yml.tpl +2 -2
- package/templates/pipeline/github/workflows/ci.yml.tpl +20 -20
- package/templates/pipeline/github/workflows/codeql.yml +3 -3
- package/templates/pipeline/github/workflows/copilot-setup-steps.yml +1 -1
- package/templates/pipeline/github/workflows/intent-to-spec.yml +1 -1
- package/templates/pipeline/github/workflows/pr-title.yml +1 -1
- package/templates/pipeline/lefthook.yml +9 -4
- package/templates/pipeline/package-scripts.json +1 -1
- package/templates/pipeline/renovate.json +6 -1
- package/templates/policy/policy.spec.declared.ts.tpl +1 -1
- package/templates/policy/policy.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/accounts/deactivate-account/deactivate-account.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/accounts/provision-account/provision-account.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/accounts/provision-account/provision-account.body.class-validator.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/invitations/accept-invitation/accept-invitation.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/invitations/accept-invitation/accept-invitation.body.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/invitations/decline-invitation/decline-invitation.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/invitations/decline-invitation/decline-invitation.body.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/change-member-role/change-member-role.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/change-member-role/change-member-role.body.class-validator.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/change-member-role/change-member-role.params.class-validator.ts.tpl +2 -2
- package/templates/presets/identity/context/presentation/http/organisations/grant-delegation/grant-delegation.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/grant-delegation/grant-delegation.body.class-validator.ts.tpl +4 -4
- package/templates/presets/identity/context/presentation/http/organisations/grant-delegation/grant-delegation.params.class-validator.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/invite-member/invite-member.accepted.class-validator.ts.tpl +2 -2
- package/templates/presets/identity/context/presentation/http/organisations/invite-member/invite-member.body.class-validator.ts.tpl +2 -2
- package/templates/presets/identity/context/presentation/http/organisations/invite-member/invite-member.params.class-validator.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/open-organisation/open-organisation.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/open-organisation/open-organisation.body.class-validator.ts.tpl +2 -2
- package/templates/presets/identity/context/presentation/http/organisations/remove-member/remove-member.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/remove-member/remove-member.params.class-validator.ts.tpl +2 -2
- package/templates/presets/identity/context/presentation/http/organisations/revoke-delegation/revoke-delegation.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/revoke-delegation/revoke-delegation.params.class-validator.ts.tpl +2 -2
- package/templates/presets/identity/context/presentation/http/organisations/revoke-invitation/revoke-invitation.accepted.class-validator.per-route.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/organisations/revoke-invitation/revoke-invitation.params.class-validator.ts.tpl +2 -2
- package/templates/presets/identity/context/presentation/http/organisations/search-members/search-members.line.class-validator.ts.tpl +6 -6
- package/templates/presets/identity/context/presentation/http/organisations/search-members/search-members.params.class-validator.ts.tpl +1 -1
- package/templates/presets/identity/context/presentation/http/shared/invitation-token.schema.class-validator.shared.ts.tpl +1 -1
- package/templates/presets/identity/context/published-language/account-deactivated.v1.payload.class-validator.ts.tpl +1 -1
- package/templates/presets/identity/context/published-language/delegation-granted.v1.payload.class-validator.ts.tpl +7 -7
- package/templates/presets/identity/context/published-language/delegation-revoked.v1.payload.class-validator.ts.tpl +4 -4
- package/templates/presets/identity/context/published-language/member-joined.v1.payload.class-validator.ts.tpl +4 -4
- package/templates/presets/identity/context/published-language/member-removed.v1.payload.class-validator.ts.tpl +4 -4
- package/templates/presets/identity/context/published-language/member-role-changed.v1.payload.class-validator.ts.tpl +6 -6
- package/templates/presets/identity/context/published-language/organisation-opened.v1.payload.class-validator.ts.tpl +3 -3
- package/templates/presets/identity/context/test/unit/accept-invitation.controller.spec.kit-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/accept-invitation.controller.spec.nest-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/change-member-role.controller.spec.kit-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/change-member-role.controller.spec.nest-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/deactivate-account.controller.spec.kit-routes.ts.tpl +10 -21
- package/templates/presets/identity/context/test/unit/deactivate-account.controller.spec.nest-routes.ts.tpl +10 -21
- package/templates/presets/identity/context/test/unit/decline-invitation.controller.spec.kit-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/decline-invitation.controller.spec.nest-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/delegation-period.vo.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/display-name.vo.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/email-address.vo.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/grant-delegation.controller.spec.kit-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/grant-delegation.controller.spec.nest-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/invite-member.controller.spec.kit-routes.ts.tpl +16 -28
- package/templates/presets/identity/context/test/unit/invite-member.controller.spec.nest-routes.ts.tpl +16 -28
- package/templates/presets/identity/context/test/unit/open-organisation.controller.spec.kit-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/open-organisation.controller.spec.nest-routes.ts.tpl +13 -28
- package/templates/presets/identity/context/test/unit/organisation-name.vo.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/organisation-rights.vo.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/organisation-slug.vo.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/provision-account.controller.spec.kit-routes.ts.tpl +19 -42
- package/templates/presets/identity/context/test/unit/provision-account.controller.spec.nest-routes.ts.tpl +19 -42
- package/templates/presets/identity/context/test/unit/remove-member.controller.spec.kit-routes.ts.tpl +10 -21
- package/templates/presets/identity/context/test/unit/remove-member.controller.spec.nest-routes.ts.tpl +10 -21
- package/templates/presets/identity/context/test/unit/revoke-delegation.controller.spec.kit-routes.ts.tpl +10 -21
- package/templates/presets/identity/context/test/unit/revoke-delegation.controller.spec.nest-routes.ts.tpl +10 -21
- package/templates/presets/identity/context/test/unit/revoke-invitation.controller.spec.kit-routes.ts.tpl +10 -21
- package/templates/presets/identity/context/test/unit/revoke-invitation.controller.spec.nest-routes.ts.tpl +10 -21
- package/templates/presets/identity/context/test/unit/role-rights.service.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/search-members.controller.spec.kit-routes.ts.tpl +7 -18
- package/templates/presets/identity/context/test/unit/search-members.controller.spec.nest-routes.ts.tpl +8 -17
- package/templates/process/timeout-job.declared.ts.tpl +9 -1
- package/templates/process/timeout-job.spec.buses.ts.tpl +5 -1
- package/templates/process/timeout-job.ts.tpl +9 -1
- package/templates/projection/projection.spec.ts.tpl +7 -5
- package/templates/property/value-object.properties.spec.ts.tpl +1 -1
- package/templates/query/handler.spec.buses.ts.tpl +25 -19
- package/templates/query/handler.spec.tsyringe.ts.tpl +30 -10
- package/templates/query/reader.fake.ts.tpl +6 -4
- package/templates/query/reader.in-memory.ts.tpl +1 -1
- package/templates/query/search.handler.spec.buses.ts.tpl +22 -19
- package/templates/query/search.handler.spec.tsyringe.ts.tpl +25 -12
- package/templates/repository/drizzle/mapper.ts.tpl +1 -1
- package/templates/repository/drizzle/schema.ts.tpl +1 -1
- package/templates/repository/drizzle/table.tpl +3 -2
- package/templates/repository/event-sourced/contract.spec.ts.tpl +2 -2
- package/templates/repository/knex/mapper.ts.tpl +2 -3
- package/templates/repository/knex/row.ts.tpl +0 -1
- package/templates/repository/knex/table.tpl +0 -1
- package/templates/repository/prisma/mapper.ts.tpl +1 -1
- package/templates/repository/prisma/model.tpl +0 -1
- package/templates/repository/typeorm/mapper.ts.tpl +1 -1
- package/templates/repository/typeorm/row.ts.tpl +0 -1
- package/templates/repository/typeorm/table.tpl +0 -2
- package/templates/route/dto.accepted.ts.tpl +1 -1
- package/templates/route/dto.answer.ts.tpl +1 -1
- package/templates/route/dto.body.ts.tpl +10 -1
- package/templates/route/dto.line.ts.tpl +2 -2
- package/templates/route/route.class-validator.ts.tpl +17 -3
- package/templates/route/route.spec.ts.tpl +29 -28
- package/templates/route/route.standard-schema.ts.tpl +24 -5
- package/templates/route/route.typebox.ts.tpl +18 -3
- package/templates/route/route.zod.ts.tpl +18 -3
- package/templates/schema/schema.class-validator.ts.tpl +1 -1
- package/templates/test-world/world.buses.ts.tpl +7 -1
- package/templates/test-world/world.tsyringe.ts.tpl +20 -1
- package/templates/value-object/value-object.spec.ts.tpl +2 -2
- package/dist/generate/kinds/find-event-declaration.d.ts +0 -5
- package/dist/generate/kinds/find-event-declaration.d.ts.map +0 -1
- package/dist/generate/kinds/find-event-declaration.js +0 -18
- package/dist/generate/kinds/find-event-declaration.js.map +0 -1
- package/dist/merge/lost/commit-of.d.ts +0 -3
- package/dist/merge/lost/commit-of.d.ts.map +0 -1
- package/dist/merge/lost/commit-of.js +0 -6
- package/dist/merge/lost/commit-of.js.map +0 -1
|
@@ -4,12 +4,12 @@ import { {{event.pascal}} } from '{{alias.context}}/domain/events/{{event.kebab}
|
|
|
4
4
|
export type {{name.pascal}}Event = {{event.pascal}};
|
|
5
5
|
|
|
6
6
|
export interface {{name.pascal}}State {
|
|
7
|
-
readonly
|
|
7
|
+
readonly {{event.instant}}: Date;
|
|
8
8
|
// TODO(domain): declare the rest of the state of {{name.pascal}} with value objects (a Money, a Period), not primitives: what its commands need to decide, nothing more.
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export class {{name.pascal}} extends EventSourcedAggregate<{{name.pascal}}Event, {{name.pascal}}State> {
|
|
12
|
-
private state: {{name.pascal}}State = {
|
|
12
|
+
private state: {{name.pascal}}State = { {{event.instant}}: new Date(0) };
|
|
13
13
|
|
|
14
14
|
private constructor(id: string) {
|
|
15
15
|
super(id);
|
|
@@ -40,8 +40,8 @@ export class {{name.pascal}} extends EventSourcedAggregate<{{name.pascal}}Event,
|
|
|
40
40
|
|
|
41
41
|
// TODO(domain): add one method per business intention: it checks its invariants on `this.state`, then records what it decided, `this.record(new {{name.pascal}}<Fact>(this.id, now, ...))`, after `ddd-ts-kit generate domain-event {{context.kebab}} {{name.pascal}} <Fact>` added the event and its apply method. It never writes the state itself (event-sourcing/state-in-apply).
|
|
42
42
|
|
|
43
|
-
get
|
|
44
|
-
return this.state.
|
|
43
|
+
get {{event.instant}}(): Date {
|
|
44
|
+
return this.state.{{event.instant}};
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
toState(): {{name.pascal}}State {
|
|
@@ -59,6 +59,6 @@ export class {{name.pascal}} extends EventSourcedAggregate<{{name.pascal}}Event,
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
private apply{{event.fact}}(event: {{event.pascal}}): void {
|
|
62
|
-
this.state = { ...this.state,
|
|
62
|
+
this.state = { ...this.state, {{event.instant}}: event.occurredAt };
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
{{#if job.hasLibraryImports}}
|
|
2
|
+
{{job.libraryImports}}
|
|
3
|
+
{{/if}}
|
|
4
|
+
{{job.kernelImport}}
|
|
2
5
|
import { Background } from '@ddd-ts-kit/kernel/declarations';
|
|
6
|
+
{{#if job.hasKitImports}}
|
|
7
|
+
{{job.kitImports}}
|
|
8
|
+
{{/if}}
|
|
3
9
|
import { {{job.command}}Command } from '{{alias.context}}/application/commands/{{job.commandKebab}}/{{job.commandKebab}}.command{{alias.ext}}';
|
|
4
10
|
|
|
5
|
-
{{
|
|
6
|
-
/** What "{{name.words}}" works on, as plain JSON: a date travels as its ISO text. */
|
|
7
|
-
export interface {{name.pascal}}Payload {
|
|
8
|
-
{{job.payloadFields}}
|
|
9
|
-
}
|
|
10
|
-
{{/if}}
|
|
11
|
-
{{#unless job.hasPayload}}
|
|
12
|
-
// TODO(domain): declare what "{{name.words}}" works on (identifiers, a period, never an aggregate), as plain JSON: a date travels as its ISO text.
|
|
13
|
-
export type {{name.pascal}}Payload = Readonly<Record<string, never>>;
|
|
14
|
-
{{/unless}}
|
|
11
|
+
{{job.payloadDeclaration}}
|
|
15
12
|
|
|
16
13
|
@Background()
|
|
17
14
|
export class {{name.pascal}}BackgroundJob implements BackgroundJob<{{name.pascal}}Payload> {
|
|
18
15
|
static readonly jobName = '{{job.name}}';
|
|
19
16
|
|
|
17
|
+
static readonly payload = {{job.payloadSchema}};
|
|
18
|
+
|
|
20
19
|
constructor(private readonly commands: CommandBus) {}
|
|
21
20
|
|
|
22
21
|
async run(payload: {{name.pascal}}Payload, execution: BackgroundJobExecution): Promise<void> {
|
|
@@ -24,3 +23,7 @@ export class {{name.pascal}}BackgroundJob implements BackgroundJob<{{name.pascal
|
|
|
24
23
|
await this.commands.execute(new {{job.command}}Command({{job.arguments}}));
|
|
25
24
|
}
|
|
26
25
|
}
|
|
26
|
+
{{#if job.hasPayloadHelpers}}
|
|
27
|
+
|
|
28
|
+
{{job.payloadHelpers}}
|
|
29
|
+
{{/if}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describe, expect, it } from '{{tests.module}}';
|
|
2
2
|
import type { BackgroundJob, Message } from '@ddd-ts-kit/kernel';
|
|
3
3
|
import { InMemoryJobStore, QueueWorker, StoredJobQueue } from '@ddd-ts-kit/scheduling';
|
|
4
|
-
import { createTestBuses } from '@ddd-ts-kit/testing';
|
|
4
|
+
import { createTestBuses, earlierVersionOf } from '@ddd-ts-kit/testing';
|
|
5
5
|
import { {{job.command}}Command } from '{{alias.context}}/application/commands/{{job.commandKebab}}/{{job.commandKebab}}.command{{alias.ext}}';
|
|
6
6
|
{{job.specImport}}
|
|
7
7
|
|
|
@@ -29,6 +29,17 @@ describe('{{name.title}}, once enqueued', () => {
|
|
|
29
29
|
{{/if}}
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
+
it('never runs a payload enqueued in an earlier shape: the job is dead with INVALID_JOB_PAYLOAD', async () => {
|
|
33
|
+
const { jobQueue, worker, sent } = arrange();
|
|
34
|
+
const earlierVersion = earlierVersionOf({{name.pascal}}BackgroundJob);
|
|
35
|
+
|
|
36
|
+
await jobQueue.enqueue(earlierVersion, {{job.misfit}});
|
|
37
|
+
|
|
38
|
+
expect(await worker.runDue()).toMatchObject([{ job: '{{job.name}}', outcome: 'dead', errorCode: 'INVALID_JOB_PAYLOAD' }]);
|
|
39
|
+
|
|
40
|
+
expect(sent).toHaveLength(0);
|
|
41
|
+
});
|
|
42
|
+
|
|
32
43
|
// TODO(domain): replace each entry below by a test of what "{{name.words}}" asks of the use case: a run may be a retry, and a long one resumes from its checkpoint.
|
|
33
44
|
it.todo('has the same outcome when the same job runs twice');
|
|
34
45
|
it.todo('resumes from its checkpoint after an interrupted attempt');
|
|
@@ -43,7 +54,11 @@ function arrange() {
|
|
|
43
54
|
const job: BackgroundJob<unknown> = new {{name.pascal}}BackgroundJob(commandBus);
|
|
44
55
|
const sent: Message[] = [];
|
|
45
56
|
|
|
46
|
-
worker.register({
|
|
57
|
+
worker.register({
|
|
58
|
+
name: {{name.pascal}}BackgroundJob.jobName,
|
|
59
|
+
payload: {{name.pascal}}BackgroundJob.payload,
|
|
60
|
+
run: (payload, execution) => job.run(payload, execution),
|
|
61
|
+
});
|
|
47
62
|
|
|
48
63
|
commandBus.register({{job.command}}Command, {
|
|
49
64
|
execute: () => Promise.reject(new Error('{{job.command}}Command is recorded before it reaches a handler')),
|
|
@@ -4,6 +4,7 @@ import { authorizationModule } from '@ddd-ts-kit/auth/di';
|
|
|
4
4
|
{{spec.diPlain}}
|
|
5
5
|
{{spec.contextImports}}
|
|
6
6
|
import type { Actor, Message } from '@ddd-ts-kit/kernel';
|
|
7
|
+
import { earlierVersionOf } from '@ddd-ts-kit/testing';
|
|
7
8
|
import { platformTestModule } from '{{alias.platform}}/composition/platform-test.module{{alias.ext}}';
|
|
8
9
|
{{job.permissionsImport}}
|
|
9
10
|
import { {{job.command}}Command } from '{{alias.context}}/application/commands/{{job.commandKebab}}/{{job.commandKebab}}.command{{alias.ext}}';
|
|
@@ -39,6 +40,21 @@ describe('{{name.title}}, once enqueued', () => {
|
|
|
39
40
|
{{/if}}
|
|
40
41
|
});
|
|
41
42
|
|
|
43
|
+
it('never runs a payload enqueued in an earlier shape: the job is dead with INVALID_JOB_PAYLOAD', async () => {
|
|
44
|
+
const { application, sent } = {{spec.await}}arrange();
|
|
45
|
+
const earlierVersion = earlierVersionOf({{name.pascal}}BackgroundJob);
|
|
46
|
+
|
|
47
|
+
await application.as(clerk, () => application.jobQueue.enqueue(earlierVersion, {{job.misfit}}));
|
|
48
|
+
|
|
49
|
+
await expect(application.backgroundJobs.runDue()).rejects.toMatchObject({
|
|
50
|
+
code: 'INVALID_JOB_PAYLOAD',
|
|
51
|
+
job: '{{job.name}}',
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
expect(sent).toHaveLength(0);
|
|
55
|
+
expect(application.backgroundJobs.store.list()).toMatchObject([{ status: 'dead', lastErrorCode: 'INVALID_JOB_PAYLOAD' }]);
|
|
56
|
+
});
|
|
57
|
+
|
|
42
58
|
// TODO(domain): replace each entry below by a test of what "{{name.words}}" asks of the use case: a run may be a retry, and a long one resumes from its checkpoint.
|
|
43
59
|
it.todo('has the same outcome when the same job runs twice');
|
|
44
60
|
it.todo('resumes from its checkpoint after an interrupted attempt');
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
{{#if job.hasLibraryImports}}
|
|
2
|
+
{{job.libraryImports}}
|
|
3
|
+
{{/if}}
|
|
4
|
+
{{job.kernelImport}}
|
|
5
|
+
{{#if job.hasKitImports}}
|
|
6
|
+
{{job.kitImports}}
|
|
7
|
+
{{/if}}
|
|
2
8
|
import { {{job.command}}Command } from '{{alias.context}}/application/commands/{{job.commandKebab}}/{{job.commandKebab}}.command{{alias.ext}}';
|
|
3
9
|
|
|
4
|
-
{{
|
|
5
|
-
/** What "{{name.words}}" works on, as plain JSON: a date travels as its ISO text. */
|
|
6
|
-
export interface {{name.pascal}}Payload {
|
|
7
|
-
{{job.payloadFields}}
|
|
8
|
-
}
|
|
9
|
-
{{/if}}
|
|
10
|
-
{{#unless job.hasPayload}}
|
|
11
|
-
// TODO(domain): declare what "{{name.words}}" works on (identifiers, a period, never an aggregate), as plain JSON: a date travels as its ISO text.
|
|
12
|
-
export type {{name.pascal}}Payload = Readonly<Record<string, never>>;
|
|
13
|
-
{{/unless}}
|
|
10
|
+
{{job.payloadDeclaration}}
|
|
14
11
|
|
|
15
12
|
export class {{name.pascal}}BackgroundJob implements BackgroundJob<{{name.pascal}}Payload> {
|
|
16
13
|
static readonly jobName = '{{job.name}}';
|
|
17
14
|
|
|
15
|
+
static readonly payload = {{job.payloadSchema}};
|
|
16
|
+
|
|
18
17
|
constructor(private readonly commands: CommandBus) {}
|
|
19
18
|
|
|
20
19
|
async run(payload: {{name.pascal}}Payload, execution: BackgroundJobExecution): Promise<void> {
|
|
@@ -22,3 +21,7 @@ export class {{name.pascal}}BackgroundJob implements BackgroundJob<{{name.pascal
|
|
|
22
21
|
await this.commands.execute(new {{job.command}}Command({{job.arguments}}));
|
|
23
22
|
}
|
|
24
23
|
}
|
|
24
|
+
{{#if job.hasPayloadHelpers}}
|
|
25
|
+
|
|
26
|
+
{{job.payloadHelpers}}
|
|
27
|
+
{{/if}}
|
|
@@ -3,7 +3,9 @@ import { {{aggregate.pascal}} } from '{{alias.context}}/domain/aggregates/{{aggr
|
|
|
3
3
|
|
|
4
4
|
interface {{aggregate.pascal}}Ingredients {
|
|
5
5
|
readonly id: string;
|
|
6
|
-
|
|
6
|
+
{{#if birth.named}}
|
|
7
|
+
readonly {{birth.instant}}: Date;
|
|
8
|
+
{{/if}}
|
|
7
9
|
// TODO(domain): add one ingredient per fact a test may need to choose (a customer, lines, a status reached), each with a valid default below; for the ones no rule depends on, draw the default with `generated((faker) => ...)` of @ddd-ts-kit/testing/faker.
|
|
8
10
|
}
|
|
9
11
|
|
|
@@ -12,18 +14,30 @@ export class {{aggregate.pascal}}Builder extends Builder<{{aggregate.pascal}}Ing
|
|
|
12
14
|
return this.with('id', id);
|
|
13
15
|
}
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
{{#if birth.named}}
|
|
18
|
+
{{birth.instant}}(instant: Date): this {
|
|
19
|
+
return this.with('{{birth.instant}}', instant);
|
|
17
20
|
}
|
|
18
21
|
|
|
22
|
+
{{/if}}
|
|
19
23
|
// TODO(domain): add one method per state a test needs, named in the ubiquitous language and never after a field, for example `issued(): this { return this.with('issued', true); }`, and replay it in `construct` through the public API of {{aggregate.pascal}}.
|
|
20
24
|
|
|
21
25
|
protected defaults(): Defaults<{{aggregate.pascal}}Ingredients> {
|
|
22
|
-
|
|
26
|
+
{{#if birth.named}}
|
|
27
|
+
return { id: sequence('{{aggregate.kebab}}'), {{birth.instant}}: new Date('2026-01-01T00:00:00.000Z') };
|
|
28
|
+
{{/if}}
|
|
29
|
+
{{#unless birth.named}}
|
|
30
|
+
return { id: sequence('{{aggregate.kebab}}') };
|
|
31
|
+
{{/unless}}
|
|
23
32
|
}
|
|
24
33
|
|
|
25
34
|
protected construct(ingredients: {{aggregate.pascal}}Ingredients): {{aggregate.pascal}} {
|
|
26
|
-
|
|
35
|
+
{{#if birth.named}}
|
|
36
|
+
return {{aggregate.pascal}}.create(ingredients.id, ingredients.{{birth.instant}});
|
|
37
|
+
{{/if}}
|
|
38
|
+
{{#unless birth.named}}
|
|
39
|
+
return {{aggregate.pascal}}.create(ingredients.id, new Date('2026-01-01T00:00:00.000Z'));
|
|
40
|
+
{{/unless}}
|
|
27
41
|
}
|
|
28
42
|
}
|
|
29
43
|
|
|
@@ -4,7 +4,7 @@ import { {{event.pascal}} } from '{{alias.context}}/domain/events/{{event.kebab}
|
|
|
4
4
|
|
|
5
5
|
interface {{aggregate.pascal}}Ingredients {
|
|
6
6
|
readonly id: string;
|
|
7
|
-
readonly
|
|
7
|
+
readonly {{event.instant}}: Date;
|
|
8
8
|
// TODO(domain): add one ingredient per fact a test may need to choose, each with a valid default below.
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -14,19 +14,19 @@ export class {{aggregate.pascal}}Builder extends Builder<{{aggregate.pascal}}Ing
|
|
|
14
14
|
return this.with('id', id);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
return this.with('
|
|
17
|
+
{{event.instant}}(instant: Date): this {
|
|
18
|
+
return this.with('{{event.instant}}', instant);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// TODO(domain): add one method per state a test needs, named in the ubiquitous language, and add the events that reach it to the history replayed in `construct`.
|
|
22
22
|
|
|
23
23
|
protected defaults(): Defaults<{{aggregate.pascal}}Ingredients> {
|
|
24
|
-
return { id: sequence('{{aggregate.kebab}}'),
|
|
24
|
+
return { id: sequence('{{aggregate.kebab}}'), {{event.instant}}: new Date('2026-01-01T00:00:00.000Z') };
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
protected construct(ingredients: {{aggregate.pascal}}Ingredients): {{aggregate.pascal}} {
|
|
28
28
|
return {{aggregate.pascal}}.rehydrate(ingredients.id, {
|
|
29
|
-
events: [new {{event.pascal}}(ingredients.id, ingredients.
|
|
29
|
+
events: [new {{event.pascal}}(ingredients.id, ingredients.{{event.instant}})],
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -29,13 +29,13 @@ export class {{name.pascal}}Handler implements CommandHandler<{{name.pascal}}Com
|
|
|
29
29
|
|
|
30
30
|
{{/if}}
|
|
31
31
|
{{#if refusals.named}}
|
|
32
|
-
// TODO(domain): decide what "{{name.words}}" does to
|
|
32
|
+
// TODO(domain): decide what "{{name.words}}" does to {{aggregate.article}} {{aggregate.pascal}}: either it gives birth to one (keep `create`, pass the facts of `command` as value objects), or it changes an existing one (load it with `findById`, throw its refusal when there is none, `Unknown{{aggregate.pascal}}.for{{aggregate.pascal}}(id)` (`ddd-ts-kit generate error {{context.kebab}} Unknown{{aggregate.pascal}} for{{aggregate.pascal}}`), call ONE intention method). The events it records leave with the save: nothing else to do here.
|
|
33
33
|
{{/if}}
|
|
34
34
|
{{#if refusals.factories}}
|
|
35
|
-
// TODO(domain): decide what "{{name.words}}" does to
|
|
35
|
+
// TODO(domain): decide what "{{name.words}}" does to {{aggregate.article}} {{aggregate.pascal}}: either it gives birth to one (keep `create`, pass the facts of `command` as value objects), or it changes an existing one (load it with `findById`, throw its not-found refusal, `{{aggregate.pascal}}Error.notFound(id)` (`ddd-ts-kit generate error {{context.kebab}} {{aggregate.pascal}} notFound`), call ONE intention method). The events it records leave with the save: nothing else to do here.
|
|
36
36
|
{{/if}}
|
|
37
37
|
{{#if refusals.classes}}
|
|
38
|
-
// TODO(domain): decide what "{{name.words}}" does to
|
|
38
|
+
// TODO(domain): decide what "{{name.words}}" does to {{aggregate.article}} {{aggregate.pascal}}: either it gives birth to one (keep `create`, pass the facts of `command` as value objects), or it changes an existing one (load it with `findById`, throw a not-found DomainError, call ONE intention method). The events it records leave with the save: nothing else to do here.
|
|
39
39
|
{{/if}}
|
|
40
40
|
const {{aggregate.camel}} = {{aggregate.pascal}}.create(this.ids.next(), this.clock.now());
|
|
41
41
|
|
|
@@ -58,12 +58,15 @@ import { {{name.pascal}}Command } from '{{alias.context}}/application/commands/{
|
|
|
58
58
|
|
|
59
59
|
@CommandHandler({{name.pascal}}Command)
|
|
60
60
|
export class {{name.pascal}}Handler implements CommandHandler<{{name.pascal}}Command> {
|
|
61
|
+
{{#if access.policy}}
|
|
61
62
|
constructor(
|
|
62
63
|
private readonly {{aggregate.camel}}Repository: {{aggregate.pascal}}Repository,
|
|
63
|
-
{{#if access.policy}}
|
|
64
64
|
private readonly access: Access,
|
|
65
|
-
{{/if}}
|
|
66
65
|
) {}
|
|
66
|
+
{{/if}}
|
|
67
|
+
{{#unless access.policy}}
|
|
68
|
+
constructor(private readonly {{aggregate.camel}}Repository: {{aggregate.pascal}}Repository) {}
|
|
69
|
+
{{/unless}}
|
|
67
70
|
|
|
68
71
|
async execute(command: {{name.pascal}}Command): Promise<void> {
|
|
69
72
|
{{#if access.policy}}
|
|
@@ -1,48 +1,43 @@
|
|
|
1
1
|
import { describe, expect, it } from '{{tests.module}}';
|
|
2
2
|
{{#if access.protected}}
|
|
3
3
|
{{#if access.policy}}
|
|
4
|
-
import { AuthorizationMap, PolicyAccess,
|
|
4
|
+
import { AuthorizationMap, PolicyAccess, authorizationMiddleware, requires } from '@ddd-ts-kit/auth';
|
|
5
5
|
{{/if}}
|
|
6
6
|
{{#unless access.policy}}
|
|
7
|
-
import { AuthorizationMap,
|
|
7
|
+
import { AuthorizationMap, authorizationMiddleware, requires } from '@ddd-ts-kit/auth';
|
|
8
8
|
{{/unless}}
|
|
9
|
-
import { anActor } from '@ddd-ts-kit/auth/testing';
|
|
9
|
+
import { anActor, holdersOf } from '@ddd-ts-kit/auth/testing';
|
|
10
10
|
{{/if}}
|
|
11
|
+
{{#unless world.through}}
|
|
11
12
|
import { createTestBuses } from '@ddd-ts-kit/testing';
|
|
13
|
+
{{/unless}}
|
|
12
14
|
{{#if access.protected}}
|
|
13
15
|
import { {{context.camel}}Permissions } from '{{alias.context}}/{{context.kebab}}.permissions{{alias.ext}}';
|
|
14
16
|
{{/if}}
|
|
15
17
|
import { {{name.pascal}}Command } from '{{alias.context}}/application/commands/{{name.kebab}}/{{name.kebab}}.command{{alias.ext}}';
|
|
16
18
|
import { {{name.pascal}}Handler } from '{{alias.context}}/application/commands/{{name.kebab}}/{{name.kebab}}.handler{{alias.ext}}';
|
|
19
|
+
{{#unless world.through}}
|
|
17
20
|
{{#if command.hasAggregate}}
|
|
18
21
|
import { Fake{{aggregate.pascal}}Repository } from '{{alias.context}}/test/fakes/{{aggregate.kebab}}.repository.fake{{alias.ext}}';
|
|
19
22
|
{{/if}}
|
|
23
|
+
{{/unless}}
|
|
24
|
+
{{#if world.through}}
|
|
25
|
+
{{world.import}}
|
|
26
|
+
{{/if}}
|
|
20
27
|
{{#if access.protected}}
|
|
21
28
|
|
|
22
|
-
{{
|
|
23
|
-
const authorizer = new RoleBasedAuthorizer({ roles: { holder: [{{context.camel}}Permissions['{{access.permission}}']] } });
|
|
29
|
+
const { holder, authorizer } = holdersOf({{context.camel}}Permissions['{{access.permission}}']);
|
|
24
30
|
|
|
25
31
|
const holders = authorizationMiddleware({
|
|
26
32
|
authorizer,
|
|
27
33
|
map: AuthorizationMap.of(requires({{name.pascal}}Command, {{context.camel}}Permissions['{{access.permission}}'])),
|
|
28
34
|
});
|
|
29
35
|
{{/if}}
|
|
30
|
-
{{#unless access.policy}}
|
|
31
|
-
const holders = authorizationMiddleware({
|
|
32
|
-
authorizer: new RoleBasedAuthorizer({
|
|
33
|
-
roles: { holder: [{{context.camel}}Permissions['{{access.permission}}']] },
|
|
34
|
-
}),
|
|
35
|
-
map: AuthorizationMap.of(requires({{name.pascal}}Command, {{context.camel}}Permissions['{{access.permission}}'])),
|
|
36
|
-
});
|
|
37
|
-
{{/unless}}
|
|
38
|
-
|
|
39
|
-
const holder = anActor().withRole('holder').build();
|
|
40
|
-
{{/if}}
|
|
41
36
|
|
|
42
37
|
describe('{{name.title}}', () => {
|
|
43
38
|
{{#if command.births}}
|
|
44
39
|
it('saves the {{aggregate.words}} and answers its identifier', async () => {
|
|
45
|
-
const { commandBus, {{aggregate.camel}}Repository } = arrange();
|
|
40
|
+
const { commandBus, {{aggregate.camel}}Repository } = {{world.await}}arrange();
|
|
46
41
|
|
|
47
42
|
const id = await commandBus.execute(new {{name.pascal}}Command({{access.holder}}));
|
|
48
43
|
|
|
@@ -52,7 +47,7 @@ describe('{{name.title}}', () => {
|
|
|
52
47
|
{{/if}}
|
|
53
48
|
{{#unless command.births}}
|
|
54
49
|
it('completes without answering anything', async () => {
|
|
55
|
-
const { commandBus } = arrange();
|
|
50
|
+
const { commandBus } = {{world.await}}arrange();
|
|
56
51
|
const command = new {{name.pascal}}Command({{access.holder}});
|
|
57
52
|
|
|
58
53
|
await expect(commandBus.execute(command)).resolves.toBeUndefined();
|
|
@@ -61,7 +56,7 @@ describe('{{name.title}}', () => {
|
|
|
61
56
|
{{#if access.protected}}
|
|
62
57
|
|
|
63
58
|
it('is refused to an actor who does not hold the permission {{access.permission}}', async () => {
|
|
64
|
-
const { commandBus } = arrange();
|
|
59
|
+
const { commandBus } = {{world.await}}arrange();
|
|
65
60
|
const command = new {{name.pascal}}Command(anActor().build());
|
|
66
61
|
|
|
67
62
|
await expect(commandBus.execute(command)).rejects.toMatchObject({ code: 'FORBIDDEN' });
|
|
@@ -69,23 +64,31 @@ describe('{{name.title}}', () => {
|
|
|
69
64
|
{{/if}}
|
|
70
65
|
|
|
71
66
|
{{#if command.hasAggregate}}
|
|
72
|
-
// TODO(domain): replace each entry below by a test named after the business behaviour of "{{name.words}}": arrange with the builders of test/builders and the fakes, execute through the bus, assert the stored {{aggregate.words}}, the facts announced with the save (`domainEvents.on('<name>', ...)` registered in `arrange`) and the answer
|
|
67
|
+
// TODO(domain): replace each entry below by a test named after the business behaviour of "{{name.words}}": arrange with the builders of test/builders and the fakes, execute through the bus, assert the stored {{aggregate.words}}, the facts announced with the save (`domainEvents.on('<name>', ...)` registered in `arrange`) and the answer.
|
|
73
68
|
it.todo('applies the business decision to the {{aggregate.words}}');
|
|
74
69
|
{{/if}}
|
|
75
70
|
{{#unless command.hasAggregate}}
|
|
76
|
-
// TODO(domain): replace each entry below by a test named after the business behaviour of "{{name.words}}": arrange with builders and fakes of its ports, execute through the bus, assert the outcome
|
|
71
|
+
// TODO(domain): replace each entry below by a test named after the business behaviour of "{{name.words}}": arrange with builders and fakes of its ports, execute through the bus, assert the outcome.
|
|
77
72
|
it.todo('applies the business decision to the aggregate');
|
|
78
73
|
{{/unless}}
|
|
79
74
|
it.todo('refuses the command when a business rule is violated, with the expected error code');
|
|
80
75
|
it.todo('saves and publishes nothing when the command is refused');
|
|
81
76
|
});
|
|
82
77
|
|
|
83
|
-
|
|
78
|
+
{{#unless world.through}}
|
|
79
|
+
{{world.comment}}
|
|
80
|
+
{{/unless}}
|
|
81
|
+
{{world.async}}function arrange() {
|
|
84
82
|
{{#if command.hasAggregate}}
|
|
83
|
+
{{#if world.through}}
|
|
84
|
+
const { commandBus, {{#if command.births}}clock, ids, {{/if}}{{#unless command.births}}{{#if access.policy}}clock, {{/if}}{{/unless}}domainEvents, {{aggregate.camel}}Repository } = await {{world.builder}}({{world.options}});
|
|
85
|
+
{{/if}}
|
|
86
|
+
{{#unless world.through}}
|
|
85
87
|
const { commandBus, {{#if command.births}}clock, ids, {{/if}}{{#unless command.births}}{{#if access.policy}}clock, {{/if}}{{/unless}}dispatching, domainEvents } = createTestBuses({ idPrefix: '{{aggregate.kebab}}' });
|
|
86
88
|
// As the application hands it to the handler: the save announces the events of the {{aggregate.words}} to `domainEvents`.
|
|
87
89
|
const {{aggregate.camel}}Repository = dispatching(new Fake{{aggregate.pascal}}Repository());
|
|
88
90
|
|
|
91
|
+
{{/unless}}
|
|
89
92
|
const handler = new {{name.pascal}}Handler({{aggregate.camel}}Repository{{#if command.births}}, ids, clock{{/if}}{{#if access.policy}}, new PolicyAccess({ authorizer, clock }){{/if}});
|
|
90
93
|
|
|
91
94
|
commandBus{{spec.guard}}.register({{name.pascal}}Command, handler);
|
|
@@ -94,13 +97,23 @@ function arrange() {
|
|
|
94
97
|
{{/if}}
|
|
95
98
|
{{#unless command.hasAggregate}}
|
|
96
99
|
{{#if access.policy}}
|
|
100
|
+
{{#if world.through}}
|
|
101
|
+
const { commandBus, clock } = await {{world.builder}}({{world.options}});
|
|
102
|
+
{{/if}}
|
|
103
|
+
{{#unless world.through}}
|
|
97
104
|
const { commandBus, clock } = createTestBuses();
|
|
105
|
+
{{/unless}}
|
|
98
106
|
const handler = new {{name.pascal}}Handler(new PolicyAccess({ authorizer, clock }));
|
|
99
107
|
|
|
100
108
|
commandBus{{spec.guard}}.register({{name.pascal}}Command, handler);
|
|
101
109
|
{{/if}}
|
|
102
110
|
{{#unless access.policy}}
|
|
111
|
+
{{#if world.through}}
|
|
112
|
+
const { commandBus } = await {{world.builder}}({{world.options}});
|
|
113
|
+
{{/if}}
|
|
114
|
+
{{#unless world.through}}
|
|
103
115
|
const { commandBus } = createTestBuses();
|
|
116
|
+
{{/unless}}
|
|
104
117
|
|
|
105
118
|
commandBus{{spec.guard}}.register({{name.pascal}}Command, new {{name.pascal}}Handler());
|
|
106
119
|
{{/unless}}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { describe, expect, it } from '{{tests.module}}';
|
|
2
|
+
{{#unless world.through}}
|
|
3
|
+
{{#if access.public}}
|
|
2
4
|
import { RoleBasedAuthorizer } from '@ddd-ts-kit/auth';
|
|
3
5
|
import { authorizationModule } from '@ddd-ts-kit/auth/di';
|
|
6
|
+
{{/if}}
|
|
7
|
+
{{/unless}}
|
|
4
8
|
{{#if access.protected}}
|
|
5
|
-
import {
|
|
9
|
+
import { authorizationModule } from '@ddd-ts-kit/auth/di';
|
|
10
|
+
import { anActor, holdersOf } from '@ddd-ts-kit/auth/testing';
|
|
6
11
|
{{/if}}
|
|
12
|
+
{{#unless world.through}}
|
|
7
13
|
{{#if command.hasAggregate}}
|
|
8
14
|
{{spec.diWithFake}}
|
|
9
15
|
{{/if}}
|
|
@@ -12,33 +18,36 @@ import { anActor } from '@ddd-ts-kit/auth/testing';
|
|
|
12
18
|
{{/unless}}
|
|
13
19
|
{{spec.contextImports}}
|
|
14
20
|
import { platformTestModule } from '{{alias.platform}}/composition/platform-test.module{{alias.ext}}';
|
|
21
|
+
{{/unless}}
|
|
15
22
|
{{#if access.protected}}
|
|
16
23
|
import { {{context.camel}}Permissions } from '{{alias.context}}/{{context.kebab}}.permissions{{alias.ext}}';
|
|
17
24
|
{{/if}}
|
|
18
25
|
import { {{name.pascal}}Command } from '{{alias.context}}/application/commands/{{name.kebab}}/{{name.kebab}}.command{{alias.ext}}';
|
|
26
|
+
{{#unless world.through}}
|
|
19
27
|
{{#if command.hasAggregate}}
|
|
20
28
|
import { {{aggregate.pascal}}Repository } from '{{alias.context}}/domain/repositories/{{aggregate.kebab}}.repository{{alias.ext}}';
|
|
21
29
|
import { Fake{{aggregate.pascal}}Repository } from '{{alias.context}}/test/fakes/{{aggregate.kebab}}.repository.fake{{alias.ext}}';
|
|
22
30
|
{{/if}}
|
|
31
|
+
{{/unless}}
|
|
32
|
+
{{#if world.through}}
|
|
33
|
+
{{world.import}}
|
|
34
|
+
{{/if}}
|
|
23
35
|
{{#if access.protected}}
|
|
24
36
|
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
roles: { holder: [{{context.camel}}Permissions['{{access.permission}}']] },
|
|
28
|
-
}),
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
const holder = anActor().withRole('holder').build();
|
|
37
|
+
const { holder, authorizer } = holdersOf({{context.camel}}Permissions['{{access.permission}}']);
|
|
38
|
+
const holders = authorizationModule({ authorizer });
|
|
32
39
|
{{/if}}
|
|
40
|
+
{{#unless world.through}}
|
|
33
41
|
{{#if access.public}}
|
|
34
42
|
|
|
35
43
|
const authorization = authorizationModule({ authorizer: new RoleBasedAuthorizer({ roles: {} }) });
|
|
36
44
|
{{/if}}
|
|
45
|
+
{{/unless}}
|
|
37
46
|
|
|
38
47
|
describe('{{name.title}}', () => {
|
|
39
48
|
{{#if command.births}}
|
|
40
49
|
it('saves the {{aggregate.words}} and answers its identifier', async () => {
|
|
41
|
-
const { application, {{aggregate.camel}}Repository } = {{
|
|
50
|
+
const { application, {{aggregate.camel}}Repository } = {{world.await}}arrange();
|
|
42
51
|
|
|
43
52
|
const id = await application.commandBus.execute(new {{name.pascal}}Command({{access.holder}}));
|
|
44
53
|
|
|
@@ -48,7 +57,7 @@ describe('{{name.title}}', () => {
|
|
|
48
57
|
{{/if}}
|
|
49
58
|
{{#unless command.births}}
|
|
50
59
|
it('completes without answering anything', async () => {
|
|
51
|
-
const { application } = {{
|
|
60
|
+
const { application } = {{world.await}}arrange();
|
|
52
61
|
const command = new {{name.pascal}}Command({{access.holder}});
|
|
53
62
|
|
|
54
63
|
await expect(application.commandBus.execute(command)).resolves.toBeUndefined();
|
|
@@ -57,7 +66,7 @@ describe('{{name.title}}', () => {
|
|
|
57
66
|
{{#if access.protected}}
|
|
58
67
|
|
|
59
68
|
it('is refused to an actor who does not hold the permission {{access.permission}}', async () => {
|
|
60
|
-
const { application } = {{
|
|
69
|
+
const { application } = {{world.await}}arrange();
|
|
61
70
|
const command = new {{name.pascal}}Command(anActor().build());
|
|
62
71
|
|
|
63
72
|
await expect(application.commandBus.execute(command)).rejects.toMatchObject({ code: 'FORBIDDEN' });
|
|
@@ -65,17 +74,24 @@ describe('{{name.title}}', () => {
|
|
|
65
74
|
{{/if}}
|
|
66
75
|
|
|
67
76
|
{{#if command.hasAggregate}}
|
|
68
|
-
// TODO(domain): replace each entry below by a test named after the business behaviour of "{{name.words}}": arrange with the builders of test/builders and the fakes, execute through the bus, assert the stored {{aggregate.words}}, the facts announced with the save (`application.domainEvents.on('<name>', ...)` before executing), `application.eventBus.published` and the answer
|
|
77
|
+
// TODO(domain): replace each entry below by a test named after the business behaviour of "{{name.words}}": arrange with the builders of test/builders and the fakes, execute through the bus, assert the stored {{aggregate.words}}, the facts announced with the save (`application.domainEvents.on('<name>', ...)` before executing), `application.eventBus.published` and the answer.
|
|
69
78
|
it.todo('applies the business decision to the {{aggregate.words}}');
|
|
70
79
|
{{/if}}
|
|
71
80
|
{{#unless command.hasAggregate}}
|
|
72
|
-
// TODO(domain): replace each entry below by a test named after the business behaviour of "{{name.words}}": arrange with builders and fakes of its ports (`fakes: [fake(Port, aFake)]`), execute through the bus, assert the outcome
|
|
81
|
+
// TODO(domain): replace each entry below by a test named after the business behaviour of "{{name.words}}": arrange with builders and fakes of its ports (`fakes: [fake(Port, aFake)]`), execute through the bus, assert the outcome.
|
|
73
82
|
it.todo('applies the business decision to the aggregate');
|
|
74
83
|
{{/unless}}
|
|
75
84
|
it.todo('refuses the command when a business rule is violated, with the expected error code');
|
|
76
85
|
it.todo('saves and publishes nothing when the command is refused');
|
|
77
86
|
});
|
|
78
87
|
|
|
88
|
+
{{#if world.through}}
|
|
89
|
+
async function arrange() {
|
|
90
|
+
return {{world.builder}}({{world.options}});
|
|
91
|
+
}
|
|
92
|
+
{{/if}}
|
|
93
|
+
{{#unless world.through}}
|
|
94
|
+
{{world.comment}}
|
|
79
95
|
{{spec.async}}function arrange() {
|
|
80
96
|
{{#if spec.assembles}}
|
|
81
97
|
const context = {{spec.context}};
|
|
@@ -100,3 +116,4 @@ describe('{{name.title}}', () => {
|
|
|
100
116
|
return { application };
|
|
101
117
|
{{/unless}}
|
|
102
118
|
}
|
|
119
|
+
{{/unless}}
|
|
@@ -27,13 +27,13 @@ export class {{name.pascal}}Handler implements CommandHandler<{{name.pascal}}Com
|
|
|
27
27
|
|
|
28
28
|
{{/if}}
|
|
29
29
|
{{#if refusals.named}}
|
|
30
|
-
// TODO(domain): decide what "{{name.words}}" does to
|
|
30
|
+
// TODO(domain): decide what "{{name.words}}" does to {{aggregate.article}} {{aggregate.pascal}}: either it gives birth to one (keep `create`, pass the facts of `command` as value objects), or it changes an existing one (load it with `findById`, throw its refusal when there is none, `Unknown{{aggregate.pascal}}.for{{aggregate.pascal}}(id)` (`ddd-ts-kit generate error {{context.kebab}} Unknown{{aggregate.pascal}} for{{aggregate.pascal}}`), call ONE intention method). The events it records leave with the save: nothing else to do here.
|
|
31
31
|
{{/if}}
|
|
32
32
|
{{#if refusals.factories}}
|
|
33
|
-
// TODO(domain): decide what "{{name.words}}" does to
|
|
33
|
+
// TODO(domain): decide what "{{name.words}}" does to {{aggregate.article}} {{aggregate.pascal}}: either it gives birth to one (keep `create`, pass the facts of `command` as value objects), or it changes an existing one (load it with `findById`, throw its not-found refusal, `{{aggregate.pascal}}Error.notFound(id)` (`ddd-ts-kit generate error {{context.kebab}} {{aggregate.pascal}} notFound`), call ONE intention method). The events it records leave with the save: nothing else to do here.
|
|
34
34
|
{{/if}}
|
|
35
35
|
{{#if refusals.classes}}
|
|
36
|
-
// TODO(domain): decide what "{{name.words}}" does to
|
|
36
|
+
// TODO(domain): decide what "{{name.words}}" does to {{aggregate.article}} {{aggregate.pascal}}: either it gives birth to one (keep `create`, pass the facts of `command` as value objects), or it changes an existing one (load it with `findById`, throw a not-found DomainError, call ONE intention method). The events it records leave with the save: nothing else to do here.
|
|
37
37
|
{{/if}}
|
|
38
38
|
const {{aggregate.camel}} = {{aggregate.pascal}}.create(this.ids.next(), this.clock.now());
|
|
39
39
|
|
|
@@ -55,12 +55,15 @@ import type { {{aggregate.pascal}}Repository } from '{{alias.context}}/domain/re
|
|
|
55
55
|
import type { {{name.pascal}}Command } from '{{alias.context}}/application/commands/{{name.kebab}}/{{name.kebab}}.command{{alias.ext}}';
|
|
56
56
|
|
|
57
57
|
export class {{name.pascal}}Handler implements CommandHandler<{{name.pascal}}Command> {
|
|
58
|
+
{{#if access.policy}}
|
|
58
59
|
constructor(
|
|
59
60
|
private readonly {{aggregate.camel}}Repository: {{aggregate.pascal}}Repository,
|
|
60
|
-
{{#if access.policy}}
|
|
61
61
|
private readonly access: Access,
|
|
62
|
-
{{/if}}
|
|
63
62
|
) {}
|
|
63
|
+
{{/if}}
|
|
64
|
+
{{#unless access.policy}}
|
|
65
|
+
constructor(private readonly {{aggregate.camel}}Repository: {{aggregate.pascal}}Repository) {}
|
|
66
|
+
{{/unless}}
|
|
64
67
|
|
|
65
68
|
async execute(command: {{name.pascal}}Command): Promise<void> {
|
|
66
69
|
{{#if access.policy}}
|
|
@@ -9,8 +9,13 @@ import { classSchema } from '@ddd-ts-kit/validation/class-validator';
|
|
|
9
9
|
const params = classSchema({{name.pascal}}Params);
|
|
10
10
|
{{/if}}
|
|
11
11
|
{{#if route.hasBody}}
|
|
12
|
+
{{#if route.writesBody}}
|
|
13
|
+
{{route.bodyDeclaration}}
|
|
14
|
+
{{/if}}
|
|
15
|
+
{{#unless route.writesBody}}
|
|
12
16
|
// TODO(domain): once {{name.pascal}}Body has its decorated fields, drop the second argument: it only lets a class without any decorated field through.
|
|
13
17
|
const body = classSchema({{name.pascal}}Body, { validator: { forbidUnknownValues: false } });
|
|
18
|
+
{{/unless}}
|
|
14
19
|
{{/if}}
|
|
15
20
|
{{#if route.ownAccepted}}
|
|
16
21
|
const accepted = classSchema({{name.pascal}}Accepted);
|
|
@@ -54,8 +59,10 @@ export class {{name.pascal}}Controller {
|
|
|
54
59
|
{{#if route.isQuery}}
|
|
55
60
|
async handle({{route.requestParam}}): Promise<{{route.answerType}}> {
|
|
56
61
|
{{#unless route.mapper}}
|
|
62
|
+
{{#unless route.readsMessage}}
|
|
57
63
|
// TODO(domain): build the query from `request` (params, query string); the actor is already there.
|
|
58
64
|
{{/unless}}
|
|
65
|
+
{{/unless}}
|
|
59
66
|
{{#if route.serializer}}
|
|
60
67
|
return this.serializer.serialize(await this.{{route.bus}}.execute({{route.message}}));
|
|
61
68
|
{{/if}}
|
|
@@ -70,8 +77,10 @@ export class {{name.pascal}}Controller {
|
|
|
70
77
|
{{#if route.returnsId}}
|
|
71
78
|
async handle({{route.requestParam}}): Promise<{{route.acceptedType}}> {
|
|
72
79
|
{{#unless route.mapper}}
|
|
80
|
+
{{#unless route.readsMessage}}
|
|
73
81
|
// TODO(domain): build the command from `request` (body, params); the actor is already there.
|
|
74
82
|
{{/unless}}
|
|
83
|
+
{{/unless}}
|
|
75
84
|
const id = await this.{{route.bus}}.execute({{route.message}});
|
|
76
85
|
|
|
77
86
|
return { id };
|
|
@@ -80,8 +89,10 @@ export class {{name.pascal}}Controller {
|
|
|
80
89
|
{{#if route.returnsNothing}}
|
|
81
90
|
async handle({{route.requestParam}}): Promise<void> {
|
|
82
91
|
{{#unless route.mapper}}
|
|
92
|
+
{{#unless route.readsMessage}}
|
|
83
93
|
// TODO(domain): build the command from `request` (body, params); the actor is already there.
|
|
84
94
|
{{/unless}}
|
|
95
|
+
{{/unless}}
|
|
85
96
|
await this.{{route.bus}}.execute({{route.message}});
|
|
86
97
|
}
|
|
87
98
|
{{/if}}
|