@elsikora/nestjs-crud-automator 1.20.0-dev.1 → 1.21.0-dev.1
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 +14 -10
- package/dist/cjs/class/api/authorization/engine.class.js +2 -2
- package/dist/cjs/class/api/authorization/engine.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/guard.class.js +6 -6
- package/dist/cjs/class/api/authorization/guard.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/policy/base.class.d.ts +10 -17
- package/dist/cjs/class/api/authorization/policy/base.class.js +16 -12
- package/dist/cjs/class/api/authorization/policy/base.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/policy/discovery-service.class.js +4 -4
- package/dist/cjs/class/api/authorization/policy/discovery-service.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/policy/executor.class.js +3 -6
- package/dist/cjs/class/api/authorization/policy/executor.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/policy/registry.class.js +3 -3
- package/dist/cjs/class/api/authorization/policy/registry.class.js.map +1 -1
- package/dist/cjs/class/api/subscriber/executor.class.d.ts +5 -5
- package/dist/cjs/class/api/subscriber/registry.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/exception/details/foreign-key-violation.class.d.ts +1 -1
- package/dist/cjs/class/utility/dto/exception/details/foreign-key-violation.class.js +5 -5
- 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.d.ts +1 -1
- package/dist/cjs/class/utility/dto/exception/details/unique-violation.class.js +5 -5
- package/dist/cjs/class/utility/dto/exception/details/unique-violation.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/index.d.ts +3 -0
- package/dist/cjs/class/utility/dto/property/factory/number.class.js +1 -1
- package/dist/cjs/class/utility/dto/property/factory/relation.class.js +3 -3
- package/dist/cjs/class/utility/dto/property/factory/relation.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/property/index.d.ts +1 -0
- package/dist/cjs/class/utility/dto/strategy/body.class.js +1 -1
- package/dist/cjs/class/utility/dto/strategy/query.class.js +1 -1
- package/dist/cjs/class/utility/dto/strategy/request.class.js +1 -1
- package/dist/cjs/class/utility/dto/strategy/response.class.js +1 -1
- package/dist/cjs/class/utility/index.d.ts +1 -0
- package/dist/cjs/constant/class/authorization/index.d.ts +3 -3
- package/dist/cjs/constant/class/authorization/metadata-decision.constant.js +9 -0
- package/dist/cjs/constant/class/authorization/metadata-decision.constant.js.map +1 -0
- package/dist/cjs/constant/class/authorization/policy-decorator.constant.js +11 -0
- package/dist/cjs/constant/class/authorization/policy-decorator.constant.js.map +1 -0
- package/dist/cjs/constant/class/authorization/token-registry.constant.js +7 -0
- package/dist/cjs/constant/class/authorization/token-registry.constant.js.map +1 -0
- package/dist/cjs/constant/class/index.d.ts +1 -0
- package/dist/cjs/constant/decorator/api/function.constant.d.ts +1 -1
- package/dist/cjs/constant/decorator/api/function.constant.js +3 -2
- package/dist/cjs/constant/decorator/api/function.constant.js.map +1 -1
- package/dist/cjs/constant/decorator/index.d.ts +1 -0
- package/dist/cjs/constant/factory-dto-get-list-query.constant.js +17 -0
- package/dist/cjs/constant/factory-dto-get-list-query.constant.js.map +1 -0
- package/dist/cjs/constant/index.d.ts +5 -5
- package/dist/cjs/constant/interface/index.d.ts +1 -0
- package/dist/cjs/constant/utility/dto/constant.js +1 -1
- package/dist/cjs/constant/utility/index.d.ts +1 -0
- package/dist/cjs/constant/validator/index.d.ts +1 -1
- package/dist/cjs/constant/validator-has-paired-custom-suffixes-fields.constant.d.ts +5 -0
- package/dist/cjs/constant/validator-has-paired-custom-suffixes-fields.constant.js +90 -0
- package/dist/cjs/constant/validator-has-paired-custom-suffixes-fields.constant.js.map +1 -0
- package/dist/cjs/decorator/api/authorization-policy.decorator.d.ts +10 -0
- package/dist/cjs/decorator/api/authorization-policy.decorator.js +27 -0
- package/dist/cjs/decorator/api/authorization-policy.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/controller/decorator.js +2 -2
- package/dist/cjs/decorator/api/controller/decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/create.decorator.js +21 -21
- package/dist/cjs/decorator/api/function/create.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/decorator.js +15 -15
- package/dist/cjs/decorator/api/function/decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/delete.decorator.js +23 -23
- package/dist/cjs/decorator/api/function/delete.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get/decorator.d.ts +10 -0
- package/dist/cjs/decorator/api/function/get/decorator.js +127 -0
- package/dist/cjs/decorator/api/function/get/decorator.js.map +1 -0
- package/dist/cjs/decorator/api/function/get/index.d.ts +3 -0
- package/dist/cjs/decorator/api/function/get/list.decorator.d.ts +10 -0
- package/dist/cjs/decorator/api/function/get/list.decorator.js +147 -0
- package/dist/cjs/decorator/api/function/get/list.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/function/get/many.decorator.d.ts +10 -0
- package/dist/cjs/decorator/api/function/get/many.decorator.js +127 -0
- package/dist/cjs/decorator/api/function/get/many.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/function/index.d.ts +1 -3
- package/dist/cjs/decorator/api/function/update.decorator.js +25 -25
- package/dist/cjs/decorator/api/function/update.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/index.d.ts +1 -2
- package/dist/cjs/decorator/api/method.decorator.js +9 -9
- package/dist/cjs/decorator/api/method.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/boolean.decorator.js +1 -1
- package/dist/cjs/decorator/api/property/copy.decorator.js +8 -8
- package/dist/cjs/decorator/api/property/copy.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/date.decorator.js +1 -1
- package/dist/cjs/decorator/api/property/number.decorator.js +1 -1
- package/dist/cjs/decorator/api/property/string.decorator.js +1 -1
- package/dist/cjs/decorator/api/property/uuid.decorator.js +1 -1
- package/dist/cjs/decorator/api/service/decorator.d.ts +11 -0
- package/dist/cjs/decorator/api/service/decorator.js +221 -0
- package/dist/cjs/decorator/api/service/decorator.js.map +1 -0
- package/dist/cjs/decorator/api/service/index.d.ts +1 -0
- package/dist/cjs/decorator/index.d.ts +1 -0
- package/dist/cjs/enum/class/authorization/index.d.ts +1 -1
- package/dist/cjs/enum/class/authorization/policy-on-type.enum.js +7 -0
- package/dist/cjs/enum/class/authorization/policy-on-type.enum.js.map +1 -0
- package/dist/cjs/enum/class/index.d.ts +1 -0
- package/dist/cjs/enum/decorator/api/function-type.enum.js +12 -0
- package/dist/cjs/enum/decorator/api/function-type.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/index.d.ts +1 -1
- package/dist/cjs/enum/decorator/index.d.ts +1 -0
- package/dist/cjs/enum/filter/index.d.ts +2 -0
- package/dist/cjs/enum/filter/operation.enum.js +123 -0
- package/dist/cjs/enum/filter/operation.enum.js.map +1 -0
- package/dist/cjs/enum/filter/order-direction.enum.js +8 -0
- package/dist/cjs/enum/filter/order-direction.enum.js.map +1 -0
- package/dist/cjs/enum/index.d.ts +1 -2
- package/dist/cjs/enum/utility/exception-details-type.enum.js +8 -0
- package/dist/cjs/enum/utility/exception-details-type.enum.js.map +1 -0
- package/dist/cjs/enum/utility/index.d.ts +1 -0
- package/dist/cjs/factory/api-controller.factory.d.ts +20 -0
- package/dist/cjs/factory/api-controller.factory.js +485 -0
- package/dist/cjs/factory/api-controller.factory.js.map +1 -0
- package/dist/cjs/factory/index.d.ts +1 -0
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +122 -117
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interface/api/authentication-request.interface.d.ts +7 -0
- package/dist/cjs/interface/api/index.d.ts +3 -0
- package/dist/cjs/interface/api/request-validator.interface.d.ts +8 -0
- package/dist/cjs/interface/class/api/authorization/policy/build-options.interface.d.ts +1 -1
- package/dist/cjs/interface/class/api/authorization/policy/subscriber/context/data.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/subscriber/function/error-execution-context.interface.d.ts +12 -0
- package/dist/cjs/interface/class/api/subscriber/function/execution/context-data.interface.d.ts +59 -0
- package/dist/cjs/interface/class/api/subscriber/function/execution/context.interface.d.ts +29 -0
- package/dist/cjs/interface/class/api/subscriber/function/execution/index.d.ts +2 -0
- package/dist/cjs/interface/class/api/subscriber/function/index.d.ts +2 -0
- package/dist/cjs/interface/class/api/subscriber/function.interface.d.ts +29 -27
- package/dist/cjs/interface/class/api/subscriber/index.d.ts +2 -6
- package/dist/cjs/interface/class/api/subscriber/route/error-execution-context.interface.d.ts +12 -0
- package/dist/cjs/interface/class/api/subscriber/route/execution/context-data.interface.d.ts +82 -0
- package/dist/cjs/interface/class/api/subscriber/route/execution/context.interface.d.ts +29 -0
- package/dist/cjs/interface/class/api/subscriber/route/execution/index.d.ts +2 -0
- package/dist/cjs/interface/class/api/subscriber/route/index.d.ts +2 -0
- package/dist/cjs/interface/class/api/subscriber/route.interface.d.ts +86 -26
- package/dist/cjs/interface/class/dto-strategy.interface.d.ts +5 -0
- package/dist/cjs/interface/class/index.d.ts +1 -1
- package/dist/cjs/interface/decorator/api/controller/properties/index.d.ts +1 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/auto-dto-config.interface.d.ts +1 -1
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/index.d.ts +3 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/interface.d.ts +10 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request.interface.d.ts +8 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/response.interface.d.ts +7 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/index.d.ts +2 -5
- package/dist/cjs/interface/decorator/api/controller/properties/route/with/auto-dto.interface.d.ts +6 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/with/dto.interface.d.ts +7 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/with/index.d.ts +2 -0
- package/dist/cjs/interface/decorator/api/function/get/executor-properties.interface.d.ts +10 -0
- package/dist/cjs/interface/decorator/api/function/get/index.d.ts +3 -0
- package/dist/cjs/interface/decorator/api/function/get/list-executor-properties.interface.d.ts +10 -0
- package/dist/cjs/interface/decorator/api/function/get/many-executor-properties.interface.d.ts +10 -0
- package/dist/cjs/interface/decorator/api/function/index.d.ts +1 -3
- package/dist/cjs/interface/decorator/index.d.ts +1 -0
- package/dist/cjs/interface/index.d.ts +1 -3
- package/dist/cjs/interface/utility/api/index.d.ts +1 -0
- package/dist/cjs/interface/utility/dto-generate-cache-key.interface.d.ts +9 -0
- package/dist/cjs/interface/utility/index.d.ts +2 -2
- package/dist/cjs/interface/validator/index.d.ts +1 -1
- package/dist/cjs/interface/validator-must-match-one-of-schemas-discriminator-config.interface.d.ts +6 -0
- package/dist/cjs/module/api/authorization.module.js +3 -3
- package/dist/cjs/module/api/authorization.module.js.map +1 -1
- package/dist/cjs/type/class/api/authorization/policy/before/create-result.type.d.ts +5 -0
- package/dist/cjs/type/class/api/authorization/policy/before/delete-result.type.d.ts +5 -0
- package/dist/cjs/type/class/api/authorization/policy/before/get/index.d.ts +2 -0
- package/dist/cjs/type/class/api/authorization/policy/before/get/list-result.type.d.ts +5 -0
- package/dist/cjs/type/class/api/authorization/policy/before/get/result.type.d.ts +5 -0
- package/dist/cjs/type/class/api/authorization/policy/before/index.d.ts +5 -0
- package/dist/cjs/type/class/api/authorization/policy/before/partial-update-result.type.d.ts +5 -0
- package/dist/cjs/type/class/api/authorization/policy/before/update-result.type.d.ts +5 -0
- package/dist/cjs/type/class/api/authorization/policy/custom-action-result.type.d.ts +4 -0
- package/dist/cjs/type/class/api/authorization/policy/index.d.ts +2 -0
- package/dist/cjs/type/class/api/authorization/policy/policy-subscriber-rule-result.type.d.ts +1 -1
- package/dist/cjs/type/class/api/subscriber/function/after/create-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/function/after/delete-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/function/after/get/context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/function/after/get/list-context.type.d.ts +4 -3
- package/dist/cjs/type/class/api/subscriber/function/after/get/many-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/function/after/update-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/function/before/create-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/function/before/delete-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/function/before/get/context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/function/before/get/list-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/function/before/get/many-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/function/before/update-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/route/after/create-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/route/after/delete-context.type.d.ts +3 -3
- package/dist/cjs/type/class/api/subscriber/route/after/get/context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/route/after/get/index.d.ts +0 -1
- package/dist/cjs/type/class/api/subscriber/route/after/get/list-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/route/after/index.d.ts +1 -0
- package/dist/cjs/type/class/api/subscriber/route/after/partial-update-context.type.d.ts +4 -0
- package/dist/cjs/type/class/api/subscriber/route/after/update-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/route/before/create-context.type.d.ts +7 -3
- package/dist/cjs/type/class/api/subscriber/route/before/delete-context.type.d.ts +9 -3
- package/dist/cjs/type/class/api/subscriber/route/before/get/context.type.d.ts +9 -3
- package/dist/cjs/type/class/api/subscriber/route/before/get/index.d.ts +0 -1
- package/dist/cjs/type/class/api/subscriber/route/before/get/list-context.type.d.ts +11 -3
- package/dist/cjs/type/class/api/subscriber/route/before/index.d.ts +1 -0
- package/dist/cjs/type/class/api/subscriber/route/before/partial-update-context.type.d.ts +12 -0
- package/dist/cjs/type/class/api/subscriber/route/before/update-context.type.d.ts +8 -3
- package/dist/cjs/type/class/controller-method.type.d.ts +5 -0
- package/dist/cjs/type/class/index.d.ts +1 -1
- package/dist/cjs/type/decorator/api/controller/get-list-query.type.d.ts +1 -1
- package/dist/cjs/type/decorator/api/controller/properties/index.d.ts +1 -0
- package/dist/cjs/type/decorator/api/controller/properties/route/base/index.d.ts +2 -0
- package/dist/cjs/type/decorator/api/controller/properties/route/base/request/index.d.ts +2 -0
- package/dist/cjs/type/decorator/api/controller/properties/route/base/request/relations.type.d.ts +18 -0
- package/dist/cjs/type/decorator/api/controller/properties/route/base/request/transformers.type.d.ts +10 -0
- package/dist/cjs/type/decorator/api/controller/properties/route/base/response-transformers.type.d.ts +10 -0
- package/dist/cjs/type/decorator/api/controller/properties/route/index.d.ts +1 -3
- package/dist/cjs/type/decorator/api/function/get/index.d.ts +3 -0
- package/dist/cjs/type/decorator/api/function/get/list/index.d.ts +1 -0
- package/dist/cjs/type/decorator/api/function/get/list/properties/index.d.ts +2 -0
- package/dist/cjs/type/decorator/api/function/index.d.ts +2 -6
- package/dist/cjs/type/decorator/api/function/update/index.d.ts +2 -0
- package/dist/cjs/type/decorator/api/index.d.ts +5 -0
- package/dist/cjs/type/decorator/api/property/default/index.d.ts +1 -0
- package/dist/cjs/type/decorator/api/property/describe/properties/base/dto-properties.type.d.ts +2 -0
- package/dist/cjs/type/decorator/api/property/describe/properties/base/index.d.ts +2 -0
- package/dist/cjs/type/decorator/api/property/describe/properties/base/properties.type.d.ts +10 -0
- package/dist/cjs/type/decorator/api/property/describe/properties/index.d.ts +1 -2
- package/dist/cjs/type/decorator/index.d.ts +1 -0
- package/dist/cjs/type/factory/api/controller/index.d.ts +1 -3
- package/dist/cjs/type/factory/api/controller/method/index.d.ts +3 -0
- package/dist/cjs/type/factory/api/controller/method/map.type.d.ts +13 -0
- package/dist/cjs/type/factory/api/controller/method/name-map.type.d.ts +5 -0
- package/dist/cjs/type/factory/api/controller/method/name.type.d.ts +4 -0
- package/dist/cjs/type/factory/api/controller/target-methods.type.d.ts +1 -2
- package/dist/cjs/type/factory/api/index.d.ts +1 -0
- package/dist/cjs/type/factory/index.d.ts +1 -0
- package/dist/cjs/type/utility/api/controller/index.d.ts +1 -0
- package/dist/cjs/type/utility/api/controller/transform-data/data.type.d.ts +1 -1
- package/dist/cjs/type/utility/api/index.d.ts +1 -0
- package/dist/cjs/type/utility/date/index.d.ts +2 -0
- package/dist/cjs/type/utility/date/range-keys.type.d.ts +4 -0
- package/dist/cjs/type/utility/dto/generate/allowed-combination.type.d.ts +9 -0
- package/dist/cjs/type/utility/dto/generate/index.d.ts +3 -0
- package/dist/cjs/type/utility/dto/generate/is-allowed-combination.type.d.ts +3 -0
- package/dist/cjs/type/utility/dto/index.d.ts +1 -3
- package/dist/cjs/type/utility/filter-keys.type.d.ts +1 -1
- package/dist/cjs/type/utility/index.d.ts +1 -2
- package/dist/cjs/type/validator/index.d.ts +1 -0
- package/dist/cjs/utility/api/controller/apply/decorators.utility.d.ts +20 -0
- package/dist/cjs/utility/api/controller/apply/decorators.utility.js +95 -0
- package/dist/cjs/utility/api/controller/apply/decorators.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/apply/index.d.ts +2 -0
- package/dist/cjs/utility/api/controller/apply/metadata.utility.d.ts +18 -0
- package/dist/cjs/utility/api/controller/apply/metadata.utility.js +90 -0
- package/dist/cjs/utility/api/controller/apply/metadata.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/get/index.d.ts +2 -0
- package/dist/cjs/utility/api/controller/get/method-name.utility.d.ts +8 -0
- package/dist/cjs/utility/api/controller/get/method-name.utility.js +17 -0
- package/dist/cjs/utility/api/controller/get/method-name.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/get/primary-column.utility.d.ts +12 -0
- package/dist/cjs/utility/api/controller/get/primary-column.utility.js +23 -0
- package/dist/cjs/utility/api/controller/get/primary-column.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/get-list/index.d.ts +1 -2
- package/dist/cjs/utility/api/controller/get-list/transform/filter.utility.d.ts +12 -0
- package/dist/cjs/utility/api/controller/get-list/transform/filter.utility.js +60 -0
- package/dist/cjs/utility/api/controller/get-list/transform/filter.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/get-list/transform/index.d.ts +2 -0
- package/dist/cjs/utility/api/controller/get-list/transform/operation.utility.d.ts +10 -0
- package/dist/cjs/utility/api/controller/get-list/transform/operation.utility.js +91 -0
- package/dist/cjs/utility/api/controller/get-list/transform/operation.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/handle-request-relations.utility.js +8 -8
- package/dist/cjs/utility/api/controller/handle-request-relations.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/index.d.ts +3 -6
- package/dist/cjs/utility/api/controller/transform-data.utility.js +10 -9
- package/dist/cjs/utility/api/controller/transform-data.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/validate-request.utility.d.ts +1 -1
- package/dist/cjs/utility/api/controller/validate-request.utility.js +2 -2
- package/dist/cjs/utility/api/controller/validate-request.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/write/dto-swagger.utility.d.ts +18 -0
- package/dist/cjs/utility/api/controller/write/dto-swagger.utility.js +96 -0
- package/dist/cjs/utility/api/controller/write/dto-swagger.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/write/index.d.ts +2 -0
- package/dist/cjs/utility/api/controller/write/method.utility.d.ts +17 -0
- package/dist/cjs/utility/api/controller/write/method.utility.js +33 -0
- package/dist/cjs/utility/api/controller/write/method.utility.js.map +1 -0
- package/dist/cjs/utility/api/get-default-string-format-properties.utility.d.ts +21 -0
- package/dist/cjs/utility/api/get-default-string-format-properties.utility.js +31 -0
- package/dist/cjs/utility/api/get-default-string-format-properties.utility.js.map +1 -0
- package/dist/cjs/utility/api/index.d.ts +1 -1
- package/dist/cjs/utility/authorization/decision/resolve-from-request.utility.d.ts +1 -1
- package/dist/cjs/utility/authorization/decision/resolve-from-request.utility.js +2 -2
- package/dist/cjs/utility/authorization/decision/resolve-from-request.utility.js.map +1 -1
- package/dist/cjs/utility/authorization/index.d.ts +2 -2
- package/dist/cjs/utility/authorization/resolve-default-subject.utility.d.ts +7 -0
- package/dist/cjs/utility/authorization/resolve-default-subject.utility.js.map +1 -0
- package/dist/cjs/utility/authorization/scope-merge-where.utility.d.ts +10 -0
- package/dist/cjs/utility/authorization/scope-merge-where.utility.js +32 -0
- package/dist/cjs/utility/authorization/scope-merge-where.utility.js.map +1 -0
- package/dist/cjs/utility/dto/auto/context/index.d.ts +2 -0
- package/dist/cjs/utility/dto/auto/context/pop.utility.js +38 -0
- package/dist/cjs/utility/dto/auto/context/pop.utility.js.map +1 -0
- package/dist/cjs/utility/dto/auto/context/push.utility.d.ts +9 -0
- package/dist/cjs/utility/dto/auto/context/push.utility.js +35 -0
- package/dist/cjs/utility/dto/auto/context/push.utility.js.map +1 -0
- package/dist/cjs/utility/dto/auto/index.d.ts +1 -0
- package/dist/cjs/utility/dto/build-decorator.utility.js +9 -9
- package/dist/cjs/utility/dto/build-decorator.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate/cache-key.utility.d.ts +7 -0
- package/dist/cjs/utility/dto/generate/cache-key.utility.js +13 -0
- package/dist/cjs/utility/dto/generate/cache-key.utility.js.map +1 -0
- package/dist/cjs/utility/dto/generate/core.utility.d.ts +21 -0
- package/dist/cjs/utility/dto/generate/core.utility.js +202 -0
- package/dist/cjs/utility/dto/generate/core.utility.js.map +1 -0
- package/dist/cjs/utility/dto/generate/decorator.utility.d.ts +19 -0
- package/dist/cjs/utility/dto/generate/decorator.utility.js +29 -0
- package/dist/cjs/utility/dto/generate/decorator.utility.js.map +1 -0
- package/dist/cjs/utility/dto/generate/dynamic.utility.d.ts +21 -0
- package/dist/cjs/utility/dto/generate/dynamic.utility.js +125 -0
- package/dist/cjs/utility/dto/generate/dynamic.utility.js.map +1 -0
- package/dist/cjs/utility/dto/generate/exception.utility.js +132 -0
- package/dist/cjs/utility/dto/generate/exception.utility.js.map +1 -0
- package/dist/cjs/utility/dto/generate/filter-decorator.utility.d.ts +12 -0
- package/dist/cjs/utility/dto/generate/filter-decorator.utility.js +60 -0
- package/dist/cjs/utility/dto/generate/filter-decorator.utility.js.map +1 -0
- package/dist/cjs/utility/dto/generate/get-list-response.utility.d.ts +12 -0
- package/dist/cjs/utility/dto/generate/get-list-response.utility.js +111 -0
- package/dist/cjs/utility/dto/generate/get-list-response.utility.js.map +1 -0
- package/dist/cjs/utility/dto/generate/index.d.ts +8 -0
- package/dist/cjs/utility/dto/generate/relation-response.utility.d.ts +14 -0
- package/dist/cjs/utility/dto/generate/relation-response.utility.js +31 -0
- package/dist/cjs/utility/dto/generate/relation-response.utility.js.map +1 -0
- package/dist/cjs/utility/dto/get/decorator-config.utility.d.ts +16 -0
- package/dist/cjs/utility/dto/get/decorator-config.utility.js +34 -0
- package/dist/cjs/utility/dto/get/decorator-config.utility.js.map +1 -0
- package/dist/cjs/utility/dto/get/get-list-query-base-class.utility.d.ts +16 -0
- package/dist/cjs/utility/dto/get/get-list-query-base-class.utility.js +105 -0
- package/dist/cjs/utility/dto/get/get-list-query-base-class.utility.js.map +1 -0
- package/dist/cjs/utility/dto/get/index.d.ts +2 -0
- package/dist/cjs/utility/dto/handle-date-property.utility.js +1 -1
- package/dist/cjs/utility/dto/index.d.ts +4 -15
- package/dist/cjs/utility/dto/is/index.d.ts +2 -0
- package/dist/cjs/utility/dto/is/property/exposed-for-guard.utility.d.ts +13 -0
- package/dist/cjs/utility/dto/is/property/exposed-for-guard.utility.js +23 -0
- package/dist/cjs/utility/dto/is/property/exposed-for-guard.utility.js.map +1 -0
- package/dist/cjs/utility/dto/is/property/index.d.ts +2 -0
- package/dist/cjs/utility/dto/is/property/should-be-marked.utility.d.ts +15 -0
- package/dist/cjs/utility/dto/is/property/should-be-marked.utility.js +54 -0
- package/dist/cjs/utility/dto/is/property/should-be-marked.utility.js.map +1 -0
- package/dist/cjs/utility/dto/is/should-be-generated.utility.d.ts +12 -0
- package/dist/cjs/utility/dto/is/should-be-generated.utility.js +49 -0
- package/dist/cjs/utility/dto/is/should-be-generated.utility.js.map +1 -0
- package/dist/cjs/utility/error/exception.utility.js +13 -0
- package/dist/cjs/utility/error/exception.utility.js.map +1 -0
- package/dist/cjs/utility/error/index.d.ts +2 -0
- package/dist/cjs/utility/error/string.utility.d.ts +9 -0
- package/dist/cjs/utility/error/string.utility.js +20 -0
- package/dist/cjs/utility/error/string.utility.js.map +1 -0
- package/dist/cjs/utility/generate-entity-information.utility.js +3 -3
- package/dist/cjs/utility/generate-entity-information.utility.js.map +1 -1
- package/dist/cjs/utility/get/auto-dto-context.utility.d.ts +7 -0
- package/dist/cjs/utility/get/auto-dto-context.utility.js +19 -0
- package/dist/cjs/utility/get/auto-dto-context.utility.js.map +1 -0
- package/dist/cjs/utility/get/entity-columns.utility.d.ts +8 -0
- package/dist/cjs/utility/get/entity-columns.utility.js +29 -0
- package/dist/cjs/utility/get/entity-columns.utility.js.map +1 -0
- package/dist/cjs/utility/get/index.d.ts +2 -0
- package/dist/cjs/utility/index.d.ts +3 -8
- package/dist/cjs/utility/is/entity/constructor.utility.d.ts +8 -0
- package/dist/cjs/utility/is/entity/constructor.utility.js +13 -0
- package/dist/cjs/utility/is/entity/constructor.utility.js.map +1 -0
- package/dist/cjs/utility/is/entity/factory.utility.d.ts +8 -0
- package/dist/cjs/utility/is/entity/factory.utility.js +15 -0
- package/dist/cjs/utility/is/entity/factory.utility.js.map +1 -0
- package/dist/cjs/utility/is/entity/index.d.ts +3 -0
- package/dist/cjs/utility/is/entity/literal.utility.d.ts +7 -0
- package/dist/cjs/utility/is/entity/literal.utility.js +13 -0
- package/dist/cjs/utility/is/entity/literal.utility.js.map +1 -0
- package/dist/cjs/utility/is/error-of-type.utility.d.ts +8 -0
- package/dist/cjs/utility/is/error-of-type.utility.js +61 -0
- package/dist/cjs/utility/is/error-of-type.utility.js.map +1 -0
- package/dist/cjs/utility/is/index.d.ts +2 -0
- package/dist/cjs/utility/queue-auto-context-retry.utility.js +2 -2
- package/dist/cjs/utility/queue-auto-context-retry.utility.js.map +1 -1
- package/dist/cjs/utility/resolve/decorator-context.utility.js +2 -2
- package/dist/cjs/utility/resolve/decorator-context.utility.js.map +1 -1
- package/dist/cjs/utility/resolve/property-entity.utility.js +8 -8
- package/dist/cjs/utility/resolve/property-entity.utility.js.map +1 -1
- package/dist/cjs/utility/with-resolved-property-entity.utility.js +2 -2
- package/dist/cjs/utility/with-resolved-property-entity.utility.js.map +1 -1
- package/dist/cjs/validator/has/at/index.d.ts +1 -0
- package/dist/cjs/validator/has/at/least/index.d.ts +1 -0
- package/dist/cjs/validator/has/at/least/one/and-only-one-of-listed-properties.validator.js +34 -0
- package/dist/cjs/validator/has/at/least/one/and-only-one-of-listed-properties.validator.js.map +1 -0
- package/dist/cjs/validator/has/at/least/one/index.d.ts +3 -0
- package/dist/cjs/validator/has/at/least/one/of-listed-properties.validator.js +30 -0
- package/dist/cjs/validator/has/at/least/one/of-listed-properties.validator.js.map +1 -0
- package/dist/cjs/validator/has/at/least/one/property.validator.js +18 -0
- package/dist/cjs/validator/has/at/least/one/property.validator.js.map +1 -0
- package/dist/cjs/validator/has/index.d.ts +2 -0
- package/dist/cjs/validator/has/paired-custom-suffixes-fields.validator.js +150 -0
- package/dist/cjs/validator/has/paired-custom-suffixes-fields.validator.js.map +1 -0
- package/dist/cjs/validator/index.d.ts +1 -4
- package/dist/esm/class/api/authorization/engine.class.js +1 -1
- package/dist/esm/class/api/authorization/guard.class.js +4 -4
- package/dist/esm/class/api/authorization/guard.class.js.map +1 -1
- package/dist/esm/class/api/authorization/policy/base.class.d.ts +10 -17
- package/dist/esm/class/api/authorization/policy/base.class.js +16 -12
- package/dist/esm/class/api/authorization/policy/base.class.js.map +1 -1
- package/dist/esm/class/api/authorization/policy/discovery-service.class.js +1 -1
- package/dist/esm/class/api/authorization/policy/executor.class.js +2 -5
- 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/subscriber/executor.class.d.ts +5 -5
- package/dist/esm/class/api/subscriber/registry.class.js.map +1 -1
- package/dist/esm/class/utility/dto/exception/details/foreign-key-violation.class.d.ts +1 -1
- package/dist/esm/class/utility/dto/exception/details/foreign-key-violation.class.js +2 -2
- package/dist/esm/class/utility/dto/exception/details/unique-violation.class.d.ts +1 -1
- package/dist/esm/class/utility/dto/exception/details/unique-violation.class.js +2 -2
- package/dist/esm/class/utility/dto/index.d.ts +3 -0
- package/dist/esm/class/utility/dto/property/factory/number.class.js +1 -1
- package/dist/esm/class/utility/dto/property/factory/relation.class.js +2 -2
- package/dist/esm/class/utility/dto/property/index.d.ts +1 -0
- package/dist/esm/class/utility/dto/strategy/body.class.js +1 -1
- package/dist/esm/class/utility/dto/strategy/query.class.js +1 -1
- package/dist/esm/class/utility/dto/strategy/request.class.js +1 -1
- package/dist/esm/class/utility/dto/strategy/response.class.js +1 -1
- package/dist/esm/class/utility/index.d.ts +1 -0
- package/dist/esm/constant/class/authorization/index.d.ts +3 -3
- package/dist/esm/constant/class/authorization/metadata-decision.constant.js +7 -0
- package/dist/esm/constant/class/authorization/metadata-decision.constant.js.map +1 -0
- package/dist/esm/constant/class/authorization/policy-decorator.constant.js +9 -0
- package/dist/esm/constant/class/authorization/policy-decorator.constant.js.map +1 -0
- package/dist/esm/constant/class/authorization/token-registry.constant.js +5 -0
- package/dist/esm/constant/class/authorization/token-registry.constant.js.map +1 -0
- package/dist/esm/constant/class/index.d.ts +1 -0
- package/dist/esm/constant/decorator/api/function.constant.d.ts +1 -1
- package/dist/esm/constant/decorator/api/function.constant.js +2 -1
- package/dist/esm/constant/decorator/api/function.constant.js.map +1 -1
- package/dist/esm/constant/decorator/index.d.ts +1 -0
- package/dist/esm/constant/factory-dto-get-list-query.constant.js +15 -0
- package/dist/esm/constant/factory-dto-get-list-query.constant.js.map +1 -0
- package/dist/esm/constant/index.d.ts +5 -5
- package/dist/esm/constant/interface/index.d.ts +1 -0
- package/dist/esm/constant/utility/dto/constant.js +1 -1
- package/dist/esm/constant/utility/index.d.ts +1 -0
- package/dist/esm/constant/validator/index.d.ts +1 -1
- package/dist/esm/constant/validator-has-paired-custom-suffixes-fields.constant.d.ts +5 -0
- package/dist/esm/constant/validator-has-paired-custom-suffixes-fields.constant.js +88 -0
- package/dist/esm/constant/validator-has-paired-custom-suffixes-fields.constant.js.map +1 -0
- package/dist/esm/decorator/api/authorization-policy.decorator.d.ts +10 -0
- package/dist/esm/decorator/api/authorization-policy.decorator.js +25 -0
- package/dist/esm/decorator/api/authorization-policy.decorator.js.map +1 -0
- package/dist/esm/decorator/api/controller/decorator.js +1 -1
- package/dist/esm/decorator/api/function/create.decorator.js +4 -4
- package/dist/esm/decorator/api/function/create.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/decorator.js +5 -5
- package/dist/esm/decorator/api/function/delete.decorator.js +5 -5
- package/dist/esm/decorator/api/function/delete.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get/decorator.d.ts +10 -0
- package/dist/esm/decorator/api/function/get/decorator.js +125 -0
- package/dist/esm/decorator/api/function/get/decorator.js.map +1 -0
- package/dist/esm/decorator/api/function/get/index.d.ts +3 -0
- package/dist/esm/decorator/api/function/get/list.decorator.d.ts +10 -0
- package/dist/esm/decorator/api/function/get/list.decorator.js +145 -0
- package/dist/esm/decorator/api/function/get/list.decorator.js.map +1 -0
- package/dist/esm/decorator/api/function/get/many.decorator.d.ts +10 -0
- package/dist/esm/decorator/api/function/get/many.decorator.js +125 -0
- package/dist/esm/decorator/api/function/get/many.decorator.js.map +1 -0
- package/dist/esm/decorator/api/function/index.d.ts +1 -3
- package/dist/esm/decorator/api/function/update.decorator.js +5 -5
- package/dist/esm/decorator/api/function/update.decorator.js.map +1 -1
- package/dist/esm/decorator/api/index.d.ts +1 -2
- package/dist/esm/decorator/api/method.decorator.js +2 -2
- package/dist/esm/decorator/api/property/boolean.decorator.js +1 -1
- package/dist/esm/decorator/api/property/copy.decorator.js +2 -2
- package/dist/esm/decorator/api/property/date.decorator.js +1 -1
- package/dist/esm/decorator/api/property/number.decorator.js +1 -1
- package/dist/esm/decorator/api/property/string.decorator.js +1 -1
- package/dist/esm/decorator/api/property/uuid.decorator.js +1 -1
- package/dist/esm/decorator/api/service/decorator.d.ts +11 -0
- package/dist/esm/decorator/api/service/decorator.js +219 -0
- package/dist/esm/decorator/api/service/decorator.js.map +1 -0
- package/dist/esm/decorator/api/service/index.d.ts +1 -0
- package/dist/esm/decorator/index.d.ts +1 -0
- package/dist/esm/enum/class/authorization/index.d.ts +1 -1
- package/dist/esm/enum/class/authorization/policy-on-type.enum.js +7 -0
- package/dist/esm/enum/class/authorization/policy-on-type.enum.js.map +1 -0
- package/dist/esm/enum/class/index.d.ts +1 -0
- package/dist/esm/enum/decorator/api/function-type.enum.js +12 -0
- package/dist/esm/enum/decorator/api/function-type.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/index.d.ts +1 -1
- package/dist/esm/enum/decorator/index.d.ts +1 -0
- package/dist/esm/enum/filter/index.d.ts +2 -0
- package/dist/esm/enum/filter/operation.enum.js +123 -0
- package/dist/esm/enum/filter/operation.enum.js.map +1 -0
- package/dist/esm/enum/filter/order-direction.enum.js +8 -0
- package/dist/esm/enum/filter/order-direction.enum.js.map +1 -0
- package/dist/esm/enum/index.d.ts +1 -2
- package/dist/esm/enum/utility/exception-details-type.enum.js +8 -0
- package/dist/esm/enum/utility/exception-details-type.enum.js.map +1 -0
- package/dist/esm/enum/utility/index.d.ts +1 -0
- package/dist/esm/factory/api-controller.factory.d.ts +20 -0
- package/dist/esm/factory/api-controller.factory.js +483 -0
- package/dist/esm/factory/api-controller.factory.js.map +1 -0
- package/dist/esm/factory/index.d.ts +1 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +54 -53
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interface/api/authentication-request.interface.d.ts +7 -0
- package/dist/esm/interface/api/index.d.ts +3 -0
- package/dist/esm/interface/api/request-validator.interface.d.ts +8 -0
- package/dist/esm/interface/class/api/authorization/policy/build-options.interface.d.ts +1 -1
- package/dist/esm/interface/class/api/authorization/policy/subscriber/context/data.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/subscriber/function/error-execution-context.interface.d.ts +12 -0
- package/dist/esm/interface/class/api/subscriber/function/execution/context-data.interface.d.ts +59 -0
- package/dist/esm/interface/class/api/subscriber/function/execution/context.interface.d.ts +29 -0
- package/dist/esm/interface/class/api/subscriber/function/execution/index.d.ts +2 -0
- package/dist/esm/interface/class/api/subscriber/function/index.d.ts +2 -0
- package/dist/esm/interface/class/api/subscriber/function.interface.d.ts +29 -27
- package/dist/esm/interface/class/api/subscriber/index.d.ts +2 -6
- package/dist/esm/interface/class/api/subscriber/route/error-execution-context.interface.d.ts +12 -0
- package/dist/esm/interface/class/api/subscriber/route/execution/context-data.interface.d.ts +82 -0
- package/dist/esm/interface/class/api/subscriber/route/execution/context.interface.d.ts +29 -0
- package/dist/esm/interface/class/api/subscriber/route/execution/index.d.ts +2 -0
- package/dist/esm/interface/class/api/subscriber/route/index.d.ts +2 -0
- package/dist/esm/interface/class/api/subscriber/route.interface.d.ts +86 -26
- package/dist/esm/interface/class/dto-strategy.interface.d.ts +5 -0
- package/dist/esm/interface/class/index.d.ts +1 -1
- package/dist/esm/interface/decorator/api/controller/properties/index.d.ts +1 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/auto-dto-config.interface.d.ts +1 -1
- package/dist/esm/interface/decorator/api/controller/properties/route/base/index.d.ts +3 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/interface.d.ts +10 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request.interface.d.ts +8 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/response.interface.d.ts +7 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/index.d.ts +2 -5
- package/dist/esm/interface/decorator/api/controller/properties/route/with/auto-dto.interface.d.ts +6 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/with/dto.interface.d.ts +7 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/with/index.d.ts +2 -0
- package/dist/esm/interface/decorator/api/function/get/executor-properties.interface.d.ts +10 -0
- package/dist/esm/interface/decorator/api/function/get/index.d.ts +3 -0
- package/dist/esm/interface/decorator/api/function/get/list-executor-properties.interface.d.ts +10 -0
- package/dist/esm/interface/decorator/api/function/get/many-executor-properties.interface.d.ts +10 -0
- package/dist/esm/interface/decorator/api/function/index.d.ts +1 -3
- package/dist/esm/interface/decorator/index.d.ts +1 -0
- package/dist/esm/interface/index.d.ts +1 -3
- package/dist/esm/interface/utility/api/index.d.ts +1 -0
- package/dist/esm/interface/utility/dto-generate-cache-key.interface.d.ts +9 -0
- package/dist/esm/interface/utility/index.d.ts +2 -2
- package/dist/esm/interface/validator/index.d.ts +1 -1
- package/dist/esm/interface/validator-must-match-one-of-schemas-discriminator-config.interface.d.ts +6 -0
- package/dist/esm/module/api/authorization.module.js +1 -1
- package/dist/esm/type/class/api/authorization/policy/before/create-result.type.d.ts +5 -0
- package/dist/esm/type/class/api/authorization/policy/before/delete-result.type.d.ts +5 -0
- package/dist/esm/type/class/api/authorization/policy/before/get/index.d.ts +2 -0
- package/dist/esm/type/class/api/authorization/policy/before/get/list-result.type.d.ts +5 -0
- package/dist/esm/type/class/api/authorization/policy/before/get/result.type.d.ts +5 -0
- package/dist/esm/type/class/api/authorization/policy/before/index.d.ts +5 -0
- package/dist/esm/type/class/api/authorization/policy/before/partial-update-result.type.d.ts +5 -0
- package/dist/esm/type/class/api/authorization/policy/before/update-result.type.d.ts +5 -0
- package/dist/esm/type/class/api/authorization/policy/custom-action-result.type.d.ts +4 -0
- package/dist/esm/type/class/api/authorization/policy/index.d.ts +2 -0
- package/dist/esm/type/class/api/authorization/policy/policy-subscriber-rule-result.type.d.ts +1 -1
- package/dist/esm/type/class/api/subscriber/function/after/create-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/function/after/delete-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/function/after/get/context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/function/after/get/list-context.type.d.ts +4 -3
- package/dist/esm/type/class/api/subscriber/function/after/get/many-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/function/after/update-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/function/before/create-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/function/before/delete-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/function/before/get/context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/function/before/get/list-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/function/before/get/many-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/function/before/update-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/route/after/create-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/route/after/delete-context.type.d.ts +3 -3
- package/dist/esm/type/class/api/subscriber/route/after/get/context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/route/after/get/index.d.ts +0 -1
- package/dist/esm/type/class/api/subscriber/route/after/get/list-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/route/after/index.d.ts +1 -0
- package/dist/esm/type/class/api/subscriber/route/after/partial-update-context.type.d.ts +4 -0
- package/dist/esm/type/class/api/subscriber/route/after/update-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/route/before/create-context.type.d.ts +7 -3
- package/dist/esm/type/class/api/subscriber/route/before/delete-context.type.d.ts +9 -3
- package/dist/esm/type/class/api/subscriber/route/before/get/context.type.d.ts +9 -3
- package/dist/esm/type/class/api/subscriber/route/before/get/index.d.ts +0 -1
- package/dist/esm/type/class/api/subscriber/route/before/get/list-context.type.d.ts +11 -3
- package/dist/esm/type/class/api/subscriber/route/before/index.d.ts +1 -0
- package/dist/esm/type/class/api/subscriber/route/before/partial-update-context.type.d.ts +12 -0
- package/dist/esm/type/class/api/subscriber/route/before/update-context.type.d.ts +8 -3
- package/dist/esm/type/class/controller-method.type.d.ts +5 -0
- package/dist/esm/type/class/index.d.ts +1 -1
- package/dist/esm/type/decorator/api/controller/get-list-query.type.d.ts +1 -1
- package/dist/esm/type/decorator/api/controller/properties/index.d.ts +1 -0
- package/dist/esm/type/decorator/api/controller/properties/route/base/index.d.ts +2 -0
- package/dist/esm/type/decorator/api/controller/properties/route/base/request/index.d.ts +2 -0
- package/dist/esm/type/decorator/api/controller/properties/route/base/request/relations.type.d.ts +18 -0
- package/dist/esm/type/decorator/api/controller/properties/route/base/request/transformers.type.d.ts +10 -0
- package/dist/esm/type/decorator/api/controller/properties/route/base/response-transformers.type.d.ts +10 -0
- package/dist/esm/type/decorator/api/controller/properties/route/index.d.ts +1 -3
- package/dist/esm/type/decorator/api/function/get/index.d.ts +3 -0
- package/dist/esm/type/decorator/api/function/get/list/index.d.ts +1 -0
- package/dist/esm/type/decorator/api/function/get/list/properties/index.d.ts +2 -0
- package/dist/esm/type/decorator/api/function/index.d.ts +2 -6
- package/dist/esm/type/decorator/api/function/update/index.d.ts +2 -0
- package/dist/esm/type/decorator/api/index.d.ts +5 -0
- package/dist/esm/type/decorator/api/property/default/index.d.ts +1 -0
- package/dist/esm/type/decorator/api/property/describe/properties/base/dto-properties.type.d.ts +2 -0
- package/dist/esm/type/decorator/api/property/describe/properties/base/index.d.ts +2 -0
- package/dist/esm/type/decorator/api/property/describe/properties/base/properties.type.d.ts +10 -0
- package/dist/esm/type/decorator/api/property/describe/properties/index.d.ts +1 -2
- package/dist/esm/type/decorator/index.d.ts +1 -0
- package/dist/esm/type/factory/api/controller/index.d.ts +1 -3
- package/dist/esm/type/factory/api/controller/method/index.d.ts +3 -0
- package/dist/esm/type/factory/api/controller/method/map.type.d.ts +13 -0
- package/dist/esm/type/factory/api/controller/method/name-map.type.d.ts +5 -0
- package/dist/esm/type/factory/api/controller/method/name.type.d.ts +4 -0
- package/dist/esm/type/factory/api/controller/target-methods.type.d.ts +1 -2
- package/dist/esm/type/factory/api/index.d.ts +1 -0
- package/dist/esm/type/factory/index.d.ts +1 -0
- package/dist/esm/type/utility/api/controller/index.d.ts +1 -0
- package/dist/esm/type/utility/api/controller/transform-data/data.type.d.ts +1 -1
- package/dist/esm/type/utility/api/index.d.ts +1 -0
- package/dist/esm/type/utility/date/index.d.ts +2 -0
- package/dist/esm/type/utility/date/range-keys.type.d.ts +4 -0
- package/dist/esm/type/utility/dto/generate/allowed-combination.type.d.ts +9 -0
- package/dist/esm/type/utility/dto/generate/index.d.ts +3 -0
- package/dist/esm/type/utility/dto/generate/is-allowed-combination.type.d.ts +3 -0
- package/dist/esm/type/utility/dto/index.d.ts +1 -3
- package/dist/esm/type/utility/filter-keys.type.d.ts +1 -1
- package/dist/esm/type/utility/index.d.ts +1 -2
- package/dist/esm/type/validator/index.d.ts +1 -0
- package/dist/esm/utility/api/controller/apply/decorators.utility.d.ts +20 -0
- package/dist/esm/utility/api/controller/apply/decorators.utility.js +93 -0
- package/dist/esm/utility/api/controller/apply/decorators.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/apply/index.d.ts +2 -0
- package/dist/esm/utility/api/controller/apply/metadata.utility.d.ts +18 -0
- package/dist/esm/utility/api/controller/apply/metadata.utility.js +88 -0
- package/dist/esm/utility/api/controller/apply/metadata.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/get/index.d.ts +2 -0
- package/dist/esm/utility/api/controller/get/method-name.utility.d.ts +8 -0
- package/dist/esm/utility/api/controller/get/method-name.utility.js +15 -0
- package/dist/esm/utility/api/controller/get/method-name.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/get/primary-column.utility.d.ts +12 -0
- package/dist/esm/utility/api/controller/get/primary-column.utility.js +21 -0
- package/dist/esm/utility/api/controller/get/primary-column.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/get-list/index.d.ts +1 -2
- package/dist/esm/utility/api/controller/get-list/transform/filter.utility.d.ts +12 -0
- package/dist/esm/utility/api/controller/get-list/transform/filter.utility.js +58 -0
- package/dist/esm/utility/api/controller/get-list/transform/filter.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/get-list/transform/index.d.ts +2 -0
- package/dist/esm/utility/api/controller/get-list/transform/operation.utility.d.ts +10 -0
- package/dist/esm/utility/api/controller/get-list/transform/operation.utility.js +89 -0
- package/dist/esm/utility/api/controller/get-list/transform/operation.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/handle-request-relations.utility.js +3 -3
- package/dist/esm/utility/api/controller/index.d.ts +3 -6
- package/dist/esm/utility/api/controller/transform-data.utility.js +3 -2
- package/dist/esm/utility/api/controller/transform-data.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/validate-request.utility.d.ts +1 -1
- package/dist/esm/utility/api/controller/validate-request.utility.js +1 -1
- package/dist/esm/utility/api/controller/write/dto-swagger.utility.d.ts +18 -0
- package/dist/esm/utility/api/controller/write/dto-swagger.utility.js +94 -0
- package/dist/esm/utility/api/controller/write/dto-swagger.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/write/index.d.ts +2 -0
- package/dist/esm/utility/api/controller/write/method.utility.d.ts +17 -0
- package/dist/esm/utility/api/controller/write/method.utility.js +31 -0
- package/dist/esm/utility/api/controller/write/method.utility.js.map +1 -0
- package/dist/esm/utility/api/get-default-string-format-properties.utility.d.ts +21 -0
- package/dist/esm/utility/api/get-default-string-format-properties.utility.js +29 -0
- package/dist/esm/utility/api/get-default-string-format-properties.utility.js.map +1 -0
- package/dist/esm/utility/api/index.d.ts +1 -1
- package/dist/esm/utility/authorization/decision/resolve-from-request.utility.d.ts +1 -1
- package/dist/esm/utility/authorization/decision/resolve-from-request.utility.js +1 -1
- package/dist/esm/utility/authorization/index.d.ts +2 -2
- package/dist/esm/utility/authorization/resolve-default-subject.utility.d.ts +7 -0
- package/dist/esm/utility/authorization/resolve-default-subject.utility.js.map +1 -0
- package/dist/esm/utility/authorization/scope-merge-where.utility.d.ts +10 -0
- package/dist/esm/utility/authorization/scope-merge-where.utility.js +30 -0
- package/dist/esm/utility/authorization/scope-merge-where.utility.js.map +1 -0
- package/dist/esm/utility/dto/auto/context/index.d.ts +2 -0
- package/dist/esm/utility/dto/auto/context/pop.utility.js +36 -0
- package/dist/esm/utility/dto/auto/context/pop.utility.js.map +1 -0
- package/dist/esm/utility/dto/auto/context/push.utility.d.ts +9 -0
- package/dist/esm/utility/dto/auto/context/push.utility.js +33 -0
- package/dist/esm/utility/dto/auto/context/push.utility.js.map +1 -0
- package/dist/esm/utility/dto/auto/index.d.ts +1 -0
- package/dist/esm/utility/dto/build-decorator.utility.js +4 -4
- package/dist/esm/utility/dto/generate/cache-key.utility.d.ts +7 -0
- package/dist/esm/utility/dto/generate/cache-key.utility.js +11 -0
- package/dist/esm/utility/dto/generate/cache-key.utility.js.map +1 -0
- package/dist/esm/utility/dto/generate/core.utility.d.ts +21 -0
- package/dist/esm/utility/dto/generate/core.utility.js +200 -0
- package/dist/esm/utility/dto/generate/core.utility.js.map +1 -0
- package/dist/esm/utility/dto/generate/decorator.utility.d.ts +19 -0
- package/dist/esm/utility/dto/generate/decorator.utility.js +27 -0
- package/dist/esm/utility/dto/generate/decorator.utility.js.map +1 -0
- package/dist/esm/utility/dto/generate/dynamic.utility.d.ts +21 -0
- package/dist/esm/utility/dto/generate/dynamic.utility.js +123 -0
- package/dist/esm/utility/dto/generate/dynamic.utility.js.map +1 -0
- package/dist/esm/utility/dto/generate/exception.utility.js +130 -0
- package/dist/esm/utility/dto/generate/exception.utility.js.map +1 -0
- package/dist/esm/utility/dto/generate/filter-decorator.utility.d.ts +12 -0
- package/dist/esm/utility/dto/generate/filter-decorator.utility.js +58 -0
- package/dist/esm/utility/dto/generate/filter-decorator.utility.js.map +1 -0
- package/dist/esm/utility/dto/generate/get-list-response.utility.d.ts +12 -0
- package/dist/esm/utility/dto/generate/get-list-response.utility.js +109 -0
- package/dist/esm/utility/dto/generate/get-list-response.utility.js.map +1 -0
- package/dist/esm/utility/dto/generate/index.d.ts +8 -0
- package/dist/esm/utility/dto/generate/relation-response.utility.d.ts +14 -0
- package/dist/esm/utility/dto/generate/relation-response.utility.js +29 -0
- package/dist/esm/utility/dto/generate/relation-response.utility.js.map +1 -0
- package/dist/esm/utility/dto/get/decorator-config.utility.d.ts +16 -0
- package/dist/esm/utility/dto/get/decorator-config.utility.js +32 -0
- package/dist/esm/utility/dto/get/decorator-config.utility.js.map +1 -0
- package/dist/esm/utility/dto/get/get-list-query-base-class.utility.d.ts +16 -0
- package/dist/esm/utility/dto/get/get-list-query-base-class.utility.js +103 -0
- package/dist/esm/utility/dto/get/get-list-query-base-class.utility.js.map +1 -0
- package/dist/esm/utility/dto/get/index.d.ts +2 -0
- package/dist/esm/utility/dto/handle-date-property.utility.js +1 -1
- package/dist/esm/utility/dto/index.d.ts +4 -15
- package/dist/esm/utility/dto/is/index.d.ts +2 -0
- package/dist/esm/utility/dto/is/property/exposed-for-guard.utility.d.ts +13 -0
- package/dist/esm/utility/dto/is/property/exposed-for-guard.utility.js +21 -0
- package/dist/esm/utility/dto/is/property/exposed-for-guard.utility.js.map +1 -0
- package/dist/esm/utility/dto/is/property/index.d.ts +2 -0
- package/dist/esm/utility/dto/is/property/should-be-marked.utility.d.ts +15 -0
- package/dist/esm/utility/dto/is/property/should-be-marked.utility.js +52 -0
- package/dist/esm/utility/dto/is/property/should-be-marked.utility.js.map +1 -0
- package/dist/esm/utility/dto/is/should-be-generated.utility.d.ts +12 -0
- package/dist/esm/utility/dto/is/should-be-generated.utility.js +47 -0
- package/dist/esm/utility/dto/is/should-be-generated.utility.js.map +1 -0
- package/dist/esm/utility/error/exception.utility.js +11 -0
- package/dist/esm/utility/error/exception.utility.js.map +1 -0
- package/dist/esm/utility/error/index.d.ts +2 -0
- package/dist/esm/utility/error/string.utility.d.ts +9 -0
- package/dist/esm/utility/error/string.utility.js +18 -0
- package/dist/esm/utility/error/string.utility.js.map +1 -0
- package/dist/esm/utility/generate-entity-information.utility.js +1 -1
- package/dist/esm/utility/get/auto-dto-context.utility.d.ts +7 -0
- package/dist/esm/utility/get/auto-dto-context.utility.js +17 -0
- package/dist/esm/utility/get/auto-dto-context.utility.js.map +1 -0
- package/dist/esm/utility/get/entity-columns.utility.d.ts +8 -0
- package/dist/esm/utility/get/entity-columns.utility.js +27 -0
- package/dist/esm/utility/get/entity-columns.utility.js.map +1 -0
- package/dist/esm/utility/get/index.d.ts +2 -0
- package/dist/esm/utility/index.d.ts +3 -8
- package/dist/esm/utility/is/entity/constructor.utility.d.ts +8 -0
- package/dist/esm/utility/is/entity/constructor.utility.js +11 -0
- package/dist/esm/utility/is/entity/constructor.utility.js.map +1 -0
- package/dist/esm/utility/is/entity/factory.utility.d.ts +8 -0
- package/dist/esm/utility/is/entity/factory.utility.js +13 -0
- package/dist/esm/utility/is/entity/factory.utility.js.map +1 -0
- package/dist/esm/utility/is/entity/index.d.ts +3 -0
- package/dist/esm/utility/is/entity/literal.utility.d.ts +7 -0
- package/dist/esm/utility/is/entity/literal.utility.js +11 -0
- package/dist/esm/utility/is/entity/literal.utility.js.map +1 -0
- package/dist/esm/utility/is/error-of-type.utility.d.ts +8 -0
- package/dist/esm/utility/is/error-of-type.utility.js +59 -0
- package/dist/esm/utility/is/error-of-type.utility.js.map +1 -0
- package/dist/esm/utility/is/index.d.ts +2 -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/utility/resolve/decorator-context.utility.js +1 -1
- package/dist/esm/utility/resolve/property-entity.utility.js +4 -4
- package/dist/esm/utility/with-resolved-property-entity.utility.js +1 -1
- package/dist/esm/validator/has/at/index.d.ts +1 -0
- package/dist/esm/validator/has/at/least/index.d.ts +1 -0
- package/dist/esm/validator/has/at/least/one/and-only-one-of-listed-properties.validator.js +34 -0
- package/dist/esm/validator/has/at/least/one/and-only-one-of-listed-properties.validator.js.map +1 -0
- package/dist/esm/validator/has/at/least/one/index.d.ts +3 -0
- package/dist/esm/validator/has/at/least/one/of-listed-properties.validator.js +30 -0
- package/dist/esm/validator/has/at/least/one/of-listed-properties.validator.js.map +1 -0
- package/dist/esm/validator/has/at/least/one/property.validator.js +18 -0
- package/dist/esm/validator/has/at/least/one/property.validator.js.map +1 -0
- package/dist/esm/validator/has/index.d.ts +2 -0
- package/dist/esm/validator/has/paired-custom-suffixes-fields.validator.js +150 -0
- package/dist/esm/validator/has/paired-custom-suffixes-fields.validator.js.map +1 -0
- package/dist/esm/validator/index.d.ts +1 -4
- package/package.json +1 -1
- package/dist/cjs/constant/class/authorization/metadata/decision.constant.js +0 -9
- package/dist/cjs/constant/class/authorization/metadata/decision.constant.js.map +0 -1
- package/dist/cjs/constant/class/authorization/metadata/index.d.ts +0 -1
- package/dist/cjs/constant/class/authorization/policy/decorator.constant.js +0 -11
- package/dist/cjs/constant/class/authorization/policy/decorator.constant.js.map +0 -1
- package/dist/cjs/constant/class/authorization/policy/index.d.ts +0 -1
- package/dist/cjs/constant/class/authorization/token/index.d.ts +0 -1
- package/dist/cjs/constant/class/authorization/token/registry.constant.js +0 -7
- package/dist/cjs/constant/class/authorization/token/registry.constant.js.map +0 -1
- package/dist/cjs/constant/factory/dto/get-list-query.constant.js +0 -17
- package/dist/cjs/constant/factory/dto/get-list-query.constant.js.map +0 -1
- package/dist/cjs/constant/factory/dto/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 -89
- package/dist/cjs/constant/validator/has-paired-custom-suffixes-fields.constant.js.map +0 -1
- package/dist/cjs/decorator/api/authorization/index.d.ts +0 -1
- package/dist/cjs/decorator/api/authorization/policy.decorator.d.ts +0 -10
- package/dist/cjs/decorator/api/authorization/policy.decorator.js +0 -27
- package/dist/cjs/decorator/api/authorization/policy.decorator.js.map +0 -1
- package/dist/cjs/decorator/api/function/get-list.decorator.d.ts +0 -10
- package/dist/cjs/decorator/api/function/get-list.decorator.js +0 -146
- package/dist/cjs/decorator/api/function/get-list.decorator.js.map +0 -1
- package/dist/cjs/decorator/api/function/get-many.decorator.d.ts +0 -10
- package/dist/cjs/decorator/api/function/get-many.decorator.js +0 -126
- package/dist/cjs/decorator/api/function/get-many.decorator.js.map +0 -1
- package/dist/cjs/decorator/api/function/get.decorator.d.ts +0 -10
- package/dist/cjs/decorator/api/function/get.decorator.js +0 -126
- package/dist/cjs/decorator/api/function/get.decorator.js.map +0 -1
- package/dist/cjs/decorator/api/service.decorator.d.ts +0 -11
- package/dist/cjs/decorator/api/service.decorator.js +0 -221
- package/dist/cjs/decorator/api/service.decorator.js.map +0 -1
- package/dist/cjs/enum/class/authorization/policy/index.d.ts +0 -1
- package/dist/cjs/enum/class/authorization/policy/on-type.enum.js +0 -7
- package/dist/cjs/enum/class/authorization/policy/on-type.enum.js.map +0 -1
- package/dist/cjs/enum/decorator/api/function/index.d.ts +0 -1
- package/dist/cjs/enum/decorator/api/function/type.enum.js +0 -12
- package/dist/cjs/enum/decorator/api/function/type.enum.js.map +0 -1
- package/dist/cjs/enum/filter-operation.enum.js +0 -123
- package/dist/cjs/enum/filter-operation.enum.js.map +0 -1
- package/dist/cjs/enum/filter-order-direction.enum.js +0 -8
- package/dist/cjs/enum/filter-order-direction.enum.js.map +0 -1
- package/dist/cjs/enum/utility/exception-details/index.d.ts +0 -1
- package/dist/cjs/enum/utility/exception-details/type.enum.js +0 -8
- package/dist/cjs/enum/utility/exception-details/type.enum.js.map +0 -1
- package/dist/cjs/factory/api/controller.factory.d.ts +0 -20
- package/dist/cjs/factory/api/controller.factory.js +0 -485
- package/dist/cjs/factory/api/controller.factory.js.map +0 -1
- package/dist/cjs/factory/api/index.d.ts +0 -1
- package/dist/cjs/interface/api-authentication-request.interface.d.ts +0 -7
- package/dist/cjs/interface/api-request-validator.interface.d.ts +0 -8
- package/dist/cjs/interface/class/api/subscriber/function-error-execution-context.interface.d.ts +0 -12
- package/dist/cjs/interface/class/api/subscriber/function-execution-context-data.interface.d.ts +0 -38
- package/dist/cjs/interface/class/api/subscriber/function-execution-context.interface.d.ts +0 -29
- package/dist/cjs/interface/class/api/subscriber/route-error-execution-context.interface.d.ts +0 -12
- package/dist/cjs/interface/class/api/subscriber/route-execution-context-data.interface.d.ts +0 -68
- package/dist/cjs/interface/class/api/subscriber/route-execution-context.interface.d.ts +0 -29
- package/dist/cjs/interface/class/dto/index.d.ts +0 -1
- package/dist/cjs/interface/class/dto/strategy.interface.d.ts +0 -5
- package/dist/cjs/interface/decorator/api/controller/properties/route/base-request.interface.d.ts +0 -8
- package/dist/cjs/interface/decorator/api/controller/properties/route/base-response.interface.d.ts +0 -7
- package/dist/cjs/interface/decorator/api/controller/properties/route/base.interface.d.ts +0 -10
- package/dist/cjs/interface/decorator/api/controller/properties/route/with-auto-dto.interface.d.ts +0 -6
- package/dist/cjs/interface/decorator/api/controller/properties/route/with-dto.interface.d.ts +0 -7
- package/dist/cjs/interface/decorator/api/function/get-executor-properties.interface.d.ts +0 -10
- package/dist/cjs/interface/decorator/api/function/get-list-executor-properties.interface.d.ts +0 -10
- package/dist/cjs/interface/decorator/api/function/get-many-executor-properties.interface.d.ts +0 -10
- package/dist/cjs/interface/utility/api/controller/index.d.ts +0 -1
- package/dist/cjs/interface/utility/dto/generate-cache-key.interface.d.ts +0 -9
- package/dist/cjs/interface/utility/dto/index.d.ts +0 -1
- package/dist/cjs/interface/validator/must-match-one-of-schemas-discriminator-config.interface.d.ts +0 -6
- package/dist/cjs/type/class/api/subscriber/route/after/get/many-context.type.d.ts +0 -4
- package/dist/cjs/type/class/api/subscriber/route/before/get/many-context.type.d.ts +0 -4
- package/dist/cjs/type/class/controller/index.d.ts +0 -1
- package/dist/cjs/type/class/controller/method.type.d.ts +0 -5
- package/dist/cjs/type/decorator/api/controller/properties/route/base-request-relations.type.d.ts +0 -18
- package/dist/cjs/type/decorator/api/controller/properties/route/base-request-transformers.type.d.ts +0 -10
- package/dist/cjs/type/decorator/api/controller/properties/route/base-response-transformers.type.d.ts +0 -10
- package/dist/cjs/type/decorator/api/property/describe/properties/base-dto-properties.type.d.ts +0 -2
- package/dist/cjs/type/decorator/api/property/describe/properties/base-properties.type.d.ts +0 -10
- package/dist/cjs/type/factory/api/controller/method-map.type.d.ts +0 -13
- package/dist/cjs/type/factory/api/controller/method-name-map.type.d.ts +0 -5
- package/dist/cjs/type/factory/api/controller/method-name.type.d.ts +0 -4
- package/dist/cjs/type/utility/date-range-keys.type.d.ts +0 -4
- package/dist/cjs/type/utility/dto/generate-allowed-combination.type.d.ts +0 -9
- package/dist/cjs/type/utility/dto/generate-is-allowed-combination.type.d.ts +0 -3
- package/dist/cjs/utility/api/controller/apply-decorators.utility.d.ts +0 -20
- package/dist/cjs/utility/api/controller/apply-decorators.utility.js +0 -95
- package/dist/cjs/utility/api/controller/apply-decorators.utility.js.map +0 -1
- package/dist/cjs/utility/api/controller/apply-metadata.utility.d.ts +0 -18
- package/dist/cjs/utility/api/controller/apply-metadata.utility.js +0 -90
- package/dist/cjs/utility/api/controller/apply-metadata.utility.js.map +0 -1
- package/dist/cjs/utility/api/controller/get-list/transform-filter.utility.d.ts +0 -12
- package/dist/cjs/utility/api/controller/get-list/transform-filter.utility.js +0 -60
- package/dist/cjs/utility/api/controller/get-list/transform-filter.utility.js.map +0 -1
- package/dist/cjs/utility/api/controller/get-list/transform-operation.utility.d.ts +0 -10
- package/dist/cjs/utility/api/controller/get-list/transform-operation.utility.js +0 -90
- package/dist/cjs/utility/api/controller/get-list/transform-operation.utility.js.map +0 -1
- package/dist/cjs/utility/api/controller/get-method-name.utility.d.ts +0 -8
- package/dist/cjs/utility/api/controller/get-method-name.utility.js +0 -17
- package/dist/cjs/utility/api/controller/get-method-name.utility.js.map +0 -1
- package/dist/cjs/utility/api/controller/get-primary-column.utility.d.ts +0 -12
- package/dist/cjs/utility/api/controller/get-primary-column.utility.js +0 -23
- package/dist/cjs/utility/api/controller/get-primary-column.utility.js.map +0 -1
- package/dist/cjs/utility/api/controller/write-dto-swagger.utility.d.ts +0 -18
- package/dist/cjs/utility/api/controller/write-dto-swagger.utility.js +0 -96
- package/dist/cjs/utility/api/controller/write-dto-swagger.utility.js.map +0 -1
- package/dist/cjs/utility/api/controller/write-method.utility.d.ts +0 -17
- package/dist/cjs/utility/api/controller/write-method.utility.js +0 -33
- package/dist/cjs/utility/api/controller/write-method.utility.js.map +0 -1
- package/dist/cjs/utility/api/property/get-default-string-format-properties.utility.d.ts +0 -21
- package/dist/cjs/utility/api/property/get-default-string-format-properties.utility.js +0 -31
- package/dist/cjs/utility/api/property/get-default-string-format-properties.utility.js.map +0 -1
- package/dist/cjs/utility/api/property/index.d.ts +0 -1
- package/dist/cjs/utility/authorization/scope/index.d.ts +0 -1
- package/dist/cjs/utility/authorization/scope/merge/index.d.ts +0 -1
- package/dist/cjs/utility/authorization/scope/merge/where.utility.d.ts +0 -10
- package/dist/cjs/utility/authorization/scope/merge/where.utility.js +0 -32
- package/dist/cjs/utility/authorization/scope/merge/where.utility.js.map +0 -1
- package/dist/cjs/utility/authorization/subject/index.d.ts +0 -1
- package/dist/cjs/utility/authorization/subject/resolve-default-subject.utility.d.ts +0 -7
- package/dist/cjs/utility/authorization/subject/resolve-default-subject.utility.js.map +0 -1
- package/dist/cjs/utility/dto/auto-context-pop.utility.js +0 -38
- package/dist/cjs/utility/dto/auto-context-pop.utility.js.map +0 -1
- package/dist/cjs/utility/dto/auto-context-push.utility.d.ts +0 -9
- package/dist/cjs/utility/dto/auto-context-push.utility.js +0 -35
- package/dist/cjs/utility/dto/auto-context-push.utility.js.map +0 -1
- package/dist/cjs/utility/dto/generate-cache-key.utility.d.ts +0 -7
- package/dist/cjs/utility/dto/generate-cache-key.utility.js +0 -13
- package/dist/cjs/utility/dto/generate-cache-key.utility.js.map +0 -1
- package/dist/cjs/utility/dto/generate-decorator.utility.d.ts +0 -19
- package/dist/cjs/utility/dto/generate-decorator.utility.js +0 -29
- package/dist/cjs/utility/dto/generate-decorator.utility.js.map +0 -1
- package/dist/cjs/utility/dto/generate-dynamic.utility.d.ts +0 -21
- package/dist/cjs/utility/dto/generate-dynamic.utility.js +0 -125
- package/dist/cjs/utility/dto/generate-dynamic.utility.js.map +0 -1
- package/dist/cjs/utility/dto/generate-exception.utility.js +0 -132
- package/dist/cjs/utility/dto/generate-exception.utility.js.map +0 -1
- package/dist/cjs/utility/dto/generate-filter-decorator.utility.d.ts +0 -12
- package/dist/cjs/utility/dto/generate-filter-decorator.utility.js +0 -59
- package/dist/cjs/utility/dto/generate-filter-decorator.utility.js.map +0 -1
- package/dist/cjs/utility/dto/generate-get-list-response.utility.d.ts +0 -12
- package/dist/cjs/utility/dto/generate-get-list-response.utility.js +0 -111
- package/dist/cjs/utility/dto/generate-get-list-response.utility.js.map +0 -1
- package/dist/cjs/utility/dto/generate-relation-response.utility.d.ts +0 -14
- package/dist/cjs/utility/dto/generate-relation-response.utility.js +0 -31
- package/dist/cjs/utility/dto/generate-relation-response.utility.js.map +0 -1
- package/dist/cjs/utility/dto/generate.utility.d.ts +0 -21
- package/dist/cjs/utility/dto/generate.utility.js +0 -202
- package/dist/cjs/utility/dto/generate.utility.js.map +0 -1
- package/dist/cjs/utility/dto/get-decorator-config.utility.d.ts +0 -16
- package/dist/cjs/utility/dto/get-decorator-config.utility.js +0 -34
- package/dist/cjs/utility/dto/get-decorator-config.utility.js.map +0 -1
- package/dist/cjs/utility/dto/get-get-list-query-base-class.utility.d.ts +0 -16
- package/dist/cjs/utility/dto/get-get-list-query-base-class.utility.js +0 -104
- package/dist/cjs/utility/dto/get-get-list-query-base-class.utility.js.map +0 -1
- package/dist/cjs/utility/dto/is-property-exposed-for-guard.utility.d.ts +0 -13
- package/dist/cjs/utility/dto/is-property-exposed-for-guard.utility.js +0 -23
- package/dist/cjs/utility/dto/is-property-exposed-for-guard.utility.js.map +0 -1
- package/dist/cjs/utility/dto/is-property-should-be-marked.utility.d.ts +0 -15
- package/dist/cjs/utility/dto/is-property-should-be-marked.utility.js +0 -54
- package/dist/cjs/utility/dto/is-property-should-be-marked.utility.js.map +0 -1
- package/dist/cjs/utility/dto/is-should-be-generated.utility.d.ts +0 -12
- package/dist/cjs/utility/dto/is-should-be-generated.utility.js +0 -49
- package/dist/cjs/utility/dto/is-should-be-generated.utility.js.map +0 -1
- package/dist/cjs/utility/error-exception.utility.js +0 -13
- package/dist/cjs/utility/error-exception.utility.js.map +0 -1
- package/dist/cjs/utility/error-string.utility.d.ts +0 -9
- package/dist/cjs/utility/error-string.utility.js +0 -20
- package/dist/cjs/utility/error-string.utility.js.map +0 -1
- package/dist/cjs/utility/get-auto-dto-context.utility.d.ts +0 -7
- package/dist/cjs/utility/get-auto-dto-context.utility.js +0 -19
- package/dist/cjs/utility/get-auto-dto-context.utility.js.map +0 -1
- package/dist/cjs/utility/get-entity-columns.utility.d.ts +0 -8
- package/dist/cjs/utility/get-entity-columns.utility.js +0 -29
- package/dist/cjs/utility/get-entity-columns.utility.js.map +0 -1
- package/dist/cjs/utility/is-entity-constructor.utility.d.ts +0 -8
- package/dist/cjs/utility/is-entity-constructor.utility.js +0 -13
- package/dist/cjs/utility/is-entity-constructor.utility.js.map +0 -1
- package/dist/cjs/utility/is-entity-factory.utility.d.ts +0 -8
- package/dist/cjs/utility/is-entity-factory.utility.js +0 -15
- package/dist/cjs/utility/is-entity-factory.utility.js.map +0 -1
- package/dist/cjs/utility/is-entity-literal.utility.d.ts +0 -7
- package/dist/cjs/utility/is-entity-literal.utility.js +0 -13
- package/dist/cjs/utility/is-entity-literal.utility.js.map +0 -1
- package/dist/cjs/utility/is-error-of-type.utility.d.ts +0 -8
- package/dist/cjs/utility/is-error-of-type.utility.js +0 -61
- package/dist/cjs/utility/is-error-of-type.utility.js.map +0 -1
- package/dist/cjs/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js +0 -34
- package/dist/cjs/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js.map +0 -1
- package/dist/cjs/validator/has-at-least-one-of-listed-properties.validator.js +0 -30
- package/dist/cjs/validator/has-at-least-one-of-listed-properties.validator.js.map +0 -1
- package/dist/cjs/validator/has-at-least-one-property.validator.js +0 -18
- package/dist/cjs/validator/has-at-least-one-property.validator.js.map +0 -1
- package/dist/cjs/validator/has-paired-custom-suffixes-fields.validator.js +0 -150
- package/dist/cjs/validator/has-paired-custom-suffixes-fields.validator.js.map +0 -1
- package/dist/esm/constant/class/authorization/metadata/decision.constant.js +0 -7
- package/dist/esm/constant/class/authorization/metadata/decision.constant.js.map +0 -1
- package/dist/esm/constant/class/authorization/metadata/index.d.ts +0 -1
- package/dist/esm/constant/class/authorization/policy/decorator.constant.js +0 -9
- package/dist/esm/constant/class/authorization/policy/decorator.constant.js.map +0 -1
- package/dist/esm/constant/class/authorization/policy/index.d.ts +0 -1
- package/dist/esm/constant/class/authorization/token/index.d.ts +0 -1
- package/dist/esm/constant/class/authorization/token/registry.constant.js +0 -5
- package/dist/esm/constant/class/authorization/token/registry.constant.js.map +0 -1
- package/dist/esm/constant/factory/dto/get-list-query.constant.js +0 -15
- package/dist/esm/constant/factory/dto/get-list-query.constant.js.map +0 -1
- package/dist/esm/constant/factory/dto/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 -87
- package/dist/esm/constant/validator/has-paired-custom-suffixes-fields.constant.js.map +0 -1
- package/dist/esm/decorator/api/authorization/index.d.ts +0 -1
- package/dist/esm/decorator/api/authorization/policy.decorator.d.ts +0 -10
- package/dist/esm/decorator/api/authorization/policy.decorator.js +0 -25
- package/dist/esm/decorator/api/authorization/policy.decorator.js.map +0 -1
- package/dist/esm/decorator/api/function/get-list.decorator.d.ts +0 -10
- package/dist/esm/decorator/api/function/get-list.decorator.js +0 -144
- package/dist/esm/decorator/api/function/get-list.decorator.js.map +0 -1
- package/dist/esm/decorator/api/function/get-many.decorator.d.ts +0 -10
- package/dist/esm/decorator/api/function/get-many.decorator.js +0 -124
- package/dist/esm/decorator/api/function/get-many.decorator.js.map +0 -1
- package/dist/esm/decorator/api/function/get.decorator.d.ts +0 -10
- package/dist/esm/decorator/api/function/get.decorator.js +0 -124
- package/dist/esm/decorator/api/function/get.decorator.js.map +0 -1
- package/dist/esm/decorator/api/service.decorator.d.ts +0 -11
- package/dist/esm/decorator/api/service.decorator.js +0 -219
- package/dist/esm/decorator/api/service.decorator.js.map +0 -1
- package/dist/esm/enum/class/authorization/policy/index.d.ts +0 -1
- package/dist/esm/enum/class/authorization/policy/on-type.enum.js +0 -7
- package/dist/esm/enum/class/authorization/policy/on-type.enum.js.map +0 -1
- package/dist/esm/enum/decorator/api/function/index.d.ts +0 -1
- package/dist/esm/enum/decorator/api/function/type.enum.js +0 -12
- package/dist/esm/enum/decorator/api/function/type.enum.js.map +0 -1
- package/dist/esm/enum/filter-operation.enum.js +0 -123
- package/dist/esm/enum/filter-operation.enum.js.map +0 -1
- package/dist/esm/enum/filter-order-direction.enum.js +0 -8
- package/dist/esm/enum/filter-order-direction.enum.js.map +0 -1
- package/dist/esm/enum/utility/exception-details/index.d.ts +0 -1
- package/dist/esm/enum/utility/exception-details/type.enum.js +0 -8
- package/dist/esm/enum/utility/exception-details/type.enum.js.map +0 -1
- package/dist/esm/factory/api/controller.factory.d.ts +0 -20
- package/dist/esm/factory/api/controller.factory.js +0 -483
- package/dist/esm/factory/api/controller.factory.js.map +0 -1
- package/dist/esm/factory/api/index.d.ts +0 -1
- package/dist/esm/interface/api-authentication-request.interface.d.ts +0 -7
- package/dist/esm/interface/api-request-validator.interface.d.ts +0 -8
- package/dist/esm/interface/class/api/subscriber/function-error-execution-context.interface.d.ts +0 -12
- package/dist/esm/interface/class/api/subscriber/function-execution-context-data.interface.d.ts +0 -38
- package/dist/esm/interface/class/api/subscriber/function-execution-context.interface.d.ts +0 -29
- package/dist/esm/interface/class/api/subscriber/route-error-execution-context.interface.d.ts +0 -12
- package/dist/esm/interface/class/api/subscriber/route-execution-context-data.interface.d.ts +0 -68
- package/dist/esm/interface/class/api/subscriber/route-execution-context.interface.d.ts +0 -29
- package/dist/esm/interface/class/dto/index.d.ts +0 -1
- package/dist/esm/interface/class/dto/strategy.interface.d.ts +0 -5
- package/dist/esm/interface/decorator/api/controller/properties/route/base-request.interface.d.ts +0 -8
- package/dist/esm/interface/decorator/api/controller/properties/route/base-response.interface.d.ts +0 -7
- package/dist/esm/interface/decorator/api/controller/properties/route/base.interface.d.ts +0 -10
- package/dist/esm/interface/decorator/api/controller/properties/route/with-auto-dto.interface.d.ts +0 -6
- package/dist/esm/interface/decorator/api/controller/properties/route/with-dto.interface.d.ts +0 -7
- package/dist/esm/interface/decorator/api/function/get-executor-properties.interface.d.ts +0 -10
- package/dist/esm/interface/decorator/api/function/get-list-executor-properties.interface.d.ts +0 -10
- package/dist/esm/interface/decorator/api/function/get-many-executor-properties.interface.d.ts +0 -10
- package/dist/esm/interface/utility/api/controller/index.d.ts +0 -1
- package/dist/esm/interface/utility/dto/generate-cache-key.interface.d.ts +0 -9
- package/dist/esm/interface/utility/dto/index.d.ts +0 -1
- package/dist/esm/interface/validator/must-match-one-of-schemas-discriminator-config.interface.d.ts +0 -6
- package/dist/esm/type/class/api/subscriber/route/after/get/many-context.type.d.ts +0 -4
- package/dist/esm/type/class/api/subscriber/route/before/get/many-context.type.d.ts +0 -4
- package/dist/esm/type/class/controller/index.d.ts +0 -1
- package/dist/esm/type/class/controller/method.type.d.ts +0 -5
- package/dist/esm/type/decorator/api/controller/properties/route/base-request-relations.type.d.ts +0 -18
- package/dist/esm/type/decorator/api/controller/properties/route/base-request-transformers.type.d.ts +0 -10
- package/dist/esm/type/decorator/api/controller/properties/route/base-response-transformers.type.d.ts +0 -10
- package/dist/esm/type/decorator/api/property/describe/properties/base-dto-properties.type.d.ts +0 -2
- package/dist/esm/type/decorator/api/property/describe/properties/base-properties.type.d.ts +0 -10
- package/dist/esm/type/factory/api/controller/method-map.type.d.ts +0 -13
- package/dist/esm/type/factory/api/controller/method-name-map.type.d.ts +0 -5
- package/dist/esm/type/factory/api/controller/method-name.type.d.ts +0 -4
- package/dist/esm/type/utility/date-range-keys.type.d.ts +0 -4
- package/dist/esm/type/utility/dto/generate-allowed-combination.type.d.ts +0 -9
- package/dist/esm/type/utility/dto/generate-is-allowed-combination.type.d.ts +0 -3
- package/dist/esm/utility/api/controller/apply-decorators.utility.d.ts +0 -20
- package/dist/esm/utility/api/controller/apply-decorators.utility.js +0 -93
- package/dist/esm/utility/api/controller/apply-decorators.utility.js.map +0 -1
- package/dist/esm/utility/api/controller/apply-metadata.utility.d.ts +0 -18
- package/dist/esm/utility/api/controller/apply-metadata.utility.js +0 -88
- package/dist/esm/utility/api/controller/apply-metadata.utility.js.map +0 -1
- package/dist/esm/utility/api/controller/get-list/transform-filter.utility.d.ts +0 -12
- package/dist/esm/utility/api/controller/get-list/transform-filter.utility.js +0 -58
- package/dist/esm/utility/api/controller/get-list/transform-filter.utility.js.map +0 -1
- package/dist/esm/utility/api/controller/get-list/transform-operation.utility.d.ts +0 -10
- package/dist/esm/utility/api/controller/get-list/transform-operation.utility.js +0 -88
- package/dist/esm/utility/api/controller/get-list/transform-operation.utility.js.map +0 -1
- package/dist/esm/utility/api/controller/get-method-name.utility.d.ts +0 -8
- package/dist/esm/utility/api/controller/get-method-name.utility.js +0 -15
- package/dist/esm/utility/api/controller/get-method-name.utility.js.map +0 -1
- package/dist/esm/utility/api/controller/get-primary-column.utility.d.ts +0 -12
- package/dist/esm/utility/api/controller/get-primary-column.utility.js +0 -21
- package/dist/esm/utility/api/controller/get-primary-column.utility.js.map +0 -1
- package/dist/esm/utility/api/controller/write-dto-swagger.utility.d.ts +0 -18
- package/dist/esm/utility/api/controller/write-dto-swagger.utility.js +0 -94
- package/dist/esm/utility/api/controller/write-dto-swagger.utility.js.map +0 -1
- package/dist/esm/utility/api/controller/write-method.utility.d.ts +0 -17
- package/dist/esm/utility/api/controller/write-method.utility.js +0 -31
- package/dist/esm/utility/api/controller/write-method.utility.js.map +0 -1
- package/dist/esm/utility/api/property/get-default-string-format-properties.utility.d.ts +0 -21
- package/dist/esm/utility/api/property/get-default-string-format-properties.utility.js +0 -29
- package/dist/esm/utility/api/property/get-default-string-format-properties.utility.js.map +0 -1
- package/dist/esm/utility/api/property/index.d.ts +0 -1
- package/dist/esm/utility/authorization/scope/index.d.ts +0 -1
- package/dist/esm/utility/authorization/scope/merge/index.d.ts +0 -1
- package/dist/esm/utility/authorization/scope/merge/where.utility.d.ts +0 -10
- package/dist/esm/utility/authorization/scope/merge/where.utility.js +0 -30
- package/dist/esm/utility/authorization/scope/merge/where.utility.js.map +0 -1
- package/dist/esm/utility/authorization/subject/index.d.ts +0 -1
- package/dist/esm/utility/authorization/subject/resolve-default-subject.utility.d.ts +0 -7
- package/dist/esm/utility/authorization/subject/resolve-default-subject.utility.js.map +0 -1
- package/dist/esm/utility/dto/auto-context-pop.utility.js +0 -36
- package/dist/esm/utility/dto/auto-context-pop.utility.js.map +0 -1
- package/dist/esm/utility/dto/auto-context-push.utility.d.ts +0 -9
- package/dist/esm/utility/dto/auto-context-push.utility.js +0 -33
- package/dist/esm/utility/dto/auto-context-push.utility.js.map +0 -1
- package/dist/esm/utility/dto/generate-cache-key.utility.d.ts +0 -7
- package/dist/esm/utility/dto/generate-cache-key.utility.js +0 -11
- package/dist/esm/utility/dto/generate-cache-key.utility.js.map +0 -1
- package/dist/esm/utility/dto/generate-decorator.utility.d.ts +0 -19
- package/dist/esm/utility/dto/generate-decorator.utility.js +0 -27
- package/dist/esm/utility/dto/generate-decorator.utility.js.map +0 -1
- package/dist/esm/utility/dto/generate-dynamic.utility.d.ts +0 -21
- package/dist/esm/utility/dto/generate-dynamic.utility.js +0 -123
- package/dist/esm/utility/dto/generate-dynamic.utility.js.map +0 -1
- package/dist/esm/utility/dto/generate-exception.utility.js +0 -130
- package/dist/esm/utility/dto/generate-exception.utility.js.map +0 -1
- package/dist/esm/utility/dto/generate-filter-decorator.utility.d.ts +0 -12
- package/dist/esm/utility/dto/generate-filter-decorator.utility.js +0 -57
- package/dist/esm/utility/dto/generate-filter-decorator.utility.js.map +0 -1
- package/dist/esm/utility/dto/generate-get-list-response.utility.d.ts +0 -12
- package/dist/esm/utility/dto/generate-get-list-response.utility.js +0 -109
- package/dist/esm/utility/dto/generate-get-list-response.utility.js.map +0 -1
- package/dist/esm/utility/dto/generate-relation-response.utility.d.ts +0 -14
- package/dist/esm/utility/dto/generate-relation-response.utility.js +0 -29
- package/dist/esm/utility/dto/generate-relation-response.utility.js.map +0 -1
- package/dist/esm/utility/dto/generate.utility.d.ts +0 -21
- package/dist/esm/utility/dto/generate.utility.js +0 -200
- package/dist/esm/utility/dto/generate.utility.js.map +0 -1
- package/dist/esm/utility/dto/get-decorator-config.utility.d.ts +0 -16
- package/dist/esm/utility/dto/get-decorator-config.utility.js +0 -32
- package/dist/esm/utility/dto/get-decorator-config.utility.js.map +0 -1
- package/dist/esm/utility/dto/get-get-list-query-base-class.utility.d.ts +0 -16
- package/dist/esm/utility/dto/get-get-list-query-base-class.utility.js +0 -102
- package/dist/esm/utility/dto/get-get-list-query-base-class.utility.js.map +0 -1
- package/dist/esm/utility/dto/is-property-exposed-for-guard.utility.d.ts +0 -13
- package/dist/esm/utility/dto/is-property-exposed-for-guard.utility.js +0 -21
- package/dist/esm/utility/dto/is-property-exposed-for-guard.utility.js.map +0 -1
- package/dist/esm/utility/dto/is-property-should-be-marked.utility.d.ts +0 -15
- package/dist/esm/utility/dto/is-property-should-be-marked.utility.js +0 -52
- package/dist/esm/utility/dto/is-property-should-be-marked.utility.js.map +0 -1
- package/dist/esm/utility/dto/is-should-be-generated.utility.d.ts +0 -12
- package/dist/esm/utility/dto/is-should-be-generated.utility.js +0 -47
- package/dist/esm/utility/dto/is-should-be-generated.utility.js.map +0 -1
- package/dist/esm/utility/error-exception.utility.js +0 -11
- package/dist/esm/utility/error-exception.utility.js.map +0 -1
- package/dist/esm/utility/error-string.utility.d.ts +0 -9
- package/dist/esm/utility/error-string.utility.js +0 -18
- package/dist/esm/utility/error-string.utility.js.map +0 -1
- package/dist/esm/utility/get-auto-dto-context.utility.d.ts +0 -7
- package/dist/esm/utility/get-auto-dto-context.utility.js +0 -17
- package/dist/esm/utility/get-auto-dto-context.utility.js.map +0 -1
- package/dist/esm/utility/get-entity-columns.utility.d.ts +0 -8
- package/dist/esm/utility/get-entity-columns.utility.js +0 -27
- package/dist/esm/utility/get-entity-columns.utility.js.map +0 -1
- package/dist/esm/utility/is-entity-constructor.utility.d.ts +0 -8
- package/dist/esm/utility/is-entity-constructor.utility.js +0 -11
- package/dist/esm/utility/is-entity-constructor.utility.js.map +0 -1
- package/dist/esm/utility/is-entity-factory.utility.d.ts +0 -8
- package/dist/esm/utility/is-entity-factory.utility.js +0 -13
- package/dist/esm/utility/is-entity-factory.utility.js.map +0 -1
- package/dist/esm/utility/is-entity-literal.utility.d.ts +0 -7
- package/dist/esm/utility/is-entity-literal.utility.js +0 -11
- package/dist/esm/utility/is-entity-literal.utility.js.map +0 -1
- package/dist/esm/utility/is-error-of-type.utility.d.ts +0 -8
- package/dist/esm/utility/is-error-of-type.utility.js +0 -59
- package/dist/esm/utility/is-error-of-type.utility.js.map +0 -1
- package/dist/esm/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js +0 -34
- package/dist/esm/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js.map +0 -1
- package/dist/esm/validator/has-at-least-one-of-listed-properties.validator.js +0 -30
- package/dist/esm/validator/has-at-least-one-of-listed-properties.validator.js.map +0 -1
- package/dist/esm/validator/has-at-least-one-property.validator.js +0 -18
- package/dist/esm/validator/has-at-least-one-property.validator.js.map +0 -1
- package/dist/esm/validator/has-paired-custom-suffixes-fields.validator.js +0 -150
- package/dist/esm/validator/has-paired-custom-suffixes-fields.validator.js.map +0 -1
- /package/dist/cjs/constant/class/authorization/{metadata/decision.constant.d.ts → metadata-decision.constant.d.ts} +0 -0
- /package/dist/cjs/constant/class/authorization/{policy/decorator.constant.d.ts → policy-decorator.constant.d.ts} +0 -0
- /package/dist/cjs/constant/class/authorization/{token/registry.constant.d.ts → token-registry.constant.d.ts} +0 -0
- /package/dist/cjs/constant/{factory/dto/get-list-query.constant.d.ts → factory-dto-get-list-query.constant.d.ts} +0 -0
- /package/dist/cjs/enum/class/authorization/{policy/on-type.enum.d.ts → policy-on-type.enum.d.ts} +0 -0
- /package/dist/cjs/enum/decorator/api/{function/type.enum.d.ts → function-type.enum.d.ts} +0 -0
- /package/dist/cjs/enum/{filter-operation.enum.d.ts → filter/operation.enum.d.ts} +0 -0
- /package/dist/cjs/enum/{filter-order-direction.enum.d.ts → filter/order-direction.enum.d.ts} +0 -0
- /package/dist/cjs/enum/utility/{exception-details/type.enum.d.ts → exception-details-type.enum.d.ts} +0 -0
- /package/dist/cjs/interface/{api-dto-validator.interface.d.ts → api/dto-validator.interface.d.ts} +0 -0
- /package/dist/cjs/interface/utility/{api/controller/primary-column.interface.d.ts → api-controller-primary-column.interface.d.ts} +0 -0
- /package/dist/cjs/type/decorator/api/function/{get-list-properties.type.d.ts → get/list/properties/type.d.ts} +0 -0
- /package/dist/cjs/type/decorator/api/function/{get-list-properties-where.type.d.ts → get/list/properties/where.type.d.ts} +0 -0
- /package/dist/cjs/type/decorator/api/function/{get-many.properties.d.ts → get/many.properties.d.ts} +0 -0
- /package/dist/cjs/type/decorator/api/function/{get-properties.type.d.ts → get/properties.type.d.ts} +0 -0
- /package/dist/cjs/type/decorator/api/function/{update-criteria.type.d.ts → update/criteria.type.d.ts} +0 -0
- /package/dist/cjs/type/decorator/api/function/{update-properties.type.d.ts → update/properties.type.d.ts} +0 -0
- /package/dist/cjs/type/utility/{date-keys.type.d.ts → date/keys.type.d.ts} +0 -0
- /package/dist/cjs/type/utility/dto/{generate-get-list-response-resource-class.type.d.ts → generate/get-list-response-resource-class.type.d.ts} +0 -0
- /package/dist/cjs/utility/authorization/{subject/resolve-default-subject.utility.js → resolve-default-subject.utility.js} +0 -0
- /package/dist/cjs/utility/dto/{auto-context-pop.utility.d.ts → auto/context/pop.utility.d.ts} +0 -0
- /package/dist/cjs/utility/dto/{generate-exception.utility.d.ts → generate/exception.utility.d.ts} +0 -0
- /package/dist/cjs/utility/{error-exception.utility.d.ts → error/exception.utility.d.ts} +0 -0
- /package/dist/cjs/validator/{has-at-least-one-and-only-one-of-listed-properties.validator.d.ts → has/at/least/one/and-only-one-of-listed-properties.validator.d.ts} +0 -0
- /package/dist/cjs/validator/{has-at-least-one-of-listed-properties.validator.d.ts → has/at/least/one/of-listed-properties.validator.d.ts} +0 -0
- /package/dist/cjs/validator/{has-at-least-one-property.validator.d.ts → has/at/least/one/property.validator.d.ts} +0 -0
- /package/dist/cjs/validator/{has-paired-custom-suffixes-fields.validator.d.ts → has/paired-custom-suffixes-fields.validator.d.ts} +0 -0
- /package/dist/esm/constant/class/authorization/{metadata/decision.constant.d.ts → metadata-decision.constant.d.ts} +0 -0
- /package/dist/esm/constant/class/authorization/{policy/decorator.constant.d.ts → policy-decorator.constant.d.ts} +0 -0
- /package/dist/esm/constant/class/authorization/{token/registry.constant.d.ts → token-registry.constant.d.ts} +0 -0
- /package/dist/esm/constant/{factory/dto/get-list-query.constant.d.ts → factory-dto-get-list-query.constant.d.ts} +0 -0
- /package/dist/esm/enum/class/authorization/{policy/on-type.enum.d.ts → policy-on-type.enum.d.ts} +0 -0
- /package/dist/esm/enum/decorator/api/{function/type.enum.d.ts → function-type.enum.d.ts} +0 -0
- /package/dist/esm/enum/{filter-operation.enum.d.ts → filter/operation.enum.d.ts} +0 -0
- /package/dist/esm/enum/{filter-order-direction.enum.d.ts → filter/order-direction.enum.d.ts} +0 -0
- /package/dist/esm/enum/utility/{exception-details/type.enum.d.ts → exception-details-type.enum.d.ts} +0 -0
- /package/dist/esm/interface/{api-dto-validator.interface.d.ts → api/dto-validator.interface.d.ts} +0 -0
- /package/dist/esm/interface/utility/{api/controller/primary-column.interface.d.ts → api-controller-primary-column.interface.d.ts} +0 -0
- /package/dist/esm/type/decorator/api/function/{get-list-properties.type.d.ts → get/list/properties/type.d.ts} +0 -0
- /package/dist/esm/type/decorator/api/function/{get-list-properties-where.type.d.ts → get/list/properties/where.type.d.ts} +0 -0
- /package/dist/esm/type/decorator/api/function/{get-many.properties.d.ts → get/many.properties.d.ts} +0 -0
- /package/dist/esm/type/decorator/api/function/{get-properties.type.d.ts → get/properties.type.d.ts} +0 -0
- /package/dist/esm/type/decorator/api/function/{update-criteria.type.d.ts → update/criteria.type.d.ts} +0 -0
- /package/dist/esm/type/decorator/api/function/{update-properties.type.d.ts → update/properties.type.d.ts} +0 -0
- /package/dist/esm/type/utility/{date-keys.type.d.ts → date/keys.type.d.ts} +0 -0
- /package/dist/esm/type/utility/dto/{generate-get-list-response-resource-class.type.d.ts → generate/get-list-response-resource-class.type.d.ts} +0 -0
- /package/dist/esm/utility/authorization/{subject/resolve-default-subject.utility.js → resolve-default-subject.utility.js} +0 -0
- /package/dist/esm/utility/dto/{auto-context-pop.utility.d.ts → auto/context/pop.utility.d.ts} +0 -0
- /package/dist/esm/utility/dto/{generate-exception.utility.d.ts → generate/exception.utility.d.ts} +0 -0
- /package/dist/esm/utility/{error-exception.utility.d.ts → error/exception.utility.d.ts} +0 -0
- /package/dist/esm/validator/{has-at-least-one-and-only-one-of-listed-properties.validator.d.ts → has/at/least/one/and-only-one-of-listed-properties.validator.d.ts} +0 -0
- /package/dist/esm/validator/{has-at-least-one-of-listed-properties.validator.d.ts → has/at/least/one/of-listed-properties.validator.d.ts} +0 -0
- /package/dist/esm/validator/{has-at-least-one-property.validator.d.ts → has/at/least/one/property.validator.d.ts} +0 -0
- /package/dist/esm/validator/{has-paired-custom-suffixes-fields.validator.d.ts → has/paired-custom-suffixes-fields.validator.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -355,7 +355,7 @@ export class UserController {
|
|
|
355
355
|
|
|
356
356
|
### Declarative Authorization Policies
|
|
357
357
|
|
|
358
|
-
Import `ApiAuthorizationModule` once and describe access rules as policies. The guard is attached
|
|
358
|
+
Import `ApiAuthorizationModule` once and describe access rules as policies. The guard is attached automatically—mark controllers with `@ApiControllerSecurable()` to enable policy evaluation.
|
|
359
359
|
|
|
360
360
|
```typescript
|
|
361
361
|
// app.module.ts
|
|
@@ -371,31 +371,35 @@ import { ApiAuthorizationModule } from "@elsikora/nestjs-crud-automator";
|
|
|
371
371
|
export class AppModule {}
|
|
372
372
|
```
|
|
373
373
|
|
|
374
|
+
Mark controllers with `@ApiControllerSecurable()` to enable policy evaluation.
|
|
375
|
+
|
|
374
376
|
```typescript
|
|
375
377
|
// policies/user-access.policy.ts
|
|
378
|
+
import type { IApiAuthorizationRuleContext, IApiAuthorizationScope, TApiAuthorizationPolicyBeforeDeleteResult, TApiAuthorizationPolicyBeforeGetResult } from "@elsikora/nestjs-crud-automator";
|
|
379
|
+
|
|
376
380
|
import { ApiAuthorizationPolicy, ApiAuthorizationPolicyBase } from "@elsikora/nestjs-crud-automator";
|
|
377
381
|
import { UserEntity } from "../user.entity";
|
|
378
382
|
|
|
379
383
|
@ApiAuthorizationPolicy<UserEntity>({ entity: UserEntity, priority: 200 })
|
|
380
384
|
export class UserAccessPolicy extends ApiAuthorizationPolicyBase<UserEntity> {
|
|
381
|
-
onBeforeGet(
|
|
382
|
-
const { subject } = context.DATA;
|
|
383
|
-
|
|
385
|
+
public onBeforeGet(): TApiAuthorizationPolicyBeforeGetResult<UserEntity> {
|
|
384
386
|
return this.allow({
|
|
385
|
-
scope: () => ({
|
|
387
|
+
scope: (context: IApiAuthorizationRuleContext<UserEntity>): IApiAuthorizationScope<UserEntity> => ({
|
|
388
|
+
where: { id: context.subject.id },
|
|
389
|
+
}),
|
|
386
390
|
});
|
|
387
391
|
}
|
|
388
392
|
|
|
389
|
-
onBeforeDelete() {
|
|
393
|
+
public onBeforeDelete(): TApiAuthorizationPolicyBeforeDeleteResult<UserEntity> {
|
|
390
394
|
return this.deny({
|
|
391
395
|
description: "Only admins can delete users",
|
|
392
|
-
condition: (
|
|
396
|
+
condition: (context: IApiAuthorizationRuleContext<UserEntity>): boolean => !context.subject.roles.includes("admin"),
|
|
393
397
|
});
|
|
394
398
|
}
|
|
395
399
|
}
|
|
396
400
|
```
|
|
397
401
|
|
|
398
|
-
Policies
|
|
402
|
+
Policies return arrays of allow/deny rules, merge scope conditions into generated queries, and transform responses before they are sent back to the client. Return an empty array (`[]`) when no rules apply. `authorizationDecision.policyIds` lists all policy IDs contributing rules for the request. You can optionally enable policy caching globally via `ApiAuthorizationPolicyRegistry.configureCache()` or per policy via the `cache` option when policies are static.
|
|
399
403
|
|
|
400
404
|
### `CorrelationIDResponseBodyInterceptor`: Request Tracing
|
|
401
405
|
|
|
@@ -500,9 +504,9 @@ Understanding the order in which hooks are called is critically important:
|
|
|
500
504
|
4. A service method is called (e.g., `service.create(body)`).
|
|
501
505
|
5. `onBefore...` hooks of **Function** subscribers (executed in `priority` order).
|
|
502
506
|
6. The main logic of `@ApiFunction` is executed (e.g., `repository.save(body)`).
|
|
503
|
-
7. `onAfter...` hooks of **Function** subscribers (executed in
|
|
507
|
+
7. `onAfter...` hooks of **Function** subscribers (executed in `priority` order).
|
|
504
508
|
8. The result is returned to the controller.
|
|
505
|
-
9. `onAfter...` hooks of **Route** subscribers (executed in
|
|
509
|
+
9. `onAfter...` hooks of **Route** subscribers (executed in `priority` order).
|
|
506
510
|
10. **The response is sent to the client.**
|
|
507
511
|
|
|
508
512
|
In case of an error at any stage, execution is interrupted, and the corresponding `on...Error...` hooks are called.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var tslib_es6 = require('../../../external/tslib/tslib.es6.js');
|
|
4
4
|
var effect_enum = require('../../../enum/class/authorization/effect.enum.js');
|
|
5
5
|
var common = require('@nestjs/common');
|
|
6
|
-
var
|
|
6
|
+
var scopeMergeWhere_utility = require('../../../utility/authorization/scope-merge-where.utility.js');
|
|
7
7
|
|
|
8
8
|
exports.ApiAuthorizationEngine = class ApiAuthorizationEngine {
|
|
9
9
|
async evaluate(options) {
|
|
@@ -83,7 +83,7 @@ exports.ApiAuthorizationEngine = class ApiAuthorizationEngine {
|
|
|
83
83
|
return {
|
|
84
84
|
...currentScope,
|
|
85
85
|
...scopePatch,
|
|
86
|
-
where:
|
|
86
|
+
where: scopeMergeWhere_utility.AuthorizationScopeMergeWhere(currentScope.where, scopePatch.where),
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.class.js","sources":["../../../../../../src/class/api/authorization/engine.class.ts"],"sourcesContent":[null],"names":["ApiAuthorizationEngine","EAuthorizationEffect","AuthorizationScopeMergeWhere","__decorate","Injectable"],"mappings":";;;;;;;AAWaA,8BAAsB,GAA5B,MAAM,sBAAsB,CAAA;IAC3B,MAAM,QAAQ,CAA8B,OAAqD,EAAA;AACvG,QAAA,MAAM,OAAO,GAAoC;YAChD,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;SACxB;QAED,MAAM,YAAY,GAAuC,EAAE;AAC3D,QAAA,IAAI,KAA4C;QAChD,MAAM,UAAU,GAAuE,EAAE;QAEzF,KAAK,MAAM,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE;YACxC,MAAM,iBAAiB,GAAY,MAAM,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC;YAE9E,IAAI,CAAC,iBAAiB,EAAE;gBACvB;YACD;YAEA,IAAI,IAAI,CAAC,MAAM,KAAKC,gCAAoB,CAAC,IAAI,EAAE;AAC9C,gBAAA,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE;oBAClC,YAAY,EAAE,CAAC,IAAI,CAAC;oBACpB,MAAM,EAAEA,gCAAo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OAAO,CAAC,OAAO;YACxB,UAAU,EAAE,OAAO,CAAC,UAAU;SAC9B;IACF;AAEQ,IAAA,MAAM,iBAAiB,CAA8B,IAAiC,EAAE,OAAwC,EAAA;AACvI,QAAA,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;AACpB,YAAA,OAAO,IAAI;QACZ;QAEA,MAAM,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,EAAEC,
|
|
1
|
+
{"version":3,"file":"engine.class.js","sources":["../../../../../../src/class/api/authorization/engine.class.ts"],"sourcesContent":[null],"names":["ApiAuthorizationEngine","EAuthorizationEffect","AuthorizationScopeMergeWhere","__decorate","Injectable"],"mappings":";;;;;;;AAWaA,8BAAsB,GAA5B,MAAM,sBAAsB,CAAA;IAC3B,MAAM,QAAQ,CAA8B,OAAqD,EAAA;AACvG,QAAA,MAAM,OAAO,GAAoC;YAChD,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;SACxB;QAED,MAAM,YAAY,GAAuC,EAAE;AAC3D,QAAA,IAAI,KAA4C;QAChD,MAAM,UAAU,GAAuE,EAAE;QAEzF,KAAK,MAAM,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,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,12 @@
|
|
|
2
2
|
|
|
3
3
|
var tslib_es6 = require('../../../external/tslib/tslib.es6.js');
|
|
4
4
|
var engine_class = require('./engine.class.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var metadataDecision_constant = require('../../../constant/class/authorization/metadata-decision.constant.js');
|
|
6
|
+
var tokenRegistry_constant = require('../../../constant/class/authorization/token-registry.constant.js');
|
|
7
7
|
var controller_constant = require('../../../constant/decorator/api/controller.constant.js');
|
|
8
8
|
var effect_enum = require('../../../enum/class/authorization/effect.enum.js');
|
|
9
9
|
var common = require('@nestjs/common');
|
|
10
|
-
var resolveDefaultSubject_utility = require('../../../utility/authorization/
|
|
10
|
+
var resolveDefaultSubject_utility = require('../../../utility/authorization/resolve-default-subject.utility.js');
|
|
11
11
|
var logger_utility = require('../../../utility/logger.utility.js');
|
|
12
12
|
|
|
13
13
|
const authorizationGuardLogger = logger_utility.LoggerUtility.getLogger("ApiAuthorizationGuard");
|
|
@@ -51,14 +51,14 @@ exports.ApiAuthorizationGuard = class ApiAuthorizationGuard {
|
|
|
51
51
|
this.attachDecisionToRequest(request, decision);
|
|
52
52
|
if (decision.effect === effect_enum.EAuthorizationEffect.DENY) {
|
|
53
53
|
authorizationGuardLogger.warn(`Access denied for entity "${entityConstructor.name}" action "${action}" subject "${subject.id}"`);
|
|
54
|
-
throw new common.ForbiddenException(
|
|
54
|
+
throw new common.ForbiddenException();
|
|
55
55
|
}
|
|
56
56
|
authorizationGuardLogger.verbose(`Access granted for entity "${entityConstructor.name}" action "${action}" subject "${subject.id}"`);
|
|
57
57
|
return true;
|
|
58
58
|
}
|
|
59
59
|
attachDecisionToRequest(request, decision) {
|
|
60
60
|
request.authorizationDecision = decision;
|
|
61
|
-
request[
|
|
61
|
+
request[metadataDecision_constant.AUTHORIZATION_DECISION_METADATA_CONSTANT.REQUEST_KEY] = decision;
|
|
62
62
|
}
|
|
63
63
|
isControllerSecurable(context) {
|
|
64
64
|
return Boolean(Reflect.getMetadata(controller_constant.CONTROLLER_API_DECORATOR_CONSTANT.SECURABLE_METADATA_KEY, context.getClass()));
|
|
@@ -77,7 +77,7 @@ exports.ApiAuthorizationGuard = class ApiAuthorizationGuard {
|
|
|
77
77
|
};
|
|
78
78
|
exports.ApiAuthorizationGuard = tslib_es6.__decorate([
|
|
79
79
|
common.Injectable(),
|
|
80
|
-
tslib_es6.__param(0, common.Inject(
|
|
80
|
+
tslib_es6.__param(0, common.Inject(tokenRegistry_constant.AUTHORIZATION_POLICY_REGISTRY_TOKEN)),
|
|
81
81
|
tslib_es6.__metadata("design:paramtypes", [Object, engine_class.ApiAuthorizationEngine])
|
|
82
82
|
], exports.ApiAuthorizationGuard);
|
|
83
83
|
//# sourceMappingURL=guard.class.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guard.class.js","sources":["../../../../../../src/class/api/authorization/guard.class.ts"],"sourcesContent":[null],"names":["LoggerUtility","ApiAuthorizationGuard","AuthorizationResolveDefaultSubject","EAuthorizationEffect","ForbiddenException","AUTHORIZATION_DECISION_METADATA_CONSTANT","CONTROLLER_API_DECORATOR_CONSTANT","__decorate","Injectable","__param","Inject","AUTHORIZATION_POLICY_REGISTRY_TOKEN","ApiAuthorizationEngine"],"mappings":";;;;;;;;;;;;AAkBA,MAAM,wBAAwB,GAAkBA,4BAAa,CAAC,SAAS,CAAC,uBAAuB,CAAC;AAGnFC,6BAAqB,GAA3B,MAAM,qBAAqB,CAAA;AAE8B,IAAA,cAAA;AAC7C,IAAA,mBAAA;IAFlB,WAAA,CAC+D,cAA+C,EAC5F,mBAA2C,EAAA;QADE,IAAA,CAAA,cAAc,GAAd,cAAc;QAC3D,IAAA,CAAA,mBAAmB,GAAnB,mBAAmB;IAClC;IAEI,MAAM,WAAW,CAAC,OAAyB,EAAA;QACjD,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE;AACzC,YAAA,wBAAwB,CAAC,KAAK,CAAC,6EAA6E,CAAC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,CAAC;AAEF,QAAA,IAAI,CAAC,uBAAuB,CAAC,OAAO,EAAE,QAAQ,CAAC;QAE/C,IAAI,QAAQ,CAAC,MAAM,KAAKC,gCAAoB,CAAC,IAAI,EAAE;AAClD,YAAA,wBAAwB,CAAC,IAAI,CAAC,CAAA,0BAAA,EAA6B,iBAAiB,CAAC,IAAI,CAAA,UAAA,EAAa,MAAM,cAAc,OAAO,CAAC,EAAE,CAAA,CAAA,CAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"guard.class.js","sources":["../../../../../../src/class/api/authorization/guard.class.ts"],"sourcesContent":[null],"names":["LoggerUtility","ApiAuthorizationGuard","AuthorizationResolveDefaultSubject","EAuthorizationEffect","ForbiddenException","AUTHORIZATION_DECISION_METADATA_CONSTANT","CONTROLLER_API_DECORATOR_CONSTANT","__decorate","Injectable","__param","Inject","AUTHORIZATION_POLICY_REGISTRY_TOKEN","ApiAuthorizationEngine"],"mappings":";;;;;;;;;;;;AAkBA,MAAM,wBAAwB,GAAkBA,4BAAa,CAAC,SAAS,CAAC,uBAAuB,CAAC;AAGnFC,6BAAqB,GAA3B,MAAM,qBAAqB,CAAA;AAE8B,IAAA,cAAA;AAC7C,IAAA,mBAAA;IAFlB,WAAA,CAC+D,cAA+C,EAC5F,mBAA2C,EAAA;QADE,IAAA,CAAA,cAAc,GAAd,cAAc;QAC3D,IAAA,CAAA,mBAAmB,GAAnB,mBAAmB;IAClC;IAEI,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,iBAAiB,GAA2C,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC;QAExG,IAAI,CAAC,iBAAiB,EAAE;AACvB,YAAA,wBAAwB,CAAC,KAAK,CAAC,4EAA4E,CAAC;AAE5G,YAAA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,CAACC,0DAAmC,CAAC,CAAA;uDACNC,mCAAsB,CAAA;AAHjD,CAAA,EAAAX,6BAAqB,CAoFjC;;"}
|
|
@@ -1,38 +1,31 @@
|
|
|
1
1
|
import type { IApiBaseEntity } from '../../../../interface/api-base-entity.interface';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IApiAuthorizationPolicySubscriberRule } from '../../../../interface/class/api/authorization/policy/subscriber/index';
|
|
3
3
|
import { ApiSubscriberBase } from '../../subscriber/base.class';
|
|
4
4
|
/**
|
|
5
5
|
* Base class for all authorization policies. It mirrors ApiFunctionSubscriberBase
|
|
6
6
|
* and provides helper methods to create allow/deny rules that are later executed by the policy executor.
|
|
7
7
|
* @template E - Entity type extending IApiBaseEntity
|
|
8
8
|
*/
|
|
9
|
-
export declare abstract class ApiAuthorizationPolicyBase<E extends IApiBaseEntity> extends ApiSubscriberBase
|
|
10
|
-
getCustomActionRule?: IApiAuthorizationPolicySubscriber<E>["getCustomActionRule"];
|
|
11
|
-
onBeforeCreate?: IApiAuthorizationPolicySubscriber<E>["onBeforeCreate"];
|
|
12
|
-
onBeforeDelete?: IApiAuthorizationPolicySubscriber<E>["onBeforeDelete"];
|
|
13
|
-
onBeforeGet?: IApiAuthorizationPolicySubscriber<E>["onBeforeGet"];
|
|
14
|
-
onBeforeGetList?: IApiAuthorizationPolicySubscriber<E>["onBeforeGetList"];
|
|
15
|
-
onBeforePartialUpdate?: IApiAuthorizationPolicySubscriber<E>["onBeforePartialUpdate"];
|
|
16
|
-
onBeforeUpdate?: IApiAuthorizationPolicySubscriber<E>["onBeforeUpdate"];
|
|
9
|
+
export declare abstract class ApiAuthorizationPolicyBase<E extends IApiBaseEntity> extends ApiSubscriberBase {
|
|
17
10
|
/**
|
|
18
11
|
* Creates an ALLOW rule with optional overrides.
|
|
19
12
|
* @param {Omit<IApiAuthorizationPolicySubscriberRule<E>, "effect">} [rule] - Rule fields to merge.
|
|
20
|
-
* @returns {IApiAuthorizationPolicySubscriberRule<E
|
|
13
|
+
* @returns {Array<IApiAuthorizationPolicySubscriberRule<E>>} Allow rule array.
|
|
21
14
|
*/
|
|
22
|
-
protected allow<R>(rule?: Omit<IApiAuthorizationPolicySubscriberRule<E, R>, "effect">): IApiAuthorizationPolicySubscriberRule<E, R
|
|
15
|
+
protected allow<R>(rule?: Omit<IApiAuthorizationPolicySubscriberRule<E, R>, "effect">): Array<IApiAuthorizationPolicySubscriberRule<E, R>>;
|
|
23
16
|
/**
|
|
24
17
|
* Helper that creates an allow rule conditioned on the subject having at least one of the provided roles.
|
|
25
18
|
* @param {Array<string>} roles - Roles that grant access.
|
|
26
19
|
* @param {Omit<IApiAuthorizationPolicySubscriberRule<E>, "effect">} [rule] - Optional overrides.
|
|
27
|
-
* @returns {IApiAuthorizationPolicySubscriberRule<E
|
|
20
|
+
* @returns {Array<IApiAuthorizationPolicySubscriberRule<E>>} Allow rule array targeting the given roles.
|
|
28
21
|
*/
|
|
29
|
-
protected allowForRoles<R>(roles: Array<string>, rule?: Omit<IApiAuthorizationPolicySubscriberRule<E, R>, "effect">): IApiAuthorizationPolicySubscriberRule<E, R
|
|
22
|
+
protected allowForRoles<R>(roles: Array<string>, rule?: Omit<IApiAuthorizationPolicySubscriberRule<E, R>, "effect">): Array<IApiAuthorizationPolicySubscriberRule<E, R>>;
|
|
30
23
|
/**
|
|
31
24
|
* Creates a DENY rule with optional overrides.
|
|
32
25
|
* @param {Omit<IApiAuthorizationPolicySubscriberRule<E>, "effect">} [rule] - Rule fields to merge.
|
|
33
|
-
* @returns {IApiAuthorizationPolicySubscriberRule<E
|
|
26
|
+
* @returns {Array<IApiAuthorizationPolicySubscriberRule<E>>} Deny rule array.
|
|
34
27
|
*/
|
|
35
|
-
protected deny<R>(rule?: Omit<IApiAuthorizationPolicySubscriberRule<E, R>, "effect">): IApiAuthorizationPolicySubscriberRule<E, R
|
|
28
|
+
protected deny<R>(rule?: Omit<IApiAuthorizationPolicySubscriberRule<E, R>, "effect">): Array<IApiAuthorizationPolicySubscriberRule<E, R>>;
|
|
36
29
|
/**
|
|
37
30
|
* Helper that scopes data access to the owner identified by a field.
|
|
38
31
|
* Automatically resolves relation vs scalar fields by default.
|
|
@@ -40,9 +33,9 @@ export declare abstract class ApiAuthorizationPolicyBase<E extends IApiBaseEntit
|
|
|
40
33
|
* @param {Omit<IApiAuthorizationPolicySubscriberRule<E>, "effect">} [rule] - Optional overrides.
|
|
41
34
|
* @param {{ isRelation?: boolean }} [options] - Override relation handling; defaults to auto.
|
|
42
35
|
* @param {boolean} [options.isRelation] - Whether the field is a relation (defaults to auto).
|
|
43
|
-
* @returns {IApiAuthorizationPolicySubscriberRule<E
|
|
36
|
+
* @returns {Array<IApiAuthorizationPolicySubscriberRule<E>>} Allow rule array with owner scope.
|
|
44
37
|
*/
|
|
45
38
|
protected scopeToOwner<R>(ownerField?: keyof E, rule?: Omit<IApiAuthorizationPolicySubscriberRule<E, R>, "effect">, options?: {
|
|
46
39
|
isRelation?: boolean;
|
|
47
|
-
}): IApiAuthorizationPolicySubscriberRule<E, R
|
|
40
|
+
}): Array<IApiAuthorizationPolicySubscriberRule<E, R>>;
|
|
48
41
|
}
|
|
@@ -12,19 +12,21 @@ class ApiAuthorizationPolicyBase extends base_class.ApiSubscriberBase {
|
|
|
12
12
|
/**
|
|
13
13
|
* Creates an ALLOW rule with optional overrides.
|
|
14
14
|
* @param {Omit<IApiAuthorizationPolicySubscriberRule<E>, "effect">} [rule] - Rule fields to merge.
|
|
15
|
-
* @returns {IApiAuthorizationPolicySubscriberRule<E
|
|
15
|
+
* @returns {Array<IApiAuthorizationPolicySubscriberRule<E>>} Allow rule array.
|
|
16
16
|
*/
|
|
17
17
|
allow(rule = {}) {
|
|
18
|
-
return
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
return [
|
|
19
|
+
{
|
|
20
|
+
effect: effect_enum.EAuthorizationEffect.ALLOW,
|
|
21
|
+
...rule,
|
|
22
|
+
},
|
|
23
|
+
];
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
26
|
* Helper that creates an allow rule conditioned on the subject having at least one of the provided roles.
|
|
25
27
|
* @param {Array<string>} roles - Roles that grant access.
|
|
26
28
|
* @param {Omit<IApiAuthorizationPolicySubscriberRule<E>, "effect">} [rule] - Optional overrides.
|
|
27
|
-
* @returns {IApiAuthorizationPolicySubscriberRule<E
|
|
29
|
+
* @returns {Array<IApiAuthorizationPolicySubscriberRule<E>>} Allow rule array targeting the given roles.
|
|
28
30
|
*/
|
|
29
31
|
allowForRoles(roles, rule = {}) {
|
|
30
32
|
return this.allow({
|
|
@@ -35,13 +37,15 @@ class ApiAuthorizationPolicyBase extends base_class.ApiSubscriberBase {
|
|
|
35
37
|
/**
|
|
36
38
|
* Creates a DENY rule with optional overrides.
|
|
37
39
|
* @param {Omit<IApiAuthorizationPolicySubscriberRule<E>, "effect">} [rule] - Rule fields to merge.
|
|
38
|
-
* @returns {IApiAuthorizationPolicySubscriberRule<E
|
|
40
|
+
* @returns {Array<IApiAuthorizationPolicySubscriberRule<E>>} Deny rule array.
|
|
39
41
|
*/
|
|
40
42
|
deny(rule = {}) {
|
|
41
|
-
return
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
return [
|
|
44
|
+
{
|
|
45
|
+
effect: effect_enum.EAuthorizationEffect.DENY,
|
|
46
|
+
...rule,
|
|
47
|
+
},
|
|
48
|
+
];
|
|
45
49
|
}
|
|
46
50
|
/**
|
|
47
51
|
* Helper that scopes data access to the owner identified by a field.
|
|
@@ -50,7 +54,7 @@ class ApiAuthorizationPolicyBase extends base_class.ApiSubscriberBase {
|
|
|
50
54
|
* @param {Omit<IApiAuthorizationPolicySubscriberRule<E>, "effect">} [rule] - Optional overrides.
|
|
51
55
|
* @param {{ isRelation?: boolean }} [options] - Override relation handling; defaults to auto.
|
|
52
56
|
* @param {boolean} [options.isRelation] - Whether the field is a relation (defaults to auto).
|
|
53
|
-
* @returns {IApiAuthorizationPolicySubscriberRule<E
|
|
57
|
+
* @returns {Array<IApiAuthorizationPolicySubscriberRule<E>>} Allow rule array with owner scope.
|
|
54
58
|
*/
|
|
55
59
|
scopeToOwner(ownerField = "ownerId", rule = {}, options = {}) {
|
|
56
60
|
const ownerFieldName = String(ownerField);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.class.js","sources":["../../../../../../../src/class/api/authorization/policy/base.class.ts"],"sourcesContent":[null],"names":["ApiSubscriberBase","EAuthorizationEffect"],"mappings":";;;;;AAQA;;;;AAIG;AACG,MAAgB,0BAAqD,SAAQA,4BAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"base.class.js","sources":["../../../../../../../src/class/api/authorization/policy/base.class.ts"],"sourcesContent":[null],"names":["ApiSubscriberBase","EAuthorizationEffect"],"mappings":";;;;;AAQA;;;;AAIG;AACG,MAAgB,0BAAqD,SAAQA,4BAAiB,CAAA;AACnG;;;;AAIG;IACO,KAAK,CAAI,OAAoE,EAAiE,EAAA;QACvJ,OAAO;AACN,YAAA;gBACC,MAAM,EAAEC,gCAAoB,CAAC,KAAK;AAClC,gBAAA,GAAG,IAAI;AACP,aAAA;SACD;IACF;AAEA;;;;;AAKG;AACO,IAAA,aAAa,CAAI,KAAoB,EAAE,IAAA,GAAoE,EAAiE,EAAA;QACrL,OAAO,IAAI,CAAC,KAAK,CAAC;YACjB,SAAS,EAAE,CAAC,EAAE,OAAO,EAAmC,KAAK,KAAK,CAAC,IAAI,CAAC,CAAC,IAAY,KAAK,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACvH,YAAA,GAAG,IAAI;AACP,SAAA,CAAC;IACH;AAEA;;;;AAIG;IACO,IAAI,CAAI,OAAoE,EAAiE,EAAA;QACtJ,OAAO;AACN,YAAA;gBACC,MAAM,EAAEA,gCAAoB,CAAC,IAAI;AACjC,gBAAA,GAAG,IAAI;AACP,aAAA;SACD;IACF;AAEA;;;;;;;;AAQG;IACO,YAAY,CAAI,aAAsB,SAAoB,EAAE,OAAoE,EAAiE,EAAE,UAAoC,EAAE,EAAA;AAClP,QAAA,MAAM,cAAc,GAAW,MAAM,CAAC,UAAU,CAAC;AACjD,QAAA,MAAM,UAAU,GAAY,OAAO,CAAC,UAAU,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC;QAEhF,OAAO,IAAI,CAAC,KAAK,CAAC;AACjB,YAAA,KAAK,EAAE,CAAC,EAAE,OAAO,EAAmC,KAAI;AACvD,gBAAA,MAAM,cAAc,GAAY,UAAU,GAAG,EAAE,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,GAAG,OAAO,CAAC,EAAE;gBAE5E,OAAO;AACN,oBAAA,KAAK,EAAE;wBACN,CAAC,cAAc,GAAG,cAAc;AACT,qBAAA;iBACxB;YACF,CAAC;AACD,YAAA,GAAG,IAAI;AACP,SAAA,CAAC;IACH;AACA;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var tslib_es6 = require('../../../../external/tslib/tslib.es6.js');
|
|
4
|
-
var
|
|
4
|
+
var policyDecorator_constant = require('../../../../constant/class/authorization/policy-decorator.constant.js');
|
|
5
5
|
var common = require('@nestjs/common');
|
|
6
6
|
var core = require('@nestjs/core');
|
|
7
7
|
var logger_utility = require('../../../../utility/logger.utility.js');
|
|
@@ -24,12 +24,12 @@ exports.ApiAuthorizationPolicyDiscoveryService = class ApiAuthorizationPolicyDis
|
|
|
24
24
|
if (!wrapper.metatype) {
|
|
25
25
|
continue;
|
|
26
26
|
}
|
|
27
|
-
const metadata = Reflect.getMetadata(
|
|
27
|
+
const metadata = Reflect.getMetadata(policyDecorator_constant.AUTHORIZATION_POLICY_DECORATOR_CONSTANT.METADATA_KEY, wrapper.metatype);
|
|
28
28
|
const properties = metadata;
|
|
29
29
|
if (!properties) {
|
|
30
30
|
continue;
|
|
31
31
|
}
|
|
32
|
-
const policyId = properties.policyId ?? `${properties.entity.name?.toLowerCase() ?? "unknown"}${
|
|
32
|
+
const policyId = properties.policyId ?? `${properties.entity.name?.toLowerCase() ?? "unknown"}${policyDecorator_constant.AUTHORIZATION_POLICY_DECORATOR_CONSTANT.DEFAULT_POLICY_ID_SUFFIX}`;
|
|
33
33
|
this.registry.registerSubscriber({
|
|
34
34
|
cache: properties.cache,
|
|
35
35
|
description: properties.description,
|
|
@@ -43,7 +43,7 @@ exports.ApiAuthorizationPolicyDiscoveryService = class ApiAuthorizationPolicyDis
|
|
|
43
43
|
policyDiscoveryLogger.verbose(`Authorization policy discovery finished. Registered ${policyProviders.length} providers.`);
|
|
44
44
|
}
|
|
45
45
|
isPolicyWrapper(wrapper) {
|
|
46
|
-
return Boolean(wrapper.instance && wrapper.metatype && wrapper.instance instanceof base_class.ApiAuthorizationPolicyBase && Reflect.hasMetadata(
|
|
46
|
+
return Boolean(wrapper.instance && wrapper.metatype && wrapper.instance instanceof base_class.ApiAuthorizationPolicyBase && Reflect.hasMetadata(policyDecorator_constant.AUTHORIZATION_POLICY_DECORATOR_CONSTANT.METADATA_KEY, wrapper.metatype));
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
exports.ApiAuthorizationPolicyDiscoveryService = tslib_es6.__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discovery-service.class.js","sources":["../../../../../../../src/class/api/authorization/policy/discovery-service.class.ts"],"sourcesContent":[null],"names":["LoggerUtility","ApiAuthorizationPolicyDiscoveryService","AUTHORIZATION_POLICY_DECORATOR_CONSTANT","ApiAuthorizationPolicyBase","__decorate","Injectable","DiscoveryService","ApiAuthorizationPolicyRegistry"],"mappings":";;;;;;;;;;AAYA,MAAM,qBAAqB,GAAkBA,4BAAa,CAAC,SAAS,CAAC,wCAAwC,CAAC;AAGjGC,8CAAsC,GAA5C,MAAM,sCAAsC,CAAA;AAEhC,IAAA,gBAAA;AACA,IAAA,QAAA;IAFlB,WAAA,CACkB,gBAAkC,EAClC,QAAwC,EAAA;QADxC,IAAA,CAAA,gBAAgB,GAAhB,gBAAgB;QAChB,IAAA,CAAA,QAAQ,GAAR,QAAQ;IACvB;IAEI,YAAY,GAAA;AAClB,QAAA,qBAAqB,CAAC,OAAO,CAAC,4CAA4C,CAAC;QAC3E,MAAM,SAAS,GAA2B,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE;AAC9E,QAAA,MAAM,eAAe,GAA2B,SAAS,CAAC,MAAM,CAAC,CAAC,OAAwB,KAAK,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;AAE7H,QAAA,KAAK,MAAM,OAAO,IAAI,eAAe,EAAE;AACtC,YAAA,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE;gBACtB;YACD;AAEA,YAAA,MAAM,QAAQ,GAAY,OAAO,CAAC,WAAW,CAACC,
|
|
1
|
+
{"version":3,"file":"discovery-service.class.js","sources":["../../../../../../../src/class/api/authorization/policy/discovery-service.class.ts"],"sourcesContent":[null],"names":["LoggerUtility","ApiAuthorizationPolicyDiscoveryService","AUTHORIZATION_POLICY_DECORATOR_CONSTANT","ApiAuthorizationPolicyBase","__decorate","Injectable","DiscoveryService","ApiAuthorizationPolicyRegistry"],"mappings":";;;;;;;;;;AAYA,MAAM,qBAAqB,GAAkBA,4BAAa,CAAC,SAAS,CAAC,wCAAwC,CAAC;AAGjGC,8CAAsC,GAA5C,MAAM,sCAAsC,CAAA;AAEhC,IAAA,gBAAA;AACA,IAAA,QAAA;IAFlB,WAAA,CACkB,gBAAkC,EAClC,QAAwC,EAAA;QADxC,IAAA,CAAA,gBAAgB,GAAhB,gBAAgB;QAChB,IAAA,CAAA,QAAQ,GAAR,QAAQ;IACvB;IAEI,YAAY,GAAA;AAClB,QAAA,qBAAqB,CAAC,OAAO,CAAC,4CAA4C,CAAC;QAC3E,MAAM,SAAS,GAA2B,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE;AAC9E,QAAA,MAAM,eAAe,GAA2B,SAAS,CAAC,MAAM,CAA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O,OAAO,CAAC,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,YAAYC,qCAA0B,IAAI,OAAO,CAAC,WAAW,CAACD,gEAAuC,CAAC,YAAY,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC9M;;AA1CYD,8CAAsC,GAAAG,oBAAA,CAAA;AADlD,IAAAC,iBAAU,EAAE;+CAGwBC,qBAAgB;QACxBC,6CAA8B,CAAA;AAH9C,CAAA,EAAAN,8CAAsC,CA2ClD;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var policyOnType_enum = require('../../../../enum/class/authorization/policy-on-type.enum.js');
|
|
4
4
|
var routeType_enum = require('../../../../enum/decorator/api/route-type.enum.js');
|
|
5
5
|
var capitalizeString_utility = require('../../../../utility/capitalize-string.utility.js');
|
|
6
6
|
var logger_utility = require('../../../../utility/logger.utility.js');
|
|
@@ -10,7 +10,7 @@ class ApiAuthorizationPolicyExecutor {
|
|
|
10
10
|
static async execute(subscriber, action, context) {
|
|
11
11
|
const routeType = context.routeType ?? this.resolveRouteType(action);
|
|
12
12
|
if (routeType) {
|
|
13
|
-
const hookName = `on${
|
|
13
|
+
const hookName = `on${policyOnType_enum.EApiAuthorizationPolicyOnType.BEFORE}${capitalizeString_utility.CapitalizeString(routeType)}`;
|
|
14
14
|
const hook = subscriber[hookName];
|
|
15
15
|
if (typeof hook === "function") {
|
|
16
16
|
policyExecutorLogger.verbose(`Executing authorization policy hook ${hookName} from ${subscriber.constructor.name} for action "${action}"`);
|
|
@@ -28,10 +28,7 @@ class ApiAuthorizationPolicyExecutor {
|
|
|
28
28
|
return this.normalizeRuleResult(await customResult);
|
|
29
29
|
}
|
|
30
30
|
static normalizeRuleResult(result) {
|
|
31
|
-
|
|
32
|
-
return result.filter((rule) => rule != null);
|
|
33
|
-
}
|
|
34
|
-
return result ? [result] : [];
|
|
31
|
+
return result.filter((rule) => rule != null);
|
|
35
32
|
}
|
|
36
33
|
static resolveRouteType(action) {
|
|
37
34
|
const routeTypes = Object.values(routeType_enum.EApiRouteType);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.class.js","sources":["../../../../../../../src/class/api/authorization/policy/executor.class.ts"],"sourcesContent":[null],"names":["LoggerUtility","EApiAuthorizationPolicyOnType","CapitalizeString","EApiRouteType"],"mappings":";;;;;;;AAUA,MAAM,oBAAoB,GAAkBA,4BAAa,CAAC,SAAS,CAAC,gCAAgC,CAAC;MAIxF,8BAA8B,CAAA;IACnC,aAAa,OAAO,CAAmD,UAAgD,EAAE,MAAe,EAAE,OAAoD,EAAA;AACpM,QAAA,MAAM,SAAS,GAA8B,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC;QAE/F,IAAI,SAAS,EAAE;AACd,YAAA,MAAM,QAAQ,GAAW,CAAA,EAAA,EAAKC,
|
|
1
|
+
{"version":3,"file":"executor.class.js","sources":["../../../../../../../src/class/api/authorization/policy/executor.class.ts"],"sourcesContent":[null],"names":["LoggerUtility","EApiAuthorizationPolicyOnType","CapitalizeString","EApiRouteType"],"mappings":";;;;;;;AAUA,MAAM,oBAAoB,GAAkBA,4BAAa,CAAC,SAAS,CAAC,gCAAgC,CAAC;MAIxF,8BAA8B,CAAA;IACnC,aAAa,OAAO,CAAmD,UAAgD,EAAE,MAAe,EAAE,OAAoD,EAAA;AACpM,QAAA,MAAM,SAAS,GAA8B,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC;QAE/F,IAAI,SAAS,EAAE;AACd,YAAA,MAAM,QAAQ,GAAW,CAAA,EAAA,EAAKC,+CAA6B,CAAC,MAAM,CAAA,EAAGC,yCAAgB,CAAC,SAAS,CAAC,CAAA,CAAE;AAClG,YAAA,MAAM,IAAI,GAAY,UAAU,CAAC,QAAsD,CAAC;AAExF,YAAA,IAAI,OAAO,IAAI,KAAK,UAAU,EAAE;AAC/B,gBAAA,oBAAoB,CAAC,OAAO,CAAC,CAAA,oCAAA,EAAuC,QAAQ,CAAA,MAAA,EAAS,UAAU,CAAC,WAAW,CAAC,IAAI,CAAA,aAAA,EAAgB,MAAM,CAAA,CAAA,CAAG,CAAC;gBAC1I,MAAM,SAAS,GAAqH,IAAwH;gBAC5P,MAAM,MAAM,GAA2D,SAAS,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC;AAE1G,gBAAA,OAAO,IAAI,CAAC,mBAAmB,CAAC,MAAM,MAAM,CAAC;YAC9C;AAEA,YAAA,OAAO,EAAE;QACV;AAEA,QAAA,IAAI,OAAO,UAAU,CAAC,mBAAmB,KAAK,UAAU,EAAE;AACzD,YAAA,OAAO,EAAE;QACV;QAEA,MAAM,gBAAgB,GAA+I,UAAU,CAAC,mBAAmB,CAAC,IAAI,CAAC,UAAU,CAA+I;QAElW,MAAM,YAAY,GAA2D,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC;AAE9G,QAAA,OAAO,IAAI,CAAC,mBAAmB,CAAC,MAAM,YAAY,CAAC;IACpD;IAEQ,OAAO,mBAAmB,CAA8B,MAAyD,EAAA;AACxH,QAAA,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,IAAoE,KAA0D,IAAI,IAAI,IAAI,CAAC;IAClK;IAEQ,OAAO,gBAAgB,CAAC,MAAc,EAAA;QAC7C,MAAM,UAAU,GAAkB,MAAM,CAAC,MAAM,CAACC,4BAAa,CAAkB;AAE/E,QAAA,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC,SAAiB,KAAK,SAAS,KAAK,MAAM,CAA8B;IACjG;AACA;;;;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var policyDecorator_constant = require('../../../../constant/class/authorization/policy-decorator.constant.js');
|
|
4
4
|
require('../../../../external/@elsikora/cladi/dist/esm/domain/enum/logger-log-level.enum.js');
|
|
5
5
|
require('../../../../external/@elsikora/cladi/dist/esm/infrastructure/constant/console-logger-default-options.constant.js');
|
|
6
6
|
var registry_utility = require('../../../../external/@elsikora/cladi/dist/esm/presentation/utility/create/registry.utility.js');
|
|
7
7
|
var routeType_enum = require('../../../../enum/decorator/api/route-type.enum.js');
|
|
8
|
-
var resolveDefaultSubject_utility = require('../../../../utility/authorization/
|
|
8
|
+
var resolveDefaultSubject_utility = require('../../../../utility/authorization/resolve-default-subject.utility.js');
|
|
9
9
|
var generateEntityInformation_utility = require('../../../../utility/generate-entity-information.utility.js');
|
|
10
10
|
var logger_utility = require('../../../../utility/logger.utility.js');
|
|
11
11
|
var executor_class = require('./executor.class.js');
|
|
@@ -168,7 +168,7 @@ class ApiAuthorizationPolicyRegistry {
|
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
resolvePolicyId(entity) {
|
|
171
|
-
return `${this.getEntityName(entity)}${
|
|
171
|
+
return `${this.getEntityName(entity)}${policyDecorator_constant.AUTHORIZATION_POLICY_DECORATOR_CONSTANT.DEFAULT_POLICY_ID_SUFFIX}`;
|
|
172
172
|
}
|
|
173
173
|
async resolvePolicyRules(registration, action, context, entityName) {
|
|
174
174
|
const cacheOptions = this.resolveCacheOptions(registration.cache);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.class.js","sources":["../../../../../../../src/class/api/authorization/policy/registry.class.ts"],"sourcesContent":[null],"names":["LoggerUtility","createRegistry","GenerateEntityInformation","AuthorizationResolveDefaultSubject","AUTHORIZATION_POLICY_DECORATOR_CONSTANT","ApiAuthorizationPolicyExecutor","EApiRouteType"],"mappings":";;;;;;;;;;;;AAmBA,MAAM,oBAAoB,GAAkBA,4BAAa,CAAC,SAAS,CAAC,gCAAgC,CAAC;MAIxF,8BAA8B,CAAA;AAClC,IAAA,YAAY;AAEH,IAAA,eAAe;AAEf,IAAA,iBAAiB;AAElC,IAAA,WAAA,GAAA;A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,KAAK;SACjB;IACF;AAEQ,IAAA,mBAAmB,CAAC,OAA6C,EAAA;QACxE,OAAO;YACN,SAAS,EAAE,OAAO,EAAE,SAAS,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS;YAC5D,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,IAAI,CAAC,YAAY,CAAC,KAAK;SAChD;IACF;AAEQ,IAAA,eAAe,CAA2B,MAA6B,EAAA;AAC9E,QAAA,OAAO,CAAA,EAAG,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA,EAAGC,
|
|
1
|
+
{"version":3,"file":"registry.class.js","sources":["../../../../../../../src/class/api/authorization/policy/registry.class.ts"],"sourcesContent":[null],"names":["LoggerUtility","createRegistry","GenerateEntityInformation","AuthorizationResolveDefaultSubject","AUTHORIZATION_POLICY_DECORATOR_CONSTANT","ApiAuthorizationPolicyExecutor","EApiRouteType"],"mappings":";;;;;;;;;;;;AAmBA,MAAM,oBAAoB,GAAkBA,4BAAa,CAAC,SAAS,CAAC,gCAAgC,CAAC;MAIxF,8BAA8B,CAAA;AAClC,IAAA,YAAY;AAEH,IAAA,eAAe;AAEf,IAAA,iBAAiB;AAElC,IAAA,WAAA,GAAA;AACC,QAAA,IAAI,CAAC,iBAAiB,GAAG,IAAI,GAAG,EAAE;AAClC,QAAA,IAAI,CAAC,eAAe,GAAGC,+BAAc,CAA0B,EAAE,CAAC;QAClE,IAAI,CAAC,YAAY,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE;IACzC;IAEO,MAAM,qBAAqB,CAAmD,MAA6B,EAAE,MAAe,EAAE,UAA+C,EAAE,EAAA;QACrL,MAAM,UAAU,GAAW,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC;QACrD,oBAAoB,CAAC,KAAK,CAAC,CAAA,uCAAA,EAA0C,UAAU,CAAA,UAAA,EAAa,MAAM,CAAA,CAAA,CAAG,CAAC;QAEtG,MAAM,mBAAmB,GAAwC,IAAI,CAAC,eAAe,CAAC,GAAG,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AO,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,iBAAiB,EAAE;IAChC;IAEO,oBAAoB,GAAA;AAC1B,QAAA,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM;IACjC;IAEQ,iBAAiB,GAAA;QACxB,OAAO,IAAI,CAAC,IAAI;IACjB;AACA;;;;;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { EApiFunctionType } from '../../../enum/decorator/api/function
|
|
1
|
+
import type { EApiFunctionType } from '../../../enum/decorator/api/function-type.enum';
|
|
2
2
|
import type { EApiSubscriberOnType } from '../../../enum/decorator/api/on-type.enum';
|
|
3
3
|
import type { EApiRouteType } from '../../../enum/decorator/api/route-type.enum';
|
|
4
4
|
import type { IApiBaseEntity } from '../../../interface/api-base-entity.interface';
|
|
5
|
-
import type { IApiSubscriberFunctionErrorExecutionContext } from '../../../interface/class/api/subscriber/function
|
|
6
|
-
import type { IApiSubscriberFunctionExecutionContext } from '../../../interface/class/api/subscriber/function
|
|
7
|
-
import type { IApiSubscriberRouteErrorExecutionContext } from '../../../interface/class/api/subscriber/route
|
|
8
|
-
import type { IApiSubscriberRouteExecutionContext } from '../../../interface/class/api/subscriber/route
|
|
5
|
+
import type { IApiSubscriberFunctionErrorExecutionContext } from '../../../interface/class/api/subscriber/function/error-execution-context.interface';
|
|
6
|
+
import type { IApiSubscriberFunctionExecutionContext } from '../../../interface/class/api/subscriber/function/execution/context.interface';
|
|
7
|
+
import type { IApiSubscriberRouteErrorExecutionContext } from '../../../interface/class/api/subscriber/route/error-execution-context.interface';
|
|
8
|
+
import type { IApiSubscriberRouteExecutionContext } from '../../../interface/class/api/subscriber/route/execution/context.interface';
|
|
9
9
|
export declare class ApiSubscriberExecutor {
|
|
10
10
|
static executeFunctionErrorSubscribers<E extends IApiBaseEntity, TInput>(constructor: new (...arguments_: Array<unknown>) => unknown, entity: E, functionType: EApiFunctionType, onType: EApiSubscriberOnType, context: IApiSubscriberFunctionErrorExecutionContext<E, TInput>, error: Error): Promise<void>;
|
|
11
11
|
static executeFunctionSubscribers<E extends IApiBaseEntity, TResult, TInput>(constructor: new (...arguments_: Array<unknown>) => unknown, entity: E, functionType: EApiFunctionType, onType: EApiSubscriberOnType, context: IApiSubscriberFunctionExecutionContext<E, TResult, TInput>): Promise<TResult | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.class.js","sources":["../../../../../../src/class/api/subscriber/registry.class.ts"],"sourcesContent":[null],"names":["LoggerUtility","createRegistry"],"mappings":";;;;;;;AASA,MAAM,wBAAwB,GAAkBA,4BAAa,CAAC,SAAS,CAAC,uBAAuB,CAAC;AAEhG,MAAM,qBAAqB,CAAA;AACT,IAAA,oBAAoB;AAEpB,IAAA,iBAAiB;AAElC,IAAA,WAAA,GAAA;AACC,QAAA,IAAI,CAAC,oBAAoB,GAAGC,+BAAc,CAA4D,EAAE,CAAC;AACzG,QAAA,IAAI,CAAC,iBAAiB,GAAGA,+BAAc,CAAyD,EAAE,CAAC;IACpG;AAEO,IAAA,sBAAsB,CAA2B,UAAkB,EAAA;QACzE,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,WAAW,IAAI,EAAE,EAAE,GAAG,CAAC,CAAC,CAA2E,KAAK,CAAC,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"registry.class.js","sources":["../../../../../../src/class/api/subscriber/registry.class.ts"],"sourcesContent":[null],"names":["LoggerUtility","createRegistry"],"mappings":";;;;;;;AASA,MAAM,wBAAwB,GAAkBA,4BAAa,CAAC,SAAS,CAAC,uBAAuB,CAAC;AAEhG,MAAM,qBAAqB,CAAA;AACT,IAAA,oBAAoB;AAEpB,IAAA,iBAAiB;AAElC,IAAA,WAAA,GAAA;AACC,QAAA,IAAI,CAAC,oBAAoB,GAAGC,+BAAc,CAA4D,EAAE,CAAC;AACzG,QAAA,IAAI,CAAC,iBAAiB,GAAGA,+BAAc,CAAyD,EAAE,CAAC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,GAAA;AACjB,QAAA,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM;IAC/B;AACA;AAEM,MAAM,qBAAqB,GAA0B,IAAI,qBAAqB;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EApiExceptionDetailsType } from '../../../../../enum/utility/exception-details
|
|
1
|
+
import { EApiExceptionDetailsType } from '../../../../../enum/utility/exception-details-type.enum';
|
|
2
2
|
export declare class ExceptionDetailsForeignKeyViolationDTO {
|
|
3
3
|
constraint?: string;
|
|
4
4
|
detail?: string;
|
|
@@ -8,7 +8,7 @@ require('../../../../../enum/decorator/api/authentication-type.enum.js');
|
|
|
8
8
|
require('../../../../../enum/decorator/api/controller/load-relations-strategy.enum.js');
|
|
9
9
|
require('../../../../../enum/decorator/api/controller/request-transformer-type.enum.js');
|
|
10
10
|
require('../../../../../enum/decorator/api/dto-type.enum.js');
|
|
11
|
-
require('../../../../../enum/decorator/api/function
|
|
11
|
+
require('../../../../../enum/decorator/api/function-type.enum.js');
|
|
12
12
|
require('../../../../../enum/decorator/api/on-type.enum.js');
|
|
13
13
|
require('../../../../../enum/decorator/api/property/data-type.enum.js');
|
|
14
14
|
require('../../../../../enum/decorator/api/property/date/identifier.enum.js');
|
|
@@ -17,7 +17,7 @@ require('../../../../../enum/decorator/api/property/desribe-type.enum.js');
|
|
|
17
17
|
require('../../../../../enum/decorator/api/property/number-type.enum.js');
|
|
18
18
|
var stringType_enum = require('../../../../../enum/decorator/api/property/string-type.enum.js');
|
|
19
19
|
require('../../../../../enum/decorator/api/route-type.enum.js');
|
|
20
|
-
var
|
|
20
|
+
var exceptionDetailsType_enum = require('../../../../../enum/utility/exception-details-type.enum.js');
|
|
21
21
|
|
|
22
22
|
const DETAILS_ENTITY = { name: "ErrorDetails" };
|
|
23
23
|
const DETAILS_MIN_LENGTH = 0;
|
|
@@ -32,7 +32,7 @@ class ExceptionDetailsForeignKeyViolationDTO {
|
|
|
32
32
|
referencedField;
|
|
33
33
|
referencedTable;
|
|
34
34
|
table;
|
|
35
|
-
type =
|
|
35
|
+
type = exceptionDetailsType_enum.EApiExceptionDetailsType.FOREIGN_KEY_VIOLATION;
|
|
36
36
|
value;
|
|
37
37
|
}
|
|
38
38
|
tslib_es6.__decorate([
|
|
@@ -116,9 +116,9 @@ tslib_es6.__decorate([
|
|
|
116
116
|
tslib_es6.__decorate([
|
|
117
117
|
enum_decorator.ApiPropertyEnum({
|
|
118
118
|
entity: DETAILS_ENTITY,
|
|
119
|
-
enum:
|
|
119
|
+
enum: exceptionDetailsType_enum.EApiExceptionDetailsType,
|
|
120
120
|
enumName: "EApiExceptionDetailsType",
|
|
121
|
-
exampleValue:
|
|
121
|
+
exampleValue: exceptionDetailsType_enum.EApiExceptionDetailsType.FOREIGN_KEY_VIOLATION,
|
|
122
122
|
isRequired: true,
|
|
123
123
|
isResponse: true,
|
|
124
124
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foreign-key-violation.class.js","sources":["../../../../../../../../src/class/utility/dto/exception/details/foreign-key-violation.class.ts"],"sourcesContent":[null],"names":["EApiExceptionDetailsType","__decorate","ApiPropertyString","EApiPropertyStringType","ApiPropertyEnum"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAOA,MAAM,cAAc,GAAmB,EAAE,IAAI,EAAE,cAAc,EAAE;AAE/D,MAAM,kBAAkB,GAAW,CAAC;AACpC,MAAM,6BAA6B,GAAW,GAAG;AACjD,MAAM,yBAAyB,GAAW,IAAI;AAE9C,MAAM,0BAA0B,GAAW,MAAM,CAAC,GAAG,CAAA,mBAAmB;AACxE,MAAM,sBAAsB,GAAW,MAAM,CAAC,GAAG,CAAA,oBAAoB;MAExD,sCAAsC,CAAA;AAWlD,IAAA,UAAU;AAYV,IAAA,MAAM;AAYN,IAAA,KAAK;AAYL,IAAA,eAAe;AAYf,IAAA,eAAe;AAYf,IAAA,KAAK;AAUL,IAAA,IAAI,GAA6BA,
|
|
1
|
+
{"version":3,"file":"foreign-key-violation.class.js","sources":["../../../../../../../../src/class/utility/dto/exception/details/foreign-key-violation.class.ts"],"sourcesContent":[null],"names":["EApiExceptionDetailsType","__decorate","ApiPropertyString","EApiPropertyStringType","ApiPropertyEnum"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAOA,MAAM,cAAc,GAAmB,EAAE,IAAI,EAAE,cAAc,EAAE;AAE/D,MAAM,kBAAkB,GAAW,CAAC;AACpC,MAAM,6BAA6B,GAAW,GAAG;AACjD,MAAM,yBAAyB,GAAW,IAAI;AAE9C,MAAM,0BAA0B,GAAW,MAAM,CAAC,GAAG,CAAA,mBAAmB;AACxE,MAAM,sBAAsB,GAAW,MAAM,CAAC,GAAG,CAAA,oBAAoB;MAExD,sCAAsC,CAAA;AAWlD,IAAA,UAAU;AAYV,IAAA,MAAM;AAYN,IAAA,KAAK;AAYL,IAAA,eAAe;AAYf,IAAA,eAAe;AAYf,IAAA,KAAK;AAUL,IAAA,IAAI,GAA6BA,kDAAwB,CAAC,qBAAqB;AAY/E,IAAA,KAAK;AACL;AAnFAC,oBAAA,CAAA;AAVC,IAAAC,kCAAiB,CAAC;AAClB,QAAA,MAAM,EAAE,cAAc;AACtB,QAAA,YAAY,EAAE,gCAAgC;QAC9C,MAAM,EAAEC,sCAAsB,CAAC,MAAM;AACrC,QAAA,UAAU,EAAE,KAAK;AACjB,QAAA,UAAU,EAAE,IAAI;AAChB,QAAA,SAAS,EAAE,6BAA6B;AACxC,QAAA,SAAS,EAAE,kBAAkB;AAC7B,QAAA,OAAO,EAAE,0BAA0B;KACnC,CAAC;;AACkB,CAAA,EAAA,sCAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAYpBF,oBAAA,CAAA;AAVC,IAAAC,kCAAiB,CAAC;AAClB,QAAA,MAAM,EAAE,cAAc;AACtB,QAAA,YAAY,EAAE,qDAAqD;QACnE,MAAM,EAAEC,sCAAsB,CAAC,MAAM;AACrC,QAAA,UAAU,EAAE,KAAK;AACjB,QAAA,U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CAAA;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EApiExceptionDetailsType } from '../../../../../enum/utility/exception-details
|
|
1
|
+
import { EApiExceptionDetailsType } from '../../../../../enum/utility/exception-details-type.enum';
|
|
2
2
|
export declare class ExceptionDetailsUniqueViolationDTO {
|
|
3
3
|
constraint?: string;
|
|
4
4
|
detail?: string;
|
|
@@ -8,7 +8,7 @@ require('../../../../../enum/decorator/api/authentication-type.enum.js');
|
|
|
8
8
|
require('../../../../../enum/decorator/api/controller/load-relations-strategy.enum.js');
|
|
9
9
|
require('../../../../../enum/decorator/api/controller/request-transformer-type.enum.js');
|
|
10
10
|
require('../../../../../enum/decorator/api/dto-type.enum.js');
|
|
11
|
-
require('../../../../../enum/decorator/api/function
|
|
11
|
+
require('../../../../../enum/decorator/api/function-type.enum.js');
|
|
12
12
|
require('../../../../../enum/decorator/api/on-type.enum.js');
|
|
13
13
|
require('../../../../../enum/decorator/api/property/data-type.enum.js');
|
|
14
14
|
require('../../../../../enum/decorator/api/property/date/identifier.enum.js');
|
|
@@ -17,7 +17,7 @@ require('../../../../../enum/decorator/api/property/desribe-type.enum.js');
|
|
|
17
17
|
require('../../../../../enum/decorator/api/property/number-type.enum.js');
|
|
18
18
|
var stringType_enum = require('../../../../../enum/decorator/api/property/string-type.enum.js');
|
|
19
19
|
require('../../../../../enum/decorator/api/route-type.enum.js');
|
|
20
|
-
var
|
|
20
|
+
var exceptionDetailsType_enum = require('../../../../../enum/utility/exception-details-type.enum.js');
|
|
21
21
|
|
|
22
22
|
const DETAILS_ENTITY = { name: "ErrorDetails" };
|
|
23
23
|
const DETAILS_MIN_LENGTH = 0;
|
|
@@ -30,7 +30,7 @@ class ExceptionDetailsUniqueViolationDTO {
|
|
|
30
30
|
detail;
|
|
31
31
|
field;
|
|
32
32
|
table;
|
|
33
|
-
type =
|
|
33
|
+
type = exceptionDetailsType_enum.EApiExceptionDetailsType.UNIQUE_VIOLATION;
|
|
34
34
|
value;
|
|
35
35
|
}
|
|
36
36
|
tslib_es6.__decorate([
|
|
@@ -88,9 +88,9 @@ tslib_es6.__decorate([
|
|
|
88
88
|
tslib_es6.__decorate([
|
|
89
89
|
enum_decorator.ApiPropertyEnum({
|
|
90
90
|
entity: DETAILS_ENTITY,
|
|
91
|
-
enum:
|
|
91
|
+
enum: exceptionDetailsType_enum.EApiExceptionDetailsType,
|
|
92
92
|
enumName: "EApiExceptionDetailsType",
|
|
93
|
-
exampleValue:
|
|
93
|
+
exampleValue: exceptionDetailsType_enum.EApiExceptionDetailsType.UNIQUE_VIOLATION,
|
|
94
94
|
isRequired: true,
|
|
95
95
|
isResponse: true,
|
|
96
96
|
}),
|