ddd-ts-kit 0.86.0 → 0.88.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/README.fr.md +38 -39
- package/README.md +38 -37
- package/dist/check/canonical/earlier-context-file.d.ts +15 -0
- package/dist/check/canonical/earlier-context-file.d.ts.map +1 -0
- package/dist/check/canonical/earlier-context-file.js +33 -0
- package/dist/check/canonical/earlier-context-file.js.map +1 -0
- package/dist/check/canonical/stray-entry.d.ts.map +1 -1
- package/dist/check/canonical/stray-entry.js +11 -9
- package/dist/check/canonical/stray-entry.js.map +1 -1
- package/dist/check/configuration/module-problems.js +2 -2
- package/dist/check/configuration/module-problems.js.map +1 -1
- package/dist/check/errors/code-list.d.ts +1 -1
- package/dist/check/errors/code-list.d.ts.map +1 -1
- package/dist/check/errors/is-codes-file.d.ts +1 -1
- package/dist/check/errors/is-codes-file.d.ts.map +1 -1
- package/dist/check/errors/is-codes-file.js +1 -1
- package/dist/check/errors/is-codes-file.js.map +1 -1
- package/dist/check/explain/errors-docs.js +5 -5
- package/dist/check/explain/errors-docs.js.map +1 -1
- package/dist/check/explain/language-docs.js +1 -1
- package/dist/check/explain/language-docs.js.map +1 -1
- package/dist/check/explain/layout-docs.js +1 -1
- package/dist/check/explain/layout-docs.js.map +1 -1
- package/dist/check/explain/module-docs.d.ts.map +1 -1
- package/dist/check/explain/module-docs.js +16 -12
- package/dist/check/explain/module-docs.js.map +1 -1
- package/dist/check/explain/tree-docs.js +2 -2
- package/dist/check/explain/tree-docs.js.map +1 -1
- package/dist/check/explain/wiring-docs.d.ts.map +1 -1
- package/dist/check/explain/wiring-docs.js +8 -7
- package/dist/check/explain/wiring-docs.js.map +1 -1
- package/dist/check/fixtures/authz-granted-fixtures.js +2 -2
- package/dist/check/fixtures/authz-granted-fixtures.js.map +1 -1
- package/dist/check/fixtures/authz-policy-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/authz-policy-fixtures.js +3 -3
- package/dist/check/fixtures/authz-policy-fixtures.js.map +1 -1
- package/dist/check/fixtures/authz-scope-narrows-fixtures.js +4 -4
- package/dist/check/fixtures/authz-scope-narrows-fixtures.js.map +1 -1
- package/dist/check/fixtures/constructor-injection-fixtures.js +6 -6
- package/dist/check/fixtures/constructor-injection-fixtures.js.map +1 -1
- package/dist/check/fixtures/context-file-fixtures.d.ts +4 -0
- package/dist/check/fixtures/context-file-fixtures.d.ts.map +1 -0
- package/dist/check/fixtures/context-file-fixtures.js +36 -0
- package/dist/check/fixtures/context-file-fixtures.js.map +1 -0
- package/dist/check/fixtures/declarations-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/declarations-fixtures.js +15 -36
- package/dist/check/fixtures/declarations-fixtures.js.map +1 -1
- package/dist/check/fixtures/declared-declarations.d.ts +4 -2
- package/dist/check/fixtures/declared-declarations.d.ts.map +1 -1
- package/dist/check/fixtures/declared-declarations.js +9 -3
- package/dist/check/fixtures/declared-declarations.js.map +1 -1
- package/dist/check/fixtures/earlier-declarations-fixtures.d.ts +4 -0
- package/dist/check/fixtures/earlier-declarations-fixtures.d.ts.map +1 -0
- package/dist/check/fixtures/earlier-declarations-fixtures.js +48 -0
- package/dist/check/fixtures/earlier-declarations-fixtures.js.map +1 -0
- package/dist/check/fixtures/fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/fixtures.js +4 -0
- package/dist/check/fixtures/fixtures.js.map +1 -1
- package/dist/check/fixtures/module-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/module-fixtures.js +50 -17
- package/dist/check/fixtures/module-fixtures.js.map +1 -1
- package/dist/check/fixtures/named-refusal-fixtures.js +5 -5
- package/dist/check/fixtures/named-refusal-fixtures.js.map +1 -1
- package/dist/check/fixtures/paths.d.ts +1 -1
- package/dist/check/fixtures/paths.js +1 -1
- package/dist/check/fixtures/paths.js.map +1 -1
- package/dist/check/fixtures/vocabulary-fixtures.js +2 -2
- package/dist/check/fixtures/vocabulary-fixtures.js.map +1 -1
- package/dist/check/project/locate.d.ts.map +1 -1
- package/dist/check/project/locate.js +18 -9
- package/dist/check/project/locate.js.map +1 -1
- package/dist/check/rules/declarations-barrel-current.js +16 -11
- package/dist/check/rules/declarations-barrel-current.js.map +1 -1
- package/dist/check/rules/errors-code-listed.js +6 -8
- package/dist/check/rules/errors-code-listed.js.map +1 -1
- package/dist/check/rules/errors-code-unique.js +2 -2
- package/dist/check/rules/errors-code-unique.js.map +1 -1
- package/dist/check/rules/errors-known-code.js +2 -2
- package/dist/check/rules/errors-known-code.js.map +1 -1
- package/dist/check/rules/language-glossary-term.js +1 -1
- package/dist/check/rules/language-glossary-term.js.map +1 -1
- package/dist/check/rules/module-complete.d.ts.map +1 -1
- package/dist/check/rules/module-complete.js +67 -13
- package/dist/check/rules/module-complete.js.map +1 -1
- package/dist/check/rules/naming-suffix.d.ts.map +1 -1
- package/dist/check/rules/naming-suffix.js +12 -9
- package/dist/check/rules/naming-suffix.js.map +1 -1
- package/dist/check/rules/tree-closed.d.ts.map +1 -1
- package/dist/check/rules/tree-closed.js +8 -1
- package/dist/check/rules/tree-closed.js.map +1 -1
- package/dist/check/support/is-generated-context-file.d.ts +1 -1
- package/dist/check/support/is-generated-context-file.js +1 -1
- package/dist/check/support/path-in-context.d.ts +5 -1
- package/dist/check/support/path-in-context.d.ts.map +1 -1
- package/dist/check/support/path-in-context.js +12 -3
- package/dist/check/support/path-in-context.js.map +1 -1
- package/dist/commands/context-layout.d.ts +4 -0
- package/dist/commands/context-layout.d.ts.map +1 -0
- package/dist/commands/context-layout.js +48 -0
- package/dist/commands/context-layout.js.map +1 -0
- package/dist/commands/docs.d.ts.map +1 -1
- package/dist/commands/docs.js +14 -9
- package/dist/commands/docs.js.map +1 -1
- package/dist/commands/generate.js +2 -2
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/move-to-module.d.ts.map +1 -1
- package/dist/commands/move-to-module.js +2 -0
- package/dist/commands/move-to-module.js.map +1 -1
- package/dist/config/stack.d.ts +1 -1
- package/dist/context-files/context-file-at.d.ts +7 -0
- package/dist/context-files/context-file-at.d.ts.map +1 -0
- package/dist/context-files/context-file-at.js +9 -0
- package/dist/context-files/context-file-at.js.map +1 -0
- package/dist/context-files/context-file-placement.d.ts +8 -0
- package/dist/context-files/context-file-placement.d.ts.map +1 -0
- package/dist/context-files/context-file-placement.js +23 -0
- package/dist/context-files/context-file-placement.js.map +1 -0
- package/dist/context-files/context-file.d.ts +16 -0
- package/dist/context-files/context-file.d.ts.map +1 -0
- package/dist/context-files/context-file.js +12 -0
- package/dist/context-files/context-file.js.map +1 -0
- package/dist/context-files/earlier-place-of.d.ts +7 -0
- package/dist/context-files/earlier-place-of.d.ts.map +1 -0
- package/dist/context-files/earlier-place-of.js +10 -0
- package/dist/context-files/earlier-place-of.js.map +1 -0
- package/dist/context-files/index.d.ts +5 -0
- package/dist/context-files/index.d.ts.map +1 -0
- package/dist/context-files/index.js +5 -0
- package/dist/context-files/index.js.map +1 -0
- package/dist/context-layout/context-layout.d.ts +19 -0
- package/dist/context-layout/context-layout.d.ts.map +1 -0
- package/dist/context-layout/context-layout.js +55 -0
- package/dist/context-layout/context-layout.js.map +1 -0
- package/dist/context-layout/index.d.ts +2 -0
- package/dist/context-layout/index.d.ts.map +1 -0
- package/dist/context-layout/index.js +2 -0
- package/dist/context-layout/index.js.map +1 -0
- package/dist/context-layout/module-moves.d.ts +21 -0
- package/dist/context-layout/module-moves.d.ts.map +1 -0
- package/dist/context-layout/module-moves.js +146 -0
- package/dist/context-layout/module-moves.js.map +1 -0
- package/dist/controllers/migrate-context.js +20 -15
- package/dist/controllers/migrate-context.js.map +1 -1
- package/dist/controllers/plan-context.d.ts +5 -1
- package/dist/controllers/plan-context.d.ts.map +1 -1
- package/dist/controllers/plan-context.js +19 -5
- package/dist/controllers/plan-context.js.map +1 -1
- package/dist/declared/barrel-file.d.ts +1 -1
- package/dist/declared/barrel-file.js +1 -1
- package/dist/declared/context-declarations.d.ts +4 -2
- package/dist/declared/context-declarations.d.ts.map +1 -1
- package/dist/declared/context-declarations.js +4 -2
- package/dist/declared/context-declarations.js.map +1 -1
- package/dist/declared/declarations-folder-of.d.ts +12 -7
- package/dist/declared/declarations-folder-of.d.ts.map +1 -1
- package/dist/declared/declarations-folder-of.js +15 -11
- package/dist/declared/declarations-folder-of.js.map +1 -1
- package/dist/declared/earlier-layout-notice.d.ts +10 -0
- package/dist/declared/earlier-layout-notice.d.ts.map +1 -0
- package/dist/declared/earlier-layout-notice.js +12 -0
- package/dist/declared/earlier-layout-notice.js.map +1 -0
- package/dist/declared/earlier-layout-of.d.ts +10 -0
- package/dist/declared/earlier-layout-of.d.ts.map +1 -0
- package/dist/declared/earlier-layout-of.js +16 -0
- package/dist/declared/earlier-layout-of.js.map +1 -0
- package/dist/declared/earlier-shape-of.d.ts +13 -0
- package/dist/declared/earlier-shape-of.d.ts.map +1 -0
- package/dist/declared/earlier-shape-of.js +35 -0
- package/dist/declared/earlier-shape-of.js.map +1 -0
- package/dist/declared/folder-declarations-file.d.ts +6 -4
- package/dist/declared/folder-declarations-file.d.ts.map +1 -1
- package/dist/declared/folder-declarations-file.js +7 -5
- package/dist/declared/folder-declarations-file.js.map +1 -1
- package/dist/declared/index.d.ts +3 -2
- package/dist/declared/index.d.ts.map +1 -1
- package/dist/declared/index.js +3 -2
- package/dist/declared/index.js.map +1 -1
- package/dist/declared/is-declarations-file.d.ts +3 -2
- package/dist/declared/is-declarations-file.d.ts.map +1 -1
- package/dist/declared/is-declarations-file.js +9 -9
- package/dist/declared/is-declarations-file.js.map +1 -1
- package/dist/declared/keeps-role-folder-files.d.ts +12 -0
- package/dist/declared/keeps-role-folder-files.d.ts.map +1 -0
- package/dist/declared/keeps-role-folder-files.js +25 -0
- package/dist/declared/keeps-role-folder-files.js.map +1 -0
- package/dist/declared/keeps-single-file.d.ts +1 -1
- package/dist/declared/keeps-single-file.js +1 -1
- package/dist/declared/render-declarations.d.ts +7 -3
- package/dist/declared/render-declarations.d.ts.map +1 -1
- package/dist/declared/render-declarations.js +5 -3
- package/dist/declared/render-declarations.js.map +1 -1
- package/dist/declared/render-folder-declarations.d.ts +2 -2
- package/dist/declared/same-files.d.ts +3 -0
- package/dist/declared/same-files.d.ts.map +1 -0
- package/dist/declared/same-files.js +5 -0
- package/dist/declared/same-files.js.map +1 -0
- package/dist/depcruise/layer-rules.js +21 -7
- package/dist/depcruise/layer-rules.js.map +1 -1
- package/dist/describe/read-adapters.d.ts.map +1 -1
- package/dist/describe/read-adapters.js +6 -4
- package/dist/describe/read-adapters.js.map +1 -1
- package/dist/describe/read-controllers.d.ts.map +1 -1
- package/dist/describe/read-controllers.js +5 -3
- package/dist/describe/read-controllers.js.map +1 -1
- package/dist/describe/read-errors.d.ts +1 -1
- package/dist/describe/read-errors.d.ts.map +1 -1
- package/dist/describe/read-errors.js +5 -3
- package/dist/describe/read-errors.js.map +1 -1
- package/dist/describe/read-routes.d.ts.map +1 -1
- package/dist/describe/read-routes.js +5 -5
- package/dist/describe/read-routes.js.map +1 -1
- package/dist/dev/refresh-declarations.d.ts.map +1 -1
- package/dist/dev/refresh-declarations.js +1 -1
- package/dist/dev/refresh-declarations.js.map +1 -1
- package/dist/docs/context-facts.d.ts +1 -1
- package/dist/docs/context-facts.d.ts.map +1 -1
- 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/refresh-context-doc.js +1 -1
- package/dist/docs/refresh-context-doc.js.map +1 -1
- package/dist/docs/state-machine-lines.d.ts +1 -1
- package/dist/docs/state-machine-lines.d.ts.map +1 -1
- package/dist/docs/state-machine-lines.js +6 -2
- package/dist/docs/state-machine-lines.js.map +1 -1
- package/dist/docs/write-docs.d.ts +3 -3
- package/dist/docs/write-docs.d.ts.map +1 -1
- package/dist/docs/write-docs.js +3 -3
- package/dist/docs/write-docs.js.map +1 -1
- package/dist/file-moves/file-move.d.ts +6 -0
- package/dist/file-moves/file-move.d.ts.map +1 -0
- package/dist/file-moves/file-move.js +2 -0
- package/dist/file-moves/file-move.js.map +1 -0
- package/dist/file-moves/index.d.ts +3 -0
- package/dist/file-moves/index.d.ts.map +1 -0
- package/dist/file-moves/index.js +2 -0
- package/dist/file-moves/index.js.map +1 -0
- package/dist/file-moves/move-files.d.ts +15 -0
- package/dist/file-moves/move-files.d.ts.map +1 -0
- package/dist/file-moves/move-files.js +37 -0
- package/dist/file-moves/move-files.js.map +1 -0
- package/dist/generate/errors/codes-list.d.ts +1 -1
- package/dist/generate/errors/codes-list.d.ts.map +1 -1
- package/dist/generate/errors/write-named-refusal.d.ts +1 -1
- package/dist/generate/errors/write-named-refusal.d.ts.map +1 -1
- package/dist/generate/errors/write-named-refusal.js +3 -2
- package/dist/generate/errors/write-named-refusal.js.map +1 -1
- package/dist/generate/kind.d.ts +1 -1
- package/dist/generate/kind.d.ts.map +1 -1
- package/dist/generate/kinds/adapter-kind.d.ts.map +1 -1
- package/dist/generate/kinds/adapter-kind.js +22 -2
- package/dist/generate/kinds/adapter-kind.js.map +1 -1
- package/dist/generate/kinds/error-kind.js +1 -1
- package/dist/generate/kinds/error-kind.js.map +1 -1
- package/dist/generate/kinds/module-kind.js +1 -1
- package/dist/generate/kinds/module-kind.js.map +1 -1
- package/dist/generate/kinds/port-kind.d.ts.map +1 -1
- package/dist/generate/kinds/port-kind.js +3 -1
- package/dist/generate/kinds/port-kind.js.map +1 -1
- package/dist/generate/kinds/presentation/controller-of.d.ts +1 -1
- package/dist/generate/kinds/presentation/controller-of.d.ts.map +1 -1
- package/dist/generate/kinds/presentation/controller-of.js +7 -5
- package/dist/generate/kinds/presentation/controller-of.js.map +1 -1
- package/dist/generate/permissions-file.d.ts +4 -1
- package/dist/generate/permissions-file.d.ts.map +1 -1
- package/dist/generate/permissions-file.js +6 -2
- package/dist/generate/permissions-file.js.map +1 -1
- package/dist/generate/place-context-files.d.ts +9 -0
- package/dist/generate/place-context-files.d.ts.map +1 -0
- package/dist/generate/place-context-files.js +14 -0
- package/dist/generate/place-context-files.js.map +1 -0
- package/dist/generate/place-generated-files.d.ts +18 -0
- package/dist/generate/place-generated-files.d.ts.map +1 -0
- package/dist/generate/{place-in-modules.js → place-generated-files.js} +42 -17
- package/dist/generate/place-generated-files.js.map +1 -0
- package/dist/generate/refresh-barrels.d.ts +17 -11
- package/dist/generate/refresh-barrels.d.ts.map +1 -1
- package/dist/generate/refresh-barrels.js +32 -26
- package/dist/generate/refresh-barrels.js.map +1 -1
- package/dist/generate/refresh-docs.d.ts +2 -2
- package/dist/generate/refresh-docs.d.ts.map +1 -1
- package/dist/generate/refresh-docs.js +6 -3
- package/dist/generate/refresh-docs.js.map +1 -1
- package/dist/generate/refuse-earlier-layout.d.ts +9 -0
- package/dist/generate/refuse-earlier-layout.d.ts.map +1 -0
- package/dist/generate/refuse-earlier-layout.js +15 -0
- package/dist/generate/refuse-earlier-layout.js.map +1 -0
- package/dist/help/notes.d.ts +1 -1
- package/dist/help/notes.d.ts.map +1 -1
- package/dist/help/notes.js +24 -9
- package/dist/help/notes.js.map +1 -1
- package/dist/help/usage.d.ts +1 -1
- package/dist/help/usage.d.ts.map +1 -1
- package/dist/help/usage.js +1 -0
- package/dist/help/usage.js.map +1 -1
- package/dist/init/manifest/versions.js +24 -24
- package/dist/init/run-init.d.ts.map +1 -1
- package/dist/init/run-init.js +6 -0
- package/dist/init/run-init.js.map +1 -1
- package/dist/knip/ignore-code-types-where-they-are.d.ts +11 -0
- package/dist/knip/ignore-code-types-where-they-are.d.ts.map +1 -0
- package/dist/knip/ignore-code-types-where-they-are.js +56 -0
- package/dist/knip/ignore-code-types-where-they-are.js.map +1 -0
- package/dist/knip/index.d.ts +2 -0
- package/dist/knip/index.d.ts.map +1 -0
- package/dist/knip/index.js +2 -0
- package/dist/knip/index.js.map +1 -0
- package/dist/model-modules/index.d.ts +1 -1
- package/dist/model-modules/index.d.ts.map +1 -1
- package/dist/model-modules/index.js +1 -1
- package/dist/model-modules/index.js.map +1 -1
- package/dist/model-modules/into-module.d.ts +5 -1
- package/dist/model-modules/into-module.d.ts.map +1 -1
- package/dist/model-modules/into-module.js +12 -5
- package/dist/model-modules/into-module.js.map +1 -1
- package/dist/model-modules/is-context-level.d.ts +5 -3
- package/dist/model-modules/is-context-level.d.ts.map +1 -1
- package/dist/model-modules/is-context-level.js +17 -4
- package/dist/model-modules/is-context-level.js.map +1 -1
- package/dist/model-modules/module-layers.d.ts +7 -1
- package/dist/model-modules/module-layers.d.ts.map +1 -1
- package/dist/model-modules/module-layers.js +8 -2
- package/dist/model-modules/module-layers.js.map +1 -1
- package/dist/model-modules/module-name-flaw.d.ts +2 -2
- package/dist/model-modules/module-name-flaw.js +4 -4
- package/dist/model-modules/module-name-flaw.js.map +1 -1
- package/dist/model-modules/module-placement.d.ts +5 -1
- package/dist/model-modules/module-placement.d.ts.map +1 -1
- package/dist/model-modules/module-placement.js +47 -18
- package/dist/model-modules/module-placement.js.map +1 -1
- package/dist/model-modules/module-split.d.ts +9 -5
- package/dist/model-modules/module-split.d.ts.map +1 -1
- package/dist/model-modules/module-split.js +30 -13
- package/dist/model-modules/module-split.js.map +1 -1
- package/dist/model-modules/role-directories-of.d.ts.map +1 -1
- package/dist/model-modules/role-directories-of.js +6 -1
- package/dist/model-modules/role-directories-of.js.map +1 -1
- package/dist/model-modules/role-folders-of.d.ts +1 -1
- package/dist/model-modules/role-folders-of.d.ts.map +1 -1
- package/dist/model-modules/role-folders-of.js +15 -5
- package/dist/model-modules/role-folders-of.js.map +1 -1
- package/dist/model-modules/role-folders.d.ts +2 -2
- package/dist/model-modules/role-folders.js +2 -2
- package/dist/move-to-module/module-move.d.ts +2 -4
- package/dist/move-to-module/module-move.d.ts.map +1 -1
- package/dist/move-to-module/move-to-module.d.ts +2 -6
- package/dist/move-to-module/move-to-module.d.ts.map +1 -1
- package/dist/move-to-module/move-to-module.js +2 -31
- package/dist/move-to-module/move-to-module.js.map +1 -1
- package/dist/move-to-module/moves-into-module.d.ts +1 -1
- package/dist/move-to-module/moves-into-module.d.ts.map +1 -1
- package/dist/move-to-module/moves-into-module.js +25 -6
- package/dist/move-to-module/moves-into-module.js.map +1 -1
- package/dist/refusals/code-types-pattern.d.ts +4 -0
- package/dist/refusals/code-types-pattern.d.ts.map +1 -0
- package/dist/refusals/code-types-pattern.js +6 -0
- package/dist/refusals/code-types-pattern.js.map +1 -0
- package/dist/refusals/ignore-code-types.d.ts +1 -1
- package/dist/refusals/ignore-code-types.d.ts.map +1 -1
- package/dist/refusals/ignore-code-types.js +3 -2
- package/dist/refusals/ignore-code-types.js.map +1 -1
- package/dist/refusals/path-from-contexts.d.ts +1 -1
- package/dist/refusals/path-from-contexts.js +2 -2
- package/dist/refusals/path-from-contexts.js.map +1 -1
- package/dist/refusals/with-codes.d.ts +1 -1
- package/dist/refusals/with-codes.d.ts.map +1 -1
- package/dist/refusals/with-codes.js +1 -1
- package/dist/refusals/with-codes.js.map +1 -1
- package/dist/refusals/write-refusal-classes.d.ts.map +1 -1
- package/dist/refusals/write-refusal-classes.js +4 -2
- package/dist/refusals/write-refusal-classes.js.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +2 -0
- package/dist/run.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/templates/command/handler.spec.buses.ts.tpl +1 -1
- package/templates/command/handler.spec.tsyringe.ts.tpl +1 -1
- package/templates/context/permission-set.tpl +1 -1
- package/templates/context/permissions.spec.ts.tpl +1 -1
- package/templates/error/refusal.ts.tpl +1 -1
- package/templates/file-upload/handler.spec.ts.tpl +1 -1
- package/templates/init/AGENTS.md.tpl +1 -1
- package/templates/init/README.md.tpl +2 -2
- package/templates/init/rules/application.md.tpl +3 -2
- package/templates/init/rules/domain.md.tpl +3 -2
- package/templates/init/rules/infrastructure.md.tpl +1 -0
- package/templates/init/rules/presentation.md.tpl +2 -1
- package/templates/pipeline/knip.json.tpl +1 -1
- package/templates/pipeline/package-scripts.json +1 -1
- package/templates/policy/policy.declared.ts.tpl +1 -1
- package/templates/policy/policy.ts.tpl +1 -1
- package/templates/presets/identity/context/application/authorization/change-member-roles.policy.ts.tpl +1 -1
- package/templates/presets/identity/context/application/authorization/grant-delegations.policy.ts.tpl +1 -1
- package/templates/presets/identity/context/application/authorization/invite-members.policy.ts.tpl +1 -1
- package/templates/presets/identity/context/application/authorization/read-members.policy.ts.tpl +1 -1
- package/templates/presets/identity/context/application/authorization/remove-members.policy.ts.tpl +1 -1
- package/templates/presets/identity/context/application/authorization/revoke-delegations.policy.ts.tpl +1 -1
- package/templates/presets/identity/context/application/authorization/revoke-invitations.policy.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/accept-invitation/accept-invitation.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/change-member-role/change-member-role.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/change-member-role/change-member-role.handler.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/deactivate-account/deactivate-account.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/decline-invitation/decline-invitation.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/grant-delegation/grant-delegation.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/grant-delegation/grant-delegation.handler.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/invite-member/invite-member.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/invite-member/invite-member.handler.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/open-organisation/open-organisation.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/provision-account/provision-account.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/remove-member/remove-member.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/remove-member/remove-member.handler.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/revoke-delegation/revoke-delegation.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/revoke-delegation/revoke-delegation.handler.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/revoke-invitation/revoke-invitation.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/revoke-invitation/revoke-invitation.handler.ts.tpl +1 -1
- package/templates/presets/identity/context/application/queries/search-members/search-members.handler.ts.tpl +1 -1
- package/templates/presets/identity/context/application/queries/search-members/search-members.query.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/above-own-role.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/account-already-deactivated.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/already-member.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/deactivated-account.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/delegation-not-active.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/delegation-period-inverted.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/delegation-to-oneself.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/delegation-too-long.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/delegation-with-no-right.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/email-not-verified.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/invalid-display-name.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/invalid-email-address.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/invalid-organisation-name.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/invalid-organisation-slug.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/invitation-expired.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/invitation-not-addressed-to-account.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/invitation-not-pending.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/last-owner.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/not-an-owner.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/organisation-slug-taken.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/own-role.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/right-not-in-role.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/unknown-account.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/unknown-delegation.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/unknown-invitation.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/unknown-member.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/unknown-organisation.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/test/worlds/__context__.world.ts.tpl +1 -1
- package/templates/query/handler.spec.buses.ts.tpl +1 -1
- package/templates/query/handler.spec.tsyringe.ts.tpl +1 -1
- package/templates/query/search.handler.declared.ts.tpl +1 -1
- package/templates/query/search.handler.spec.buses.ts.tpl +1 -1
- package/templates/query/search.handler.spec.tsyringe.ts.tpl +1 -1
- package/templates/query/search.handler.ts.tpl +1 -1
- package/dist/declared/single-file-notice.d.ts +0 -8
- package/dist/declared/single-file-notice.d.ts.map +0 -1
- package/dist/declared/single-file-notice.js +0 -9
- package/dist/declared/single-file-notice.js.map +0 -1
- package/dist/generate/place-in-modules.d.ts +0 -16
- package/dist/generate/place-in-modules.d.ts.map +0 -1
- package/dist/generate/place-in-modules.js.map +0 -1
- /package/templates/presets/identity/context/{domain/errors/codes.named.ts.tpl → __context__.codes.named.ts.tpl} +0 -0
- /package/templates/presets/identity/context/{application/authorization/__context__.permissions.ts.tpl → __context__.permissions.ts.tpl} +0 -0
|
@@ -12,21 +12,25 @@ export const MODULE_DOCS = {
|
|
|
12
12
|
| \`waitlist\` | The waitlist of a calendar and the offers made to waiters. |`,
|
|
13
13
|
},
|
|
14
14
|
'module/complete': {
|
|
15
|
-
why: 'A context half divided into modules is read two ways at once: a concept may be in its module or still at the level of the context, and the reader has to look in both. Once a context declares modules,
|
|
16
|
-
bad: `contexts/scheduling/domain/
|
|
17
|
-
contexts/scheduling/domain/aggregates/waitlist.aggregate.ts
|
|
18
|
-
|
|
19
|
-
contexts/scheduling/domain/
|
|
20
|
-
contexts/scheduling/domain/
|
|
15
|
+
why: 'A context half divided into modules is read two ways at once: a concept may be in its module or still at the level of the context, and the reader has to look in both. Once a context declares modules, each module is one folder of the context holding its four layers, and every file of a layer belongs to one of them, with its specs in the module folder of its test folder (test/unit/<module>/). The context keeps at its own level what every module shares: the closed list of its error codes (<context>.codes.ts) and its permission set (<context>.permissions.ts) at its root, the schema, tables and migrations of its database (infrastructure/persistence/), its route groups, guards and shared shapes (presentation/http/), the fakes, builders and worlds of its specs, and the generated declarations. A module still where 0.86 and 0.87 put it (domain/<module>/) is reported too: `ddd-ts-kit context-layout` moves it. It is a warning so that a large context moves into its modules one cluster per commit, with `ddd-ts-kit move-to-module`, which rewrites the imports and takes the specs of a moved file with it.',
|
|
16
|
+
bad: `contexts/scheduling/calendars/domain/aggregates/calendar.aggregate.ts
|
|
17
|
+
contexts/scheduling/domain/aggregates/waitlist.aggregate.ts // still at the level of the context
|
|
18
|
+
contexts/scheduling/infrastructure/persistence/knex-waitlist.repository.ts // an adapter of the waitlist, outside it`,
|
|
19
|
+
good: `contexts/scheduling/calendars/domain/aggregates/calendar.aggregate.ts
|
|
20
|
+
contexts/scheduling/waitlist/domain/aggregates/waitlist.aggregate.ts
|
|
21
|
+
contexts/scheduling/waitlist/infrastructure/persistence/knex-waitlist.repository.ts
|
|
22
|
+
contexts/scheduling/test/unit/waitlist/waitlist.aggregate.spec.ts
|
|
23
|
+
contexts/scheduling/infrastructure/persistence/scheduling.schema.ts // the database of the context
|
|
24
|
+
contexts/scheduling/scheduling.codes.ts // one per context, at its root`,
|
|
21
25
|
},
|
|
22
26
|
'module/no-cycle': {
|
|
23
27
|
why: 'Modules that import each other in a cycle cannot be read, changed or later extracted one without the other. Evans makes the coupling between modules a signal about the model: "This often yields low coupling between modules, but if it doesn\'t look for a way to change the model to disentangle the concepts, or an overlooked concept that might be the basis of a module." So the rule warns instead of refusing, and points at the remedies of the model: a domain event for an effect that follows a decision, a module for the concept both reach for, a projection for reads.',
|
|
24
|
-
bad: `// domain/
|
|
25
|
-
import { Waitlist } from '@/contexts/scheduling/domain/
|
|
26
|
-
// domain/
|
|
27
|
-
import { Calendar } from '@/contexts/scheduling/domain/
|
|
28
|
-
good: `// application/
|
|
29
|
-
import { SlotFreed } from '@/contexts/scheduling/domain/
|
|
28
|
+
bad: `// calendars/domain/aggregates/calendar.aggregate.ts
|
|
29
|
+
import { Waitlist } from '@/contexts/scheduling/waitlist/domain/aggregates/waitlist.aggregate.js';
|
|
30
|
+
// waitlist/domain/aggregates/waitlist.aggregate.ts
|
|
31
|
+
import { Calendar } from '@/contexts/scheduling/calendars/domain/aggregates/calendar.aggregate.js';`,
|
|
32
|
+
good: `// waitlist/application/event-handlers/offer-freed-slot.event-handler.ts
|
|
33
|
+
import { SlotFreed } from '@/contexts/scheduling/calendars/domain/events/slot-freed.event.js';
|
|
30
34
|
// calendars imports nothing of waitlist: waitlist reacts to what calendars decided`,
|
|
31
35
|
},
|
|
32
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-docs.js","sourceRoot":"","sources":["../../../src/check/explain/module-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,iBAAiB,EAAE;QACjB,GAAG,EAAE,8rBAA8rB;QACnsB,GAAG,EAAE;0CACiC;QACtC,IAAI,EAAE;;;;;;8EAMoE;KAC3E;IACD,iBAAiB,EAAE;QACjB,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"module-docs.js","sourceRoot":"","sources":["../../../src/check/explain/module-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,iBAAiB,EAAE;QACjB,GAAG,EAAE,8rBAA8rB;QACnsB,GAAG,EAAE;0CACiC;QACtC,IAAI,EAAE;;;;;;8EAMoE;KAC3E;IACD,iBAAiB,EAAE;QACjB,GAAG,EAAE,mlCAAmlC;QACxlC,GAAG,EAAE;;uHAE8G;QACnH,IAAI,EAAE;;;;;6GAKmG;KAC1G;IACD,iBAAiB,EAAE;QACjB,GAAG,EAAE,0jBAA0jB;QAC/jB,GAAG,EAAE;;;oGAG2F;QAChG,IAAI,EAAE;;oFAE0E;KACjF;CACF,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export const TREE_DOCS = {
|
|
2
2
|
'tree/closed': {
|
|
3
|
-
why: 'A fixed tree means every concept has one obvious place, so people and tools find it without reading the code. An ad hoc folder (utils, helpers, common, types, functions) is where unnamed concepts go to hide: a function that reads a value is a method of that value object, a decision over several objects a domain service, a shared shape of data a value object, an interchangeable rule an abstract class of domain/services with one service per variant (docs/ARCHITECTURE.md, a concept with no role of its own). A real new need is declared in extraDirectories with its reason. In the declared style the generated summary <context>.declarations.ts lives at the root of the context, next to CONTEXT.md, and the generated <
|
|
3
|
+
why: 'A fixed tree means every concept has one obvious place, so people and tools find it without reading the code. An ad hoc folder (utils, helpers, common, types, functions) is where unnamed concepts go to hide: a function that reads a value is a method of that value object, a decision over several objects a domain service, a shared shape of data a value object, an interchangeable rule an abstract class of domain/services with one service per variant (docs/ARCHITECTURE.md, a concept with no role of its own). A real new need is declared in extraDirectories with its reason. In the declared style the generated summary <context>.declarations.ts lives at the root of the context, next to CONTEXT.md, and the generated <layer>.declarations.ts of each layer in that layer; a module file may stay at the root when the wiring of a context is unusual.',
|
|
4
4
|
bad: `contexts/billing/domain/utils/rounding.ts`,
|
|
5
5
|
good: `contexts/billing/domain/value-objects/money.vo.ts
|
|
6
6
|
contexts/billing/billing.declarations.ts // declared style only
|
|
7
|
-
contexts/billing/application/
|
|
7
|
+
contexts/billing/application/application.declarations.ts // declared style only`,
|
|
8
8
|
},
|
|
9
9
|
'tree/context-doc': {
|
|
10
10
|
why: 'CONTEXT.md is where the vocabulary and the boundaries are agreed with the domain experts. Without it, names drift and nobody can tell whether a concept belongs here. The classification says how much design effort the context deserves.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-docs.js","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAsC;IAC1D,aAAa,EAAE;QACb,GAAG,EAAE
|
|
1
|
+
{"version":3,"file":"tree-docs.js","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAsC;IAC1D,aAAa,EAAE;QACb,GAAG,EAAE,+0BAA+0B;QACp1B,GAAG,EAAE,2CAA2C;QAChD,IAAI,EAAE;;yFAE+E;KACtF;IACD,kBAAkB,EAAE;QAClB,GAAG,EAAE,4OAA4O;QACjP,GAAG,EAAE,6GAA6G;QAClH,IAAI,EAAE,6GAA6G;KACpH;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,83BAA83B;QACn4B,GAAG,EAAE,iHAAiH;QACtH,IAAI,EAAE,2HAA2H;KAClI;IACD,eAAe,EAAE;QACf,GAAG,EAAE,y3BAAy3B;QAC93B,GAAG,EAAE,8BAA8B;QACnC,IAAI,EAAE;;;;qEAI2D;KAClE;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,kyBAAkyB;QACvyB,GAAG,EAAE;;;;kCAIyB;QAC9B,IAAI,EAAE;;;;;oCAK0B;KACjC;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,svCAAsvC;QAC3vC,GAAG,EAAE;;;EAGP;QACE,IAAI,EAAE;;;EAGR;KACC;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,kYAAkY;QACvY,GAAG,EAAE;;;;;;;2CAOkC;QACvC,IAAI,EAAE;;;4BAGkB;KACzB;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,kaAAka;QACva,GAAG,EAAE,kFAAkF;QACvF,IAAI,EAAE,qCAAqC;KAC5C;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,y9BAAy9B;QAC99B,GAAG,EAAE;;;uBAGc;QACnB,IAAI,EAAE;;;;;;uFAM6E;KACpF;IACD,eAAe,EAAE;QACf,GAAG,EAAE,4SAA4S;QACjT,GAAG,EAAE;gDACuC;QAC5C,IAAI,EAAE;qDAC2C;KAClD;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,gUAAgU;QACrU,GAAG,EAAE,iFAAiF;QACtF,IAAI,EAAE;8BACoB;KAC3B;IACD,2BAA2B,EAAE;QAC3B,GAAG,EAAE,uvBAAuvB;QAC5vB,GAAG,EAAE;qFAC4E;QACjF,IAAI,EAAE;;;KAGL;KACF;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,yqBAAyqB;QAC9qB,GAAG,EAAE,yEAAyE;QAC9E,IAAI,EAAE;qFAC2E;KAClF;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiring-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/wiring-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"wiring-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/wiring-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAgHzD,CAAC"}
|
|
@@ -30,29 +30,30 @@ export class IssueInvoiceHandler {}
|
|
|
30
30
|
export class InvoiceIssuedEventHandler {}`,
|
|
31
31
|
},
|
|
32
32
|
'declarations/barrel-current': {
|
|
33
|
-
why: 'With stack.assembly set to barrel, the composition root assembles a context from <context>.declarations.ts and from nothing else. That file only re-exports the generated <
|
|
34
|
-
bad: `// application/
|
|
33
|
+
why: 'With stack.assembly set to barrel, the composition root assembles a context from <context>.declarations.ts and from nothing else. That file only re-exports the generated <layer>.declarations.ts of each layer of the context that holds a role file (application/application.declarations.ts, infrastructure/infrastructure.declarations.ts, presentation/presentation.declarations.ts), in each module of its model. A role file added by hand and missing from the declarations of its layer compiles, passes its unit tests and is never registered. The same file registers what each constructor of its layer is injected, read from its signature: a constructor changed without regenerating would be given the dependencies of the old one. Each file is derived from the tree, one export per role file sorted by path then one injected(Class, [Tokens]) per class that takes something, so it is compared with what the tree says, and the message names the class whose list is stale; the declarations of a layer that holds no role file any more are reported until they are deleted. A context still declared as an earlier version wrote it, exactly as that version would write it for the current tree, is a warning in this version, not an error: the single <context>.declarations.ts of 0.84, or one <folder>.declarations.ts per role folder as 0.85 and 0.86 wrote them (application/commands/commands.declarations.ts); ddd-ts-kit docs moves it to the files of its layers, and a later minor version reports it as an error. With stack.assembly set to discovery the role files are found at startup, <context>.dependencies.ts holds the lists alone and is compared the same way, and generated declarations left behind are reported.',
|
|
34
|
+
bad: `// application/application.declarations.ts, while IssueInvoiceHandler now also takes a Clock
|
|
35
35
|
export * from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.command';
|
|
36
36
|
export * from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.handler';
|
|
37
37
|
|
|
38
38
|
injected(IssueInvoiceHandler, [InvoiceRepository]);
|
|
39
39
|
|
|
40
|
-
//
|
|
41
|
-
export * from '@/contexts/billing/application/commands/
|
|
42
|
-
good: `// application/
|
|
40
|
+
// application/application.declarations.ts, while application/authorization/only-issuer-voids.policy.ts exists
|
|
41
|
+
export * from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.handler';`,
|
|
42
|
+
good: `// application/application.declarations.ts, rewritten by \`ddd-ts-kit generate\`, \`ddd-ts-kit docs\` and \`npm run dev\`
|
|
43
43
|
import { injected } from '@ddd-ts-kit/kernel/declarations';
|
|
44
44
|
import { Clock } from '@ddd-ts-kit/kernel';
|
|
45
45
|
import { IssueInvoiceHandler } from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.handler';
|
|
46
46
|
import { InvoiceRepository } from '@/contexts/billing/domain/repositories/invoice.repository';
|
|
47
47
|
|
|
48
|
+
export * from '@/contexts/billing/application/authorization/only-issuer-voids.policy';
|
|
48
49
|
export * from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.command';
|
|
49
50
|
export * from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.handler';
|
|
50
51
|
|
|
51
52
|
injected(IssueInvoiceHandler, [InvoiceRepository, Clock]);
|
|
52
53
|
|
|
53
54
|
// billing.declarations.ts, the summary the composition root imports
|
|
54
|
-
export * from '@/contexts/billing/application/
|
|
55
|
-
export * from '@/contexts/billing/
|
|
55
|
+
export * from '@/contexts/billing/application/application.declarations';
|
|
56
|
+
export * from '@/contexts/billing/infrastructure/infrastructure.declarations';`,
|
|
56
57
|
},
|
|
57
58
|
'declarations/constructor-injection': {
|
|
58
59
|
why: 'The constructor signature is the one statement of what a declared class depends on: `ddd-ts-kit docs` reads it and writes the list the composition root injects, so nothing is repeated in the decorator and nothing can disagree with the constructor. That only works when each parameter names exactly one injection token, and a token is a class: an interface, a type alias or a primitive is erased by the compiler, a union names two things, an optional or defaulted parameter says the container might not give a value, which it always does. A constructor inherited from a class of a package cannot be read at all. The compiler is not asked for the types at run time: `emitDecoratorMetadata` exists only with legacy decorators compiled by tsc or swc, not with standard decorators nor under tsx or esbuild. Under "stack.dependencies": "signature" a list left in a decorator is a second statement: it wins at run time, so it is removed when it repeats the constructor (ESLint fixes it) and reported when it differs. A project whose config does not say lists its dependencies in its decorators, as 0.1 did, and may keep doing so.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiring-docs.js","sourceRoot":"","sources":["../../../src/check/explain/wiring-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,4BAA4B,EAAE;QAC5B,GAAG,EAAE,qnBAAqnB;QAC1nB,GAAG,EAAE;;;sCAG6B;QAClC,IAAI,EAAE;;;;;;+CAMqC;KAC5C;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,irBAAirB;QACtrB,GAAG,EAAE;;;;;;wBAMe;QACpB,IAAI,EAAE;;;;;0CAKgC;KACvC;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"wiring-docs.js","sourceRoot":"","sources":["../../../src/check/explain/wiring-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,4BAA4B,EAAE;QAC5B,GAAG,EAAE,qnBAAqnB;QAC1nB,GAAG,EAAE;;;sCAG6B;QAClC,IAAI,EAAE;;;;;;+CAMqC;KAC5C;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,irBAAirB;QACtrB,GAAG,EAAE;;;;;;wBAMe;QACpB,IAAI,EAAE;;;;;0CAKgC;KACvC;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,yqDAAyqD;QAC9qD,GAAG,EAAE;;;;;;;6FAOoF;QACzF,IAAI,EAAE;;;;;;;;;;;;;;+EAcqE;KAC5E;IACD,oCAAoC,EAAE;QACpC,GAAG,EAAE,omCAAomC;QACzmC,GAAG,EAAE;;;;;;;;;iEASwD;QAC7D,IAAI,EAAE;;;;;;;EAOR;KACC;IACD,iCAAiC,EAAE;QACjC,GAAG,EAAE,4nBAA4nB;QACjoB,GAAG,EAAE;+DACsD;QAC3D,IAAI,EAAE;;;;;;;+DAOqD;KAC5D;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,+bAA+b;QACpc,GAAG,EAAE;yIACgI;QACrI,IAAI,EAAE;yIAC+H;KACtI;IACD,cAAc,EAAE;QACd,GAAG,EAAE,kXAAkX;QACvX,GAAG,EAAE;;uEAE8D;QACnE,IAAI,EAAE;;2IAEiI;KACxI;IACD,iCAAiC,EAAE;QACjC,GAAG,EAAE,qMAAqM;QAC1M,GAAG,EAAE,qDAAqD;QAC1D,IAAI,EAAE,qGAAqG;KAC5G;CACF,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { PATHS } from './paths.js';
|
|
|
4
4
|
import { project } from './project.js';
|
|
5
5
|
import { source } from './source.js';
|
|
6
6
|
const { BILLING } = PATHS;
|
|
7
|
-
const PERMISSIONS = `${BILLING}/
|
|
7
|
+
const PERMISSIONS = `${BILLING}/billing.permissions.ts`;
|
|
8
8
|
const ROLES = 'src/platform/auth/roles/roles.ts';
|
|
9
9
|
const ROLE = 'src/platform/auth/authorization/role.ts';
|
|
10
10
|
const SIGNED_IN = 'src/platform/auth/authorization/signed-in-grants.ts';
|
|
@@ -66,6 +66,6 @@ function granting(...grants) {
|
|
|
66
66
|
}
|
|
67
67
|
/** A roles file of the platform whose grants are the lines given, after the super-admin. */
|
|
68
68
|
function roles(...grants) {
|
|
69
|
-
return source("import type { Grant } from '@ddd-ts-kit/auth';", "import { billingPermissions } from '@/contexts/billing/
|
|
69
|
+
return source("import type { Grant } from '@ddd-ts-kit/auth';", "import { billingPermissions } from '@/contexts/billing/billing.permissions.js';", "import { Role } from '@/platform/auth/authorization/role.js';", '', 'export const roles: Readonly<Record<string, readonly Grant[]>> = {', " [Role.Admin]: ['*'],", ...grants.map((grant) => ` ${grant}`), '};', '', 'export const issuing = billingPermissions;');
|
|
70
70
|
}
|
|
71
71
|
//# sourceMappingURL=authz-granted-fixtures.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authz-granted-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/authz-granted-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;AAC1B,MAAM,WAAW,GAAG,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"authz-granted-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/authz-granted-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;AAC1B,MAAM,WAAW,GAAG,GAAG,OAAO,yBAAyB,CAAC;AACxD,MAAM,KAAK,GAAG,kCAAkC,CAAC;AACjD,MAAM,IAAI,GAAG,yCAAyC,CAAC;AACvD,MAAM,SAAS,GAAG,qDAAqD,CAAC;AAExE,MAAM,QAAQ,GAAG,MAAM,CACrB,uDAAuD,EACvD,EAAE,EACF,kEAAkE,EAClE,sDAAsD,EACtD,KAAK,CACN,CAAC;AAEF,MAAM,eAAe,GAAG,MAAM,CAC5B,uBAAuB,EACvB,mBAAmB,EACnB,6BAA6B,EAC7B,aAAa,EACb,EAAE,EACF,sDAAsD,CACvD,CAAC;AAEF,MAAM,IAAI,GAAG,eAAe,CAAC;AAE7B,MAAM,CAAC,MAAM,sBAAsB,GAAuB;IACxD;QACE,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,wDAAwD;QAC9D,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,QAAQ,CAAC,2DAA2D,CAAC;KAC7E;IACD;QACE,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE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;AAC5F,SAAS,KAAK,CAAC,GAAG,MAAyB;IACzC,OAAO,MAAM,CACX,gDAAgD,EAChD,iFAAiF,EACjF,+DAA+D,EAC/D,EAAE,EACF,oEAAoE,EACpE,wBAAwB,EACxB,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,EACtC,IAAI,EACJ,EAAE,EACF,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authz-policy-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/authz-policy-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"authz-policy-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/authz-policy-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA0CzC,eAAO,MAAM,qBAAqB,EAAE,SAAS,OAAO,EA+FnD,CAAC"}
|
|
@@ -3,9 +3,9 @@ import { PATHS } from './paths.js';
|
|
|
3
3
|
import { project } from './project.js';
|
|
4
4
|
import { signatureProject } from './signature-project.js';
|
|
5
5
|
import { source } from './source.js';
|
|
6
|
-
const { COMMAND,
|
|
6
|
+
const { COMMAND, APPLICATION_DECLARATIONS, HANDLER, MODULE, POLICY } = PATHS;
|
|
7
7
|
/** The declarations of application/commands/ the generator derives once the handler takes `Access` and the repository in its constructor. */
|
|
8
|
-
const
|
|
8
|
+
const APPLICATION_OF_THE_POLICY = source("import { injected } from '@ddd-ts-kit/kernel/declarations';", "import { IssueInvoiceHandler } from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.handler.js';", "import { InvoiceRepository } from '@/contexts/billing/domain/repositories/invoice.repository.js';", "import { Access } from '@ddd-ts-kit/auth';", '', "export * from '@/contexts/billing/application/authorization/only-issuer-voids.policy.js';", "export * from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.command.js';", "export * from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.handler.js';", '', 'injected(IssueInvoiceHandler, [Access, InvoiceRepository]);');
|
|
9
9
|
const ISSUE_POLICY = [
|
|
10
10
|
"import { Policy } from '@ddd-ts-kit/kernel/declarations';",
|
|
11
11
|
'',
|
|
@@ -115,6 +115,6 @@ function declaredHandler(body) {
|
|
|
115
115
|
}
|
|
116
116
|
/** The declared issue-invoice use case whose permission a policy refines, its handler written with `body`. */
|
|
117
117
|
function withPolicy(body) {
|
|
118
|
-
return signatureProject(body, { [POLICY]: ISSUE_POLICY, [
|
|
118
|
+
return signatureProject(body, { [POLICY]: ISSUE_POLICY, [APPLICATION_DECLARATIONS]: APPLICATION_OF_THE_POLICY });
|
|
119
119
|
}
|
|
120
120
|
//# sourceMappingURL=authz-policy-fixtures.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authz-policy-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/authz-policy-fixtures.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"authz-policy-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/authz-policy-fixtures.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAA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8H;YAChI,GAAG,OAAO,CACR,sJAAsJ,CACvJ;SACF,CAAC;KACH;CACF,CAAC;AAEF,uEAAuE;AACvE,SAAS,eAAe,CAAC,IAAY;IACnC,OAAO;QACL,iDAAiD;QACjD,mEAAmE;QACnE,wGAAwG;QACxG,uHAAuH;QACvH,EAAE;QACF,sCAAsC;QACtC,oCAAoC;QACpC,gBAAgB;QAChB,sCAAsC;QACtC,mDAAmD;QACnD,QAAQ;QACR,EAAE;QACF,gEAAgE;QAChE,IAAI;QACJ,KAAK;QACL,GAAG;QACH,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED,8GAA8G;AAC9G,SAAS,UAAU,CAAC,IAAY;IAC9B,OAAO,gBAAgB,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC,wBAAwB,CAAC,EAAE,yBAAyB,EAAE,CAAC,CAAC;AACnH,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { project } from './project.js';
|
|
|
3
3
|
import { SAMPLES } from './samples.js';
|
|
4
4
|
import { source } from './source.js';
|
|
5
5
|
const { BILLING, QUERY_HANDLER, QUERY_HANDLER_SPEC } = PATHS;
|
|
6
|
-
const PERMISSIONS = `${BILLING}/
|
|
6
|
+
const PERMISSIONS = `${BILLING}/billing.permissions.ts`;
|
|
7
7
|
const SIGNED_IN = 'src/platform/auth/authorization/signed-in-grants.ts';
|
|
8
8
|
const AUTHORIZER = 'src/platform/auth/authorization/create-authorizer.ts';
|
|
9
9
|
const DECLARED = source("import { definePermissions } from '@ddd-ts-kit/auth';", '', "export const billingPermissions = definePermissions('billing', {", " 'invoice.search': { description: 'Search invoice' },", " 'invoice.issue': { description: 'Issue invoice' },", '});');
|
|
@@ -93,7 +93,7 @@ function searching(grants, narrowing = {}) {
|
|
|
93
93
|
[PERMISSIONS]: DECLARED,
|
|
94
94
|
[QUERY_HANDLER]: handler(narrowing),
|
|
95
95
|
[QUERY_HANDLER_SPEC]: SAMPLES.SPEC,
|
|
96
|
-
[SIGNED_IN]: source("import type { Grant } from '@ddd-ts-kit/auth';", "import { billingPermissions } from '@/contexts/billing/
|
|
96
|
+
[SIGNED_IN]: source("import type { Grant } from '@ddd-ts-kit/auth';", "import { billingPermissions } from '@/contexts/billing/billing.permissions.js';", '', `export const signedInGrants: readonly Grant[] = ${grants};`, '', 'export const searching = billingPermissions;'),
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
/** A project whose authorizer is given its grants in place: `grants` is the property as written. */
|
|
@@ -102,10 +102,10 @@ function authorizing(grants) {
|
|
|
102
102
|
[PERMISSIONS]: DECLARED,
|
|
103
103
|
[QUERY_HANDLER]: handler(),
|
|
104
104
|
[QUERY_HANDLER_SPEC]: SAMPLES.SPEC,
|
|
105
|
-
[AUTHORIZER]: source("import { type Authorizer, SignedInGrantsAuthorizer } from '@ddd-ts-kit/auth';", "import { billingPermissions } from '@/contexts/billing/
|
|
105
|
+
[AUTHORIZER]: source("import { type Authorizer, SignedInGrantsAuthorizer } from '@ddd-ts-kit/auth';", "import { billingPermissions } from '@/contexts/billing/billing.permissions.js';", '', 'declare const model: Authorizer;', 'declare function grantsOf(set: unknown): readonly string[];', '', 'export function createAuthorizer(): Authorizer {', ` return new SignedInGrantsAuthorizer({ ${grants}, otherwise: model });`, '}', '', 'export const searching = [billingPermissions, grantsOf];'),
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
function handler({ before, field, permission = "billingPermissions['invoice.search']" } = {}) {
|
|
109
|
-
return source("import type { Access } from '@ddd-ts-kit/auth';", "import { billingPermissions } from '@/contexts/billing/
|
|
109
|
+
return source("import type { Access } from '@ddd-ts-kit/auth';", "import { billingPermissions } from '@/contexts/billing/billing.permissions.js';", "import type { InvoicesIssuedQuery } from '@/contexts/billing/application/queries/invoices-issued/invoices-issued.query.js';", '', ...(before === undefined ? [] : [before, '']), 'export class InvoicesIssuedHandler {', ...(field === undefined ? [] : [` ${field}`, '']), ' constructor(private readonly access: Access) {}', '', ' async execute(query: InvoicesIssuedQuery): Promise<unknown> {', ` return this.access.scope(query.actor, ${permission}, 'invoice');`, ' }', '}');
|
|
110
110
|
}
|
|
111
111
|
//# sourceMappingURL=authz-scope-narrows-fixtures.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authz-scope-narrows-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/authz-scope-narrows-fixtures.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;AAC7D,MAAM,WAAW,GAAG,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"authz-scope-narrows-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/authz-scope-narrows-fixtures.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;AAC7D,MAAM,WAAW,GAAG,GAAG,OAAO,yBAAyB,CAAC;AACxD,MAAM,SAAS,GAAG,qDAAqD,CAAC;AACxE,MAAM,UAAU,GAAG,sDAAsD,CAAC;AAE1E,MAAM,QAAQ,GAAG,MAAM,CACrB,uDAAuD,EACvD,EAAE,EACF,kEAAkE,EAClE,wDAAwD,EACxD,sDAAsD,EACtD,KAAK,CACN,CAA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5D,EAAE,EACF,8CAA8C,CAC/C;KACF,CAAC,CAAC;AACL,CAAC;AAED,oGAAoG;AACpG,SAAS,WAAW,CAAC,MAAc;IACjC,OAAO,OAAO,CAAC;QACb,CAAC,WAAW,CAAC,EAAE,QAAQ;QACvB,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE;QAC1B,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC,IAAI;QAClC,CAAC,UAAU,CAAC,EAAE,MAAM,CAClB,+EAA+E,EAC/E,iFAAiF,EACjF,EAAE,EACF,kCAAkC,EAClC,6DAA6D,EAC7D,EAAE,EACF,kDAAkD,EAClD,2CAA2C,MAAM,wBAAwB,EACzE,GAAG,EACH,EAAE,EACF,0DAA0D,CAC3D;KACF,CAAC,CAAC;AACL,CAAC;AAED,SAAS,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,sCAAsC,EAAE,GAAc,EAAE;IACrG,OAAO,MAAM,CACX,iDAAiD,EACjD,iFAAiF,EACjF,6HAA6H,EAC7H,EAAE,EACF,GAAG,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAC7C,sCAAsC,EACtC,GAAG,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,EAClD,mDAAmD,EACnD,EAAE,EACF,iEAAiE,EACjE,6CAA6C,UAAU,eAAe,EACtE,KAAK,EACL,GAAG,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { PATHS } from './paths.js';
|
|
|
2
2
|
import { SIGNATURE } from './signature.js';
|
|
3
3
|
import { signatureProject } from './signature-project.js';
|
|
4
4
|
import { source } from './source.js';
|
|
5
|
-
const { BILLING,
|
|
5
|
+
const { BILLING, APPLICATION_DECLARATIONS, HANDLER } = PATHS;
|
|
6
6
|
const RULE = 'declarations/constructor-injection';
|
|
7
7
|
const BARE = '@CommandHandler(IssueInvoiceCommand)';
|
|
8
8
|
const SETTINGS = `${BILLING}/application/ports/invoice-settings.port.ts`;
|
|
@@ -21,14 +21,14 @@ export const CONSTRUCTOR_INJECTION_FIXTURES = [
|
|
|
21
21
|
ruleId: RULE,
|
|
22
22
|
name: 'a handler that lists nothing and types each constructor parameter by a port, its barrel registering what was read',
|
|
23
23
|
expect: 'pass',
|
|
24
|
-
files: signatureProject(SIGNATURE.handler, { [
|
|
24
|
+
files: signatureProject(SIGNATURE.handler, { [APPLICATION_DECLARATIONS]: SIGNATURE.declarations }),
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
ruleId: RULE,
|
|
28
28
|
name: 'a parameter typed by a generic class, whose raw class is the token',
|
|
29
29
|
expect: 'pass',
|
|
30
30
|
files: signatureProject(takingInstead('private readonly clock: Clock<Date>'), {
|
|
31
|
-
[
|
|
31
|
+
[APPLICATION_DECLARATIONS]: SIGNATURE.declarations,
|
|
32
32
|
}),
|
|
33
33
|
},
|
|
34
34
|
...REFUSED_PARAMETERS.map(([name, parameter]) => ({
|
|
@@ -86,15 +86,15 @@ export const CONSTRUCTOR_INJECTION_FIXTURES = [
|
|
|
86
86
|
{
|
|
87
87
|
ruleId: 'declarations/barrel-current',
|
|
88
88
|
name: 'declarations whose dependency list was read from a constructor that has changed since',
|
|
89
|
-
expect: { file:
|
|
89
|
+
expect: { file: APPLICATION_DECLARATIONS },
|
|
90
90
|
files: signatureProject(SIGNATURE.handler, {
|
|
91
|
-
[
|
|
91
|
+
[APPLICATION_DECLARATIONS]: SIGNATURE.declarations.replace('[InvoiceRepository, Clock]', '[InvoiceRepository]'),
|
|
92
92
|
}),
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
ruleId: 'declarations/barrel-current',
|
|
96
96
|
name: 'declarations that register no dependency list for a constructor that takes something',
|
|
97
|
-
expect: { file:
|
|
97
|
+
expect: { file: APPLICATION_DECLARATIONS },
|
|
98
98
|
files: signatureProject(SIGNATURE.handler),
|
|
99
99
|
},
|
|
100
100
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constructor-injection-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/constructor-injection-fixtures.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"constructor-injection-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/constructor-injection-fixtures.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,EAAE,OAAO,EAAE,wBAAwB,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;AAC7D,MAAM,IAAI,GAAG,oCAAoC,CAAC;AAClD,MAAM,IAAI,GAAG,sCAAsC,CAAC;AACpD,MAAM,QAAQ,GAAG,GAAG,OAAO,6CAA6C,CAAC;AACzE,MAAM,YAAY,GAAG,GAAG,OAAO,0BAA0B,CAAC;AAE1D,MAAM,aAAa,GAAG,CAAC,SAAiB,EAAE,OAAO,GAAsB,SAAS,CAAC,KAAK,EAAU,EAAE,CAChG,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC;AAE5E,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+
import type { Fixture } from './fixture.js';
|
|
2
|
+
/** The code list and the permission set of a context: at its root, and, for one minor version, where 0.86 and 0.87 kept them. */
|
|
3
|
+
export declare const CONTEXT_FILE_FIXTURES: readonly Fixture[];
|
|
4
|
+
//# sourceMappingURL=context-file-fixtures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-file-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/context-file-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBzC,iIAAiI;AACjI,eAAO,MAAM,qBAAqB,EAAE,SAAS,OAAO,EA2BnD,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { PATHS } from './paths.js';
|
|
2
|
+
import { project } from './project.js';
|
|
3
|
+
import { source } from './source.js';
|
|
4
|
+
const { BILLING } = PATHS;
|
|
5
|
+
const CODES = source("export const BillingCodes = { InvoiceVoid: 'INVOICE_VOID' } as const;");
|
|
6
|
+
const PERMISSIONS = source("import { definePermissions } from '@ddd-ts-kit/auth';", '', "export const billingPermissions = definePermissions('billing', {", " 'invoice.issue': { description: 'Issue invoice' },", '});');
|
|
7
|
+
/** The code list and the permission set of a context: at its root, and, for one minor version, where 0.86 and 0.87 kept them. */
|
|
8
|
+
export const CONTEXT_FILE_FIXTURES = [
|
|
9
|
+
{
|
|
10
|
+
ruleId: 'tree/closed',
|
|
11
|
+
name: 'the code list and the permission set at the root of their context',
|
|
12
|
+
expect: 'pass',
|
|
13
|
+
files: project({ [`${BILLING}/billing.codes.ts`]: CODES, [`${BILLING}/billing.permissions.ts`]: PERMISSIONS }),
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
ruleId: 'tree/closed',
|
|
17
|
+
name: 'the code list where 0.86 and 0.87 kept it: a warning, until a later minor version',
|
|
18
|
+
expect: { file: `${BILLING}/domain/errors/codes.ts` },
|
|
19
|
+
severity: 'warn',
|
|
20
|
+
files: project({ [`${BILLING}/domain/errors/codes.ts`]: CODES }),
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
ruleId: 'tree/closed',
|
|
24
|
+
name: 'the permission set where 0.86 and 0.87 kept it: a warning, until a later minor version',
|
|
25
|
+
expect: { file: `${BILLING}/application/authorization/billing.permissions.ts` },
|
|
26
|
+
severity: 'warn',
|
|
27
|
+
files: project({ [`${BILLING}/application/authorization/billing.permissions.ts`]: PERMISSIONS }),
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
ruleId: 'tree/closed',
|
|
31
|
+
name: 'the code list at the root and where 0.86 and 0.87 kept it: an error',
|
|
32
|
+
expect: { file: `${BILLING}/domain/errors/codes.ts` },
|
|
33
|
+
files: project({ [`${BILLING}/billing.codes.ts`]: CODES, [`${BILLING}/domain/errors/codes.ts`]: CODES }),
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
//# sourceMappingURL=context-file-fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-file-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/context-file-fixtures.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;AAE1B,MAAM,KAAK,GAAG,MAAM,CAAC,uEAAuE,CAAC,CAAC;AAE9F,MAAM,WAAW,GAAG,MAAM,CACxB,uDAAuD,EACvD,EAAE,EACF,kEAAkE,EAClE,sDAAsD,EACtD,KAAK,CACN,CAAC;AAEF,iIAAiI;AACjI,MAAM,CAAC,MAAM,qBAAqB,GAAuB;IACvD;QACE,MAAM,EAAE,aAAa;QACrB,IAAI,EAAE,mEAAmE;QACzE,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,GAAG,OAAO,mBAAmB,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,yBAAyB,CAAC,EAAE,WAAW,EAAE,CAAC;KAC/G;IACD;QACE,MAAM,EAAE,aAAa;QACrB,IAAI,EAAE,mFAAmF;QACzF,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,yBAAyB,EAAE;QACrD,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,GAAG,OAAO,yBAAyB,CAAC,EAAE,KAAK,EAAE,CAAC;KACjE;IACD;QACE,MAAM,EAAE,aAAa;QACrB,IAAI,EAAE,wFAAwF;QAC9F,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,mDAAmD,EAAE;QAC/E,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,GAAG,OAAO,mDAAmD,CAAC,EAAE,WAAW,EAAE,CAAC;KACjG;IACD;QACE,MAAM,EAAE,aAAa;QACrB,IAAI,EAAE,qEAAqE;QAC3E,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,yBAAyB,EAAE;QACrD,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,GAAG,OAAO,mBAAmB,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,yBAAyB,CAAC,EAAE,KAAK,EAAE,CAAC;KACzG;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declarations-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/declarations-fixtures.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"declarations-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/declarations-fixtures.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA6CzC,eAAO,MAAM,qBAAqB,EAAE,SAAS,OAAO,EAkQnD,CAAC"}
|
|
@@ -8,18 +8,15 @@ import { handler } from './handler.js';
|
|
|
8
8
|
import { PATHS } from './paths.js';
|
|
9
9
|
import { project } from './project.js';
|
|
10
10
|
import { SAMPLES } from './samples.js';
|
|
11
|
-
import { SINGLE_FILE_DECLARATIONS } from './single-file-declarations.js';
|
|
12
11
|
import { source } from './source.js';
|
|
13
12
|
import { withoutFile } from './without-file.js';
|
|
14
|
-
const { ADAPTER, AGGREGATE, BARREL, BILLING, COMMAND,
|
|
13
|
+
const { ADAPTER, AGGREGATE, BARREL, BILLING, COMMAND, APPLICATION_DECLARATIONS, EVENT, EVENT_HANDLER, EVENT_HANDLER_SPEC, HANDLER, INTEGRATION_HANDLER, INTEGRATION_HANDLER_SPEC, JOB, JOB_SPEC, MODULE, PLATFORM_MODULE, POLICY, PORT, } = PATHS;
|
|
15
14
|
const { SPEC } = SAMPLES;
|
|
16
15
|
/** A class of infrastructure/ that implements a port, in a file without a role suffix, declared by nothing. */
|
|
17
16
|
const STRIPE = `${BILLING}/infrastructure/external/stripe-payment-gateway.ts`;
|
|
18
17
|
const STRIPE_IMPORT = "import { StripePaymentGateway } from '@/contexts/billing/infrastructure/external/stripe-payment-gateway.js';";
|
|
19
18
|
const PORT_IMPORT = "import { PaymentGateway } from '@/contexts/billing/application/ports/payment-gateway.port.js';";
|
|
20
19
|
const stripeGateway = (...before) => source(PORT_IMPORT, '', ...before, 'export class StripePaymentGateway implements PaymentGateway {}');
|
|
21
|
-
/** The billing context declared in the single file of 0.84: no declarations file in a role folder. */
|
|
22
|
-
const singleFile = (declarations) => Object.fromEntries(Object.entries(declaredProject(DECLARED_CONTEXT, { [BARREL]: declarations })).filter(([file]) => file === BARREL || !file.startsWith(`${BILLING}/`) || !file.endsWith('.declarations.ts')));
|
|
23
20
|
const explicitModule = (...statements) => source("import type { ModuleBuilder } from '@ddd-ts-kit/di';", PORT_IMPORT, ...statements);
|
|
24
21
|
export const DECLARATIONS_FIXTURES = [
|
|
25
22
|
{
|
|
@@ -98,7 +95,7 @@ export const DECLARATIONS_FIXTURES = [
|
|
|
98
95
|
},
|
|
99
96
|
{
|
|
100
97
|
ruleId: 'declarations/barrel-current',
|
|
101
|
-
name: 'the declarations of each
|
|
98
|
+
name: 'the declarations of each layer list its role files, sorted by path, and the summary at the root re-exports them',
|
|
102
99
|
expect: 'pass',
|
|
103
100
|
files: declaredProject(DECLARED_CONTEXT, DECLARED_DECLARATIONS),
|
|
104
101
|
},
|
|
@@ -125,46 +122,28 @@ export const DECLARATIONS_FIXTURES = [
|
|
|
125
122
|
},
|
|
126
123
|
{
|
|
127
124
|
ruleId: 'declarations/barrel-current',
|
|
128
|
-
name: 'a
|
|
129
|
-
expect: { file:
|
|
130
|
-
files: withoutFile(declaredProject(DECLARED_CONTEXT),
|
|
125
|
+
name: 'a layer without its declarations',
|
|
126
|
+
expect: { file: APPLICATION_DECLARATIONS },
|
|
127
|
+
files: withoutFile(declaredProject(DECLARED_CONTEXT), APPLICATION_DECLARATIONS),
|
|
131
128
|
},
|
|
132
129
|
{
|
|
133
130
|
ruleId: 'declarations/barrel-current',
|
|
134
|
-
name: 'a role file added by hand that the declarations of its
|
|
135
|
-
expect: { file:
|
|
131
|
+
name: 'a role file added by hand that the declarations of its layer do not list',
|
|
132
|
+
expect: { file: APPLICATION_DECLARATIONS },
|
|
136
133
|
files: declaredProject(DECLARED_CONTEXT, {
|
|
137
134
|
...DECLARED_DECLARATIONS,
|
|
138
|
-
[
|
|
135
|
+
[APPLICATION_DECLARATIONS]: source("export * from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.handler.js';"),
|
|
139
136
|
}),
|
|
140
137
|
},
|
|
141
138
|
{
|
|
142
139
|
ruleId: 'declarations/barrel-current',
|
|
143
|
-
name: 'the declarations of a
|
|
144
|
-
expect: { file: `${BILLING}/
|
|
140
|
+
name: 'the declarations of a layer that holds no role file any more, left behind',
|
|
141
|
+
expect: { file: `${BILLING}/presentation/presentation.declarations.ts` },
|
|
145
142
|
files: declaredProject(DECLARED_CONTEXT, {
|
|
146
|
-
|
|
143
|
+
...DECLARED_DECLARATIONS,
|
|
144
|
+
[`${BILLING}/presentation/presentation.declarations.ts`]: 'export {};\n',
|
|
147
145
|
}),
|
|
148
146
|
},
|
|
149
|
-
{
|
|
150
|
-
ruleId: 'declarations/barrel-current',
|
|
151
|
-
name: 'the single declarations file of 0.84, current and not moved yet: a warning, until a later minor version',
|
|
152
|
-
expect: { file: BARREL },
|
|
153
|
-
severity: 'warn',
|
|
154
|
-
files: singleFile(SINGLE_FILE_DECLARATIONS),
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
ruleId: 'declarations/barrel-current',
|
|
158
|
-
name: 'the single declarations file of 0.84 that misses a role file: stale, an error',
|
|
159
|
-
expect: { file: BARREL },
|
|
160
|
-
files: singleFile(SINGLE_FILE_DECLARATIONS.replace("export * from '@/contexts/billing/application/scheduling/send-reminders.job.js';\n", '')),
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
ruleId: 'declarations/barrel-current',
|
|
164
|
-
name: 'a context half moved, the single declarations file of 0.84 next to the declarations of its role folders: an error',
|
|
165
|
-
expect: { file: BARREL },
|
|
166
|
-
files: declaredProject(DECLARED_CONTEXT, { [BARREL]: SINGLE_FILE_DECLARATIONS }),
|
|
167
|
-
},
|
|
168
147
|
{
|
|
169
148
|
ruleId: 'declarations/barrel-current',
|
|
170
149
|
name: 'assembly by discovery: a barrel left behind',
|
|
@@ -173,10 +152,10 @@ export const DECLARATIONS_FIXTURES = [
|
|
|
173
152
|
},
|
|
174
153
|
{
|
|
175
154
|
ruleId: 'declarations/barrel-current',
|
|
176
|
-
name: 'assembly by discovery: the declarations of a
|
|
177
|
-
expect: { file:
|
|
155
|
+
name: 'assembly by discovery: the declarations of a layer left behind',
|
|
156
|
+
expect: { file: APPLICATION_DECLARATIONS },
|
|
178
157
|
files: discoveredProject(DECLARED_CONTEXT, {
|
|
179
|
-
[
|
|
158
|
+
[APPLICATION_DECLARATIONS]: DECLARED_DECLARATIONS[APPLICATION_DECLARATIONS] ?? '',
|
|
180
159
|
}),
|
|
181
160
|
},
|
|
182
161
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declarations-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/declarations-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"declarations-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/declarations-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,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G,CAC5G;SACF,CAAC;KACH;IACD;QACE,MAAM,EAAE,iCAAiC;QACzC,IAAI,EAAE,+EAA+E;QACrF,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QACxB,KAAK,EAAE,eAAe,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,EAAE,CAAC;KAC7E;IACD;QACE,MAAM,EAAE,iCAAiC;QACzC,IAAI,EAAE,0DAA0D;QAChE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QACxB,KAAK,EAAE,OAAO,CAAC;YACb,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,IAAI;YACrB,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE;YACzB,CAAC,MAAM,CAAC,EAAE,cAAc,CACtB,EAAE,EACF,+DAA+D,EAC/D,+CAA+C,EAC/C,GAAG,CACJ;SACF,CAAC;KACH;IACD;QACE,MAAM,EAAE,iCAAiC;QACzC,IAAI,EAAE,8CAA8C;QACpD,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QACxB,KAAK,EAAE,OAAO,CAAC;YACb,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,IAAI;YACrB,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE;YACzB,CAAC,GAAG,OAAO,kDAAkD,CAAC,EAAE,MAAM,CACpE,8BAA8B,EAC9B,aAAa,EACb,EAAE,EACF,sEAAsE,CACvE;SACF,CAAC;KACH;CACF,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { FixtureFiles } from './fixture-files.js';
|
|
2
2
|
/**
|
|
3
|
-
* The declarations of `DECLARED_CONTEXT`, one file per
|
|
4
|
-
*
|
|
3
|
+
* The declarations of `DECLARED_CONTEXT`, one file per layer and the summary at the root of the
|
|
4
|
+
* context, written out so that the fixtures do not prove the rule with its own code.
|
|
5
5
|
*/
|
|
6
6
|
export declare const DECLARED_DECLARATIONS: FixtureFiles;
|
|
7
|
+
/** The same declarations, one file per role folder, as 0.85 and 0.86 wrote them. */
|
|
8
|
+
export declare const ROLE_FOLDER_DECLARATIONS: FixtureFiles;
|
|
7
9
|
//# sourceMappingURL=declared-declarations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declared-declarations.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/declared-declarations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAUpD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"declared-declarations.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/declared-declarations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAUpD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAkBnC,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,wBAAwB,EAAE,YAuCtC,CAAC"}
|