ddd-ts-kit 0.91.0 → 0.92.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 +189 -0
- package/README.fr.md +16 -12
- package/README.md +15 -10
- package/dist/acceptance/lock-acceptance.d.ts.map +1 -1
- package/dist/acceptance/lock-acceptance.js +2 -1
- package/dist/acceptance/lock-acceptance.js.map +1 -1
- package/dist/check/event-sourcing/read-stored-shape.d.ts +2 -0
- package/dist/check/event-sourcing/read-stored-shape.d.ts.map +1 -1
- package/dist/check/event-sourcing/read-stored-shape.js +3 -1
- package/dist/check/event-sourcing/read-stored-shape.js.map +1 -1
- package/dist/check/event-sourcing/stored-event-declaration.d.ts +2 -0
- package/dist/check/event-sourcing/stored-event-declaration.d.ts.map +1 -1
- package/dist/check/event-sourcing/stored-event-declarations.js +1 -0
- package/dist/check/event-sourcing/stored-event-declarations.js.map +1 -1
- package/dist/check/event-sourcing/stored-shape.d.ts +2 -0
- package/dist/check/event-sourcing/stored-shape.d.ts.map +1 -1
- package/dist/check/fixtures/nest-controllers-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/nest-controllers-fixtures.js +21 -3
- package/dist/check/fixtures/nest-controllers-fixtures.js.map +1 -1
- package/dist/check/nest/nest-equivalents-of.d.ts.map +1 -1
- package/dist/check/nest/nest-equivalents-of.js +7 -2
- package/dist/check/nest/nest-equivalents-of.js.map +1 -1
- package/dist/check/rules/nest-controllers-current.d.ts.map +1 -1
- package/dist/check/rules/nest-controllers-current.js +13 -2
- package/dist/check/rules/nest-controllers-current.js.map +1 -1
- package/dist/commands/docs.d.ts.map +1 -1
- package/dist/commands/docs.js +13 -5
- package/dist/commands/docs.js.map +1 -1
- package/dist/commands/drizzle-generate.d.ts.map +1 -1
- package/dist/commands/drizzle-generate.js +21 -1
- package/dist/commands/drizzle-generate.js.map +1 -1
- package/dist/commands/generate.js +2 -0
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/prisma-generate.d.ts +7 -0
- package/dist/commands/prisma-generate.d.ts.map +1 -0
- package/dist/commands/prisma-generate.js +23 -0
- package/dist/commands/prisma-generate.js.map +1 -0
- package/dist/commands/typeorm-generate.d.ts +10 -0
- package/dist/commands/typeorm-generate.d.ts.map +1 -0
- package/dist/commands/typeorm-generate.js +37 -0
- package/dist/commands/typeorm-generate.js.map +1 -0
- package/dist/config/stack.d.ts +1 -1
- package/dist/config/stack.d.ts.map +1 -1
- package/dist/config/stack.js +1 -1
- package/dist/config/stack.js.map +1 -1
- package/dist/describe/guard-errors.d.ts +3 -0
- package/dist/describe/guard-errors.d.ts.map +1 -0
- package/dist/describe/guard-errors.js +10 -0
- package/dist/describe/guard-errors.js.map +1 -0
- package/dist/describe/no-group.d.ts +4 -0
- package/dist/describe/no-group.d.ts.map +1 -0
- package/dist/describe/no-group.js +3 -0
- package/dist/describe/no-group.js.map +1 -0
- package/dist/describe/read-controllers.d.ts +1 -1
- package/dist/describe/read-controllers.d.ts.map +1 -1
- package/dist/describe/read-controllers.js +12 -19
- package/dist/describe/read-controllers.js.map +1 -1
- package/dist/describe/read-nest-controller-routes.d.ts +16 -0
- package/dist/describe/read-nest-controller-routes.d.ts.map +1 -0
- package/dist/describe/read-nest-controller-routes.js +117 -0
- package/dist/describe/read-nest-controller-routes.js.map +1 -0
- package/dist/describe/schema-class-of.d.ts +3 -0
- package/dist/describe/schema-class-of.d.ts.map +1 -0
- package/dist/describe/schema-class-of.js +10 -0
- package/dist/describe/schema-class-of.js.map +1 -0
- package/dist/docs/declared-stored-events.d.ts +6 -2
- package/dist/docs/declared-stored-events.d.ts.map +1 -1
- package/dist/docs/declared-stored-events.js +4 -3
- package/dist/docs/declared-stored-events.js.map +1 -1
- package/dist/docs/emptily-recorded-stored-events.d.ts +6 -0
- package/dist/docs/emptily-recorded-stored-events.d.ts.map +1 -0
- package/dist/docs/emptily-recorded-stored-events.js +12 -0
- package/dist/docs/emptily-recorded-stored-events.js.map +1 -0
- package/dist/docs/refuse-unreadable-stored-events.d.ts +7 -0
- package/dist/docs/refuse-unreadable-stored-events.d.ts.map +1 -0
- package/dist/docs/refuse-unreadable-stored-events.js +27 -0
- package/dist/docs/refuse-unreadable-stored-events.js.map +1 -0
- package/dist/docs/write-stored-events-lock.d.ts +3 -2
- package/dist/docs/write-stored-events-lock.d.ts.map +1 -1
- package/dist/docs/write-stored-events-lock.js +5 -2
- package/dist/docs/write-stored-events-lock.js.map +1 -1
- package/dist/generate/kind.d.ts +2 -0
- package/dist/generate/kind.d.ts.map +1 -1
- package/dist/generate/kinds/aggregate-kind.d.ts.map +1 -1
- package/dist/generate/kinds/aggregate-kind.js +6 -2
- package/dist/generate/kinds/aggregate-kind.js.map +1 -1
- package/dist/generate/kinds/assert-event-store.d.ts +4 -0
- package/dist/generate/kinds/assert-event-store.d.ts.map +1 -0
- package/dist/generate/kinds/assert-event-store.js +10 -0
- package/dist/generate/kinds/assert-event-store.js.map +1 -0
- package/dist/generate/kinds/file-upload/write-nest-upload-controller.d.ts +9 -0
- package/dist/generate/kinds/file-upload/write-nest-upload-controller.d.ts.map +1 -0
- package/dist/generate/kinds/file-upload/write-nest-upload-controller.js +49 -0
- package/dist/generate/kinds/file-upload/write-nest-upload-controller.js.map +1 -0
- package/dist/generate/kinds/file-upload-kind.d.ts.map +1 -1
- package/dist/generate/kinds/file-upload-kind.js +9 -2
- package/dist/generate/kinds/file-upload-kind.js.map +1 -1
- package/dist/generate/kinds/form-kind.d.ts.map +1 -1
- package/dist/generate/kinds/form-kind.js +15 -11
- package/dist/generate/kinds/form-kind.js.map +1 -1
- package/dist/generate/kinds/generate-event-sourced-repository.d.ts +11 -0
- package/dist/generate/kinds/generate-event-sourced-repository.d.ts.map +1 -0
- package/dist/generate/kinds/generate-event-sourced-repository.js +48 -0
- package/dist/generate/kinds/generate-event-sourced-repository.js.map +1 -0
- package/dist/generate/kinds/generate-repository.d.ts.map +1 -1
- package/dist/generate/kinds/generate-repository.js +5 -0
- package/dist/generate/kinds/generate-repository.js.map +1 -1
- package/dist/generate/kinds/is-event-sourced.d.ts +9 -0
- package/dist/generate/kinds/is-event-sourced.d.ts.map +1 -0
- package/dist/generate/kinds/is-event-sourced.js +11 -0
- package/dist/generate/kinds/is-event-sourced.js.map +1 -0
- package/dist/generate/kinds/presentation/controller-source.d.ts +11 -3
- package/dist/generate/kinds/presentation/controller-source.d.ts.map +1 -1
- package/dist/generate/kinds/presentation/controller-source.js +25 -4
- package/dist/generate/kinds/presentation/controller-source.js.map +1 -1
- package/dist/generate/kinds/repository-kind.js +1 -1
- package/dist/generate/kinds/repository-kind.js.map +1 -1
- package/dist/generate/kinds/representation-kind.d.ts.map +1 -1
- package/dist/generate/kinds/representation-kind.js +4 -3
- package/dist/generate/kinds/representation-kind.js.map +1 -1
- package/dist/generate/kinds/route/nest-controller-vars.d.ts +2 -2
- package/dist/generate/kinds/route/nest-controller-vars.js +3 -9
- package/dist/generate/kinds/route/nest-controller-vars.js.map +1 -1
- package/dist/generate/kinds/route/nest-search-vars.d.ts +6 -0
- package/dist/generate/kinds/route/nest-search-vars.d.ts.map +1 -0
- package/dist/generate/kinds/route/nest-search-vars.js +18 -0
- package/dist/generate/kinds/route/nest-search-vars.js.map +1 -0
- package/dist/generate/kinds/route/write-nest-controller.d.ts.map +1 -1
- package/dist/generate/kinds/route/write-nest-controller.js +6 -8
- package/dist/generate/kinds/route/write-nest-controller.js.map +1 -1
- package/dist/generate/kinds/route-kind.js +1 -1
- package/dist/generate/kinds/route-kind.js.map +1 -1
- package/dist/generate/kinds/wire-repository-on-first-use.d.ts.map +1 -1
- package/dist/generate/kinds/wire-repository-on-first-use.js +2 -1
- package/dist/generate/kinds/wire-repository-on-first-use.js.map +1 -1
- package/dist/generate/kinds/write-event-sourced-aggregate.d.ts.map +1 -1
- package/dist/generate/kinds/write-event-sourced-aggregate.js +5 -13
- package/dist/generate/kinds/write-event-sourced-aggregate.js.map +1 -1
- package/dist/help/notes.d.ts +1 -1
- package/dist/help/notes.d.ts.map +1 -1
- package/dist/help/notes.js +3 -1
- package/dist/help/notes.js.map +1 -1
- package/dist/help/usage.d.ts +1 -1
- package/dist/help/usage.d.ts.map +1 -1
- package/dist/help/usage.js +3 -1
- package/dist/help/usage.js.map +1 -1
- package/dist/init/agent-permissions.js +10 -6
- package/dist/init/agent-permissions.js.map +1 -1
- package/dist/init/files/auth-files.js +4 -0
- package/dist/init/files/auth-files.js.map +1 -1
- package/dist/init/files/platform-files.js +1 -0
- package/dist/init/files/platform-files.js.map +1 -1
- package/dist/init/knip-vars.js +4 -3
- package/dist/init/knip-vars.js.map +1 -1
- package/dist/init/manifest/database-scripts.d.ts.map +1 -1
- package/dist/init/manifest/database-scripts.js +10 -4
- package/dist/init/manifest/database-scripts.js.map +1 -1
- package/dist/init/manifest/dependencies-against-stack.d.ts.map +1 -1
- package/dist/init/manifest/dependencies-against-stack.js +5 -1
- package/dist/init/manifest/dependencies-against-stack.js.map +1 -1
- package/dist/init/manifest/dependencies-for.d.ts.map +1 -1
- package/dist/init/manifest/dependencies-for.js +7 -1
- package/dist/init/manifest/dependencies-for.js.map +1 -1
- package/dist/init/manifest/versions.d.ts.map +1 -1
- package/dist/init/manifest/versions.js +34 -30
- package/dist/init/manifest/versions.js.map +1 -1
- package/dist/init/stack/resolve-stack.js +9 -7
- package/dist/init/stack/resolve-stack.js.map +1 -1
- package/dist/init/template-vars.js +1 -1
- package/dist/init/template-vars.js.map +1 -1
- package/dist/init/write-type-script-configs.d.ts.map +1 -1
- package/dist/init/write-type-script-configs.js +4 -1
- package/dist/init/write-type-script-configs.js.map +1 -1
- package/dist/markers/insert-in-region.js +1 -1
- package/dist/markers/insert-in-region.js.map +1 -1
- package/dist/merge/lost/untouched-by-branch.d.ts +12 -0
- package/dist/merge/lost/untouched-by-branch.d.ts.map +1 -0
- package/dist/merge/lost/untouched-by-branch.js +22 -0
- package/dist/merge/lost/untouched-by-branch.js.map +1 -0
- package/dist/merge/lost/verify-merge.d.ts.map +1 -1
- package/dist/merge/lost/verify-merge.js +6 -1
- package/dist/merge/lost/verify-merge.js.map +1 -1
- package/dist/migration/audit-guard/append-audit-guard.d.ts +18 -0
- package/dist/migration/audit-guard/append-audit-guard.d.ts.map +1 -0
- package/dist/migration/audit-guard/append-audit-guard.js +27 -0
- package/dist/migration/audit-guard/append-audit-guard.js.map +1 -0
- package/dist/migration/audit-guard/audit-guard-statements-of.d.ts +7 -0
- package/dist/migration/audit-guard/audit-guard-statements-of.d.ts.map +1 -0
- package/dist/migration/audit-guard/audit-guard-statements-of.js +18 -0
- package/dist/migration/audit-guard/audit-guard-statements-of.js.map +1 -0
- package/dist/migration/audit-guard/audit-schema-created.d.ts +3 -0
- package/dist/migration/audit-guard/audit-schema-created.d.ts.map +1 -0
- package/dist/migration/audit-guard/audit-schema-created.js +9 -0
- package/dist/migration/audit-guard/audit-schema-created.js.map +1 -0
- package/dist/migration/audit-guard/generate-guarded.d.ts +16 -0
- package/dist/migration/audit-guard/generate-guarded.d.ts.map +1 -0
- package/dist/migration/audit-guard/generate-guarded.js +22 -0
- package/dist/migration/audit-guard/generate-guarded.js.map +1 -0
- package/dist/migration/audit-guard/guard-marker.d.ts +3 -0
- package/dist/migration/audit-guard/guard-marker.d.ts.map +1 -0
- package/dist/migration/audit-guard/guard-marker.js +3 -0
- package/dist/migration/audit-guard/guard-marker.js.map +1 -0
- package/dist/migration/audit-guard/guarded-text.d.ts +5 -0
- package/dist/migration/audit-guard/guarded-text.d.ts.map +1 -0
- package/dist/migration/audit-guard/guarded-text.js +26 -0
- package/dist/migration/audit-guard/guarded-text.js.map +1 -0
- package/dist/migration/audit-guard/migrations-under.d.ts +3 -0
- package/dist/migration/audit-guard/migrations-under.d.ts.map +1 -0
- package/dist/migration/audit-guard/migrations-under.js +15 -0
- package/dist/migration/audit-guard/migrations-under.js.map +1 -0
- package/dist/migration/audit-guard/run-orm-tool.d.ts +3 -0
- package/dist/migration/audit-guard/run-orm-tool.d.ts.map +1 -0
- package/dist/migration/audit-guard/run-orm-tool.js +13 -0
- package/dist/migration/audit-guard/run-orm-tool.js.map +1 -0
- package/dist/migration/audit-guard/schemas-first.d.ts +6 -0
- package/dist/migration/audit-guard/schemas-first.d.ts.map +1 -0
- package/dist/migration/audit-guard/schemas-first.js +17 -0
- package/dist/migration/audit-guard/schemas-first.js.map +1 -0
- package/dist/migration/audit-guard/schemas-if-missing.d.ts +7 -0
- package/dist/migration/audit-guard/schemas-if-missing.d.ts.map +1 -0
- package/dist/migration/audit-guard/schemas-if-missing.js +9 -0
- package/dist/migration/audit-guard/schemas-if-missing.js.map +1 -0
- package/dist/migration/audit-guard/type-only-imports.d.ts +6 -0
- package/dist/migration/audit-guard/type-only-imports.d.ts.map +1 -0
- package/dist/migration/audit-guard/type-only-imports.js +8 -0
- package/dist/migration/audit-guard/type-only-imports.js.map +1 -0
- package/dist/migration/format-as-the-project.d.ts +4 -0
- package/dist/migration/format-as-the-project.d.ts.map +1 -0
- package/dist/migration/format-as-the-project.js +27 -0
- package/dist/migration/format-as-the-project.js.map +1 -0
- package/dist/migration/format-written-files.d.ts.map +1 -1
- package/dist/migration/format-written-files.js +2 -24
- package/dist/migration/format-written-files.js.map +1 -1
- package/dist/migration/index.d.ts +8 -0
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +8 -0
- package/dist/migration/index.js.map +1 -1
- package/dist/nest-controllers/nest-answer.d.ts +2 -10
- package/dist/nest-controllers/nest-answer.d.ts.map +1 -1
- package/dist/nest-controllers/nest-controller-entry.d.ts +4 -2
- package/dist/nest-controllers/nest-controller-entry.d.ts.map +1 -1
- package/dist/nest-controllers/nest-controllers-in.d.ts +6 -0
- package/dist/nest-controllers/nest-controllers-in.d.ts.map +1 -0
- package/dist/nest-controllers/nest-controllers-in.js +108 -0
- package/dist/nest-controllers/nest-controllers-in.js.map +1 -0
- package/dist/nest-controllers/nest-read-type.d.ts +12 -0
- package/dist/nest-controllers/nest-read-type.d.ts.map +1 -0
- package/dist/nest-controllers/nest-read-type.js +2 -0
- package/dist/nest-controllers/nest-read-type.js.map +1 -0
- package/dist/nest-controllers/nest-request-part.d.ts +9 -0
- package/dist/nest-controllers/nest-request-part.d.ts.map +1 -0
- package/dist/nest-controllers/nest-request-part.js +2 -0
- package/dist/nest-controllers/nest-request-part.js.map +1 -0
- package/dist/nest-controllers/parameters-of.d.ts +8 -0
- package/dist/nest-controllers/parameters-of.d.ts.map +1 -0
- package/dist/nest-controllers/parameters-of.js +32 -0
- package/dist/nest-controllers/parameters-of.js.map +1 -0
- package/dist/nest-controllers/project-files.d.ts +6 -0
- package/dist/nest-controllers/project-files.d.ts.map +1 -0
- package/dist/nest-controllers/project-files.js +2 -0
- package/dist/nest-controllers/project-files.js.map +1 -0
- package/dist/nest-controllers/read-nest-controllers.d.ts +6 -9
- package/dist/nest-controllers/read-nest-controllers.d.ts.map +1 -1
- package/dist/nest-controllers/read-nest-controllers.js +10 -82
- package/dist/nest-controllers/read-nest-controllers.js.map +1 -1
- package/dist/nest-controllers/render-controllers-file.d.ts +4 -3
- package/dist/nest-controllers/render-controllers-file.d.ts.map +1 -1
- package/dist/nest-controllers/render-controllers-file.js +45 -29
- package/dist/nest-controllers/render-controllers-file.js.map +1 -1
- package/dist/platform-layout/platform-layout.d.ts +3 -0
- package/dist/platform-layout/platform-layout.d.ts.map +1 -1
- package/dist/platform-layout/platform-layout.js +3 -0
- package/dist/platform-layout/platform-layout.js.map +1 -1
- package/dist/presets/identity-refusal.js +3 -3
- package/dist/presets/identity-refusal.js.map +1 -1
- package/dist/presets/preset-files.d.ts.map +1 -1
- package/dist/presets/preset-files.js +3 -1
- package/dist/presets/preset-files.js.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +4 -0
- package/dist/run.js.map +1 -1
- package/dist/stack/authentication-vars.d.ts.map +1 -1
- package/dist/stack/authentication-vars.js +8 -2
- package/dist/stack/authentication-vars.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/worker/briefing-of.d.ts.map +1 -1
- package/dist/worker/briefing-of.js +2 -4
- package/dist/worker/briefing-of.js.map +1 -1
- package/dist/worker/resume-message.d.ts.map +1 -1
- package/dist/worker/resume-message.js +1 -2
- package/dist/worker/resume-message.js.map +1 -1
- package/package.json +6 -4
- package/templates/background-job/wiring.manual.tpl +1 -1
- package/templates/command/wiring.manual.tpl +1 -1
- package/templates/context/module.manual.ts.tpl +41 -10
- package/templates/erasure-handler/wiring.manual.tpl +1 -1
- package/templates/event-handler/wiring.manual.tpl +1 -1
- package/templates/file-upload/wiring.manual.tpl +1 -1
- package/templates/init/docker/env.example.tpl +1 -1
- package/templates/init/e2e/auth-environment.passport.ts.tpl +6 -0
- package/templates/init/e2e/create-credentials.passport.ts.tpl +47 -0
- package/templates/init/platform/auth/authentication/actor-of-token.ts.tpl +15 -0
- package/templates/init/platform/auth/authentication/bearer-strategy.ts.tpl +29 -0
- package/templates/init/platform/auth/authentication/create-authenticator.passport.ts.tpl +13 -0
- package/templates/init/platform/composition/compose-application.manual.ts.tpl +5 -2
- package/templates/init/platform/composition/lay-foundations.manual.ts.tpl +1 -1
- package/templates/init/platform/composition/lay-foundations.tsyringe.ts.tpl +1 -1
- package/templates/init/platform/composition/platform-error-mapper.ts.tpl +9 -0
- package/templates/init/platform/composition/platform-test.module.tsyringe.ts.tpl +11 -0
- package/templates/init/platform/composition/platform.module.tsyringe.ts.tpl +5 -2
- package/templates/init/platform/config/app-config.ts.tpl +2 -2
- package/templates/init/platform/config/load-config.ts.tpl +2 -2
- package/templates/init/platform/database/open-persistence.memory.ts.tpl +10 -0
- package/templates/init/platform/database/persistence-over.drizzle.ts.tpl +5 -0
- package/templates/init/platform/database/persistence-over.knex.ts.tpl +5 -0
- package/templates/init/platform/database/persistence-over.prisma.ts.tpl +5 -0
- package/templates/init/platform/database/persistence-over.typeorm.ts.tpl +5 -0
- package/templates/init/platform/database/persistence.contract.spec.ts.tpl +18 -0
- package/templates/init/platform/database/persistence.memory.ts.tpl +7 -1
- package/templates/init/platform/database/persistence.orm.ts.tpl +9 -1
- package/templates/init/platform/database/schema.drizzle.ts.tpl +11 -1
- package/templates/init/platform/database/schema.prisma.tpl +2 -1
- package/templates/init/platform/database/schema.typeorm.ts.tpl +1 -1
- package/templates/init/platform/event-sourcing/create-event-sourcing.ts.tpl +18 -6
- package/templates/init/platform/http/start-http-server.express.ts.tpl +10 -1
- package/templates/init/platform/http/start-http-server.nest.ts.tpl +6 -1
- package/templates/init/rules/presentation.md.tpl +1 -1
- package/templates/integration-event/wiring.manual.tpl +1 -1
- package/templates/integration-handler/wiring.manual.tpl +1 -1
- package/templates/job/wiring.manual.tpl +1 -1
- package/templates/nest-controller/controller.search.ts.tpl +38 -0
- package/templates/nest-controller/controller.ts.tpl +1 -17
- package/templates/nest-controller/upload.spec.ts.tpl +47 -0
- package/templates/nest-controller/upload.ts.tpl +25 -0
- package/templates/pipeline/biome.json.tpl +2 -2
- package/templates/pipeline/eslint.config.mjs.tpl +6 -0
- package/templates/pipeline/package-scripts.json +2 -2
- package/templates/presets/identity/context/__context__.module.explicit.ts.tpl +17 -0
- package/templates/presets/identity/context/presentation/http/accounts/deactivate-account/deactivate-account.controller.nest-routes.ts.tpl +31 -0
- package/templates/presets/identity/context/presentation/http/accounts/provision-account/provision-account.controller.nest-routes.ts.tpl +44 -0
- package/templates/presets/identity/context/presentation/http/invitations/accept-invitation/accept-invitation.controller.nest-routes.ts.tpl +56 -0
- package/templates/presets/identity/context/presentation/http/invitations/decline-invitation/decline-invitation.controller.nest-routes.ts.tpl +54 -0
- package/templates/presets/identity/context/presentation/http/organisations/change-member-role/change-member-role.controller.nest-routes.ts.tpl +32 -0
- package/templates/presets/identity/context/presentation/http/organisations/grant-delegation/grant-delegation.controller.nest-routes.ts.tpl +43 -0
- package/templates/presets/identity/context/presentation/http/organisations/invite-member/invite-member.controller.nest-routes.ts.tpl +25 -0
- package/templates/presets/identity/context/presentation/http/organisations/open-organisation/open-organisation.controller.nest-routes.ts.tpl +37 -0
- package/templates/presets/identity/context/presentation/http/organisations/remove-member/remove-member.controller.nest-routes.ts.tpl +31 -0
- package/templates/presets/identity/context/presentation/http/organisations/revoke-delegation/revoke-delegation.controller.nest-routes.ts.tpl +31 -0
- package/templates/presets/identity/context/presentation/http/organisations/revoke-invitation/revoke-invitation.controller.nest-routes.ts.tpl +31 -0
- package/templates/presets/identity/context/presentation/http/organisations/search-members/search-members.controller.nest-routes.ts.tpl +42 -0
- package/templates/presets/identity/context/test/integration/organisation.repository.contract.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/__context__.module.spec.explicit.ts.tpl +13 -0
- package/templates/presets/identity/context/test/unit/accept-invitation.controller.spec.nest-routes.ts.tpl +70 -0
- package/templates/presets/identity/context/test/unit/change-member-role.controller.spec.nest-routes.ts.tpl +70 -0
- package/templates/presets/identity/context/test/unit/deactivate-account.controller.spec.nest-routes.ts.tpl +57 -0
- package/templates/presets/identity/context/test/unit/decline-invitation.controller.spec.nest-routes.ts.tpl +70 -0
- package/templates/presets/identity/context/test/unit/grant-delegation.controller.spec.nest-routes.ts.tpl +70 -0
- package/templates/presets/identity/context/test/unit/invite-member.controller.spec.nest-routes.ts.tpl +70 -0
- package/templates/presets/identity/context/test/unit/open-organisation.controller.spec.nest-routes.ts.tpl +70 -0
- package/templates/presets/identity/context/test/unit/provision-account.controller.spec.nest-routes.ts.tpl +99 -0
- package/templates/presets/identity/context/test/unit/remove-member.controller.spec.nest-routes.ts.tpl +57 -0
- package/templates/presets/identity/context/test/unit/revoke-delegation.controller.spec.nest-routes.ts.tpl +57 -0
- package/templates/presets/identity/context/test/unit/revoke-invitation.controller.spec.nest-routes.ts.tpl +57 -0
- package/templates/presets/identity/context/test/unit/search-members.controller.spec.nest-routes.ts.tpl +54 -0
- package/templates/process/timeout-job.wiring.manual.tpl +1 -1
- package/templates/query/search.wiring.manual.tpl +1 -1
- package/templates/query/wiring.manual.tpl +1 -1
- package/templates/repository/contract.spec.ts.tpl +1 -3
- package/templates/repository/event-sourced/contract.spec.ts.tpl +36 -0
- package/templates/repository/event-sourced/fake.ts.tpl +24 -0
- package/templates/repository/event-sourced/repository.ts.tpl +38 -0
- package/templates/repository/event-sourced-first-use.wiring.manual.tpl +4 -0
- package/templates/repository/event-sourced.wiring.tsyringe.tpl +6 -0
- package/templates/repository/first-use.wiring.manual.tpl +1 -1
- /package/templates/presets/identity/context/presentation/http/accounts/deactivate-account/{deactivate-account.controller.ts.tpl → deactivate-account.controller.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/presentation/http/accounts/provision-account/{provision-account.controller.ts.tpl → provision-account.controller.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/presentation/http/invitations/accept-invitation/{accept-invitation.controller.ts.tpl → accept-invitation.controller.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/presentation/http/invitations/decline-invitation/{decline-invitation.controller.ts.tpl → decline-invitation.controller.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/presentation/http/organisations/change-member-role/{change-member-role.controller.ts.tpl → change-member-role.controller.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/presentation/http/organisations/grant-delegation/{grant-delegation.controller.ts.tpl → grant-delegation.controller.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/presentation/http/organisations/invite-member/{invite-member.controller.ts.tpl → invite-member.controller.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/presentation/http/organisations/open-organisation/{open-organisation.controller.ts.tpl → open-organisation.controller.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/presentation/http/organisations/remove-member/{remove-member.controller.ts.tpl → remove-member.controller.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/presentation/http/organisations/revoke-delegation/{revoke-delegation.controller.ts.tpl → revoke-delegation.controller.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/presentation/http/organisations/revoke-invitation/{revoke-invitation.controller.ts.tpl → revoke-invitation.controller.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/presentation/http/organisations/search-members/{search-members.controller.ts.tpl → search-members.controller.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/test/unit/{accept-invitation.controller.spec.ts.tpl → accept-invitation.controller.spec.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/test/unit/{change-member-role.controller.spec.ts.tpl → change-member-role.controller.spec.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/test/unit/{deactivate-account.controller.spec.ts.tpl → deactivate-account.controller.spec.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/test/unit/{decline-invitation.controller.spec.ts.tpl → decline-invitation.controller.spec.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/test/unit/{grant-delegation.controller.spec.ts.tpl → grant-delegation.controller.spec.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/test/unit/{invite-member.controller.spec.ts.tpl → invite-member.controller.spec.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/test/unit/{open-organisation.controller.spec.ts.tpl → open-organisation.controller.spec.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/test/unit/{provision-account.controller.spec.ts.tpl → provision-account.controller.spec.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/test/unit/{remove-member.controller.spec.ts.tpl → remove-member.controller.spec.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/test/unit/{revoke-delegation.controller.spec.ts.tpl → revoke-delegation.controller.spec.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/test/unit/{revoke-invitation.controller.spec.ts.tpl → revoke-invitation.controller.spec.kit-routes.ts.tpl} +0 -0
- /package/templates/presets/identity/context/test/unit/{search-members.controller.spec.ts.tpl → search-members.controller.spec.kit-routes.ts.tpl} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-controllers-file.js","sourceRoot":"","sources":["../../src/nest-controllers/render-controllers-file.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"render-controllers-file.js","sourceRoot":"","sources":["../../src/nest-controllers/render-controllers-file.ts"],"names":[],"mappings":"AAGA,MAAM,KAAK,GAAG,GAAG,CAAC;AAElB;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CACnC,OAAe,EACf,QAAgB,EAChB,OAAuC;IAEvC,MAAM,IAAI,GACR,OAAO,CAAC,MAAM,KAAK,CAAC;QAClB,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC;IAErH,OAAO,2DAA2D,OAAO;EACzE,SAAS,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;;8BAED,OAAO;eACtB,QAAQ,6BAA6B,IAAI;CACvD,CAAC;AACF,CAAC;AAED,wIAAwI;AACxI,SAAS,SAAS,CAAC,OAAuC;IACxD,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;IAEzD,MAAM,KAAK,GAAG,IAAI,GAAG,CACnB,OAAO;SACJ,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC;SAC9E,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,C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,QAAQ,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,SAAS,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC;IACxF,CAAC,CAAC,CAAC;IAEH,OAAO,oBAAoB,SAAS,QAAQ,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC;AACxE,CAAC"}
|
|
@@ -11,6 +11,8 @@ export declare const PLATFORM_LAYOUT: readonly [{
|
|
|
11
11
|
readonly 'auth/security-schemes.ts': 'auth/authentication/security-schemes.ts';
|
|
12
12
|
readonly 'auth/http-boundary.ts': 'auth/authentication/http-boundary.ts';
|
|
13
13
|
readonly 'auth/offline-authenticator.ts': 'auth/authentication/offline-authenticator.ts';
|
|
14
|
+
readonly 'auth/bearer-strategy.ts': 'auth/authentication/bearer-strategy.ts';
|
|
15
|
+
readonly 'auth/actor-of-token.ts': 'auth/authentication/actor-of-token.ts';
|
|
14
16
|
readonly 'auth/development-actor-header.ts': 'auth/authentication/development-actor-header.ts';
|
|
15
17
|
readonly 'auth/development-header-authenticator.ts': 'auth/authentication/development-header-authenticator.ts';
|
|
16
18
|
readonly 'auth/authorization.ts': 'auth/authorization/authorization.ts';
|
|
@@ -37,6 +39,7 @@ export declare const PLATFORM_LAYOUT: readonly [{
|
|
|
37
39
|
readonly 'compose-application.ts': 'composition/compose-application.ts';
|
|
38
40
|
readonly 'platform.module.ts': 'composition/platform.module.ts';
|
|
39
41
|
readonly 'platform-test.module.ts': 'composition/platform-test.module.ts';
|
|
42
|
+
readonly 'platform-error-mapper.ts': 'composition/platform-error-mapper.ts';
|
|
40
43
|
readonly 'lay-foundations.ts': 'composition/lay-foundations.ts';
|
|
41
44
|
readonly 'platform.ts': 'composition/platform.ts';
|
|
42
45
|
readonly 'create-platform.ts': 'composition/create-platform.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-layout.d.ts","sourceRoot":"","sources":["../../src/platform-layout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AC/D,yCAAyC,EAAE,gDAAgD;;;aAI7F,MAAM,EAAE,wBAAwB;aAChC,KAAK;iBACH,wBAAwB,EAAE,oCAAoC;iBAC9D,oBAAoB,EAAE,gCAAgC;iBACtD,yBAAyB,EAAE,qCAAqC;iBAChE,0BAA0B,EAAE,sCAAsC;iBAClE,oBAAoB,EAAE,gCAAgC;iBACtD,aAAa,EAAE,yBAAyB;iBACxC,oBAAoB,EAAE,gCAAgC;iBACtD,YAAY,EAAE,0BAA0B;iBACxC,WAAW,EAAE,yBAAyB;iBACtC,iBAAiB,EAAE,sBAAsB;iBACzC,oBAAoB,EAAE,yBAAyB;iBAC/C,2BAA2B,EAAE,gCAAgC;;;aAI/D,MAAM,EAAE,uCAAuC;aAC/C,KAAK;iBACH,qCAAqC,EAAE,0DAA0D;iBACjG,uCAAuC,EAAE,4DAA4D;iBACrG,0CAA0C,EAAE,+DAA+D;iBAC3G,qCAAqC,EAAE,0DAA0D;iBACjG,yBAAyB,EAAE,8CAA8C;iBACzE,mCAAmC,EAAE,wDAAwD;iBAC7F,kCAAkC,EAAE,uDAAuD;iBAC3F,2BAA2B,EAAE,gDAAgD;iBAC7E,8BAA8B,EAAE,mDAAmD;;EAG/E,CAAC"}
|
|
@@ -12,6 +12,8 @@ export const PLATFORM_LAYOUT = [
|
|
|
12
12
|
'auth/security-schemes.ts': 'auth/authentication/security-schemes.ts',
|
|
13
13
|
'auth/http-boundary.ts': 'auth/authentication/http-boundary.ts',
|
|
14
14
|
'auth/offline-authenticator.ts': 'auth/authentication/offline-authenticator.ts',
|
|
15
|
+
'auth/bearer-strategy.ts': 'auth/authentication/bearer-strategy.ts',
|
|
16
|
+
'auth/actor-of-token.ts': 'auth/authentication/actor-of-token.ts',
|
|
15
17
|
'auth/development-actor-header.ts': 'auth/authentication/development-actor-header.ts',
|
|
16
18
|
'auth/development-header-authenticator.ts': 'auth/authentication/development-header-authenticator.ts',
|
|
17
19
|
'auth/authorization.ts': 'auth/authorization/authorization.ts',
|
|
@@ -39,6 +41,7 @@ export const PLATFORM_LAYOUT = [
|
|
|
39
41
|
'compose-application.ts': 'composition/compose-application.ts',
|
|
40
42
|
'platform.module.ts': 'composition/platform.module.ts',
|
|
41
43
|
'platform-test.module.ts': 'composition/platform-test.module.ts',
|
|
44
|
+
'platform-error-mapper.ts': 'composition/platform-error-mapper.ts',
|
|
42
45
|
'lay-foundations.ts': 'composition/lay-foundations.ts',
|
|
43
46
|
'platform.ts': 'composition/platform.ts',
|
|
44
47
|
'create-platform.ts': 'composition/create-platform.ts',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-layout.js","sourceRoot":"","sources":["../../src/platform-layout/platform-layout.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B;QACE,MAAM,EAAE,2BAA2B;QACnC,KAAK,EAAE;YACL,8BAA8B,EAAE,6CAA6C;YAC7E,sBAAsB,EAAE,qCAAqC;YAC7D,0BAA0B,EAAE,yCAAyC;YACrE,uBAAuB,EAAE,sCAAsC;YAC/D,+BAA+B,EAAE,8CAA8C;YAC/E,kCAAkC,EAAE,iDAAiD;YACrF,0CAA0C,EAAE,yDAAyD;YACrG,uBAAuB,EAAE,qCAAqC;YAC9D,6BAA6B,EAAE,2CAA2C;YAC1E,2BAA2B,EAAE,yCAAyC;YACtE,yBAAyB,EAAE,uCAAuC;YAClE,qBAAqB,EAAE,mCAAmC;YAC1D,0BAA0B,EAAE,wCAAwC;YACpE,uBAAuB,EAAE,qCAAqC;YAC9D,cAAc,EAAE,4BAA4B;YAC5C,eAAe,EAAE,qBAAqB;YACtC,4BAA4B,EAAE,uCAAuC;YACrE,6BAA6B,EAAE,2CAA2C;YAC1E,yBAAyB,EAAE,uCAAuC;YAClE,4BAA4B,EAAE,0CAA0C;YACxE,0CAA0C,EAAE,wDAAwD;YACpG,8BAA8B,EAAE,4CAA4C;YAC5E,2BAA2B,EAAE,kCAAkC;YAC/D,yCAAyC,EAAE,gDAAgD;SAC5F;KACF;IACD;QACE,MAAM,EAAE,wBAAwB;QAChC,KAAK,EAAE;YACL,wBAAwB,EAAE,oCAAoC;YAC9D,oBAAoB,EAAE,gCAAgC;YACtD,yBAAyB,EAAE,qCAAqC;YAChE,oBAAoB,EAAE,gCAAgC;YACtD,aAAa,EAAE,yBAAyB;YACxC,oBAAoB,EAAE,gCAAgC;YACtD,YAAY,EAAE,0BAA0B;YACxC,WAAW,EAAE,yBAAyB;YACtC,iBAAiB,EAAE,sBAAsB;YACzC,oBAAoB,EAAE,yBAAyB;YAC/C,2BAA2B,EAAE,gCAAgC;SAC9D;KACF;IACD;QACE,MAAM,EAAE,uCAAuC;QAC/C,KAAK,EAAE;YACL,qCAAqC,EAAE,0DAA0D;YACjG,uCAAuC,EAAE,4DAA4D;YACrG,0CAA0C,EAAE,+DAA+D;YAC3G,qCAAqC,EAAE,0DAA0D;YACjG,yBAAyB,EAAE,8CAA8C;YACzE,mCAAmC,EAAE,wDAAwD;YAC7F,kCAAkC,EAAE,uDAAuD;YAC3F,2BAA2B,EAAE,gDAAgD;YAC7E,8BAA8B,EAAE,mDAAmD;SACpF;KACF;CACO,CAAC"}
|
|
1
|
+
{"version":3,"file":"platform-layout.js","sourceRoot":"","sources":["../../src/platform-layout/platform-layout.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B;QACE,MAAM,EAAE,2BAA2B;QACnC,KAAK,EAAE;YACL,8BAA8B,EAAE,6CAA6C;YAC7E,sBAAsB,EAAE,qCAAqC;YAC7D,0BAA0B,EAAE,yCAAyC;YACrE,uBAAuB,EAAE,sCAAsC;YAC/D,+BAA+B,EAAE,8CAA8C;YAC/E,yBAAyB,EAAE,wCAAwC;YACnE,wBAAwB,EAAE,uCAAuC;YACjE,kCAAkC,EAAE,iDAAiD;YACrF,0CAA0C,EAAE,yDAAyD;YACrG,uBAAuB,EAAE,qCAAqC;YAC9D,6BAA6B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ED = [
|
|
|
3
3
|
{ key: 'dependencies', values: ['signature'], flag: '--dependencies signature', declaredOnly: true },
|
|
4
4
|
{ key: 'refusals', values: ['named', 'factories'], flag: '--refusals named or --refusals factories' },
|
|
5
5
|
{ key: 'valueObjects', values: ['throwing'], flag: '--value-objects throwing' },
|
|
6
|
-
{ key: 'routes', values: ['controllers'], flag: '--routes controllers' },
|
|
6
|
+
{ key: 'routes', values: ['controllers', 'nest'], flag: '--routes controllers or --routes nest' },
|
|
7
7
|
{ key: 'orm', values: ['knex', 'drizzle', 'prisma'], flag: '--orm knex, --orm drizzle or --orm prisma' },
|
|
8
8
|
{ key: 'validation', values: ['zod', 'class-validator'], flag: '--validation zod or --validation class-validator' },
|
|
9
9
|
{ key: 'http', values: ['express', 'fastify', 'nest'], flag: '--http express, --http fastify or --http nest' },
|
|
10
10
|
{
|
|
11
11
|
key: 'authn',
|
|
12
|
-
values: ['jwt', 'keycloak'],
|
|
13
|
-
flag: '--authn jwt or --authn
|
|
12
|
+
values: ['jwt', 'keycloak', 'passport'],
|
|
13
|
+
flag: '--authn jwt, --authn keycloak or --authn passport (an account is the subject of a token)',
|
|
14
14
|
},
|
|
15
15
|
{ key: 'database', values: ['postgres'], flag: '--database postgres (its tables use partial unique indexes)' },
|
|
16
16
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-refusal.js","sourceRoot":"","sources":["../../src/presets/identity-refusal.ts"],"names":[],"mappings":"AAGA,kHAAkH;AAClH,MAAM,MAAM,GAMN;IACJ,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE,YAAY,EAAE,IAAI,EAAE;IACpG,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,EAAE,IAAI,EAAE,0CAA0C,EAAE;IACrG,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC,UA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C,UAAU,CAAC,EAAE,IAAI,EAAE,6DAA6D,EAAE;CAC/G,CAAC;AAEF,0IAA0I;AAC1I,MAAM,UAAU,eAAe,CAAC,MAAc;IAC5C,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC;IAEnC,IAAI,KAAK,KAAK,UAAU,IAAI,EAAE,KAAK,UAAU,EAAE,CAAC;QAC9C,OAAO;YACL,OAAO,EAAE,+FAA+F;YACxG,GAAG,EAAE,6OAA6O;SACnP,CAAC;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CACzB,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE,CAChC,CAAC,YAAY,KAAK,IAAI,IAAI,KAAK,KAAK,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CACzF,CAAC;IAEF,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;QACL,OAAO,EAAE,iDAAiD,OAAO,CAAC,GAAG,OAAO,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI;QACzG,GAAG,EAAE,YAAY,OAAO,CAAC,IAAI,yKAAyK;KACvM,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset-files.d.ts","sourceRoot":"","sources":["../../src/presets/preset-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"preset-files.d.ts","sourceRoot":"","sources":["../../src/presets/preset-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AA6BhD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,MAAM,EAAE,GAAG,UAAU,EAAE,CAevG"}
|
|
@@ -2,7 +2,7 @@ import { listTemplates } from '../templating/index.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* The variants a template is written for, by the segments before its extension:
|
|
4
4
|
* `account.mapper.knex.ts.tpl`, `open-organisation.accepted.class-validator.per-route.ts.tpl`,
|
|
5
|
-
* `unknown-account.error.named.ts.tpl`.
|
|
5
|
+
* `unknown-account.error.named.ts.tpl`, `open-organisation.controller.nest-routes.ts.tpl`.
|
|
6
6
|
*/
|
|
7
7
|
const VARIANTS = {
|
|
8
8
|
knex: (config) => config.stack.orm === 'knex',
|
|
@@ -17,6 +17,8 @@ const VARIANTS = {
|
|
|
17
17
|
privacy: (config) => config.stack.privacy === 'on',
|
|
18
18
|
declared: (config) => config.stack.style === 'declared',
|
|
19
19
|
explicit: (config) => config.stack.style === 'explicit',
|
|
20
|
+
'kit-routes': (config) => config.stack.routes !== 'nest',
|
|
21
|
+
'nest-routes': (config) => config.stack.routes === 'nest',
|
|
20
22
|
};
|
|
21
23
|
const NAMES = Object.keys(VARIANTS).join('|');
|
|
22
24
|
/** One variant segment, followed by others or by the extension only. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset-files.js","sourceRoot":"","sources":["../../src/presets/preset-files.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAG9C;;;;GAIG;AACH,MAAM,QAAQ,GAA0D;IACtE,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,MAAM;IAC7C,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,G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ts","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AA8FxC,wBAAgB,GAAG,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,EAAE,GAAE,EAAc,GAAG,MAAM,CAkCvE"}
|
package/dist/run.js
CHANGED
|
@@ -11,6 +11,8 @@ import { docsCommand } from './commands/docs.js';
|
|
|
11
11
|
import { doctorCommand } from './commands/doctor.js';
|
|
12
12
|
import { lintCommand } from './commands/lint.js';
|
|
13
13
|
import { drizzleGenerateCommand } from './commands/drizzle-generate.js';
|
|
14
|
+
import { prismaGenerateCommand } from './commands/prisma-generate.js';
|
|
15
|
+
import { typeormGenerateCommand } from './commands/typeorm-generate.js';
|
|
14
16
|
import { errorFactoriesCommand } from './commands/error-factories.js';
|
|
15
17
|
import { generateCommand } from './commands/generate.js';
|
|
16
18
|
import { initCommand } from './commands/init.js';
|
|
@@ -68,6 +70,8 @@ const COMMANDS = {
|
|
|
68
70
|
'depcruise-config': depcruiseConfigCommand,
|
|
69
71
|
'build-aliases': buildAliasesCommand,
|
|
70
72
|
'drizzle-generate': drizzleGenerateCommand,
|
|
73
|
+
'prisma-generate': prismaGenerateCommand,
|
|
74
|
+
'typeorm-generate': typeormGenerateCommand,
|
|
71
75
|
'error-factories': errorFactoriesCommand,
|
|
72
76
|
'value-objects': valueObjectsCommand,
|
|
73
77
|
'platform-folders': platformFoldersCommand,
|
package/dist/run.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,eAAe,EA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AAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AAC/E,CAAC;AAED,SAAS,IAAI;IACX,OAAO,cAAc,OAAO;;EAE5B,aAAa,EAAE,EAAE,CAAC;AACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication-vars.d.ts","sourceRoot":"","sources":["../../src/stack/authentication-vars.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGnD,4FAA4F;AAC5F,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"authentication-vars.d.ts","sourceRoot":"","sources":["../../src/stack/authentication-vars.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGnD,4FAA4F;AAC5F,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,CAWhE"}
|
|
@@ -2,7 +2,13 @@ import { one } from './one.js';
|
|
|
2
2
|
/** Authentication happens at the HTTP boundary: without one there is nobody to identify. */
|
|
3
3
|
export function authenticationVars(config) {
|
|
4
4
|
const authn = config.stack.http === 'none' ? 'off' : config.stack.authn;
|
|
5
|
-
const tokens = authn === 'jwt' || authn === 'keycloak';
|
|
6
|
-
return {
|
|
5
|
+
const tokens = authn === 'jwt' || authn === 'keycloak' || authn === 'passport';
|
|
6
|
+
return {
|
|
7
|
+
...one(authn, ['jwt', 'keycloak', 'passport', 'none']),
|
|
8
|
+
tokens,
|
|
9
|
+
// Tokens verified against the issuer, its audience and its key set, by the kit or by a strategy of Passport.
|
|
10
|
+
jwks: authn === 'jwt' || authn === 'passport',
|
|
11
|
+
scheme: tokens ? 'bearer' : 'developmentActor',
|
|
12
|
+
};
|
|
7
13
|
}
|
|
8
14
|
//# sourceMappingURL=authentication-vars.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication-vars.js","sourceRoot":"","sources":["../../src/stack/authentication-vars.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,4FAA4F;AAC5F,MAAM,UAAU,kBAAkB,CAAC,MAAc;IAC/C,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC;IACxE,MAAM,MAAM,GAAG,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"authentication-vars.js","sourceRoot":"","sources":["../../src/stack/authentication-vars.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,4FAA4F;AAC5F,MAAM,UAAU,kBAAkB,CAAC,MAAc;IAC/C,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC;IACxE,MAAM,MAAM,GAAG,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,UAAU,IAAI,KAAK,KAAK,UAAU,CAAC;IAE/E,OAAO;QACL,GAAG,GAAG,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;QACtD,MAAM;QACN,6GAA6G;QAC7G,IAAI,EAAE,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,UAAU;QAC7C,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,kBAAkB;KAC/C,CAAC;AACJ,CAAC"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.92.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.92.0';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"briefing-of.d.ts","sourceRoot":"","sources":["../../src/worker/briefing-of.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"briefing-of.d.ts","sourceRoot":"","sources":["../../src/worker/briefing-of.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AA6BlD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CA0BrD"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { inDialect } from '../package-manager/in-dialect.js';
|
|
2
2
|
import { designLine } from './design-line.js';
|
|
3
|
-
import { REPORT_FILE } from './report-file.js';
|
|
4
3
|
import { staleNamesBlock } from './stale-names-block.js';
|
|
5
4
|
/**
|
|
6
5
|
* A need marked blocking stops the row until the conductor does it; a note waits for the merge
|
|
@@ -22,7 +21,7 @@ const REPORT_LINES = [
|
|
|
22
21
|
const BUDGET_LINES = [
|
|
23
22
|
"Budget: one row is one agent's work, two at most. The guard counts your tool calls and warns you twice,",
|
|
24
23
|
'early rather than late: about 30 turns before your limit (finish the slice under way, start no other) and',
|
|
25
|
-
'about 12 before (stop changing code, commit what verify-slice passed,
|
|
24
|
+
'about 12 before (stop changing code, commit what verify-slice passed, end with your report). Without',
|
|
26
25
|
'these notices (another host), stop after your second slice. Stopping loses nothing: your commits, the files',
|
|
27
26
|
'you leave and your report are read by `worker-scope --resume`. When your context grows long, act as at the',
|
|
28
27
|
'first notice.',
|
|
@@ -72,8 +71,7 @@ function stepLines({ context, trunk }) {
|
|
|
72
71
|
'A spec of a delivered row that a change of this branch broke is adapted in this branch, in a commit of its own.',
|
|
73
72
|
'',
|
|
74
73
|
...BUDGET_LINES,
|
|
75
|
-
|
|
76
|
-
'a need, a question or a term appears, and before ending.',
|
|
74
|
+
'Your report is your final message, in the form of the report below; never write a report file.',
|
|
77
75
|
'',
|
|
78
76
|
'Done when: every slice is committed, `npm run verify` is green in the worktree (the whole tree:',
|
|
79
77
|
`\`check --changed-since\` sees your files only), and \`npx ddd-ts-kit todo ${context}\` lists nothing but`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"briefing-of.js","sourceRoot":"","sources":["../../src/worker/briefing-of.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"briefing-of.js","sourceRoot":"","sources":["../../src/worker/briefing-of.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD;;;GAGG;AACH,MAAM,YAAY,GAAG;IACnB,4FAA4F;IAC5F,6FAA6F;IAC7F,0FAA0F;IAC1F,8FAA8F;IAC9F,+FAA+F;IAC/F,4BAA4B;CAC7B,CAAC;AAEF;;;;GAIG;AACH,MAAM,YAAY,GAAG;IACnB,yGAAyG;IACzG,2GAA2G;IAC3G,sGAAsG;IACtG,6GAA6G;IAC7G,4GAA4G;IAC5G,eAAe;CAChB,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,KAAkB;IAC3C,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,GA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QACzG,CAAC,CAAC,MAAM,CAAC;AACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resume-message.d.ts","sourceRoot":"","sources":["../../src/worker/resume-message.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resume-message.d.ts","sourceRoot":"","sources":["../../src/worker/resume-message.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,iEAAiE;AACjE,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,wDAAwD;IACxD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,cAAc,EAAE,KAAK,EAAE,YAAY,GAAG,MAAM,CAsBnF"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { namedPaths } from './named-paths.js';
|
|
2
|
-
import { REPORT_FILE } from './report-file.js';
|
|
3
2
|
/**
|
|
4
3
|
* The message that resumes a stopped agent where it stopped, written from what its worktree
|
|
5
4
|
* holds: the row to finish and the one not to start, what is committed, the files it left, the
|
|
@@ -22,7 +21,7 @@ export function resumeMessage(progress, place) {
|
|
|
22
21
|
...(progress.inSlice.length > 0 ? [`Left modified by you: ${namedPaths(progress.inSlice)}.`] : []),
|
|
23
22
|
leftText(progress),
|
|
24
23
|
].join(' '),
|
|
25
|
-
`Next: finish ${current === undefined ? 'it' : `#${current.id}`}, ${verify} until it passes, commit with the command it prints,
|
|
24
|
+
`Next: finish ${current === undefined ? 'it' : `#${current.id}`}, ${verify} until it passes, commit with the command it prints, end with your report as your final message.`,
|
|
26
25
|
].join('\n');
|
|
27
26
|
}
|
|
28
27
|
function leftText({ markers, verification }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resume-message.js","sourceRoot":"","sources":["../../src/worker/resume-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"resume-message.js","sourceRoot":"","sources":["../../src/worker/resume-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAW3C;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,QAAwB,EAAE,KAAmB;IACzE,MAAM,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC;IAC1B,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC;IACjE,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IAC5B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IAC9B,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;IAC7F,MAAM,MAAM,GAAG,iCAAiC,KAAK,CAAC,OAAO,YAAY,KAAK,CAAC,IAAI,IAAI,CAAC;IAExF,MAAM,GAAG,GACP,OAAO,KAAK,SAAS;QACnB,CAAC,CAAC,mBAAmB;QACrB,CAAC,CAAC,QAAQ,OAAO,CAAC,EAAE,GAAG,OAAO,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,KAAK,GAAG,EAAE,CAAC;IAE/E,OAAO;QACL,YAAY,GAAG,OAAO,KAAK,CAAC,OAAO,GAAG,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAmB,K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I,YAAY,CAAC,EAAE,EAAE,CAAC;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,YAAY,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC;QAElF,OAAO,GAAG,MAAM,kCAAkC,SAAS,CAAC,CAAC,CAAC,gEAAgE,CAAC,CAAC,CAAC,uBAAuB,GAAG,CAAC;IAC9J,CAAC;IAED,OAAO,GAAG,MAAM,sCAAsC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,QAAQ,GAAG,CAAC;AACtG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ddd-ts-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.92.0",
|
|
4
4
|
"description": "Bootstrap, scaffold and verify Domain-Driven Design (DDD), Clean Architecture and hexagonal TypeScript backends on Node.js: project and code generators, architecture checks, OpenAPI and AsyncAPI documents, for developers and AI coding agents (Claude Code, Codex, GitHub Copilot).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ddd",
|
|
@@ -52,8 +52,10 @@
|
|
|
52
52
|
"clean:packages": "node dist/bin.js check --clean-only ../kernel/src ../validation/src ../http/src ../tracing/src ../di/src ../events/src ../testing/src ../s3/src ../drizzle/src ../knex/src ../prisma/src ../typeorm/src ../aspects/src ../rabbitmq/src ../auth/src ../audit/src ../redis/src ../scheduling/src ../pino/src ../winston/src ../sentry/src ../kafka/src ../nats/src ../eslint-plugin/src"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@ddd-ts-kit/audit": "^0.
|
|
56
|
-
"@ddd-ts-kit/events": "^0.
|
|
57
|
-
"@ddd-ts-kit/kernel": "^0.
|
|
55
|
+
"@ddd-ts-kit/audit": "^0.92.0",
|
|
56
|
+
"@ddd-ts-kit/events": "^0.92.0",
|
|
57
|
+
"@ddd-ts-kit/kernel": "^0.92.0",
|
|
58
|
+
"@types/pg": "^8.23.1",
|
|
59
|
+
"pg": "^8.23.1"
|
|
58
60
|
}
|
|
59
61
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
{{access.permissionsImport}}
|
|
4
4
|
import { {{name.pascal}}Command } from '{{alias.context}}/application/commands/{{name.kebab}}/{{name.kebab}}.command{{alias.ext}}';
|
|
5
5
|
import { {{name.pascal}}Handler } from '{{alias.context}}/application/commands/{{name.kebab}}/{{name.kebab}}.handler{{alias.ext}}';
|
|
6
|
-
@@
|
|
6
|
+
@@handlers
|
|
7
7
|
{{#if command.hasAggregate}}
|
|
8
8
|
platform.commands.register({{name.pascal}}Command, new {{name.pascal}}Handler({{aggregate.camel}}Repository, platform.ids, platform.clock{{#if access.policy}}, platform.access{{/if}}), { context: '{{context.kebab}}' });
|
|
9
9
|
{{/if}}
|
|
@@ -23,23 +23,54 @@ export interface {{context.pascal}}Wiring {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export function {{context.camel}}Module(platform: Platform): {{context.pascal}}Wiring {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
registerHandlers(platform);
|
|
27
|
+
registerReactions(platform);
|
|
28
|
+
registerJobs(platform);
|
|
28
29
|
|
|
29
30
|
return {
|
|
30
31
|
name: '{{context.kebab}}',
|
|
31
|
-
useCases:
|
|
32
|
-
// ddd-ts-kit:authorization
|
|
33
|
-
// /ddd-ts-kit:authorization
|
|
34
|
-
],
|
|
32
|
+
useCases: declaredUseCases(),
|
|
35
33
|
{{#if http.any}}
|
|
36
|
-
routes:
|
|
37
|
-
// ddd-ts-kit:routes
|
|
38
|
-
// /ddd-ts-kit:routes
|
|
39
|
-
],
|
|
34
|
+
routes: routesOf(platform),
|
|
40
35
|
{{/if}}
|
|
41
36
|
{{#if routes.nest}}
|
|
42
37
|
controllers: {{context.camel}}Controllers,
|
|
43
38
|
{{/if}}
|
|
44
39
|
};
|
|
45
40
|
}
|
|
41
|
+
|
|
42
|
+
/** The command and query handlers of the context, with the repositories and readers they are given. */
|
|
43
|
+
function registerHandlers(platform: Platform): void {
|
|
44
|
+
// ddd-ts-kit:handlers
|
|
45
|
+
// /ddd-ts-kit:handlers
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** What the context does when an event happens: its own events and those of the other contexts. */
|
|
49
|
+
function registerReactions(platform: Platform): void {
|
|
50
|
+
// ddd-ts-kit:reactions
|
|
51
|
+
// /ddd-ts-kit:reactions
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** The jobs of the context, scheduled and in the background. */
|
|
55
|
+
function registerJobs(platform: Platform): void {
|
|
56
|
+
// ddd-ts-kit:jobs
|
|
57
|
+
// /ddd-ts-kit:jobs
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** What each use case requires, or that it is public. */
|
|
61
|
+
function declaredUseCases(): UseCaseDeclaration[] {
|
|
62
|
+
return [
|
|
63
|
+
// ddd-ts-kit:authorization
|
|
64
|
+
// /ddd-ts-kit:authorization
|
|
65
|
+
];
|
|
66
|
+
}
|
|
67
|
+
{{#if http.any}}
|
|
68
|
+
|
|
69
|
+
/** The routes the context answers, over the buses of the platform. */
|
|
70
|
+
function routesOf(platform: Platform): Route[] {
|
|
71
|
+
return [
|
|
72
|
+
// ddd-ts-kit:routes
|
|
73
|
+
// /ddd-ts-kit:routes
|
|
74
|
+
];
|
|
75
|
+
}
|
|
76
|
+
{{/if}}
|
|
@@ -8,7 +8,7 @@ import { on, subscribeAll } from '@ddd-ts-kit/events';
|
|
|
8
8
|
import { dataSubjectErasedV1 } from '@ddd-ts-kit/kernel';
|
|
9
9
|
import { {{personal.names.adapter}} } from '{{alias.context}}/infrastructure/persistence/{{personal.names.adapterKebab}}.repository{{alias.ext}}';
|
|
10
10
|
import { DataSubjectErasedIntegrationHandler } from '{{alias.context}}/application/integration/handlers/data-subject-erased.integration-handler{{alias.ext}}';
|
|
11
|
-
@@
|
|
11
|
+
@@reactions
|
|
12
12
|
const dataSubjectErasedIntegrationHandler = new DataSubjectErasedIntegrationHandler(platform.adapter(new {{personal.names.adapter}}(platform.persistence.database{{#if tenant.scoped}}, platform.scope{{/if}}), { kind: 'repository', context: '{{context.kebab}}', token: '{{personal.names.port}}' }));
|
|
13
13
|
|
|
14
14
|
{{#if consumer.transactional}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@@imports
|
|
2
2
|
import { {{handler.pascal}}EventHandler } from '{{alias.context}}/application/event-handlers/{{handler.kebab}}.event-handler{{alias.ext}}';
|
|
3
3
|
import { {{event.pascal}} } from '{{alias.context}}/domain/events/{{event.kebab}}.event{{alias.ext}}';
|
|
4
|
-
@@
|
|
4
|
+
@@reactions
|
|
5
5
|
const {{handler.camel}}EventHandler = platform.adapter(new {{handler.pascal}}EventHandler(), { kind: 'domain-event-handler', context: '{{context.kebab}}' });
|
|
6
6
|
|
|
7
7
|
{{#if handler.afterCommit}}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
{{access.permissionsImport}}
|
|
4
4
|
import { {{name.pascal}}Command } from '{{alias.context}}/application/commands/{{name.kebab}}/{{name.kebab}}.command{{alias.ext}}';
|
|
5
5
|
import { {{name.pascal}}Handler } from '{{alias.context}}/application/commands/{{name.kebab}}/{{name.kebab}}.handler{{alias.ext}}';
|
|
6
|
-
@@
|
|
6
|
+
@@handlers
|
|
7
7
|
platform.commands.register({{name.pascal}}Command, new {{name.pascal}}Handler(platform.files.staging), { context: '{{context.kebab}}' });
|
|
8
8
|
@@authorization
|
|
9
9
|
{{access.manualDeclaration}}
|
|
@@ -77,7 +77,7 @@ KAFKA_BROKERS=localhost:9092
|
|
|
77
77
|
NATS_PORT=4222
|
|
78
78
|
NATS_URL=nats://localhost:4222
|
|
79
79
|
{{/if}}
|
|
80
|
-
{{#if authn.
|
|
80
|
+
{{#if authn.jwks}}
|
|
81
81
|
|
|
82
82
|
# Authentication: the issuer of the tokens, the audience this service answers to, the keys of the issuer.
|
|
83
83
|
AUTH_ISSUER=https://id.example.com/realms/app
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { Authenticator } from '@ddd-ts-kit/auth';
|
|
2
|
+
import { passportAuthenticator } from '@ddd-ts-kit/auth/passport';
|
|
3
|
+
import type { HttpHeaders } from '@ddd-ts-kit/testing/e2e';
|
|
4
|
+
import { SignJWT, exportSPKI, generateKeyPair, type CryptoKey } from 'jose';
|
|
5
|
+
import { actorOfToken } from '{{alias.platform}}/auth/authentication/actor-of-token{{alias.ext}}';
|
|
6
|
+
import { bearerStrategy } from '{{alias.platform}}/auth/authentication/bearer-strategy{{alias.ext}}';
|
|
7
|
+
import { authEnvironment } from '{{alias.test}}/e2e/support/auth-environment{{alias.ext}}';
|
|
8
|
+
|
|
9
|
+
const issuer = authEnvironment.AUTH_ISSUER;
|
|
10
|
+
const audience = authEnvironment.AUTH_AUDIENCE;
|
|
11
|
+
|
|
12
|
+
/** Who a test calls as: the subject, the roles and the tenant its token carries. */
|
|
13
|
+
export interface TestActor {
|
|
14
|
+
readonly id: string;
|
|
15
|
+
readonly roles?: readonly string[];
|
|
16
|
+
readonly tenantId?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface Credentials {
|
|
20
|
+
/** The strategy of the platform, on a key pair made for this run: tokens are signed here, verified by the application. */
|
|
21
|
+
readonly authenticator: Authenticator;
|
|
22
|
+
|
|
23
|
+
headersOf(actor: TestActor): Promise<HttpHeaders>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export async function createCredentials(): Promise<Credentials> {
|
|
27
|
+
const { publicKey, privateKey } = await generateKeyPair('RS256', { extractable: true });
|
|
28
|
+
const strategy = bearerStrategy({ issuer, audience, publicKey: await exportSPKI(publicKey) });
|
|
29
|
+
|
|
30
|
+
return {
|
|
31
|
+
authenticator: passportAuthenticator(strategy, { actorOf: actorOfToken }),
|
|
32
|
+
headersOf: async (actor) => ({ authorization: 'Bearer ' + (await tokenOf(actor, privateKey)) }),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function tokenOf(actor: TestActor, key: CryptoKey): Promise<string> {
|
|
37
|
+
const claims = { roles: actor.roles ?? [], ...(actor.tenantId === undefined ? {} : { tenant_id: actor.tenantId }) };
|
|
38
|
+
|
|
39
|
+
return new SignJWT(claims)
|
|
40
|
+
.setProtectedHeader({ alg: 'RS256' })
|
|
41
|
+
.setSubject(actor.id)
|
|
42
|
+
.setIssuer(issuer)
|
|
43
|
+
.setAudience(audience)
|
|
44
|
+
.setIssuedAt()
|
|
45
|
+
.setExpirationTime('5m')
|
|
46
|
+
.sign(key);
|
|
47
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { InvalidCredentialError, actorOfClaims } from '@ddd-ts-kit/auth';
|
|
2
|
+
import type { Actor } from '@ddd-ts-kit/kernel';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The actor the payload of a verified token stands for, as the kit reads claims: `sub`, the roles
|
|
6
|
+
* (`realm_access.roles`, `roles`, then `scope`), the tenant (`tenant_id`) and the profile. Change it
|
|
7
|
+
* here when the tokens of the issuer say these elsewhere.
|
|
8
|
+
*/
|
|
9
|
+
export function actorOfToken(payload: unknown): Actor {
|
|
10
|
+
if (typeof payload !== 'object' || payload === null || Array.isArray(payload)) {
|
|
11
|
+
throw new InvalidCredentialError('NO_CLAIMS');
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return actorOfClaims({ ...payload });
|
|
15
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { passportJwtSecret } from 'jwks-rsa';
|
|
2
|
+
import { ExtractJwt, Strategy } from 'passport-jwt';
|
|
3
|
+
|
|
4
|
+
/** Who issues the tokens and whom they are for, with where the keys that sign them are. */
|
|
5
|
+
export type BearerTokens = {
|
|
6
|
+
readonly issuer: string;
|
|
7
|
+
readonly audience: string;
|
|
8
|
+
} & ({ readonly jwksUri: string } | { readonly publicKey: string });
|
|
9
|
+
|
|
10
|
+
const ALGORITHMS = ['RS256', 'PS256', 'ES256'] as const;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The strategy of Passport that verifies a bearer token: its signature, against the key set the
|
|
14
|
+
* issuer publishes (or one public key, as the end-to-end tests sign with), its issuer, its
|
|
15
|
+
* audience, its expiry. It hands the payload on as the user; `actorOfToken` reads it.
|
|
16
|
+
*/
|
|
17
|
+
export function bearerStrategy(tokens: BearerTokens): Strategy {
|
|
18
|
+
const verified = { jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(), issuer: tokens.issuer, audience: tokens.audience, algorithms: [...ALGORITHMS] };
|
|
19
|
+
const handOn = (payload: unknown, done: (error: unknown, user?: unknown) => void): void => done(null, payload);
|
|
20
|
+
|
|
21
|
+
if ('publicKey' in tokens) {
|
|
22
|
+
return new Strategy({ ...verified, secretOrKey: tokens.publicKey }, handOn);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return new Strategy(
|
|
26
|
+
{ ...verified, secretOrKeyProvider: passportJwtSecret({ jwksUri: tokens.jwksUri, cache: true, rateLimit: true }) },
|
|
27
|
+
handOn,
|
|
28
|
+
);
|
|
29
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Authenticator } from '@ddd-ts-kit/auth';
|
|
2
|
+
import { passportAuthenticator } from '@ddd-ts-kit/auth/passport';
|
|
3
|
+
import { actorOfToken } from '{{alias.platform}}/auth/authentication/actor-of-token{{alias.ext}}';
|
|
4
|
+
import { bearerStrategy } from '{{alias.platform}}/auth/authentication/bearer-strategy{{alias.ext}}';
|
|
5
|
+
import type { AppConfig } from '{{alias.platform}}/config/app-config{{alias.ext}}';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Verifies the bearer token with the strategy of Passport of the platform, against the keys the
|
|
9
|
+
* issuer publishes; the guards of the routes and the permissions of the use cases then decide.
|
|
10
|
+
*/
|
|
11
|
+
export function createAuthenticator(config: AppConfig): Authenticator {
|
|
12
|
+
return passportAuthenticator(bearerStrategy(config.auth), { actorOf: actorOfToken });
|
|
13
|
+
}
|