ddd-ts-kit 0.113.2 → 0.115.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 +375 -1
- package/README.fr.md +45 -34
- package/README.md +43 -32
- package/dist/build/specifier-literals.d.ts.map +1 -1
- package/dist/build/specifier-literals.js +6 -6
- package/dist/build/specifier-literals.js.map +1 -1
- package/dist/check/catalogue/default-severity.d.ts +3 -0
- package/dist/check/catalogue/default-severity.d.ts.map +1 -0
- package/dist/check/catalogue/default-severity.js +8 -0
- package/dist/check/catalogue/default-severity.js.map +1 -0
- package/dist/check/catalogue/delegated-rules.d.ts +2 -0
- package/dist/check/catalogue/delegated-rules.d.ts.map +1 -1
- package/dist/check/catalogue/delegated-rules.js.map +1 -1
- package/dist/check/catalogue/eslint-judged-rules.d.ts +7 -0
- package/dist/check/catalogue/eslint-judged-rules.d.ts.map +1 -0
- package/dist/check/catalogue/eslint-judged-rules.js +64 -0
- package/dist/check/catalogue/eslint-judged-rules.js.map +1 -0
- package/dist/check/catalogue/eslint-only-rules.d.ts +8 -4
- package/dist/check/catalogue/eslint-only-rules.d.ts.map +1 -1
- package/dist/check/catalogue/eslint-only-rules.js +23 -1
- package/dist/check/catalogue/eslint-only-rules.js.map +1 -1
- package/dist/check/catalogue/formatter-rule.d.ts +1 -0
- package/dist/check/catalogue/formatter-rule.d.ts.map +1 -1
- package/dist/check/catalogue/formatter-rule.js +1 -0
- package/dist/check/catalogue/formatter-rule.js.map +1 -1
- package/dist/check/catalogue/rule-ids.d.ts.map +1 -1
- package/dist/check/catalogue/rule-ids.js +2 -2
- package/dist/check/catalogue/rule-ids.js.map +1 -1
- package/dist/check/catalogue/rules.d.ts +1 -0
- package/dist/check/catalogue/rules.d.ts.map +1 -1
- package/dist/check/catalogue/rules.js +9 -1
- package/dist/check/catalogue/rules.js.map +1 -1
- package/dist/check/catalogue/severity-of.d.ts +7 -0
- package/dist/check/catalogue/severity-of.d.ts.map +1 -0
- package/dist/check/catalogue/severity-of.js +7 -0
- package/dist/check/catalogue/severity-of.js.map +1 -0
- package/dist/check/catalogue/standalone-rule-ids.d.ts +3 -0
- package/dist/check/catalogue/standalone-rule-ids.d.ts.map +1 -0
- package/dist/check/catalogue/standalone-rule-ids.js +4 -0
- package/dist/check/catalogue/standalone-rule-ids.js.map +1 -0
- package/dist/check/commands/baseline-command.d.ts +6 -0
- package/dist/check/commands/baseline-command.d.ts.map +1 -0
- package/dist/check/commands/baseline-command.js +43 -0
- package/dist/check/commands/baseline-command.js.map +1 -0
- package/dist/check/commands/changed-since.d.ts +6 -0
- package/dist/check/commands/changed-since.d.ts.map +1 -0
- package/dist/check/commands/changed-since.js +14 -0
- package/dist/check/commands/changed-since.js.map +1 -0
- package/dist/check/commands/check-command.d.ts +2 -2
- package/dist/check/commands/check-command.d.ts.map +1 -1
- package/dist/check/commands/check-command.js +24 -91
- package/dist/check/commands/check-command.js.map +1 -1
- package/dist/check/commands/check-file-command.d.ts +1 -2
- package/dist/check/commands/check-file-command.d.ts.map +1 -1
- package/dist/check/commands/check-file-command.js +29 -26
- package/dist/check/commands/check-file-command.js.map +1 -1
- package/dist/check/commands/check-formats.d.ts +4 -0
- package/dist/check/commands/check-formats.d.ts.map +1 -0
- package/dist/check/commands/check-formats.js +3 -0
- package/dist/check/commands/check-formats.js.map +1 -0
- package/dist/check/commands/clean-only-command.d.ts +6 -0
- package/dist/check/commands/clean-only-command.d.ts.map +1 -0
- package/dist/check/commands/clean-only-command.js +51 -0
- package/dist/check/commands/clean-only-command.js.map +1 -0
- package/dist/check/commands/explain-command.d.ts +1 -2
- package/dist/check/commands/explain-command.d.ts.map +1 -1
- package/dist/check/commands/explain-command.js +26 -18
- package/dist/check/commands/explain-command.js.map +1 -1
- package/dist/check/commands/print-check.d.ts +12 -0
- package/dist/check/commands/print-check.d.ts.map +1 -0
- package/dist/check/commands/print-check.js +8 -0
- package/dist/check/commands/print-check.js.map +1 -0
- package/dist/check/commands/refuse-missing-paths.d.ts +4 -0
- package/dist/check/commands/refuse-missing-paths.d.ts.map +1 -0
- package/dist/check/commands/refuse-missing-paths.js +11 -0
- package/dist/check/commands/refuse-missing-paths.js.map +1 -0
- package/dist/check/commands/rules-command.d.ts +1 -2
- package/dist/check/commands/rules-command.d.ts.map +1 -1
- package/dist/check/commands/rules-command.js +17 -20
- package/dist/check/commands/rules-command.js.map +1 -1
- package/dist/check/commands/self-check.d.ts +1 -3
- package/dist/check/commands/self-check.d.ts.map +1 -1
- package/dist/check/commands/self-check.js +25 -19
- package/dist/check/commands/self-check.js.map +1 -1
- package/dist/check/domain-events/event-handlers-of.d.ts +2 -2
- package/dist/check/domain-events/event-handlers-of.d.ts.map +1 -1
- package/dist/check/domain-events/event-handlers-of.js +1 -2
- package/dist/check/domain-events/event-handlers-of.js.map +1 -1
- package/dist/check/engine/run-check.d.ts.map +1 -1
- package/dist/check/engine/run-check.js +17 -11
- package/dist/check/engine/run-check.js.map +1 -1
- package/dist/check/errors/builds-through-factories.d.ts +2 -2
- package/dist/check/errors/builds-through-factories.d.ts.map +1 -1
- package/dist/check/errors/builds-through-factories.js.map +1 -1
- package/dist/check/errors/kit-error-codes.d.ts.map +1 -1
- package/dist/check/errors/kit-error-codes.js +2 -0
- package/dist/check/errors/kit-error-codes.js.map +1 -1
- package/dist/check/explain/documented-rule.d.ts +1 -1
- package/dist/check/explain/documented-rule.d.ts.map +1 -1
- package/dist/check/explain/documented-rule.js +4 -7
- package/dist/check/explain/documented-rule.js.map +1 -1
- package/dist/check/fixtures/alias-declarations.js +2 -2
- package/dist/check/fixtures/alias-declarations.js.map +1 -1
- package/dist/check/fixtures/alias-declared-fixtures.js +1 -1
- package/dist/check/fixtures/alias-declared-fixtures.js.map +1 -1
- package/dist/check/fixtures/config-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/config-fixtures.js +29 -0
- package/dist/check/fixtures/config-fixtures.js.map +1 -1
- package/dist/check/fixtures/declarations-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/declarations-fixtures.js +4 -0
- package/dist/check/fixtures/declarations-fixtures.js.map +1 -1
- package/dist/check/fixtures/domain-events-fixtures.js +5 -5
- package/dist/check/fixtures/domain-events-fixtures.js.map +1 -1
- package/dist/check/fixtures/purity-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/purity-fixtures.js +25 -0
- package/dist/check/fixtures/purity-fixtures.js.map +1 -1
- package/dist/check/fixtures/tenancy-prisma-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/tenancy-prisma-fixtures.js +5 -0
- package/dist/check/fixtures/tenancy-prisma-fixtures.js.map +1 -1
- package/dist/check/fixtures/tenancy-typeorm-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/tenancy-typeorm-fixtures.js +1 -0
- package/dist/check/fixtures/tenancy-typeorm-fixtures.js.map +1 -1
- package/dist/check/governance/records-of.d.ts +4 -0
- package/dist/check/governance/records-of.d.ts.map +1 -0
- package/dist/check/governance/records-of.js +5 -0
- package/dist/check/governance/records-of.js.map +1 -0
- package/dist/check/language/glossaries-of.d.ts +4 -0
- package/dist/check/language/glossaries-of.d.ts.map +1 -0
- package/dist/check/language/glossaries-of.js +5 -0
- package/dist/check/language/glossaries-of.js.map +1 -0
- package/dist/check/language/glossaries.d.ts +0 -3
- package/dist/check/language/glossaries.d.ts.map +1 -1
- package/dist/check/language/glossaries.js +0 -9
- package/dist/check/language/glossaries.js.map +1 -1
- package/dist/check/migrations/drizzle-migration-folder.d.ts +4 -0
- package/dist/check/migrations/drizzle-migration-folder.d.ts.map +1 -0
- package/dist/check/migrations/drizzle-migration-folder.js +7 -0
- package/dist/check/migrations/drizzle-migration-folder.js.map +1 -0
- package/dist/check/migrations/migrations-in.d.ts +6 -0
- package/dist/check/migrations/migrations-in.d.ts.map +1 -0
- package/dist/check/migrations/migrations-in.js +28 -0
- package/dist/check/migrations/migrations-in.js.map +1 -0
- package/dist/check/migrations/read-migration-folder.d.ts.map +1 -1
- package/dist/check/migrations/read-migration-folder.js +2 -34
- package/dist/check/migrations/read-migration-folder.js.map +1 -1
- package/dist/check/model/finding.d.ts +7 -0
- package/dist/check/model/finding.d.ts.map +1 -1
- package/dist/check/model/project.d.ts +17 -6
- package/dist/check/model/project.d.ts.map +1 -1
- package/dist/check/model/resolved-import.d.ts +3 -7
- package/dist/check/model/resolved-import.d.ts.map +1 -1
- package/dist/check/model/rule.d.ts +36 -7
- package/dist/check/model/rule.d.ts.map +1 -1
- package/dist/check/ports/class-declaring.d.ts +2 -2
- package/dist/check/ports/class-declaring.d.ts.map +1 -1
- package/dist/check/ports/class-declaring.js +1 -2
- package/dist/check/ports/class-declaring.js.map +1 -1
- package/dist/check/privacy/judged-only-when-on.d.ts +3 -0
- package/dist/check/privacy/judged-only-when-on.d.ts.map +1 -0
- package/dist/check/privacy/judged-only-when-on.js +3 -0
- package/dist/check/privacy/judged-only-when-on.js.map +1 -0
- package/dist/check/project/assemble-project.d.ts +7 -2
- package/dist/check/project/assemble-project.d.ts.map +1 -1
- package/dist/check/project/assemble-project.js +10 -8
- package/dist/check/project/assemble-project.js.map +1 -1
- package/dist/check/project/load-source-file.d.ts.map +1 -1
- package/dist/check/project/load-source-file.js +1 -7
- package/dist/check/project/load-source-file.js.map +1 -1
- package/dist/check/project/source-reader.d.ts +7 -0
- package/dist/check/project/source-reader.d.ts.map +1 -0
- package/dist/check/project/source-reader.js +29 -0
- package/dist/check/project/source-reader.js.map +1 -0
- package/dist/check/purity/ambient-mentions.d.ts +8 -0
- package/dist/check/purity/ambient-mentions.d.ts.map +1 -0
- package/dist/check/purity/ambient-mentions.js +81 -0
- package/dist/check/purity/ambient-mentions.js.map +1 -0
- package/dist/check/purity/define-purity-rule.d.ts +9 -4
- package/dist/check/purity/define-purity-rule.d.ts.map +1 -1
- package/dist/check/purity/define-purity-rule.js +23 -16
- package/dist/check/purity/define-purity-rule.js.map +1 -1
- package/dist/check/purity/forbidden-named-imports.d.ts +6 -0
- package/dist/check/purity/forbidden-named-imports.d.ts.map +1 -0
- package/dist/check/purity/forbidden-named-imports.js +17 -0
- package/dist/check/purity/forbidden-named-imports.js.map +1 -0
- package/dist/check/purity/forbidden-use.d.ts +6 -0
- package/dist/check/purity/forbidden-use.d.ts.map +1 -0
- package/dist/check/purity/forbidden-use.js +2 -0
- package/dist/check/purity/forbidden-use.js.map +1 -0
- package/dist/check/purity/forbidden-uses.d.ts +6 -0
- package/dist/check/purity/forbidden-uses.d.ts.map +1 -0
- package/dist/check/purity/forbidden-uses.js +57 -0
- package/dist/check/purity/forbidden-uses.js.map +1 -0
- package/dist/check/purity/is-member-declaration.d.ts +8 -0
- package/dist/check/purity/is-member-declaration.d.ts.map +1 -0
- package/dist/check/purity/is-member-declaration.js +32 -0
- package/dist/check/purity/is-member-declaration.js.map +1 -0
- package/dist/check/purity/keys-taken-from.d.ts +9 -0
- package/dist/check/purity/keys-taken-from.d.ts.map +1 -0
- package/dist/check/purity/keys-taken-from.js +26 -0
- package/dist/check/purity/keys-taken-from.js.map +1 -0
- package/dist/check/purity/local-scopes.d.ts +9 -0
- package/dist/check/purity/local-scopes.d.ts.map +1 -0
- package/dist/check/purity/local-scopes.js +66 -0
- package/dist/check/purity/local-scopes.js.map +1 -0
- package/dist/check/purity/member-after.d.ts +4 -0
- package/dist/check/purity/member-after.d.ts.map +1 -0
- package/dist/check/purity/member-after.js +14 -0
- package/dist/check/purity/member-after.js.map +1 -0
- package/dist/check/purity/mention.d.ts +7 -0
- package/dist/check/purity/mention.d.ts.map +1 -0
- package/dist/check/purity/mention.js +2 -0
- package/dist/check/purity/mention.js.map +1 -0
- package/dist/check/purity/reference/forbidden-call.d.ts +4 -0
- package/dist/check/purity/reference/forbidden-call.d.ts.map +1 -0
- package/dist/check/purity/reference/forbidden-call.js +5 -0
- package/dist/check/purity/reference/forbidden-call.js.map +1 -0
- package/dist/check/purity/reference/forbidden-construction.d.ts +4 -0
- package/dist/check/purity/reference/forbidden-construction.d.ts.map +1 -0
- package/dist/check/purity/reference/forbidden-construction.js +8 -0
- package/dist/check/purity/reference/forbidden-construction.js.map +1 -0
- package/dist/check/purity/reference/forbidden-member.d.ts +4 -0
- package/dist/check/purity/reference/forbidden-member.d.ts.map +1 -0
- package/dist/check/purity/reference/forbidden-member.js +9 -0
- package/dist/check/purity/reference/forbidden-member.js.map +1 -0
- package/dist/check/purity/reference/forbidden-named-import.d.ts +4 -0
- package/dist/check/purity/reference/forbidden-named-import.d.ts.map +1 -0
- package/dist/check/purity/reference/forbidden-named-import.js +7 -0
- package/dist/check/purity/reference/forbidden-named-import.js.map +1 -0
- package/dist/check/purity/reference/global-objects.d.ts +3 -0
- package/dist/check/purity/reference/global-objects.d.ts.map +1 -0
- package/dist/check/purity/reference/global-objects.js +3 -0
- package/dist/check/purity/reference/global-objects.js.map +1 -0
- package/dist/check/purity/reference/purity-table.d.ts +21 -0
- package/dist/check/purity/reference/purity-table.d.ts.map +1 -0
- package/dist/check/purity/reference/purity-table.js +2 -0
- package/dist/check/purity/reference/purity-table.js.map +1 -0
- package/dist/check/purity/reference/purity-tables.d.ts +48 -0
- package/dist/check/purity/reference/purity-tables.d.ts.map +1 -0
- package/dist/check/purity/reference/purity-tables.js +68 -0
- package/dist/check/purity/reference/purity-tables.js.map +1 -0
- package/dist/check/purity/taken-key.d.ts +6 -0
- package/dist/check/purity/taken-key.d.ts.map +1 -0
- package/dist/check/purity/taken-key.js +2 -0
- package/dist/check/purity/taken-key.js.map +1 -0
- package/dist/check/purity/text/body-after.d.ts +7 -0
- package/dist/check/purity/text/body-after.d.ts.map +1 -0
- package/dist/check/purity/text/body-after.js +49 -0
- package/dist/check/purity/text/body-after.js.map +1 -0
- package/dist/check/purity/text/holder-of.d.ts +4 -0
- package/dist/check/purity/text/holder-of.d.ts.map +1 -0
- package/dist/check/purity/text/holder-of.js +17 -0
- package/dist/check/purity/text/holder-of.js.map +1 -0
- package/dist/check/purity/text/significant-after.d.ts +3 -0
- package/dist/check/purity/text/significant-after.d.ts.map +1 -0
- package/dist/check/purity/text/significant-after.js +9 -0
- package/dist/check/purity/text/significant-after.js.map +1 -0
- package/dist/check/purity/text/significant-before.d.ts +3 -0
- package/dist/check/purity/text/significant-before.d.ts.map +1 -0
- package/dist/check/purity/text/significant-before.js +9 -0
- package/dist/check/purity/text/significant-before.js.map +1 -0
- package/dist/check/purity/text/span.d.ts +6 -0
- package/dist/check/purity/text/span.d.ts.map +1 -0
- package/dist/check/purity/text/span.js +2 -0
- package/dist/check/purity/text/span.js.map +1 -0
- package/dist/check/purity/text/word-before.d.ts +3 -0
- package/dist/check/purity/text/word-before.d.ts.map +1 -0
- package/dist/check/purity/text/word-before.js +6 -0
- package/dist/check/purity/text/word-before.js.map +1 -0
- package/dist/check/read-models/list-findings.d.ts.map +1 -1
- package/dist/check/read-models/list-findings.js +3 -4
- package/dist/check/read-models/list-findings.js.map +1 -1
- package/dist/check/rules/aspects-outside-in.d.ts +2 -2
- package/dist/check/rules/aspects-outside-in.d.ts.map +1 -1
- package/dist/check/rules/aspects-outside-in.js +21 -14
- package/dist/check/rules/aspects-outside-in.js.map +1 -1
- package/dist/check/rules/aspects-timeout-covers-delegate.d.ts +2 -2
- package/dist/check/rules/aspects-timeout-covers-delegate.d.ts.map +1 -1
- package/dist/check/rules/aspects-timeout-covers-delegate.js +18 -1
- package/dist/check/rules/aspects-timeout-covers-delegate.js.map +1 -1
- package/dist/check/rules/authz-actor-explicit.d.ts +2 -2
- package/dist/check/rules/authz-actor-explicit.d.ts.map +1 -1
- package/dist/check/rules/authz-actor-explicit.js +16 -4
- package/dist/check/rules/authz-actor-explicit.js.map +1 -1
- package/dist/check/rules/authz-declared.d.ts +2 -2
- package/dist/check/rules/authz-declared.d.ts.map +1 -1
- package/dist/check/rules/authz-declared.js +17 -3
- package/dist/check/rules/authz-declared.js.map +1 -1
- package/dist/check/rules/authz-fields-by-schema.d.ts +2 -2
- package/dist/check/rules/authz-fields-by-schema.d.ts.map +1 -1
- package/dist/check/rules/authz-fields-by-schema.js +14 -4
- package/dist/check/rules/authz-fields-by-schema.js.map +1 -1
- package/dist/check/rules/authz-granted.d.ts +2 -2
- package/dist/check/rules/authz-granted.d.ts.map +1 -1
- package/dist/check/rules/authz-granted.js +17 -1
- package/dist/check/rules/authz-granted.js.map +1 -1
- package/dist/check/rules/authz-in-application.d.ts +2 -2
- package/dist/check/rules/authz-in-application.d.ts.map +1 -1
- package/dist/check/rules/authz-in-application.js +19 -3
- package/dist/check/rules/authz-in-application.js.map +1 -1
- package/dist/check/rules/authz-policy-asked.d.ts +2 -2
- package/dist/check/rules/authz-policy-asked.d.ts.map +1 -1
- package/dist/check/rules/authz-policy-asked.js +15 -1
- package/dist/check/rules/authz-policy-asked.js.map +1 -1
- package/dist/check/rules/authz-resource-modelled.d.ts +2 -2
- package/dist/check/rules/authz-resource-modelled.d.ts.map +1 -1
- package/dist/check/rules/authz-resource-modelled.js +19 -1
- package/dist/check/rules/authz-resource-modelled.js.map +1 -1
- package/dist/check/rules/authz-scope-narrows.d.ts +2 -2
- package/dist/check/rules/authz-scope-narrows.d.ts.map +1 -1
- package/dist/check/rules/authz-scope-narrows.js +15 -1
- package/dist/check/rules/authz-scope-narrows.js.map +1 -1
- package/dist/check/rules/authz-system-actor-granted.d.ts +2 -2
- package/dist/check/rules/authz-system-actor-granted.d.ts.map +1 -1
- package/dist/check/rules/authz-system-actor-granted.js +13 -1
- package/dist/check/rules/authz-system-actor-granted.js.map +1 -1
- package/dist/check/rules/clean-blank-lines.d.ts +2 -2
- package/dist/check/rules/clean-blank-lines.d.ts.map +1 -1
- package/dist/check/rules/clean-blank-lines.js +18 -6
- package/dist/check/rules/clean-blank-lines.js.map +1 -1
- package/dist/check/rules/clean-braces.d.ts +2 -2
- package/dist/check/rules/clean-braces.d.ts.map +1 -1
- package/dist/check/rules/clean-braces.js +26 -8
- package/dist/check/rules/clean-braces.js.map +1 -1
- package/dist/check/rules/clean-file-size.d.ts +2 -2
- package/dist/check/rules/clean-file-size.d.ts.map +1 -1
- package/dist/check/rules/clean-file-size.js +10 -4
- package/dist/check/rules/clean-file-size.js.map +1 -1
- package/dist/check/rules/clean-function-size.d.ts +2 -2
- package/dist/check/rules/clean-function-size.d.ts.map +1 -1
- package/dist/check/rules/clean-function-size.js +19 -20
- package/dist/check/rules/clean-function-size.js.map +1 -1
- package/dist/check/rules/clean-no-commented-out-code.d.ts +2 -2
- package/dist/check/rules/clean-no-commented-out-code.d.ts.map +1 -1
- package/dist/check/rules/clean-no-commented-out-code.js +18 -14
- package/dist/check/rules/clean-no-commented-out-code.js.map +1 -1
- package/dist/check/rules/clean-no-escape-hatch.d.ts +2 -2
- package/dist/check/rules/clean-no-escape-hatch.d.ts.map +1 -1
- package/dist/check/rules/clean-no-escape-hatch.js +24 -17
- package/dist/check/rules/clean-no-escape-hatch.js.map +1 -1
- package/dist/check/rules/clean-no-flag-argument.d.ts +2 -2
- package/dist/check/rules/clean-no-flag-argument.d.ts.map +1 -1
- package/dist/check/rules/clean-no-flag-argument.js +10 -4
- package/dist/check/rules/clean-no-flag-argument.js.map +1 -1
- package/dist/check/rules/clean-no-hash-private.d.ts +2 -2
- package/dist/check/rules/clean-no-hash-private.d.ts.map +1 -1
- package/dist/check/rules/clean-no-hash-private.js +22 -4
- package/dist/check/rules/clean-no-hash-private.js.map +1 -1
- package/dist/check/rules/clean-no-noise-comment.d.ts +2 -2
- package/dist/check/rules/clean-no-noise-comment.d.ts.map +1 -1
- package/dist/check/rules/clean-no-noise-comment.js +12 -3
- package/dist/check/rules/clean-no-noise-comment.js.map +1 -1
- package/dist/check/rules/clean-one-export-per-file.d.ts +2 -2
- package/dist/check/rules/clean-one-export-per-file.d.ts.map +1 -1
- package/dist/check/rules/clean-one-export-per-file.js +24 -11
- package/dist/check/rules/clean-one-export-per-file.js.map +1 -1
- package/dist/check/rules/clean-stepdown.d.ts +2 -2
- package/dist/check/rules/clean-stepdown.d.ts.map +1 -1
- package/dist/check/rules/clean-stepdown.js +16 -10
- package/dist/check/rules/clean-stepdown.js.map +1 -1
- package/dist/check/rules/composition-only-in-module.d.ts +2 -2
- package/dist/check/rules/composition-only-in-module.d.ts.map +1 -1
- package/dist/check/rules/composition-only-in-module.js +18 -4
- package/dist/check/rules/composition-only-in-module.js.map +1 -1
- package/dist/check/rules/config-rule-off-everywhere.d.ts +2 -2
- package/dist/check/rules/config-rule-off-everywhere.d.ts.map +1 -1
- package/dist/check/rules/config-rule-off-everywhere.js +9 -1
- package/dist/check/rules/config-rule-off-everywhere.js.map +1 -1
- package/dist/check/rules/config-suppression-needs-reason.d.ts +4 -0
- package/dist/check/rules/config-suppression-needs-reason.d.ts.map +1 -0
- package/dist/check/rules/config-suppression-needs-reason.js +26 -0
- package/dist/check/rules/config-suppression-needs-reason.js.map +1 -0
- package/dist/check/rules/config-unused-suppression.d.ts +3 -0
- package/dist/check/rules/config-unused-suppression.d.ts.map +1 -0
- package/dist/check/rules/config-unused-suppression.js +48 -0
- package/dist/check/rules/config-unused-suppression.js.map +1 -0
- package/dist/check/rules/config-valid.d.ts +2 -2
- package/dist/check/rules/config-valid.d.ts.map +1 -1
- package/dist/check/rules/config-valid.js +11 -1
- package/dist/check/rules/config-valid.js.map +1 -1
- package/dist/check/rules/context-declared-relationship.d.ts +2 -2
- package/dist/check/rules/context-declared-relationship.d.ts.map +1 -1
- package/dist/check/rules/context-declared-relationship.js +20 -16
- package/dist/check/rules/context-declared-relationship.js.map +1 -1
- package/dist/check/rules/context-extractable.d.ts +2 -2
- package/dist/check/rules/context-extractable.d.ts.map +1 -1
- package/dist/check/rules/context-extractable.js +23 -12
- package/dist/check/rules/context-extractable.js.map +1 -1
- package/dist/check/rules/context-no-cycle.d.ts +2 -2
- package/dist/check/rules/context-no-cycle.d.ts.map +1 -1
- package/dist/check/rules/context-no-cycle.js +9 -1
- package/dist/check/rules/context-no-cycle.js.map +1 -1
- package/dist/check/rules/context-published-language-is-a-contract.d.ts +2 -2
- package/dist/check/rules/context-published-language-is-a-contract.d.ts.map +1 -1
- package/dist/check/rules/context-published-language-is-a-contract.js +19 -14
- package/dist/check/rules/context-published-language-is-a-contract.js.map +1 -1
- package/dist/check/rules/context-published-language-only.d.ts +2 -2
- package/dist/check/rules/context-published-language-only.d.ts.map +1 -1
- package/dist/check/rules/context-published-language-only.js +23 -18
- package/dist/check/rules/context-published-language-only.js.map +1 -1
- package/dist/check/rules/declarations-barrel-current.d.ts +2 -2
- package/dist/check/rules/declarations-barrel-current.d.ts.map +1 -1
- package/dist/check/rules/declarations-barrel-current.js +29 -3
- package/dist/check/rules/declarations-barrel-current.js.map +1 -1
- package/dist/check/rules/declarations-constructor-injection.d.ts +2 -2
- package/dist/check/rules/declarations-constructor-injection.d.ts.map +1 -1
- package/dist/check/rules/declarations-constructor-injection.js +28 -12
- package/dist/check/rules/declarations-constructor-injection.js.map +1 -1
- package/dist/check/rules/declarations-port-adapter-wired.d.ts +2 -2
- package/dist/check/rules/declarations-port-adapter-wired.d.ts.map +1 -1
- package/dist/check/rules/declarations-port-adapter-wired.js +15 -1
- package/dist/check/rules/declarations-port-adapter-wired.js.map +1 -1
- package/dist/check/rules/declarations-role-declared.d.ts +2 -2
- package/dist/check/rules/declarations-role-declared.d.ts.map +1 -1
- package/dist/check/rules/declarations-role-declared.js +20 -9
- package/dist/check/rules/declarations-role-declared.js.map +1 -1
- package/dist/check/rules/domain-events-dispatched-on-save.d.ts +2 -2
- package/dist/check/rules/domain-events-dispatched-on-save.d.ts.map +1 -1
- package/dist/check/rules/domain-events-dispatched-on-save.js +30 -17
- package/dist/check/rules/domain-events-dispatched-on-save.js.map +1 -1
- package/dist/check/rules/domain-events-transactional-before-commit.d.ts +2 -2
- package/dist/check/rules/domain-events-transactional-before-commit.d.ts.map +1 -1
- package/dist/check/rules/domain-events-transactional-before-commit.js +40 -2
- package/dist/check/rules/domain-events-transactional-before-commit.js.map +1 -1
- package/dist/check/rules/domain-value-object-class.d.ts +2 -2
- package/dist/check/rules/domain-value-object-class.d.ts.map +1 -1
- package/dist/check/rules/domain-value-object-class.js +37 -10
- package/dist/check/rules/domain-value-object-class.js.map +1 -1
- package/dist/check/rules/errors-code-listed.d.ts +2 -2
- package/dist/check/rules/errors-code-listed.d.ts.map +1 -1
- package/dist/check/rules/errors-code-listed.js +30 -1
- package/dist/check/rules/errors-code-listed.js.map +1 -1
- package/dist/check/rules/errors-code-unique.d.ts +2 -2
- package/dist/check/rules/errors-code-unique.d.ts.map +1 -1
- package/dist/check/rules/errors-code-unique.js +15 -1
- package/dist/check/rules/errors-code-unique.js.map +1 -1
- package/dist/check/rules/errors-known-code.d.ts +2 -2
- package/dist/check/rules/errors-known-code.d.ts.map +1 -1
- package/dist/check/rules/errors-known-code.js +11 -1
- package/dist/check/rules/errors-known-code.js.map +1 -1
- package/dist/check/rules/event-sourcing-past-tense.d.ts +2 -2
- package/dist/check/rules/event-sourcing-past-tense.d.ts.map +1 -1
- package/dist/check/rules/event-sourcing-past-tense.js +11 -6
- package/dist/check/rules/event-sourcing-past-tense.js.map +1 -1
- package/dist/check/rules/event-sourcing-projection-never-appends.d.ts +2 -2
- package/dist/check/rules/event-sourcing-projection-never-appends.d.ts.map +1 -1
- package/dist/check/rules/event-sourcing-projection-never-appends.js +16 -3
- package/dist/check/rules/event-sourcing-projection-never-appends.js.map +1 -1
- package/dist/check/rules/event-sourcing-state-in-apply.d.ts +2 -2
- package/dist/check/rules/event-sourcing-state-in-apply.d.ts.map +1 -1
- package/dist/check/rules/event-sourcing-state-in-apply.js +19 -3
- package/dist/check/rules/event-sourcing-state-in-apply.js.map +1 -1
- package/dist/check/rules/event-sourcing-store-behind-repository.d.ts +2 -2
- package/dist/check/rules/event-sourcing-store-behind-repository.d.ts.map +1 -1
- package/dist/check/rules/event-sourcing-store-behind-repository.js +22 -15
- package/dist/check/rules/event-sourcing-store-behind-repository.js.map +1 -1
- package/dist/check/rules/event-sourcing-upcaster-required.d.ts +2 -2
- package/dist/check/rules/event-sourcing-upcaster-required.d.ts.map +1 -1
- package/dist/check/rules/event-sourcing-upcaster-required.js +32 -6
- package/dist/check/rules/event-sourcing-upcaster-required.js.map +1 -1
- package/dist/check/rules/events-consumer-idempotent.d.ts +2 -2
- package/dist/check/rules/events-consumer-idempotent.d.ts.map +1 -1
- package/dist/check/rules/events-consumer-idempotent.js +19 -2
- package/dist/check/rules/events-consumer-idempotent.js.map +1 -1
- package/dist/check/rules/events-defined-in-published-language.d.ts +2 -2
- package/dist/check/rules/events-defined-in-published-language.d.ts.map +1 -1
- package/dist/check/rules/events-defined-in-published-language.js +38 -12
- package/dist/check/rules/events-defined-in-published-language.js.map +1 -1
- package/dist/check/rules/events-name-declared-once.d.ts +2 -2
- package/dist/check/rules/events-name-declared-once.d.ts.map +1 -1
- package/dist/check/rules/events-name-declared-once.js +19 -14
- package/dist/check/rules/events-name-declared-once.js.map +1 -1
- package/dist/check/rules/events-name-format.d.ts +2 -2
- package/dist/check/rules/events-name-format.d.ts.map +1 -1
- package/dist/check/rules/events-name-format.js +18 -15
- package/dist/check/rules/events-name-format.js.map +1 -1
- package/dist/check/rules/events-outbox-required.d.ts +2 -2
- package/dist/check/rules/events-outbox-required.d.ts.map +1 -1
- package/dist/check/rules/events-outbox-required.js +15 -4
- package/dist/check/rules/events-outbox-required.js.map +1 -1
- package/dist/check/rules/files-port-not-connector.d.ts +2 -2
- package/dist/check/rules/files-port-not-connector.d.ts.map +1 -1
- package/dist/check/rules/files-port-not-connector.js +17 -6
- package/dist/check/rules/files-port-not-connector.js.map +1 -1
- package/dist/check/rules/files-upload-content-rule.d.ts +2 -2
- package/dist/check/rules/files-upload-content-rule.d.ts.map +1 -1
- package/dist/check/rules/files-upload-content-rule.js +24 -3
- package/dist/check/rules/files-upload-content-rule.js.map +1 -1
- package/dist/check/rules/governance-recorded-deviation.d.ts +2 -2
- package/dist/check/rules/governance-recorded-deviation.d.ts.map +1 -1
- package/dist/check/rules/governance-recorded-deviation.js +22 -14
- package/dist/check/rules/governance-recorded-deviation.js.map +1 -1
- package/dist/check/rules/imports-alias-declared.d.ts +2 -2
- package/dist/check/rules/imports-alias-declared.d.ts.map +1 -1
- package/dist/check/rules/imports-alias-declared.js +21 -1
- package/dist/check/rules/imports-alias-declared.js.map +1 -1
- package/dist/check/rules/imports-alias-only.d.ts +2 -2
- package/dist/check/rules/imports-alias-only.d.ts.map +1 -1
- package/dist/check/rules/imports-alias-only.js +16 -4
- package/dist/check/rules/imports-alias-only.js.map +1 -1
- package/dist/check/rules/imports-extension.d.ts +2 -2
- package/dist/check/rules/imports-extension.d.ts.map +1 -1
- package/dist/check/rules/imports-extension.js +16 -3
- package/dist/check/rules/imports-extension.js.map +1 -1
- package/dist/check/rules/language-declared-vocabulary.d.ts +2 -2
- package/dist/check/rules/language-declared-vocabulary.d.ts.map +1 -1
- package/dist/check/rules/language-declared-vocabulary.js +12 -1
- package/dist/check/rules/language-declared-vocabulary.js.map +1 -1
- package/dist/check/rules/language-glossary-term.d.ts +2 -2
- package/dist/check/rules/language-glossary-term.d.ts.map +1 -1
- package/dist/check/rules/language-glossary-term.js +28 -26
- package/dist/check/rules/language-glossary-term.js.map +1 -1
- package/dist/check/rules/language-no-technical-name.d.ts +2 -2
- package/dist/check/rules/language-no-technical-name.d.ts.map +1 -1
- package/dist/check/rules/language-no-technical-name.js +25 -22
- package/dist/check/rules/language-no-technical-name.js.map +1 -1
- package/dist/check/rules/layer-application-inward.d.ts +2 -2
- package/dist/check/rules/layer-application-inward.d.ts.map +1 -1
- package/dist/check/rules/layer-application-inward.js +25 -15
- package/dist/check/rules/layer-application-inward.js.map +1 -1
- package/dist/check/rules/layer-domain-purity.d.ts +2 -2
- package/dist/check/rules/layer-domain-purity.d.ts.map +1 -1
- package/dist/check/rules/layer-domain-purity.js +19 -9
- package/dist/check/rules/layer-domain-purity.js.map +1 -1
- package/dist/check/rules/layer-infrastructure-no-presentation.d.ts +2 -2
- package/dist/check/rules/layer-infrastructure-no-presentation.d.ts.map +1 -1
- package/dist/check/rules/layer-infrastructure-no-presentation.js +19 -14
- package/dist/check/rules/layer-infrastructure-no-presentation.js.map +1 -1
- package/dist/check/rules/layer-presentation-no-infrastructure.d.ts +2 -2
- package/dist/check/rules/layer-presentation-no-infrastructure.d.ts.map +1 -1
- package/dist/check/rules/layer-presentation-no-infrastructure.js +20 -15
- package/dist/check/rules/layer-presentation-no-infrastructure.js.map +1 -1
- package/dist/check/rules/lifecycle-status-through-machine.d.ts +2 -2
- package/dist/check/rules/lifecycle-status-through-machine.d.ts.map +1 -1
- package/dist/check/rules/lifecycle-status-through-machine.js +18 -2
- package/dist/check/rules/lifecycle-status-through-machine.js.map +1 -1
- package/dist/check/rules/module-complete.d.ts +2 -2
- package/dist/check/rules/module-complete.d.ts.map +1 -1
- package/dist/check/rules/module-complete.js +17 -1
- package/dist/check/rules/module-complete.js.map +1 -1
- package/dist/check/rules/module-declared.d.ts +2 -2
- package/dist/check/rules/module-declared.d.ts.map +1 -1
- package/dist/check/rules/module-declared.js +14 -1
- package/dist/check/rules/module-declared.js.map +1 -1
- package/dist/check/rules/module-no-cycle.d.ts +2 -2
- package/dist/check/rules/module-no-cycle.d.ts.map +1 -1
- package/dist/check/rules/module-no-cycle.js +12 -1
- package/dist/check/rules/module-no-cycle.js.map +1 -1
- package/dist/check/rules/naming-business-name.d.ts +2 -2
- package/dist/check/rules/naming-business-name.d.ts.map +1 -1
- package/dist/check/rules/naming-business-name.js +19 -10
- package/dist/check/rules/naming-business-name.js.map +1 -1
- package/dist/check/rules/naming-one-concept-per-file.d.ts +2 -2
- package/dist/check/rules/naming-one-concept-per-file.d.ts.map +1 -1
- package/dist/check/rules/naming-one-concept-per-file.js +22 -9
- package/dist/check/rules/naming-one-concept-per-file.js.map +1 -1
- package/dist/check/rules/naming-search-not-list.d.ts +2 -2
- package/dist/check/rules/naming-search-not-list.d.ts.map +1 -1
- package/dist/check/rules/naming-search-not-list.js +20 -8
- package/dist/check/rules/naming-search-not-list.js.map +1 -1
- package/dist/check/rules/naming-suffix.d.ts +2 -2
- package/dist/check/rules/naming-suffix.d.ts.map +1 -1
- package/dist/check/rules/naming-suffix.js +21 -14
- package/dist/check/rules/naming-suffix.js.map +1 -1
- package/dist/check/rules/nest-controllers-current.d.ts +2 -2
- package/dist/check/rules/nest-controllers-current.d.ts.map +1 -1
- package/dist/check/rules/nest-controllers-current.js +12 -1
- package/dist/check/rules/nest-controllers-current.js.map +1 -1
- package/dist/check/rules/nest-no-parallel-pipeline.d.ts +2 -2
- package/dist/check/rules/nest-no-parallel-pipeline.d.ts.map +1 -1
- package/dist/check/rules/nest-no-parallel-pipeline.js +27 -11
- package/dist/check/rules/nest-no-parallel-pipeline.js.map +1 -1
- package/dist/check/rules/persistence-migration-history.d.ts +2 -2
- package/dist/check/rules/persistence-migration-history.d.ts.map +1 -1
- package/dist/check/rules/persistence-migration-history.js +13 -1
- package/dist/check/rules/persistence-migration-history.js.map +1 -1
- package/dist/check/rules/persistence-no-file-content.d.ts +2 -2
- package/dist/check/rules/persistence-no-file-content.d.ts.map +1 -1
- package/dist/check/rules/persistence-no-file-content.js +15 -1
- package/dist/check/rules/persistence-no-file-content.js.map +1 -1
- package/dist/check/rules/persistence-primary-key-order.d.ts +2 -2
- package/dist/check/rules/persistence-primary-key-order.d.ts.map +1 -1
- package/dist/check/rules/persistence-primary-key-order.js +9 -1
- package/dist/check/rules/persistence-primary-key-order.js.map +1 -1
- package/dist/check/rules/persistence-read-model-listed.d.ts +2 -2
- package/dist/check/rules/persistence-read-model-listed.d.ts.map +1 -1
- package/dist/check/rules/persistence-read-model-listed.js +20 -3
- package/dist/check/rules/persistence-read-model-listed.js.map +1 -1
- package/dist/check/rules/ports-abstract-class.d.ts +2 -2
- package/dist/check/rules/ports-abstract-class.d.ts.map +1 -1
- package/dist/check/rules/ports-abstract-class.js +33 -20
- package/dist/check/rules/ports-abstract-class.js.map +1 -1
- package/dist/check/rules/ports-implements-never-extends.d.ts +2 -2
- package/dist/check/rules/ports-implements-never-extends.d.ts.map +1 -1
- package/dist/check/rules/ports-implements-never-extends.js +25 -14
- package/dist/check/rules/ports-implements-never-extends.js.map +1 -1
- package/dist/check/rules/ports-no-concrete-dependency.d.ts +2 -2
- package/dist/check/rules/ports-no-concrete-dependency.d.ts.map +1 -1
- package/dist/check/rules/ports-no-concrete-dependency.js +23 -5
- package/dist/check/rules/ports-no-concrete-dependency.js.map +1 -1
- package/dist/check/rules/ports-no-token-constant.d.ts +2 -2
- package/dist/check/rules/ports-no-token-constant.d.ts.map +1 -1
- package/dist/check/rules/ports-no-token-constant.js +20 -3
- package/dist/check/rules/ports-no-token-constant.js.map +1 -1
- package/dist/check/rules/ports-value-import.d.ts +2 -2
- package/dist/check/rules/ports-value-import.d.ts.map +1 -1
- package/dist/check/rules/ports-value-import.js +23 -12
- package/dist/check/rules/ports-value-import.js.map +1 -1
- package/dist/check/rules/privacy-declared-field.d.ts +2 -2
- package/dist/check/rules/privacy-declared-field.d.ts.map +1 -1
- package/dist/check/rules/privacy-declared-field.js +18 -1
- package/dist/check/rules/privacy-declared-field.js.map +1 -1
- package/dist/check/rules/privacy-erasure-reaches-copies.d.ts +2 -2
- package/dist/check/rules/privacy-erasure-reaches-copies.d.ts.map +1 -1
- package/dist/check/rules/privacy-erasure-reaches-copies.js +12 -1
- package/dist/check/rules/privacy-erasure-reaches-copies.js.map +1 -1
- package/dist/check/rules/privacy-event-payload-declared.d.ts +2 -2
- package/dist/check/rules/privacy-event-payload-declared.d.ts.map +1 -1
- package/dist/check/rules/privacy-event-payload-declared.js +17 -1
- package/dist/check/rules/privacy-event-payload-declared.js.map +1 -1
- package/dist/check/rules/privacy-no-personal-data-in-logs.d.ts +2 -2
- package/dist/check/rules/privacy-no-personal-data-in-logs.d.ts.map +1 -1
- package/dist/check/rules/privacy-no-personal-data-in-logs.js +8 -1
- package/dist/check/rules/privacy-no-personal-data-in-logs.js.map +1 -1
- package/dist/check/rules/privacy-snapshot-sealed.d.ts +2 -2
- package/dist/check/rules/privacy-snapshot-sealed.d.ts.map +1 -1
- package/dist/check/rules/privacy-snapshot-sealed.js +16 -1
- package/dist/check/rules/privacy-snapshot-sealed.js.map +1 -1
- package/dist/check/rules/privacy-subject-is-opaque.d.ts +2 -2
- package/dist/check/rules/privacy-subject-is-opaque.d.ts.map +1 -1
- package/dist/check/rules/privacy-subject-is-opaque.js +8 -1
- package/dist/check/rules/privacy-subject-is-opaque.js.map +1 -1
- package/dist/check/rules/process-sends-commands-only.d.ts +2 -2
- package/dist/check/rules/process-sends-commands-only.d.ts.map +1 -1
- package/dist/check/rules/process-sends-commands-only.js +18 -3
- package/dist/check/rules/process-sends-commands-only.js.map +1 -1
- package/dist/check/rules/purity-no-ambient-randomness.d.ts +1 -1
- package/dist/check/rules/purity-no-ambient-randomness.d.ts.map +1 -1
- package/dist/check/rules/purity-no-ambient-randomness.js +5 -29
- package/dist/check/rules/purity-no-ambient-randomness.js.map +1 -1
- package/dist/check/rules/purity-no-environment.d.ts +1 -1
- package/dist/check/rules/purity-no-environment.d.ts.map +1 -1
- package/dist/check/rules/purity-no-environment.js +5 -37
- package/dist/check/rules/purity-no-environment.js.map +1 -1
- package/dist/check/rules/purity-no-system-clock.d.ts +1 -1
- package/dist/check/rules/purity-no-system-clock.d.ts.map +1 -1
- package/dist/check/rules/purity-no-system-clock.js +5 -14
- package/dist/check/rules/purity-no-system-clock.js.map +1 -1
- package/dist/check/rules/scheduling-job-name.d.ts +2 -2
- package/dist/check/rules/scheduling-job-name.d.ts.map +1 -1
- package/dist/check/rules/scheduling-job-name.js +18 -8
- package/dist/check/rules/scheduling-job-name.js.map +1 -1
- package/dist/check/rules/scheduling-job-registered.d.ts +2 -2
- package/dist/check/rules/scheduling-job-registered.d.ts.map +1 -1
- package/dist/check/rules/scheduling-job-registered.js +24 -1
- package/dist/check/rules/scheduling-job-registered.js.map +1 -1
- package/dist/check/rules/scheduling-job-triggers-use-case.d.ts +2 -2
- package/dist/check/rules/scheduling-job-triggers-use-case.d.ts.map +1 -1
- package/dist/check/rules/scheduling-job-triggers-use-case.js +36 -10
- package/dist/check/rules/scheduling-job-triggers-use-case.js.map +1 -1
- package/dist/check/rules/scheduling-tenancy-declared.d.ts +2 -2
- package/dist/check/rules/scheduling-tenancy-declared.d.ts.map +1 -1
- package/dist/check/rules/scheduling-tenancy-declared.js +10 -6
- package/dist/check/rules/scheduling-tenancy-declared.js.map +1 -1
- package/dist/check/rules/schema-no-duplicate-shape.d.ts +2 -2
- package/dist/check/rules/schema-no-duplicate-shape.d.ts.map +1 -1
- package/dist/check/rules/schema-no-duplicate-shape.js +14 -1
- package/dist/check/rules/schema-no-duplicate-shape.js.map +1 -1
- package/dist/check/rules/schema-presentation-only.d.ts +2 -2
- package/dist/check/rules/schema-presentation-only.d.ts.map +1 -1
- package/dist/check/rules/schema-presentation-only.js +17 -4
- package/dist/check/rules/schema-presentation-only.js.map +1 -1
- package/dist/check/rules/search-store-from-platform.d.ts +2 -2
- package/dist/check/rules/search-store-from-platform.d.ts.map +1 -1
- package/dist/check/rules/search-store-from-platform.js +23 -3
- package/dist/check/rules/search-store-from-platform.js.map +1 -1
- package/dist/check/rules/standard-no-parallel-interface.d.ts +2 -2
- package/dist/check/rules/standard-no-parallel-interface.d.ts.map +1 -1
- package/dist/check/rules/standard-no-parallel-interface.js +19 -4
- package/dist/check/rules/standard-no-parallel-interface.js.map +1 -1
- package/dist/check/rules/tenancy-scoped-statement.d.ts +2 -2
- package/dist/check/rules/tenancy-scoped-statement.d.ts.map +1 -1
- package/dist/check/rules/tenancy-scoped-statement.js +45 -6
- package/dist/check/rules/tenancy-scoped-statement.js.map +1 -1
- package/dist/check/rules/test-acceptance-black-box.d.ts +2 -2
- package/dist/check/rules/test-acceptance-black-box.d.ts.map +1 -1
- package/dist/check/rules/test-acceptance-black-box.js +11 -1
- package/dist/check/rules/test-acceptance-black-box.js.map +1 -1
- package/dist/check/rules/test-builder-required.d.ts +2 -2
- package/dist/check/rules/test-builder-required.d.ts.map +1 -1
- package/dist/check/rules/test-builder-required.js +8 -1
- package/dist/check/rules/test-builder-required.js.map +1 -1
- package/dist/check/rules/test-coverage-governed.d.ts +2 -2
- package/dist/check/rules/test-coverage-governed.d.ts.map +1 -1
- package/dist/check/rules/test-coverage-governed.js +20 -5
- package/dist/check/rules/test-coverage-governed.js.map +1 -1
- package/dist/check/rules/test-helper-placed.d.ts +2 -2
- package/dist/check/rules/test-helper-placed.d.ts.map +1 -1
- package/dist/check/rules/test-helper-placed.js +20 -16
- package/dist/check/rules/test-helper-placed.js.map +1 -1
- package/dist/check/rules/test-mutation-governed.d.ts +2 -2
- package/dist/check/rules/test-mutation-governed.d.ts.map +1 -1
- package/dist/check/rules/test-mutation-governed.js +13 -1
- package/dist/check/rules/test-mutation-governed.js.map +1 -1
- package/dist/check/rules/test-no-mocks.d.ts +2 -2
- package/dist/check/rules/test-no-mocks.d.ts.map +1 -1
- package/dist/check/rules/test-no-mocks.js +23 -18
- package/dist/check/rules/test-no-mocks.js.map +1 -1
- package/dist/check/rules/test-spec-required.d.ts +2 -2
- package/dist/check/rules/test-spec-required.d.ts.map +1 -1
- package/dist/check/rules/test-spec-required.js +7 -1
- package/dist/check/rules/test-spec-required.js.map +1 -1
- package/dist/check/rules/tracing-platform-only.d.ts +2 -2
- package/dist/check/rules/tracing-platform-only.d.ts.map +1 -1
- package/dist/check/rules/tracing-platform-only.js +20 -14
- package/dist/check/rules/tracing-platform-only.js.map +1 -1
- package/dist/check/rules/tree-closed.d.ts +2 -2
- package/dist/check/rules/tree-closed.d.ts.map +1 -1
- package/dist/check/rules/tree-closed.js +12 -1
- package/dist/check/rules/tree-closed.js.map +1 -1
- package/dist/check/rules/tree-context-doc.d.ts +2 -2
- package/dist/check/rules/tree-context-doc.d.ts.map +1 -1
- package/dist/check/rules/tree-context-doc.js +7 -1
- package/dist/check/rules/tree-context-doc.js.map +1 -1
- package/dist/check/rules/tree-documented-paths.d.ts +2 -2
- package/dist/check/rules/tree-documented-paths.d.ts.map +1 -1
- package/dist/check/rules/tree-documented-paths.js +7 -1
- package/dist/check/rules/tree-documented-paths.js.map +1 -1
- package/dist/check/scan/find-imports.js +6 -5
- package/dist/check/scan/find-imports.js.map +1 -1
- package/dist/check/scan/found-statement.d.ts +4 -1
- package/dist/check/scan/found-statement.d.ts.map +1 -1
- package/dist/check/scan/lexer.d.ts +1 -0
- package/dist/check/scan/lexer.d.ts.map +1 -1
- package/dist/check/scan/lexer.js +20 -5
- package/dist/check/scan/lexer.js.map +1 -1
- package/dist/check/scan/statements-of.d.ts +9 -0
- package/dist/check/scan/statements-of.d.ts.map +1 -0
- package/dist/check/scan/statements-of.js +61 -0
- package/dist/check/scan/statements-of.js.map +1 -0
- package/dist/check/schemas/holds-schemas.d.ts +2 -2
- package/dist/check/schemas/holds-schemas.d.ts.map +1 -1
- package/dist/check/schemas/holds-schemas.js.map +1 -1
- package/dist/check/schemas/shares-schemas.d.ts +2 -2
- package/dist/check/schemas/shares-schemas.d.ts.map +1 -1
- package/dist/check/schemas/shares-schemas.js.map +1 -1
- package/dist/check/support/binding-place.d.ts +2 -2
- package/dist/check/support/binding-place.d.ts.map +1 -1
- package/dist/check/support/binding-place.js.map +1 -1
- package/dist/check/support/is-declared-style.d.ts +2 -2
- package/dist/check/support/is-declared-style.d.ts.map +1 -1
- package/dist/check/support/is-declared-style.js.map +1 -1
- package/dist/check/support/once-per-project.d.ts +8 -0
- package/dist/check/support/once-per-project.d.ts.map +1 -0
- package/dist/check/support/once-per-project.js +18 -0
- package/dist/check/support/once-per-project.js.map +1 -0
- package/dist/check/support/path-in-context.d.ts +2 -2
- package/dist/check/support/path-in-context.d.ts.map +1 -1
- package/dist/check/support/path-in-context.js.map +1 -1
- package/dist/check/support/per-file.d.ts +4 -1
- package/dist/check/support/per-file.d.ts.map +1 -1
- package/dist/check/support/per-file.js +21 -2
- package/dist/check/support/per-file.js.map +1 -1
- package/dist/check/support/reporter.d.ts +2 -2
- package/dist/check/support/reporter.d.ts.map +1 -1
- package/dist/check/support/reporter.js.map +1 -1
- package/dist/check/support/source-declaring.d.ts +2 -2
- package/dist/check/support/source-declaring.d.ts.map +1 -1
- package/dist/check/support/source-declaring.js +1 -2
- package/dist/check/support/source-declaring.js.map +1 -1
- package/dist/check/support/to-violations.d.ts +1 -0
- package/dist/check/support/to-violations.d.ts.map +1 -1
- package/dist/check/support/to-violations.js +5 -1
- package/dist/check/support/to-violations.js.map +1 -1
- package/dist/check/suppressions/find-suppressions.d.ts +9 -2
- package/dist/check/suppressions/find-suppressions.d.ts.map +1 -1
- package/dist/check/suppressions/find-suppressions.js +30 -7
- package/dist/check/suppressions/find-suppressions.js.map +1 -1
- package/dist/check/suppressions/idle-suppression.d.ts +7 -0
- package/dist/check/suppressions/idle-suppression.d.ts.map +1 -0
- package/dist/check/suppressions/idle-suppression.js +2 -0
- package/dist/check/suppressions/idle-suppression.js.map +1 -0
- package/dist/check/suppressions/silencing.d.ts +19 -0
- package/dist/check/suppressions/silencing.d.ts.map +1 -0
- package/dist/check/suppressions/silencing.js +32 -0
- package/dist/check/suppressions/silencing.js.map +1 -0
- package/dist/check/tenancy/prisma-unscoped.d.ts.map +1 -1
- package/dist/check/tenancy/prisma-unscoped.js +3 -1
- package/dist/check/tenancy/prisma-unscoped.js.map +1 -1
- package/dist/check/tenancy/saves-without-tenant.d.ts +4 -0
- package/dist/check/tenancy/saves-without-tenant.d.ts.map +1 -0
- package/dist/check/tenancy/saves-without-tenant.js +6 -0
- package/dist/check/tenancy/saves-without-tenant.js.map +1 -0
- package/dist/commands/acceptance.d.ts +1 -2
- package/dist/commands/acceptance.d.ts.map +1 -1
- package/dist/commands/acceptance.js +25 -30
- package/dist/commands/acceptance.js.map +1 -1
- package/dist/commands/affected.d.ts +1 -2
- package/dist/commands/affected.d.ts.map +1 -1
- package/dist/commands/affected.js +23 -19
- package/dist/commands/affected.js.map +1 -1
- package/dist/commands/arguments-error.d.ts +11 -1
- package/dist/commands/arguments-error.d.ts.map +1 -1
- package/dist/commands/arguments-error.js +15 -1
- package/dist/commands/arguments-error.js.map +1 -1
- package/dist/commands/arguments.d.ts +87 -10
- package/dist/commands/arguments.d.ts.map +1 -1
- package/dist/commands/arguments.js +95 -18
- package/dist/commands/arguments.js.map +1 -1
- package/dist/commands/build-aliases.d.ts +1 -2
- package/dist/commands/build-aliases.d.ts.map +1 -1
- package/dist/commands/build-aliases.js +16 -14
- package/dist/commands/build-aliases.js.map +1 -1
- package/dist/commands/checks.d.ts +7 -3
- package/dist/commands/checks.d.ts.map +1 -1
- package/dist/commands/checks.js +16 -2
- package/dist/commands/checks.js.map +1 -1
- package/dist/commands/cited.d.ts +1 -2
- package/dist/commands/cited.d.ts.map +1 -1
- package/dist/commands/cited.js +32 -28
- package/dist/commands/cited.js.map +1 -1
- package/dist/commands/command.d.ts +81 -1
- package/dist/commands/command.d.ts.map +1 -1
- package/dist/commands/command.js +31 -1
- package/dist/commands/command.js.map +1 -1
- package/dist/commands/commit-size.d.ts +1 -2
- package/dist/commands/commit-size.d.ts.map +1 -1
- package/dist/commands/commit-size.js +16 -12
- package/dist/commands/commit-size.js.map +1 -1
- package/dist/commands/context-layout.d.ts +1 -2
- package/dist/commands/context-layout.d.ts.map +1 -1
- package/dist/commands/context-layout.js +30 -25
- package/dist/commands/context-layout.js.map +1 -1
- package/dist/commands/controllers.d.ts +1 -2
- package/dist/commands/controllers.d.ts.map +1 -1
- package/dist/commands/controllers.js +34 -29
- package/dist/commands/controllers.js.map +1 -1
- package/dist/commands/define-tool-command.d.ts +18 -0
- package/dist/commands/define-tool-command.d.ts.map +1 -0
- package/dist/commands/define-tool-command.js +19 -0
- package/dist/commands/define-tool-command.js.map +1 -0
- package/dist/commands/depcruise-config.d.ts +1 -2
- package/dist/commands/depcruise-config.d.ts.map +1 -1
- package/dist/commands/depcruise-config.js +34 -30
- package/dist/commands/depcruise-config.js.map +1 -1
- package/dist/commands/describe.d.ts +1 -2
- package/dist/commands/describe.d.ts.map +1 -1
- package/dist/commands/describe.js +14 -10
- package/dist/commands/describe.js.map +1 -1
- package/dist/commands/digest.d.ts +1 -2
- package/dist/commands/digest.d.ts.map +1 -1
- package/dist/commands/digest.js +17 -13
- package/dist/commands/digest.js.map +1 -1
- package/dist/commands/docs.d.ts +1 -2
- package/dist/commands/docs.d.ts.map +1 -1
- package/dist/commands/docs.js +29 -25
- package/dist/commands/docs.js.map +1 -1
- package/dist/commands/doctor.d.ts +1 -2
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +18 -13
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/drizzle-generate.d.ts +1 -2
- package/dist/commands/drizzle-generate.d.ts.map +1 -1
- package/dist/commands/drizzle-generate.js +19 -10
- package/dist/commands/drizzle-generate.js.map +1 -1
- package/dist/commands/error-factories.d.ts +1 -2
- package/dist/commands/error-factories.d.ts.map +1 -1
- package/dist/commands/error-factories.js +28 -30
- package/dist/commands/error-factories.js.map +1 -1
- package/dist/commands/generate.d.ts +2 -2
- package/dist/commands/generate.d.ts.map +1 -1
- package/dist/commands/generate.js +27 -15
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/holding-the-lock.d.ts +23 -0
- package/dist/commands/holding-the-lock.d.ts.map +1 -0
- package/dist/commands/holding-the-lock.js +28 -0
- package/dist/commands/holding-the-lock.js.map +1 -0
- package/dist/commands/init.d.ts +1 -2
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +42 -25
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/knex-generate.d.ts +1 -2
- package/dist/commands/knex-generate.d.ts.map +1 -1
- package/dist/commands/knex-generate.js +20 -12
- package/dist/commands/knex-generate.js.map +1 -1
- package/dist/commands/lint.d.ts +1 -2
- package/dist/commands/lint.d.ts.map +1 -1
- package/dist/commands/lint.js +61 -39
- package/dist/commands/lint.js.map +1 -1
- package/dist/commands/list.d.ts +1 -2
- package/dist/commands/list.d.ts.map +1 -1
- package/dist/commands/list.js +10 -7
- package/dist/commands/list.js.map +1 -1
- package/dist/commands/measures.d.ts +1 -2
- package/dist/commands/measures.d.ts.map +1 -1
- package/dist/commands/measures.js +20 -20
- package/dist/commands/measures.js.map +1 -1
- package/dist/commands/merge-trunk.d.ts +1 -2
- package/dist/commands/merge-trunk.d.ts.map +1 -1
- package/dist/commands/merge-trunk.js +33 -26
- package/dist/commands/merge-trunk.js.map +1 -1
- package/dist/commands/move-to-module.d.ts +1 -2
- package/dist/commands/move-to-module.d.ts.map +1 -1
- package/dist/commands/move-to-module.js +50 -46
- package/dist/commands/move-to-module.js.map +1 -1
- package/dist/commands/mutation.d.ts +1 -2
- package/dist/commands/mutation.d.ts.map +1 -1
- package/dist/commands/mutation.js +20 -16
- package/dist/commands/mutation.js.map +1 -1
- package/dist/commands/option-usage.d.ts +12 -0
- package/dist/commands/option-usage.d.ts.map +1 -0
- package/dist/commands/option-usage.js +13 -0
- package/dist/commands/option-usage.js.map +1 -0
- package/dist/commands/plan-waves.d.ts +1 -2
- package/dist/commands/plan-waves.d.ts.map +1 -1
- package/dist/commands/plan-waves.js +18 -14
- package/dist/commands/plan-waves.js.map +1 -1
- package/dist/commands/platform-folders.d.ts +1 -2
- package/dist/commands/platform-folders.d.ts.map +1 -1
- package/dist/commands/platform-folders.js +25 -21
- package/dist/commands/platform-folders.js.map +1 -1
- package/dist/commands/prisma-client.d.ts +1 -2
- package/dist/commands/prisma-client.d.ts.map +1 -1
- package/dist/commands/prisma-client.js +17 -14
- package/dist/commands/prisma-client.js.map +1 -1
- package/dist/commands/prisma-generate.d.ts +1 -2
- package/dist/commands/prisma-generate.d.ts.map +1 -1
- package/dist/commands/prisma-generate.js +28 -20
- package/dist/commands/prisma-generate.js.map +1 -1
- package/dist/commands/refuse-second-name.d.ts +7 -0
- package/dist/commands/refuse-second-name.d.ts.map +1 -0
- package/dist/commands/refuse-second-name.js +12 -0
- package/dist/commands/refuse-second-name.js.map +1 -0
- package/dist/commands/sdk.d.ts +1 -2
- package/dist/commands/sdk.d.ts.map +1 -1
- package/dist/commands/sdk.js +18 -14
- package/dist/commands/sdk.js.map +1 -1
- package/dist/commands/status.d.ts +1 -2
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +26 -22
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/stories.d.ts +1 -2
- package/dist/commands/stories.d.ts.map +1 -1
- package/dist/commands/stories.js +10 -7
- package/dist/commands/stories.js.map +1 -1
- package/dist/commands/story-check.d.ts +1 -2
- package/dist/commands/story-check.d.ts.map +1 -1
- package/dist/commands/story-check.js +15 -11
- package/dist/commands/story-check.js.map +1 -1
- package/dist/commands/story-scope.d.ts +1 -2
- package/dist/commands/story-scope.d.ts.map +1 -1
- package/dist/commands/story-scope.js +28 -35
- package/dist/commands/story-scope.js.map +1 -1
- package/dist/commands/story.d.ts +1 -2
- package/dist/commands/story.d.ts.map +1 -1
- package/dist/commands/story.js +17 -23
- package/dist/commands/story.js.map +1 -1
- package/dist/commands/todo.d.ts +1 -2
- package/dist/commands/todo.d.ts.map +1 -1
- package/dist/commands/todo.js +22 -18
- package/dist/commands/todo.js.map +1 -1
- package/dist/commands/tsc.d.ts +8 -0
- package/dist/commands/tsc.d.ts.map +1 -0
- package/dist/commands/tsc.js +49 -0
- package/dist/commands/tsc.js.map +1 -0
- package/dist/commands/typeorm-generate.d.ts +1 -2
- package/dist/commands/typeorm-generate.d.ts.map +1 -1
- package/dist/commands/typeorm-generate.js +34 -29
- package/dist/commands/typeorm-generate.js.map +1 -1
- package/dist/commands/usage-line.d.ts +18 -0
- package/dist/commands/usage-line.d.ts.map +1 -0
- package/dist/commands/usage-line.js +16 -0
- package/dist/commands/usage-line.js.map +1 -0
- package/dist/commands/value-objects.d.ts +1 -2
- package/dist/commands/value-objects.d.ts.map +1 -1
- package/dist/commands/value-objects.js +23 -19
- package/dist/commands/value-objects.js.map +1 -1
- package/dist/commands/verify-merge.d.ts +1 -2
- package/dist/commands/verify-merge.d.ts.map +1 -1
- package/dist/commands/verify-merge.js +27 -23
- package/dist/commands/verify-merge.js.map +1 -1
- package/dist/commands/verify-slice.d.ts +1 -2
- package/dist/commands/verify-slice.d.ts.map +1 -1
- package/dist/commands/verify-slice.js +19 -15
- package/dist/commands/verify-slice.js.map +1 -1
- package/dist/commands/with-modes.d.ts +10 -0
- package/dist/commands/with-modes.d.ts.map +1 -0
- package/dist/commands/with-modes.js +56 -0
- package/dist/commands/with-modes.js.map +1 -0
- package/dist/commands/worker-scope.d.ts +1 -2
- package/dist/commands/worker-scope.d.ts.map +1 -1
- package/dist/commands/worker-scope.js +35 -27
- package/dist/commands/worker-scope.js.map +1 -1
- package/dist/commands/worktree.d.ts +1 -2
- package/dist/commands/worktree.d.ts.map +1 -1
- package/dist/commands/worktree.js +23 -19
- package/dist/commands/worktree.js.map +1 -1
- package/dist/commands.d.ts +8 -0
- package/dist/commands.d.ts.map +1 -0
- package/dist/commands.js +94 -0
- package/dist/commands.js.map +1 -0
- package/dist/commit/changed-files.d.ts +8 -0
- package/dist/commit/changed-files.d.ts.map +1 -0
- package/dist/commit/changed-files.js +26 -0
- package/dist/commit/changed-files.js.map +1 -0
- package/dist/config/add-upstreams-to-config-text.d.ts +4 -0
- package/dist/config/add-upstreams-to-config-text.d.ts.map +1 -0
- package/dist/config/add-upstreams-to-config-text.js +17 -0
- package/dist/config/add-upstreams-to-config-text.js.map +1 -0
- package/dist/docs/write-behaviour.js +2 -1
- package/dist/docs/write-behaviour.js.map +1 -1
- package/dist/docs/write-code-owners.js +1 -1
- package/dist/docs/write-code-owners.js.map +1 -1
- package/dist/docs/write-docs.d.ts.map +1 -1
- package/dist/docs/write-docs.js +6 -2
- package/dist/docs/write-docs.js.map +1 -1
- package/dist/docs/write-personal-events.js +1 -1
- package/dist/docs/write-personal-events.js.map +1 -1
- package/dist/docs/write-privacy-register.js +1 -1
- package/dist/docs/write-privacy-register.js.map +1 -1
- package/dist/doctor/install-script-findings.d.ts.map +1 -1
- package/dist/doctor/install-script-findings.js +2 -1
- package/dist/doctor/install-script-findings.js.map +1 -1
- package/dist/doctor/override-findings.d.ts.map +1 -1
- package/dist/doctor/override-findings.js +3 -1
- package/dist/doctor/override-findings.js.map +1 -1
- package/dist/generate/apply-wiring.js +1 -1
- package/dist/generate/apply-wiring.js.map +1 -1
- package/dist/generate/concept-kind.d.ts +23 -0
- package/dist/generate/concept-kind.d.ts.map +1 -0
- package/dist/generate/concept-kind.js +26 -0
- package/dist/generate/concept-kind.js.map +1 -0
- package/dist/generate/define-kind.d.ts +18 -0
- package/dist/generate/define-kind.d.ts.map +1 -0
- package/dist/generate/define-kind.js +24 -0
- package/dist/generate/define-kind.js.map +1 -0
- package/dist/generate/errors/add-factory.js +2 -2
- package/dist/generate/errors/add-factory.js.map +1 -1
- package/dist/generate/errors/refusal-class-name.d.ts.map +1 -1
- package/dist/generate/errors/refusal-class-name.js +10 -2
- package/dist/generate/errors/refusal-class-name.js.map +1 -1
- package/dist/generate/errors/static-methods.d.ts +1 -1
- package/dist/generate/errors/static-methods.d.ts.map +1 -1
- package/dist/generate/errors/static-methods.js +3 -2
- package/dist/generate/errors/static-methods.js.map +1 -1
- package/dist/generate/generate-arguments.d.ts.map +1 -1
- package/dist/generate/generate-arguments.js +2 -7
- package/dist/generate/generate-arguments.js.map +1 -1
- package/dist/generate/generate-options-on.d.ts +8 -0
- package/dist/generate/generate-options-on.d.ts.map +1 -0
- package/dist/generate/generate-options-on.js +13 -0
- package/dist/generate/generate-options-on.js.map +1 -0
- package/dist/generate/generate-options.d.ts +8 -179
- package/dist/generate/generate-options.d.ts.map +1 -1
- package/dist/generate/generate-options.js +24 -54
- package/dist/generate/generate-options.js.map +1 -1
- package/dist/generate/grant-permission.d.ts.map +1 -1
- package/dist/generate/grant-permission.js +27 -48
- package/dist/generate/grant-permission.js.map +1 -1
- package/dist/generate/held-to-glossary.d.ts +4 -4
- package/dist/generate/held-to-glossary.d.ts.map +1 -1
- package/dist/generate/held-to-glossary.js +5 -6
- package/dist/generate/held-to-glossary.js.map +1 -1
- package/dist/generate/kind-help.d.ts.map +1 -1
- package/dist/generate/kind-help.js +2 -4
- package/dist/generate/kind-help.js.map +1 -1
- package/dist/generate/kind-in.d.ts.map +1 -1
- package/dist/generate/kind-in.js +3 -3
- package/dist/generate/kind-in.js.map +1 -1
- package/dist/generate/kind-options.d.ts +10 -0
- package/dist/generate/kind-options.d.ts.map +1 -0
- package/dist/generate/kind-options.js +6 -0
- package/dist/generate/kind-options.js.map +1 -0
- package/dist/generate/kind.d.ts +31 -6
- package/dist/generate/kind.d.ts.map +1 -1
- package/dist/generate/kinds/acceptance-kind.d.ts.map +1 -1
- package/dist/generate/kinds/acceptance-kind.js +6 -2
- package/dist/generate/kinds/acceptance-kind.js.map +1 -1
- package/dist/generate/kinds/acl-kind.d.ts +1 -2
- package/dist/generate/kinds/acl-kind.d.ts.map +1 -1
- package/dist/generate/kinds/acl-kind.js +11 -10
- package/dist/generate/kinds/acl-kind.js.map +1 -1
- package/dist/generate/kinds/adapter-kind.d.ts +1 -2
- package/dist/generate/kinds/adapter-kind.d.ts.map +1 -1
- package/dist/generate/kinds/adapter-kind.js +12 -9
- package/dist/generate/kinds/adapter-kind.js.map +1 -1
- package/dist/generate/kinds/adr-kind.d.ts.map +1 -1
- package/dist/generate/kinds/adr-kind.js +11 -2
- package/dist/generate/kinds/adr-kind.js.map +1 -1
- package/dist/generate/kinds/aggregate-kind.d.ts +1 -2
- package/dist/generate/kinds/aggregate-kind.d.ts.map +1 -1
- package/dist/generate/kinds/aggregate-kind.js +8 -11
- package/dist/generate/kinds/aggregate-kind.js.map +1 -1
- package/dist/generate/kinds/ask-policy-in-generated-use-case.d.ts +2 -0
- package/dist/generate/kinds/ask-policy-in-generated-use-case.d.ts.map +1 -1
- package/dist/generate/kinds/ask-policy-in-generated-use-case.js +20 -4
- package/dist/generate/kinds/ask-policy-in-generated-use-case.js.map +1 -1
- package/dist/generate/kinds/background-job-kind.d.ts +1 -2
- package/dist/generate/kinds/background-job-kind.d.ts.map +1 -1
- package/dist/generate/kinds/background-job-kind.js +9 -12
- package/dist/generate/kinds/background-job-kind.js.map +1 -1
- package/dist/generate/kinds/builder-kind.d.ts +1 -2
- package/dist/generate/kinds/builder-kind.d.ts.map +1 -1
- package/dist/generate/kinds/builder-kind.js +7 -9
- package/dist/generate/kinds/builder-kind.js.map +1 -1
- package/dist/generate/kinds/command-context.d.ts +2 -2
- package/dist/generate/kinds/command-context.d.ts.map +1 -1
- package/dist/generate/kinds/command-context.js +10 -4
- package/dist/generate/kinds/command-context.js.map +1 -1
- package/dist/generate/kinds/command-kind.d.ts +1 -2
- package/dist/generate/kinds/command-kind.d.ts.map +1 -1
- package/dist/generate/kinds/command-kind.js +23 -12
- package/dist/generate/kinds/command-kind.js.map +1 -1
- package/dist/generate/kinds/context-kind.d.ts.map +1 -1
- package/dist/generate/kinds/context-kind.js +22 -2
- package/dist/generate/kinds/context-kind.js.map +1 -1
- package/dist/generate/kinds/declare-table.d.ts +1 -11
- package/dist/generate/kinds/declare-table.d.ts.map +1 -1
- package/dist/generate/kinds/declare-table.js +2 -132
- package/dist/generate/kinds/declare-table.js.map +1 -1
- package/dist/generate/kinds/domain-error-kind.d.ts +1 -2
- package/dist/generate/kinds/domain-error-kind.d.ts.map +1 -1
- package/dist/generate/kinds/domain-error-kind.js +14 -11
- package/dist/generate/kinds/domain-error-kind.js.map +1 -1
- package/dist/generate/kinds/domain-event-kind.d.ts +1 -2
- package/dist/generate/kinds/domain-event-kind.d.ts.map +1 -1
- package/dist/generate/kinds/domain-event-kind.js +8 -11
- package/dist/generate/kinds/domain-event-kind.js.map +1 -1
- package/dist/generate/kinds/domain-service-kind.d.ts +1 -2
- package/dist/generate/kinds/domain-service-kind.d.ts.map +1 -1
- package/dist/generate/kinds/domain-service-kind.js +8 -22
- package/dist/generate/kinds/domain-service-kind.js.map +1 -1
- package/dist/generate/kinds/e2e/held-scenarios.d.ts +8 -0
- package/dist/generate/kinds/e2e/held-scenarios.d.ts.map +1 -0
- package/dist/generate/kinds/e2e/held-scenarios.js +18 -0
- package/dist/generate/kinds/e2e/held-scenarios.js.map +1 -0
- package/dist/generate/kinds/e2e/reaction-of.d.ts +2 -0
- package/dist/generate/kinds/e2e/reaction-of.d.ts.map +1 -1
- package/dist/generate/kinds/e2e/reaction-of.js +29 -15
- package/dist/generate/kinds/e2e/reaction-of.js.map +1 -1
- package/dist/generate/kinds/e2e/still-refusing.d.ts +10 -0
- package/dist/generate/kinds/e2e/still-refusing.d.ts.map +1 -0
- package/dist/generate/kinds/e2e/still-refusing.js +22 -0
- package/dist/generate/kinds/e2e/still-refusing.js.map +1 -0
- package/dist/generate/kinds/e2e-kind.d.ts +1 -2
- package/dist/generate/kinds/e2e-kind.d.ts.map +1 -1
- package/dist/generate/kinds/e2e-kind.js +30 -11
- package/dist/generate/kinds/e2e-kind.js.map +1 -1
- package/dist/generate/kinds/entity-kind.d.ts +1 -2
- package/dist/generate/kinds/entity-kind.d.ts.map +1 -1
- package/dist/generate/kinds/entity-kind.js +8 -22
- package/dist/generate/kinds/entity-kind.js.map +1 -1
- package/dist/generate/kinds/erasure-handler-kind.d.ts +1 -2
- package/dist/generate/kinds/erasure-handler-kind.d.ts.map +1 -1
- package/dist/generate/kinds/erasure-handler-kind.js +7 -9
- package/dist/generate/kinds/erasure-handler-kind.js.map +1 -1
- package/dist/generate/kinds/error-kind.d.ts +1 -2
- package/dist/generate/kinds/error-kind.d.ts.map +1 -1
- package/dist/generate/kinds/error-kind.js +18 -10
- package/dist/generate/kinds/error-kind.js.map +1 -1
- package/dist/generate/kinds/event-handler-kind.d.ts +1 -2
- package/dist/generate/kinds/event-handler-kind.d.ts.map +1 -1
- package/dist/generate/kinds/event-handler-kind.js +12 -11
- package/dist/generate/kinds/event-handler-kind.js.map +1 -1
- package/dist/generate/kinds/file-upload-kind.d.ts +1 -2
- package/dist/generate/kinds/file-upload-kind.d.ts.map +1 -1
- package/dist/generate/kinds/file-upload-kind.js +20 -11
- package/dist/generate/kinds/file-upload-kind.js.map +1 -1
- package/dist/generate/kinds/form-kind.d.ts +1 -2
- package/dist/generate/kinds/form-kind.d.ts.map +1 -1
- package/dist/generate/kinds/form-kind.js +7 -9
- package/dist/generate/kinds/form-kind.js.map +1 -1
- package/dist/generate/kinds/gateway-kind.d.ts +1 -2
- package/dist/generate/kinds/gateway-kind.d.ts.map +1 -1
- package/dist/generate/kinds/gateway-kind.js +25 -19
- package/dist/generate/kinds/gateway-kind.js.map +1 -1
- package/dist/generate/kinds/generate-context.d.ts.map +1 -1
- package/dist/generate/kinds/generate-context.js +75 -9
- package/dist/generate/kinds/generate-context.js.map +1 -1
- package/dist/generate/kinds/generate-repository.d.ts.map +1 -1
- package/dist/generate/kinds/generate-repository.js +9 -1
- package/dist/generate/kinds/generate-repository.js.map +1 -1
- package/dist/generate/kinds/guard-kind.d.ts +1 -2
- package/dist/generate/kinds/guard-kind.d.ts.map +1 -1
- package/dist/generate/kinds/guard-kind.js +7 -9
- package/dist/generate/kinds/guard-kind.js.map +1 -1
- package/dist/generate/kinds/integration-event-kind.d.ts +1 -2
- package/dist/generate/kinds/integration-event-kind.d.ts.map +1 -1
- package/dist/generate/kinds/integration-event-kind.js +13 -11
- package/dist/generate/kinds/integration-event-kind.js.map +1 -1
- package/dist/generate/kinds/integration-handler-kind.d.ts +1 -2
- package/dist/generate/kinds/integration-handler-kind.d.ts.map +1 -1
- package/dist/generate/kinds/integration-handler-kind.js +9 -10
- package/dist/generate/kinds/integration-handler-kind.js.map +1 -1
- package/dist/generate/kinds/job-kind.d.ts +1 -2
- package/dist/generate/kinds/job-kind.d.ts.map +1 -1
- package/dist/generate/kinds/job-kind.js +20 -12
- package/dist/generate/kinds/job-kind.js.map +1 -1
- package/dist/generate/kinds/module-kind.d.ts +1 -2
- package/dist/generate/kinds/module-kind.d.ts.map +1 -1
- package/dist/generate/kinds/module-kind.js +14 -11
- package/dist/generate/kinds/module-kind.js.map +1 -1
- package/dist/generate/kinds/personal-data/table-of-schema.js +2 -2
- package/dist/generate/kinds/personal-data/table-of-schema.js.map +1 -1
- package/dist/generate/kinds/personal-fields-kind.d.ts +1 -2
- package/dist/generate/kinds/personal-fields-kind.d.ts.map +1 -1
- package/dist/generate/kinds/personal-fields-kind.js +21 -9
- package/dist/generate/kinds/personal-fields-kind.js.map +1 -1
- package/dist/generate/kinds/policy-kind.d.ts +1 -2
- package/dist/generate/kinds/policy-kind.d.ts.map +1 -1
- package/dist/generate/kinds/policy-kind.js +13 -11
- package/dist/generate/kinds/policy-kind.js.map +1 -1
- package/dist/generate/kinds/port-kind.d.ts +1 -2
- package/dist/generate/kinds/port-kind.d.ts.map +1 -1
- package/dist/generate/kinds/port-kind.js +7 -9
- package/dist/generate/kinds/port-kind.js.map +1 -1
- package/dist/generate/kinds/process-kind.d.ts +1 -2
- package/dist/generate/kinds/process-kind.d.ts.map +1 -1
- package/dist/generate/kinds/process-kind.js +8 -10
- package/dist/generate/kinds/process-kind.js.map +1 -1
- package/dist/generate/kinds/projection-kind.d.ts +1 -2
- package/dist/generate/kinds/projection-kind.d.ts.map +1 -1
- package/dist/generate/kinds/projection-kind.js +26 -11
- package/dist/generate/kinds/projection-kind.js.map +1 -1
- package/dist/generate/kinds/property-kind.d.ts +1 -2
- package/dist/generate/kinds/property-kind.d.ts.map +1 -1
- package/dist/generate/kinds/property-kind.js +14 -10
- package/dist/generate/kinds/property-kind.js.map +1 -1
- package/dist/generate/kinds/query-context.d.ts +1 -1
- package/dist/generate/kinds/query-context.d.ts.map +1 -1
- package/dist/generate/kinds/query-context.js +3 -2
- package/dist/generate/kinds/query-context.js.map +1 -1
- package/dist/generate/kinds/query-kind.d.ts +1 -2
- package/dist/generate/kinds/query-kind.d.ts.map +1 -1
- package/dist/generate/kinds/query-kind.js +17 -11
- package/dist/generate/kinds/query-kind.js.map +1 -1
- package/dist/generate/kinds/query-outputs.js +1 -1
- package/dist/generate/kinds/query-outputs.js.map +1 -1
- package/dist/generate/kinds/read-model-kind.d.ts +1 -2
- package/dist/generate/kinds/read-model-kind.d.ts.map +1 -1
- package/dist/generate/kinds/read-model-kind.js +16 -11
- package/dist/generate/kinds/read-model-kind.js.map +1 -1
- package/dist/generate/kinds/repository-kind.d.ts +1 -2
- package/dist/generate/kinds/repository-kind.d.ts.map +1 -1
- package/dist/generate/kinds/repository-kind.js +16 -9
- package/dist/generate/kinds/repository-kind.js.map +1 -1
- package/dist/generate/kinds/representation-kind.d.ts +1 -2
- package/dist/generate/kinds/representation-kind.d.ts.map +1 -1
- package/dist/generate/kinds/representation-kind.js +8 -9
- package/dist/generate/kinds/representation-kind.js.map +1 -1
- package/dist/generate/kinds/route-group-kind.d.ts +1 -2
- package/dist/generate/kinds/route-group-kind.d.ts.map +1 -1
- package/dist/generate/kinds/route-group-kind.js +18 -8
- package/dist/generate/kinds/route-group-kind.js.map +1 -1
- package/dist/generate/kinds/route-kind.d.ts.map +1 -1
- package/dist/generate/kinds/route-kind.js +17 -11
- package/dist/generate/kinds/route-kind.js.map +1 -1
- package/dist/generate/kinds/same-name/index-picture.d.ts +1 -19
- package/dist/generate/kinds/same-name/index-picture.d.ts.map +1 -1
- package/dist/generate/kinds/same-name/index-picture.js +4 -52
- package/dist/generate/kinds/same-name/index-picture.js.map +1 -1
- package/dist/generate/kinds/same-name/keep-the-picture.d.ts.map +1 -1
- package/dist/generate/kinds/same-name/keep-the-picture.js +18 -36
- package/dist/generate/kinds/same-name/keep-the-picture.js.map +1 -1
- package/dist/generate/kinds/schema-kind.d.ts +1 -2
- package/dist/generate/kinds/schema-kind.d.ts.map +1 -1
- package/dist/generate/kinds/schema-kind.js +12 -9
- package/dist/generate/kinds/schema-kind.js.map +1 -1
- package/dist/generate/kinds/service-kind.d.ts +1 -2
- package/dist/generate/kinds/service-kind.d.ts.map +1 -1
- package/dist/generate/kinds/service-kind.js +17 -9
- package/dist/generate/kinds/service-kind.js.map +1 -1
- package/dist/generate/kinds/state-machine-kind.d.ts +1 -2
- package/dist/generate/kinds/state-machine-kind.d.ts.map +1 -1
- package/dist/generate/kinds/state-machine-kind.js +12 -11
- package/dist/generate/kinds/state-machine-kind.js.map +1 -1
- package/dist/generate/kinds/test-world-kind.d.ts +1 -2
- package/dist/generate/kinds/test-world-kind.d.ts.map +1 -1
- package/dist/generate/kinds/test-world-kind.js +7 -9
- package/dist/generate/kinds/test-world-kind.js.map +1 -1
- package/dist/generate/kinds/value-object-kind.d.ts +1 -2
- package/dist/generate/kinds/value-object-kind.d.ts.map +1 -1
- package/dist/generate/kinds/value-object-kind.js +14 -20
- package/dist/generate/kinds/value-object-kind.js.map +1 -1
- package/dist/generate/kinds/vocabulary-kind.d.ts +1 -2
- package/dist/generate/kinds/vocabulary-kind.d.ts.map +1 -1
- package/dist/generate/kinds/vocabulary-kind.js +10 -9
- package/dist/generate/kinds/vocabulary-kind.js.map +1 -1
- package/dist/generate/kinds/worker-kind.d.ts.map +1 -1
- package/dist/generate/kinds/worker-kind.js +12 -2
- package/dist/generate/kinds/worker-kind.js.map +1 -1
- package/dist/generate/options-of.d.ts +5 -0
- package/dist/generate/options-of.d.ts.map +1 -0
- package/dist/generate/options-of.js +7 -0
- package/dist/generate/options-of.js.map +1 -0
- package/dist/generate/refuse-shared-writes.d.ts +9 -1
- package/dist/generate/refuse-shared-writes.d.ts.map +1 -1
- package/dist/generate/refuse-shared-writes.js +10 -9
- package/dist/generate/refuse-shared-writes.js.map +1 -1
- package/dist/generate/refuse-undeclared-flags.d.ts +4 -4
- package/dist/generate/refuse-undeclared-flags.js +6 -6
- package/dist/generate/refuse-undeclared-flags.js.map +1 -1
- package/dist/generate/searched-elements.d.ts +1 -1
- package/dist/generate/searched-elements.d.ts.map +1 -1
- package/dist/generate/searched-elements.js +5 -1
- package/dist/generate/searched-elements.js.map +1 -1
- package/dist/generate/shared-write.d.ts +27 -0
- package/dist/generate/shared-write.d.ts.map +1 -0
- package/dist/generate/shared-write.js +19 -0
- package/dist/generate/shared-write.js.map +1 -0
- package/dist/generate/stop-ignoring-validation.d.ts.map +1 -1
- package/dist/generate/stop-ignoring-validation.js +1 -3
- package/dist/generate/stop-ignoring-validation.js.map +1 -1
- package/dist/generate/usage-of.d.ts +4 -1
- package/dist/generate/usage-of.d.ts.map +1 -1
- package/dist/generate/usage-of.js +24 -2
- package/dist/generate/usage-of.js.map +1 -1
- package/dist/generate/with-import.d.ts +2 -2
- package/dist/generate/with-import.d.ts.map +1 -1
- package/dist/generate/with-import.js +4 -10
- package/dist/generate/with-import.js.map +1 -1
- package/dist/generate/writes-in-a-context.d.ts +4 -0
- package/dist/generate/writes-in-a-context.d.ts.map +1 -0
- package/dist/generate/writes-in-a-context.js +5 -0
- package/dist/generate/writes-in-a-context.js.map +1 -0
- package/dist/generator-lock/held-lock-refusal.js +1 -1
- package/dist/generator-lock/held-lock-refusal.js.map +1 -1
- package/dist/generator-lock/remove-stale.d.ts +6 -3
- package/dist/generator-lock/remove-stale.d.ts.map +1 -1
- package/dist/generator-lock/remove-stale.js +19 -8
- package/dist/generator-lock/remove-stale.js.map +1 -1
- package/dist/help/help-for.d.ts +2 -2
- package/dist/help/help-for.d.ts.map +1 -1
- package/dist/help/help-for.js +2 -3
- package/dist/help/help-for.js.map +1 -1
- package/dist/help/tool-notes.d.ts.map +1 -1
- package/dist/help/tool-notes.js +8 -0
- package/dist/help/tool-notes.js.map +1 -1
- package/dist/help/usage-for.d.ts +3 -2
- package/dist/help/usage-for.d.ts.map +1 -1
- package/dist/help/usage-for.js +9 -8
- package/dist/help/usage-for.js.map +1 -1
- package/dist/help/usage-lines-of.d.ts +1 -1
- package/dist/help/usage-lines-of.d.ts.map +1 -1
- package/dist/help/usage-lines-of.js +3 -16
- package/dist/help/usage-lines-of.js.map +1 -1
- package/dist/help/usage.d.ts +4 -1
- package/dist/help/usage.d.ts.map +1 -1
- package/dist/help/usage.js +8 -72
- package/dist/help/usage.js.map +1 -1
- package/dist/init/knip-vars.d.ts.map +1 -1
- package/dist/init/knip-vars.js +7 -6
- package/dist/init/knip-vars.js.map +1 -1
- package/dist/init/managed-settings-note.js +1 -1
- package/dist/init/managed-settings-note.js.map +1 -1
- package/dist/init/manifest/left-to-workspace-root.d.ts +4 -0
- package/dist/init/manifest/left-to-workspace-root.d.ts.map +1 -0
- package/dist/init/manifest/left-to-workspace-root.js +6 -0
- package/dist/init/manifest/left-to-workspace-root.js.map +1 -0
- package/dist/init/manifest/versions.js +25 -25
- package/dist/init/manifest/write-install-settings.d.ts +10 -0
- package/dist/init/manifest/write-install-settings.d.ts.map +1 -0
- package/dist/init/manifest/write-install-settings.js +57 -0
- package/dist/init/manifest/write-install-settings.js.map +1 -0
- package/dist/init/rewire-tables.d.ts.map +1 -1
- package/dist/init/rewire-tables.js +2 -52
- package/dist/init/rewire-tables.js.map +1 -1
- package/dist/init/run-init.d.ts.map +1 -1
- package/dist/init/run-init.js +12 -8
- package/dist/init/run-init.js.map +1 -1
- package/dist/init/settle-index-names.d.ts.map +1 -1
- package/dist/init/settle-index-names.js +4 -43
- package/dist/init/settle-index-names.js.map +1 -1
- package/dist/init/stack/resolve-stack.d.ts.map +1 -1
- package/dist/init/stack/resolve-stack.js +10 -1
- package/dist/init/stack/resolve-stack.js.map +1 -1
- package/dist/init/subfolder-sentence.js +1 -1
- package/dist/init/subfolder-sentence.js.map +1 -1
- package/dist/init/template-vars.d.ts.map +1 -1
- package/dist/init/template-vars.js +0 -2
- package/dist/init/template-vars.js.map +1 -1
- package/dist/init/workspace-image-note.d.ts +9 -0
- package/dist/init/workspace-image-note.d.ts.map +1 -0
- package/dist/init/workspace-image-note.js +37 -0
- package/dist/init/workspace-image-note.js.map +1 -0
- package/dist/init/workspace-manager-note.d.ts +5 -0
- package/dist/init/workspace-manager-note.d.ts.map +1 -0
- package/dist/init/workspace-manager-note.js +12 -0
- package/dist/init/workspace-manager-note.js.map +1 -0
- package/dist/init/write-agent-settings.js +1 -1
- package/dist/init/write-agent-settings.js.map +1 -1
- package/dist/init/write-contracts.js +1 -1
- package/dist/init/write-contracts.js.map +1 -1
- package/dist/init/write-copilot-settings.js +1 -1
- package/dist/init/write-copilot-settings.js.map +1 -1
- package/dist/init/write-local-environment.js +1 -1
- package/dist/init/write-local-environment.js.map +1 -1
- package/dist/init/write-profile-hooks.js +1 -1
- package/dist/init/write-profile-hooks.js.map +1 -1
- package/dist/issues-url.d.ts +1 -1
- package/dist/issues-url.d.ts.map +1 -1
- package/dist/issues-url.js +1 -1
- package/dist/issues-url.js.map +1 -1
- package/dist/lint/eslint-in-project.d.ts +6 -2
- package/dist/lint/eslint-in-project.d.ts.map +1 -1
- package/dist/lint/eslint-in-project.js +9 -3
- package/dist/lint/eslint-in-project.js.map +1 -1
- package/dist/markers/insert-in-region.js +23 -6
- package/dist/markers/insert-in-region.js.map +1 -1
- package/dist/markers/merge-imports.d.ts +3 -1
- package/dist/markers/merge-imports.d.ts.map +1 -1
- package/dist/markers/merge-imports.js +66 -23
- package/dist/markers/merge-imports.js.map +1 -1
- package/dist/markers/replace-in-region.js +1 -1
- package/dist/markers/replace-in-region.js.map +1 -1
- package/dist/merge/land-drizzle.d.ts +1 -1
- package/dist/merge/land-drizzle.d.ts.map +1 -1
- package/dist/merge/land-drizzle.js +2 -2
- package/dist/merge/land-drizzle.js.map +1 -1
- package/dist/merge/land-up-to-date.d.ts.map +1 -1
- package/dist/merge/land-up-to-date.js +11 -47
- package/dist/merge/land-up-to-date.js.map +1 -1
- package/dist/merge/merge-steps.d.ts.map +1 -1
- package/dist/merge/merge-steps.js +4 -9
- package/dist/merge/merge-steps.js.map +1 -1
- package/dist/merge/order/applied-under-old-name.d.ts +4 -9
- package/dist/merge/order/applied-under-old-name.d.ts.map +1 -1
- package/dist/merge/order/applied-under-old-name.js +5 -9
- package/dist/merge/order/applied-under-old-name.js.map +1 -1
- package/dist/merge/order/drizzle-order.js +3 -3
- package/dist/merge/order/drizzle-order.js.map +1 -1
- package/dist/merge/order/migration-order.d.ts.map +1 -1
- package/dist/merge/order/migration-order.js +2 -6
- package/dist/merge/order/migration-order.js.map +1 -1
- package/dist/merge/order/named-order.d.ts +3 -3
- package/dist/merge/order/named-order.d.ts.map +1 -1
- package/dist/merge/order/named-order.js +10 -14
- package/dist/merge/order/named-order.js.map +1 -1
- package/dist/merge/renamed-after-trunk.d.ts +10 -0
- package/dist/merge/renamed-after-trunk.d.ts.map +1 -0
- package/dist/merge/renamed-after-trunk.js +21 -0
- package/dist/merge/renamed-after-trunk.js.map +1 -0
- package/dist/merge/renumber-migrations.d.ts +4 -8
- package/dist/merge/renumber-migrations.d.ts.map +1 -1
- package/dist/merge/renumber-migrations.js +28 -53
- package/dist/merge/renumber-migrations.js.map +1 -1
- package/dist/merge/replayed-after-trunk.d.ts +7 -0
- package/dist/merge/replayed-after-trunk.d.ts.map +1 -0
- package/dist/merge/replayed-after-trunk.js +35 -0
- package/dist/merge/replayed-after-trunk.js.map +1 -0
- package/dist/migration/refuse-taken-migration-name.d.ts +2 -1
- package/dist/migration/refuse-taken-migration-name.d.ts.map +1 -1
- package/dist/migration/refuse-taken-migration-name.js +3 -5
- package/dist/migration/refuse-taken-migration-name.js.map +1 -1
- package/dist/naming/inflection.d.ts +15 -0
- package/dist/naming/inflection.d.ts.map +1 -0
- package/dist/naming/inflection.js +24 -0
- package/dist/naming/inflection.js.map +1 -0
- package/dist/naming/parse-concept-name.d.ts +3 -2
- package/dist/naming/parse-concept-name.d.ts.map +1 -1
- package/dist/naming/parse-concept-name.js +5 -2
- package/dist/naming/parse-concept-name.js.map +1 -1
- package/dist/naming/plural.d.ts +1 -1
- package/dist/naming/plural.d.ts.map +1 -1
- package/dist/naming/plural.js +7 -4
- package/dist/naming/plural.js.map +1 -1
- package/dist/naming/refuse-unwritable.d.ts +8 -0
- package/dist/naming/refuse-unwritable.d.ts.map +1 -0
- package/dist/naming/refuse-unwritable.js +32 -0
- package/dist/naming/refuse-unwritable.js.map +1 -0
- package/dist/naming/singular.d.ts +5 -1
- package/dist/naming/singular.d.ts.map +1 -1
- package/dist/naming/singular.js +15 -2
- package/dist/naming/singular.js.map +1 -1
- package/dist/naming/to-name.d.ts +5 -0
- package/dist/naming/to-name.d.ts.map +1 -1
- package/dist/naming/to-name.js +7 -2
- package/dist/naming/to-name.js.map +1 -1
- package/dist/orm/database-access.d.ts +13 -0
- package/dist/orm/database-access.d.ts.map +1 -0
- package/dist/orm/database-access.js +2 -0
- package/dist/orm/database-access.js.map +1 -0
- package/dist/orm/members/drizzle.d.ts +3 -0
- package/dist/orm/members/drizzle.d.ts.map +1 -0
- package/dist/orm/members/drizzle.js +16 -0
- package/dist/orm/members/drizzle.js.map +1 -0
- package/dist/orm/members/knex.d.ts +3 -0
- package/dist/orm/members/knex.d.ts.map +1 -0
- package/dist/orm/members/knex.js +20 -0
- package/dist/orm/members/knex.js.map +1 -0
- package/dist/orm/members/prisma.d.ts +3 -0
- package/dist/orm/members/prisma.d.ts.map +1 -0
- package/dist/orm/members/prisma.js +9 -0
- package/dist/orm/members/prisma.js.map +1 -0
- package/dist/orm/members/typeorm.d.ts +3 -0
- package/dist/orm/members/typeorm.d.ts.map +1 -0
- package/dist/orm/members/typeorm.js +18 -0
- package/dist/orm/members/typeorm.js.map +1 -0
- package/dist/orm/migrations/files-of-commit.d.ts +3 -0
- package/dist/orm/migrations/files-of-commit.d.ts.map +1 -0
- package/dist/orm/migrations/files-of-commit.js +8 -0
- package/dist/orm/migrations/files-of-commit.js.map +1 -0
- package/dist/orm/migrations/in-order.d.ts +5 -0
- package/dist/orm/migrations/in-order.d.ts.map +1 -0
- package/dist/orm/migrations/in-order.js +5 -0
- package/dist/orm/migrations/in-order.js.map +1 -0
- package/dist/orm/migrations/migration-history.d.ts +44 -0
- package/dist/orm/migrations/migration-history.d.ts.map +1 -0
- package/dist/orm/migrations/migration-history.js +2 -0
- package/dist/orm/migrations/migration-history.js.map +1 -0
- package/dist/orm/migrations/migration-tool.d.ts +32 -0
- package/dist/orm/migrations/migration-tool.d.ts.map +1 -0
- package/dist/orm/migrations/migration-tool.js +2 -0
- package/dist/orm/migrations/migration-tool.js.map +1 -0
- package/dist/orm/migrations/migrations-landed.d.ts +6 -0
- package/dist/orm/migrations/migrations-landed.d.ts.map +1 -0
- package/dist/orm/migrations/migrations-landed.js +2 -0
- package/dist/orm/migrations/migrations-landed.js.map +1 -0
- package/dist/orm/migrations/named-folders.d.ts +7 -0
- package/dist/orm/migrations/named-folders.d.ts.map +1 -0
- package/dist/orm/migrations/named-folders.js +40 -0
- package/dist/orm/migrations/named-folders.js.map +1 -0
- package/dist/orm/migrations/named-scripts.d.ts +7 -0
- package/dist/orm/migrations/named-scripts.d.ts.map +1 -0
- package/dist/orm/migrations/named-scripts.js +36 -0
- package/dist/orm/migrations/named-scripts.js.map +1 -0
- package/dist/orm/migrations/numbered-name.d.ts +6 -0
- package/dist/orm/migrations/numbered-name.d.ts.map +1 -0
- package/dist/orm/migrations/numbered-name.js +7 -0
- package/dist/orm/migrations/numbered-name.js.map +1 -0
- package/dist/{merge/order → orm/migrations}/ordered-migration.d.ts +0 -2
- package/dist/orm/migrations/ordered-migration.d.ts.map +1 -0
- package/dist/orm/migrations/ordered-migration.js.map +1 -0
- package/dist/orm/migrations/renumbered-name.d.ts +3 -0
- package/dist/orm/migrations/renumbered-name.d.ts.map +1 -0
- package/dist/orm/migrations/renumbered-name.js +7 -0
- package/dist/orm/migrations/renumbered-name.js.map +1 -0
- package/dist/orm/migrations/restamp-class.d.ts.map +1 -0
- package/dist/{merge → orm/migrations}/restamp-class.js +2 -2
- package/dist/orm/migrations/restamp-class.js.map +1 -0
- package/dist/orm/migrations/script-named.d.ts +3 -0
- package/dist/orm/migrations/script-named.d.ts.map +1 -0
- package/dist/orm/migrations/script-named.js +6 -0
- package/dist/orm/migrations/script-named.js.map +1 -0
- package/dist/orm/migrations/scripts.d.ts +7 -0
- package/dist/orm/migrations/scripts.d.ts.map +1 -0
- package/dist/orm/migrations/scripts.js +7 -0
- package/dist/orm/migrations/scripts.js.map +1 -0
- package/dist/orm/migrations/stamped-classes.d.ts +8 -0
- package/dist/orm/migrations/stamped-classes.d.ts.map +1 -0
- package/dist/orm/migrations/stamped-classes.js +53 -0
- package/dist/orm/migrations/stamped-classes.js.map +1 -0
- package/dist/orm/orm-member.d.ts +16 -0
- package/dist/orm/orm-member.d.ts.map +1 -0
- package/dist/orm/orm-member.js +2 -0
- package/dist/orm/orm-member.js.map +1 -0
- package/dist/orm/orm-members.d.ts +5 -0
- package/dist/orm/orm-members.d.ts.map +1 -0
- package/dist/orm/orm-members.js +11 -0
- package/dist/orm/orm-members.js.map +1 -0
- package/dist/orm/tables/declare-once.d.ts +14 -0
- package/dist/orm/tables/declare-once.d.ts.map +1 -0
- package/dist/orm/tables/declare-once.js +22 -0
- package/dist/orm/tables/declare-once.js.map +1 -0
- package/dist/orm/tables/declared-in-tables-file.d.ts +35 -0
- package/dist/orm/tables/declared-in-tables-file.d.ts.map +1 -0
- package/dist/orm/tables/declared-in-tables-file.js +98 -0
- package/dist/orm/tables/declared-in-tables-file.js.map +1 -0
- package/dist/orm/tables/declared-table.d.ts +12 -0
- package/dist/orm/tables/declared-table.d.ts.map +1 -0
- package/dist/orm/tables/declared-table.js +2 -0
- package/dist/orm/tables/declared-table.js.map +1 -0
- package/dist/orm/tables/empty-picture.d.ts +4 -0
- package/dist/orm/tables/empty-picture.d.ts.map +1 -0
- package/dist/orm/tables/empty-picture.js +5 -0
- package/dist/orm/tables/empty-picture.js.map +1 -0
- package/dist/orm/tables/exported-names.d.ts +8 -0
- package/dist/orm/tables/exported-names.d.ts.map +1 -0
- package/dist/orm/tables/exported-names.js +68 -0
- package/dist/orm/tables/exported-names.js.map +1 -0
- package/dist/orm/tables/file-of-table.d.ts +3 -0
- package/dist/orm/tables/file-of-table.d.ts.map +1 -0
- package/dist/orm/tables/file-of-table.js +5 -0
- package/dist/orm/tables/file-of-table.js.map +1 -0
- package/dist/orm/tables/index-names.d.ts +55 -0
- package/dist/orm/tables/index-names.d.ts.map +1 -0
- package/dist/orm/tables/index-names.js +2 -0
- package/dist/orm/tables/index-names.js.map +1 -0
- package/dist/orm/tables/index-picture.d.ts +20 -0
- package/dist/orm/tables/index-picture.d.ts.map +1 -0
- package/dist/orm/tables/index-picture.js +2 -0
- package/dist/orm/tables/index-picture.js.map +1 -0
- package/dist/orm/tables/listed-entities.d.ts +9 -0
- package/dist/orm/tables/listed-entities.d.ts.map +1 -0
- package/dist/orm/tables/listed-entities.js +65 -0
- package/dist/orm/tables/listed-entities.js.map +1 -0
- package/dist/orm/tables/prisma-models.d.ts +7 -0
- package/dist/orm/tables/prisma-models.d.ts.map +1 -0
- package/dist/orm/tables/prisma-models.js +33 -0
- package/dist/orm/tables/prisma-models.js.map +1 -0
- package/dist/orm/tables/tables-declaration.d.ts +30 -0
- package/dist/orm/tables/tables-declaration.d.ts.map +1 -0
- package/dist/orm/tables/tables-declaration.js +2 -0
- package/dist/orm/tables/tables-declaration.js.map +1 -0
- package/dist/orm/tables/template-of-table.d.ts +4 -0
- package/dist/orm/tables/template-of-table.d.ts.map +1 -0
- package/dist/orm/tables/template-of-table.js +7 -0
- package/dist/orm/tables/template-of-table.js.map +1 -0
- package/dist/package-manager/listed-by.d.ts +3 -0
- package/dist/package-manager/listed-by.d.ts.map +1 -0
- package/dist/package-manager/listed-by.js +17 -0
- package/dist/package-manager/listed-by.js.map +1 -0
- package/dist/package-manager/npm-workspace-of.d.ts +15 -0
- package/dist/package-manager/npm-workspace-of.d.ts.map +1 -0
- package/dist/package-manager/npm-workspace-of.js +35 -0
- package/dist/package-manager/npm-workspace-of.js.map +1 -0
- package/dist/package-manager/package-manager-vars.d.ts +1 -1
- package/dist/package-manager/package-manager-vars.d.ts.map +1 -1
- package/dist/package-manager/package-manager-vars.js +2 -1
- package/dist/package-manager/package-manager-vars.js.map +1 -1
- package/dist/package-manager/pnpm-settings-file.d.ts +6 -0
- package/dist/package-manager/pnpm-settings-file.d.ts.map +1 -0
- package/dist/package-manager/pnpm-settings-file.js +12 -0
- package/dist/package-manager/pnpm-settings-file.js.map +1 -0
- package/dist/package-manager/pnpm-workspace-of.d.ts +18 -0
- package/dist/package-manager/pnpm-workspace-of.d.ts.map +1 -0
- package/dist/package-manager/pnpm-workspace-of.js +49 -0
- package/dist/package-manager/pnpm-workspace-of.js.map +1 -0
- package/dist/package-manager/workspace-package-manager.d.ts +14 -0
- package/dist/package-manager/workspace-package-manager.d.ts.map +1 -0
- package/dist/package-manager/workspace-package-manager.js +56 -0
- package/dist/package-manager/workspace-package-manager.js.map +1 -0
- package/dist/plan/planned-words.js +1 -1
- package/dist/plan/planned-words.js.map +1 -1
- package/dist/prisma-schema/datasource-list.d.ts +4 -0
- package/dist/prisma-schema/datasource-list.d.ts.map +1 -0
- package/dist/prisma-schema/datasource-list.js +6 -0
- package/dist/prisma-schema/datasource-list.js.map +1 -0
- package/dist/prisma-schema/datasource-schemas.d.ts.map +1 -1
- package/dist/prisma-schema/datasource-schemas.js +2 -1
- package/dist/prisma-schema/datasource-schemas.js.map +1 -1
- package/dist/prisma-schema/preview-features-of.d.ts.map +1 -1
- package/dist/prisma-schema/preview-features-of.js +2 -3
- package/dist/prisma-schema/preview-features-of.js.map +1 -1
- package/dist/prisma-schema/schema-block.d.ts +20 -0
- package/dist/prisma-schema/schema-block.d.ts.map +1 -0
- package/dist/prisma-schema/schema-block.js +45 -0
- package/dist/prisma-schema/schema-block.js.map +1 -0
- package/dist/prisma-schema/schema-code.d.ts +7 -0
- package/dist/prisma-schema/schema-code.d.ts.map +1 -0
- package/dist/prisma-schema/schema-code.js +10 -0
- package/dist/prisma-schema/schema-code.js.map +1 -0
- package/dist/prisma-schema/schema-list.d.ts +14 -0
- package/dist/prisma-schema/schema-list.d.ts.map +1 -0
- package/dist/prisma-schema/schema-list.js +33 -0
- package/dist/prisma-schema/schema-list.js.map +1 -0
- package/dist/prisma-schema/with-datasource-schema.d.ts +5 -1
- package/dist/prisma-schema/with-datasource-schema.d.ts.map +1 -1
- package/dist/prisma-schema/with-datasource-schema.js +12 -5
- package/dist/prisma-schema/with-datasource-schema.js.map +1 -1
- package/dist/prisma-schema/with-preview-feature.d.ts.map +1 -1
- package/dist/prisma-schema/with-preview-feature.js +6 -14
- package/dist/prisma-schema/with-preview-feature.js.map +1 -1
- package/dist/refusals/cut-factories.js +2 -2
- package/dist/refusals/cut-factories.js.map +1 -1
- package/dist/refusals/read-concept-error.d.ts.map +1 -1
- package/dist/refusals/read-concept-error.js +2 -2
- package/dist/refusals/read-concept-error.js.map +1 -1
- package/dist/run.d.ts +0 -2
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +35 -114
- package/dist/run.js.map +1 -1
- package/dist/sdk/put-file.d.ts +5 -2
- package/dist/sdk/put-file.d.ts.map +1 -1
- package/dist/sdk/put-file.js +6 -2
- package/dist/sdk/put-file.js.map +1 -1
- package/dist/sdk/sdk-scripts.d.ts +4 -3
- package/dist/sdk/sdk-scripts.d.ts.map +1 -1
- package/dist/sdk/sdk-scripts.js +6 -5
- package/dist/sdk/sdk-scripts.js.map +1 -1
- package/dist/sdk/wire-sdk.d.ts.map +1 -1
- package/dist/sdk/wire-sdk.js +10 -1
- package/dist/sdk/wire-sdk.js.map +1 -1
- package/dist/slice/verify-slice.js +2 -2
- package/dist/source-text/block-after.d.ts +8 -0
- package/dist/source-text/block-after.d.ts.map +1 -0
- package/dist/source-text/block-after.js +35 -0
- package/dist/source-text/block-after.js.map +1 -0
- package/dist/source-text/bound-by.d.ts +4 -0
- package/dist/source-text/bound-by.d.ts.map +1 -0
- package/dist/source-text/bound-by.js +5 -0
- package/dist/source-text/bound-by.js.map +1 -0
- package/dist/source-text/class-body.d.ts +8 -0
- package/dist/source-text/class-body.d.ts.map +1 -0
- package/dist/source-text/class-body.js +11 -0
- package/dist/source-text/class-body.js.map +1 -0
- package/dist/source-text/import-statement.d.ts +17 -0
- package/dist/source-text/import-statement.d.ts.map +1 -0
- package/dist/source-text/import-statement.js +2 -0
- package/dist/source-text/import-statement.js.map +1 -0
- package/dist/source-text/import-statements.d.ts +20 -0
- package/dist/source-text/import-statements.d.ts.map +1 -0
- package/dist/source-text/import-statements.js +53 -0
- package/dist/source-text/import-statements.js.map +1 -0
- package/dist/source-text/index.d.ts +7 -0
- package/dist/source-text/index.d.ts.map +1 -0
- package/dist/source-text/index.js +6 -0
- package/dist/source-text/index.js.map +1 -0
- package/dist/source-text/line-of.d.ts +8 -0
- package/dist/source-text/line-of.d.ts.map +1 -0
- package/dist/source-text/line-of.js +7 -0
- package/dist/source-text/line-of.js.map +1 -0
- package/dist/source-text/list-literal.d.ts +24 -0
- package/dist/source-text/list-literal.d.ts.map +1 -0
- package/dist/source-text/list-literal.js +68 -0
- package/dist/source-text/list-literal.js.map +1 -0
- package/dist/source-text/object-entry.d.ts +14 -0
- package/dist/source-text/object-entry.d.ts.map +1 -0
- package/dist/source-text/object-entry.js +26 -0
- package/dist/source-text/object-entry.js.map +1 -0
- package/dist/source-text/object-literal.d.ts +27 -0
- package/dist/source-text/object-literal.d.ts.map +1 -0
- package/dist/source-text/object-literal.js +66 -0
- package/dist/source-text/object-literal.js.map +1 -0
- package/dist/source-text/parts-between.d.ts +8 -0
- package/dist/source-text/parts-between.d.ts.map +1 -0
- package/dist/source-text/parts-between.js +33 -0
- package/dist/source-text/parts-between.js.map +1 -0
- package/dist/source-text/read-imports.d.ts +9 -0
- package/dist/source-text/read-imports.d.ts.map +1 -0
- package/dist/source-text/read-imports.js +46 -0
- package/dist/source-text/read-imports.js.map +1 -0
- package/dist/source-text/read-source.d.ts +10 -0
- package/dist/source-text/read-source.d.ts.map +1 -0
- package/dist/source-text/read-source.js +2 -0
- package/dist/source-text/read-source.js.map +1 -0
- package/dist/source-text/source-text.d.ts +21 -0
- package/dist/source-text/source-text.d.ts.map +1 -0
- package/dist/source-text/source-text.js +38 -0
- package/dist/source-text/source-text.js.map +1 -0
- package/dist/source-text/span.d.ts +6 -0
- package/dist/source-text/span.d.ts.map +1 -0
- package/dist/source-text/span.js +2 -0
- package/dist/source-text/span.js.map +1 -0
- package/dist/stack/audit-vars.d.ts.map +1 -1
- package/dist/stack/audit-vars.js +4 -3
- package/dist/stack/audit-vars.js.map +1 -1
- package/dist/stack/authentication-vars.d.ts +1 -1
- package/dist/stack/authentication-vars.d.ts.map +1 -1
- package/dist/stack/authentication-vars.js +3 -1
- package/dist/stack/authentication-vars.js.map +1 -1
- package/dist/stack/broker-vars.d.ts +1 -1
- package/dist/stack/broker-vars.d.ts.map +1 -1
- package/dist/stack/broker-vars.js +2 -1
- package/dist/stack/broker-vars.js.map +1 -1
- package/dist/stack/files-vars.d.ts +1 -1
- package/dist/stack/files-vars.d.ts.map +1 -1
- package/dist/stack/files-vars.js +2 -1
- package/dist/stack/files-vars.js.map +1 -1
- package/dist/stack/one.d.ts +6 -2
- package/dist/stack/one.d.ts.map +1 -1
- package/dist/stack/one.js +5 -1
- package/dist/stack/one.js.map +1 -1
- package/dist/stack/persistence-vars.d.ts.map +1 -1
- package/dist/stack/persistence-vars.js +9 -14
- package/dist/stack/persistence-vars.js.map +1 -1
- package/dist/stack/stack-vars.d.ts.map +1 -1
- package/dist/stack/stack-vars.js +28 -26
- package/dist/stack/stack-vars.js.map +1 -1
- package/dist/stack/with-database.d.ts.map +1 -1
- package/dist/stack/with-database.js +3 -1
- package/dist/stack/with-database.js.map +1 -1
- package/dist/stories/read-stories.js +2 -2
- package/dist/stories/read-stories.js.map +1 -1
- package/dist/templating/render-template.d.ts +4 -1
- package/dist/templating/render-template.d.ts.map +1 -1
- package/dist/templating/render-template.js +9 -3
- package/dist/templating/render-template.js.map +1 -1
- package/dist/templating/rendering.d.ts +5 -0
- package/dist/templating/rendering.d.ts.map +1 -1
- package/dist/templating/rendering.js +14 -6
- package/dist/templating/rendering.js.map +1 -1
- package/dist/templating/spoken-for.d.ts +15 -0
- package/dist/templating/spoken-for.d.ts.map +1 -0
- package/dist/templating/spoken-for.js +21 -0
- package/dist/templating/spoken-for.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/worker/read-workers.js +2 -2
- package/dist/worker/read-workers.js.map +1 -1
- package/dist/worker/worker-generators.js +4 -4
- package/dist/worker/worker-generators.js.map +1 -1
- package/dist/worker/{changed-files.d.ts → worktree-files.d.ts} +2 -2
- package/dist/worker/worktree-files.d.ts.map +1 -0
- package/dist/worker/worktree-files.js +10 -0
- package/dist/worker/worktree-files.js.map +1 -0
- package/dist/workspace/stage-if-allowed.d.ts +22 -0
- package/dist/workspace/stage-if-allowed.d.ts.map +1 -0
- package/dist/workspace/stage-if-allowed.js +97 -0
- package/dist/workspace/stage-if-allowed.js.map +1 -0
- package/dist/workspace/updated-and-skipped.d.ts +20 -0
- package/dist/workspace/updated-and-skipped.d.ts.map +1 -0
- package/dist/workspace/updated-and-skipped.js +11 -0
- package/dist/workspace/updated-and-skipped.js.map +1 -0
- package/dist/workspace/workspace.d.ts +9 -8
- package/dist/workspace/workspace.d.ts.map +1 -1
- package/dist/workspace/workspace.js +13 -12
- package/dist/workspace/workspace.js.map +1 -1
- package/dist/workspace/write-if-allowed.d.ts +5 -13
- package/dist/workspace/write-if-allowed.d.ts.map +1 -1
- package/dist/workspace/write-if-allowed.js +9 -69
- package/dist/workspace/write-if-allowed.js.map +1 -1
- package/dist/workspace/written-of.d.ts +8 -2
- package/dist/workspace/written-of.d.ts.map +1 -1
- package/dist/workspace/written-of.js +39 -11
- package/dist/workspace/written-of.js.map +1 -1
- package/package.json +9 -9
- package/templates/acl/translator.spec.ts.tpl +6 -3
- package/templates/acl/translator.ts.tpl +4 -2
- package/templates/aggregate/aggregate.spec.ts.tpl +3 -2
- package/templates/aggregate/event-sourced.aggregate.spec.ts.tpl +3 -3
- package/templates/command/handler.declared.ts.tpl +13 -21
- package/templates/command/handler.spec.buses.ts.tpl +5 -4
- package/templates/command/handler.spec.container.ts.tpl +18 -4
- package/templates/command/handler.ts.tpl +13 -23
- package/templates/domain-event/domain-event.ts.tpl +1 -7
- package/templates/e2e/e2e-reaction.spec.ts.tpl +6 -0
- package/templates/e2e/e2e.spec.ts.tpl +4 -1
- package/templates/event-handler/event-handler.declared.ts.tpl +7 -3
- package/templates/event-handler/event-handler.spec.ts.tpl +8 -9
- package/templates/event-handler/event-handler.ts.tpl +7 -3
- package/templates/gateway/adapter.declared.ts.tpl +1 -1
- package/templates/gateway/adapter.ts.tpl +1 -1
- package/templates/gateway/contract.platform-test.declared.tpl +8 -0
- package/templates/gateway/contract.platform.declared.tpl +8 -0
- package/templates/gateway/contract.wiring.container.tpl +8 -0
- package/templates/gateway/wiring.container.tpl +0 -1
- package/templates/init/AGENTS.md.tpl +1 -1
- package/templates/init/README.md.tpl +3 -3
- package/templates/init/e2e/jest.e2e.config.js.tpl +2 -0
- package/templates/init/e2e/vitest.e2e.config.ts.tpl +2 -0
- package/templates/init/jest.config.js.tpl +2 -0
- package/templates/init/platform/auth/authorization/authorization.container.ts.tpl +19 -2
- package/templates/init/platform/auth/authorization/use-case-protection.ts.tpl +5 -2
- package/templates/init/platform/auth/relationships/relationship-schema.ts.tpl +3 -2
- package/templates/init/platform/composition/create-platform.manual.ts.tpl +14 -2
- package/templates/init/platform/database/schema.prisma.tpl +2 -0
- package/templates/init/platform/events/custom-event-bus.ts.tpl +1 -1
- package/templates/init/platform/events/in-process-events.ts.tpl +1 -1
- package/templates/init/platform/http/start-http-server.express.ts.tpl +4 -2
- package/templates/init/platform/http/start-http-server.fastify.ts.tpl +1 -1
- package/templates/init/platform/http/start-http-server.hono.ts.tpl +1 -1
- package/templates/init/platform/http/start-http-server.nest.ts.tpl +9 -1
- package/templates/init/platform/observability/create-logger.winston.ts.tpl +1 -2
- package/templates/init/rules/application.md.tpl +1 -1
- package/templates/init/rules/infrastructure.md.tpl +2 -2
- package/templates/integration-handler/integration-handler.declared.ts.tpl +3 -2
- package/templates/integration-handler/integration-handler.spec.ts.tpl +5 -6
- package/templates/integration-handler/integration-handler.ts.tpl +6 -4
- package/templates/pipeline/biome.json.tpl +1 -1
- package/templates/pipeline/github/workflows/intent-to-spec.yml +1 -1
- package/templates/pipeline/jest.mutation.config.js.tpl +2 -0
- package/templates/pipeline/knip.json.tpl +0 -2
- package/templates/pipeline/package-scripts.json +4 -4
- package/templates/pipeline/vitest.config.ts.tpl +2 -0
- package/templates/pipeline/vitest.mutation.config.ts.tpl +2 -0
- package/templates/policy/policy.declared.ts.tpl +4 -4
- package/templates/policy/policy.spec.declared.ts.tpl +3 -14
- package/templates/policy/policy.spec.ts.tpl +3 -9
- package/templates/policy/policy.ts.tpl +2 -3
- package/templates/presets/identity/context/domain/events/account-deactivated.event.ts.tpl +1 -8
- package/templates/presets/identity/context/domain/events/account-provisioned.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/delegation-granted.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/delegation-revoked.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/invitation-accepted.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/invitation-declined.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/invitation-issued.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/invitation-revoked.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/member-joined.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/member-removed.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/member-role-changed.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/organisation-opened.event.ts.tpl +3 -3
- package/templates/presets/identity/context/infrastructure/persistence/account.mapper.drizzle.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/account.mapper.knex.ts.tpl +4 -7
- package/templates/presets/identity/context/infrastructure/persistence/account.mapper.prisma.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/delegation.mapper.drizzle.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/delegation.mapper.knex.ts.tpl +4 -7
- package/templates/presets/identity/context/infrastructure/persistence/delegation.mapper.prisma.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-account.repository.drizzle.ts.tpl +9 -27
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-delegation.repository.drizzle.ts.tpl +8 -26
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-invitation.repository.drizzle.ts.tpl +9 -27
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-member.repository.drizzle.ts.tpl +8 -26
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-organisation.repository.drizzle.ts.tpl +9 -27
- package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.drizzle.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.knex.ts.tpl +4 -7
- package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.prisma.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/knex-account.repository.knex.ts.tpl +9 -25
- package/templates/presets/identity/context/infrastructure/persistence/knex-delegation.repository.knex.ts.tpl +9 -25
- package/templates/presets/identity/context/infrastructure/persistence/knex-invitation.repository.knex.ts.tpl +9 -25
- package/templates/presets/identity/context/infrastructure/persistence/knex-member.repository.knex.ts.tpl +9 -25
- package/templates/presets/identity/context/infrastructure/persistence/knex-organisation.repository.knex.ts.tpl +9 -25
- package/templates/presets/identity/context/infrastructure/persistence/member.mapper.drizzle.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/member.mapper.knex.ts.tpl +4 -7
- package/templates/presets/identity/context/infrastructure/persistence/member.mapper.prisma.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/organisation.mapper.drizzle.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/organisation.mapper.knex.ts.tpl +4 -7
- package/templates/presets/identity/context/infrastructure/persistence/organisation.mapper.prisma.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/prisma-account.repository.prisma.ts.tpl +8 -26
- package/templates/presets/identity/context/infrastructure/persistence/prisma-delegation.repository.prisma.ts.tpl +8 -26
- package/templates/presets/identity/context/infrastructure/persistence/prisma-invitation.repository.prisma.ts.tpl +8 -26
- package/templates/presets/identity/context/infrastructure/persistence/prisma-member.repository.prisma.ts.tpl +8 -26
- package/templates/presets/identity/context/infrastructure/persistence/prisma-organisation.repository.prisma.ts.tpl +8 -26
- package/templates/presets/identity/context/test/unit/account.aggregate.spec.ts.tpl +3 -3
- package/templates/presets/identity/context/test/unit/delegation.aggregate.spec.ts.tpl +3 -3
- package/templates/presets/identity/context/test/unit/invitation.aggregate.spec.ts.tpl +3 -3
- package/templates/presets/identity/context/test/unit/member.aggregate.spec.ts.tpl +3 -3
- package/templates/presets/identity/context/test/unit/organisation.aggregate.spec.ts.tpl +3 -2
- package/templates/presets/identity/context/test/worlds/__context__.world.declared.ts.tpl +0 -1
- package/templates/presets/identity/context/test/worlds/__context__.world.explicit.ts.tpl +1 -1
- package/templates/process/process.spec.ts.tpl +5 -5
- package/templates/process/timeout-job.declared.ts.tpl +2 -2
- package/templates/process/timeout-job.spec.buses.ts.tpl +2 -2
- package/templates/process/timeout-job.spec.container.ts.tpl +2 -2
- package/templates/process/timeout-job.ts.tpl +2 -2
- package/templates/projection/projection.manual.ts.tpl +8 -1
- package/templates/projection/projection.spec.ts.tpl +18 -4
- package/templates/projection/projection.ts.tpl +28 -1
- package/templates/query/handler.declared.ts.tpl +8 -4
- package/templates/query/handler.spec.container.ts.tpl +13 -0
- package/templates/query/handler.ts.tpl +8 -4
- package/templates/query/reader.fake.ts.tpl +6 -4
- package/templates/query/reader.in-memory.ts.tpl +3 -4
- package/templates/query/reader.spec.ts.tpl +19 -0
- package/templates/repository/contract.spec.ts.tpl +21 -12
- package/templates/repository/drizzle/mapper.ts.tpl +5 -9
- package/templates/repository/drizzle/repository.ts.tpl +11 -35
- package/templates/repository/fake.ts.tpl +19 -0
- package/templates/repository/knex/mapper.ts.tpl +4 -7
- package/templates/repository/knex/repository.ts.tpl +12 -73
- package/templates/repository/none/repository.ts.tpl +9 -12
- package/templates/repository/prisma/mapper.ts.tpl +5 -9
- package/templates/repository/prisma/repository.ts.tpl +10 -70
- package/templates/repository/typeorm/mapper.ts.tpl +4 -7
- package/templates/repository/typeorm/repository.ts.tpl +10 -63
- package/templates/test-world/world.buses.ts.tpl +1 -1
- package/templates/test-world/world.container.ts.tpl +0 -1
- package/dist/check/catalogue/clean-rule-ids.d.ts +0 -3
- package/dist/check/catalogue/clean-rule-ids.d.ts.map +0 -1
- package/dist/check/catalogue/clean-rule-ids.js +0 -14
- package/dist/check/catalogue/clean-rule-ids.js.map +0 -1
- package/dist/check/catalogue/default-severities.d.ts +0 -4
- package/dist/check/catalogue/default-severities.d.ts.map +0 -1
- package/dist/check/catalogue/default-severities.js +0 -27
- package/dist/check/catalogue/default-severities.js.map +0 -1
- package/dist/check/catalogue/suppression-rule.d.ts +0 -9
- package/dist/check/catalogue/suppression-rule.d.ts.map +0 -1
- package/dist/check/catalogue/suppression-rule.js +0 -10
- package/dist/check/catalogue/suppression-rule.js.map +0 -1
- package/dist/check/commands/changed-files.d.ts +0 -8
- package/dist/check/commands/changed-files.d.ts.map +0 -1
- package/dist/check/commands/changed-files.js +0 -27
- package/dist/check/commands/changed-files.js.map +0 -1
- package/dist/check/explain/authz-docs.d.ts +0 -3
- package/dist/check/explain/authz-docs.d.ts.map +0 -1
- package/dist/check/explain/authz-docs.js +0 -127
- package/dist/check/explain/authz-docs.js.map +0 -1
- package/dist/check/explain/clean-docs.d.ts +0 -3
- package/dist/check/explain/clean-docs.d.ts.map +0 -1
- package/dist/check/explain/clean-docs.js +0 -39
- package/dist/check/explain/clean-docs.js.map +0 -1
- package/dist/check/explain/context-docs.d.ts +0 -3
- package/dist/check/explain/context-docs.d.ts.map +0 -1
- package/dist/check/explain/context-docs.js +0 -44
- package/dist/check/explain/context-docs.js.map +0 -1
- package/dist/check/explain/domain-docs.d.ts +0 -3
- package/dist/check/explain/domain-docs.d.ts.map +0 -1
- package/dist/check/explain/domain-docs.js +0 -30
- package/dist/check/explain/domain-docs.js.map +0 -1
- package/dist/check/explain/errors-docs.d.ts +0 -3
- package/dist/check/explain/errors-docs.d.ts.map +0 -1
- package/dist/check/explain/errors-docs.js +0 -53
- package/dist/check/explain/errors-docs.js.map +0 -1
- package/dist/check/explain/event-sourcing-docs.d.ts +0 -3
- package/dist/check/explain/event-sourcing-docs.d.ts.map +0 -1
- package/dist/check/explain/event-sourcing-docs.js +0 -62
- package/dist/check/explain/event-sourcing-docs.js.map +0 -1
- package/dist/check/explain/events-docs.d.ts +0 -3
- package/dist/check/explain/events-docs.d.ts.map +0 -1
- package/dist/check/explain/events-docs.js +0 -103
- package/dist/check/explain/events-docs.js.map +0 -1
- package/dist/check/explain/imports-docs.d.ts +0 -3
- package/dist/check/explain/imports-docs.d.ts.map +0 -1
- package/dist/check/explain/imports-docs.js +0 -48
- package/dist/check/explain/imports-docs.js.map +0 -1
- package/dist/check/explain/language-docs.d.ts +0 -3
- package/dist/check/explain/language-docs.d.ts.map +0 -1
- package/dist/check/explain/language-docs.js +0 -40
- package/dist/check/explain/language-docs.js.map +0 -1
- package/dist/check/explain/layer-docs.d.ts +0 -3
- package/dist/check/explain/layer-docs.d.ts.map +0 -1
- package/dist/check/explain/layer-docs.js +0 -41
- package/dist/check/explain/layer-docs.js.map +0 -1
- package/dist/check/explain/layout-docs.d.ts +0 -3
- package/dist/check/explain/layout-docs.d.ts.map +0 -1
- package/dist/check/explain/layout-docs.js +0 -73
- package/dist/check/explain/layout-docs.js.map +0 -1
- package/dist/check/explain/lifecycle-docs.d.ts +0 -3
- package/dist/check/explain/lifecycle-docs.d.ts.map +0 -1
- package/dist/check/explain/lifecycle-docs.js +0 -33
- package/dist/check/explain/lifecycle-docs.js.map +0 -1
- package/dist/check/explain/module-docs.d.ts +0 -3
- package/dist/check/explain/module-docs.d.ts.map +0 -1
- package/dist/check/explain/module-docs.js +0 -40
- package/dist/check/explain/module-docs.js.map +0 -1
- package/dist/check/explain/nest-docs.d.ts +0 -3
- package/dist/check/explain/nest-docs.d.ts.map +0 -1
- package/dist/check/explain/nest-docs.js +0 -31
- package/dist/check/explain/nest-docs.js.map +0 -1
- package/dist/check/explain/persistence-docs.d.ts +0 -3
- package/dist/check/explain/persistence-docs.d.ts.map +0 -1
- package/dist/check/explain/persistence-docs.js +0 -103
- package/dist/check/explain/persistence-docs.js.map +0 -1
- package/dist/check/explain/ports-docs.d.ts +0 -3
- package/dist/check/explain/ports-docs.d.ts.map +0 -1
- package/dist/check/explain/ports-docs.js +0 -78
- package/dist/check/explain/ports-docs.js.map +0 -1
- package/dist/check/explain/privacy-docs.d.ts +0 -3
- package/dist/check/explain/privacy-docs.d.ts.map +0 -1
- package/dist/check/explain/privacy-docs.js +0 -65
- package/dist/check/explain/privacy-docs.js.map +0 -1
- package/dist/check/explain/rule-docs.d.ts +0 -4
- package/dist/check/explain/rule-docs.d.ts.map +0 -1
- package/dist/check/explain/rule-docs.js +0 -50
- package/dist/check/explain/rule-docs.js.map +0 -1
- package/dist/check/explain/scheduling-docs.d.ts +0 -3
- package/dist/check/explain/scheduling-docs.d.ts.map +0 -1
- package/dist/check/explain/scheduling-docs.js +0 -71
- package/dist/check/explain/scheduling-docs.js.map +0 -1
- package/dist/check/explain/schema-docs.d.ts +0 -3
- package/dist/check/explain/schema-docs.d.ts.map +0 -1
- package/dist/check/explain/schema-docs.js +0 -28
- package/dist/check/explain/schema-docs.js.map +0 -1
- package/dist/check/explain/standard-docs.d.ts +0 -3
- package/dist/check/explain/standard-docs.d.ts.map +0 -1
- package/dist/check/explain/standard-docs.js +0 -61
- package/dist/check/explain/standard-docs.js.map +0 -1
- package/dist/check/explain/tenancy-docs.d.ts +0 -3
- package/dist/check/explain/tenancy-docs.d.ts.map +0 -1
- package/dist/check/explain/tenancy-docs.js +0 -39
- package/dist/check/explain/tenancy-docs.js.map +0 -1
- package/dist/check/explain/tree-docs.d.ts +0 -3
- package/dist/check/explain/tree-docs.d.ts.map +0 -1
- package/dist/check/explain/tree-docs.js +0 -132
- package/dist/check/explain/tree-docs.js.map +0 -1
- package/dist/check/explain/wiring-docs.d.ts +0 -3
- package/dist/check/explain/wiring-docs.d.ts.map +0 -1
- package/dist/check/explain/wiring-docs.js +0 -114
- package/dist/check/explain/wiring-docs.js.map +0 -1
- package/dist/check/project/source-at.d.ts +0 -8
- package/dist/check/project/source-at.d.ts.map +0 -1
- package/dist/check/project/source-at.js +0 -29
- package/dist/check/project/source-at.js.map +0 -1
- package/dist/check/purity/purity-rule.d.ts +0 -13
- package/dist/check/purity/purity-rule.d.ts.map +0 -1
- package/dist/check/purity/purity-rule.js +0 -2
- package/dist/check/purity/purity-rule.js.map +0 -1
- package/dist/check/scan/statement-of.d.ts +0 -5
- package/dist/check/scan/statement-of.d.ts.map +0 -1
- package/dist/check/scan/statement-of.js +0 -70
- package/dist/check/scan/statement-of.js.map +0 -1
- package/dist/check/suppressions/is-suppressed.d.ts +0 -8
- package/dist/check/suppressions/is-suppressed.d.ts.map +0 -1
- package/dist/check/suppressions/is-suppressed.js +0 -11
- package/dist/check/suppressions/is-suppressed.js.map +0 -1
- package/dist/check/suppressions/suppression-rule-id.d.ts +0 -2
- package/dist/check/suppressions/suppression-rule-id.d.ts.map +0 -1
- package/dist/check/suppressions/suppression-rule-id.js +0 -2
- package/dist/check/suppressions/suppression-rule-id.js.map +0 -1
- package/dist/check/suppressions/suppression-violations.d.ts +0 -6
- package/dist/check/suppressions/suppression-violations.d.ts.map +0 -1
- package/dist/check/suppressions/suppression-violations.js +0 -25
- package/dist/check/suppressions/suppression-violations.js.map +0 -1
- package/dist/commands/parse-migration-arguments.d.ts +0 -11
- package/dist/commands/parse-migration-arguments.d.ts.map +0 -1
- package/dist/commands/parse-migration-arguments.js +0 -17
- package/dist/commands/parse-migration-arguments.js.map +0 -1
- package/dist/generate/errors/class-body.d.ts +0 -8
- package/dist/generate/errors/class-body.d.ts.map +0 -1
- package/dist/generate/errors/class-body.js +0 -11
- package/dist/generate/errors/class-body.js.map +0 -1
- package/dist/generate/flags-of.d.ts +0 -4
- package/dist/generate/flags-of.d.ts.map +0 -1
- package/dist/generate/flags-of.js +0 -6
- package/dist/generate/flags-of.js.map +0 -1
- package/dist/generate/kinds/tables-files.d.ts +0 -3
- package/dist/generate/kinds/tables-files.d.ts.map +0 -1
- package/dist/generate/kinds/tables-files.js +0 -7
- package/dist/generate/kinds/tables-files.js.map +0 -1
- package/dist/generate/shared-writes.d.ts +0 -12
- package/dist/generate/shared-writes.d.ts.map +0 -1
- package/dist/generate/shared-writes.js +0 -127
- package/dist/generate/shared-writes.js.map +0 -1
- package/dist/merge/order/comes-after.d.ts +0 -8
- package/dist/merge/order/comes-after.d.ts.map +0 -1
- package/dist/merge/order/comes-after.js +0 -9
- package/dist/merge/order/comes-after.js.map +0 -1
- package/dist/merge/order/in-order.d.ts +0 -4
- package/dist/merge/order/in-order.d.ts.map +0 -1
- package/dist/merge/order/in-order.js +0 -6
- package/dist/merge/order/in-order.js.map +0 -1
- package/dist/merge/order/migrations-of-commit.d.ts +0 -7
- package/dist/merge/order/migrations-of-commit.d.ts.map +0 -1
- package/dist/merge/order/migrations-of-commit.js +0 -43
- package/dist/merge/order/migrations-of-commit.js.map +0 -1
- package/dist/merge/order/migrations-of-tree.d.ts +0 -9
- package/dist/merge/order/migrations-of-tree.d.ts.map +0 -1
- package/dist/merge/order/migrations-of-tree.js +0 -25
- package/dist/merge/order/migrations-of-tree.js.map +0 -1
- package/dist/merge/order/ordered-migration.d.ts.map +0 -1
- package/dist/merge/order/ordered-migration.js.map +0 -1
- package/dist/merge/restamp-class.d.ts.map +0 -1
- package/dist/merge/restamp-class.js.map +0 -1
- package/dist/mutation/changed-files.d.ts +0 -7
- package/dist/mutation/changed-files.d.ts.map +0 -1
- package/dist/mutation/changed-files.js +0 -15
- package/dist/mutation/changed-files.js.map +0 -1
- package/dist/worker/changed-files.d.ts.map +0 -1
- package/dist/worker/changed-files.js +0 -20
- package/dist/worker/changed-files.js.map +0 -1
- package/templates/gateway/platform-test.declared.tpl +0 -4
- package/templates/gateway/platform.declared.tpl +0 -4
- /package/dist/{merge/order → orm/migrations}/ordered-migration.js +0 -0
- /package/dist/{merge → orm/migrations}/restamp-class.d.ts +0 -0
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
export const EVENTS_DOCS = {
|
|
2
|
-
'events/name-format': {
|
|
3
|
-
why: 'Event names are routing keys and part of the public contract. A uniform <context>.<aggregate>.<fact> name tells who owns the event and what happened, and never collides across contexts.',
|
|
4
|
-
bad: `static readonly eventName = 'InvoiceIssued';`,
|
|
5
|
-
good: `static readonly eventName = 'billing.invoice.issued';`,
|
|
6
|
-
},
|
|
7
|
-
'events/name-declared-once': {
|
|
8
|
-
why: 'A domain event handler and a projection are attached under the name the event class declares, static readonly eventName: the compiler refuses a reaction to an event class without it. Checked on every domain event, a missing name is found when the event is written, not later when someone first reacts to it. A name written a second time, as a literal in readonly name, drifts from the one the reactions read: extend NamedDomainEvent and the instance name reads the static one.',
|
|
9
|
-
bad: `export class InvoiceIssued implements DomainEvent {
|
|
10
|
-
readonly name = 'billing.invoice.issued';
|
|
11
|
-
}`,
|
|
12
|
-
good: `export class InvoiceIssued extends NamedDomainEvent('billing.invoice.issued') {
|
|
13
|
-
}`,
|
|
14
|
-
},
|
|
15
|
-
'events/defined-in-published-language': {
|
|
16
|
-
why: 'Integration events are the only way two contexts communicate, so their shape is a public contract. One declaration with a payload schema gives the type, validates what is published and consumed, and feeds the generated catalog and AsyncAPI document. An event described by hand, or declared twice, drifts from what is really sent.',
|
|
17
|
-
bad: `// application/integration/publishers/invoice-issued.publisher.ts
|
|
18
|
-
const event = { type: 'billing.invoice.issued', version: 1, payload };`,
|
|
19
|
-
good: `// published-language/invoice-issued.v1.integration-event.ts
|
|
20
|
-
export const invoiceIssuedV1 = defineIntegrationEvent({
|
|
21
|
-
type: 'billing.invoice.issued', version: 1, payload: zodSchema(z.object({ invoiceId: z.string() })),
|
|
22
|
-
});`,
|
|
23
|
-
},
|
|
24
|
-
'events/outbox-required': {
|
|
25
|
-
why: 'Publishing an event and committing the state change it describes must succeed or fail together. A handler that talks to a broker or a bus publishes events of transactions that roll back, and loses events when the broker is down. Written to the outbox in the transaction of the command, the event is relayed afterwards, whatever the transport.',
|
|
26
|
-
bad: `// application/commands/issue-invoice/issue-invoice.handler.ts
|
|
27
|
-
import { connect } from 'amqplib';
|
|
28
|
-
// ddd-ts-kit.config.json
|
|
29
|
-
"stack": { "orm": "drizzle", "events": "in-memory" }`,
|
|
30
|
-
good: `// application/commands/issue-invoice/issue-invoice.handler.ts
|
|
31
|
-
constructor(private readonly publisher: IntegrationEventPublisher) {}
|
|
32
|
-
// platform/composition/platform.module.ts
|
|
33
|
-
eventPublisher: new OutboxPublisher(persistence.outbox),`,
|
|
34
|
-
},
|
|
35
|
-
'events/consumer-idempotent': {
|
|
36
|
-
why: "Delivery is at least once: a consumer sees the same event again after a retry, a restart or a replay. The processed-event store recognises a redelivery by the pair consumer name and event id, in the transaction of the handler. A consumer without a name, or sharing the name of another, either handles events twice or skips events it never handled. An integration event handler class that carries @IntegrationEventHandler(definition, { consumer }) is named by its declaration and needs no registration; the name is a string literal, and it is unique across declarations and registrations alike. Options that spread a shared object ({ ...options, consumer: 'ctx.name' }) are accepted when the file shows that object carrying `processed`: a `const` initialised with an object literal, or a value typed `ConsumeOptions`; a spread whose content is not in the file is refused.",
|
|
37
|
-
bad: `// billing.module.ts
|
|
38
|
-
subscriber.subscribe('catalog.product.listed', (event) => productListedHandler.handle(event));
|
|
39
|
-
// application/integration/handlers/product-listed.integration-handler.ts
|
|
40
|
-
@IntegrationEventHandler(productListedV1, { consumer: CONSUMER_NAME })`,
|
|
41
|
-
good: `// billing.module.ts
|
|
42
|
-
builder.on(productListedV1, { consumer: 'billing.product-listed' }).handledBy(ProductListedHandler, [CommandBus]);
|
|
43
|
-
// or, wired by hand
|
|
44
|
-
consume(productListedV1, { consumer: 'billing.product-listed', processed, unitOfWork }, (event) => productListedHandler.handle(event));
|
|
45
|
-
// or declared on the class
|
|
46
|
-
@IntegrationEventHandler(productListedV1, { consumer: 'billing.product-listed' })
|
|
47
|
-
export class ProductListedHandler {
|
|
48
|
-
constructor(private readonly commands: CommandBus) {}
|
|
49
|
-
}`,
|
|
50
|
-
},
|
|
51
|
-
'domain-events/dispatched-on-save': {
|
|
52
|
-
why: 'Domain events leave with the save. Once a repository method that was handed an aggregate resolves, the events the aggregate recorded are dispatched in order, inside the unit of work of the command, so their handlers and the outbox commit or roll back with the state. A handler that pulls the events and dispatches them itself announces them twice or outside the transaction, and a repository adapter that dispatches mixes persistence with wiring. Reported: a call to pullEvents() in application/ or infrastructure/ of a context, and DomainEventDispatcher imported, listed as a dependency or received by a constructor in application/commands, application/queries and a repository adapter. The module file, the tests, the platform and main.ts are left alone.',
|
|
53
|
-
bad: `// application/commands/issue-invoice/issue-invoice.handler.ts
|
|
54
|
-
@CommandHandler(IssueInvoiceCommand)
|
|
55
|
-
constructor(private readonly invoices: InvoiceRepository, private readonly dispatcher: DomainEventDispatcher) {}
|
|
56
|
-
await this.invoices.save(invoice);
|
|
57
|
-
await this.dispatcher.dispatch(invoice.pullEvents());`,
|
|
58
|
-
good: `// application/commands/issue-invoice/issue-invoice.handler.ts
|
|
59
|
-
@CommandHandler(IssueInvoiceCommand)
|
|
60
|
-
constructor(private readonly invoices: InvoiceRepository) {}
|
|
61
|
-
await this.invoices.save(invoice);
|
|
62
|
-
// a removal that announces an event takes the aggregate
|
|
63
|
-
await this.invoices.remove(invoice);`,
|
|
64
|
-
},
|
|
65
|
-
'domain-events/transactional-before-commit': {
|
|
66
|
-
why: "An effect of a domain event exists only if the state change that recorded the event is committed. A handler that runs before the commit runs inside the transaction, and the commit can still fail after it ran (a deferred constraint, a serialization failure, a lost connection): that is safe only when the rollback undoes everything the handler did, so a before-commit handler has transactional effects only. Judged: every production class of application/event-handlers/*.event-handler.ts and application/integration/publishers/*.publisher.ts, and any class carrying @DomainEventHandler. Its phase is after-commit when its decorator says phase: 'after-commit', or, without a decorator, when every .on(..) of <context>.module.ts whose callback mentions it has a third argument holding phase: 'after-commit'; otherwise it is before-commit. Its dependencies are the names of its dependency list, of .toClass(Handler, [..]) and the types of its constructor parameters, resolved through the imports. Before the commit it may depend on the domain/ of its context, on the kernel ports except Cache, CachePurger, Lock, RateLimiter, JobScheduler and EventBus (CacheInvalidation is allowed: the purge it asks for commits with the work), on @ddd-ts-kit/auth, on application helpers of its context, and on a port of application/ports/ only when it is a persistence port: at least one production class implements it under infrastructure/persistence/ and none anywhere else under infrastructure/. Refused: those five kernel ports, any other port of application/ports/, anything of infrastructure/, of another context, of the platform or of another package. An after-commit handler is refused IntegrationEventPublisher alone: after the commit nothing makes the outbox row atomic with a state change, so it sends a command instead.",
|
|
67
|
-
bad: `// application/event-handlers/invoice-issued.event-handler.ts
|
|
68
|
-
// Mailer is implemented under infrastructure/external/: the mail leaves even when the commit fails
|
|
69
|
-
@DomainEventHandler(InvoiceIssued)
|
|
70
|
-
constructor(
|
|
71
|
-
private readonly invoiceRepository: InvoiceRepository,
|
|
72
|
-
private readonly mailer: Mailer,
|
|
73
|
-
private readonly cache: Cache,
|
|
74
|
-
) {}
|
|
75
|
-
// after the commit the outbox row would be written in no transaction
|
|
76
|
-
@DomainEventHandler(InvoiceIssued, { phase: 'after-commit' })
|
|
77
|
-
constructor(private readonly integrationEventPublisher: IntegrationEventPublisher) {}`,
|
|
78
|
-
good: `// application/event-handlers/invoice-issued.event-handler.ts: repositories, persistence ports, buses
|
|
79
|
-
@DomainEventHandler(InvoiceIssued)
|
|
80
|
-
constructor(
|
|
81
|
-
private readonly invoiceRepository: InvoiceRepository,
|
|
82
|
-
private readonly commandBus: CommandBus,
|
|
83
|
-
) {}
|
|
84
|
-
// an effect that may be lost on a crash runs after the commit, at most once
|
|
85
|
-
@DomainEventHandler(InvoiceIssued, { phase: 'after-commit' })
|
|
86
|
-
constructor(private readonly cache: Cache) {}
|
|
87
|
-
// explicit style, in billing.module.ts
|
|
88
|
-
platform.domainEvents.on('billing.invoice.issued', async (event) => {
|
|
89
|
-
if (event instanceof InvoiceIssued) {
|
|
90
|
-
await invoiceIssuedEventHandler.handle(event);
|
|
91
|
-
}
|
|
92
|
-
}, { phase: 'after-commit' });
|
|
93
|
-
// an effect that must not be lost: a publisher writes to the outbox, the handler of that event does the work
|
|
94
|
-
@DomainEventHandler(InvoiceIssued)
|
|
95
|
-
export class InvoiceIssuedPublisher {
|
|
96
|
-
constructor(
|
|
97
|
-
private readonly integrationEventPublisher: IntegrationEventPublisher,
|
|
98
|
-
private readonly idGenerator: IdGenerator,
|
|
99
|
-
) {}
|
|
100
|
-
}`,
|
|
101
|
-
},
|
|
102
|
-
};
|
|
103
|
-
//# sourceMappingURL=events-docs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events-docs.js","sourceRoot":"","sources":["../../../src/check/explain/events-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,oBAAoB,EAAE;QACpB,GAAG,EAAE,2LAA2L;QAChM,GAAG,EAAE,8CAA8C;QACnD,IAAI,EAAE,uDAAuD;KAC9D;IACD,2BAA2B,EAAE;QAC3B,GAAG,EAAE,8dAA8d;QACne,GAAG,EAAE;;EAEP;QACE,IAAI,EAAE;EACR;KACC;IACD,sCAAsC,EAAE;QACtC,GAAG,EAAE,2UAA2U;QAChV,GAAG,EAAE;uEAC8D;QACnE,IAAI,EAAE;;;IAGN;KACD;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,wVAAwV;QAC7V,GAAG,EAAE;;;qDAG4C;QACjD,IAAI,EAAE;;;yDAG+C;KACtD;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,w2BAAw2B;QAC72B,GAAG,EAAE;;;uEAG8D;QACnE,IAAI,EAAE;;;;;;;;EAQR;KACC;IACD,kCAAkC,EAAE;QAClC,GAAG,EAAE,svBAAsvB;QAC3vB,GAAG,EAAE;;;;sDAI6C;QAClD,IAAI,EAAE;;;;;qCAK2B;KAClC;IACD,2CAA2C,EAAE;QAC3C,GAAG,EAAE,uxDAAuxD;QAC5xD,GAAG,EAAE;;;;;;;;;;sFAU6E;QAClF,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;EAsBR;KACC;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"imports-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/imports-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA8C1D,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export const IMPORTS_DOCS = {
|
|
2
|
-
'imports/alias-only': {
|
|
3
|
-
why: 'An alias names a file from the root of the project: the import reads the same from every file, says which context and which layer it reaches without counting "../", and does not change when the importing file moves. One way of writing an import also means one thing to review and one thing for the boundary rules to read: the checker, ESLint and dependency-cruiser resolve an alias exactly as they resolve a relative path, so no boundary is crossed by choosing the other spelling. The rule holds under the source root, test/ and scripts/, the same directory included, for import, export ... from and import(). The alias is declared once, under "paths" in tsconfig.json, and the build rewrites it into a relative path in the compiled output, which runs with plain `node`. An alias path with a "." or ".." segment is refused too, since it could name a file outside its directory. The compiler reports an alias that names no file; a JavaScript file at the project root (a config, a migration) is not judged. One relative path stands: a file directly under test/support/ imports its neighbour by "./<name>", because a test runner loads its global setup, and what that file imports, before any alias exists. That path names a file: "./.", "./.." and a directory of test/support/ are refused as any relative path. Its name is judged too, against the files on disk: a ".ts" source without its extension under "importExtension": "none"; under "js" the name of the source ("./x.ts" for "./x" and "./x.js", "./x.mts" for "./x.mjs"), where the runner finds the file under the name it has and a ".js" passes the type check, then stops the run on a module that cannot be found. A file that exists as it is named (a JSON file, a JavaScript file) is left alone. ESLint fixes the import (`eslint --fix`) and writes it with the ending "importExtension" asks for, which `imports/extension` holds.',
|
|
4
|
-
bad: `// src/contexts/billing/application/commands/issue-invoice/issue-invoice.handler.ts
|
|
5
|
-
import { Invoice } from '../../../domain/aggregates/invoice.aggregate';
|
|
6
|
-
import { IssueInvoiceCommand } from './issue-invoice.command';`,
|
|
7
|
-
good: `// src/contexts/billing/application/commands/issue-invoice/issue-invoice.handler.ts
|
|
8
|
-
import { IssueInvoiceCommand } from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.command';
|
|
9
|
-
import { Invoice } from '@/contexts/billing/domain/aggregates/invoice.aggregate';
|
|
10
|
-
// test/e2e/issue-invoice.e2e.spec.ts
|
|
11
|
-
import { startApplication } from '$test/e2e/support/start-application';
|
|
12
|
-
// test/support/test-database-setup.ts: a test runner loads its global setup, and what it imports, before any alias exists
|
|
13
|
-
import { openRun } from './test-database-run'; // './test-database-run.ts' under "importExtension": "js"`,
|
|
14
|
-
},
|
|
15
|
-
'imports/extension': {
|
|
16
|
-
why: 'An import of a file of the project has one spelling, and "importExtension" in ddd-ts-kit.config.json says which. Under "none", the default of a new project, it names the file without an extension: the compiler resolves as a bundler does ("moduleResolution": "Bundler"), which still reports a file that does not exist but would also accept ".js", so this rule is what refuses it. Under "js", which is also what a config without the key means, it ends with the ".js" of the file the compiler emits: the compiler resolves as Node does and refuses any other spelling itself (TS2835); this rule says it in the words of the project and ESLint fixes it. Node needs the extension at run time either way: `ddd-ts-kit build-aliases` rewrites each alias of the compiled output into a relative path ending in ".js". Under "none" an alias may name a directory (".../published-language"): the compiler resolves its index.ts and the build completes it with "/index.js". Only a specifier that starts with an alias of the project is judged: a package subpath that ends like a file name ("zod/v4/core.js") is left alone, and a relative import belongs to imports/alias-only. A dot in a file name is not an extension: "invoice.aggregate" is written without one. To move a project from one spelling to the other: change "importExtension", write the "module" and "moduleResolution" that imports/alias-declared then asks for, run `eslint --fix` and the formatter.',
|
|
17
|
-
bad: `// ddd-ts-kit.config.json
|
|
18
|
-
"importExtension": "none"
|
|
19
|
-
// src/contexts/billing/application/commands/issue-invoice/issue-invoice.handler.ts
|
|
20
|
-
import { Invoice } from '@/contexts/billing/domain/aggregates/invoice.aggregate.js';
|
|
21
|
-
import { InvoiceIssued } from '@/contexts/billing/published-language';`,
|
|
22
|
-
good: `// ddd-ts-kit.config.json
|
|
23
|
-
"importExtension": "none"
|
|
24
|
-
// src/contexts/billing/application/commands/issue-invoice/issue-invoice.handler.ts
|
|
25
|
-
import { Invoice } from '@/contexts/billing/domain/aggregates/invoice.aggregate';
|
|
26
|
-
import { InvoiceIssued } from '@/contexts/billing/published-language';`,
|
|
27
|
-
},
|
|
28
|
-
'imports/alias-declared': {
|
|
29
|
-
why: 'An alias is declared in one place and resolved by many tools: the compiler, the dev runner, the test runner, ESLint, the checker, dependency-cruiser, knip, and the build that makes the output runnable. If two of them disagree, the type check passes on one file while production loads another, or a boundary rule stops seeing an import. So there is one source a person edits, "importAlias" in ddd-ts-kit.config.json, and one declaration derived from it that the tools read, "paths" in tsconfig.json. Node reads neither: the compiler emits an alias as it was written, so `ddd-ts-kit build-aliases` rewrites each one into a relative path after the compiler, and the output runs with plain `node`. The rule compares "paths" (tsconfig.json and tsconfig.build.json) with "importAlias", refuses a second entry under an alias, a "baseUrl" and a knip "paths"; checks that vitest and dependency-cruiser read tsconfig and that jest, which does not, repeats the same mapping; reports a script that compiles without the rewrite step and a tsx script under another tsconfig. The ending of an import has one source too, "importExtension", and three declarations follow it: "module" and "moduleResolution" of tsconfig.json ("ESNext" and "Bundler" without an extension, a Node resolution with one), the pattern of each jest mapping, and the build step, which writes the ".js" Node needs. Under "js" a file directly under test/support/ names its neighbour by the ".ts" of its source (imports/alias-only): where one does, tsconfig.json has to let the type check read that ending, with "allowImportingTsExtensions": true, which the compiler accepts only with "noEmit": true, and tsconfig.build.json, which extends it, has to set both back to false, or the build writes nothing. Whatever the ending, tsconfig.build.json and each tsconfig a script of package.json compiles what ships with are reported when they resolve "noEmit": true, their own or inherited through "extends": the compiler then writes no file, without an error, and an earlier output would ship. An alias is "@/" or "$<name>/": neither can be the name of a package, so no installed dependency can ever take the place of a file of the project; "#<name>/" (a Node subpath import) and "@<name>/" (the name of a scope) are refused.',
|
|
30
|
-
bad: `// ddd-ts-kit.config.json
|
|
31
|
-
"importAlias": "@/", "importExtension": "none"
|
|
32
|
-
// tsconfig.json
|
|
33
|
-
"moduleResolution": "NodeNext",
|
|
34
|
-
"paths": { "@/*": ["./dist/src/*"] }
|
|
35
|
-
// package.json
|
|
36
|
-
"build": "tsc -p tsconfig.build.json"`,
|
|
37
|
-
good: `// ddd-ts-kit.config.json
|
|
38
|
-
"importAlias": "@/", "importExtension": "none"
|
|
39
|
-
// tsconfig.json
|
|
40
|
-
"module": "ESNext", "moduleResolution": "Bundler", "customConditions": ["node"],
|
|
41
|
-
"paths": { "@/*": ["./src/*"], "$test/*": ["./test/*"], "$scripts/*": ["./scripts/*"] }
|
|
42
|
-
// package.json
|
|
43
|
-
"build": "tsc -p tsconfig.build.json && ddd-ts-kit build-aliases"
|
|
44
|
-
// vitest.config.ts
|
|
45
|
-
resolve: { tsconfigPaths: true }`,
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=imports-docs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"imports-docs.js","sourceRoot":"","sources":["../../../src/check/explain/imports-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAsC;IAC7D,oBAAoB,EAAE;QACpB,GAAG,EAAE,w1DAAw1D;QAC71D,GAAG,EAAE;;+DAEsD;QAC3D,IAAI,EAAE;;;;;;yGAM+F;KACtG;IACD,mBAAmB,EAAE;QACnB,GAAG,EAAE,k6CAAk6C;QACv6C,GAAG,EAAE;;;;uEAI8D;QACnE,IAAI,EAAE;;;;uEAI6D;KACpE;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,muEAAmuE;QACxuE,GAAG,EAAE;;;;;;sCAM6B;QAClC,IAAI,EAAE;;;;;;;;iCAQuB;KAC9B;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"language-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/language-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAsC3D,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export const LANGUAGE_DOCS = {
|
|
2
|
-
'language/glossary-term': {
|
|
3
|
-
why: 'The ubiquitous language is the contract between the domain experts and the code. A class named with a word nobody defined is either a concept the experts do not know, or a synonym that will split the vocabulary in two. Writing the term and its meaning first forces the conversation that the name needs. Under "stack.refusals": "factories" or "named" the classes of domain/errors/ are judged too: `AppointmentError` names `Appointment`, `SlotTaken` names `Slot` and `Take`; a refusal class may also use the qualifiers of a refusal, invalid, unknown, already, too, no, missing and required (`BookingTooLate`, `InvalidAppointment`), and <context>.codes.ts, which holds no class, is not judged.',
|
|
4
|
-
bad: `// CONTEXT.md glossary: Invoice, Issue
|
|
5
|
-
export class BillDispatcher {}`,
|
|
6
|
-
good: `// CONTEXT.md glossary: Invoice, Issue
|
|
7
|
-
export class IssueInvoiceCommand {}`,
|
|
8
|
-
},
|
|
9
|
-
'language/no-technical-name': {
|
|
10
|
-
why: 'Manager, Helper, Data or Impl say how a class is built, not what it means. In the domain such a name marks a concept that was not discussed: the behaviour ends up in a bag that keeps growing. A domain expert never says "invoice manager". The ubiquitous language wins, though: when the business does name a concept with such a word (the scoring model of credit risk, the copy of data of the right of access), its term in the glossary of the context holds the word, and `ScoringModel` stands once `Scoring model` is a row of CONTEXT.md. Without that row the name is refused.',
|
|
11
|
-
bad: `export class InvoiceManager {}`,
|
|
12
|
-
good: `export class InvoiceNumbering {}`,
|
|
13
|
-
},
|
|
14
|
-
'language/declared-vocabulary': {
|
|
15
|
-
why: 'A status, a kind, a role or a permission is a word of the language whose values are a closed list. Spelled again as a string wherever it is compared, granted or stored, each copy can drift: a typo compiles, a renamed value leaves its old spelling behind, and nothing completes it in the editor. Declared once, as an object `as const` and the union type of its name (a permission set for permissions), it is read by its key, completed by the editor, and a parameter typed with it accepts nothing else. The value stays the same string on the wire and in the database. A quoted key counts, and is written as a computed key, `[AppointmentStatus.NoShow]: ..`. Tests and published languages are not judged: a test sends the values a client sends, and a published language names the values of its contract itself; nor is the relationship schema of the access model, which declares its relations. In the persistence of a context, the name of a column, a table or a schema is a word of the storage that may spell a value by chance: the first argument of a call (`text("note")`) and the value of `name`, `tableName` or `schema` are not judged; a stored value, the argument of `.default(..)` or a value compared in a query, is. A word of another language that spells a value of the context does not belong to the context, and is not judged outside `domain/` when its type says so: a key of a table typed `Record<T, ..>`, a value of one typed `Record<.., T>` or a literal written `"x" satisfies T`, `T` being one type imported from a published language, imported as a type from a package, or imported from or declared in `infrastructure/anti-corruption/` or `infrastructure/external/`, so that the compiler holds its spelling. Where: the vocabulary of a context in that context only (the same word may mean something else next door), one of the platform (the roles) in the platform and in the route groups `*.routes.ts`, a permission id and a vocabulary of the shared kernel everywhere. What is read as a vocabulary: every entry a key and a string literal, comments, either quote and `as const satisfies ..` allowed; a number, a spread or a computed entry leaves the object unread, and so does a union type written otherwise than `(typeof X)[keyof typeof X]`. The rule holds under "stack.literals": "named", which `init` writes; a config that does not say keeps the free literals of 0.5.',
|
|
16
|
-
bad: `// domain/vocabularies/appointment-status.vocabulary.ts declares AppointmentStatus
|
|
17
|
-
if (appointment.status === 'no-show') {
|
|
18
|
-
grants.push('billing:invoice.issue');
|
|
19
|
-
}`,
|
|
20
|
-
good: `if (appointment.status === AppointmentStatus.NoShow) {
|
|
21
|
-
grants.push(billingPermissions['invoice.issue']);
|
|
22
|
-
}`,
|
|
23
|
-
},
|
|
24
|
-
'purity/no-system-clock': {
|
|
25
|
-
why: 'Code that reads the clock gives a different answer every time it runs, so its tests are either flaky or need a mocked module. Passing the instant in, from the Clock port, makes every rule about time testable with a fixed date and replayable in production.',
|
|
26
|
-
bad: `isOverdue(): boolean { return this.dueDate < new Date(); }`,
|
|
27
|
-
good: `isOverdue(now: Date): boolean { return this.dueDate < now; }`,
|
|
28
|
-
},
|
|
29
|
-
'purity/no-ambient-randomness': {
|
|
30
|
-
why: 'An identifier drawn inside the domain cannot be predicted by a test nor chosen by the caller (idempotent retries, imports of existing data). The IdGenerator port keeps the choice of the scheme in the composition root and gives tests readable, sequential identifiers.',
|
|
31
|
-
bad: `static create(): Invoice { return new Invoice(crypto.randomUUID()); }`,
|
|
32
|
-
good: `static create(id: string): Invoice { return new Invoice(id); }`,
|
|
33
|
-
},
|
|
34
|
-
'purity/no-environment': {
|
|
35
|
-
why: 'Reading the environment, logging to the console or touching the network from the domain or a handler hides a dependency that no constructor declares. The class then needs the real world, or a mocked module, to be tested. Every such access is a port with an adapter.',
|
|
36
|
-
bad: `if (process.env.FEATURE_X) console.log('issuing', invoice);`,
|
|
37
|
-
good: `constructor(private readonly features: FeatureFlags) {}`,
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=language-docs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"language-docs.js","sourceRoot":"","sources":["../../../src/check/explain/language-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAsC;IAC9D,wBAAwB,EAAE;QACxB,GAAG,EAAE,orBAAorB;QACzrB,GAAG,EAAE;+BACsB;QAC3B,IAAI,EAAE;oCAC0B;KACjC;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,8jBAA8jB;QACnkB,GAAG,EAAE,gCAAgC;QACrC,IAAI,EAAE,kCAAkC;KACzC;IACD,8BAA8B,EAAE;QAC9B,GAAG,EAAE,y0EAAy0E;QAC90E,GAAG,EAAE;;;EAGP;QACE,IAAI,EAAE;;EAER;KACC;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,iQAAiQ;QACtQ,GAAG,EAAE,4DAA4D;QACjE,IAAI,EAAE,8DAA8D;KACrE;IACD,8BAA8B,EAAE;QAC9B,GAAG,EAAE,4QAA4Q;QACjR,GAAG,EAAE,uEAAuE;QAC5E,IAAI,EAAE,gEAAgE;KACvE;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,2QAA2Q;QAChR,GAAG,EAAE,6DAA6D;QAClE,IAAI,EAAE,yDAAyD;KAChE;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layer-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/layer-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAuCxD,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export const LAYER_DOCS = {
|
|
2
|
-
'layer/domain-purity': {
|
|
3
|
-
why: 'The domain is the part of the system that has to survive a change of framework, database or transport. Every outside import ties a business rule to a technical choice and makes it impossible to test without that choice. Values that come from the outside world (ids, time, randomness) enter as parameters. The packages that apply a concern from outside (@ddd-ts-kit/aspects, audit, redis, scheduling, sentry, tracing) are refused whatever `domainAllowedPackages` says. The kernel itself is allowed, its entry @ddd-ts-kit/kernel/declarations is not: a declaration is wiring, and the domain declares nothing, neither a decorator on a class nor a dependency list. A repository port is a plain abstract class. An allowed package of the kit does not allow its entries for adapters, wiring and test doubles (@ddd-ts-kit/kernel/testing, @ddd-ts-kit/auth/jwt, /passport, /rebac, /di, /testing): the domain imports one only when `domainAllowedPackages` names that entry itself.',
|
|
4
|
-
bad: `// domain/aggregates/invoice.aggregate.ts
|
|
5
|
-
import { randomUUID } from 'node:crypto';
|
|
6
|
-
import { IsEmail } from 'class-validator';
|
|
7
|
-
import { Logged } from '@ddd-ts-kit/aspects/decorators';
|
|
8
|
-
import { Repository } from '@ddd-ts-kit/kernel/declarations';
|
|
9
|
-
import { FixedClock } from '@ddd-ts-kit/kernel/testing';`,
|
|
10
|
-
good: `// domain/aggregates/invoice.aggregate.ts
|
|
11
|
-
import { AggregateRoot } from '@ddd-ts-kit/kernel';
|
|
12
|
-
import { Money } from '@/contexts/billing/domain/value-objects/money.vo';`,
|
|
13
|
-
},
|
|
14
|
-
'layer/application-inward': {
|
|
15
|
-
why: 'A use case orchestrates the domain and talks to the outside through ports. If it imports an adapter, a framework or a driver, the technical choice can no longer be replaced or faked, and the handler cannot be unit tested with plain fakes. Cross-cutting behaviour reaches a use case from outside: @ddd-ts-kit/aspects, audit, redis, scheduling, sentry and tracing are refused whatever `applicationAllowedPackages` says, their place is the composition root, a bus middleware or an adapter. The declarations of the kernel (@ddd-ts-kit/kernel/declarations) are part of the kernel and belong here: a handler, a job or a policy says what it is and names the ports it depends on, which are abstract classes, without knowing a container. A background job (application/background/*.background-job.ts), and no other file of the layer, also imports @ddd-ts-kit/validation and the validation library of the stack, no other, for the schema of its payload: the payload a queue keeps outlives the deploy that enqueued it, like the payload of an integration event, and the worker reads it with that schema before each run. @ddd-ts-kit/auth is allowed for permissions and policies, not its adapters, its wiring or its test doubles (@ddd-ts-kit/auth/jwt, /passport, /rebac, /di, /testing, nor @ddd-ts-kit/kernel/testing): a use case imports one only when `applicationAllowedPackages` names that entry itself.',
|
|
16
|
-
bad: `// application/commands/issue-invoice/issue-invoice.handler.ts
|
|
17
|
-
import { PgInvoiceRepository } from '@/contexts/billing/infrastructure/persistence/pg-invoice.repository';
|
|
18
|
-
import { RedisCache } from '@ddd-ts-kit/redis';
|
|
19
|
-
import { retry } from '@ddd-ts-kit/aspects';
|
|
20
|
-
import { passportAuthenticator } from '@ddd-ts-kit/auth/passport';`,
|
|
21
|
-
good: `// application/commands/issue-invoice/issue-invoice.handler.ts
|
|
22
|
-
import { Cache, Clock } from '@ddd-ts-kit/kernel';
|
|
23
|
-
import { CommandHandler } from '@ddd-ts-kit/kernel/declarations';
|
|
24
|
-
import { InvoiceRepository } from '@/contexts/billing/domain/repositories/invoice.repository';`,
|
|
25
|
-
},
|
|
26
|
-
'layer/presentation-no-infrastructure': {
|
|
27
|
-
why: 'A route translates a transport request into a command or a query and maps the answer back. Reaching an adapter directly skips the use case, so the business rule that guards the operation is skipped too.',
|
|
28
|
-
bad: `// presentation/http/issue-invoice.route.ts
|
|
29
|
-
import { PgInvoiceRepository } from '@/contexts/billing/infrastructure/persistence/pg-invoice.repository';`,
|
|
30
|
-
good: `// presentation/http/issue-invoice.route.ts
|
|
31
|
-
import type { IssueInvoiceHandler } from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.handler';`,
|
|
32
|
-
},
|
|
33
|
-
'layer/infrastructure-no-presentation': {
|
|
34
|
-
why: 'Adapters implement ports declared inward. An adapter that knows a DTO or a route depends on one transport, and both outer layers start changing together.',
|
|
35
|
-
bad: `// infrastructure/persistence/pg-invoice.repository.ts
|
|
36
|
-
import type { InvoiceDto } from '@/contexts/billing/presentation/http/invoice.dto';`,
|
|
37
|
-
good: `// infrastructure/persistence/pg-invoice.repository.ts
|
|
38
|
-
import { InvoiceRepository } from '@/contexts/billing/domain/repositories/invoice.repository';`,
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
//# sourceMappingURL=layer-docs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layer-docs.js","sourceRoot":"","sources":["../../../src/check/explain/layer-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAsC;IAC3D,qBAAqB,EAAE;QACrB,GAAG,EAAE,y8BAAy8B;QAC98B,GAAG,EAAE;;;;;yDAKgD;QACrD,IAAI,EAAE;;0EAEgE;KACvE;IACD,0BAA0B,EAAE;QAC1B,GAAG,EAAE,+2CAA+2C;QACp3C,GAAG,EAAE;;;;mEAI0D;QAC/D,IAAI,EAAE;;;+FAGqF;KAC5F;IACD,sCAAsC,EAAE;QACtC,GAAG,EAAE,4MAA4M;QACjN,GAAG,EAAE;2GACkG;QACvG,IAAI,EAAE;wHAC8G;KACrH;IACD,sCAAsC,EAAE;QACtC,GAAG,EAAE,2JAA2J;QAChK,GAAG,EAAE;oFAC2E;QAChF,IAAI,EAAE;+FACqF;KAC5F;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/layout-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,CAuEzD,CAAC"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
export const LAYOUT_DOCS = {
|
|
2
|
-
'clean/no-hash-private': {
|
|
3
|
-
why: 'A code base has one way to hide a member. `private` is checked by the compiler, reads the same on a field, a method and a constructor parameter, and leaves the member reachable by the tooling of a test. `#name` is a second spelling of the same intention, with its own rules, that cannot be mixed with constructor parameters. ESLint can rewrite it when the change is safe.',
|
|
4
|
-
bad: `export class InMemoryInvoiceRepository {
|
|
5
|
-
readonly #rows = new Map<string, Invoice>();
|
|
6
|
-
|
|
7
|
-
#find(id: string): Invoice | undefined {
|
|
8
|
-
return this.#rows.get(id);
|
|
9
|
-
}
|
|
10
|
-
}`,
|
|
11
|
-
good: `export class InMemoryInvoiceRepository {
|
|
12
|
-
private readonly rows = new Map<string, Invoice>();
|
|
13
|
-
|
|
14
|
-
private find(id: string): Invoice | undefined {
|
|
15
|
-
return this.rows.get(id);
|
|
16
|
-
}
|
|
17
|
-
}`,
|
|
18
|
-
},
|
|
19
|
-
'clean/blank-lines': {
|
|
20
|
-
why: 'A function reads in steps: what it gathers, what it decides, what it answers. A blank line before `return` sets the outcome apart, and a block that starts and ends on its braces wastes no line. This checker holds the cheap part only: the `return` and the padded block. ESLint holds the blank lines between statements (after a group of declarations, around `if`, `for`, `try` and a multiline statement, between class members) and is authoritative, with an automatic fix; the formatter removes the padding of a block.',
|
|
21
|
-
bad: `function total(lines: readonly Line[]): Money {
|
|
22
|
-
|
|
23
|
-
const amounts = lines.map((line) => line.amount);
|
|
24
|
-
return sum(amounts);
|
|
25
|
-
}`,
|
|
26
|
-
good: `function total(lines: readonly Line[]): Money {
|
|
27
|
-
const amounts = lines.map((line) => line.amount);
|
|
28
|
-
|
|
29
|
-
return sum(amounts);
|
|
30
|
-
}`,
|
|
31
|
-
},
|
|
32
|
-
'clean/braces': {
|
|
33
|
-
why: 'A branch or a loop written between braces, its body on its own lines, is visible at a glance, and a statement added to it later cannot silently fall outside it. Every `if`, `else`, `for`, `while` and `do` is written that way, `else` on the line of the closing brace. A ternary, an arrow function returning an expression and a one-line object literal are not judged. ESLint holds the braces on the syntax tree (`curly`) and adds them; the formatter puts the body on its own lines.',
|
|
34
|
-
bad: `if (wrapped.has(repository)) return repository;
|
|
35
|
-
|
|
36
|
-
for (const step of steps) await step();
|
|
37
|
-
|
|
38
|
-
if (invoice.isPaid()) { return receipt; }`,
|
|
39
|
-
good: `if (wrapped.has(repository)) {
|
|
40
|
-
return repository;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
for (const step of steps) {
|
|
44
|
-
await step();
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
if (invoice.isPaid()) {
|
|
48
|
-
return receipt;
|
|
49
|
-
}`,
|
|
50
|
-
},
|
|
51
|
-
'clean/one-export-per-file': {
|
|
52
|
-
why: 'A file that exports one thing is named after it, found by its name and changed for one reason. A second exported class or function is a second responsibility hiding behind the first name. The companions that stay are the ones that are not a second thing: the types of its signature, its contract constants, a type sharing its name, and a small closed family (a type with its constructors, the accessors of one private state). An index file only re-exports: it says what a folder offers. Tests are not judged. This checker reads declarations as text, so the allowances are an approximation; ESLint is authoritative, and what neither can express is listed with its reason under "onePerFile.allow".',
|
|
53
|
-
bad: `// application/ports/gateways.port.ts
|
|
54
|
-
export abstract class PaymentGateway {}
|
|
55
|
-
export abstract class TaxGateway {}
|
|
56
|
-
// domain/services/helpers.service.ts
|
|
57
|
-
export class InvoiceNumbering {}`,
|
|
58
|
-
good: `// application/ports/payment-gateway.port.ts
|
|
59
|
-
export abstract class PaymentGateway {}
|
|
60
|
-
// application/ports/tax-gateway.port.ts
|
|
61
|
-
export abstract class TaxGateway {}
|
|
62
|
-
// application/commands/issue-invoice/issue-invoice.result.ts
|
|
63
|
-
export interface IssueInvoiceResult { readonly invoiceId: string }`,
|
|
64
|
-
},
|
|
65
|
-
'clean/file-size': {
|
|
66
|
-
why: 'Past a few hundred lines a file holds more than one responsibility: nobody reads it whole, and every change touches something unrelated. The limit is 350 physical lines, for sources and tests alike, and is not configurable. A long test file is split by behaviour, a long source by concept. A long end-to-end spec is split into parts named after it, test/e2e/<use-case>-<behaviour>.e2e.spec.ts beside test/e2e/<use-case>.e2e.spec.ts (the one name of a new end-to-end spec the guard of the plugin lets be written by hand, with test/e2e/journey-<name>.e2e.spec.ts for a journey across use cases), and what its parts share goes to test/e2e/support/<context>/. An aggregate keeps its intention methods and moves a decision out: a domain service that takes the state and returns the new state and its events, which the aggregate applies, or a value object for fields that travel together; never a public method that sets its state from outside. Generated files (a path segment named generated, the <context>.declarations.ts and <context>.dependencies.ts at the root of a context, the <layer>.declarations.ts of its layers) and declaration files are not judged.',
|
|
67
|
-
bad: `// application/commands/issue-invoice/issue-invoice.handler.ts, 600 lines:
|
|
68
|
-
// the handler, its validation, its mapping and three helpers`,
|
|
69
|
-
good: `// issue-invoice.handler.ts orchestrates, in 40 lines;
|
|
70
|
-
// the rules it applies live in the aggregate and in a domain service, each in its file`,
|
|
71
|
-
},
|
|
72
|
-
};
|
|
73
|
-
//# sourceMappingURL=layout-docs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout-docs.js","sourceRoot":"","sources":["../../../src/check/explain/layout-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsC;IAC5D,uBAAuB,EAAE;QACvB,GAAG,EAAE,qXAAqX;QAC1X,GAAG,EAAE;;;;;;EAMP;QACE,IAAI,EAAE;;;;;;EAMR;KACC;IACD,mBAAmB,EAAE;QACnB,GAAG,EAAE,qgBAAqgB;QAC1gB,GAAG,EAAE;;;;EAIP;QACE,IAAI,EAAE;;;;EAIR;KACC;IACD,cAAc,EAAE;QACd,GAAG,EAAE,ieAAie;QACte,GAAG,EAAE;;;;0CAIiC;QACtC,IAAI,EAAE;;;;;;;;;;EAUR;KACC;IACD,2BAA2B,EAAE;QAC3B,GAAG,EAAE,yrBAAyrB;QAC9rB,GAAG,EAAE;;;;iCAIwB;QAC7B,IAAI,EAAE;;;;;mEAKyD;KAChE;IACD,iBAAiB,EAAE;QACjB,GAAG,EAAE,ooCAAooC;QACzoC,GAAG,EAAE;8DACqD;QAC1D,IAAI,EAAE;wFAC8E;KACrF;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/lifecycle-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA+B5D,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export const LIFECYCLE_DOCS = {
|
|
2
|
-
'lifecycle/status-through-machine': {
|
|
3
|
-
why: 'A state machine says once which status follows which, and what refuses a forbidden transition with a static factory of the concept error. An aggregate that also writes its status by hand keeps a second, silent copy of its lifecycle: a transition the machine forbids happens anyway, and the diagram of CONTEXT.md, drawn from the machine, lies. So an aggregate whose machine exists (domain/state-machines/<aggregate>.state-machine.ts) imports it once it writes a status, and writes its status only from machine.next(..) or machine.start(..), or copies a status it read.',
|
|
4
|
-
bad: `// domain/aggregates/appointment.aggregate.ts
|
|
5
|
-
confirm(now: Date): void {
|
|
6
|
-
if (this.state.status !== 'requested') {
|
|
7
|
-
throw AppointmentError.alreadyConfirmed(this.id);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
this.state = { ...this.state, changedAt: now, status: 'booked' };
|
|
11
|
-
}`,
|
|
12
|
-
good: `// domain/aggregates/appointment.aggregate.ts
|
|
13
|
-
confirm(now: Date): void {
|
|
14
|
-
this.state = { ...this.state, changedAt: now, status: appointmentLifecycle.next(this.state.status, 'confirm') };
|
|
15
|
-
}`,
|
|
16
|
-
},
|
|
17
|
-
'process/sends-commands-only': {
|
|
18
|
-
why: 'A process manager coordinates: it reacts to events, keeps its own state and decides what happens next. When it also loads and saves aggregates, of its context or another, or calls an outside system, it becomes a use case nobody can send, with no permission, no audit, and a transaction that spans what it should only coordinate. Its steps answer a decision whose commands do the work, each in its own handler; a file of application/processes/*.process.ts imports no aggregate, entity, repository, domain service, port or infrastructure.',
|
|
19
|
-
bad: `// application/processes/appointment-reminder.process.ts
|
|
20
|
-
import { ReminderRepository } from '@/contexts/notification/domain/repositories/reminder.repository';
|
|
21
|
-
|
|
22
|
-
export class AppointmentReminderProcess {
|
|
23
|
-
constructor(private readonly reminders: ReminderRepository) {}
|
|
24
|
-
}`,
|
|
25
|
-
good: `// application/processes/appointment-reminder.process.ts
|
|
26
|
-
export class AppointmentReminderProcess implements ProcessManager<ReminderProcessState> {
|
|
27
|
-
booked(event: AppointmentBookedV1, current: ReminderProcessState | undefined) {
|
|
28
|
-
return { state: { appointmentId: event.payload.appointmentId, stage: 'waiting' }, commands: [new PlanReminderCommand(/* ... */)] };
|
|
29
|
-
}
|
|
30
|
-
}`,
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=lifecycle-docs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle-docs.js","sourceRoot":"","sources":["../../../src/check/explain/lifecycle-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAsC;IAC/D,kCAAkC,EAAE;QAClC,GAAG,EAAE,yjBAAyjB;QAC9jB,GAAG,EAAE;;;;;;;EAOP;QACE,IAAI,EAAE;;;EAGR;KACC;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,0hBAA0hB;QAC/hB,GAAG,EAAE;;;;;EAKP;QACE,IAAI,EAAE;;;;;EAKR;KACC;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"module-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/module-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,CAsCzD,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export const MODULE_DOCS = {
|
|
2
|
-
'module/declared': {
|
|
3
|
-
why: 'A module of the model divides one bounded context, one language, one schema and one consistency, into parts a reader opens separately. Evans: "Choose modules that tell the story of the system and contain a cohesive set of concepts. Give the modules names that become part of the ubiquitous language." A module named after a technical grouping (common, core, utils) tells no story and becomes the place where everything else goes; `shared` is no module either, it is the folder of what belongs to none, and config/valid refuses it as a name. The row of the "## Modules" table of CONTEXT.md says what each holds, so that a person or an agent picks the right one before opening a file. A part that needs its own glossary, its own schema or its own published language is not a module: it is another context.',
|
|
4
|
-
bad: `"scheduling": { "modules": { "common": {}, "calendar-stuff": {} } }
|
|
5
|
-
// CONTEXT.md has no "## Modules" section`,
|
|
6
|
-
good: `"scheduling": { "modules": { "calendars": { "classification": "supporting" }, "waitlist": {} } }
|
|
7
|
-
// CONTEXT.md
|
|
8
|
-
## Modules
|
|
9
|
-
| Module | Purpose |
|
|
10
|
-
|---|---|
|
|
11
|
-
| \`calendars\` | The calendars, their opening hours, exceptions and time off. |
|
|
12
|
-
| \`waitlist\` | The waitlist of a calendar and the offers made to waiters. |`,
|
|
13
|
-
},
|
|
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, no layer folder stays at its root beside them: each module is one folder of the context holding its four layers and its tests (<module>/test/, with unit/, integration/, builders/ and fakes/), so that a part of the model is opened, moved and reviewed as one folder. A builder or a fake follows its subject, the aggregate or the port it is named after. What belongs to no module has one place: the closed list of its error codes (<context>.codes.ts) and its permission set (<context>.permissions.ts) at the root of the context, and in shared/ the schema and tables of its database (shared/infrastructure/persistence/), its route groups, guards and shared shapes (shared/presentation/http/), its worlds and the fakes, builders and specs of no module (shared/test/). shared/ holds no domain and no application: a concept two modules need belongs to one of them, or is a module. A file of a layer left at the level of the context, or a file of a module left in shared/, 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. The layout of an earlier version is an error whatever the severity of the rule: test/ at the level of the context, or a layer folder there that holds nothing but what shared/ holds now; `ddd-ts-kit context-layout` moves them.',
|
|
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/shared/infrastructure/persistence/knex-waitlist.repository.ts // an adapter of the waitlist, in shared/
|
|
19
|
-
contexts/scheduling/test/unit/calendars/calendar.aggregate.spec.ts // the earlier layout: an error`,
|
|
20
|
-
good: `contexts/scheduling/calendars/domain/aggregates/calendar.aggregate.ts
|
|
21
|
-
contexts/scheduling/calendars/test/unit/calendar.aggregate.spec.ts
|
|
22
|
-
contexts/scheduling/calendars/test/builders/calendar.builder.ts
|
|
23
|
-
contexts/scheduling/waitlist/domain/aggregates/waitlist.aggregate.ts
|
|
24
|
-
contexts/scheduling/waitlist/infrastructure/persistence/knex-waitlist.repository.ts
|
|
25
|
-
contexts/scheduling/shared/infrastructure/persistence/scheduling.schema.ts // the database of the context
|
|
26
|
-
contexts/scheduling/shared/test/worlds/scheduling.world.ts
|
|
27
|
-
contexts/scheduling/scheduling.codes.ts // one per context, at its root`,
|
|
28
|
-
},
|
|
29
|
-
'module/no-cycle': {
|
|
30
|
-
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.',
|
|
31
|
-
bad: `// calendars/domain/aggregates/calendar.aggregate.ts
|
|
32
|
-
import { Waitlist } from '@/contexts/scheduling/waitlist/domain/aggregates/waitlist.aggregate.js';
|
|
33
|
-
// waitlist/domain/aggregates/waitlist.aggregate.ts
|
|
34
|
-
import { Calendar } from '@/contexts/scheduling/calendars/domain/aggregates/calendar.aggregate.js';`,
|
|
35
|
-
good: `// waitlist/application/event-handlers/offer-freed-slot.event-handler.ts
|
|
36
|
-
import { SlotFreed } from '@/contexts/scheduling/calendars/domain/events/slot-freed.event.js';
|
|
37
|
-
// calendars imports nothing of waitlist: waitlist reacts to what calendars decided`,
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=module-docs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,qyBAAqyB;QAC1yB,GAAG,EAAE;0CACiC;QACtC,IAAI,EAAE;;;;;;8EAMoE;KAC3E;IACD,iBAAiB,EAAE;QACjB,GAAG,EAAE,8iDAA8iD;QACnjD,GAAG,EAAE;;;6GAGoG;QACzG,IAAI,EAAE;;;;;;;6GAOmG;KAC1G;IACD,iBAAiB,EAAE;QACjB,GAAG,EAAE,0jBAA0jB;QAC/jB,GAAG,EAAE;;;oGAG2F;QAChG,IAAI,EAAE;;oFAE0E;KACjF;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nest-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/nest-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA6BvD,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export const NEST_DOCS = {
|
|
2
|
-
'nest/no-parallel-pipeline': {
|
|
3
|
-
why: 'The routes of the kit are mounted under Nest, not through its pipeline: a guard, a pipe, an exception filter or an interceptor of Nest never sees them, and a controller of Nest written in a context is a route the kit does not see either. Its security is declared nowhere, its refusals are not problem documents with the codes the clients read, and it is missing from the contract. A right checked by a Nest guard is checked on HTTP only, never on /rpc, /trpc, a job or an event handler, which the permission of the use case covers. A Nest controller the kit serves is the exception: with `@KitRoute` of `@ddd-ts-kit/http/nest` on its methods, its routes are declared with the decorators of Nest (`@Controller`, `@Post`, `@Body`, `@Param`...) and served by the pipeline of the kit, and the raw request, the guards, pipes, filters and interceptors of Nest stay refused there. Outside the contexts, a controller Nest serves that reaches a use case (it names `CommandBus` or `QueryBus`, or imports a file of a context) is refused too: moving it to the platform would keep the hole. Each tool of Nest has its place in the kit: the message says which. Nest stays in the platform, for what is not a use case (health, WebSocket gateways, GraphQL), and its WebSocket, GraphQL, microservice and testing packages are not judged. Judged: presentation/, infrastructure/ and the module file of a context, outside its tests; domain/ and application/ already refuse every framework.',
|
|
4
|
-
bad: `// presentation/http/issue-invoice.controller.ts
|
|
5
|
-
import { Controller, Post, UseGuards } from '@nestjs/common';
|
|
6
|
-
// infrastructure/external/payment-settings.ts
|
|
7
|
-
import { ConfigService } from '@nestjs/config';`,
|
|
8
|
-
good: `// presentation/http/invoices.controller.ts
|
|
9
|
-
import { Body, Controller, Param, Post } from '@nestjs/common';
|
|
10
|
-
import { CurrentActor, KitRoute, KitRoutes } from '@ddd-ts-kit/http/nest';
|
|
11
|
-
|
|
12
|
-
@Controller('invoices')
|
|
13
|
-
@KitRoutes({ guards: [Authenticated] })
|
|
14
|
-
export class InvoicesController {
|
|
15
|
-
@Post(':invoiceId/issue')
|
|
16
|
-
@KitRoute({ operationId: 'issueInvoice', summary: 'Issue an invoice', errors: ['INVOICE_ALREADY_ISSUED'] })
|
|
17
|
-
issue(@Param('invoiceId') invoiceId: string, @Body() body: IssueInvoiceBody, @CurrentActor() actor: Actor) {}
|
|
18
|
-
}`,
|
|
19
|
-
},
|
|
20
|
-
'nest/controllers-current': {
|
|
21
|
-
why: 'A Nest controller the kit serves says what a method answers in its signature (`Promise<IssuedInvoice>`), which TypeScript erases: the kit reads it from the source into the generated <context>.controllers.ts, which the module of the context lists and the bridge reads, so that the route answers its body and the contract documents it without a second statement. A file left behind lists a controller that is gone, misses one, or names an answer that changed; a method whose answer is no DTO class, `Accepted` or `void` (an array, a type written inline, an interface, no type) has no schema to read, and its route would answer nothing.',
|
|
22
|
-
bad: `// presentation/http/invoices/search-lines/search-lines.controller.ts
|
|
23
|
-
@Get(':invoiceId/lines')
|
|
24
|
-
lines(): Promise<InvoiceLine[]> { ... }`,
|
|
25
|
-
good: `@Get(':invoiceId/lines')
|
|
26
|
-
lines(): Promise<InvoiceLinesAnswer> { ... }
|
|
27
|
-
// or
|
|
28
|
-
@KitRoute({ response: { body: linesSchema } })`,
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=nest-docs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nest-docs.js","sourceRoot":"","sources":["../../../src/check/explain/nest-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAsC;IAC1D,2BAA2B,EAAE;QAC3B,GAAG,EAAE,47CAA47C;QACj8C,GAAG,EAAE;;;gDAGuC;QAC5C,IAAI,EAAE;;;;;;;;;;EAUR;KACC;IACD,0BAA0B,EAAE;QAC1B,GAAG,EAAE,2nBAA2nB;QAChoB,GAAG,EAAE;;wCAE+B;QACpC,IAAI,EAAE;;;+CAGqC;KAC5C;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"persistence-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/persistence-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAqG9D,CAAC"}
|