ddd-ts-kit 0.2.0 → 0.4.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/README.md +99 -3
- package/dist/check/canonical/roles.d.ts.map +1 -1
- package/dist/check/canonical/roles.js +18 -1
- package/dist/check/canonical/roles.js.map +1 -1
- package/dist/check/catalogue/architecture-rules.d.ts.map +1 -1
- package/dist/check/catalogue/architecture-rules.js +4 -0
- package/dist/check/catalogue/architecture-rules.js.map +1 -1
- package/dist/check/catalogue/eslint-only-rules.d.ts.map +1 -1
- package/dist/check/catalogue/eslint-only-rules.js +24 -0
- package/dist/check/catalogue/eslint-only-rules.js.map +1 -1
- package/dist/check/declarations/classes-of.d.ts +2 -2
- package/dist/check/declarations/classes-of.js +4 -6
- package/dist/check/declarations/classes-of.js.map +1 -1
- package/dist/check/errors/builds-through-factories.d.ts +4 -0
- package/dist/check/errors/builds-through-factories.d.ts.map +1 -0
- package/dist/check/errors/builds-through-factories.js +5 -0
- package/dist/check/errors/builds-through-factories.js.map +1 -0
- package/dist/check/errors/error-code.d.ts +6 -0
- package/dist/check/errors/error-code.d.ts.map +1 -0
- package/dist/check/errors/error-code.js +2 -0
- package/dist/check/errors/error-code.js.map +1 -0
- package/dist/check/errors/error-codes.d.ts +8 -0
- package/dist/check/errors/error-codes.d.ts.map +1 -0
- package/dist/check/errors/error-codes.js +21 -0
- package/dist/check/errors/error-codes.js.map +1 -0
- package/dist/check/errors/kit-error-codes.d.ts +3 -0
- package/dist/check/errors/kit-error-codes.d.ts.map +1 -0
- package/dist/check/errors/kit-error-codes.js +17 -0
- package/dist/check/errors/kit-error-codes.js.map +1 -0
- package/dist/check/explain/errors-docs.d.ts +3 -0
- package/dist/check/explain/errors-docs.d.ts.map +1 -0
- package/dist/check/explain/errors-docs.js +30 -0
- package/dist/check/explain/errors-docs.js.map +1 -0
- package/dist/check/explain/rule-docs.d.ts.map +1 -1
- package/dist/check/explain/rule-docs.js +2 -0
- package/dist/check/explain/rule-docs.js.map +1 -1
- package/dist/check/explain/tree-docs.d.ts.map +1 -1
- package/dist/check/explain/tree-docs.js +3 -2
- package/dist/check/explain/tree-docs.js.map +1 -1
- package/dist/check/fixtures/authz-declared-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/authz-declared-fixtures.js +19 -0
- package/dist/check/fixtures/authz-declared-fixtures.js.map +1 -1
- package/dist/check/fixtures/errors-fixtures.d.ts +3 -0
- package/dist/check/fixtures/errors-fixtures.d.ts.map +1 -0
- package/dist/check/fixtures/errors-fixtures.js +136 -0
- package/dist/check/fixtures/errors-fixtures.js.map +1 -0
- package/dist/check/fixtures/fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/fixtures.js +2 -0
- package/dist/check/fixtures/fixtures.js.map +1 -1
- package/dist/check/fixtures/tree-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/tree-fixtures.js +25 -3
- package/dist/check/fixtures/tree-fixtures.js.map +1 -1
- package/dist/check/rules/authz-declared.d.ts.map +1 -1
- package/dist/check/rules/authz-declared.js +24 -0
- package/dist/check/rules/authz-declared.js.map +1 -1
- package/dist/check/rules/declarations-role-declared.js +1 -1
- package/dist/check/rules/declarations-role-declared.js.map +1 -1
- package/dist/check/rules/errors-code-unique.d.ts +3 -0
- package/dist/check/rules/errors-code-unique.d.ts.map +1 -0
- package/dist/check/rules/errors-code-unique.js +34 -0
- package/dist/check/rules/errors-code-unique.js.map +1 -0
- package/dist/check/rules/errors-known-code.d.ts +3 -0
- package/dist/check/rules/errors-known-code.d.ts.map +1 -0
- package/dist/check/rules/errors-known-code.js +51 -0
- package/dist/check/rules/errors-known-code.js.map +1 -0
- package/dist/check/rules/language-glossary-term.d.ts.map +1 -1
- package/dist/check/rules/language-glossary-term.js +7 -5
- package/dist/check/rules/language-glossary-term.js.map +1 -1
- package/dist/commands/controllers.d.ts +8 -0
- package/dist/commands/controllers.d.ts.map +1 -0
- package/dist/commands/controllers.js +57 -0
- package/dist/commands/controllers.js.map +1 -0
- package/dist/commands/error-factories.d.ts +7 -0
- package/dist/commands/error-factories.d.ts.map +1 -0
- package/dist/commands/error-factories.js +65 -0
- package/dist/commands/error-factories.js.map +1 -0
- package/dist/commands/generate.js +10 -0
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +2 -0
- package/dist/commands/init.js.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +1 -1
- package/dist/config/index.js.map +1 -1
- package/dist/config/parse-stack.d.ts.map +1 -1
- package/dist/config/parse-stack.js +3 -1
- package/dist/config/parse-stack.js.map +1 -1
- package/dist/config/stack.d.ts +18 -0
- package/dist/config/stack.d.ts.map +1 -1
- package/dist/config/stack.js +2 -0
- package/dist/config/stack.js.map +1 -1
- package/dist/controllers/entries-of.d.ts +3 -0
- package/dist/controllers/entries-of.d.ts.map +1 -0
- package/dist/controllers/entries-of.js +19 -0
- package/dist/controllers/entries-of.js.map +1 -0
- package/dist/controllers/finish-migration.d.ts +8 -0
- package/dist/controllers/finish-migration.d.ts.map +1 -0
- package/dist/controllers/finish-migration.js +71 -0
- package/dist/controllers/finish-migration.js.map +1 -0
- package/dist/controllers/function-route.d.ts +23 -0
- package/dist/controllers/function-route.d.ts.map +1 -0
- package/dist/controllers/function-route.js +2 -0
- package/dist/controllers/function-route.js.map +1 -0
- package/dist/controllers/handle-body.d.ts +8 -0
- package/dist/controllers/handle-body.d.ts.map +1 -0
- package/dist/controllers/handle-body.js +29 -0
- package/dist/controllers/handle-body.js.map +1 -0
- package/dist/controllers/handle-types-of.d.ts +15 -0
- package/dist/controllers/handle-types-of.d.ts.map +1 -0
- package/dist/controllers/handle-types-of.js +48 -0
- package/dist/controllers/handle-types-of.js.map +1 -0
- package/dist/controllers/migrate-context.d.ts +4 -0
- package/dist/controllers/migrate-context.d.ts.map +1 -0
- package/dist/controllers/migrate-context.js +74 -0
- package/dist/controllers/migrate-context.js.map +1 -0
- package/dist/controllers/migrated-group.d.ts +11 -0
- package/dist/controllers/migrated-group.d.ts.map +1 -0
- package/dist/controllers/migrated-group.js +2 -0
- package/dist/controllers/migrated-group.js.map +1 -0
- package/dist/controllers/migration.d.ts +16 -0
- package/dist/controllers/migration.d.ts.map +1 -0
- package/dist/controllers/migration.js +2 -0
- package/dist/controllers/migration.js.map +1 -0
- package/dist/controllers/plan-context.d.ts +22 -0
- package/dist/controllers/plan-context.d.ts.map +1 -0
- package/dist/controllers/plan-context.js +70 -0
- package/dist/controllers/plan-context.js.map +1 -0
- package/dist/controllers/read-function-route.d.ts +4 -0
- package/dist/controllers/read-function-route.d.ts.map +1 -0
- package/dist/controllers/read-function-route.js +37 -0
- package/dist/controllers/read-function-route.js.map +1 -0
- package/dist/controllers/render-controller.d.ts +15 -0
- package/dist/controllers/render-controller.d.ts.map +1 -0
- package/dist/controllers/render-controller.js +104 -0
- package/dist/controllers/render-controller.js.map +1 -0
- package/dist/declared/declared-role.d.ts +8 -2
- package/dist/declared/declared-role.d.ts.map +1 -1
- package/dist/declared/declared-role.js +17 -3
- package/dist/declared/declared-role.js.map +1 -1
- package/dist/declared/index.d.ts +1 -1
- package/dist/declared/index.d.ts.map +1 -1
- package/dist/declared/index.js +1 -1
- package/dist/declared/index.js.map +1 -1
- package/dist/depcruise/hygiene-rules.js +2 -1
- package/dist/depcruise/hygiene-rules.js.map +1 -1
- package/dist/describe/context-description.d.ts +17 -0
- package/dist/describe/context-description.d.ts.map +1 -1
- package/dist/describe/decorator-options.d.ts +3 -0
- package/dist/describe/decorator-options.d.ts.map +1 -0
- package/dist/describe/decorator-options.js +20 -0
- package/dist/describe/decorator-options.js.map +1 -0
- package/dist/describe/describe-context.d.ts.map +1 -1
- package/dist/describe/describe-context.js +2 -0
- package/dist/describe/describe-context.js.map +1 -1
- package/dist/describe/format-description.d.ts.map +1 -1
- package/dist/describe/format-description.js +9 -1
- package/dist/describe/format-description.js.map +1 -1
- package/dist/describe/listed-in.d.ts +3 -0
- package/dist/describe/listed-in.d.ts.map +1 -0
- package/dist/describe/listed-in.js +9 -0
- package/dist/describe/listed-in.js.map +1 -0
- package/dist/describe/read-controllers.d.ts +5 -0
- package/dist/describe/read-controllers.d.ts.map +1 -0
- package/dist/describe/read-controllers.js +98 -0
- package/dist/describe/read-controllers.js.map +1 -0
- package/dist/describe/read-errors.d.ts +8 -0
- package/dist/describe/read-errors.d.ts.map +1 -0
- package/dist/describe/read-errors.js +52 -0
- package/dist/describe/read-errors.js.map +1 -0
- package/dist/describe/read-route-groups.d.ts +5 -0
- package/dist/describe/read-route-groups.d.ts.map +1 -0
- package/dist/describe/read-route-groups.js +37 -0
- package/dist/describe/read-route-groups.js.map +1 -0
- package/dist/describe/read-routes.d.ts +4 -1
- package/dist/describe/read-routes.d.ts.map +1 -1
- package/dist/describe/read-routes.js +10 -4
- package/dist/describe/read-routes.js.map +1 -1
- package/dist/describe/reference-lines.js +27 -7
- package/dist/describe/reference-lines.js.map +1 -1
- package/dist/describe/route-group-fact.d.ts +11 -0
- package/dist/describe/route-group-fact.d.ts.map +1 -0
- package/dist/describe/route-group-fact.js +2 -0
- package/dist/describe/route-group-fact.js.map +1 -0
- package/dist/generate/errors/add-factory.d.ts +13 -0
- package/dist/generate/errors/add-factory.d.ts.map +1 -0
- package/dist/generate/errors/add-factory.js +30 -0
- package/dist/generate/errors/add-factory.js.map +1 -0
- package/dist/generate/errors/add-spec-case.d.ts +6 -0
- package/dist/generate/errors/add-spec-case.d.ts.map +1 -0
- package/dist/generate/errors/add-spec-case.js +26 -0
- package/dist/generate/errors/add-spec-case.js.map +1 -0
- package/dist/generate/errors/class-body.d.ts +8 -0
- package/dist/generate/errors/class-body.d.ts.map +1 -0
- package/dist/generate/errors/class-body.js +11 -0
- package/dist/generate/errors/class-body.js.map +1 -0
- package/dist/generate/errors/codes-of-context.d.ts +4 -0
- package/dist/generate/errors/codes-of-context.d.ts.map +1 -0
- package/dist/generate/errors/codes-of-context.js +17 -0
- package/dist/generate/errors/codes-of-context.js.map +1 -0
- package/dist/generate/errors/refusal-code.d.ts +13 -0
- package/dist/generate/errors/refusal-code.d.ts.map +1 -0
- package/dist/generate/errors/refusal-code.js +19 -0
- package/dist/generate/errors/refusal-code.js.map +1 -0
- package/dist/generate/errors/refusal-name.d.ts +4 -0
- package/dist/generate/errors/refusal-name.d.ts.map +1 -0
- package/dist/generate/errors/refusal-name.js +15 -0
- package/dist/generate/errors/refusal-name.js.map +1 -0
- package/dist/generate/errors/static-methods.d.ts +10 -0
- package/dist/generate/errors/static-methods.d.ts.map +1 -0
- package/dist/generate/errors/static-methods.js +13 -0
- package/dist/generate/errors/static-methods.js.map +1 -0
- package/dist/generate/errors/vague-refusal-names.d.ts +3 -0
- package/dist/generate/errors/vague-refusal-names.d.ts.map +1 -0
- package/dist/generate/errors/vague-refusal-names.js +15 -0
- package/dist/generate/errors/vague-refusal-names.js.map +1 -0
- package/dist/generate/kind.d.ts +12 -0
- package/dist/generate/kind.d.ts.map +1 -1
- package/dist/generate/kinds/declare-context-entries.d.ts +1 -1
- package/dist/generate/kinds/declare-context-entries.js +4 -3
- package/dist/generate/kinds/declare-context-entries.js.map +1 -1
- package/dist/generate/kinds/domain-error-kind.d.ts.map +1 -1
- package/dist/generate/kinds/domain-error-kind.js +4 -1
- package/dist/generate/kinds/domain-error-kind.js.map +1 -1
- package/dist/generate/kinds/e2e-kind.d.ts.map +1 -1
- package/dist/generate/kinds/e2e-kind.js +29 -6
- package/dist/generate/kinds/e2e-kind.js.map +1 -1
- package/dist/generate/kinds/error-kind.d.ts +3 -0
- package/dist/generate/kinds/error-kind.d.ts.map +1 -0
- package/dist/generate/kinds/error-kind.js +75 -0
- package/dist/generate/kinds/error-kind.js.map +1 -0
- package/dist/generate/kinds/extraction/service-selection.d.ts.map +1 -1
- package/dist/generate/kinds/extraction/service-selection.js +2 -1
- package/dist/generate/kinds/extraction/service-selection.js.map +1 -1
- package/dist/generate/kinds/guard-kind.d.ts +3 -0
- package/dist/generate/kinds/guard-kind.d.ts.map +1 -0
- package/dist/generate/kinds/guard-kind.js +27 -0
- package/dist/generate/kinds/guard-kind.js.map +1 -0
- package/dist/generate/kinds/route/controller-imports.d.ts +17 -0
- package/dist/generate/kinds/route/controller-imports.d.ts.map +1 -0
- package/dist/generate/kinds/route/controller-imports.js +22 -0
- package/dist/generate/kinds/route/controller-imports.js.map +1 -0
- package/dist/generate/kinds/route/controller-plan.d.ts +12 -0
- package/dist/generate/kinds/route/controller-plan.d.ts.map +1 -0
- package/dist/generate/kinds/route/controller-plan.js +2 -0
- package/dist/generate/kinds/route/controller-plan.js.map +1 -0
- package/dist/generate/kinds/route/controller-types.d.ts +18 -0
- package/dist/generate/kinds/route/controller-types.d.ts.map +1 -0
- package/dist/generate/kinds/route/controller-types.js +27 -0
- package/dist/generate/kinds/route/controller-types.js.map +1 -0
- package/dist/generate/kinds/route/controller-vars.d.ts +6 -0
- package/dist/generate/kinds/route/controller-vars.d.ts.map +1 -0
- package/dist/generate/kinds/route/controller-vars.js +117 -0
- package/dist/generate/kinds/route/controller-vars.js.map +1 -0
- package/dist/generate/kinds/route/group-file.d.ts +3 -0
- package/dist/generate/kinds/route/group-file.d.ts.map +1 -0
- package/dist/generate/kinds/route/group-file.js +5 -0
- package/dist/generate/kinds/route/group-file.js.map +1 -0
- package/dist/generate/kinds/route/group-prefix.d.ts +4 -0
- package/dist/generate/kinds/route/group-prefix.d.ts.map +1 -0
- package/dist/generate/kinds/route/group-prefix.js +17 -0
- package/dist/generate/kinds/route/group-prefix.js.map +1 -0
- package/dist/generate/kinds/route/group-vars.d.ts +17 -0
- package/dist/generate/kinds/route/group-vars.d.ts.map +1 -0
- package/dist/generate/kinds/route/group-vars.js +33 -0
- package/dist/generate/kinds/route/group-vars.js.map +1 -0
- package/dist/generate/kinds/route/plan-controller.d.ts +6 -0
- package/dist/generate/kinds/route/plan-controller.d.ts.map +1 -0
- package/dist/generate/kinds/route/plan-controller.js +16 -0
- package/dist/generate/kinds/route/plan-controller.js.map +1 -0
- package/dist/generate/kinds/route/resolve-group.d.ts +11 -0
- package/dist/generate/kinds/route/resolve-group.d.ts.map +1 -0
- package/dist/generate/kinds/route/resolve-group.js +31 -0
- package/dist/generate/kinds/route/resolve-group.js.map +1 -0
- package/dist/generate/kinds/route/resource-of.d.ts +5 -0
- package/dist/generate/kinds/route/resource-of.d.ts.map +1 -0
- package/dist/generate/kinds/route/resource-of.js +6 -0
- package/dist/generate/kinds/route/resource-of.js.map +1 -0
- package/dist/generate/kinds/route/route-group.d.ts +11 -0
- package/dist/generate/kinds/route/route-group.d.ts.map +1 -0
- package/dist/generate/kinds/route/route-group.js +2 -0
- package/dist/generate/kinds/route/route-group.js.map +1 -0
- package/dist/generate/kinds/route/write-controller.d.ts +5 -0
- package/dist/generate/kinds/route/write-controller.d.ts.map +1 -0
- package/dist/generate/kinds/route/write-controller.js +55 -0
- package/dist/generate/kinds/route/write-controller.js.map +1 -0
- package/dist/generate/kinds/route-group-kind.d.ts +3 -0
- package/dist/generate/kinds/route-group-kind.d.ts.map +1 -0
- package/dist/generate/kinds/route-group-kind.js +55 -0
- package/dist/generate/kinds/route-group-kind.js.map +1 -0
- package/dist/generate/kinds/route-kind.d.ts +2 -0
- package/dist/generate/kinds/route-kind.d.ts.map +1 -1
- package/dist/generate/kinds/route-kind.js +19 -4
- package/dist/generate/kinds/route-kind.js.map +1 -1
- package/dist/generate/kinds/write-context-files.d.ts.map +1 -1
- package/dist/generate/kinds/write-context-files.js +5 -4
- package/dist/generate/kinds/write-context-files.js.map +1 -1
- package/dist/generate/kinds.d.ts.map +1 -1
- package/dist/generate/kinds.js +8 -1
- package/dist/generate/kinds.js.map +1 -1
- package/dist/generate/lists-routes.d.ts +8 -0
- package/dist/generate/lists-routes.d.ts.map +1 -0
- package/dist/generate/lists-routes.js +10 -0
- package/dist/generate/lists-routes.js.map +1 -0
- package/dist/init/files/audit-files.d.ts.map +1 -1
- package/dist/init/files/audit-files.js +2 -7
- package/dist/init/files/audit-files.js.map +1 -1
- package/dist/init/manifest/versions.js +23 -23
- package/dist/init/stack/resolve-stack.d.ts.map +1 -1
- package/dist/init/stack/resolve-stack.js +5 -1
- package/dist/init/stack/resolve-stack.js.map +1 -1
- package/dist/init/stack/stack-options.d.ts +2 -0
- package/dist/init/stack/stack-options.d.ts.map +1 -1
- package/dist/refusals/apply-plan.d.ts +17 -0
- package/dist/refusals/apply-plan.d.ts.map +1 -0
- package/dist/refusals/apply-plan.js +118 -0
- package/dist/refusals/apply-plan.js.map +1 -0
- package/dist/refusals/factory-name-for.d.ts +7 -0
- package/dist/refusals/factory-name-for.d.ts.map +1 -0
- package/dist/refusals/factory-name-for.js +16 -0
- package/dist/refusals/factory-name-for.js.map +1 -0
- package/dist/refusals/legacy-error.d.ts +21 -0
- package/dist/refusals/legacy-error.d.ts.map +1 -0
- package/dist/refusals/legacy-error.js +2 -0
- package/dist/refusals/legacy-error.js.map +1 -0
- package/dist/refusals/legacy-errors.d.ts +6 -0
- package/dist/refusals/legacy-errors.d.ts.map +1 -0
- package/dist/refusals/legacy-errors.js +16 -0
- package/dist/refusals/legacy-errors.js.map +1 -0
- package/dist/refusals/migration-draft.d.ts +15 -0
- package/dist/refusals/migration-draft.d.ts.map +1 -0
- package/dist/refusals/migration-draft.js +41 -0
- package/dist/refusals/migration-draft.js.map +1 -0
- package/dist/refusals/migration-plan.d.ts +6 -0
- package/dist/refusals/migration-plan.d.ts.map +1 -0
- package/dist/refusals/migration-plan.js +2 -0
- package/dist/refusals/migration-plan.js.map +1 -0
- package/dist/refusals/move.d.ts +15 -0
- package/dist/refusals/move.d.ts.map +1 -0
- package/dist/refusals/move.js +2 -0
- package/dist/refusals/move.js.map +1 -0
- package/dist/refusals/nested-cases.d.ts +3 -0
- package/dist/refusals/nested-cases.d.ts.map +1 -0
- package/dist/refusals/nested-cases.js +9 -0
- package/dist/refusals/nested-cases.js.map +1 -0
- package/dist/refusals/plan-file.d.ts +3 -0
- package/dist/refusals/plan-file.d.ts.map +1 -0
- package/dist/refusals/plan-file.js +3 -0
- package/dist/refusals/plan-file.js.map +1 -0
- package/dist/refusals/planned-factory.d.ts +11 -0
- package/dist/refusals/planned-factory.d.ts.map +1 -0
- package/dist/refusals/planned-factory.js +2 -0
- package/dist/refusals/planned-factory.js.map +1 -0
- package/dist/refusals/planned-move.d.ts +8 -0
- package/dist/refusals/planned-move.d.ts.map +1 -0
- package/dist/refusals/planned-move.js +2 -0
- package/dist/refusals/planned-move.js.map +1 -0
- package/dist/refusals/project-sources.d.ts +5 -0
- package/dist/refusals/project-sources.d.ts.map +1 -0
- package/dist/refusals/project-sources.js +13 -0
- package/dist/refusals/project-sources.js.map +1 -0
- package/dist/refusals/propose-plan.d.ts +16 -0
- package/dist/refusals/propose-plan.d.ts.map +1 -0
- package/dist/refusals/propose-plan.js +39 -0
- package/dist/refusals/propose-plan.js.map +1 -0
- package/dist/refusals/read-legacy-error.d.ts +9 -0
- package/dist/refusals/read-legacy-error.d.ts.map +1 -0
- package/dist/refusals/read-legacy-error.js +75 -0
- package/dist/refusals/read-legacy-error.js.map +1 -0
- package/dist/refusals/read-plan.d.ts +4 -0
- package/dist/refusals/read-plan.d.ts.map +1 -0
- package/dist/refusals/read-plan.js +43 -0
- package/dist/refusals/read-plan.js.map +1 -0
- package/dist/refusals/render-factory.d.ts +5 -0
- package/dist/refusals/render-factory.d.ts.map +1 -0
- package/dist/refusals/render-factory.js +14 -0
- package/dist/refusals/render-factory.js.map +1 -0
- package/dist/refusals/replace-in-code.d.ts +16 -0
- package/dist/refusals/replace-in-code.d.ts.map +1 -0
- package/dist/refusals/replace-in-code.js +20 -0
- package/dist/refusals/replace-in-code.js.map +1 -0
- package/dist/refusals/rewrite-usages.d.ts +6 -0
- package/dist/refusals/rewrite-usages.d.ts.map +1 -0
- package/dist/refusals/rewrite-usages.js +80 -0
- package/dist/refusals/rewrite-usages.js.map +1 -0
- package/dist/refusals/spec-parts.d.ts +8 -0
- package/dist/refusals/spec-parts.d.ts.map +1 -0
- package/dist/refusals/spec-parts.js +14 -0
- package/dist/refusals/spec-parts.js.map +1 -0
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +14 -1
- package/dist/run.js.map +1 -1
- package/dist/stack/audit-vars.d.ts.map +1 -1
- package/dist/stack/audit-vars.js +3 -1
- package/dist/stack/audit-vars.js.map +1 -1
- package/dist/stack/stack-vars.d.ts.map +1 -1
- package/dist/stack/stack-vars.js +18 -1
- package/dist/stack/stack-vars.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/templates/aggregate/aggregate.ts.tpl +5 -0
- package/templates/command/handler.declared.ts.tpl +5 -0
- package/templates/command/handler.ts.tpl +5 -0
- package/templates/context/wiring.declared.tpl +2 -2
- package/templates/controller/controller.class-validator.ts.tpl +85 -0
- package/templates/controller/controller.none.ts.tpl +101 -0
- package/templates/controller/controller.search.ts.tpl +84 -0
- package/templates/controller/controller.spec.ts.tpl +49 -0
- package/templates/controller/controller.standard-schema.ts.tpl +113 -0
- package/templates/controller/controller.zod.ts.tpl +99 -0
- package/templates/controller/group.ts.tpl +4 -0
- package/templates/controller/guard.spec.ts.tpl +27 -0
- package/templates/controller/guard.ts.tpl +14 -0
- package/templates/controller/mapper.ts.tpl +10 -0
- package/templates/controller/routes.tsyringe.tpl +5 -0
- package/templates/controller/serializer.ts.tpl +10 -0
- package/templates/controller/wiring.manual.tpl +5 -0
- package/templates/docs/openapi.json.tpl +5 -0
- package/templates/entity/entity.ts.tpl +5 -0
- package/templates/error/case.spec.ts.tpl +8 -0
- package/templates/error/concept-error.spec.ts.tpl +7 -0
- package/templates/error/concept-error.ts.tpl +5 -0
- package/templates/error/factory.ts.tpl +4 -0
- package/templates/init/jest.config.js.tpl +7 -0
- package/templates/init/platform/audit/audit.module.manual.ts.tpl +18 -0
- package/templates/init/platform/audit/search-audit-entries.controller.ts.tpl +193 -0
- package/templates/init/platform/compose-application.tsyringe.ts.tpl +38 -4
- package/templates/init/rules/domain.md.tpl +11 -0
- package/templates/init/rules/presentation.md.tpl +18 -5
- package/templates/pipeline/package-scripts.json +1 -1
- package/templates/route/route.class-validator.ts.tpl +1 -1
- package/templates/route/route.none.ts.tpl +1 -1
- package/templates/route/route.search.ts.tpl +1 -1
- package/templates/route/route.standard-schema.ts.tpl +1 -1
- package/templates/route/route.zod.ts.tpl +1 -1
- package/templates/value-object/value-object.ts.tpl +5 -0
package/README.md
CHANGED
|
@@ -47,6 +47,8 @@ ddd-ts-kit init [--http express|fastify|nest|none]
|
|
|
47
47
|
[--broker none|rabbitmq|kafka|nats|redis|custom] [--cache none|redis] [--audit on|off]
|
|
48
48
|
[--errors none|sentry] [--logger stdout|pino|winston]
|
|
49
49
|
[--style declared|explicit] [--assembly barrel|discovery]
|
|
50
|
+
[--dependencies signature|listed] [--refusals factories|classes]
|
|
51
|
+
[--routes controllers|functions]
|
|
50
52
|
[--package-manager npm|pnpm]
|
|
51
53
|
[--allow-no-outbox "<reason>"] [--import-alias '$<name>/']
|
|
52
54
|
[--import-extension none|js]
|
|
@@ -137,6 +139,20 @@ is absent with standard decorators and under `tsx`. `init` writes
|
|
|
137
139
|
what each class is given. Every generated file exports one class, interface or function and is named
|
|
138
140
|
after it.
|
|
139
141
|
|
|
142
|
+
**Domain errors are built by factories.** `init` writes `"stack.refusals": "factories"`: a
|
|
143
|
+
context has one error class per concept, extending `ConceptError` of the kernel, and
|
|
144
|
+
`generate error <context> <Concept> <refusal>` adds a static factory to it. The `errors/*`
|
|
145
|
+
rules hold that form. `--refusals classes`, or a config without the key, keeps one class per
|
|
146
|
+
error built with `new`, as 0.1 and 0.2 wrote them; `error-factories` moves a project from one
|
|
147
|
+
to the other.
|
|
148
|
+
|
|
149
|
+
**A route is a controller class.** `init` writes `"stack.routes": "controllers"`: each route is
|
|
150
|
+
one class with one method, in a folder of its own, behind the guards of its route group, and a
|
|
151
|
+
declared context lists no route: its controllers reach the application through its generated
|
|
152
|
+
file. `--routes functions`, or a config without the key, keeps one `defineRoute` function per
|
|
153
|
+
route, listed in `<context>.routes.ts`, as 0.1 to 0.3 wrote them; `controllers` moves a
|
|
154
|
+
project from one to the other, a context at a time.
|
|
155
|
+
|
|
140
156
|
**Domain events leave with the save.** A generated command handler builds or loads its aggregate,
|
|
141
157
|
calls one intention method, `await repository.save(aggregate)` and returns: no `pullEvents()`, and
|
|
142
158
|
no `DomainEventDispatcher` in a handler or in a repository adapter, which only persists. The events
|
|
@@ -231,13 +247,17 @@ ddd-ts-kit generate --help --json
|
|
|
231
247
|
| `entity` | `<context> <Name>` | entity, spec |
|
|
232
248
|
| `value-object` (`vo`) | `<context> <Name>` | value object, spec |
|
|
233
249
|
| `domain-event` | `<context> <Aggregate> <Fact>` | event named `<context>.<aggregate>.<fact>`, spec |
|
|
234
|
-
| `
|
|
250
|
+
| `error` (`refusal`) | `<context> <Concept> <refusal> [--code CODE] [--term ...]...` | a static factory `<refusal>` on `domain/errors/<concept>.error.ts`, the class of the errors of that concept (created when absent, extending `ConceptError`), and its case in `test/unit/<concept>.error.spec.ts`. The factory is added after the last one; run again, the command changes nothing. `<Concept>` is a term of the glossary (`--term` adds it). The code is the name of the refusal in constant case, with the concept before it when the name is one word or a code of the kit (`Appointment notFound` sets `APPOINTMENT_NOT_FOUND`); `--code` takes one of the forms `errors/factory-name` accepts. Refused: a name such as `create` or `error1`, and a code already set in the context |
|
|
251
|
+
| `domain-error` | `<context> <Name> [--code CODE]` | one class per error with a stable code, spec: the form of a project whose config says `"stack.refusals": "classes"` or nothing. Refused under `factories`, with the `generate error` command to run instead |
|
|
235
252
|
| `domain-service` | `<context> <Name>` | service, spec |
|
|
236
253
|
| `repository` | `<context> <Aggregate> [--tenant-scoped]` | the port `domain/repositories/<name>.repository.ts` (`abstract class <Name>Repository extends Repository<<Name>>`), the adapter of the project's ORM (`implements` the port) with its mapper and table (or model), a fake, one `repositoryContract` spec run on both, registration |
|
|
237
254
|
| `command` | `<context> <UseCaseName> (--permission <aggregate>.<action> \| --public) [--aggregate <Name>]` | `<use-case>.command.ts` on `AuthorizedCommand` (plain `Command` when public), `<use-case>.handler.ts` (it builds the aggregate, saves it and answers: the events leave with the save), spec through the bus with the refusal of an actor who lacks the permission, registration with `.requires(...)` or `.public()` (and the repository when missing). A generated command answers `void` or the identifier of its aggregate, so no `<use-case>.result.ts` is written |
|
|
238
255
|
| `query` | `<context> <UseCaseName> (--permission <aggregate>.<action> \| --public) [--search]` | `<use-case>.query.ts` on `AuthorizedQuery` (plain `Query` when public), `<use-case>.result.ts`, `<use-case>.handler.ts`, the read port `application/ports/<use-case>-reader.port.ts` (an abstract class), its in-memory adapter, fake, spec, registration on the query bus. With `--search` (needs `--permission`): a kernel `PageRequest` in the query, the item, the sort and `Page<Item>` in the result file, a handler that asks `Access.scope` and hands the scope to the read port, an in-memory reader paging by offset or cursor |
|
|
239
256
|
| `port` | `<context> <Name>` | `application/ports/<name>.port.ts`, one abstract class, and its fake |
|
|
240
|
-
| `route` | `<context> <UseCaseName> --method <GET\|POST\|PUT\|PATCH\|DELETE> --path <p> [--command\|--query]` |
|
|
257
|
+
| `route` | `<context> <UseCaseName> --method <GET\|POST\|PUT\|PATCH\|DELETE> --path <p> [--command\|--query] [--group <Name>] [--mapper] [--serializer]` | under `"stack.routes": "controllers"`: a controller class in `presentation/http/<resource>/<use-case>/` (the resource is the first segment of the path), depending on `CommandBus` or `QueryBus`, behind the route group of its resource, written with it when it is new (`<resource>.routes.ts`: prefix, tag, `Authenticated`); a public use case stands in no group and says `guards: [Public]`; with class-validator one class per file (`<use-case>.params.ts`, `.body.ts`, `.answer.ts`, `.accepted.ts`, `.line.ts`); `--mapper` and `--serializer` add a request mapper and a serializer the controller is given; a spec; no registration in a declared project, a controller built by hand in `<context>.routes.ts` (the module file with hand wiring) in an explicit one. Under `"functions"`: a `defineRoute` function, its spec, its registration in `<context>.routes.ts`, and `<use-case>-<role>.dto.ts` classes |
|
|
258
|
+
| `controller` | the same arguments as `route` | the controller class, whatever `stack.routes` says: for a project of function routes that writes its next route as a class |
|
|
259
|
+
| `route-group` (`group`) | `<context> <Name> [--prefix <path>] [--group <ParentName>] [--public \| --role <role>]` | `presentation/http/<name>.routes.ts`: an empty class carrying `@RouteGroup`, behind `Authenticated` unless `--public` or `--role` says otherwise; with `--group` it refines that group and inherits from it |
|
|
260
|
+
| `guard` | `<context> <Name>` | `presentation/http/guards/<name>.guard.ts`: a declared guard class to fill, and its spec |
|
|
241
261
|
| `integration-event` | `<context> <Aggregate> <Fact> [--version n]` | `defineIntegrationEvent` declaration in the published language (its payload in `<event>.v<n>.payload.ts` with class-validator or a schema of your own), index export, the publisher `application/integration/publishers/<event>.publisher.ts`, spec, registration, a line of `platform/audit/audited-events.ts` |
|
|
242
262
|
| `integration-handler` (`consumer`) | `<context> <upstreamContext> <eventType>` | `application/integration/handlers/<name>.integration-handler.ts`, a class `<Name>IntegrationHandler` depending on `CommandBus`, its spec, its idempotent subscription under the consumer name `<context>.<name>`; refused unless the upstream is declared |
|
|
243
263
|
| `event-handler` | `<context> <Aggregate> <Fact> [--phase after-commit]` | reaction to a domain event of the context, spec, subscription; before the commit of the unit of work by default, after it with `--phase after-commit` (an effect no transaction covers, at most once), and the spec runs the reaction in that phase |
|
|
@@ -413,6 +433,80 @@ published languages, declared upstreams, allowed packages, cycles and orphans. `
|
|
|
413
433
|
it as `.dependency-cruiser.cjs`; `--check` exits 1 when the file is missing or stale, which is
|
|
414
434
|
what `npm run depcruise` runs first. Edit the config, not the file.
|
|
415
435
|
|
|
436
|
+
## controllers
|
|
437
|
+
|
|
438
|
+
```sh
|
|
439
|
+
ddd-ts-kit controllers [<context>] [--dry-run]
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
Moves the function routes of a project, or of one context, to controller classes
|
|
443
|
+
(`"stack.routes": "controllers"`). For each `presentation/http/<name>.route.ts`:
|
|
444
|
+
|
|
445
|
+
- the controller is written to `presentation/http/<resource>/<name>/<name>.controller.ts`, the
|
|
446
|
+
resource being the first segment of its path: the declaration keeps the method, the summary,
|
|
447
|
+
the schemas, the one response with its description and the error codes; the handler becomes
|
|
448
|
+
`handle`, with the actor read from the request and the answer returned without its status;
|
|
449
|
+
- one route group per resource is written (`<resource>.routes.ts`: its prefix, the tags of its
|
|
450
|
+
routes, `Authenticated`, and `FORBIDDEN` when every route declared it); a route with
|
|
451
|
+
`security: false` stands in no group and says `guards: [Public]`;
|
|
452
|
+
- the schema files named after the route follow it (`<name>-body.dto.ts` becomes
|
|
453
|
+
`<name>.body.ts`), the others go to `shared/` under their name, and every import of a moved
|
|
454
|
+
file is rewritten;
|
|
455
|
+
- the spec becomes `<name>.controller.spec.ts` and runs the controller without its guards;
|
|
456
|
+
- in a declared project the list `<context>.routes.ts`, its spec and its line in the
|
|
457
|
+
composition root are removed; in an explicit one the list builds each controller by hand;
|
|
458
|
+
- the config says `controllers` once no function route is left in the contexts.
|
|
459
|
+
|
|
460
|
+
A context is turned whole or not at all. A route that is not written as
|
|
461
|
+
`export function <name>Route(<bus>): Route { return defineRoute(spec, async (input) => { .. }); }`,
|
|
462
|
+
that declares several responses, or whose handler answers anything else than
|
|
463
|
+
`{ status, body }` is named with the reason and its context is left as it is: function routes
|
|
464
|
+
keep running next to controllers. The command ends with what is left to a person: run the
|
|
465
|
+
formatter and `ddd-ts-kit docs`, move the helpers a controller kept to a request mapper or a
|
|
466
|
+
serializer, give the groups their guards, hold the guards in the specs.
|
|
467
|
+
|
|
468
|
+
## error-factories
|
|
469
|
+
|
|
470
|
+
```
|
|
471
|
+
ddd-ts-kit error-factories --plan
|
|
472
|
+
ddd-ts-kit error-factories --apply [--dry-run]
|
|
473
|
+
```
|
|
474
|
+
|
|
475
|
+
Moves a project from one class per error (`new SlotTakenError(..)`) to static factories on one
|
|
476
|
+
error class per concept (`AppointmentError.slotTaken(..)`), in two steps, because which concept
|
|
477
|
+
a refusal is about is a decision of the model.
|
|
478
|
+
|
|
479
|
+
`--plan` writes `error-factories.plan.json`: per context, one entry per class of
|
|
480
|
+
`domain/errors/` that extends `DomainError`, with its code, the concept proposed for it (the
|
|
481
|
+
aggregate its name starts or ends with, empty when none does) and the factory name that says
|
|
482
|
+
its code (`APPOINTMENT_NOT_FOUND` on `Appointment` gives `notFound`). Edit it: every entry
|
|
483
|
+
needs a `concept`, a term of the glossary.
|
|
484
|
+
|
|
485
|
+
`--apply` follows the plan and refuses an entry without a concept, a vague factory name or one
|
|
486
|
+
that does not say the code. It:
|
|
487
|
+
|
|
488
|
+
- writes `domain/errors/<concept>.error.ts`, a class extending `ConceptError` with one factory
|
|
489
|
+
per class moved there: the parameters of the constructor, the message it gave to `super`, and
|
|
490
|
+
as facts the parameters that are plain data (text, numbers, booleans, dates);
|
|
491
|
+
- removes each class and its spec, whose cases go under `describe('<factory>')` in
|
|
492
|
+
`test/unit/<concept>.error.spec.ts`;
|
|
493
|
+
- rewrites every file under the source root and `test/`: `new X(..)` becomes
|
|
494
|
+
`<Concept>Error.<factory>(..)`, `thenError(X)` and `thenError(X, code)` become
|
|
495
|
+
`thenError('<CODE>')`, `toThrow(X)` and `expect.any(X)` become an assertion on the code,
|
|
496
|
+
`toBeInstanceOf(X)` becomes `toMatchObject({ code })`, `e instanceof X` becomes
|
|
497
|
+
`<Concept>Error.is(e, '<CODE>')`, an import of the class becomes the import of its concept
|
|
498
|
+
class, and a type names the concept class. A class of the same name in two contexts goes to
|
|
499
|
+
the concept of its own. Comments and strings are left alone;
|
|
500
|
+
- sets `"stack.refusals": "factories"` in the config.
|
|
501
|
+
|
|
502
|
+
It leaves, and says: a class that has members of its own, reads `this` in its constructor or
|
|
503
|
+
gives options to `super` (written by hand); a place where a class stood as a value it cannot
|
|
504
|
+
translate; a property of the error that became a fact (`error.personId` is now
|
|
505
|
+
`error.facts.personId`); a factory with more than three parameters. And always: which facts a
|
|
506
|
+
client may read (none is exposed), the factories that still take a sentence as only parameter,
|
|
507
|
+
and the facts to assert in the specs. Run the formatter afterwards. Run again, it finds nothing
|
|
508
|
+
left to move. `--json` answers `{ dryRun, moved, written, removed, manual }`.
|
|
509
|
+
|
|
416
510
|
## build-aliases
|
|
417
511
|
|
|
418
512
|
```
|
|
@@ -591,7 +685,7 @@ saying what to do instead. Exit code 1 when there is at least one error.
|
|
|
591
685
|
| `test/builder-required` | an aggregate without `test/builders/<name>.builder.ts` |
|
|
592
686
|
| `events/name-format` | an event name that is not `<context>.<aggregate>.<fact>` in kebab-case with the right context |
|
|
593
687
|
| `events/defined-in-published-language` | `defineIntegrationEvent` outside a published language, without a payload, twice for one version; an event described by hand |
|
|
594
|
-
| `language/glossary-term` | a class of the model named with a word the glossary of its context does not define; an empty glossary |
|
|
688
|
+
| `language/glossary-term` | a class of the model named with a word the glossary of its context does not define; an empty glossary; under `"stack.refusals": "factories"`, an error class of `domain/errors/` too |
|
|
595
689
|
| `language/no-technical-name` | `Manager`, `Helper`, `Util`, `Utils`, `Data`, `Info`, `Processor`, `Wrapper`, `Impl`, `Base`, `Abstract`, `Dto`, `Entity`, `Model` in a type declared under `domain/` or in a use case folder |
|
|
596
690
|
| `purity/no-system-clock` | `new Date()` without argument, `Date.now()`, `performance.now()` in `domain/` or `application/` |
|
|
597
691
|
| `purity/no-ambient-randomness` | `Math.random`, the random source of `crypto`, an id library |
|
|
@@ -635,6 +729,8 @@ saying what to do instead. Exit code 1 when there is at least one error.
|
|
|
635
729
|
| `ports/value-import` | a class named in a dependency list, or given to `bind` or `rebind`, imported with `import type` or `import { type X }` |
|
|
636
730
|
| `scheduling/job-triggers-use-case` | in `application/scheduling/*.job.ts`: an exported class that does not implement `ScheduledJob`; a `run` that sends no command (no `.execute(` call); a repository in the dependency list or the constructor; an import from `domain/aggregates/`, `domain/entities/`, `domain/services/` or `infrastructure/`. A `builder.job(..)` registration of a class that lives elsewhere |
|
|
637
731
|
| `scheduling/job-name` | the first argument of `@Scheduled(..)` or `.job(..)` that is not a string literal `<context>.<job-name>` in lower-case kebab-case with the context of its file; a `systemActor(..)` of a job file passing another name; one job name used twice in the project |
|
|
732
|
+
| `errors/code-unique` | under `"stack.refusals": "factories"`, in the `domain/errors/` of a context: a code set a second time, by a factory (`refusal('CODE', ..)`) or by a class (`readonly code = 'CODE'`), with the file and line of the first. The same code in two contexts is not reported |
|
|
733
|
+
| `errors/known-code` | under `"stack.refusals": "factories"`, in a `*.route.ts`: a code of the `errors` list that no refusal of the context of the route sets, that no class outside the contexts sets, and that is not a code of the kit |
|
|
638
734
|
|
|
639
735
|
Five more ids belong to `@ddd-ts-kit/eslint-plugin`, which reads the syntax tree where this
|
|
640
736
|
checker reads text: `domain/aggregate-encapsulation`, `domain/value-object-immutability`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/roles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,qEAAqE;AACrE,eAAO,MAAM,KAAK,EAAE,SAAS,IAAI,
|
|
1
|
+
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/roles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,qEAAqE;AACrE,eAAO,MAAM,KAAK,EAAE,SAAS,IAAI,EAkEhC,CAAC"}
|
|
@@ -45,7 +45,24 @@ export const ROLES = [
|
|
|
45
45
|
{ directory: 'infrastructure/persistence', suffixes: ['.repository.ts', '.mapper.ts', '.reader.ts', '.schema.ts'] },
|
|
46
46
|
{ directory: 'infrastructure/external', suffixes: [] },
|
|
47
47
|
{ directory: 'infrastructure/anti-corruption', suffixes: [] },
|
|
48
|
-
{ directory: 'presentation/http', suffixes: ['.route.ts', '.controller.ts', '.dto.ts'] },
|
|
48
|
+
{ directory: 'presentation/http', suffixes: ['.routes.ts', '.route.ts', '.controller.ts', '.dto.ts'] },
|
|
49
|
+
{ directory: 'presentation/http/guards', suffixes: ['.guard.ts'] },
|
|
50
|
+
{ directory: 'presentation/http/shared', suffixes: [] },
|
|
51
|
+
{
|
|
52
|
+
directory: 'presentation/http/*/*',
|
|
53
|
+
suffixes: [
|
|
54
|
+
'.controller.ts',
|
|
55
|
+
'.params.ts',
|
|
56
|
+
'.query.ts',
|
|
57
|
+
'.headers.ts',
|
|
58
|
+
'.body.ts',
|
|
59
|
+
'.accepted.ts',
|
|
60
|
+
'.answer.ts',
|
|
61
|
+
'.line.ts',
|
|
62
|
+
'.mapper.ts',
|
|
63
|
+
'.serializer.ts',
|
|
64
|
+
],
|
|
65
|
+
},
|
|
49
66
|
{ directory: 'presentation/cli', suffixes: [] },
|
|
50
67
|
{ directory: 'test/builders', suffixes: ['.builder.ts'] },
|
|
51
68
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles.js","sourceRoot":"","sources":["../../../src/check/canonical/roles.ts"],"names":[],"mappings":"AAEA,qEAAqE;AACrE,MAAM,CAAC,MAAM,KAAK,GAAoB;IACpC,EAAE,SAAS,EAAE,oBAAoB,EAAE,QAAQ,EAAE,EAAE,EAAE;IACjD,EAAE,SAAS,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC,eAAe,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,eAAe,CAAC,EAAE;IAC7G,EAAE,SAAS,EAAE,iBAAiB,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE;IAC5E,EAAE,SAAS,EAAE,sBAAsB,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE;IAClG,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE;IACzE,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE;IACvD,EAAE,SAA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,SAAS,EAAE,4BAA4B,EAAE,QAAQ,EAAE,CAAC,gBAAgB,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,EAAE;IACnH,EAAE,SAAS,EAAE,yBAAyB,EAAE,QAAQ,EAAE,EAAE,EAAE;IACtD,EAAE,SAAS,EAAE,gCAAgC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC7D,EAAE,SAAS,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,SAAS,CAAC,EAAE;IACtG,EAAE,SAAS,EAAE,0BAA0B,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE;IAClE,EAAE,SAAS,EAAE,0BAA0B,EAAE,QAAQ,EAAE,EAAE,EAAE;IACvD;QACE,SAAS,EAAE,uBAAuB;QAClC,QAAQ,EAAE;YACR,gBAAgB;YAChB,YAAY;YACZ,WAAW;YACX,aAAa;YACb,UAAU;YACV,cAAc;YACd,YAAY;YACZ,UAAU;YACV,YAAY;YACZ,gBAAgB;SACjB;KACF;IACD,EAAE,SAAS,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC/C,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE;CAC1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"architecture-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"architecture-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAiE7C,gHAAgH;AAChH,eAAO,MAAM,kBAAkB,EAAE,SAAS,IAAI,EAgE7C,CAAC"}
|
|
@@ -24,6 +24,8 @@ import { declarationsConstructorInjection } from '../rules/declarations-construc
|
|
|
24
24
|
import { declarationsRoleDeclared } from '../rules/declarations-role-declared.js';
|
|
25
25
|
import { domainEventsDispatchedOnSave } from '../rules/domain-events-dispatched-on-save.js';
|
|
26
26
|
import { domainEventsTransactionalBeforeCommit } from '../rules/domain-events-transactional-before-commit.js';
|
|
27
|
+
import { errorsCodeUnique } from '../rules/errors-code-unique.js';
|
|
28
|
+
import { errorsKnownCode } from '../rules/errors-known-code.js';
|
|
27
29
|
import { eventsConsumerIdempotent } from '../rules/events-consumer-idempotent.js';
|
|
28
30
|
import { eventsDefinedInPublishedLanguage } from '../rules/events-defined-in-published-language.js';
|
|
29
31
|
import { eventsNameFormat } from '../rules/events-name-format.js';
|
|
@@ -122,5 +124,7 @@ export const ARCHITECTURE_RULES = [
|
|
|
122
124
|
importsAliasOnly,
|
|
123
125
|
importsExtension,
|
|
124
126
|
importsAliasDeclared,
|
|
127
|
+
errorsCodeUnique,
|
|
128
|
+
errorsKnownCode,
|
|
125
129
|
];
|
|
126
130
|
//# sourceMappingURL=architecture-rules.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"architecture-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,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gCAAgC;IAChC,WAAW;IACX,mBAAmB;IACnB,oBAAoB;IACpB,oBAAoB;IACpB,uBAAuB;IACvB,mBAAmB;IACnB,yBAAyB;IACzB,mBAAmB;IACnB,aAAa;IACb,iBAAiB;IACjB,uBAAuB;IACvB,mBAAmB;IACnB,kBAAkB;IAClB,mBAAmB;IACnB,kBAAkB;IAClB,eAAe;IACf,WAAW;IACX,qBAAqB;IACrB,aAAa;IACb,oBAAoB;IACpB,wBAAwB;IACxB,4BAA4B;IAC5B,qCAAqC;IACrC,kBAAkB;IAClB,aAAa;IACb,kBAAkB;IAClB,kBAAkB;IAClB,gBAAgB;IAChB,mBAAmB;IACnB,2BAA2B;IAC3B,2BAA2B;IAC3B,uBAAuB;IACvB,wBAAwB;IACxB,yBAAyB;IACzB,gCAAgC;IAChC,kBAAkB;IAClB,2BAA2B;IAC3B,oBAAoB;IACpB,yBAAyB;IACzB,gBAAgB;IAChB,4BAA4B;IAC5B,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,oBAAoB;IACpB,gBAAgB;IAChB,eAAe;CAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-only-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/eslint-only-rules.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"eslint-only-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/eslint-only-rules.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAAE,EAiD7F,CAAC"}
|
|
@@ -15,10 +15,34 @@ export const ESLINT_ONLY_RULES = [
|
|
|
15
15
|
id: 'domain/no-generic-error',
|
|
16
16
|
description: 'domain/ and application/ never `throw new Error(...)`: a business failure is a DomainError subclass.',
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
id: 'errors/through-factory',
|
|
20
|
+
description: 'Under "stack.refusals": "factories", a domain error is built by a static factory of its concept class: no `new` of a class of domain/errors/ outside that class.',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: 'errors/constructor-not-public',
|
|
24
|
+
description: 'Under "stack.refusals": "factories", the constructor of an error class of domain/errors/ is not public: the class extends ConceptError and declares none, or declares it private or protected.',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 'errors/factory-name',
|
|
28
|
+
description: 'Under "stack.refusals": "factories", a static factory of an error class is named after the refusal, never `create`, `make`, `of` or `error1`, and its code is that name in constant case, alone or with the name of the concept.',
|
|
29
|
+
},
|
|
18
30
|
{
|
|
19
31
|
id: 'application/handler-shape',
|
|
20
32
|
description: 'A *.handler.ts file exports one class with a single public method, execute.',
|
|
21
33
|
},
|
|
22
34
|
{ id: 'application/command-query-separation', description: 'A query handler never saves, deletes or publishes.' },
|
|
35
|
+
{
|
|
36
|
+
id: 'presentation/controller-shape',
|
|
37
|
+
description: 'A *.controller.ts file whose class carries @Controller exports that one class, whose single public method is handle.',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: 'presentation/controller-delegates',
|
|
41
|
+
description: 'A controller takes the bus of its method (CommandBus for POST, PUT, PATCH, DELETE; QueryBus for GET, HEAD), a request mapper and a serializer, and nothing else.',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: 'presentation/guard-at-the-edge',
|
|
45
|
+
description: 'A *.guard.ts file imports nothing from domain/ or infrastructure/, no repository, no unit of work and no command bus.',
|
|
46
|
+
},
|
|
23
47
|
];
|
|
24
48
|
//# sourceMappingURL=eslint-only-rules.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-only-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/eslint-only-rules.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAqE;IACjG;QACE,EAAE,EAAE,gCAAgC;QACpC,WAAW,EACT,0GAA0G;KAC7G;IACD;QACE,EAAE,EAAE,kCAAkC;QACtC,WAAW,EAAE,kGAAkG;KAChH;IACD;QACE,EAAE,EAAE,yBAAyB;QAC7B,WAAW,EAAE,sGAAsG;KACpH;IACD;QACE,EAAE,EAAE,2BAA2B;QAC/B,WAAW,EAAE,6EAA6E;KAC3F;IACD,EAAE,EAAE,EAAE,sCAAsC,EAAE,WAAW,EAAE,oDAAoD,EAAE;
|
|
1
|
+
{"version":3,"file":"eslint-only-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/eslint-only-rules.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAqE;IACjG;QACE,EAAE,EAAE,gCAAgC;QACpC,WAAW,EACT,0GAA0G;KAC7G;IACD;QACE,EAAE,EAAE,kCAAkC;QACtC,WAAW,EAAE,kGAAkG;KAChH;IACD;QACE,EAAE,EAAE,yBAAyB;QAC7B,WAAW,EAAE,sGAAsG;KACpH;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EACT,kKAAkK;KACrK;IACD;QACE,EAAE,EAAE,+BAA+B;QACnC,WAAW,EACT,gMAAgM;KACnM;IACD;QACE,EAAE,EAAE,qBAAqB;QACzB,WAAW,EACT,kOAAkO;KACrO;IACD;QACE,EAAE,EAAE,2BAA2B;QAC/B,WAAW,EAAE,6EAA6E;KAC3F;IACD,EAAE,EAAE,EAAE,sCAAsC,EAAE,WAAW,EAAE,oDAAoD,EAAE;IACjH;QACE,EAAE,EAAE,+BAA+B;QACnC,WAAW,EACT,sHAAsH;KACzH;IACD;QACE,EAAE,EAAE,mCAAmC;QACvC,WAAW,EACT,kKAAkK;KACrK;IACD;QACE,EAAE,EAAE,gCAAgC;QACpC,WAAW,EACT,uHAAuH;KAC1H;CACF,CAAC"}
|
|
@@ -2,8 +2,8 @@ import type { Scan } from '../scan/scan.js';
|
|
|
2
2
|
import type { DeclaredClass } from './declared-class.js';
|
|
3
3
|
/**
|
|
4
4
|
* The classes declared at the top level of a source, each with the declaration decorators it
|
|
5
|
-
* carries. A decorator counts when its name is imported, under that very name, from
|
|
6
|
-
* declarations entry of the kernel
|
|
5
|
+
* carries. A decorator counts when its name is imported, under that very name, from its entry
|
|
6
|
+
* in the same file: the declarations entry of the kernel, or `@ddd-ts-kit/http` for the edge.
|
|
7
7
|
*/
|
|
8
8
|
export declare function classesOf(scan: Scan): readonly DeclaredClass[];
|
|
9
9
|
//# sourceMappingURL=classes-of.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DECLARATION_DECORATORS } from '../../declared/declared-role.js';
|
|
1
|
+
import { DECLARATION_DECORATORS, DECORATOR_ENTRIES } from '../../declared/declared-role.js';
|
|
2
2
|
import { braceDepthAt } from '../text/brace-depth-at.js';
|
|
3
3
|
import { BRACKETS } from '../text/brackets.js';
|
|
4
4
|
import { DECLARATIONS_ENTRY } from './declarations-entry.js';
|
|
@@ -8,8 +8,8 @@ const EXPORT_BEFORE = /(?<![\w$.])export\s*$/;
|
|
|
8
8
|
const read = new WeakMap();
|
|
9
9
|
/**
|
|
10
10
|
* The classes declared at the top level of a source, each with the declaration decorators it
|
|
11
|
-
* carries. A decorator counts when its name is imported, under that very name, from
|
|
12
|
-
* declarations entry of the kernel
|
|
11
|
+
* carries. A decorator counts when its name is imported, under that very name, from its entry
|
|
12
|
+
* in the same file: the declarations entry of the kernel, or `@ddd-ts-kit/http` for the edge.
|
|
13
13
|
*/
|
|
14
14
|
export function classesOf(scan) {
|
|
15
15
|
const known = read.get(scan);
|
|
@@ -37,9 +37,7 @@ function readClasses(scan) {
|
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
function importedDecorators(scan) {
|
|
40
|
-
const names = scan.imports
|
|
41
|
-
.filter(({ specifier }) => specifier === DECLARATIONS_ENTRY)
|
|
42
|
-
.flatMap(({ names: bound }) => bound);
|
|
40
|
+
const names = scan.imports.flatMap(({ specifier, names: bound }) => bound.filter((name) => specifier === (DECORATOR_ENTRIES[name] ?? DECLARATIONS_ENTRY)));
|
|
43
41
|
return new Set(names.filter((name) => DECLARATION_DECORATORS.includes(name)));
|
|
44
42
|
}
|
|
45
43
|
/** Walks back from a class over the decorators written above it, whatever they are. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classes-of.js","sourceRoot":"","sources":["../../../src/check/declarations/classes-of.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"classes-of.js","sourceRoot":"","sources":["../../../src/check/declarations/classes-of.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAE5F,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAI7D,MAAM,KAAK,GAAG,uFAAuF,CAAC;AACtG,MAAM,cAAc,GAAG,kCAAkC,CAAC;AAC1D,MAAM,aAAa,GAAG,uBAAuB,CAAC;AAE9C,MAAM,IAAI,GAAG,IAAI,OAAO,EAAkC,CAAC;AAE3D;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,IAAU;IAClC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAE7B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC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@
|
|
|
1
|
+
import type { Project } from '../model/project.js';
|
|
2
|
+
/** The `errors/*` rules judge a project that says it builds its refusals through factories; one that does not say keeps the form of 0.2. */
|
|
3
|
+
export declare function buildsThroughFactories(project: Project): boolean;
|
|
4
|
+
//# sourceMappingURL=builds-through-factories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builds-through-factories.d.ts","sourceRoot":"","sources":["../../../src/check/errors/builds-through-factories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEnD,4IAA4I;AAC5I,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEhE"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** The `errors/*` rules judge a project that says it builds its refusals through factories; one that does not say keeps the form of 0.2. */
|
|
2
|
+
export function buildsThroughFactories(project) {
|
|
3
|
+
return project.config.stack.refusals === 'factories';
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=builds-through-factories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builds-through-factories.js","sourceRoot":"","sources":["../../../src/check/errors/builds-through-factories.ts"],"names":[],"mappings":"AAEA,4IAA4I;AAC5I,MAAM,UAAU,sBAAsB,CAAC,OAAgB;IACrD,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,KAAK,WAAW,CAAC;AACvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-code.d.ts","sourceRoot":"","sources":["../../../src/check/errors/error-code.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-code.js","sourceRoot":"","sources":["../../../src/check/errors/error-code.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Scan } from '../scan/scan.js';
|
|
2
|
+
import type { ErrorCode } from './error-code.js';
|
|
3
|
+
/**
|
|
4
|
+
* The codes a source gives to its refusals, in both forms: the first argument of
|
|
5
|
+
* `.refusal('CODE', ..)` in a factory, and the `readonly code = 'CODE'` field of a class per error.
|
|
6
|
+
*/
|
|
7
|
+
export declare function errorCodes(scan: Scan): ErrorCode[];
|
|
8
|
+
//# sourceMappingURL=error-codes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-codes.d.ts","sourceRoot":"","sources":["../../../src/check/errors/error-codes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAKjD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,EAAE,CAelD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { wholeLiteral } from '../declarations/whole-literal.js';
|
|
2
|
+
import { callArguments } from '../text/call-arguments.js';
|
|
3
|
+
const REFUSAL_CALL = /\.\s*refusal\s*\(/g;
|
|
4
|
+
const CODE_FIELD = /\breadonly\s+code\s*(?::[^=;]+)?=\s*/g;
|
|
5
|
+
/**
|
|
6
|
+
* The codes a source gives to its refusals, in both forms: the first argument of
|
|
7
|
+
* `.refusal('CODE', ..)` in a factory, and the `readonly code = 'CODE'` field of a class per error.
|
|
8
|
+
*/
|
|
9
|
+
export function errorCodes(scan) {
|
|
10
|
+
const built = [...scan.code.matchAll(REFUSAL_CALL)].flatMap((match) => {
|
|
11
|
+
const [code] = callArguments(scan.code, match.index + match[0].length - 1);
|
|
12
|
+
const literal = code === undefined ? undefined : wholeLiteral(scan, code);
|
|
13
|
+
return literal === undefined ? [] : [{ code: literal, line: scan.lineAt(match.index) }];
|
|
14
|
+
});
|
|
15
|
+
const fields = [...scan.code.matchAll(CODE_FIELD)].flatMap((match) => {
|
|
16
|
+
const literal = scan.strings.find((candidate) => candidate.start === match.index + match[0].length);
|
|
17
|
+
return literal === undefined ? [] : [{ code: literal.value, line: scan.lineAt(match.index) }];
|
|
18
|
+
});
|
|
19
|
+
return [...built, ...fields].sort((a, b) => a.line - b.line);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=error-codes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-codes.js","sourceRoot":"","sources":["../../../src/check/errors/error-codes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG1D,MAAM,YAAY,GAAG,oBAAoB,CAAC;AAC1C,MAAM,UAAU,GAAG,uCAAuC,CAAC;AAE3D;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,IAAU;IACnC,MAAM,KAAK,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACpE,MAAM,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC3E,MAAM,OAAO,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAE1E,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC1F,CAAC,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACnE,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;QAEpG,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAChG,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;AAC/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kit-error-codes.d.ts","sourceRoot":"","sources":["../../../src/check/errors/kit-error-codes.ts"],"names":[],"mappings":"AAAA,yHAAyH;AACzH,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,EAc5C,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** The codes of the refusals the packages of the kit raise, which a route may declare without a class of the project. */
|
|
2
|
+
export const KIT_ERROR_CODES = [
|
|
3
|
+
'VALIDATION_FAILED',
|
|
4
|
+
'NOT_FOUND',
|
|
5
|
+
'CONFLICT',
|
|
6
|
+
'INVARIANT_VIOLATION',
|
|
7
|
+
'UNAUTHORIZED',
|
|
8
|
+
'FORBIDDEN',
|
|
9
|
+
'CONCURRENCY_CONFLICT',
|
|
10
|
+
'INVALID_CRITERIA',
|
|
11
|
+
'INVALID_PAGE_REQUEST',
|
|
12
|
+
'TIMEOUT',
|
|
13
|
+
'CIRCUIT_OPEN',
|
|
14
|
+
'BULKHEAD_FULL',
|
|
15
|
+
'ATTEMPTS_EXHAUSTED',
|
|
16
|
+
];
|
|
17
|
+
//# sourceMappingURL=kit-error-codes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kit-error-codes.js","sourceRoot":"","sources":["../../../src/check/errors/kit-error-codes.ts"],"names":[],"mappings":"AAAA,yHAAyH;AACzH,MAAM,CAAC,MAAM,eAAe,GAAsB;IAChD,mBAAmB;IACnB,WAAW;IACX,UAAU;IACV,qBAAqB;IACrB,cAAc;IACd,WAAW;IACX,sBAAsB;IACtB,kBAAkB;IAClB,sBAAsB;IACtB,SAAS;IACT,cAAc;IACd,eAAe;IACf,oBAAoB;CACrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/errors-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA4BzD,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export const ERRORS_DOCS = {
|
|
2
|
+
'errors/code-unique': {
|
|
3
|
+
why: 'The code is the identity of a refusal for everything outside the domain: the HTTP mapper gives it a status, the OpenAPI document lists it, the audit trail and the span record it as the reason, a client branches on it and a test asserts it. Nothing downstream knows the class or the factory. Two refusals of one context under one code are therefore one refusal for every reader, whatever their messages say. The code is checked per context, since each context owns its language: the same code in two contexts is allowed, and the error mapper of the application gives it one status. Both forms are read, the first argument of `refusal(..)` in a factory and the `readonly code` field of a class per error. Judged under "stack.refusals": "factories" only: a project whose config does not say was written when an error was a class, and keeps working untouched.',
|
|
4
|
+
bad: `export class AppointmentError extends ConceptError {
|
|
5
|
+
static slotTaken(calendarId: string) {
|
|
6
|
+
return AppointmentError.refusal('BOOKING_REFUSED', 'The slot is already held.', { calendarId });
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
static outsideAvailability(startsAt: Date) {
|
|
10
|
+
return AppointmentError.refusal('BOOKING_REFUSED', 'The calendar takes no appointment then.', { startsAt });
|
|
11
|
+
}
|
|
12
|
+
}`,
|
|
13
|
+
good: `export class AppointmentError extends ConceptError {
|
|
14
|
+
static slotTaken(calendarId: string) {
|
|
15
|
+
return AppointmentError.refusal('SLOT_TAKEN', 'The slot is already held.', { calendarId });
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static outsideAvailability(startsAt: Date) {
|
|
19
|
+
return AppointmentError.refusal('OUTSIDE_AVAILABILITY', 'The calendar takes no appointment then.', { startsAt });
|
|
20
|
+
}
|
|
21
|
+
}`,
|
|
22
|
+
},
|
|
23
|
+
'errors/known-code': {
|
|
24
|
+
why: 'The `errors` list of a route is what the OpenAPI document promises: one problem response per status of the codes it names. A code written there that no refusal sets, misspelled or left behind by a renamed factory, is a response the contract documents and the API never gives, while the refusal really raised is missing from it. A code exists when a factory or an error class of the context of the route sets it, when a class outside the contexts (the platform, the shared kernel) does, or when it is a code of the kit: VALIDATION_FAILED, NOT_FOUND, CONFLICT, INVARIANT_VIOLATION, UNAUTHORIZED, FORBIDDEN, CONCURRENCY_CONFLICT, INVALID_CRITERIA, INVALID_PAGE_REQUEST, TIMEOUT, CIRCUIT_OPEN, BULKHEAD_FULL, ATTEMPTS_EXHAUSTED. A code another context sets does not count: a context answers with its own language. Judged under "stack.refusals": "factories" only.',
|
|
25
|
+
bad: `// domain/errors/appointment.error.ts sets 'SLOT_TAKEN'
|
|
26
|
+
defineRoute({ method: 'POST', path: '/appointments', errors: ['FORBIDDEN', 'SLOT_ALREADY_TAKEN'], security: ['bearer'] }, book);`,
|
|
27
|
+
good: `defineRoute({ method: 'POST', path: '/appointments', errors: ['FORBIDDEN', 'SLOT_TAKEN'], security: ['bearer'] }, book);`,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=errors-docs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors-docs.js","sourceRoot":"","sources":["../../../src/check/explain/errors-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,oBAAoB,EAAE;QACpB,GAAG,EAAE,y1BAAy1B;QAC91B,GAAG,EAAE;;;;;;;;EAQP;QACE,IAAI,EAAE;;;;;;;;EAQR;KACC;IACD,mBAAmB,EAAE;QACnB,GAAG,EAAE,41BAA41B;QACj2B,GAAG,EAAE;iIACwH;QAC7H,IAAI,EAAE,0HAA0H;KACjI;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/rule-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"rule-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/rule-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAgBpD,oGAAoG;AACpG,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAevD,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AUTHZ_DOCS } from './authz-docs.js';
|
|
2
2
|
import { CLEAN_DOCS } from './clean-docs.js';
|
|
3
3
|
import { CONTEXT_DOCS } from './context-docs.js';
|
|
4
|
+
import { ERRORS_DOCS } from './errors-docs.js';
|
|
4
5
|
import { EVENTS_DOCS } from './events-docs.js';
|
|
5
6
|
import { IMPORTS_DOCS } from './imports-docs.js';
|
|
6
7
|
import { LANGUAGE_DOCS } from './language-docs.js';
|
|
@@ -16,6 +17,7 @@ export const RULE_DOCS = {
|
|
|
16
17
|
...AUTHZ_DOCS,
|
|
17
18
|
...CLEAN_DOCS,
|
|
18
19
|
...CONTEXT_DOCS,
|
|
20
|
+
...ERRORS_DOCS,
|
|
19
21
|
...EVENTS_DOCS,
|
|
20
22
|
...IMPORTS_DOCS,
|
|
21
23
|
...LANGUAGE_DOCS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-docs.js","sourceRoot":"","sources":["../../../src/check/explain/rule-docs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,oGAAoG;AACpG,MAAM,CAAC,MAAM,SAAS,GAAsC;IAC1D,GAAG,UAAU;IACb,GAAG,UAAU;IACb,GAAG,YAAY;IACf,GAAG,W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AAa;IAChB,GAAG,SAAS;IACZ,GAAG,WAAW;CACf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"tree-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAkFvD,CAAC"}
|
|
@@ -11,12 +11,13 @@ contexts/billing/billing.declarations.ts // declared style only`,
|
|
|
11
11
|
good: `## Purpose, ## Classification, ## Ubiquitous language, ## Aggregates, ## Published events, ## Relationships`,
|
|
12
12
|
},
|
|
13
13
|
'naming/suffix': {
|
|
14
|
-
why: 'The suffix states the role of a file before it is opened and lets the other rules know what they are looking at. Kebab-case avoids case-only renames that break on some file systems. A use case folder holds its message, its handler and, when it answers something, its result (*.result.ts); a job is application/scheduling/*.job.ts.
|
|
14
|
+
why: 'The suffix states the role of a file before it is opened and lets the other rules know what they are looking at. Kebab-case avoids case-only renames that break on some file systems. A use case folder holds its message, its handler and, when it answers something, its result (*.result.ts); a job is application/scheduling/*.job.ts. Under presentation/http/ a controller lives in a folder of its own, presentation/http/<resource>/<use-case>/, with the schemas of its request and of its answer (*.params.ts, *.query.ts, *.headers.ts, *.body.ts, *.accepted.ts, *.answer.ts, *.line.ts), its *.mapper.ts and its *.serializer.ts; a route group is presentation/http/<name>.routes.ts, a guard presentation/http/guards/*.guard.ts, and what several routes share is under presentation/http/shared/. Function routes stay flat: *.route.ts and *.dto.ts, listed in presentation/http/<context>.routes.ts.',
|
|
15
15
|
bad: `domain/aggregates/Invoice.ts`,
|
|
16
16
|
good: `domain/aggregates/invoice.aggregate.ts
|
|
17
17
|
application/commands/issue-invoice/issue-invoice.result.ts
|
|
18
18
|
application/scheduling/send-reminders.job.ts
|
|
19
|
-
presentation/http/
|
|
19
|
+
presentation/http/invoices.routes.ts
|
|
20
|
+
presentation/http/invoices/issue-invoice/issue-invoice.controller.ts`,
|
|
20
21
|
},
|
|
21
22
|
'naming/search-not-list': {
|
|
22
23
|
why: 'A read that takes criteria, a scope or a page is a search, and the whole project says so with one word: a port, its adapters, its fakes, the query and its folder. Two words for one thing make a reader wonder what the difference is, and a generated name then disagrees with a written one. Judged: a method named list, or list followed by an upper-case letter, in domain/repositories/*.repository.ts, application/ports/*.port.ts, infrastructure/ and test/fakes/ of a context (properties are not judged, nor listAccessible, which the Authorizer port of the kit requires); and under application/queries/, a folder or a file named list or starting with list- or list., and a class named List or starting with List followed by an upper-case letter. A read of one element or none stays findById or findBy...',
|
|
@@ -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,icAAic;QACtc,GAAG,EAAE,2CAA2C;QAChD,IAAI,EAAE;kEACwD;KAC/D;IACD,kBAAkB,EAAE;QAClB,GAAG,EAAE,4OAA4O;QACjP,GAAG,EAAE,6GAA6G;QAClH,IAAI,EAAE,6GAA6G;KACpH;IACD,eAAe,EAAE;QACf,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,icAAic;QACtc,GAAG,EAAE,2CAA2C;QAChD,IAAI,EAAE;kEACwD;KAC/D;IACD,kBAAkB,EAAE;QAClB,GAAG,EAAE,4OAA4O;QACjP,GAAG,EAAE,6GAA6G;QAClH,IAAI,EAAE,6GAA6G;KACpH;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,6BAA6B,EAAE;QAC7B,GAAG,EAAE,kYAAkY;QACvY,GAAG,EAAE;;;;;;;2CAOkC;QACvC,IAAI,EAAE;;;4BAGkB;KACzB;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,kPAAkP;QACvP,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;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authz-declared-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/authz-declared-fixtures.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"authz-declared-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/authz-declared-fixtures.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAQ5C,eAAO,MAAM,uBAAuB,EAAE,SAAS,OAAO,EAmIrD,CAAC"}
|