@elsikora/nestjs-crud-automator 2.10.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +130 -27
- package/dist/cjs/class/api/authorization/bootstrap-validation.service.class.d.ts +9 -2
- package/dist/cjs/class/api/authorization/bootstrap-validation.service.class.js +32 -5
- package/dist/cjs/class/api/authorization/bootstrap-validation.service.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/engine.class.js +1 -0
- package/dist/cjs/class/api/authorization/engine.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/guard.class.js +1 -0
- package/dist/cjs/class/api/authorization/guard.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/hook/permission/cache.class.d.ts +2 -0
- package/dist/cjs/class/api/authorization/hook/permission/cache.class.js +5 -1
- package/dist/cjs/class/api/authorization/hook/permission/cache.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/hook/permission/resolver.class.js +1 -1
- package/dist/cjs/class/api/authorization/hook/permission/resolver.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/iam/attachment/cache.class.d.ts +2 -0
- package/dist/cjs/class/api/authorization/iam/attachment/cache.class.js +5 -1
- package/dist/cjs/class/api/authorization/iam/attachment/cache.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/iam/attachment/resolver.class.js +1 -1
- package/dist/cjs/class/api/authorization/iam/attachment/resolver.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/iam/document/cache.class.d.ts +2 -0
- package/dist/cjs/class/api/authorization/iam/document/cache.class.js +5 -1
- package/dist/cjs/class/api/authorization/iam/document/cache.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/iam/document/resolver.class.js +2 -2
- package/dist/cjs/class/api/authorization/iam/document/resolver.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/iam/document/validator.class.js +1 -0
- package/dist/cjs/class/api/authorization/iam/document/validator.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/iam/engine.class.js +2 -1
- package/dist/cjs/class/api/authorization/iam/engine.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/policy/base.class.js +1 -0
- package/dist/cjs/class/api/authorization/policy/base.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/policy/discovery-service.class.d.ts +1 -1
- package/dist/cjs/class/api/authorization/policy/discovery-service.class.js +2 -2
- package/dist/cjs/class/api/authorization/policy/discovery-service.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/policy/executor.class.js +1 -1
- package/dist/cjs/class/api/authorization/policy/executor.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/policy/registry.class.js +2 -2
- package/dist/cjs/class/api/authorization/policy/registry.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/resolver/cache.class.d.ts +11 -0
- package/dist/cjs/class/api/authorization/resolver/cache.class.js +89 -0
- package/dist/cjs/class/api/authorization/resolver/cache.class.js.map +1 -0
- package/dist/cjs/class/api/authorization/resolver/index.d.ts +1 -0
- package/dist/cjs/class/api/authorization/runtime.class.d.ts +1 -1
- package/dist/cjs/class/api/authorization/runtime.class.js +11 -10
- package/dist/cjs/class/api/authorization/runtime.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/simulator.class.d.ts +1 -1
- package/dist/cjs/class/api/authorization/simulator.class.js +1 -1
- package/dist/cjs/class/api/authorization/simulator.class.js.map +1 -1
- package/dist/cjs/class/api/controller/get-list/index.d.ts +1 -0
- package/dist/cjs/class/api/controller/get-list/query/index.d.ts +2 -0
- package/dist/cjs/class/api/controller/get-list/query/plan-compiler.class.d.ts +27 -0
- package/dist/cjs/class/api/controller/get-list/query/plan-compiler.class.js +355 -0
- package/dist/cjs/class/api/controller/get-list/query/plan-compiler.class.js.map +1 -0
- package/dist/cjs/class/api/controller/get-list/query/runtime.class.d.ts +11 -0
- package/dist/cjs/class/api/controller/get-list/query/runtime.class.js +266 -0
- package/dist/cjs/class/api/controller/get-list/query/runtime.class.js.map +1 -0
- package/dist/cjs/class/api/controller/index.d.ts +1 -0
- package/dist/cjs/class/api/function/context-storage.class.d.ts +7 -1
- package/dist/cjs/class/api/function/context-storage.class.js +72 -7
- package/dist/cjs/class/api/function/context-storage.class.js.map +1 -1
- package/dist/cjs/class/api/function/custom-runtime.class.d.ts +1 -0
- package/dist/cjs/class/api/function/custom-runtime.class.js +13 -2
- package/dist/cjs/class/api/function/custom-runtime.class.js.map +1 -1
- package/dist/cjs/class/api/function/index.d.ts +2 -1
- package/dist/cjs/class/api/function/step-runtime.class.d.ts +2 -0
- package/dist/cjs/class/api/function/step-runtime.class.js +30 -0
- package/dist/cjs/class/api/function/step-runtime.class.js.map +1 -1
- package/dist/cjs/class/api/function/transaction/exception/commit-unknown-outcome.class.d.ts +23 -0
- package/dist/cjs/class/api/function/transaction/exception/commit-unknown-outcome.class.js +69 -0
- package/dist/cjs/class/api/function/transaction/exception/commit-unknown-outcome.class.js.map +1 -0
- package/dist/cjs/class/api/function/transaction/exception/index.d.ts +3 -0
- package/dist/cjs/class/api/function/transaction/exception/post-commit.class.d.ts +20 -0
- package/dist/cjs/class/api/function/transaction/exception/post-commit.class.js +64 -0
- package/dist/cjs/class/api/function/transaction/exception/post-commit.class.js.map +1 -0
- package/dist/cjs/class/api/function/transaction/exception/rollback.class.d.ts +26 -0
- package/dist/cjs/class/api/function/transaction/exception/rollback.class.js +74 -0
- package/dist/cjs/class/api/function/transaction/exception/rollback.class.js.map +1 -0
- package/dist/cjs/class/api/function/transaction/index.d.ts +5 -0
- package/dist/cjs/class/api/function/transaction/lifecycle.class.d.ts +13 -0
- package/dist/cjs/class/api/function/transaction/lifecycle.class.js +228 -0
- package/dist/cjs/class/api/function/transaction/lifecycle.class.js.map +1 -0
- package/dist/cjs/class/api/function/transaction/registry.class.d.ts +23 -0
- package/dist/cjs/class/api/function/transaction/registry.class.js +119 -0
- package/dist/cjs/class/api/function/transaction/registry.class.js.map +1 -0
- package/dist/cjs/class/api/function/transaction/runtime.class.d.ts +11 -0
- package/dist/cjs/class/api/function/transaction/runtime.class.js +116 -0
- package/dist/cjs/class/api/function/transaction/runtime.class.js.map +1 -0
- package/dist/cjs/class/api/function/{transaction-scope.class.d.ts → transaction/scope.class.d.ts} +3 -1
- package/dist/cjs/class/api/function/transaction/scope.class.js +78 -0
- package/dist/cjs/class/api/function/transaction/scope.class.js.map +1 -0
- package/dist/cjs/class/api/index.d.ts +1 -1
- package/dist/cjs/class/api/route-runtime.class.d.ts +1 -0
- package/dist/cjs/class/api/route-runtime.class.js +115 -56
- package/dist/cjs/class/api/route-runtime.class.js.map +1 -1
- package/dist/cjs/class/api/subscriber/discovery-service.class.js +3 -3
- package/dist/cjs/class/api/subscriber/discovery-service.class.js.map +1 -1
- package/dist/cjs/class/api/subscriber/executor.class.js +14 -6
- package/dist/cjs/class/api/subscriber/executor.class.js.map +1 -1
- package/dist/cjs/class/api/subscriber/index.d.ts +7 -7
- package/dist/cjs/class/api/subscriber/registry.class.d.ts +3 -0
- package/dist/cjs/class/api/subscriber/registry.class.js +12 -1
- package/dist/cjs/class/api/subscriber/registry.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/exception/details/foreign-key-violation.class.js +9 -1
- package/dist/cjs/class/utility/dto/exception/details/foreign-key-violation.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/exception/details/unique-violation.class.js +9 -1
- package/dist/cjs/class/utility/dto/exception/details/unique-violation.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/property/factory/number.class.js +9 -1
- package/dist/cjs/class/utility/dto/property/factory/number.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/property/factory/relation.class.js +9 -1
- package/dist/cjs/class/utility/dto/property/factory/relation.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/body.class.js +9 -1
- package/dist/cjs/class/utility/dto/strategy/body.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/query.class.js +9 -1
- package/dist/cjs/class/utility/dto/strategy/query.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/request.class.js +9 -1
- package/dist/cjs/class/utility/dto/strategy/request.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/response.class.js +9 -1
- package/dist/cjs/class/utility/dto/strategy/response.class.js.map +1 -1
- package/dist/cjs/constant/decorator/api/controller.constant.d.ts +1 -0
- package/dist/cjs/constant/decorator/api/controller.constant.js +2 -0
- package/dist/cjs/constant/decorator/api/controller.constant.js.map +1 -1
- package/dist/cjs/constant/decorator/api/function.constant.js +1 -0
- package/dist/cjs/constant/decorator/api/function.constant.js.map +1 -1
- package/dist/cjs/constant/factory-dto-get-list-query.constant.d.ts +1 -0
- package/dist/cjs/constant/factory-dto-get-list-query.constant.js +2 -0
- package/dist/cjs/constant/factory-dto-get-list-query.constant.js.map +1 -1
- package/dist/cjs/constant/filter/index.d.ts +1 -0
- package/dist/cjs/constant/filter/operator-registry.constant.d.ts +9 -0
- package/dist/cjs/constant/filter/operator-registry.constant.js +169 -0
- package/dist/cjs/constant/filter/operator-registry.constant.js.map +1 -0
- package/dist/cjs/constant/index.d.ts +0 -1
- package/dist/cjs/constant/swagger/index.d.ts +1 -0
- package/dist/cjs/constant/swagger/metadata.constant.d.ts +4 -0
- package/dist/cjs/constant/swagger/metadata.constant.js +10 -0
- package/dist/cjs/constant/swagger/metadata.constant.js.map +1 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/bigint-string/constant.d.ts +4 -3
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/bigint-string/constant.js.map +1 -1
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/bigint-string/sign/default.constant.d.ts +2 -2
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/bigint-string/sign/default.constant.js +3 -1
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/bigint-string/sign/default.constant.js.map +1 -1
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/bigint-string/sign/properties.constant.d.ts +3 -2
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/bigint-string/sign/properties.constant.js +11 -9
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/bigint-string/sign/properties.constant.js.map +1 -1
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/constant.d.ts +4 -3
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/constant.js +4 -2
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/constant.js.map +1 -1
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/{customizer/map.constant.d.ts → customizer-map.constant.d.ts} +1 -1
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/customizer-map.constant.js +37 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/customizer-map.constant.js.map +1 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/index.d.ts +1 -0
- package/dist/cjs/constant/utility/api/index.d.ts +1 -1
- package/dist/cjs/constant/utility/dto/constant.d.ts +2 -1
- package/dist/cjs/constant/utility/dto/constant.js +12 -2
- package/dist/cjs/constant/utility/dto/constant.js.map +1 -1
- package/dist/cjs/constant/utility/dto/index.d.ts +1 -0
- package/dist/cjs/constant/utility/dto/manual-property-metadata.constant.d.ts +3 -0
- package/dist/cjs/constant/utility/dto/manual-property-metadata.constant.js +9 -0
- package/dist/cjs/constant/utility/dto/manual-property-metadata.constant.js.map +1 -0
- package/dist/cjs/constant/utility/index.d.ts +1 -1
- package/dist/cjs/decorator/api/function/create.decorator.js +16 -4
- package/dist/cjs/decorator/api/function/create.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/custom.decorator.js +12 -3
- package/dist/cjs/decorator/api/function/custom.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/decorator.js +16 -8
- package/dist/cjs/decorator/api/function/decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/delete.decorator.js +17 -5
- package/dist/cjs/decorator/api/function/delete.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get/decorator.js +22 -16
- package/dist/cjs/decorator/api/function/get/decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get/list.decorator.js +16 -4
- package/dist/cjs/decorator/api/function/get/list.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get/many.decorator.js +16 -4
- package/dist/cjs/decorator/api/function/get/many.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/step.decorator.js +12 -3
- package/dist/cjs/decorator/api/function/step.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/update.decorator.js +49 -30
- package/dist/cjs/decorator/api/function/update.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/index.d.ts +2 -2
- package/dist/cjs/decorator/api/method.decorator.js +12 -4
- package/dist/cjs/decorator/api/method.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/boolean.decorator.js +13 -5
- package/dist/cjs/decorator/api/property/boolean.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/date.decorator.js +13 -5
- package/dist/cjs/decorator/api/property/date.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/enum.decorator.js +4 -4
- package/dist/cjs/decorator/api/property/enum.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/number.decorator.js +13 -5
- package/dist/cjs/decorator/api/property/number.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/object.decorator.js +7 -7
- package/dist/cjs/decorator/api/property/object.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/string.decorator.js +13 -5
- package/dist/cjs/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/uuid.decorator.js +13 -5
- package/dist/cjs/decorator/api/property/uuid.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/route-custom.decorator.js +10 -2
- package/dist/cjs/decorator/api/route-custom.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/service/decorator.js +12 -2
- package/dist/cjs/decorator/api/service/decorator.js.map +1 -1
- package/dist/cjs/decorator/api/service/index.d.ts +2 -2
- package/dist/cjs/decorator/api/subscriber/index.d.ts +2 -2
- package/dist/cjs/enum/class/authorization/cache-mode.enum.d.ts +4 -0
- package/dist/cjs/enum/class/authorization/cache-mode.enum.js +8 -0
- package/dist/cjs/enum/class/authorization/cache-mode.enum.js.map +1 -0
- package/dist/cjs/enum/class/authorization/index.d.ts +1 -0
- package/dist/cjs/enum/decorator/api/controller/get-list/index.d.ts +1 -0
- package/dist/cjs/enum/decorator/api/controller/get-list/query/filter/index.d.ts +1 -0
- package/dist/cjs/enum/decorator/api/controller/get-list/query/filter/missing-behavior.enum.d.ts +5 -0
- package/dist/cjs/enum/decorator/api/controller/get-list/query/filter/missing-behavior.enum.js +9 -0
- package/dist/cjs/enum/decorator/api/controller/get-list/query/filter/missing-behavior.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/controller/get-list/query/index.d.ts +2 -0
- package/dist/cjs/enum/decorator/api/controller/get-list/query/unlisted-fields.enum.d.ts +4 -0
- package/dist/cjs/enum/decorator/api/controller/get-list/query/unlisted-fields.enum.js +8 -0
- package/dist/cjs/enum/decorator/api/controller/get-list/query/unlisted-fields.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/controller/index.d.ts +1 -0
- package/dist/cjs/enum/decorator/api/function/context-storage-kind.enum.d.ts +5 -0
- package/dist/cjs/enum/decorator/api/function/context-storage-kind.enum.js +9 -0
- package/dist/cjs/enum/decorator/api/function/context-storage-kind.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/function/index.d.ts +2 -1
- package/dist/cjs/enum/decorator/api/function/transaction/event-status.enum.d.ts +4 -0
- package/dist/cjs/enum/decorator/api/function/transaction/event-status.enum.js +8 -0
- package/dist/cjs/enum/decorator/api/function/transaction/event-status.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/function/transaction/failure-stage.enum.d.ts +10 -0
- package/dist/cjs/enum/decorator/api/function/transaction/failure-stage.enum.js +14 -0
- package/dist/cjs/enum/decorator/api/function/transaction/failure-stage.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/function/transaction/index.d.ts +6 -0
- package/dist/cjs/enum/decorator/api/function/{transaction-mode.enum.js → transaction/mode.enum.js} +1 -1
- package/dist/cjs/enum/decorator/api/function/transaction/mode.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/function/transaction/outcome.enum.d.ts +5 -0
- package/dist/cjs/enum/decorator/api/function/transaction/outcome.enum.js +9 -0
- package/dist/cjs/enum/decorator/api/function/transaction/outcome.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/function/transaction/owner-kind.enum.d.ts +5 -0
- package/dist/cjs/enum/decorator/api/function/transaction/owner-kind.enum.js +9 -0
- package/dist/cjs/enum/decorator/api/function/transaction/owner-kind.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/function/transaction/trace-type.enum.d.ts +3 -0
- package/dist/cjs/enum/decorator/api/function/transaction/trace-type.enum.js +7 -0
- package/dist/cjs/enum/decorator/api/function/transaction/trace-type.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/index.d.ts +4 -4
- package/dist/cjs/enum/filter/index.d.ts +1 -0
- package/dist/cjs/enum/filter/operand.enum.d.ts +6 -0
- package/dist/cjs/enum/filter/operand.enum.js +10 -0
- package/dist/cjs/enum/filter/operand.enum.js.map +1 -0
- package/dist/cjs/enum/index.d.ts +1 -1
- package/dist/cjs/enum/utility/get-default-string-format-properties-bigint-string-sign.enum.d.ts +5 -0
- package/dist/cjs/enum/utility/get-default-string-format-properties-bigint-string-sign.enum.js +9 -0
- package/dist/cjs/enum/utility/get-default-string-format-properties-bigint-string-sign.enum.js.map +1 -0
- package/dist/cjs/enum/utility/index.d.ts +2 -1
- package/dist/cjs/enum/utility/{dto/manual/property-metadata/decorator.enum.js → manual-dto-property-metadata-decorator.enum.js} +1 -1
- package/dist/cjs/enum/utility/manual-dto-property-metadata-decorator.enum.js.map +1 -0
- package/dist/cjs/enum/validator/index.d.ts +0 -1
- package/dist/cjs/factory/api-controller.factory.js +40 -13
- package/dist/cjs/factory/api-controller.factory.js.map +1 -1
- package/dist/cjs/index.js +75 -20
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interface/class/api/authorization/cache/index.d.ts +2 -0
- package/dist/cjs/interface/class/api/authorization/cache/memory-options.interface.d.ts +6 -0
- package/dist/cjs/interface/class/api/authorization/cache/source-first-options.interface.d.ts +4 -0
- package/dist/cjs/interface/class/api/authorization/decision/interface.d.ts +2 -2
- package/dist/cjs/interface/class/api/authorization/decision/trace.interface.d.ts +2 -2
- package/dist/cjs/interface/class/api/authorization/index.d.ts +1 -0
- package/dist/cjs/interface/class/api/authorization/module-options/async.interface.d.ts +2 -2
- package/dist/cjs/interface/class/api/authorization/module-options/interface.d.ts +2 -0
- package/dist/cjs/interface/class/api/authorization/policy/attachment/source.interface.d.ts +1 -1
- package/dist/cjs/interface/class/api/authorization/policy/subscriber/context/interface.d.ts +1 -1
- package/dist/cjs/interface/class/api/controller/get-list/index.d.ts +1 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/ast/index.d.ts +2 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/ast/interface.d.ts +4 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/ast/node.interface.d.ts +7 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/index.d.ts +5 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/operator.interface.d.ts +8 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/plan/condition.interface.d.ts +6 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/plan/filter/field.interface.d.ts +14 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/plan/filter/index.d.ts +2 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/plan/filter/interface.d.ts +7 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/plan/index.d.ts +4 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/plan/interface.d.ts +9 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/plan/order/field.interface.d.ts +4 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/plan/order/index.d.ts +2 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/plan/order/interface.d.ts +7 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/raw-group.interface.d.ts +5 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/runtime-result.interface.d.ts +10 -0
- package/dist/cjs/interface/class/api/controller/index.d.ts +1 -0
- package/dist/cjs/interface/class/api/function/context/interface.d.ts +1 -1
- package/dist/cjs/interface/class/api/function/index.d.ts +1 -0
- package/dist/cjs/interface/class/api/function/transaction/event/failed.interface.d.ts +11 -0
- package/dist/cjs/interface/class/api/function/transaction/event/index.d.ts +2 -0
- package/dist/cjs/interface/class/api/function/transaction/event/succeeded.interface.d.ts +10 -0
- package/dist/cjs/interface/class/api/function/transaction/failure.interface.d.ts +6 -0
- package/dist/cjs/interface/class/api/function/transaction/index.d.ts +4 -0
- package/dist/cjs/interface/class/api/function/transaction/interface.d.ts +5 -0
- package/dist/cjs/interface/class/api/function/transaction/owner/function.interface.d.ts +9 -0
- package/dist/cjs/interface/class/api/function/transaction/owner/index.d.ts +3 -0
- package/dist/cjs/interface/class/api/function/transaction/owner/route.interface.d.ts +7 -0
- package/dist/cjs/interface/class/api/function/transaction/owner/scope.interface.d.ts +5 -0
- package/dist/cjs/interface/class/api/route/runtime/generated/execution-options.interface.d.ts +1 -1
- package/dist/cjs/interface/class/api/subscriber/function/execution/context/{data/interface.d.ts → data.interface.d.ts} +2 -2
- package/dist/cjs/interface/class/api/subscriber/function/execution/context/index.d.ts +2 -1
- package/dist/cjs/interface/class/api/subscriber/function/execution/context/update-data.interface.d.ts +12 -0
- package/dist/cjs/interface/class/api/subscriber/function/index.d.ts +1 -0
- package/dist/cjs/interface/class/api/subscriber/function/interface.d.ts +12 -2
- package/dist/cjs/interface/class/api/subscriber/function/transaction/context/data.interface.d.ts +7 -0
- package/dist/cjs/interface/class/api/subscriber/function/transaction/context/index.d.ts +2 -0
- package/dist/cjs/interface/class/api/subscriber/function/transaction/context/interface.d.ts +4 -0
- package/dist/cjs/interface/class/api/subscriber/index.d.ts +4 -4
- package/dist/cjs/interface/class/api/subscriber/route/execution/context/data/extended.interface.d.ts +1 -1
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/index.d.ts +1 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/interface.d.ts +2 -1
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/relations/request/load.interface.d.ts +2 -1
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/relations/response/load.interface.d.ts +1 -1
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/index.d.ts +1 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/interface.d.ts +3 -2
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/query/filter/index.d.ts +1 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/query/filter/interface.d.ts +6 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/query/index.d.ts +3 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/query/interface.d.ts +7 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/query/order/index.d.ts +1 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/query/order/interface.d.ts +6 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/response/interface.d.ts +1 -1
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/transaction.interface.d.ts +4 -0
- package/dist/cjs/interface/decorator/api/controller/properties.interface.d.ts +1 -1
- package/dist/cjs/interface/decorator/api/function/update-executor-properties.interface.d.ts +2 -2
- package/dist/cjs/interface/decorator/api/index.d.ts +3 -3
- package/dist/cjs/interface/decorator/api/method-properties.interface.d.ts +5 -0
- package/dist/cjs/interface/decorator/api/route/custom-properties.interface.d.ts +1 -1
- package/dist/cjs/interface/decorator/api/route/metadata/interface.d.ts +2 -2
- package/dist/cjs/interface/decorator/api/route/response/properties.interface.d.ts +1 -1
- package/dist/cjs/interface/decorator/api/route/security/authentication-properties.interface.d.ts +1 -1
- package/dist/cjs/interface/utility/dto-generate-cache-key.interface.d.ts +2 -0
- package/dist/cjs/module/api/authorization.module.js +1 -0
- package/dist/cjs/module/api/authorization.module.js.map +1 -1
- package/dist/cjs/type/class/api/authorization/cache-options.type.d.ts +2 -0
- package/dist/cjs/type/class/api/authorization/index.d.ts +1 -0
- package/dist/cjs/type/class/api/authorization/policy/context/before/create-context.type.d.ts +1 -1
- package/dist/cjs/type/class/api/authorization/policy/context/before/get/list-context.type.d.ts +1 -1
- package/dist/cjs/type/class/api/authorization/policy/context/before/partial-update-context.type.d.ts +1 -1
- package/dist/cjs/type/class/api/authorization/policy/context/before/update-context.type.d.ts +1 -1
- package/dist/cjs/type/class/api/authorization/policy/hook/type.d.ts +1 -1
- package/dist/cjs/type/class/api/authorization/policy/subscriber/index.d.ts +1 -1
- package/dist/cjs/type/class/api/authorization/policy/subscriber/{permission-rule-options/without-transform.type.d.ts → permission-rule-options-without-transform.type.d.ts} +2 -2
- package/dist/cjs/type/class/api/function/context-storage-entry.type.d.ts +13 -5
- package/dist/cjs/type/class/api/function/index.d.ts +2 -0
- package/dist/cjs/type/class/api/function/transaction/event.type.d.ts +2 -0
- package/dist/cjs/type/class/api/function/transaction/index.d.ts +3 -0
- package/dist/cjs/type/class/api/function/transaction/owner.type.d.ts +2 -0
- package/dist/cjs/type/class/api/function/transaction/trace-type.type.d.ts +2 -0
- package/dist/cjs/type/class/api/index.d.ts +1 -0
- package/dist/cjs/type/class/api/subscriber/function/after/create-context.type.d.ts +1 -1
- package/dist/cjs/type/class/api/subscriber/function/after/delete-context.type.d.ts +1 -1
- package/dist/cjs/type/class/api/subscriber/function/after/get/context.type.d.ts +1 -1
- package/dist/cjs/type/class/api/subscriber/function/after/get/list-context.type.d.ts +1 -1
- package/dist/cjs/type/class/api/subscriber/function/after/get/many-context.type.d.ts +1 -1
- package/dist/cjs/type/class/api/subscriber/function/after/update-context.type.d.ts +1 -1
- package/dist/cjs/type/class/api/subscriber/function/before/create-context.type.d.ts +1 -1
- package/dist/cjs/type/class/api/subscriber/function/before/delete-context.type.d.ts +1 -1
- package/dist/cjs/type/class/api/subscriber/function/before/get/context.type.d.ts +1 -1
- package/dist/cjs/type/class/api/subscriber/function/before/get/list-context.type.d.ts +1 -1
- package/dist/cjs/type/class/api/subscriber/function/before/get/many-context.type.d.ts +1 -1
- package/dist/cjs/type/class/api/subscriber/function/before/update-context.type.d.ts +3 -2
- package/dist/cjs/type/class/api/subscriber/function/{execution/context/data.type.d.ts → execution-context-data.type.d.ts} +4 -4
- package/dist/cjs/type/class/api/subscriber/function/index.d.ts +1 -1
- package/dist/cjs/type/class/api/subscriber/function/transaction/data.type.d.ts +1 -1
- package/dist/cjs/type/decorator/api/controller/get-list/index.d.ts +1 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/dto-contract.type.d.ts +14 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/field/disabled.type.d.ts +6 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/field/index.d.ts +1 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/filter/condition.type.d.ts +19 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/filter/field/enabled.type.d.ts +15 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/filter/field/index.d.ts +3 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/filter/field/map.type.d.ts +5 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/filter/field/type.d.ts +3 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/filter/index.d.ts +3 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/filter/operation-for-value.type.d.ts +2 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/index.d.ts +6 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/order/field/enabled.type.d.ts +6 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/order/field/index.d.ts +3 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/order/field/map.type.d.ts +3 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/order/field/type.d.ts +3 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/order/index.d.ts +1 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/path/direct-scalar.type.d.ts +4 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/path/filter.type.d.ts +3 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/path/index.d.ts +7 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/path/one-hop-to-one-scalar.type.d.ts +7 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/path/order.type.d.ts +2 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/path/scalar-value.type.d.ts +1 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/path/to-one-relation.type.d.ts +2 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/path/value.type.d.ts +2 -0
- package/dist/cjs/type/decorator/api/controller/{get-list-query.type.d.ts → get-list/query/type.d.ts} +2 -2
- package/dist/cjs/type/decorator/api/controller/index.d.ts +1 -1
- package/dist/cjs/type/decorator/api/controller/properties-route.type.d.ts +2 -1
- package/dist/cjs/type/decorator/api/route/{custom/dto-properties.type.d.ts → custom-dto-properties.type.d.ts} +3 -3
- package/dist/{esm/type/decorator/api/route/discriminated/dto-properties.type.d.ts → cjs/type/decorator/api/route/discriminated-dto-properties.type.d.ts} +1 -1
- package/dist/cjs/type/decorator/api/route/index.d.ts +2 -2
- package/dist/{esm/type/utility/api/discriminator/validate/config-properties.type.d.ts → cjs/type/utility/api/discriminator-validate-config-properties.type.d.ts} +1 -1
- package/dist/cjs/type/utility/api/get-default-string-format-properties/bigint-string/index.d.ts +1 -1
- package/dist/cjs/type/utility/api/get-default-string-format-properties/bigint-string/options.type.d.ts +2 -2
- package/dist/cjs/type/utility/api/get-default-string-format-properties/bigint-string/{sign/properties.type.d.ts → sign-properties.type.d.ts} +1 -1
- package/dist/cjs/type/utility/api/index.d.ts +1 -1
- package/dist/cjs/type/utility/dto/index.d.ts +1 -1
- package/dist/cjs/type/utility/dto/{manual/property-metadata.type.d.ts → manual-property-metadata.type.d.ts} +2 -2
- package/dist/cjs/type/utility/index.d.ts +1 -0
- package/dist/cjs/type/utility/non-empty-readonly-array.type.d.ts +1 -0
- package/dist/cjs/type/validator/has-paired-custom-suffixes-fields/index.d.ts +0 -1
- package/dist/cjs/utility/api/controller/apply/decorators.utility.d.ts +3 -1
- package/dist/cjs/utility/api/controller/apply/decorators.utility.js +17 -3
- package/dist/cjs/utility/api/controller/apply/decorators.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/apply/metadata.utility.d.ts +3 -1
- package/dist/cjs/utility/api/controller/apply/metadata.utility.js +14 -5
- package/dist/cjs/utility/api/controller/apply/metadata.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/build-route-documentation.utility.js +9 -1
- package/dist/cjs/utility/api/controller/build-route-documentation.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/get/dto.utility.d.ts +3 -1
- package/dist/cjs/utility/api/controller/get/dto.utility.js +15 -4
- package/dist/cjs/utility/api/controller/get/dto.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/get-list/query/enum-values.utility.d.ts +6 -0
- package/dist/cjs/utility/api/controller/get-list/query/enum-values.utility.js +19 -0
- package/dist/cjs/utility/api/controller/get-list/query/enum-values.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/get-list/query/index.d.ts +3 -0
- package/dist/cjs/utility/api/controller/get-list/query/open-api/decorators.utility.d.ts +7 -0
- package/dist/cjs/utility/api/controller/get-list/query/open-api/decorators.utility.js +101 -0
- package/dist/cjs/utility/api/controller/get-list/query/open-api/decorators.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/get-list/query/open-api/index.d.ts +2 -0
- package/dist/cjs/utility/api/controller/get-list/query/open-api/value-schema.utility.d.ts +8 -0
- package/dist/cjs/utility/api/controller/get-list/query/open-api/value-schema.utility.js +83 -0
- package/dist/cjs/utility/api/controller/get-list/query/open-api/value-schema.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/get-list/query/plan/get.utility.d.ts +8 -0
- package/dist/cjs/utility/api/controller/get-list/query/plan/get.utility.js +17 -0
- package/dist/cjs/utility/api/controller/get-list/query/plan/get.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/get-list/query/plan/index.d.ts +2 -0
- package/dist/cjs/utility/api/controller/get-list/query/plan/set.utility.d.ts +9 -0
- package/dist/cjs/utility/api/controller/get-list/query/plan/set.utility.js +18 -0
- package/dist/cjs/utility/api/controller/get-list/query/plan/set.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/get-list/transform/filter.utility.js +10 -2
- package/dist/cjs/utility/api/controller/get-list/transform/filter.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/get-list/transform/operation.utility.js +1 -0
- package/dist/cjs/utility/api/controller/get-list/transform/operation.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/handle-request-relations.utility.js +49 -3
- package/dist/cjs/utility/api/controller/handle-request-relations.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/transform-data.utility.js +11 -2
- package/dist/cjs/utility/api/controller/transform-data.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/write/dto-swagger.utility.d.ts +3 -1
- package/dist/cjs/utility/api/controller/write/dto-swagger.utility.js +15 -6
- package/dist/cjs/utility/api/controller/write/dto-swagger.utility.js.map +1 -1
- package/dist/cjs/utility/api/{discriminator/validate/config.utility.d.ts → discriminator-validate-config.utility.d.ts} +1 -1
- package/dist/cjs/utility/api/{discriminator/validate/config.utility.js → discriminator-validate-config.utility.js} +2 -2
- package/dist/cjs/utility/api/discriminator-validate-config.utility.js.map +1 -0
- package/dist/cjs/utility/api/function-transaction.utility.d.ts +9 -2
- package/dist/cjs/utility/api/function-transaction.utility.js +75 -15
- package/dist/cjs/utility/api/function-transaction.utility.js.map +1 -1
- package/dist/{esm/utility/api/get-default-string-format-properties/bigint-string/apply-options.utility.d.ts → cjs/utility/api/get-default-string-format-properties/bigint-string-apply-options.utility.d.ts} +2 -2
- package/dist/cjs/utility/api/get-default-string-format-properties/{bigint-string/apply-options.utility.js → bigint-string-apply-options.utility.js} +4 -2
- package/dist/cjs/utility/api/get-default-string-format-properties/bigint-string-apply-options.utility.js.map +1 -0
- package/dist/{esm/utility/api/get-default-string-format-properties/customizer/apply.utility.d.ts → cjs/utility/api/get-default-string-format-properties/customizer-apply.utility.d.ts} +2 -2
- package/dist/cjs/utility/api/get-default-string-format-properties/{customizer/apply.utility.js → customizer-apply.utility.js} +3 -2
- package/dist/cjs/utility/api/get-default-string-format-properties/customizer-apply.utility.js.map +1 -0
- package/dist/cjs/utility/api/get-default-string-format-properties/index.d.ts +2 -0
- package/dist/cjs/utility/api/get-default-string-format-properties/utility.js +2 -2
- package/dist/cjs/utility/api/get-default-string-format-properties/utility.js.map +1 -1
- package/dist/cjs/utility/api/index.d.ts +2 -2
- package/dist/cjs/utility/api/route/apply-dto-metadata.utility.js +12 -4
- package/dist/cjs/utility/api/route/apply-dto-metadata.utility.js.map +1 -1
- package/dist/cjs/utility/api/route/discriminator/build-open-api-schema.utility.js.map +1 -1
- package/dist/cjs/utility/api/route/discriminator/resolve-dto.utility.js +1 -1
- package/dist/cjs/utility/api/route/discriminator/resolve-dto.utility.js.map +1 -1
- package/dist/cjs/utility/api/route/discriminator/validate-dto-properties.utility.js +2 -2
- package/dist/cjs/utility/api/route/discriminator/validate-dto-properties.utility.js.map +1 -1
- package/dist/cjs/utility/api/route/{dto/collect-with-registered-children.utility.js → dto-collect-with-registered-children.utility.js} +2 -2
- package/dist/cjs/utility/api/route/dto-collect-with-registered-children.utility.js.map +1 -0
- package/dist/cjs/utility/api/route/index.d.ts +2 -2
- package/dist/cjs/utility/api/route/response/project-relation.utility.js +9 -1
- package/dist/cjs/utility/api/route/response/project-relation.utility.js.map +1 -1
- package/dist/cjs/utility/api/route/{validation/flatten-errors.utility.js → validation-flatten-errors.utility.js} +1 -1
- package/dist/cjs/utility/api/route/validation-flatten-errors.utility.js.map +1 -0
- package/dist/cjs/utility/authorization/permission/set-matches.utility.js +1 -0
- package/dist/cjs/utility/authorization/permission/set-matches.utility.js.map +1 -1
- package/dist/cjs/utility/authorization/resolve-default-principal.utility.js +1 -0
- package/dist/cjs/utility/authorization/resolve-default-principal.utility.js.map +1 -1
- package/dist/cjs/utility/dto/build-decorator.utility.js +14 -4
- package/dist/cjs/utility/dto/build-decorator.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate/cache-key.utility.d.ts +1 -1
- package/dist/cjs/utility/dto/generate/cache-key.utility.js +2 -2
- package/dist/cjs/utility/dto/generate/cache-key.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate/core.utility.d.ts +3 -1
- package/dist/cjs/utility/dto/generate/core.utility.js +46 -44
- package/dist/cjs/utility/dto/generate/core.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate/dynamic.utility.js +11 -3
- package/dist/cjs/utility/dto/generate/dynamic.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate/exception.utility.js +9 -1
- package/dist/cjs/utility/dto/generate/exception.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate/filter-decorator.utility.d.ts +4 -1
- package/dist/cjs/utility/dto/generate/filter-decorator.utility.js +17 -2
- package/dist/cjs/utility/dto/generate/filter-decorator.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate/get-list-query-properties.utility.d.ts +25 -0
- package/dist/cjs/utility/dto/generate/get-list-query-properties.utility.js +107 -0
- package/dist/cjs/utility/dto/generate/get-list-query-properties.utility.js.map +1 -0
- package/dist/cjs/utility/dto/generate/get-list-response.utility.js +9 -1
- package/dist/cjs/utility/dto/generate/get-list-response.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate/manual-child.utility.js +2 -2
- package/dist/cjs/utility/dto/generate/manual-child.utility.js.map +1 -1
- package/dist/cjs/utility/dto/get/get-list-query-base-class.utility.d.ts +3 -1
- package/dist/cjs/utility/dto/get/get-list-query-base-class.utility.js +19 -4
- package/dist/cjs/utility/dto/get/get-list-query-base-class.utility.js.map +1 -1
- package/dist/cjs/utility/dto/handle-date-property.utility.js +9 -1
- package/dist/cjs/utility/dto/handle-date-property.utility.js.map +1 -1
- package/dist/cjs/utility/dto/is/property/index.d.ts +1 -0
- package/dist/cjs/utility/dto/is/property/infrastructure-timestamp.utility.d.ts +7 -0
- package/dist/cjs/utility/dto/is/property/infrastructure-timestamp.utility.js +45 -0
- package/dist/cjs/utility/dto/is/property/infrastructure-timestamp.utility.js.map +1 -0
- package/dist/cjs/utility/dto/is/property/should-be-marked.utility.d.ts +2 -2
- package/dist/cjs/utility/dto/is/property/should-be-marked.utility.js +14 -5
- package/dist/cjs/utility/dto/is/property/should-be-marked.utility.js.map +1 -1
- package/dist/cjs/utility/dto/is/should-be-generated.utility.js +9 -1
- package/dist/cjs/utility/dto/is/should-be-generated.utility.js.map +1 -1
- package/dist/cjs/utility/dto/manual/index.d.ts +1 -0
- package/dist/cjs/utility/dto/manual/property-metadata/get.utility.d.ts +8 -0
- package/dist/cjs/utility/dto/manual/property-metadata/get.utility.js +32 -0
- package/dist/cjs/utility/dto/manual/property-metadata/get.utility.js.map +1 -0
- package/dist/cjs/utility/dto/manual/property-metadata/index.d.ts +2 -0
- package/dist/cjs/utility/dto/manual/property-metadata/register.utility.d.ts +9 -0
- package/dist/cjs/utility/dto/manual/property-metadata/register.utility.js +22 -0
- package/dist/cjs/utility/dto/manual/property-metadata/register.utility.js.map +1 -0
- package/dist/cjs/utility/queue-auto-context-retry.utility.js +1 -1
- package/dist/cjs/utility/queue-auto-context-retry.utility.js.map +1 -1
- package/dist/cjs/validator/has/paired-custom-suffixes-fields.validator.js +21 -25
- package/dist/cjs/validator/has/paired-custom-suffixes-fields.validator.js.map +1 -1
- package/dist/cjs/validator/must-match-one-of-schemas.validator.js +0 -1
- package/dist/cjs/validator/must-match-one-of-schemas.validator.js.map +1 -1
- package/dist/esm/class/api/authorization/bootstrap-validation.service.class.d.ts +9 -2
- package/dist/esm/class/api/authorization/bootstrap-validation.service.class.js +32 -5
- package/dist/esm/class/api/authorization/bootstrap-validation.service.class.js.map +1 -1
- package/dist/esm/class/api/authorization/engine.class.js +1 -0
- package/dist/esm/class/api/authorization/engine.class.js.map +1 -1
- package/dist/esm/class/api/authorization/guard.class.js +1 -0
- package/dist/esm/class/api/authorization/guard.class.js.map +1 -1
- package/dist/esm/class/api/authorization/hook/permission/cache.class.d.ts +2 -0
- package/dist/esm/class/api/authorization/hook/permission/cache.class.js +5 -1
- package/dist/esm/class/api/authorization/hook/permission/cache.class.js.map +1 -1
- package/dist/esm/class/api/authorization/hook/permission/resolver.class.js +1 -1
- package/dist/esm/class/api/authorization/hook/permission/resolver.class.js.map +1 -1
- package/dist/esm/class/api/authorization/iam/attachment/cache.class.d.ts +2 -0
- package/dist/esm/class/api/authorization/iam/attachment/cache.class.js +5 -1
- package/dist/esm/class/api/authorization/iam/attachment/cache.class.js.map +1 -1
- package/dist/esm/class/api/authorization/iam/attachment/resolver.class.js +1 -1
- package/dist/esm/class/api/authorization/iam/attachment/resolver.class.js.map +1 -1
- package/dist/esm/class/api/authorization/iam/document/cache.class.d.ts +2 -0
- package/dist/esm/class/api/authorization/iam/document/cache.class.js +5 -1
- package/dist/esm/class/api/authorization/iam/document/cache.class.js.map +1 -1
- package/dist/esm/class/api/authorization/iam/document/resolver.class.js +2 -2
- package/dist/esm/class/api/authorization/iam/document/resolver.class.js.map +1 -1
- package/dist/esm/class/api/authorization/iam/document/validator.class.js +1 -0
- package/dist/esm/class/api/authorization/iam/document/validator.class.js.map +1 -1
- package/dist/esm/class/api/authorization/iam/engine.class.js +2 -1
- package/dist/esm/class/api/authorization/iam/engine.class.js.map +1 -1
- package/dist/esm/class/api/authorization/policy/base.class.js +1 -0
- package/dist/esm/class/api/authorization/policy/base.class.js.map +1 -1
- package/dist/esm/class/api/authorization/policy/discovery-service.class.d.ts +1 -1
- package/dist/esm/class/api/authorization/policy/discovery-service.class.js +2 -2
- package/dist/esm/class/api/authorization/policy/discovery-service.class.js.map +1 -1
- package/dist/esm/class/api/authorization/policy/executor.class.js +1 -1
- package/dist/esm/class/api/authorization/policy/executor.class.js.map +1 -1
- package/dist/esm/class/api/authorization/policy/registry.class.js +2 -2
- package/dist/esm/class/api/authorization/policy/registry.class.js.map +1 -1
- package/dist/esm/class/api/authorization/resolver/cache.class.d.ts +11 -0
- package/dist/esm/class/api/authorization/resolver/cache.class.js +87 -0
- package/dist/esm/class/api/authorization/resolver/cache.class.js.map +1 -0
- package/dist/esm/class/api/authorization/resolver/index.d.ts +1 -0
- package/dist/esm/class/api/authorization/runtime.class.d.ts +1 -1
- package/dist/esm/class/api/authorization/runtime.class.js +11 -10
- package/dist/esm/class/api/authorization/runtime.class.js.map +1 -1
- package/dist/esm/class/api/authorization/simulator.class.d.ts +1 -1
- package/dist/esm/class/api/authorization/simulator.class.js +1 -1
- package/dist/esm/class/api/authorization/simulator.class.js.map +1 -1
- package/dist/esm/class/api/controller/get-list/index.d.ts +1 -0
- package/dist/esm/class/api/controller/get-list/query/index.d.ts +2 -0
- package/dist/esm/class/api/controller/get-list/query/plan-compiler.class.d.ts +27 -0
- package/dist/esm/class/api/controller/get-list/query/plan-compiler.class.js +353 -0
- package/dist/esm/class/api/controller/get-list/query/plan-compiler.class.js.map +1 -0
- package/dist/esm/class/api/controller/get-list/query/runtime.class.d.ts +11 -0
- package/dist/esm/class/api/controller/get-list/query/runtime.class.js +264 -0
- package/dist/esm/class/api/controller/get-list/query/runtime.class.js.map +1 -0
- package/dist/esm/class/api/controller/index.d.ts +1 -0
- package/dist/esm/class/api/function/context-storage.class.d.ts +7 -1
- package/dist/esm/class/api/function/context-storage.class.js +72 -7
- package/dist/esm/class/api/function/context-storage.class.js.map +1 -1
- package/dist/esm/class/api/function/custom-runtime.class.d.ts +1 -0
- package/dist/esm/class/api/function/custom-runtime.class.js +13 -2
- package/dist/esm/class/api/function/custom-runtime.class.js.map +1 -1
- package/dist/esm/class/api/function/index.d.ts +2 -1
- package/dist/esm/class/api/function/step-runtime.class.d.ts +2 -0
- package/dist/esm/class/api/function/step-runtime.class.js +30 -0
- package/dist/esm/class/api/function/step-runtime.class.js.map +1 -1
- package/dist/esm/class/api/function/transaction/exception/commit-unknown-outcome.class.d.ts +23 -0
- package/dist/esm/class/api/function/transaction/exception/commit-unknown-outcome.class.js +67 -0
- package/dist/esm/class/api/function/transaction/exception/commit-unknown-outcome.class.js.map +1 -0
- package/dist/esm/class/api/function/transaction/exception/index.d.ts +3 -0
- package/dist/esm/class/api/function/transaction/exception/post-commit.class.d.ts +20 -0
- package/dist/esm/class/api/function/transaction/exception/post-commit.class.js +62 -0
- package/dist/esm/class/api/function/transaction/exception/post-commit.class.js.map +1 -0
- package/dist/esm/class/api/function/transaction/exception/rollback.class.d.ts +26 -0
- package/dist/esm/class/api/function/transaction/exception/rollback.class.js +72 -0
- package/dist/esm/class/api/function/transaction/exception/rollback.class.js.map +1 -0
- package/dist/esm/class/api/function/transaction/index.d.ts +5 -0
- package/dist/esm/class/api/function/transaction/lifecycle.class.d.ts +13 -0
- package/dist/esm/class/api/function/transaction/lifecycle.class.js +226 -0
- package/dist/esm/class/api/function/transaction/lifecycle.class.js.map +1 -0
- package/dist/esm/class/api/function/transaction/registry.class.d.ts +23 -0
- package/dist/esm/class/api/function/transaction/registry.class.js +117 -0
- package/dist/esm/class/api/function/transaction/registry.class.js.map +1 -0
- package/dist/esm/class/api/function/transaction/runtime.class.d.ts +11 -0
- package/dist/esm/class/api/function/transaction/runtime.class.js +114 -0
- package/dist/esm/class/api/function/transaction/runtime.class.js.map +1 -0
- package/dist/esm/class/api/function/{transaction-scope.class.d.ts → transaction/scope.class.d.ts} +3 -1
- package/dist/esm/class/api/function/transaction/scope.class.js +76 -0
- package/dist/esm/class/api/function/transaction/scope.class.js.map +1 -0
- package/dist/esm/class/api/index.d.ts +1 -1
- package/dist/esm/class/api/route-runtime.class.d.ts +1 -0
- package/dist/esm/class/api/route-runtime.class.js +113 -54
- package/dist/esm/class/api/route-runtime.class.js.map +1 -1
- package/dist/esm/class/api/subscriber/discovery-service.class.js +3 -3
- package/dist/esm/class/api/subscriber/discovery-service.class.js.map +1 -1
- package/dist/esm/class/api/subscriber/executor.class.js +14 -6
- package/dist/esm/class/api/subscriber/executor.class.js.map +1 -1
- package/dist/esm/class/api/subscriber/index.d.ts +7 -7
- package/dist/esm/class/api/subscriber/registry.class.d.ts +3 -0
- package/dist/esm/class/api/subscriber/registry.class.js +12 -1
- package/dist/esm/class/api/subscriber/registry.class.js.map +1 -1
- package/dist/esm/class/utility/dto/exception/details/foreign-key-violation.class.js +9 -1
- package/dist/esm/class/utility/dto/exception/details/foreign-key-violation.class.js.map +1 -1
- package/dist/esm/class/utility/dto/exception/details/unique-violation.class.js +9 -1
- package/dist/esm/class/utility/dto/exception/details/unique-violation.class.js.map +1 -1
- package/dist/esm/class/utility/dto/property/factory/number.class.js +9 -1
- package/dist/esm/class/utility/dto/property/factory/number.class.js.map +1 -1
- package/dist/esm/class/utility/dto/property/factory/relation.class.js +9 -1
- package/dist/esm/class/utility/dto/property/factory/relation.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/body.class.js +9 -1
- package/dist/esm/class/utility/dto/strategy/body.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/query.class.js +9 -1
- package/dist/esm/class/utility/dto/strategy/query.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/request.class.js +9 -1
- package/dist/esm/class/utility/dto/strategy/request.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/response.class.js +9 -1
- package/dist/esm/class/utility/dto/strategy/response.class.js.map +1 -1
- package/dist/esm/constant/decorator/api/controller.constant.d.ts +1 -0
- package/dist/esm/constant/decorator/api/controller.constant.js +2 -0
- package/dist/esm/constant/decorator/api/controller.constant.js.map +1 -1
- package/dist/esm/constant/decorator/api/function.constant.js +1 -0
- package/dist/esm/constant/decorator/api/function.constant.js.map +1 -1
- package/dist/esm/constant/factory-dto-get-list-query.constant.d.ts +1 -0
- package/dist/esm/constant/factory-dto-get-list-query.constant.js +2 -0
- package/dist/esm/constant/factory-dto-get-list-query.constant.js.map +1 -1
- package/dist/esm/constant/filter/index.d.ts +1 -0
- package/dist/esm/constant/filter/operator-registry.constant.d.ts +9 -0
- package/dist/esm/constant/filter/operator-registry.constant.js +167 -0
- package/dist/esm/constant/filter/operator-registry.constant.js.map +1 -0
- package/dist/esm/constant/index.d.ts +0 -1
- package/dist/esm/constant/swagger/index.d.ts +1 -0
- package/dist/esm/constant/swagger/metadata.constant.d.ts +4 -0
- package/dist/esm/constant/swagger/metadata.constant.js +8 -0
- package/dist/esm/constant/swagger/metadata.constant.js.map +1 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/bigint-string/constant.d.ts +4 -3
- package/dist/esm/constant/utility/api/get-default-string-format-properties/bigint-string/constant.js.map +1 -1
- package/dist/esm/constant/utility/api/get-default-string-format-properties/bigint-string/sign/default.constant.d.ts +2 -2
- package/dist/esm/constant/utility/api/get-default-string-format-properties/bigint-string/sign/default.constant.js +3 -1
- package/dist/esm/constant/utility/api/get-default-string-format-properties/bigint-string/sign/default.constant.js.map +1 -1
- package/dist/esm/constant/utility/api/get-default-string-format-properties/bigint-string/sign/properties.constant.d.ts +3 -2
- package/dist/esm/constant/utility/api/get-default-string-format-properties/bigint-string/sign/properties.constant.js +11 -9
- package/dist/esm/constant/utility/api/get-default-string-format-properties/bigint-string/sign/properties.constant.js.map +1 -1
- package/dist/esm/constant/utility/api/get-default-string-format-properties/constant.d.ts +4 -3
- package/dist/esm/constant/utility/api/get-default-string-format-properties/constant.js +3 -1
- package/dist/esm/constant/utility/api/get-default-string-format-properties/constant.js.map +1 -1
- package/dist/esm/constant/utility/api/get-default-string-format-properties/{customizer/map.constant.d.ts → customizer-map.constant.d.ts} +1 -1
- package/dist/esm/constant/utility/api/get-default-string-format-properties/customizer-map.constant.js +35 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/customizer-map.constant.js.map +1 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/index.d.ts +1 -0
- package/dist/esm/constant/utility/api/index.d.ts +1 -1
- package/dist/esm/constant/utility/dto/constant.d.ts +2 -1
- package/dist/esm/constant/utility/dto/constant.js +12 -2
- package/dist/esm/constant/utility/dto/constant.js.map +1 -1
- package/dist/esm/constant/utility/dto/index.d.ts +1 -0
- package/dist/esm/constant/utility/dto/manual-property-metadata.constant.d.ts +3 -0
- package/dist/esm/constant/utility/dto/manual-property-metadata.constant.js +7 -0
- package/dist/esm/constant/utility/dto/manual-property-metadata.constant.js.map +1 -0
- package/dist/esm/constant/utility/index.d.ts +1 -1
- package/dist/esm/decorator/api/function/create.decorator.js +15 -3
- package/dist/esm/decorator/api/function/create.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/custom.decorator.js +11 -2
- package/dist/esm/decorator/api/function/custom.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/decorator.js +16 -8
- package/dist/esm/decorator/api/function/decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/delete.decorator.js +16 -4
- package/dist/esm/decorator/api/function/delete.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get/decorator.js +21 -15
- package/dist/esm/decorator/api/function/get/decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get/list.decorator.js +15 -3
- package/dist/esm/decorator/api/function/get/list.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get/many.decorator.js +15 -3
- package/dist/esm/decorator/api/function/get/many.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/step.decorator.js +11 -2
- package/dist/esm/decorator/api/function/step.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/update.decorator.js +48 -29
- package/dist/esm/decorator/api/function/update.decorator.js.map +1 -1
- package/dist/esm/decorator/api/index.d.ts +2 -2
- package/dist/esm/decorator/api/method.decorator.js +11 -3
- package/dist/esm/decorator/api/method.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/boolean.decorator.js +11 -3
- package/dist/esm/decorator/api/property/boolean.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/date.decorator.js +11 -3
- package/dist/esm/decorator/api/property/date.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/enum.decorator.js +2 -2
- package/dist/esm/decorator/api/property/number.decorator.js +11 -3
- package/dist/esm/decorator/api/property/number.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/object.decorator.js +3 -3
- package/dist/esm/decorator/api/property/string.decorator.js +11 -3
- package/dist/esm/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/uuid.decorator.js +11 -3
- package/dist/esm/decorator/api/property/uuid.decorator.js.map +1 -1
- package/dist/esm/decorator/api/route-custom.decorator.js +10 -2
- package/dist/esm/decorator/api/route-custom.decorator.js.map +1 -1
- package/dist/esm/decorator/api/service/decorator.js +12 -2
- package/dist/esm/decorator/api/service/decorator.js.map +1 -1
- package/dist/esm/decorator/api/service/index.d.ts +2 -2
- package/dist/esm/decorator/api/subscriber/index.d.ts +2 -2
- package/dist/esm/enum/class/authorization/cache-mode.enum.d.ts +4 -0
- package/dist/esm/enum/class/authorization/cache-mode.enum.js +8 -0
- package/dist/esm/enum/class/authorization/cache-mode.enum.js.map +1 -0
- package/dist/esm/enum/class/authorization/index.d.ts +1 -0
- package/dist/esm/enum/decorator/api/controller/get-list/index.d.ts +1 -0
- package/dist/esm/enum/decorator/api/controller/get-list/query/filter/index.d.ts +1 -0
- package/dist/esm/enum/decorator/api/controller/get-list/query/filter/missing-behavior.enum.d.ts +5 -0
- package/dist/esm/enum/decorator/api/controller/get-list/query/filter/missing-behavior.enum.js +9 -0
- package/dist/esm/enum/decorator/api/controller/get-list/query/filter/missing-behavior.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/controller/get-list/query/index.d.ts +2 -0
- package/dist/esm/enum/decorator/api/controller/get-list/query/unlisted-fields.enum.d.ts +4 -0
- package/dist/esm/enum/decorator/api/controller/get-list/query/unlisted-fields.enum.js +8 -0
- package/dist/esm/enum/decorator/api/controller/get-list/query/unlisted-fields.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/controller/index.d.ts +1 -0
- package/dist/esm/enum/decorator/api/function/context-storage-kind.enum.d.ts +5 -0
- package/dist/esm/enum/decorator/api/function/context-storage-kind.enum.js +9 -0
- package/dist/esm/enum/decorator/api/function/context-storage-kind.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/function/index.d.ts +2 -1
- package/dist/esm/enum/decorator/api/function/transaction/event-status.enum.d.ts +4 -0
- package/dist/esm/enum/decorator/api/function/transaction/event-status.enum.js +8 -0
- package/dist/esm/enum/decorator/api/function/transaction/event-status.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/function/transaction/failure-stage.enum.d.ts +10 -0
- package/dist/esm/enum/decorator/api/function/transaction/failure-stage.enum.js +14 -0
- package/dist/esm/enum/decorator/api/function/transaction/failure-stage.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/function/transaction/index.d.ts +6 -0
- package/dist/esm/enum/decorator/api/function/{transaction-mode.enum.js → transaction/mode.enum.js} +1 -1
- package/dist/esm/enum/decorator/api/function/transaction/mode.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/function/transaction/outcome.enum.d.ts +5 -0
- package/dist/esm/enum/decorator/api/function/transaction/outcome.enum.js +9 -0
- package/dist/esm/enum/decorator/api/function/transaction/outcome.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/function/transaction/owner-kind.enum.d.ts +5 -0
- package/dist/esm/enum/decorator/api/function/transaction/owner-kind.enum.js +9 -0
- package/dist/esm/enum/decorator/api/function/transaction/owner-kind.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/function/transaction/trace-type.enum.d.ts +3 -0
- package/dist/esm/enum/decorator/api/function/transaction/trace-type.enum.js +7 -0
- package/dist/esm/enum/decorator/api/function/transaction/trace-type.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/index.d.ts +4 -4
- package/dist/esm/enum/filter/index.d.ts +1 -0
- package/dist/esm/enum/filter/operand.enum.d.ts +6 -0
- package/dist/esm/enum/filter/operand.enum.js +10 -0
- package/dist/esm/enum/filter/operand.enum.js.map +1 -0
- package/dist/esm/enum/index.d.ts +1 -1
- package/dist/esm/enum/utility/get-default-string-format-properties-bigint-string-sign.enum.d.ts +5 -0
- package/dist/esm/enum/utility/get-default-string-format-properties-bigint-string-sign.enum.js +9 -0
- package/dist/esm/enum/utility/get-default-string-format-properties-bigint-string-sign.enum.js.map +1 -0
- package/dist/esm/enum/utility/index.d.ts +2 -1
- package/dist/esm/enum/utility/{dto/manual/property-metadata/decorator.enum.js → manual-dto-property-metadata-decorator.enum.js} +1 -1
- package/dist/esm/enum/utility/manual-dto-property-metadata-decorator.enum.js.map +1 -0
- package/dist/esm/enum/validator/index.d.ts +0 -1
- package/dist/esm/factory/api-controller.factory.js +40 -13
- package/dist/esm/factory/api-controller.factory.js.map +1 -1
- package/dist/esm/index.js +24 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interface/class/api/authorization/cache/index.d.ts +2 -0
- package/dist/esm/interface/class/api/authorization/cache/memory-options.interface.d.ts +6 -0
- package/dist/esm/interface/class/api/authorization/cache/source-first-options.interface.d.ts +4 -0
- package/dist/esm/interface/class/api/authorization/decision/interface.d.ts +2 -2
- package/dist/esm/interface/class/api/authorization/decision/trace.interface.d.ts +2 -2
- package/dist/esm/interface/class/api/authorization/index.d.ts +1 -0
- package/dist/esm/interface/class/api/authorization/module-options/async.interface.d.ts +2 -2
- package/dist/esm/interface/class/api/authorization/module-options/interface.d.ts +2 -0
- package/dist/esm/interface/class/api/authorization/policy/attachment/source.interface.d.ts +1 -1
- package/dist/esm/interface/class/api/authorization/policy/subscriber/context/interface.d.ts +1 -1
- package/dist/esm/interface/class/api/controller/get-list/index.d.ts +1 -0
- package/dist/esm/interface/class/api/controller/get-list/query/ast/index.d.ts +2 -0
- package/dist/esm/interface/class/api/controller/get-list/query/ast/interface.d.ts +4 -0
- package/dist/esm/interface/class/api/controller/get-list/query/ast/node.interface.d.ts +7 -0
- package/dist/esm/interface/class/api/controller/get-list/query/index.d.ts +5 -0
- package/dist/esm/interface/class/api/controller/get-list/query/operator.interface.d.ts +8 -0
- package/dist/esm/interface/class/api/controller/get-list/query/plan/condition.interface.d.ts +6 -0
- package/dist/esm/interface/class/api/controller/get-list/query/plan/filter/field.interface.d.ts +14 -0
- package/dist/esm/interface/class/api/controller/get-list/query/plan/filter/index.d.ts +2 -0
- package/dist/esm/interface/class/api/controller/get-list/query/plan/filter/interface.d.ts +7 -0
- package/dist/esm/interface/class/api/controller/get-list/query/plan/index.d.ts +4 -0
- package/dist/esm/interface/class/api/controller/get-list/query/plan/interface.d.ts +9 -0
- package/dist/esm/interface/class/api/controller/get-list/query/plan/order/field.interface.d.ts +4 -0
- package/dist/esm/interface/class/api/controller/get-list/query/plan/order/index.d.ts +2 -0
- package/dist/esm/interface/class/api/controller/get-list/query/plan/order/interface.d.ts +7 -0
- package/dist/esm/interface/class/api/controller/get-list/query/raw-group.interface.d.ts +5 -0
- package/dist/esm/interface/class/api/controller/get-list/query/runtime-result.interface.d.ts +10 -0
- package/dist/esm/interface/class/api/controller/index.d.ts +1 -0
- package/dist/esm/interface/class/api/function/context/interface.d.ts +1 -1
- package/dist/esm/interface/class/api/function/index.d.ts +1 -0
- package/dist/esm/interface/class/api/function/transaction/event/failed.interface.d.ts +11 -0
- package/dist/esm/interface/class/api/function/transaction/event/index.d.ts +2 -0
- package/dist/esm/interface/class/api/function/transaction/event/succeeded.interface.d.ts +10 -0
- package/dist/esm/interface/class/api/function/transaction/failure.interface.d.ts +6 -0
- package/dist/esm/interface/class/api/function/transaction/index.d.ts +4 -0
- package/dist/esm/interface/class/api/function/transaction/interface.d.ts +5 -0
- package/dist/esm/interface/class/api/function/transaction/owner/function.interface.d.ts +9 -0
- package/dist/esm/interface/class/api/function/transaction/owner/index.d.ts +3 -0
- package/dist/esm/interface/class/api/function/transaction/owner/route.interface.d.ts +7 -0
- package/dist/esm/interface/class/api/function/transaction/owner/scope.interface.d.ts +5 -0
- package/dist/esm/interface/class/api/route/runtime/generated/execution-options.interface.d.ts +1 -1
- package/dist/esm/interface/class/api/subscriber/function/execution/context/{data/interface.d.ts → data.interface.d.ts} +2 -2
- package/dist/esm/interface/class/api/subscriber/function/execution/context/index.d.ts +2 -1
- package/dist/esm/interface/class/api/subscriber/function/execution/context/update-data.interface.d.ts +12 -0
- package/dist/esm/interface/class/api/subscriber/function/index.d.ts +1 -0
- package/dist/esm/interface/class/api/subscriber/function/interface.d.ts +12 -2
- package/dist/esm/interface/class/api/subscriber/function/transaction/context/data.interface.d.ts +7 -0
- package/dist/esm/interface/class/api/subscriber/function/transaction/context/index.d.ts +2 -0
- package/dist/esm/interface/class/api/subscriber/function/transaction/context/interface.d.ts +4 -0
- package/dist/esm/interface/class/api/subscriber/index.d.ts +4 -4
- package/dist/esm/interface/class/api/subscriber/route/execution/context/data/extended.interface.d.ts +1 -1
- package/dist/esm/interface/decorator/api/controller/properties/route/base/index.d.ts +1 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/interface.d.ts +2 -1
- package/dist/esm/interface/decorator/api/controller/properties/route/base/relations/request/load.interface.d.ts +2 -1
- package/dist/esm/interface/decorator/api/controller/properties/route/base/relations/response/load.interface.d.ts +1 -1
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/index.d.ts +1 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/interface.d.ts +3 -2
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/query/filter/index.d.ts +1 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/query/filter/interface.d.ts +6 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/query/index.d.ts +3 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/query/interface.d.ts +7 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/query/order/index.d.ts +1 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/query/order/interface.d.ts +6 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/response/interface.d.ts +1 -1
- package/dist/esm/interface/decorator/api/controller/properties/route/base/transaction.interface.d.ts +4 -0
- package/dist/esm/interface/decorator/api/controller/properties.interface.d.ts +1 -1
- package/dist/esm/interface/decorator/api/function/update-executor-properties.interface.d.ts +2 -2
- package/dist/esm/interface/decorator/api/index.d.ts +3 -3
- package/dist/esm/interface/decorator/api/method-properties.interface.d.ts +5 -0
- package/dist/esm/interface/decorator/api/route/custom-properties.interface.d.ts +1 -1
- package/dist/esm/interface/decorator/api/route/metadata/interface.d.ts +2 -2
- package/dist/esm/interface/decorator/api/route/response/properties.interface.d.ts +1 -1
- package/dist/esm/interface/decorator/api/route/security/authentication-properties.interface.d.ts +1 -1
- package/dist/esm/interface/utility/dto-generate-cache-key.interface.d.ts +2 -0
- package/dist/esm/module/api/authorization.module.js +1 -0
- package/dist/esm/module/api/authorization.module.js.map +1 -1
- package/dist/esm/type/class/api/authorization/cache-options.type.d.ts +2 -0
- package/dist/esm/type/class/api/authorization/index.d.ts +1 -0
- package/dist/esm/type/class/api/authorization/policy/context/before/create-context.type.d.ts +1 -1
- package/dist/esm/type/class/api/authorization/policy/context/before/get/list-context.type.d.ts +1 -1
- package/dist/esm/type/class/api/authorization/policy/context/before/partial-update-context.type.d.ts +1 -1
- package/dist/esm/type/class/api/authorization/policy/context/before/update-context.type.d.ts +1 -1
- package/dist/esm/type/class/api/authorization/policy/hook/type.d.ts +1 -1
- package/dist/esm/type/class/api/authorization/policy/subscriber/index.d.ts +1 -1
- package/dist/esm/type/class/api/authorization/policy/subscriber/{permission-rule-options/without-transform.type.d.ts → permission-rule-options-without-transform.type.d.ts} +2 -2
- package/dist/esm/type/class/api/function/context-storage-entry.type.d.ts +13 -5
- package/dist/esm/type/class/api/function/index.d.ts +2 -0
- package/dist/esm/type/class/api/function/transaction/event.type.d.ts +2 -0
- package/dist/esm/type/class/api/function/transaction/index.d.ts +3 -0
- package/dist/esm/type/class/api/function/transaction/owner.type.d.ts +2 -0
- package/dist/esm/type/class/api/function/transaction/trace-type.type.d.ts +2 -0
- package/dist/esm/type/class/api/index.d.ts +1 -0
- package/dist/esm/type/class/api/subscriber/function/after/create-context.type.d.ts +1 -1
- package/dist/esm/type/class/api/subscriber/function/after/delete-context.type.d.ts +1 -1
- package/dist/esm/type/class/api/subscriber/function/after/get/context.type.d.ts +1 -1
- package/dist/esm/type/class/api/subscriber/function/after/get/list-context.type.d.ts +1 -1
- package/dist/esm/type/class/api/subscriber/function/after/get/many-context.type.d.ts +1 -1
- package/dist/esm/type/class/api/subscriber/function/after/update-context.type.d.ts +1 -1
- package/dist/esm/type/class/api/subscriber/function/before/create-context.type.d.ts +1 -1
- package/dist/esm/type/class/api/subscriber/function/before/delete-context.type.d.ts +1 -1
- package/dist/esm/type/class/api/subscriber/function/before/get/context.type.d.ts +1 -1
- package/dist/esm/type/class/api/subscriber/function/before/get/list-context.type.d.ts +1 -1
- package/dist/esm/type/class/api/subscriber/function/before/get/many-context.type.d.ts +1 -1
- package/dist/esm/type/class/api/subscriber/function/before/update-context.type.d.ts +3 -2
- package/dist/esm/type/class/api/subscriber/function/{execution/context/data.type.d.ts → execution-context-data.type.d.ts} +4 -4
- package/dist/esm/type/class/api/subscriber/function/index.d.ts +1 -1
- package/dist/esm/type/class/api/subscriber/function/transaction/data.type.d.ts +1 -1
- package/dist/esm/type/decorator/api/controller/get-list/index.d.ts +1 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/dto-contract.type.d.ts +14 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/field/disabled.type.d.ts +6 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/field/index.d.ts +1 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/filter/condition.type.d.ts +19 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/filter/field/enabled.type.d.ts +15 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/filter/field/index.d.ts +3 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/filter/field/map.type.d.ts +5 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/filter/field/type.d.ts +3 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/filter/index.d.ts +3 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/filter/operation-for-value.type.d.ts +2 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/index.d.ts +6 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/order/field/enabled.type.d.ts +6 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/order/field/index.d.ts +3 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/order/field/map.type.d.ts +3 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/order/field/type.d.ts +3 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/order/index.d.ts +1 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/path/direct-scalar.type.d.ts +4 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/path/filter.type.d.ts +3 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/path/index.d.ts +7 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/path/one-hop-to-one-scalar.type.d.ts +7 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/path/order.type.d.ts +2 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/path/scalar-value.type.d.ts +1 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/path/to-one-relation.type.d.ts +2 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/path/value.type.d.ts +2 -0
- package/dist/esm/type/decorator/api/controller/{get-list-query.type.d.ts → get-list/query/type.d.ts} +2 -2
- package/dist/esm/type/decorator/api/controller/index.d.ts +1 -1
- package/dist/esm/type/decorator/api/controller/properties-route.type.d.ts +2 -1
- package/dist/esm/type/decorator/api/route/{custom/dto-properties.type.d.ts → custom-dto-properties.type.d.ts} +3 -3
- package/dist/{cjs/type/decorator/api/route/discriminated/dto-properties.type.d.ts → esm/type/decorator/api/route/discriminated-dto-properties.type.d.ts} +1 -1
- package/dist/esm/type/decorator/api/route/index.d.ts +2 -2
- package/dist/{cjs/type/utility/api/discriminator/validate/config-properties.type.d.ts → esm/type/utility/api/discriminator-validate-config-properties.type.d.ts} +1 -1
- package/dist/esm/type/utility/api/get-default-string-format-properties/bigint-string/index.d.ts +1 -1
- package/dist/esm/type/utility/api/get-default-string-format-properties/bigint-string/options.type.d.ts +2 -2
- package/dist/esm/type/utility/api/get-default-string-format-properties/bigint-string/{sign/properties.type.d.ts → sign-properties.type.d.ts} +1 -1
- package/dist/esm/type/utility/api/index.d.ts +1 -1
- package/dist/esm/type/utility/dto/index.d.ts +1 -1
- package/dist/esm/type/utility/dto/{manual/property-metadata.type.d.ts → manual-property-metadata.type.d.ts} +2 -2
- package/dist/esm/type/utility/index.d.ts +1 -0
- package/dist/esm/type/utility/non-empty-readonly-array.type.d.ts +1 -0
- package/dist/esm/type/validator/has-paired-custom-suffixes-fields/index.d.ts +0 -1
- package/dist/esm/utility/api/controller/apply/decorators.utility.d.ts +3 -1
- package/dist/esm/utility/api/controller/apply/decorators.utility.js +17 -3
- package/dist/esm/utility/api/controller/apply/decorators.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/apply/metadata.utility.d.ts +3 -1
- package/dist/esm/utility/api/controller/apply/metadata.utility.js +14 -5
- package/dist/esm/utility/api/controller/apply/metadata.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/build-route-documentation.utility.js +9 -1
- package/dist/esm/utility/api/controller/build-route-documentation.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/get/dto.utility.d.ts +3 -1
- package/dist/esm/utility/api/controller/get/dto.utility.js +15 -4
- package/dist/esm/utility/api/controller/get/dto.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/get-list/query/enum-values.utility.d.ts +6 -0
- package/dist/esm/utility/api/controller/get-list/query/enum-values.utility.js +17 -0
- package/dist/esm/utility/api/controller/get-list/query/enum-values.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/get-list/query/index.d.ts +3 -0
- package/dist/esm/utility/api/controller/get-list/query/open-api/decorators.utility.d.ts +7 -0
- package/dist/esm/utility/api/controller/get-list/query/open-api/decorators.utility.js +99 -0
- package/dist/esm/utility/api/controller/get-list/query/open-api/decorators.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/get-list/query/open-api/index.d.ts +2 -0
- package/dist/esm/utility/api/controller/get-list/query/open-api/value-schema.utility.d.ts +8 -0
- package/dist/esm/utility/api/controller/get-list/query/open-api/value-schema.utility.js +81 -0
- package/dist/esm/utility/api/controller/get-list/query/open-api/value-schema.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/get-list/query/plan/get.utility.d.ts +8 -0
- package/dist/esm/utility/api/controller/get-list/query/plan/get.utility.js +15 -0
- package/dist/esm/utility/api/controller/get-list/query/plan/get.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/get-list/query/plan/index.d.ts +2 -0
- package/dist/esm/utility/api/controller/get-list/query/plan/set.utility.d.ts +9 -0
- package/dist/esm/utility/api/controller/get-list/query/plan/set.utility.js +16 -0
- package/dist/esm/utility/api/controller/get-list/query/plan/set.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/get-list/transform/filter.utility.js +10 -2
- package/dist/esm/utility/api/controller/get-list/transform/filter.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/get-list/transform/operation.utility.js +1 -0
- package/dist/esm/utility/api/controller/get-list/transform/operation.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/handle-request-relations.utility.js +49 -3
- package/dist/esm/utility/api/controller/handle-request-relations.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/transform-data.utility.js +11 -2
- package/dist/esm/utility/api/controller/transform-data.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/write/dto-swagger.utility.d.ts +3 -1
- package/dist/esm/utility/api/controller/write/dto-swagger.utility.js +15 -6
- package/dist/esm/utility/api/controller/write/dto-swagger.utility.js.map +1 -1
- package/dist/esm/utility/api/{discriminator/validate/config.utility.d.ts → discriminator-validate-config.utility.d.ts} +1 -1
- package/dist/esm/utility/api/{discriminator/validate/config.utility.js → discriminator-validate-config.utility.js} +2 -2
- package/dist/esm/utility/api/discriminator-validate-config.utility.js.map +1 -0
- package/dist/esm/utility/api/function-transaction.utility.d.ts +9 -2
- package/dist/esm/utility/api/function-transaction.utility.js +71 -11
- package/dist/esm/utility/api/function-transaction.utility.js.map +1 -1
- package/dist/{cjs/utility/api/get-default-string-format-properties/bigint-string/apply-options.utility.d.ts → esm/utility/api/get-default-string-format-properties/bigint-string-apply-options.utility.d.ts} +2 -2
- package/dist/esm/utility/api/get-default-string-format-properties/{bigint-string/apply-options.utility.js → bigint-string-apply-options.utility.js} +4 -2
- package/dist/esm/utility/api/get-default-string-format-properties/bigint-string-apply-options.utility.js.map +1 -0
- package/dist/{cjs/utility/api/get-default-string-format-properties/customizer/apply.utility.d.ts → esm/utility/api/get-default-string-format-properties/customizer-apply.utility.d.ts} +2 -2
- package/dist/esm/utility/api/get-default-string-format-properties/{customizer/apply.utility.js → customizer-apply.utility.js} +3 -2
- package/dist/esm/utility/api/get-default-string-format-properties/customizer-apply.utility.js.map +1 -0
- package/dist/esm/utility/api/get-default-string-format-properties/index.d.ts +2 -0
- package/dist/esm/utility/api/get-default-string-format-properties/utility.js +1 -1
- package/dist/esm/utility/api/get-default-string-format-properties/utility.js.map +1 -1
- package/dist/esm/utility/api/index.d.ts +2 -2
- package/dist/esm/utility/api/route/apply-dto-metadata.utility.js +10 -2
- package/dist/esm/utility/api/route/apply-dto-metadata.utility.js.map +1 -1
- package/dist/esm/utility/api/route/discriminator/build-open-api-schema.utility.js.map +1 -1
- package/dist/esm/utility/api/route/discriminator/resolve-dto.utility.js +1 -1
- package/dist/esm/utility/api/route/discriminator/resolve-dto.utility.js.map +1 -1
- package/dist/esm/utility/api/route/discriminator/validate-dto-properties.utility.js +1 -1
- package/dist/esm/utility/api/route/{dto/collect-with-registered-children.utility.js → dto-collect-with-registered-children.utility.js} +2 -2
- package/dist/esm/utility/api/route/dto-collect-with-registered-children.utility.js.map +1 -0
- package/dist/esm/utility/api/route/index.d.ts +2 -2
- package/dist/esm/utility/api/route/response/project-relation.utility.js +9 -1
- package/dist/esm/utility/api/route/response/project-relation.utility.js.map +1 -1
- package/dist/esm/utility/api/route/{validation/flatten-errors.utility.js → validation-flatten-errors.utility.js} +1 -1
- package/dist/esm/utility/api/route/validation-flatten-errors.utility.js.map +1 -0
- package/dist/esm/utility/authorization/permission/set-matches.utility.js +1 -0
- package/dist/esm/utility/authorization/permission/set-matches.utility.js.map +1 -1
- package/dist/esm/utility/authorization/resolve-default-principal.utility.js +1 -0
- package/dist/esm/utility/authorization/resolve-default-principal.utility.js.map +1 -1
- package/dist/esm/utility/dto/build-decorator.utility.js +14 -4
- package/dist/esm/utility/dto/build-decorator.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate/cache-key.utility.d.ts +1 -1
- package/dist/esm/utility/dto/generate/cache-key.utility.js +2 -2
- package/dist/esm/utility/dto/generate/cache-key.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate/core.utility.d.ts +3 -1
- package/dist/esm/utility/dto/generate/core.utility.js +46 -44
- package/dist/esm/utility/dto/generate/core.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate/dynamic.utility.js +11 -3
- package/dist/esm/utility/dto/generate/dynamic.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate/exception.utility.js +9 -1
- package/dist/esm/utility/dto/generate/exception.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate/filter-decorator.utility.d.ts +4 -1
- package/dist/esm/utility/dto/generate/filter-decorator.utility.js +17 -2
- package/dist/esm/utility/dto/generate/filter-decorator.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate/get-list-query-properties.utility.d.ts +25 -0
- package/dist/esm/utility/dto/generate/get-list-query-properties.utility.js +105 -0
- package/dist/esm/utility/dto/generate/get-list-query-properties.utility.js.map +1 -0
- package/dist/esm/utility/dto/generate/get-list-response.utility.js +9 -1
- package/dist/esm/utility/dto/generate/get-list-response.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate/manual-child.utility.js +1 -1
- package/dist/esm/utility/dto/get/get-list-query-base-class.utility.d.ts +3 -1
- package/dist/esm/utility/dto/get/get-list-query-base-class.utility.js +19 -4
- package/dist/esm/utility/dto/get/get-list-query-base-class.utility.js.map +1 -1
- package/dist/esm/utility/dto/handle-date-property.utility.js +9 -1
- package/dist/esm/utility/dto/handle-date-property.utility.js.map +1 -1
- package/dist/esm/utility/dto/is/property/index.d.ts +1 -0
- package/dist/esm/utility/dto/is/property/infrastructure-timestamp.utility.d.ts +7 -0
- package/dist/esm/utility/dto/is/property/infrastructure-timestamp.utility.js +43 -0
- package/dist/esm/utility/dto/is/property/infrastructure-timestamp.utility.js.map +1 -0
- package/dist/esm/utility/dto/is/property/should-be-marked.utility.d.ts +2 -2
- package/dist/esm/utility/dto/is/property/should-be-marked.utility.js +14 -5
- package/dist/esm/utility/dto/is/property/should-be-marked.utility.js.map +1 -1
- package/dist/esm/utility/dto/is/should-be-generated.utility.js +9 -1
- package/dist/esm/utility/dto/is/should-be-generated.utility.js.map +1 -1
- package/dist/esm/utility/dto/manual/index.d.ts +1 -0
- package/dist/esm/utility/dto/manual/property-metadata/get.utility.d.ts +8 -0
- package/dist/esm/utility/dto/manual/property-metadata/get.utility.js +30 -0
- package/dist/esm/utility/dto/manual/property-metadata/get.utility.js.map +1 -0
- package/dist/esm/utility/dto/manual/property-metadata/index.d.ts +2 -0
- package/dist/esm/utility/dto/manual/property-metadata/register.utility.d.ts +9 -0
- package/dist/esm/utility/dto/manual/property-metadata/register.utility.js +20 -0
- package/dist/esm/utility/dto/manual/property-metadata/register.utility.js.map +1 -0
- package/dist/esm/utility/queue-auto-context-retry.utility.js +1 -1
- package/dist/esm/utility/queue-auto-context-retry.utility.js.map +1 -1
- package/dist/esm/validator/has/paired-custom-suffixes-fields.validator.js +21 -25
- package/dist/esm/validator/has/paired-custom-suffixes-fields.validator.js.map +1 -1
- package/dist/esm/validator/must-match-one-of-schemas.validator.js +0 -1
- package/dist/esm/validator/must-match-one-of-schemas.validator.js.map +1 -1
- package/package.json +5 -2
- package/dist/cjs/class/api/function/transaction-scope.class.js +0 -34
- package/dist/cjs/class/api/function/transaction-scope.class.js.map +0 -1
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/customizer/index.d.ts +0 -1
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/customizer/map.constant.js +0 -29
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/customizer/map.constant.js.map +0 -1
- package/dist/cjs/constant/validator/index.d.ts +0 -1
- package/dist/cjs/constant/validator-has-paired-custom-suffixes-fields.constant.d.ts +0 -5
- package/dist/cjs/constant/validator-has-paired-custom-suffixes-fields.constant.js +0 -90
- package/dist/cjs/constant/validator-has-paired-custom-suffixes-fields.constant.js.map +0 -1
- package/dist/cjs/enum/decorator/api/function/transaction-mode.enum.js.map +0 -1
- package/dist/cjs/enum/utility/dto/manual/property-metadata/decorator.enum.js.map +0 -1
- package/dist/cjs/enum/validator/has-paired-custom-suffixes-fields-argument-type.enum.d.ts +0 -5
- package/dist/cjs/enum/validator/has-paired-custom-suffixes-fields-argument-type.enum.js +0 -9
- package/dist/cjs/enum/validator/has-paired-custom-suffixes-fields-argument-type.enum.js.map +0 -1
- package/dist/cjs/interface/class/api/subscriber/function/execution/context/data/index.d.ts +0 -1
- package/dist/cjs/interface/decorator/api/method/index.d.ts +0 -1
- package/dist/cjs/interface/decorator/api/method/properties.interface.d.ts +0 -5
- package/dist/cjs/type/class/api/subscriber/function/execution/context/index.d.ts +0 -1
- package/dist/cjs/type/decorator/api/route/custom/index.d.ts +0 -1
- package/dist/cjs/type/decorator/api/route/discriminated/index.d.ts +0 -1
- package/dist/cjs/type/utility/api/discriminator/index.d.ts +0 -1
- package/dist/cjs/type/utility/api/discriminator/validate/index.d.ts +0 -1
- package/dist/cjs/type/utility/api/get-default-string-format-properties/bigint-string/sign/index.d.ts +0 -2
- package/dist/cjs/type/utility/api/get-default-string-format-properties/bigint-string/sign/type.d.ts +0 -1
- package/dist/cjs/type/validator/has-paired-custom-suffixes-fields/operation-config.type.d.ts +0 -7
- package/dist/cjs/utility/api/discriminator/index.d.ts +0 -1
- package/dist/cjs/utility/api/discriminator/validate/config.utility.js.map +0 -1
- package/dist/cjs/utility/api/discriminator/validate/index.d.ts +0 -1
- package/dist/cjs/utility/api/get-default-string-format-properties/bigint-string/apply-options.utility.js.map +0 -1
- package/dist/cjs/utility/api/get-default-string-format-properties/bigint-string/index.d.ts +0 -1
- package/dist/cjs/utility/api/get-default-string-format-properties/customizer/apply.utility.js.map +0 -1
- package/dist/cjs/utility/api/get-default-string-format-properties/customizer/index.d.ts +0 -1
- package/dist/cjs/utility/api/route/dto/collect-with-registered-children.utility.js.map +0 -1
- package/dist/cjs/utility/api/route/dto/index.d.ts +0 -1
- package/dist/cjs/utility/api/route/validation/flatten-errors.utility.js.map +0 -1
- package/dist/cjs/utility/api/route/validation/index.d.ts +0 -1
- package/dist/cjs/utility/dto/manual/property-metadata.utility.d.ts +0 -16
- package/dist/cjs/utility/dto/manual/property-metadata.utility.js +0 -47
- package/dist/cjs/utility/dto/manual/property-metadata.utility.js.map +0 -1
- package/dist/esm/class/api/function/transaction-scope.class.js +0 -32
- package/dist/esm/class/api/function/transaction-scope.class.js.map +0 -1
- package/dist/esm/constant/utility/api/get-default-string-format-properties/customizer/index.d.ts +0 -1
- package/dist/esm/constant/utility/api/get-default-string-format-properties/customizer/map.constant.js +0 -27
- package/dist/esm/constant/utility/api/get-default-string-format-properties/customizer/map.constant.js.map +0 -1
- package/dist/esm/constant/validator/index.d.ts +0 -1
- package/dist/esm/constant/validator-has-paired-custom-suffixes-fields.constant.d.ts +0 -5
- package/dist/esm/constant/validator-has-paired-custom-suffixes-fields.constant.js +0 -88
- package/dist/esm/constant/validator-has-paired-custom-suffixes-fields.constant.js.map +0 -1
- package/dist/esm/enum/decorator/api/function/transaction-mode.enum.js.map +0 -1
- package/dist/esm/enum/utility/dto/manual/property-metadata/decorator.enum.js.map +0 -1
- package/dist/esm/enum/validator/has-paired-custom-suffixes-fields-argument-type.enum.d.ts +0 -5
- package/dist/esm/enum/validator/has-paired-custom-suffixes-fields-argument-type.enum.js +0 -9
- package/dist/esm/enum/validator/has-paired-custom-suffixes-fields-argument-type.enum.js.map +0 -1
- package/dist/esm/interface/class/api/subscriber/function/execution/context/data/index.d.ts +0 -1
- package/dist/esm/interface/decorator/api/method/index.d.ts +0 -1
- package/dist/esm/interface/decorator/api/method/properties.interface.d.ts +0 -5
- package/dist/esm/type/class/api/subscriber/function/execution/context/index.d.ts +0 -1
- package/dist/esm/type/decorator/api/route/custom/index.d.ts +0 -1
- package/dist/esm/type/decorator/api/route/discriminated/index.d.ts +0 -1
- package/dist/esm/type/utility/api/discriminator/index.d.ts +0 -1
- package/dist/esm/type/utility/api/discriminator/validate/index.d.ts +0 -1
- package/dist/esm/type/utility/api/get-default-string-format-properties/bigint-string/sign/index.d.ts +0 -2
- package/dist/esm/type/utility/api/get-default-string-format-properties/bigint-string/sign/type.d.ts +0 -1
- package/dist/esm/type/validator/has-paired-custom-suffixes-fields/operation-config.type.d.ts +0 -7
- package/dist/esm/utility/api/discriminator/index.d.ts +0 -1
- package/dist/esm/utility/api/discriminator/validate/config.utility.js.map +0 -1
- package/dist/esm/utility/api/discriminator/validate/index.d.ts +0 -1
- package/dist/esm/utility/api/get-default-string-format-properties/bigint-string/apply-options.utility.js.map +0 -1
- package/dist/esm/utility/api/get-default-string-format-properties/bigint-string/index.d.ts +0 -1
- package/dist/esm/utility/api/get-default-string-format-properties/customizer/apply.utility.js.map +0 -1
- package/dist/esm/utility/api/get-default-string-format-properties/customizer/index.d.ts +0 -1
- package/dist/esm/utility/api/route/dto/collect-with-registered-children.utility.js.map +0 -1
- package/dist/esm/utility/api/route/dto/index.d.ts +0 -1
- package/dist/esm/utility/api/route/validation/flatten-errors.utility.js.map +0 -1
- package/dist/esm/utility/api/route/validation/index.d.ts +0 -1
- package/dist/esm/utility/dto/manual/property-metadata.utility.d.ts +0 -16
- package/dist/esm/utility/dto/manual/property-metadata.utility.js +0 -44
- package/dist/esm/utility/dto/manual/property-metadata.utility.js.map +0 -1
- /package/dist/cjs/enum/decorator/api/function/{transaction-mode.enum.d.ts → transaction/mode.enum.d.ts} +0 -0
- /package/dist/cjs/enum/utility/{dto/manual/property-metadata/decorator.enum.d.ts → manual-dto-property-metadata-decorator.enum.d.ts} +0 -0
- /package/dist/cjs/{type/class/api/subscriber/function/execution → interface/class/api/subscriber/function/transaction}/index.d.ts +0 -0
- /package/dist/cjs/utility/api/route/{dto/collect-with-registered-children.utility.d.ts → dto-collect-with-registered-children.utility.d.ts} +0 -0
- /package/dist/cjs/utility/api/route/{validation/flatten-errors.utility.d.ts → validation-flatten-errors.utility.d.ts} +0 -0
- /package/dist/esm/enum/decorator/api/function/{transaction-mode.enum.d.ts → transaction/mode.enum.d.ts} +0 -0
- /package/dist/esm/enum/utility/{dto/manual/property-metadata/decorator.enum.d.ts → manual-dto-property-metadata-decorator.enum.d.ts} +0 -0
- /package/dist/esm/{type/class/api/subscriber/function/execution → interface/class/api/subscriber/function/transaction}/index.d.ts +0 -0
- /package/dist/esm/utility/api/route/{dto/collect-with-registered-children.utility.d.ts → dto-collect-with-registered-children.utility.d.ts} +0 -0
- /package/dist/esm/utility/api/route/{validation/flatten-errors.utility.d.ts → validation-flatten-errors.utility.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<p align="center">
|
|
9
9
|
<a aria-label="ElsiKora logo" href="https://elsikora.com">
|
|
10
10
|
<img src="https://img.shields.io/badge/MADE%20BY%20ElsiKora-333333.svg?style=for-the-badge" alt="ElsiKora">
|
|
11
|
-
</a> <img src="https://img.shields.io/badge/npm-blue.svg?style=for-the-badge&logo=npm&logoColor=white" alt="npm"> <img src="https://img.shields.io/badge/typescript-blue.svg?style=for-the-badge&logo=typescript&logoColor=white" alt="typescript"> <img src="https://img.shields.io/badge/nestjs-red.svg?style=for-the-badge&logo=nestjs&logoColor=white" alt="nestjs"> <img src="https://img.shields.io/badge/swagger-green.svg?style=for-the-badge&logo=swagger&logoColor=white" alt="swagger"> <img src="https://img.shields.io/badge/license-blue.svg?style=for-the-badge&logo=license&logoColor=white" alt="license"> <img src="https://img.shields.io/
|
|
11
|
+
</a> <img src="https://img.shields.io/badge/npm-blue.svg?style=for-the-badge&logo=npm&logoColor=white" alt="npm"> <img src="https://img.shields.io/badge/typescript-blue.svg?style=for-the-badge&logo=typescript&logoColor=white" alt="typescript"> <img src="https://img.shields.io/badge/nestjs-red.svg?style=for-the-badge&logo=nestjs&logoColor=white" alt="nestjs"> <img src="https://img.shields.io/badge/swagger-green.svg?style=for-the-badge&logo=swagger&logoColor=white" alt="swagger"> <img src="https://img.shields.io/badge/license-blue.svg?style=for-the-badge&logo=license&logoColor=white" alt="license"> <img src="https://img.shields.io/npm/v/@elsikora/nestjs-crud-automator.svg?style=for-the-badge&logo=npm&logoColor=white" alt="npm version">
|
|
12
12
|
</p>
|
|
13
13
|
|
|
14
14
|
## 📚 Table of Contents
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
- [Advanced Usage](#advanced-usage)
|
|
22
22
|
- [Subscriber System (Hooks)](#subscriber-system-hooks-intercepting-and-extending-logic)
|
|
23
23
|
- [Swagger Documentation](#swagger-documentation)
|
|
24
|
+
- [Migrating to 3.0](#-migrating-to-30)
|
|
24
25
|
- [Current Status](#-current-status)
|
|
25
26
|
- [AI Agent Skill](#-ai-agent-skill)
|
|
26
27
|
- [FAQ](#-faq)
|
|
@@ -66,20 +67,22 @@ yarn add @elsikora/nestjs-crud-automator
|
|
|
66
67
|
pnpm add @elsikora/nestjs-crud-automator
|
|
67
68
|
```
|
|
68
69
|
|
|
70
|
+
Plain installation currently resolves the published 2.10 line. The source-tree examples describe the unreleased 3.0 contract. Do not treat registry `latest` as 3.0 until an exact candidate exists; pin that published version and follow the [3.0 migration guide](https://elsikora.com/docs/nestjs-crud-automator/guides/migrating-to-3-0).
|
|
71
|
+
|
|
69
72
|
### Prerequisites
|
|
70
73
|
|
|
71
74
|
Make sure you have the following dependencies installed in your NestJS project:
|
|
72
75
|
|
|
73
|
-
- NestJS `@nestjs/common` and `@nestjs/core` `>=11.
|
|
76
|
+
- NestJS `@nestjs/common` and `@nestjs/core` `>=11.1.24`
|
|
74
77
|
- `@nestjs/passport` `>=11.0.5`
|
|
75
|
-
- `@nestjs/platform-fastify` `>=11.
|
|
78
|
+
- `@nestjs/platform-fastify` `>=11.1.24`
|
|
76
79
|
- `@nestjs/swagger` `>=11.0.3`
|
|
77
|
-
- `@nestjs/throttler` `>=6.
|
|
80
|
+
- `@nestjs/throttler` `>=6.5.0`
|
|
78
81
|
- TypeORM `>=0.3.20`
|
|
79
|
-
- Fastify `>=5.
|
|
80
|
-
- `class-validator` `>=0.
|
|
82
|
+
- Fastify `>=5.8.5`
|
|
83
|
+
- `class-validator` `>=0.15.1`
|
|
81
84
|
- `class-transformer` `>=0.5.1`
|
|
82
|
-
- `lodash` `>=4.
|
|
85
|
+
- `lodash` `>=4.18.1`
|
|
83
86
|
|
|
84
87
|
You might need to install these peer dependencies if they're not already in your project:
|
|
85
88
|
|
|
@@ -147,6 +150,8 @@ export class UserEntity {
|
|
|
147
150
|
}
|
|
148
151
|
```
|
|
149
152
|
|
|
153
|
+
`CREATED_AT`, `UPDATED_AT`, and `RECEIVED_AT` identify server-owned infrastructure timestamps. Generated CREATE, UPDATE, and PARTIAL_UPDATE body DTOs omit them while response DTOs retain them. Exclusion follows the semantic identifier, not the property name; use `DATE` for a writable business date.
|
|
154
|
+
|
|
150
155
|
### 2. Create a Service
|
|
151
156
|
|
|
152
157
|
Create a service with the `ApiService` decorator to add CRUD operations:
|
|
@@ -322,18 +327,22 @@ export class UserController {
|
|
|
322
327
|
Configure include-driven relation loading:
|
|
323
328
|
|
|
324
329
|
```typescript
|
|
325
|
-
import { ApiController, EApiControllerRelationReferenceShape, EApiRouteType } from "@elsikora/nestjs-crud-automator";
|
|
330
|
+
import { ApiController, EApiControllerRelationReferenceShape, EApiFunctionTransactionMode, EApiRouteType } from "@elsikora/nestjs-crud-automator";
|
|
326
331
|
|
|
327
332
|
@ApiController<PostEntity>({
|
|
328
333
|
entity: PostEntity,
|
|
329
334
|
name: "Posts",
|
|
330
335
|
routes: {
|
|
331
336
|
[EApiRouteType.CREATE]: {
|
|
337
|
+
transaction: { mode: EApiFunctionTransactionMode.REQUIRED },
|
|
332
338
|
relations: {
|
|
333
339
|
request: {
|
|
334
340
|
reference: { shape: EApiControllerRelationReferenceShape.SCALAR },
|
|
335
341
|
load: {
|
|
336
342
|
include: { author: true },
|
|
343
|
+
locks: {
|
|
344
|
+
author: { mode: "pessimistic_read" },
|
|
345
|
+
},
|
|
337
346
|
},
|
|
338
347
|
},
|
|
339
348
|
response: {
|
|
@@ -357,6 +366,8 @@ export class PostController {
|
|
|
357
366
|
|
|
358
367
|
Request relation `relations.request.load` enables hydration, and `relations.request.load.include` selects the direct request body relations to hydrate. Omitted service mappings use `${relationName}Service`; `relations.request.load.services` only overrides those controller property names. Nested request include objects are passed to the direct relation service as TypeORM `relations`; nested request references are not recursively hydrated. `load.relationLoadStrategy` can be used on request or response load configs to choose TypeORM `"join"` or `"query"` loading.
|
|
359
368
|
|
|
369
|
+
`relations.request.load.locks` applies native TypeORM `pessimistic_read` or `pessimistic_write` locks to configured direct relation service `get()` calls. Locks require an active Automator transaction and are acquired in `load.include` declaration order. Locked loads disable implicit TypeORM eager-relation joins. A locked direct relation with explicit nested includes must use `relationLoadStrategy: "query"` so the nested loads share the manager without inheriting the row lock. Service inputs remain entity-based: scalar relation references are an HTTP/controller hydration contract, not a widened service method contract.
|
|
370
|
+
|
|
360
371
|
### Custom DTOs
|
|
361
372
|
|
|
362
373
|
Use custom DTOs instead of auto-generated ones:
|
|
@@ -547,7 +558,27 @@ Declare the discriminator field, such as `channel` or `mode`, on every variant D
|
|
|
547
558
|
|
|
548
559
|
Root-level discriminator selection runs before Nest can infer a concrete DTO class, so global `ValidationPipe` options are not applied automatically to the selected variant. Add `validatorOptions` or `transformOptions` to the discriminated body config when a route needs specific validation or transformation settings.
|
|
549
560
|
|
|
550
|
-
Generated
|
|
561
|
+
Generated routes can opt into a route-owned transaction by reusing `EApiFunctionTransactionMode`:
|
|
562
|
+
|
|
563
|
+
```typescript
|
|
564
|
+
import { ApiController, EApiFunctionTransactionMode, EApiRouteType } from "@elsikora/nestjs-crud-automator";
|
|
565
|
+
|
|
566
|
+
@ApiController<UserEntity>({
|
|
567
|
+
entity: UserEntity,
|
|
568
|
+
routes: {
|
|
569
|
+
[EApiRouteType.CREATE]: {
|
|
570
|
+
transaction: { mode: EApiFunctionTransactionMode.REQUIRED },
|
|
571
|
+
},
|
|
572
|
+
},
|
|
573
|
+
})
|
|
574
|
+
export class UserController {
|
|
575
|
+
constructor(public service: UserService) {}
|
|
576
|
+
}
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
Omitted route transaction config and explicit `SUPPORTS` preserve generated-route behavior without opening a route transaction. `REQUIRED` opens a root transaction through the controller service repository when no Automator transaction is active; `MANDATORY` requires an active owner; `NONE` rejects an active transaction. Request transformation and validation run before a route-owned transaction. Request relation hydration, the generated service operation, and response relation reload then share one manager. When the route opens and owns the transaction, commit and post-commit lifecycle finish before response transformation, route-after subscribers, authorization result handling, and serialization; hydration, operation, or reload failure rolls back, while a later route-after failure cannot roll back the committed work. When `REQUIRED` joins an outer owner, that owner commits later. Custom routes continue to own transactions through custom functions or steps.
|
|
580
|
+
|
|
581
|
+
Generated service functions and explicit function decorators use the same transaction modes without exposing `EntityManager` as a public method argument:
|
|
551
582
|
|
|
552
583
|
```typescript
|
|
553
584
|
import { ApiService, ApiServiceBase, EApiFunctionTransactionMode, EApiFunctionType } from "@elsikora/nestjs-crud-automator";
|
|
@@ -598,13 +629,53 @@ private async recordPromotionAudit(user: UserEntity): Promise<void> {
|
|
|
598
629
|
|
|
599
630
|
Steps do not dispatch function subscribers, create route metadata, or define Swagger/authorization action identities. Step context intentionally exposes only `eventManager`, `repository`, and `getRepository`; use `@ApiFunctionCustom` plus `getApiFunctionContext()` when you need `operations` or lifecycle hooks.
|
|
600
631
|
|
|
632
|
+
`REQUIRED` opens one Automator-owned `QueryRunner` transaction when none exists. Nested `REQUIRED`, `MANDATORY`, and transactional `SUPPORTS` calls join the same manager and register ordered transaction events; only the outer route, function, or named scope owner commits, rolls back, and flushes post-transaction subscribers. `NONE` and nontransactional `SUPPORTS` do not produce post-transaction lifecycle work.
|
|
633
|
+
|
|
634
|
+
Before `onBeforeUpdate` runs, `ApiFunctionUpdate` performs one ordinary decorated GET through the active transaction manager when present. Update subscribers receive the incoming patch in `context.result`, the active manager repository when a transaction exists (otherwise the service base repository) in `context.DATA.repository`, and a top-level detached and frozen snapshot in `context.DATA.currentEntity: Readonly<TEntity>`. The snapshot is shallow: nested relations, arrays, JSON, dates, buffers, and lazy values retain aliases to the internal loaded entity, so mutating them can affect persistence. Automator merges the subscriber-returned patch into its internal loaded entity and does not issue a second explicit GET. A missing row keeps the GET error lifecycle, skips `onBeforeUpdate`, and then enters the UPDATE error lifecycle.
|
|
635
|
+
|
|
636
|
+
Use a named scope when application code, rather than a decorated function, must own the transaction:
|
|
637
|
+
|
|
638
|
+
```typescript
|
|
639
|
+
import { ApiFunctionTransactionScope } from "@elsikora/nestjs-crud-automator";
|
|
640
|
+
|
|
641
|
+
await ApiFunctionTransactionScope.runWithDataSource(dataSource, { name: "register-user" }, async () => {
|
|
642
|
+
await userService.create(body);
|
|
643
|
+
await auditService.create(entry);
|
|
644
|
+
});
|
|
645
|
+
```
|
|
646
|
+
|
|
647
|
+
The scope name is trimmed and must be non-empty. `runWithEntityManager()` is join-only: it accepts only the manager already bound to an active Automator transaction and never opens a second transaction.
|
|
648
|
+
|
|
649
|
+
Function subscribers can react once after the outer commit or rollback. The observed service must use `@ApiServiceObservable()`, and the subscriber must be registered as a Nest provider:
|
|
650
|
+
|
|
651
|
+
```typescript
|
|
652
|
+
import type { IApiSubscriberFunctionTransactionContext } from "@elsikora/nestjs-crud-automator";
|
|
653
|
+
|
|
654
|
+
import { ApiFunctionSubscriber, ApiFunctionSubscriberBase } from "@elsikora/nestjs-crud-automator";
|
|
655
|
+
|
|
656
|
+
@ApiFunctionSubscriber({ entity: UserEntity })
|
|
657
|
+
export class UserSubscriber extends ApiFunctionSubscriberBase<UserEntity> {
|
|
658
|
+
async onAfterCommit(context: IApiSubscriberFunctionTransactionContext): Promise<void> {
|
|
659
|
+
await recordCommittedEventCount(context.DATA.matchedEvents.length);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
async onAfterRollback(context: IApiSubscriberFunctionTransactionContext): Promise<void> {
|
|
663
|
+
await discardPendingWork(context.DATA.transaction.id);
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
```
|
|
667
|
+
|
|
668
|
+
`context.DATA` is readonly and contains the transaction UUID, immutable outer owner, all ordered events, and only the events matched by that subscriber. Events contain identity and status only; arguments, request bodies, entities, and results are never retained. Steps appear in `events` with trace type `STEP`, but they do not select or independently invoke subscribers.
|
|
669
|
+
|
|
670
|
+
Post-commit and post-rollback hooks run sequentially by subscriber priority and registration order. Hook failures do not stop later hooks. A committed transaction with failing hooks throws `ApiFunctionTransactionPostCommitException` with outcome `COMMITTED`; a failed database commit throws `ApiFunctionTransactionCommitUnknownOutcomeException` with outcome `UNKNOWN`; rollback handling failures throw `ApiFunctionTransactionRollbackException` while retaining the original operation error as the cause.
|
|
671
|
+
|
|
601
672
|
```typescript
|
|
602
673
|
// app.module.ts
|
|
603
674
|
import type { IApiAuthorizationPrincipal, IApiHookPermissionSource, IApiPolicyAttachmentSource, IApiPolicyDocumentSource, IApiResolvedPolicyAttachments } from "@elsikora/nestjs-crud-automator";
|
|
604
675
|
|
|
605
676
|
import { Module } from "@nestjs/common";
|
|
606
677
|
|
|
607
|
-
import { ApiAuthorizationModule, EApiAuthorizationPrincipalType, EApiPolicyEffect, EApiPolicySourceType, AuthorizationResolveDefaultPrincipal } from "@elsikora/nestjs-crud-automator";
|
|
678
|
+
import { ApiAuthorizationModule, EApiAuthorizationCacheMode, EApiAuthorizationPrincipalType, EApiPolicyEffect, EApiPolicySourceType, AuthorizationResolveDefaultPrincipal } from "@elsikora/nestjs-crud-automator";
|
|
608
679
|
|
|
609
680
|
const hookPermissionSource: IApiHookPermissionSource = {
|
|
610
681
|
async getPermissions(principal: IApiAuthorizationPrincipal): Promise<ReadonlyArray<string>> {
|
|
@@ -659,6 +730,9 @@ const iamDocumentSource: IApiPolicyDocumentSource = {
|
|
|
659
730
|
@Module({
|
|
660
731
|
imports: [
|
|
661
732
|
ApiAuthorizationModule.forRoot({
|
|
733
|
+
cache: {
|
|
734
|
+
mode: EApiAuthorizationCacheMode.SOURCE_FIRST,
|
|
735
|
+
},
|
|
662
736
|
hookPermissionSources: [hookPermissionSource],
|
|
663
737
|
iam: {
|
|
664
738
|
attachmentSources: [iamAttachmentSource],
|
|
@@ -690,6 +764,23 @@ const iamDocumentSource: IApiPolicyDocumentSource = {
|
|
|
690
764
|
export class AppModule {}
|
|
691
765
|
```
|
|
692
766
|
|
|
767
|
+
Authorization resolver caches default to `EApiAuthorizationCacheMode.SOURCE_FIRST`, so every hooks permission, IAM attachment, and IAM document evaluation reads its configured authoritative sources. This mode does not read or populate cross-request resolver maps, and source errors propagate without a stale cached fallback. The explicit setting above is optional, but documents the intended multi-instance contract.
|
|
768
|
+
|
|
769
|
+
`MEMORY` is an explicit single-process optimization. It requires both a positive `ttlMs` and `maxEntries`; the limit applies independently to the hook permission, IAM attachment, and IAM document cache:
|
|
770
|
+
|
|
771
|
+
```typescript
|
|
772
|
+
ApiAuthorizationModule.forRoot({
|
|
773
|
+
cache: {
|
|
774
|
+
maxEntries: 1_000,
|
|
775
|
+
mode: EApiAuthorizationCacheMode.MEMORY,
|
|
776
|
+
ttlMs: 30_000,
|
|
777
|
+
},
|
|
778
|
+
// sources...
|
|
779
|
+
});
|
|
780
|
+
```
|
|
781
|
+
|
|
782
|
+
Memory entries expire from insertion time, the oldest entry is evicted at the configured limit, and backing-data changes still require `ApiAuthorizationCacheInvalidationService` when immediate visibility is needed. In-memory mode is local to one application process; it is not a multi-instance consistency mechanism. Hooks policy-rule caching remains a separate, default-disabled `ApiAuthorizationPolicyRegistry` option.
|
|
783
|
+
|
|
693
784
|
Use `ApiAuthorizationModule.forRootAsync(...)` when the resolver or IAM sources must be real Nest providers with `Repository`, `DataSource`, or service dependencies. The module supports `imports`, `inject`, `useFactory`, `useClass`, and `useExisting`.
|
|
694
785
|
|
|
695
786
|
```typescript
|
|
@@ -987,24 +1078,24 @@ To get the subscriber system working, you need to follow **four mandatory steps*
|
|
|
987
1078
|
There are two types of subscribers that operate at different levels of abstraction:
|
|
988
1079
|
|
|
989
1080
|
1. **`ApiRouteSubscriberBase`** (Controller Level): Intercepts data at the highest level. Ideal for working with the HTTP context: headers, IP address, authenticated user (`request.user`). The hooks of this subscriber are called before and after the main logic of the _controller_.
|
|
990
|
-
2. **`ApiFunctionSubscriberBase`** (Service Level): Intercepts
|
|
1081
|
+
2. **`ApiFunctionSubscriberBase`** (Service Level): Intercepts decorated function execution, including the pre-UPDATE GET lifecycle and post-transaction completion when a transaction owner exists. Ideal for persistence-aware validation, enrichment, auditing, and confirmed-commit side effects.
|
|
991
1082
|
|
|
992
1083
|
#### Lifecycle and Execution Order
|
|
993
1084
|
|
|
994
1085
|
Understanding the order in which hooks are called is critically important:
|
|
995
1086
|
|
|
996
1087
|
1. **Incoming Request**
|
|
997
|
-
2. `onBefore...` hooks
|
|
998
|
-
3.
|
|
999
|
-
4.
|
|
1000
|
-
5.
|
|
1001
|
-
6.
|
|
1002
|
-
7.
|
|
1003
|
-
8.
|
|
1004
|
-
9.
|
|
1088
|
+
2. Route `onBefore...` hooks.
|
|
1089
|
+
3. Request transformation, validation, and typed GET_LIST parsing.
|
|
1090
|
+
4. Optional generated-route transaction resolution and request relation hydration.
|
|
1091
|
+
5. Decorated function lifecycle: UPDATE first runs one decorated GET and exposes `currentEntity`, then function `onBefore...`, repository work, and function `onAfter...` run.
|
|
1092
|
+
6. If the function opened the transaction, it commits and runs matching `onAfterCommit` before returning. A function that joined a route or scope owner leaves that outer transaction open.
|
|
1093
|
+
7. Generated response reload when applicable; it remains inside the transaction only when the route owns that boundary.
|
|
1094
|
+
8. If the route opened the transaction, it now commits and runs matching `onAfterCommit`. A joined scope owner commits later when its outer callback completes.
|
|
1095
|
+
9. Response transformation, route `onAfter...`, authorization result handling, and serialization.
|
|
1005
1096
|
10. **The response is sent to the client.**
|
|
1006
1097
|
|
|
1007
|
-
|
|
1098
|
+
Operation failures invoke the matching function or route error lifecycle, and an owning boundary performs confirmed rollback plus `onAfterRollback`. A post-commit hook failure is different: the database is already committed and Automator throws `ApiFunctionTransactionPostCommitException` with outcome `COMMITTED`, never a rollback result.
|
|
1008
1099
|
|
|
1009
1100
|
#### Example 1: Auditing with `ApiRouteSubscriberBase`
|
|
1010
1101
|
|
|
@@ -1203,32 +1294,44 @@ bootstrap();
|
|
|
1203
1294
|
The library provides advanced filtering capabilities for list endpoints:
|
|
1204
1295
|
|
|
1205
1296
|
```typescript
|
|
1206
|
-
// GET /users?username[operator]=cont&username[value]=john&createdAt[operator]=between&createdAt[values]=
|
|
1297
|
+
// GET /users?username[operator]=cont&username[value]=john&createdAt[operator]=between&createdAt[values]=2023-01-01&createdAt[values]=2023-12-31
|
|
1207
1298
|
```
|
|
1208
1299
|
|
|
1209
1300
|
This query would search for users with "john" in their username and created between Jan 1 and Dec 31, 2023.
|
|
1210
1301
|
|
|
1302
|
+
GET_LIST query DTOs remain dynamically generated from entity `ApiPropertyDescribe` and TypeORM metadata. A route can optionally narrow or overlay that baseline through `routes[GET_LIST].request[QUERY].filter` and `order`. The normalized plan drives the generated DTO, strict runtime parser, TypeORM predicates, and OpenAPI deep-object `oneOf` branches. Omitted sections retain legacy metadata-driven behavior.
|
|
1303
|
+
|
|
1304
|
+
Use `INHERIT` to overlay metadata-enabled fields or `REJECT` to create an allowlist. Enabled filters declare a non-empty operation set and optional `OMIT`, `REJECT`, or `USE_DEFAULT` missing behavior; `REJECT` returns `400 FILTER_REQUIRED`. Route plans cannot re-enable metadata-disabled fields. A manual QUERY DTO is mutually exclusive with generated filter/order config, while a manual RESPONSE DTO remains compatible.
|
|
1305
|
+
|
|
1306
|
+
## 🧭 Migrating to 3.0
|
|
1307
|
+
|
|
1308
|
+
The repository contains the unreleased 3.0 source contract while package versions remain owned by semantic-release. Review the [3.0 release notes](https://elsikora.com/docs/nestjs-crud-automator/guides/release-notes-3-0) for all accepted, rejected, and deferred changes, then follow [Migrating to 3.0](https://elsikora.com/docs/nestjs-crud-automator/guides/migrating-to-3-0) before pinning an exact published candidate.
|
|
1309
|
+
|
|
1310
|
+
The major migration covers semantic timestamp ownership, UPDATE `currentEntity`, named transaction scopes and post-transaction hooks, source-first authorization, opt-in generated-route transactions and relation locks, entity-based service relation inputs, typed GET_LIST query plans and strict `400` responses, the BigInt string sign enum, and retired validator configuration exports.
|
|
1311
|
+
|
|
1312
|
+
3.0 intentionally adds no immutable controller `baseWhere`, no `FULL` or `PRESERVE` relation projection, and no custom-only/default-disabled controller mode. Existing HOOKS/IAM scope remains the authorization boundary, custom-only controllers disable all six generated routes explicitly, and a consumer-side typed URL/bracket-filter builder remains deferred.
|
|
1313
|
+
|
|
1211
1314
|
## 🛣 Current Status
|
|
1212
1315
|
|
|
1213
|
-
The
|
|
1316
|
+
The latest published package remains on the 2.10 line until release automation publishes an exact 3.0 candidate. The current repository source contains the reviewed 3.0 contract for NestJS REST controllers backed by TypeORM repositories. Core CRUD generation, DTO generation, Swagger/OpenAPI metadata, request/response transformers, relation loading, pagination, filtering/sorting, subscribers, transactions, and HOOKS/IAM authorization are implemented.
|
|
1214
1317
|
|
|
1215
|
-
MongoDB, GraphQL, soft deletes, bulk operations, general-purpose cache integration, and custom parameter decorators are not part of the current public contract. Authorization policy
|
|
1318
|
+
MongoDB, GraphQL, soft deletes, bulk operations, general-purpose cache integration, and custom parameter decorators are not part of the current public contract. Authorization supports source-first resolver reads by default, bounded in-process resolver caching as an explicit opt-in, separate policy-rule caching, and explicit cache invalidation.
|
|
1216
1319
|
|
|
1217
1320
|
## 🛣 Roadmap
|
|
1218
1321
|
|
|
1219
1322
|
The roadmap is aligned with the current source contract rather than older docs-only examples.
|
|
1220
1323
|
|
|
1221
|
-
### Available
|
|
1324
|
+
### Available in Current Source
|
|
1222
1325
|
|
|
1223
1326
|
- REST CRUD controller and service generation for TypeORM entities
|
|
1224
|
-
- Entity-driven DTO generation for body, query, parameters, and response contracts
|
|
1327
|
+
- Entity-driven DTO generation for body, query, parameters, and response contracts, including controller-scoped typed GET_LIST query plans
|
|
1225
1328
|
- Custom DTO support, including nested manual DTOs and GET_LIST item response DTOs
|
|
1226
1329
|
- Swagger/OpenAPI metadata generation for generated and custom routes
|
|
1227
1330
|
- Pagination, filtering, sorting, request validators, and request/response transformers
|
|
1228
1331
|
- Request and response relation loading with configurable reference projection
|
|
1229
1332
|
- Route and function subscribers, including custom route/function hooks and error hooks
|
|
1230
1333
|
- Hooks-mode authorization policies and IAM-style policy document authorization
|
|
1231
|
-
- Function
|
|
1334
|
+
- Function, generated-route, and named transaction ownership with direct relation locks
|
|
1232
1335
|
- Environment-agnostic AI guidance bundle for AI-assisted development
|
|
1233
1336
|
|
|
1234
1337
|
### Current Focus
|
|
@@ -1274,7 +1377,7 @@ Yes, the GET_LIST operation automatically includes pagination with limit and pag
|
|
|
1274
1377
|
|
|
1275
1378
|
### How is filtering implemented?
|
|
1276
1379
|
|
|
1277
|
-
Filtering
|
|
1380
|
+
Filtering uses an operator-based bracket wire format with operations such as equals, contains, comparison, membership, and between. By default, fields come from entity metadata. A generated GET_LIST route may add a typed filter/order plan to narrow or allowlist direct scalar and one-hop to-one scalar paths such as `author.id[...]` or `author.username[...]`. Configured plans reject unknown, disabled, malformed, or disallowed input with `400` independently of the host `ValidationPipe`; omitted plans retain legacy metadata-driven behavior.
|
|
1278
1381
|
|
|
1279
1382
|
### Can I use this with NestJS microservices?
|
|
1280
1383
|
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
+
import { IApiAuthorizationModuleOptions } from '../../../interface/class/api/authorization';
|
|
2
|
+
import { ApiAuthorizationHookPermissionCache } from './hook';
|
|
3
|
+
import { ApiAuthorizationIamAttachmentCache, ApiAuthorizationIamDocumentCache } from './iam';
|
|
4
|
+
import { ApiAuthorizationPolicyRegistry } from './policy/registry.class';
|
|
1
5
|
import { OnApplicationBootstrap } from '@nestjs/common';
|
|
2
6
|
import { DiscoveryService } from '@nestjs/core';
|
|
3
|
-
import { ApiAuthorizationPolicyRegistry } from './policy/registry.class';
|
|
4
7
|
export declare class ApiAuthorizationBootstrapValidationService implements OnApplicationBootstrap {
|
|
5
8
|
private readonly discoveryService;
|
|
6
9
|
private readonly policyRegistry;
|
|
10
|
+
private readonly hookPermissionCache;
|
|
11
|
+
private readonly iamAttachmentCache;
|
|
12
|
+
private readonly iamDocumentCache;
|
|
7
13
|
private readonly documentSources;
|
|
8
|
-
|
|
14
|
+
private readonly moduleOptions;
|
|
15
|
+
constructor(discoveryService: DiscoveryService, policyRegistry: ApiAuthorizationPolicyRegistry, hookPermissionCache: ApiAuthorizationHookPermissionCache, iamAttachmentCache: ApiAuthorizationIamAttachmentCache, iamDocumentCache: ApiAuthorizationIamDocumentCache, documentSources?: ReadonlyArray<unknown>, moduleOptions?: IApiAuthorizationModuleOptions);
|
|
9
16
|
onApplicationBootstrap(): void;
|
|
10
17
|
private assertValidMode;
|
|
11
18
|
private validateController;
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var tslib_es6 = require('../../../external/tslib/tslib.es6.js');
|
|
4
|
+
var cache_class = require('./hook/permission/cache.class.js');
|
|
5
|
+
require('./hook/permission/resolver.class.js');
|
|
6
|
+
var cache_class$1 = require('./iam/attachment/cache.class.js');
|
|
7
|
+
require('./iam/attachment/resolver.class.js');
|
|
8
|
+
var cache_class$2 = require('./iam/document/cache.class.js');
|
|
9
|
+
require('./iam/document/resolver.class.js');
|
|
10
|
+
require('./iam/document/validator.class.js');
|
|
11
|
+
require('./iam/engine.class.js');
|
|
12
|
+
require('./iam/query-planner.class.js');
|
|
13
|
+
var registry_class = require('./policy/registry.class.js');
|
|
14
|
+
var moduleOptionsToken_constant = require('../../../constant/class/authorization/module-options-token.constant.js');
|
|
4
15
|
var documentSourcesToken_constant = require('../../../constant/class/authorization/policy/document-sources-token.constant.js');
|
|
5
16
|
var controller_constant = require('../../../constant/decorator/api/controller.constant.js');
|
|
6
17
|
require('../../../constant/decorator/api/function.constant.js');
|
|
7
18
|
var method_constant = require('../../../constant/decorator/api/method.constant.js');
|
|
19
|
+
require('../../../enum/class/authorization/cache-mode.enum.js');
|
|
8
20
|
require('../../../enum/class/authorization/decision-type.enum.js');
|
|
9
21
|
require('../../../enum/class/authorization/effect.enum.js');
|
|
10
22
|
var mode_enum = require('../../../enum/class/authorization/mode.enum.js');
|
|
@@ -20,19 +32,29 @@ var common = require('@nestjs/common');
|
|
|
20
32
|
var core = require('@nestjs/core');
|
|
21
33
|
var exception_utility = require('../../../utility/error/exception.utility.js');
|
|
22
34
|
var logger_utility = require('../../../utility/logger.utility.js');
|
|
23
|
-
var registry_class = require('./policy/registry.class.js');
|
|
24
35
|
|
|
25
36
|
const authorizationBootstrapValidationLogger = logger_utility.LoggerUtility.getLogger("ApiAuthorizationBootstrapValidationService");
|
|
26
37
|
exports.ApiAuthorizationBootstrapValidationService = class ApiAuthorizationBootstrapValidationService {
|
|
27
38
|
discoveryService;
|
|
28
39
|
policyRegistry;
|
|
40
|
+
hookPermissionCache;
|
|
41
|
+
iamAttachmentCache;
|
|
42
|
+
iamDocumentCache;
|
|
29
43
|
documentSources;
|
|
30
|
-
|
|
44
|
+
moduleOptions;
|
|
45
|
+
constructor(discoveryService, policyRegistry, hookPermissionCache, iamAttachmentCache, iamDocumentCache, documentSources = [], moduleOptions = {}) {
|
|
31
46
|
this.discoveryService = discoveryService;
|
|
32
47
|
this.policyRegistry = policyRegistry;
|
|
48
|
+
this.hookPermissionCache = hookPermissionCache;
|
|
49
|
+
this.iamAttachmentCache = iamAttachmentCache;
|
|
50
|
+
this.iamDocumentCache = iamDocumentCache;
|
|
33
51
|
this.documentSources = documentSources;
|
|
52
|
+
this.moduleOptions = moduleOptions;
|
|
34
53
|
}
|
|
35
54
|
onApplicationBootstrap() {
|
|
55
|
+
this.hookPermissionCache.configure(this.moduleOptions.cache);
|
|
56
|
+
this.iamAttachmentCache.configure(this.moduleOptions.cache);
|
|
57
|
+
this.iamDocumentCache.configure(this.moduleOptions.cache);
|
|
36
58
|
const controllerWrappers = this.discoveryService.getControllers();
|
|
37
59
|
authorizationBootstrapValidationLogger.verbose(`Starting authorization bootstrap validation for ${controllerWrappers.length} controllers.`);
|
|
38
60
|
for (const controllerWrapper of controllerWrappers) {
|
|
@@ -182,9 +204,14 @@ exports.ApiAuthorizationBootstrapValidationService = class ApiAuthorizationBoots
|
|
|
182
204
|
};
|
|
183
205
|
exports.ApiAuthorizationBootstrapValidationService = tslib_es6.__decorate([
|
|
184
206
|
common.Injectable(),
|
|
185
|
-
tslib_es6.__param(
|
|
186
|
-
tslib_es6.__param(
|
|
207
|
+
tslib_es6.__param(5, common.Inject(documentSourcesToken_constant.AUTHORIZATION_POLICY_DOCUMENT_SOURCES_TOKEN)),
|
|
208
|
+
tslib_es6.__param(5, common.Optional()),
|
|
209
|
+
tslib_es6.__param(6, common.Inject(moduleOptionsToken_constant.AUTHORIZATION_MODULE_OPTIONS_TOKEN)),
|
|
210
|
+
tslib_es6.__param(6, common.Optional()),
|
|
187
211
|
tslib_es6.__metadata("design:paramtypes", [core.DiscoveryService,
|
|
188
|
-
registry_class.ApiAuthorizationPolicyRegistry,
|
|
212
|
+
registry_class.ApiAuthorizationPolicyRegistry,
|
|
213
|
+
cache_class.ApiAuthorizationHookPermissionCache,
|
|
214
|
+
cache_class$1.ApiAuthorizationIamAttachmentCache,
|
|
215
|
+
cache_class$2.ApiAuthorizationIamDocumentCache, Array, Object])
|
|
189
216
|
], exports.ApiAuthorizationBootstrapValidationService);
|
|
190
217
|
//# sourceMappingURL=bootstrap-validation.service.class.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap-validation.service.class.js","sources":["../../../../../../src/class/api/authorization/bootstrap-validation.service.class.ts"],"sourcesContent":[null],"names":["LoggerUtility","ApiAuthorizationBootstrapValidationService","EApiAuthorizationMode","ErrorException","CONTROLLER_API_DECORATOR_CONSTANT","EApiRouteType","METHOD_API_DECORATOR_CONSTANT","__decorate","Injectable","__param","Inject","AUTHORIZATION_POLICY_DOCUMENT_SOURCES_TOKEN","Optional","DiscoveryService","ApiAuthorizationPolicyRegistry"],"mappings":"
|
|
1
|
+
{"version":3,"file":"bootstrap-validation.service.class.js","sources":["../../../../../../src/class/api/authorization/bootstrap-validation.service.class.ts"],"sourcesContent":[null],"names":["LoggerUtility","ApiAuthorizationBootstrapValidationService","EApiAuthorizationMode","ErrorException","CONTROLLER_API_DECORATOR_CONSTANT","EApiRouteType","METHOD_API_DECORATOR_CONSTANT","__decorate","Injectable","__param","Inject","AUTHORIZATION_POLICY_DOCUMENT_SOURCES_TOKEN","Optional","AUTHORIZATION_MODULE_OPTIONS_TOKEN","DiscoveryService","ApiAuthorizationPolicyRegistry","ApiAuthorizationHookPermissionCache","ApiAuthorizationIamAttachmentCache","ApiAuthorizationIamDocumentCache"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,MAAM,sCAAsC,GAAkBA,4BAAa,CAAC,SAAS,CAAC,4CAA4C,CAAC;AAGtHC,kDAA0C,GAAhD,MAAM,0CAA0C,CAAA;AAEpC,IAAA,gBAAA;AACA,IAAA,cAAA;AACA,IAAA,mBAAA;AACA,IAAA,kBAAA;AACA,IAAA,gBAAA;AAGA,IAAA,eAAA;AAGA,IAAA,aAAA;AAXlB,IAAA,WAAA,CACkB,gBAAkC,EAClC,cAA8C,EAC9C,mBAAwD,EACxD,kBAAsD,EACtD,gBAAkD,EAGlD,eAAA,GAA0C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,8DAAkC,CAAC,CAAA;IAC1CJ,iBAAA,CAAA,CAAA,EAAAG,eAAQ,EAAE,CAAA;+CATwBE,qBAAgB;QAClBC,6CAA8B;QACzBC,+CAAmC;QACpCC,gDAAkC;QACpCC,8CAAgC,EAAA,KAAA,EAAA,MAAA,CAAA;AANxD,CAAA,EAAAjB,kDAA0C,CAmOtD;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var tslib_es6 = require('../../../external/tslib/tslib.es6.js');
|
|
4
|
+
require('../../../enum/class/authorization/cache-mode.enum.js');
|
|
4
5
|
var decisionType_enum = require('../../../enum/class/authorization/decision-type.enum.js');
|
|
5
6
|
var effect_enum = require('../../../enum/class/authorization/effect.enum.js');
|
|
6
7
|
require('../../../enum/class/authorization/mode.enum.js');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.class.js","sources":["../../../../../../src/class/api/authorization/engine.class.ts"],"sourcesContent":[null],"names":["ApiAuthorizationEngine","EApiPolicyEffect","EApiAuthorizationDecisionType","AuthorizationScopeMergeWhere","__decorate","Injectable"],"mappings":"
|
|
1
|
+
{"version":3,"file":"engine.class.js","sources":["../../../../../../src/class/api/authorization/engine.class.ts"],"sourcesContent":[null],"names":["ApiAuthorizationEngine","EApiPolicyEffect","EApiAuthorizationDecisionType","AuthorizationScopeMergeWhere","__decorate","Injectable"],"mappings":";;;;;;;;;;;;;;;;AAWaA,8BAAsB,GAA5B,MAAM,sBAAsB,CAAA;IAC3B,MAAM,QAAQ,CAA8B,OAAqD,EAAA;AACvG,QAAA,MAAM,OAAO,GAAoC;YAChD,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,QAAQ,EAAE,OAAO,CAAC,QAAQ;SAC1B;QAED,MAAM,YAAY,GAAuC,EAAE;AAC3D,QAAA,IAAI,KAA4C;QAChD,MAAM,UAAU,GAAuE,EAAE;QAEzF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AM,MAAM,GAAY,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;QAErD,OAAO,MAAM,KAAK,IAAI;IACvB;AAEQ,IAAA,MAAM,UAAU,CAA8B,YAAmD,EAAE,IAAiC,EAAE,OAAwC,EAAA;AACrL,QAAA,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;AAChB,YAAA,OAAO,YAAY;QACpB;QAEA,MAAM,UAAU,GAA0C,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;QAEnF,IAAI,CAAC,UAAU,EAAE;AAChB,YAAA,OAAO,YAAY;QACpB;QAEA,IAAI,CAAC,YAAY,EAAE;AAClB,YAAA,OAAO,UAAU;QAClB;QAEA,OAAO;AACN,YAAA,GAAG,YAAY;AACf,YAAA,GAAG,UAAU;YACb,KAAK,EAAEE,oDAA4B,CAAC,YAAY,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC;SACzE;IACF;;AA5HYH,8BAAsB,GAAAI,oBAAA,CAAA;AADlC,IAAAC,iBAAU;AACE,CAAA,EAAAL,8BAAsB,CA6HlC;;"}
|
|
@@ -6,6 +6,7 @@ var metadataDecision_constant = require('../../../constant/class/authorization/m
|
|
|
6
6
|
var controller_constant = require('../../../constant/decorator/api/controller.constant.js');
|
|
7
7
|
require('../../../constant/decorator/api/function.constant.js');
|
|
8
8
|
var method_constant = require('../../../constant/decorator/api/method.constant.js');
|
|
9
|
+
require('../../../enum/class/authorization/cache-mode.enum.js');
|
|
9
10
|
require('../../../enum/class/authorization/decision-type.enum.js');
|
|
10
11
|
var effect_enum = require('../../../enum/class/authorization/effect.enum.js');
|
|
11
12
|
require('../../../enum/class/authorization/mode.enum.js');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guard.class.js","sources":["../../../../../../src/class/api/authorization/guard.class.ts"],"sourcesContent":[null],"names":["LoggerUtility","ApiAuthorizationGuard","ErrorException","EApiPolicyEffect","ForbiddenException","AUTHORIZATION_DECISION_METADATA_CONSTANT","CONTROLLER_API_DECORATOR_CONSTANT","METHOD_API_DECORATOR_CONSTANT","__decorate","Injectable","ApiAuthorizationRuntime"],"mappings":"
|
|
1
|
+
{"version":3,"file":"guard.class.js","sources":["../../../../../../src/class/api/authorization/guard.class.ts"],"sourcesContent":[null],"names":["LoggerUtility","ApiAuthorizationGuard","ErrorException","EApiPolicyEffect","ForbiddenException","AUTHORIZATION_DECISION_METADATA_CONSTANT","CONTROLLER_API_DECORATOR_CONSTANT","METHOD_API_DECORATOR_CONSTANT","__decorate","Injectable","ApiAuthorizationRuntime"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAkBA,MAAM,wBAAwB,GAAkBA,4BAAa,CAAC,SAAS,CAAC,uBAAuB,CAAC;AAGnFC,6BAAqB,GAA3B,MAAM,qBAAqB,CAAA;AACG,IAAA,OAAA;AAApC,IAAA,WAAA,CAAoC,OAAgC,EAAA;QAAhC,IAAA,CAAA,OAAO,GAAP,OAAO;IAA4B;IAEhE,MAAM,WAAW,CAAC,OAAyB,EAAA;QACjD,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE;AACzC,YAAA,wBAAwB,CAAC,KAAK,CAAC,6EAA6E,CAAC;AAE7G,YAAA,OAAO,IAAI;QACZ;QAEA,MAAM,UAAU,GAAyD,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC;AAElH,QAAA,IAAI,CAAC,UAAU,EAAE,aAAa,EAAE;AAC/B,YAAA,wBAAwB,CAAC,KAAK,CAAC,+EAA+E,CAAC;AAE/G,YAAA,MAAMC,gCAAc,CAAC,+EAA+E,CAAC;QACtG;QAEA,MAAM,aAAa,GAAsC,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC;AAC3F,QAAA,MAAM,iBAAiB,GAA6B,aAAa,CAAC,QAAQ,CAAC,MAAM;AACjF,QAAA,MAAM,MAAM,GAAW,aAAa,CAAC,QAAQ,CAAC,MAAM;QACpD,wBAAwB,CAAC,OAAO,CAA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,OAAO,OAAO,CAAC,EAAE,KAAK,QAAQ,GAAG,OAAO,CAAC,EAAE,GAAG,SAAS;YAC3D,UAAU,EAAE,OAAO,CAAC,MAAgC;YACpD,KAAK,EAAE,OAAO,CAAC,KAAkD;SACjE;IACF;AAEQ,IAAA,oBAAoB,CAAC,OAAyB,EAAA;AACrD,QAAA,MAAM,QAAQ,GAAkD,OAAO,CAAC,WAAW,CAACC,6CAA6B,CAAC,kBAAkB,EAAE,OAAO,CAAC,UAAU,EAAE,CAAkD;QAE5M,IAAI,QAAQ,EAAE;AACb,YAAA,OAAO,QAAQ;QAChB;QAEA,MAAM,WAAW,GAAW,OAAO,CAAC,UAAU,EAAE,CAAC,IAAI,IAAI,SAAS;AAClE,QAAA,wBAAwB,CAAC,KAAK,CAAC,mCAAmC,WAAW,CAAA,wCAAA,CAA0C,CAAC;AAExH,QAAA,MAAML,gCAAc,CAAC,CAAA,gCAAA,EAAmC,WAAW,CAAA,wCAAA,CAA0C,CAAC;IAC/G;;AA7GYD,6BAAqB,GAAAO,oBAAA,CAAA;AADjC,IAAAC,iBAAU,EAAE;+CAEiCC,qCAAuB,CAAA;AADxD,CAAA,EAAAT,6BAAqB,CA8GjC;;"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { IApiAuthorizationPrincipal } from '../../../../../interface/class/api/authorization';
|
|
2
|
+
import { TApiAuthorizationCacheOptions } from '../../../../../type/class/api/authorization';
|
|
2
3
|
export declare class ApiAuthorizationHookPermissionCache {
|
|
3
4
|
private readonly CACHE;
|
|
4
5
|
clear(): void;
|
|
6
|
+
configure(options?: TApiAuthorizationCacheOptions): void;
|
|
5
7
|
get(principal: IApiAuthorizationPrincipal): ReadonlyArray<string> | undefined;
|
|
6
8
|
set(principal: IApiAuthorizationPrincipal, permissions: ReadonlyArray<string>): void;
|
|
7
9
|
private createPrincipalCacheKey;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var tslib_es6 = require('../../../../../external/tslib/tslib.es6.js');
|
|
4
|
+
var cache_class = require('../../resolver/cache.class.js');
|
|
4
5
|
var common = require('@nestjs/common');
|
|
5
6
|
|
|
6
7
|
exports.ApiAuthorizationHookPermissionCache = class ApiAuthorizationHookPermissionCache {
|
|
7
|
-
CACHE = new
|
|
8
|
+
CACHE = new cache_class.ApiAuthorizationResolverCache();
|
|
8
9
|
clear() {
|
|
9
10
|
this.CACHE.clear();
|
|
10
11
|
}
|
|
12
|
+
configure(options) {
|
|
13
|
+
this.CACHE.configure(options);
|
|
14
|
+
}
|
|
11
15
|
get(principal) {
|
|
12
16
|
return this.CACHE.get(this.createPrincipalCacheKey(principal));
|
|
13
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.class.js","sources":["../../../../../../../../src/class/api/authorization/hook/permission/cache.class.ts"],"sourcesContent":[null],"names":["ApiAuthorizationHookPermissionCache","__decorate","Injectable"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cache.class.js","sources":["../../../../../../../../src/class/api/authorization/hook/permission/cache.class.ts"],"sourcesContent":[null],"names":["ApiAuthorizationHookPermissionCache","ApiAuthorizationResolverCache","__decorate","Injectable"],"mappings":";;;;;;AAOaA,2CAAmC,GAAzC,MAAM,mCAAmC,CAAA;AAC9B,IAAA,KAAK,GAAyD,IAAIC,yCAA6B,EAAyB;IAElI,KAAK,GAAA;AACX,QAAA,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;IACnB;AAEO,IAAA,SAAS,CAAC,OAAuC,EAAA;AACvD,QAAA,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC;IAC9B;AAEO,IAAA,GAAG,CAAC,SAAqC,EAAA;AAC/C,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;IAC/D;IAEO,GAAG,CAAC,SAAqC,EAAE,WAAkC,EAAA;AACnF,QAAA,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,uBAAuB,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC;IACrE;AAEQ,IAAA,uBAAuB,CAAC,SAAqC,EAAA;QACpE,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;IACtD;AAEQ,IAAA,cAAc,CAAC,KAAc,EAAA;AACpC,QAAA,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;AACzB,YAAA,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAa,KAAK,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAC/D;QAEA,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AACxC,YAAA,OAAO,KAAK;QACb;QAEA,MAAM,eAAe,GAA4B,EAAE;QACnD,MAAM,WAAW,GAA4B,KAAgC;QAC7E,MAAM,UAAU,GAAkB,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAY,EAAE,KAAa,KAAK,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AAE/H,QAAA,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE;AAC7B,YAAA,eAAe,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAC7D;AAEA,QAAA,OAAO,eAAe;IACvB;;AAzCYD,2CAAmC,GAAAE,oBAAA,CAAA;AAD/C,IAAAC,iBAAU;AACE,CAAA,EAAAH,2CAAmC,CA0C/C;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var tslib_es6 = require('../../../../../external/tslib/tslib.es6.js');
|
|
4
|
+
var cache_class = require('./cache.class.js');
|
|
4
5
|
var hookPermissionSourcesToken_constant = require('../../../../../constant/class/authorization/hook-permission-sources-token.constant.js');
|
|
5
6
|
var common = require('@nestjs/common');
|
|
6
7
|
var logger_utility = require('../../../../../utility/logger.utility.js');
|
|
7
|
-
var cache_class = require('./cache.class.js');
|
|
8
8
|
|
|
9
9
|
const hookPermissionResolverLogger = logger_utility.LoggerUtility.getLogger("ApiAuthorizationHookPermissionResolver");
|
|
10
10
|
exports.ApiAuthorizationHookPermissionResolver = class ApiAuthorizationHookPermissionResolver {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolver.class.js","sources":["../../../../../../../../src/class/api/authorization/hook/permission/resolver.class.ts"],"sourcesContent":[null],"names":["LoggerUtility","ApiAuthorizationHookPermissionResolver","__decorate","Injectable","__param","Inject","AUTHORIZATION_HOOK_PERMISSION_SOURCES_TOKEN","Optional","ApiAuthorizationHookPermissionCache"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"resolver.class.js","sources":["../../../../../../../../src/class/api/authorization/hook/permission/resolver.class.ts"],"sourcesContent":[null],"names":["LoggerUtility","ApiAuthorizationHookPermissionResolver","__decorate","Injectable","__param","Inject","AUTHORIZATION_HOOK_PERMISSION_SOURCES_TOKEN","Optional","ApiAuthorizationHookPermissionCache"],"mappings":";;;;;;;;AAOA,MAAM,4BAA4B,GAAkBA,4BAAa,CAAC,SAAS,CAAC,wCAAwC,CAAC;AAGxGC,8CAAsC,GAA5C,MAAM,sCAAsC,CAAA;AAEhC,IAAA,KAAA;AAGA,IAAA,OAAA;IAJlB,WAAA,CACkB,KAA0C,EAG1C,OAAA,GAAmD,EAAE,EAAA;QAHrD,IAAA,CAAA,KAAK,GAAL,KAAK;QAGL,IAAA,CAAA,OAAO,GAAP,OAAO;IACtB;IAEI,KAAK,GAAA;AACX,QAAA,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;IACnB;IAEO,MAAM,OAAO,CAAC,SAAqC,EAAA;QACzD,MAAM,iBAAiB,GAAsC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC;QAEtF,IA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vedPolicyAttachments } from '../../../../../interface/class/api/authorization';
|
|
2
|
+
import { TApiAuthorizationCacheOptions } from '../../../../../type/class/api/authorization';
|
|
2
3
|
export declare class ApiAuthorizationIamAttachmentCache {
|
|
3
4
|
private readonly CACHE;
|
|
4
5
|
clear(): void;
|
|
6
|
+
configure(options?: TApiAuthorizationCacheOptions): void;
|
|
5
7
|
get(principal: IApiAuthorizationPrincipal): IApiResolvedPolicyAttachments | undefined;
|
|
6
8
|
set(principal: IApiAuthorizationPrincipal, attachments: IApiResolvedPolicyAttachments): void;
|
|
7
9
|
private createPrincipalCacheKey;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var tslib_es6 = require('../../../../../external/tslib/tslib.es6.js');
|
|
4
|
+
var cache_class = require('../../resolver/cache.class.js');
|
|
4
5
|
var common = require('@nestjs/common');
|
|
5
6
|
|
|
6
7
|
exports.ApiAuthorizationIamAttachmentCache = class ApiAuthorizationIamAttachmentCache {
|
|
7
|
-
CACHE = new
|
|
8
|
+
CACHE = new cache_class.ApiAuthorizationResolverCache();
|
|
8
9
|
clear() {
|
|
9
10
|
this.CACHE.clear();
|
|
10
11
|
}
|
|
12
|
+
configure(options) {
|
|
13
|
+
this.CACHE.configure(options);
|
|
14
|
+
}
|
|
11
15
|
get(principal) {
|
|
12
16
|
return this.CACHE.get(this.createPrincipalCacheKey(principal));
|
|
13
17
|
}
|