@elsikora/nestjs-crud-automator 1.9.0-dev.2 → 1.10.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/dist/cjs/class/api/index.d.ts +2 -1
- package/dist/cjs/class/api/subscriber/base.class.d.ts +3 -0
- package/dist/cjs/class/api/subscriber/base.class.js +7 -0
- package/dist/cjs/class/api/subscriber/base.class.js.map +1 -0
- package/dist/cjs/class/api/subscriber/discovery-service.class.d.ts +9 -0
- package/dist/cjs/class/api/subscriber/discovery-service.class.js +46 -0
- package/dist/cjs/class/api/subscriber/discovery-service.class.js.map +1 -0
- package/dist/cjs/class/api/subscriber/executor.class.d.ts +10 -0
- package/dist/cjs/class/api/subscriber/executor.class.js +52 -0
- package/dist/cjs/class/api/subscriber/executor.class.js.map +1 -0
- package/dist/cjs/class/api/subscriber/function-base.class.d.ts +5 -0
- package/dist/cjs/class/api/subscriber/function-base.class.js +9 -0
- package/dist/cjs/class/api/subscriber/function-base.class.js.map +1 -0
- package/dist/cjs/class/api/subscriber/index.d.ts +6 -0
- package/dist/cjs/class/api/subscriber/registry.class.d.ts +15 -0
- package/dist/cjs/class/api/subscriber/registry.class.js +57 -0
- package/dist/cjs/class/api/subscriber/registry.class.js.map +1 -0
- package/dist/cjs/class/api/subscriber/route-base.class.d.ts +5 -0
- package/dist/cjs/class/api/subscriber/route-base.class.js +9 -0
- package/dist/cjs/class/api/subscriber/route-base.class.js.map +1 -0
- package/dist/cjs/class/metadata-storage.class.js +1 -2
- package/dist/cjs/class/metadata-storage.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/property/factory/number.class.js +1 -0
- package/dist/cjs/class/utility/dto/property/factory/number.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/property/factory/relation.class.js +1 -0
- package/dist/cjs/class/utility/dto/property/factory/relation.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/body.class.js +1 -0
- package/dist/cjs/class/utility/dto/strategy/body.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/query.class.js +1 -0
- package/dist/cjs/class/utility/dto/strategy/query.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/request.class.js +1 -0
- package/dist/cjs/class/utility/dto/strategy/request.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/response.class.js +1 -0
- package/dist/cjs/class/utility/dto/strategy/response.class.js.map +1 -1
- package/dist/cjs/constant/decorator/api/controller.constant.d.ts +1 -0
- package/dist/cjs/constant/decorator/api/controller.constant.js +2 -0
- package/dist/cjs/constant/decorator/api/controller.constant.js.map +1 -1
- package/dist/cjs/constant/decorator/api/property-describe.constant.d.ts +1 -1
- package/dist/cjs/constant/decorator/api/property-describe.constant.js +2 -2
- package/dist/cjs/constant/decorator/api/property-describe.constant.js.map +1 -1
- package/dist/cjs/constant/decorator/api/service.constant.d.ts +3 -0
- package/dist/cjs/constant/decorator/api/service.constant.js +9 -0
- package/dist/cjs/constant/decorator/api/service.constant.js.map +1 -0
- package/dist/cjs/constant/decorator/api/subscriber.constant.d.ts +4 -0
- package/dist/cjs/constant/decorator/api/subscriber.constant.js +11 -0
- package/dist/cjs/constant/decorator/api/subscriber.constant.js.map +1 -0
- package/dist/cjs/constant/utility/dto/constant.js +1 -0
- package/dist/cjs/constant/utility/dto/constant.js.map +1 -1
- package/dist/cjs/constant/validator/has-paired-custom-suffixes-fields.constant.js +0 -1
- package/dist/cjs/constant/validator/has-paired-custom-suffixes-fields.constant.js.map +1 -1
- package/dist/cjs/decorator/api/controller/index.d.ts +1 -0
- package/dist/cjs/decorator/api/controller/observable.decorator.d.ts +4 -0
- package/dist/cjs/decorator/api/controller/observable.decorator.js +15 -0
- package/dist/cjs/decorator/api/controller/observable.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/function/create.decorator.d.ts +2 -2
- package/dist/cjs/decorator/api/function/create.decorator.js +45 -8
- package/dist/cjs/decorator/api/function/create.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/decorator.js +1 -1
- package/dist/cjs/decorator/api/function/decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/delete.decorator.d.ts +5 -1
- package/dist/cjs/decorator/api/function/delete.decorator.js +59 -7
- package/dist/cjs/decorator/api/function/delete.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get-list.decorator.d.ts +5 -1
- package/dist/cjs/decorator/api/function/get-list.decorator.js +56 -10
- package/dist/cjs/decorator/api/function/get-list.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get-many.decorator.d.ts +5 -1
- package/dist/cjs/decorator/api/function/get-many.decorator.js +53 -5
- package/dist/cjs/decorator/api/function/get-many.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get.decorator.d.ts +5 -1
- package/dist/cjs/decorator/api/function/get.decorator.js +53 -5
- package/dist/cjs/decorator/api/function/get.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/update.decorator.d.ts +5 -1
- package/dist/cjs/decorator/api/function/update.decorator.js +60 -11
- package/dist/cjs/decorator/api/function/update.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/index.d.ts +6 -3
- package/dist/cjs/decorator/api/method.decorator.js +1 -0
- package/dist/cjs/decorator/api/method.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/boolean.decorator.js +1 -2
- package/dist/cjs/decorator/api/property/boolean.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/copy.decorator.js +1 -1
- package/dist/cjs/decorator/api/property/copy.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/date.decorator.js +1 -2
- package/dist/cjs/decorator/api/property/date.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/describe.decorator.js +1 -1
- package/dist/cjs/decorator/api/property/describe.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/enum.decorator.js +0 -2
- package/dist/cjs/decorator/api/property/enum.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/number.decorator.js +1 -4
- package/dist/cjs/decorator/api/property/number.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/object.decorator.js +0 -4
- package/dist/cjs/decorator/api/property/object.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/string.decorator.js +4 -21
- package/dist/cjs/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/uuid.decorator.js +1 -2
- package/dist/cjs/decorator/api/property/uuid.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/service/index.d.ts +1 -0
- package/dist/cjs/decorator/api/service/observable.decorator.d.ts +4 -0
- package/dist/cjs/decorator/api/service/observable.decorator.js +15 -0
- package/dist/cjs/decorator/api/service/observable.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/service.decorator.js +3 -37
- package/dist/cjs/decorator/api/service.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/subscriber/function.decorator.d.ts +9 -0
- package/dist/cjs/decorator/api/subscriber/function.decorator.js +18 -0
- package/dist/cjs/decorator/api/subscriber/function.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/subscriber/index.d.ts +2 -0
- package/dist/cjs/decorator/api/subscriber/route.decorator.d.ts +9 -0
- package/dist/cjs/decorator/api/subscriber/route.decorator.js +18 -0
- package/dist/cjs/decorator/api/subscriber/route.decorator.js.map +1 -0
- package/dist/cjs/enum/decorator/api/index.d.ts +5 -4
- package/dist/cjs/enum/decorator/api/on-type.enum.d.ts +6 -0
- package/dist/cjs/enum/decorator/api/on-type.enum.js +10 -0
- package/dist/cjs/enum/decorator/api/on-type.enum.js.map +1 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/domain/enum/logger-log-level.enum.js +14 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/domain/enum/logger-log-level.enum.js.map +1 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/infrastructure/class/base/error.class.js +31 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/infrastructure/class/base/error.class.js.map +1 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/infrastructure/class/base/registry.class.js +222 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/infrastructure/class/base/registry.class.js.map +1 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/infrastructure/constant/console-logger-default-options.constant.js +11 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/infrastructure/constant/console-logger-default-options.constant.js.map +1 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/infrastructure/service/console-logger.service.js +131 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/infrastructure/service/console-logger.service.js.map +1 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/presentation/utility/create/registry.utility.js +19 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/presentation/utility/create/registry.utility.js.map +1 -0
- package/dist/cjs/factory/api/controller.factory.d.ts +2 -1
- package/dist/cjs/factory/api/controller.factory.js +299 -105
- package/dist/cjs/factory/api/controller.factory.js.map +1 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +33 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interface/class/api/subscriber/execution-context.interface.d.ts +15 -0
- package/dist/cjs/interface/class/api/subscriber/function-execution-context.interface.d.ts +6 -0
- package/dist/cjs/interface/class/api/subscriber/function.interface.d.ts +31 -0
- package/dist/cjs/interface/class/api/subscriber/interface.d.ts +2 -0
- package/dist/cjs/interface/class/api/subscriber/route-execution-context.interface.d.ts +6 -0
- package/dist/cjs/interface/class/api/subscriber/route.interface.d.ts +39 -0
- package/dist/cjs/interface/decorator/api/function/create-executor-properties.interface.d.ts +2 -1
- package/dist/cjs/interface/decorator/api/function/delete-executor-properties.interface.d.ts +5 -4
- package/dist/cjs/interface/decorator/api/function/get-executor-properties.interface.d.ts +2 -1
- package/dist/cjs/interface/decorator/api/function/get-list-executor-properties.interface.d.ts +2 -1
- package/dist/cjs/interface/decorator/api/function/get-many-executor-properties.interface.d.ts +2 -1
- package/dist/cjs/interface/decorator/api/function/properties.interface.d.ts +2 -2
- package/dist/cjs/interface/decorator/api/function/update-executor-properties.interface.d.ts +5 -4
- package/dist/cjs/interface/decorator/api/index.d.ts +6 -5
- package/dist/cjs/interface/decorator/api/subscriber/function-properties.interface.d.ts +5 -0
- package/dist/cjs/interface/decorator/api/subscriber/index.d.ts +2 -0
- package/dist/cjs/interface/decorator/api/subscriber/route-properties.interface.d.ts +5 -0
- package/dist/cjs/module/api-subscriber.module.d.ts +2 -0
- package/dist/cjs/module/api-subscriber.module.js +17 -0
- package/dist/cjs/module/api-subscriber.module.js.map +1 -0
- package/dist/cjs/module/index.d.ts +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/utility/api/controller/apply-decorators.utility.js +1 -0
- package/dist/cjs/utility/api/controller/apply-decorators.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/apply-metadata.utility.js +1 -0
- package/dist/cjs/utility/api/controller/apply-metadata.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/get-list/transform-filter.utility.js +1 -0
- package/dist/cjs/utility/api/controller/get-list/transform-filter.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/get-list/transform-operation.utility.d.ts +5 -0
- package/dist/cjs/utility/api/controller/get-list/transform-operation.utility.js +5 -1
- package/dist/cjs/utility/api/controller/get-list/transform-operation.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/handle-request-relations.utility.js +4 -0
- package/dist/cjs/utility/api/controller/handle-request-relations.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/transform-data.utility.js +1 -0
- package/dist/cjs/utility/api/controller/transform-data.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/write-dto-swagger.utility.js +2 -4
- package/dist/cjs/utility/api/controller/write-dto-swagger.utility.js.map +1 -1
- package/dist/cjs/utility/api/filter-order-by-from-entity.utility.js +1 -1
- package/dist/cjs/utility/api/filter-order-by-from-entity.utility.js.map +1 -1
- package/dist/cjs/utility/dto/build-decorator.utility.js +1 -0
- package/dist/cjs/utility/dto/build-decorator.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate-dynamic.utility.js +1 -3
- package/dist/cjs/utility/dto/generate-dynamic.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate-exception.utility.js +1 -0
- package/dist/cjs/utility/dto/generate-exception.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate-filter-decorator.utility.js +1 -0
- package/dist/cjs/utility/dto/generate-filter-decorator.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate-get-list-response.utility.js +1 -0
- package/dist/cjs/utility/dto/generate-get-list-response.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate.utility.js +4 -18
- package/dist/cjs/utility/dto/generate.utility.js.map +1 -1
- package/dist/cjs/utility/dto/get-get-list-query-base-class.utility.js +1 -0
- package/dist/cjs/utility/dto/get-get-list-query-base-class.utility.js.map +1 -1
- package/dist/cjs/utility/dto/handle-date-property.utility.js +1 -0
- package/dist/cjs/utility/dto/handle-date-property.utility.js.map +1 -1
- package/dist/cjs/utility/dto/is-property-should-be-marked.utility.js +1 -0
- package/dist/cjs/utility/dto/is-property-should-be-marked.utility.js.map +1 -1
- package/dist/cjs/utility/dto/is-should-be-generated.utility.js +1 -0
- package/dist/cjs/utility/dto/is-should-be-generated.utility.js.map +1 -1
- package/dist/cjs/utility/logger.utility.js +3 -2
- package/dist/cjs/utility/logger.utility.js.map +1 -1
- package/dist/cjs/validator/all-or-none-of-listed-properties.validator.js +0 -1
- package/dist/cjs/validator/all-or-none-of-listed-properties.validator.js.map +1 -1
- package/dist/cjs/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js +0 -1
- package/dist/cjs/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js.map +1 -1
- package/dist/cjs/validator/has-at-least-one-of-listed-properties.validator.js +0 -1
- package/dist/cjs/validator/has-at-least-one-of-listed-properties.validator.js.map +1 -1
- package/dist/cjs/validator/has-at-least-one-property.validator.js +0 -1
- package/dist/cjs/validator/has-at-least-one-property.validator.js.map +1 -1
- package/dist/cjs/validator/has-paired-custom-suffixes-fields.validator.js +0 -1
- package/dist/cjs/validator/has-paired-custom-suffixes-fields.validator.js.map +1 -1
- package/dist/cjs/validator/must-match-one-of-schemas.validator.js +0 -1
- package/dist/cjs/validator/must-match-one-of-schemas.validator.js.map +1 -1
- package/dist/cjs/validator/only-one-of-listed-properties.validator.js +0 -1
- package/dist/cjs/validator/only-one-of-listed-properties.validator.js.map +1 -1
- package/dist/esm/class/api/index.d.ts +2 -1
- package/dist/esm/class/api/subscriber/base.class.d.ts +3 -0
- package/dist/esm/class/api/subscriber/base.class.js +5 -0
- package/dist/esm/class/api/subscriber/base.class.js.map +1 -0
- package/dist/esm/class/api/subscriber/discovery-service.class.d.ts +9 -0
- package/dist/esm/class/api/subscriber/discovery-service.class.js +46 -0
- package/dist/esm/class/api/subscriber/discovery-service.class.js.map +1 -0
- package/dist/esm/class/api/subscriber/executor.class.d.ts +10 -0
- package/dist/esm/class/api/subscriber/executor.class.js +50 -0
- package/dist/esm/class/api/subscriber/executor.class.js.map +1 -0
- package/dist/esm/class/api/subscriber/function-base.class.d.ts +5 -0
- package/dist/esm/class/api/subscriber/function-base.class.js +7 -0
- package/dist/esm/class/api/subscriber/function-base.class.js.map +1 -0
- package/dist/esm/class/api/subscriber/index.d.ts +6 -0
- package/dist/esm/class/api/subscriber/registry.class.d.ts +15 -0
- package/dist/esm/class/api/subscriber/registry.class.js +55 -0
- package/dist/esm/class/api/subscriber/registry.class.js.map +1 -0
- package/dist/esm/class/api/subscriber/route-base.class.d.ts +5 -0
- package/dist/esm/class/api/subscriber/route-base.class.js +7 -0
- package/dist/esm/class/api/subscriber/route-base.class.js.map +1 -0
- package/dist/esm/class/metadata-storage.class.js +1 -2
- package/dist/esm/class/metadata-storage.class.js.map +1 -1
- package/dist/esm/class/utility/dto/property/factory/number.class.js +1 -0
- package/dist/esm/class/utility/dto/property/factory/number.class.js.map +1 -1
- package/dist/esm/class/utility/dto/property/factory/relation.class.js +1 -0
- package/dist/esm/class/utility/dto/property/factory/relation.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/body.class.js +1 -0
- package/dist/esm/class/utility/dto/strategy/body.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/query.class.js +1 -0
- package/dist/esm/class/utility/dto/strategy/query.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/request.class.js +1 -0
- package/dist/esm/class/utility/dto/strategy/request.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/response.class.js +1 -0
- package/dist/esm/class/utility/dto/strategy/response.class.js.map +1 -1
- package/dist/esm/constant/decorator/api/controller.constant.d.ts +1 -0
- package/dist/esm/constant/decorator/api/controller.constant.js +2 -0
- package/dist/esm/constant/decorator/api/controller.constant.js.map +1 -1
- package/dist/esm/constant/decorator/api/property-describe.constant.d.ts +1 -1
- package/dist/esm/constant/decorator/api/property-describe.constant.js +2 -2
- package/dist/esm/constant/decorator/api/property-describe.constant.js.map +1 -1
- package/dist/esm/constant/decorator/api/service.constant.d.ts +3 -0
- package/dist/esm/constant/decorator/api/service.constant.js +7 -0
- package/dist/esm/constant/decorator/api/service.constant.js.map +1 -0
- package/dist/esm/constant/decorator/api/subscriber.constant.d.ts +4 -0
- package/dist/esm/constant/decorator/api/subscriber.constant.js +9 -0
- package/dist/esm/constant/decorator/api/subscriber.constant.js.map +1 -0
- package/dist/esm/constant/utility/dto/constant.js +1 -0
- package/dist/esm/constant/utility/dto/constant.js.map +1 -1
- package/dist/esm/constant/validator/has-paired-custom-suffixes-fields.constant.js +0 -1
- package/dist/esm/constant/validator/has-paired-custom-suffixes-fields.constant.js.map +1 -1
- package/dist/esm/decorator/api/controller/index.d.ts +1 -0
- package/dist/esm/decorator/api/controller/observable.decorator.d.ts +4 -0
- package/dist/esm/decorator/api/controller/observable.decorator.js +13 -0
- package/dist/esm/decorator/api/controller/observable.decorator.js.map +1 -0
- package/dist/esm/decorator/api/function/create.decorator.d.ts +2 -2
- package/dist/esm/decorator/api/function/create.decorator.js +45 -8
- package/dist/esm/decorator/api/function/create.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/decorator.js +1 -1
- package/dist/esm/decorator/api/function/decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/delete.decorator.d.ts +5 -1
- package/dist/esm/decorator/api/function/delete.decorator.js +59 -7
- package/dist/esm/decorator/api/function/delete.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get-list.decorator.d.ts +5 -1
- package/dist/esm/decorator/api/function/get-list.decorator.js +56 -10
- package/dist/esm/decorator/api/function/get-list.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get-many.decorator.d.ts +5 -1
- package/dist/esm/decorator/api/function/get-many.decorator.js +53 -5
- package/dist/esm/decorator/api/function/get-many.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get.decorator.d.ts +5 -1
- package/dist/esm/decorator/api/function/get.decorator.js +53 -5
- package/dist/esm/decorator/api/function/get.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/update.decorator.d.ts +5 -1
- package/dist/esm/decorator/api/function/update.decorator.js +60 -11
- package/dist/esm/decorator/api/function/update.decorator.js.map +1 -1
- package/dist/esm/decorator/api/index.d.ts +6 -3
- package/dist/esm/decorator/api/method.decorator.js +1 -0
- package/dist/esm/decorator/api/method.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/boolean.decorator.js +1 -2
- package/dist/esm/decorator/api/property/boolean.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/copy.decorator.js +1 -1
- package/dist/esm/decorator/api/property/copy.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/date.decorator.js +1 -2
- package/dist/esm/decorator/api/property/date.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/describe.decorator.js +1 -1
- package/dist/esm/decorator/api/property/describe.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/enum.decorator.js +0 -2
- package/dist/esm/decorator/api/property/enum.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/number.decorator.js +1 -4
- package/dist/esm/decorator/api/property/number.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/object.decorator.js +0 -4
- package/dist/esm/decorator/api/property/object.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/string.decorator.js +4 -21
- package/dist/esm/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/uuid.decorator.js +1 -2
- package/dist/esm/decorator/api/property/uuid.decorator.js.map +1 -1
- package/dist/esm/decorator/api/service/index.d.ts +1 -0
- package/dist/esm/decorator/api/service/observable.decorator.d.ts +4 -0
- package/dist/esm/decorator/api/service/observable.decorator.js +13 -0
- package/dist/esm/decorator/api/service/observable.decorator.js.map +1 -0
- package/dist/esm/decorator/api/service.decorator.js +3 -37
- package/dist/esm/decorator/api/service.decorator.js.map +1 -1
- package/dist/esm/decorator/api/subscriber/function.decorator.d.ts +9 -0
- package/dist/esm/decorator/api/subscriber/function.decorator.js +16 -0
- package/dist/esm/decorator/api/subscriber/function.decorator.js.map +1 -0
- package/dist/esm/decorator/api/subscriber/index.d.ts +2 -0
- package/dist/esm/decorator/api/subscriber/route.decorator.d.ts +9 -0
- package/dist/esm/decorator/api/subscriber/route.decorator.js +16 -0
- package/dist/esm/decorator/api/subscriber/route.decorator.js.map +1 -0
- package/dist/esm/enum/decorator/api/index.d.ts +5 -4
- package/dist/esm/enum/decorator/api/on-type.enum.d.ts +6 -0
- package/dist/esm/enum/decorator/api/on-type.enum.js +10 -0
- package/dist/esm/enum/decorator/api/on-type.enum.js.map +1 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/domain/enum/logger-log-level.enum.js +14 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/domain/enum/logger-log-level.enum.js.map +1 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/infrastructure/class/base/error.class.js +29 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/infrastructure/class/base/error.class.js.map +1 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/infrastructure/class/base/registry.class.js +220 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/infrastructure/class/base/registry.class.js.map +1 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/infrastructure/constant/console-logger-default-options.constant.js +9 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/infrastructure/constant/console-logger-default-options.constant.js.map +1 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/infrastructure/service/console-logger.service.js +129 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/infrastructure/service/console-logger.service.js.map +1 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/presentation/utility/create/registry.utility.js +17 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/presentation/utility/create/registry.utility.js.map +1 -0
- package/dist/esm/factory/api/controller.factory.d.ts +2 -1
- package/dist/esm/factory/api/controller.factory.js +299 -105
- package/dist/esm/factory/api/controller.factory.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +12 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interface/class/api/subscriber/execution-context.interface.d.ts +15 -0
- package/dist/esm/interface/class/api/subscriber/function-execution-context.interface.d.ts +6 -0
- package/dist/esm/interface/class/api/subscriber/function.interface.d.ts +31 -0
- package/dist/esm/interface/class/api/subscriber/interface.d.ts +2 -0
- package/dist/esm/interface/class/api/subscriber/route-execution-context.interface.d.ts +6 -0
- package/dist/esm/interface/class/api/subscriber/route.interface.d.ts +39 -0
- package/dist/esm/interface/decorator/api/function/create-executor-properties.interface.d.ts +2 -1
- package/dist/esm/interface/decorator/api/function/delete-executor-properties.interface.d.ts +5 -4
- package/dist/esm/interface/decorator/api/function/get-executor-properties.interface.d.ts +2 -1
- package/dist/esm/interface/decorator/api/function/get-list-executor-properties.interface.d.ts +2 -1
- package/dist/esm/interface/decorator/api/function/get-many-executor-properties.interface.d.ts +2 -1
- package/dist/esm/interface/decorator/api/function/properties.interface.d.ts +2 -2
- package/dist/esm/interface/decorator/api/function/update-executor-properties.interface.d.ts +5 -4
- package/dist/esm/interface/decorator/api/index.d.ts +6 -5
- package/dist/esm/interface/decorator/api/subscriber/function-properties.interface.d.ts +5 -0
- package/dist/esm/interface/decorator/api/subscriber/index.d.ts +2 -0
- package/dist/esm/interface/decorator/api/subscriber/route-properties.interface.d.ts +5 -0
- package/dist/esm/module/api-subscriber.module.d.ts +2 -0
- package/dist/esm/module/api-subscriber.module.js +17 -0
- package/dist/esm/module/api-subscriber.module.js.map +1 -0
- package/dist/esm/module/index.d.ts +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/utility/api/controller/apply-decorators.utility.js +1 -0
- package/dist/esm/utility/api/controller/apply-decorators.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/apply-metadata.utility.js +1 -0
- package/dist/esm/utility/api/controller/apply-metadata.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/get-list/transform-filter.utility.js +1 -0
- package/dist/esm/utility/api/controller/get-list/transform-filter.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/get-list/transform-operation.utility.d.ts +5 -0
- package/dist/esm/utility/api/controller/get-list/transform-operation.utility.js +5 -1
- package/dist/esm/utility/api/controller/get-list/transform-operation.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/handle-request-relations.utility.js +4 -0
- package/dist/esm/utility/api/controller/handle-request-relations.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/transform-data.utility.js +1 -0
- package/dist/esm/utility/api/controller/transform-data.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/write-dto-swagger.utility.js +2 -4
- package/dist/esm/utility/api/controller/write-dto-swagger.utility.js.map +1 -1
- package/dist/esm/utility/api/filter-order-by-from-entity.utility.js +1 -1
- package/dist/esm/utility/api/filter-order-by-from-entity.utility.js.map +1 -1
- package/dist/esm/utility/dto/build-decorator.utility.js +1 -0
- package/dist/esm/utility/dto/build-decorator.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate-dynamic.utility.js +1 -3
- package/dist/esm/utility/dto/generate-dynamic.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate-exception.utility.js +1 -0
- package/dist/esm/utility/dto/generate-exception.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate-filter-decorator.utility.js +1 -0
- package/dist/esm/utility/dto/generate-filter-decorator.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate-get-list-response.utility.js +1 -0
- package/dist/esm/utility/dto/generate-get-list-response.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate.utility.js +4 -18
- package/dist/esm/utility/dto/generate.utility.js.map +1 -1
- package/dist/esm/utility/dto/get-get-list-query-base-class.utility.js +1 -0
- package/dist/esm/utility/dto/get-get-list-query-base-class.utility.js.map +1 -1
- package/dist/esm/utility/dto/handle-date-property.utility.js +1 -0
- package/dist/esm/utility/dto/handle-date-property.utility.js.map +1 -1
- package/dist/esm/utility/dto/is-property-should-be-marked.utility.js +1 -0
- package/dist/esm/utility/dto/is-property-should-be-marked.utility.js.map +1 -1
- package/dist/esm/utility/dto/is-should-be-generated.utility.js +1 -0
- package/dist/esm/utility/dto/is-should-be-generated.utility.js.map +1 -1
- package/dist/esm/utility/logger.utility.js +3 -2
- package/dist/esm/utility/logger.utility.js.map +1 -1
- package/dist/esm/validator/all-or-none-of-listed-properties.validator.js +0 -1
- package/dist/esm/validator/all-or-none-of-listed-properties.validator.js.map +1 -1
- package/dist/esm/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js +0 -1
- package/dist/esm/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js.map +1 -1
- package/dist/esm/validator/has-at-least-one-of-listed-properties.validator.js +0 -1
- package/dist/esm/validator/has-at-least-one-of-listed-properties.validator.js.map +1 -1
- package/dist/esm/validator/has-at-least-one-property.validator.js +0 -1
- package/dist/esm/validator/has-at-least-one-property.validator.js.map +1 -1
- package/dist/esm/validator/has-paired-custom-suffixes-fields.validator.js +0 -1
- package/dist/esm/validator/has-paired-custom-suffixes-fields.validator.js.map +1 -1
- package/dist/esm/validator/must-match-one-of-schemas.validator.js +0 -1
- package/dist/esm/validator/must-match-one-of-schemas.validator.js.map +1 -1
- package/dist/esm/validator/only-one-of-listed-properties.validator.js +0 -1
- package/dist/esm/validator/only-one-of-listed-properties.validator.js.map +1 -1
- package/package.json +21 -18
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ApiSubscriberExecutor } from '../../class/api/subscriber/executor.class.js';
|
|
1
2
|
import { CONTROLLER_API_DECORATOR_CONSTANT } from '../../constant/decorator/api/controller.constant.js';
|
|
2
3
|
import { FUNCTION_API_DECORATOR_CONSTANT } from '../../constant/decorator/api/function.constant.js';
|
|
3
4
|
import '../../enum/decorator/api/action.enum.js';
|
|
@@ -6,6 +7,7 @@ import '../../enum/decorator/api/controller/load-relations-strategy.enum.js';
|
|
|
6
7
|
import '../../enum/decorator/api/controller/request-transformer-type.enum.js';
|
|
7
8
|
import { EApiDtoType } from '../../enum/decorator/api/dto-type.enum.js';
|
|
8
9
|
import '../../enum/decorator/api/function/type.enum.js';
|
|
10
|
+
import { EApiSubscriberOnType } from '../../enum/decorator/api/on-type.enum.js';
|
|
9
11
|
import '../../enum/decorator/api/property/data-type.enum.js';
|
|
10
12
|
import '../../enum/decorator/api/property/date/identifier.enum.js';
|
|
11
13
|
import '../../enum/decorator/api/property/date/type.enum.js';
|
|
@@ -89,137 +91,329 @@ class ApiControllerFactory {
|
|
|
89
91
|
}
|
|
90
92
|
[EApiRouteType.CREATE](method, methodName, properties, entityMetadata) {
|
|
91
93
|
this.targetPrototype[methodName] = Object.defineProperty(async function (body, headers, ip, authenticationRequest) {
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
await ApiControllerHandleRequestRelations(this, properties, properties.routes[method]?.request?.relations, body);
|
|
99
|
-
const createResponse = await this.service.create(body);
|
|
100
|
-
const dto = DtoGenerate(properties.entity, entityMetadata, method, EApiDtoType.RESPONSE, properties.routes[method]?.autoDto?.[EApiDtoType.RESPONSE], properties.routes[method]?.authentication?.guard);
|
|
101
|
-
const requestProperties = {
|
|
102
|
-
relations: properties.routes[method]?.response?.relations,
|
|
103
|
-
where: {
|
|
104
|
-
[primaryKey.key]: createResponse[primaryKey.key],
|
|
105
|
-
},
|
|
94
|
+
const entityInstance = new properties.entity();
|
|
95
|
+
const beforeExecutionContext = {
|
|
96
|
+
data: { entityMetadata, method, methodName, properties },
|
|
97
|
+
entity: entityInstance,
|
|
98
|
+
result: { authenticationRequest, body, headers, ip },
|
|
99
|
+
routeType: EApiRouteType.CREATE,
|
|
106
100
|
};
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
101
|
+
const beforeResult = await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, entityInstance, EApiRouteType.CREATE, EApiSubscriberOnType.BEFORE, beforeExecutionContext);
|
|
102
|
+
if (beforeResult) {
|
|
103
|
+
body = beforeResult.body;
|
|
104
|
+
headers = beforeResult.headers;
|
|
105
|
+
ip = beforeResult.ip;
|
|
106
|
+
authenticationRequest = beforeResult.authenticationRequest;
|
|
107
|
+
}
|
|
108
|
+
try {
|
|
109
|
+
const primaryKey = ApiControllerGetPrimaryColumn(body, entityMetadata);
|
|
110
|
+
if (!primaryKey) {
|
|
111
|
+
await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, entityInstance, EApiRouteType.CREATE, EApiSubscriberOnType.BEFORE_ERROR, { ...beforeExecutionContext, result: undefined }, new Error("Primary key not found in entity columns"));
|
|
112
|
+
throw ErrorException("Primary key not found in entity columns");
|
|
113
|
+
}
|
|
114
|
+
ApiControllerTransformData(properties.routes[method]?.request?.transformers, properties, { body }, { authenticationRequest, headers, ip });
|
|
115
|
+
await ApiControllerValidateRequest(properties.routes[method]?.request?.validators, properties, body);
|
|
116
|
+
await ApiControllerHandleRequestRelations(this, properties, properties.routes[method]?.request?.relations, body);
|
|
117
|
+
const createResponse = await this.service.create(body);
|
|
118
|
+
const dto = DtoGenerate(properties.entity, entityMetadata, method, EApiDtoType.RESPONSE, properties.routes[method]?.autoDto?.[EApiDtoType.RESPONSE], properties.routes[method]?.authentication?.guard);
|
|
119
|
+
const requestProperties = {
|
|
120
|
+
relations: properties.routes[method]?.response?.relations,
|
|
121
|
+
where: { [primaryKey.key]: createResponse[primaryKey.key] },
|
|
122
|
+
};
|
|
123
|
+
const response = await this.service.get(requestProperties);
|
|
124
|
+
ApiControllerTransformData(properties.routes[method]?.response?.transformers, properties, { response }, { authenticationRequest, headers, ip });
|
|
125
|
+
const afterExecutionContext = {
|
|
126
|
+
data: { ...beforeExecutionContext.data, authenticationRequest, body, headers, ip },
|
|
127
|
+
entity: response,
|
|
128
|
+
result: response,
|
|
129
|
+
routeType: EApiRouteType.CREATE,
|
|
130
|
+
};
|
|
131
|
+
const afterResult = await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, response, EApiRouteType.CREATE, EApiSubscriberOnType.AFTER, afterExecutionContext);
|
|
132
|
+
const finalResponse = afterResult ?? response;
|
|
133
|
+
return plainToInstance(dto, finalResponse, {
|
|
134
|
+
excludeExtraneousValues: true,
|
|
135
|
+
strategy: "excludeAll",
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
catch (error) {
|
|
139
|
+
const errorExecutionContext = {
|
|
140
|
+
data: { ...beforeExecutionContext.data, authenticationRequest, body, headers, ip },
|
|
141
|
+
entity: entityInstance,
|
|
142
|
+
routeType: EApiRouteType.CREATE,
|
|
143
|
+
};
|
|
144
|
+
await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, entityInstance, EApiRouteType.CREATE, EApiSubscriberOnType.AFTER_ERROR, errorExecutionContext, error);
|
|
145
|
+
throw error;
|
|
146
|
+
}
|
|
114
147
|
}, "name", { value: methodName });
|
|
115
148
|
}
|
|
116
149
|
[EApiRouteType.DELETE](method, methodName, properties, entityMetadata) {
|
|
117
150
|
this.targetPrototype[methodName] = Object.defineProperty(async function (parameters, headers, ip, authenticationRequest) {
|
|
118
|
-
const
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
await ApiControllerHandleRequestRelations(this, properties, properties.routes[method]?.request?.relations, parameters);
|
|
125
|
-
const requestCriteria = {
|
|
126
|
-
[primaryKey.key]: primaryKey.value,
|
|
151
|
+
const entityInstance = new properties.entity();
|
|
152
|
+
const beforeExecutionContext = {
|
|
153
|
+
data: { entityMetadata, method, methodName, properties },
|
|
154
|
+
entity: entityInstance,
|
|
155
|
+
result: { authenticationRequest, headers, ip, parameters },
|
|
156
|
+
routeType: EApiRouteType.DELETE,
|
|
127
157
|
};
|
|
128
|
-
await this.
|
|
158
|
+
const beforeResult = await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, entityInstance, EApiRouteType.DELETE, EApiSubscriberOnType.BEFORE, beforeExecutionContext);
|
|
159
|
+
if (beforeResult) {
|
|
160
|
+
parameters = beforeResult.parameters;
|
|
161
|
+
headers = beforeResult.headers;
|
|
162
|
+
ip = beforeResult.ip;
|
|
163
|
+
authenticationRequest = beforeResult.authenticationRequest;
|
|
164
|
+
}
|
|
165
|
+
try {
|
|
166
|
+
const primaryKey = ApiControllerGetPrimaryColumn(parameters, entityMetadata);
|
|
167
|
+
if (!primaryKey) {
|
|
168
|
+
await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, entityInstance, EApiRouteType.DELETE, EApiSubscriberOnType.BEFORE_ERROR, { ...beforeExecutionContext, result: undefined }, new Error("Primary key not found in entity columns"));
|
|
169
|
+
throw ErrorException("Primary key not found in entity columns");
|
|
170
|
+
}
|
|
171
|
+
ApiControllerTransformData(properties.routes[method]?.request?.transformers, properties, { parameters }, { authenticationRequest, headers, ip });
|
|
172
|
+
await ApiControllerValidateRequest(properties.routes[method]?.request?.validators, properties, parameters);
|
|
173
|
+
await ApiControllerHandleRequestRelations(this, properties, properties.routes[method]?.request?.relations, parameters);
|
|
174
|
+
const requestCriteria = {
|
|
175
|
+
[primaryKey.key]: primaryKey.value,
|
|
176
|
+
};
|
|
177
|
+
await this.service.delete(requestCriteria);
|
|
178
|
+
const afterExecutionContext = {
|
|
179
|
+
data: { ...beforeExecutionContext.data, authenticationRequest, headers, ip, parameters },
|
|
180
|
+
entity: entityInstance,
|
|
181
|
+
result: parameters,
|
|
182
|
+
routeType: EApiRouteType.DELETE,
|
|
183
|
+
};
|
|
184
|
+
await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, entityInstance, EApiRouteType.DELETE, EApiSubscriberOnType.AFTER, afterExecutionContext);
|
|
185
|
+
}
|
|
186
|
+
catch (error) {
|
|
187
|
+
const errorExecutionContext = {
|
|
188
|
+
data: { ...beforeExecutionContext.data, authenticationRequest, headers, ip, parameters },
|
|
189
|
+
entity: entityInstance,
|
|
190
|
+
routeType: EApiRouteType.DELETE,
|
|
191
|
+
};
|
|
192
|
+
await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, entityInstance, EApiRouteType.DELETE, EApiSubscriberOnType.AFTER_ERROR, errorExecutionContext, error);
|
|
193
|
+
throw error;
|
|
194
|
+
}
|
|
129
195
|
}, "name", { value: methodName });
|
|
130
196
|
}
|
|
131
197
|
[EApiRouteType.GET](method, methodName, properties, entityMetadata) {
|
|
132
198
|
this.targetPrototype[methodName] = Object.defineProperty(async function (parameters, headers, ip, authenticationRequest) {
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
await ApiControllerHandleRequestRelations(this, properties, properties.routes[method]?.request?.relations, parameters);
|
|
140
|
-
const requestProperties = {
|
|
141
|
-
relations: properties.routes[method]?.response?.relations,
|
|
142
|
-
where: {
|
|
143
|
-
[primaryKey.key]: primaryKey.value,
|
|
144
|
-
},
|
|
199
|
+
const entityInstance = new properties.entity();
|
|
200
|
+
const beforeExecutionContext = {
|
|
201
|
+
data: { entityMetadata, method, methodName, properties },
|
|
202
|
+
entity: entityInstance,
|
|
203
|
+
result: { authenticationRequest, headers, ip, parameters },
|
|
204
|
+
routeType: EApiRouteType.GET,
|
|
145
205
|
};
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
206
|
+
const beforeResult = await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, entityInstance, EApiRouteType.GET, EApiSubscriberOnType.BEFORE, beforeExecutionContext);
|
|
207
|
+
if (beforeResult) {
|
|
208
|
+
parameters = beforeResult.parameters;
|
|
209
|
+
headers = beforeResult.headers;
|
|
210
|
+
ip = beforeResult.ip;
|
|
211
|
+
authenticationRequest = beforeResult.authenticationRequest;
|
|
212
|
+
}
|
|
213
|
+
try {
|
|
214
|
+
const primaryKey = ApiControllerGetPrimaryColumn(parameters, entityMetadata);
|
|
215
|
+
if (!primaryKey) {
|
|
216
|
+
await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, entityInstance, EApiRouteType.GET, EApiSubscriberOnType.BEFORE_ERROR, { ...beforeExecutionContext, result: undefined }, new Error("Primary key not found in entity columns"));
|
|
217
|
+
throw ErrorException("Primary key not found in entity columns");
|
|
218
|
+
}
|
|
219
|
+
ApiControllerTransformData(properties.routes[method]?.request?.transformers, properties, { parameters }, { authenticationRequest, headers, ip });
|
|
220
|
+
await ApiControllerValidateRequest(properties.routes[method]?.request?.validators, properties, parameters);
|
|
221
|
+
await ApiControllerHandleRequestRelations(this, properties, properties.routes[method]?.request?.relations, parameters);
|
|
222
|
+
const requestProperties = {
|
|
223
|
+
relations: properties.routes[method]?.response?.relations,
|
|
224
|
+
where: { [primaryKey.key]: primaryKey.value },
|
|
225
|
+
};
|
|
226
|
+
const response = await this.service.get(requestProperties);
|
|
227
|
+
ApiControllerTransformData(properties.routes[method]?.response?.transformers, properties, { response }, { authenticationRequest, headers, ip });
|
|
228
|
+
const afterExecutionContext = {
|
|
229
|
+
data: { ...beforeExecutionContext.data, authenticationRequest, headers, ip, parameters },
|
|
230
|
+
entity: response,
|
|
231
|
+
result: response,
|
|
232
|
+
routeType: EApiRouteType.GET,
|
|
233
|
+
};
|
|
234
|
+
const afterResult = await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, response, EApiRouteType.GET, EApiSubscriberOnType.AFTER, afterExecutionContext);
|
|
235
|
+
const finalResponse = afterResult ?? response;
|
|
236
|
+
const dto = DtoGenerate(properties.entity, entityMetadata, method, EApiDtoType.RESPONSE, properties.routes[method]?.autoDto?.[EApiDtoType.RESPONSE], properties.routes[method]?.authentication?.guard);
|
|
237
|
+
return plainToInstance(dto, finalResponse, {
|
|
238
|
+
excludeExtraneousValues: true,
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
catch (error) {
|
|
242
|
+
const errorExecutionContext = {
|
|
243
|
+
data: { ...beforeExecutionContext.data, authenticationRequest, headers, ip, parameters },
|
|
244
|
+
entity: entityInstance,
|
|
245
|
+
routeType: EApiRouteType.GET,
|
|
246
|
+
};
|
|
247
|
+
await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, entityInstance, EApiRouteType.GET, EApiSubscriberOnType.AFTER_ERROR, errorExecutionContext, error);
|
|
248
|
+
throw error;
|
|
249
|
+
}
|
|
153
250
|
}, "name", { value: methodName });
|
|
154
251
|
}
|
|
155
252
|
[EApiRouteType.GET_LIST](method, methodName, properties, entityMetadata) {
|
|
156
253
|
this.targetPrototype[methodName] = Object.defineProperty(async function (query, headers, ip, authenticationRequest) {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
relations: properties.routes[method]?.response?.relations,
|
|
164
|
-
skip: query.limit * (query.page - 1),
|
|
165
|
-
take: query.limit,
|
|
166
|
-
where: filter,
|
|
254
|
+
const entityInstance = new properties.entity();
|
|
255
|
+
const beforeExecutionContext = {
|
|
256
|
+
data: { entityMetadata, method, methodName, properties },
|
|
257
|
+
entity: entityInstance,
|
|
258
|
+
result: { authenticationRequest, headers, ip, query },
|
|
259
|
+
routeType: EApiRouteType.GET_LIST,
|
|
167
260
|
};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
261
|
+
const beforeResult = await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, entityInstance, EApiRouteType.GET_LIST, EApiSubscriberOnType.BEFORE, beforeExecutionContext);
|
|
262
|
+
if (beforeResult) {
|
|
263
|
+
query = beforeResult.query;
|
|
264
|
+
headers = beforeResult.headers;
|
|
265
|
+
ip = beforeResult.ip;
|
|
266
|
+
authenticationRequest = beforeResult.authenticationRequest;
|
|
267
|
+
}
|
|
268
|
+
try {
|
|
269
|
+
ApiControllerTransformData(properties.routes[method]?.request?.transformers, properties, { query }, { authenticationRequest, headers, ip });
|
|
270
|
+
await ApiControllerValidateRequest(properties.routes[method]?.request?.validators, properties, query);
|
|
271
|
+
await ApiControllerHandleRequestRelations(this, properties, properties.routes[method]?.request?.relations, query);
|
|
272
|
+
const { limit, orderBy, orderDirection, page, ...getListQuery } = query;
|
|
273
|
+
const filter = ApiControllerGetListTransformFilter(getListQuery, entityMetadata);
|
|
274
|
+
const requestProperties = {
|
|
275
|
+
relations: properties.routes[method]?.response?.relations,
|
|
276
|
+
skip: query.limit * (query.page - 1),
|
|
277
|
+
take: query.limit,
|
|
278
|
+
where: filter,
|
|
279
|
+
};
|
|
280
|
+
if (orderBy) {
|
|
281
|
+
requestProperties.order = { [orderBy]: orderDirection ?? FUNCTION_API_DECORATOR_CONSTANT.DEFAULT_FILTER_ORDER_BY_DIRECTION };
|
|
282
|
+
}
|
|
283
|
+
const response = await this.service.getList(requestProperties);
|
|
284
|
+
ApiControllerTransformData(properties.routes[method]?.request?.transformers, properties, { response }, { authenticationRequest, headers, ip });
|
|
285
|
+
const afterExecutionContext = {
|
|
286
|
+
data: { ...beforeExecutionContext.data, authenticationRequest, headers, ip, query },
|
|
287
|
+
entity: entityInstance,
|
|
288
|
+
result: response,
|
|
289
|
+
routeType: EApiRouteType.GET_LIST,
|
|
290
|
+
};
|
|
291
|
+
const afterResult = await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, entityInstance, EApiRouteType.GET_LIST, EApiSubscriberOnType.AFTER, afterExecutionContext);
|
|
292
|
+
const finalResponse = afterResult ?? response;
|
|
293
|
+
const dto = DtoGenerate(properties.entity, entityMetadata, method, EApiDtoType.RESPONSE, properties.routes[method]?.autoDto?.[EApiDtoType.RESPONSE], properties.routes[method]?.authentication?.guard);
|
|
294
|
+
return plainToInstance(dto, finalResponse, {
|
|
295
|
+
excludeExtraneousValues: true,
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
catch (error) {
|
|
299
|
+
const errorExecutionContext = {
|
|
300
|
+
data: { ...beforeExecutionContext.data, authenticationRequest, headers, ip, query },
|
|
301
|
+
entity: entityInstance,
|
|
302
|
+
routeType: EApiRouteType.GET_LIST,
|
|
303
|
+
};
|
|
304
|
+
await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, entityInstance, EApiRouteType.GET_LIST, EApiSubscriberOnType.AFTER_ERROR, errorExecutionContext, error);
|
|
305
|
+
throw error;
|
|
306
|
+
}
|
|
180
307
|
}, "name", { value: methodName });
|
|
181
308
|
}
|
|
182
309
|
[EApiRouteType.PARTIAL_UPDATE](method, methodName, properties, entityMetadata) {
|
|
183
310
|
this.targetPrototype[methodName] = Object.defineProperty(async function (parameters, body, headers, ip, authenticationRequest) {
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
await ApiControllerHandleRequestRelations(this, properties, properties.routes[method]?.request?.relations, parameters);
|
|
191
|
-
const requestCriteria = {
|
|
192
|
-
[primaryKey.key]: primaryKey.value,
|
|
311
|
+
const entityInstance = new properties.entity();
|
|
312
|
+
const beforeExecutionContext = {
|
|
313
|
+
data: { entityMetadata, method, methodName, properties },
|
|
314
|
+
entity: entityInstance,
|
|
315
|
+
result: { authenticationRequest, body, headers, ip, parameters },
|
|
316
|
+
routeType: EApiRouteType.PARTIAL_UPDATE,
|
|
193
317
|
};
|
|
194
|
-
const
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
318
|
+
const beforeResult = await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, entityInstance, EApiRouteType.PARTIAL_UPDATE, EApiSubscriberOnType.BEFORE, beforeExecutionContext);
|
|
319
|
+
if (beforeResult) {
|
|
320
|
+
parameters = beforeResult.parameters;
|
|
321
|
+
body = beforeResult.body;
|
|
322
|
+
headers = beforeResult.headers;
|
|
323
|
+
ip = beforeResult.ip;
|
|
324
|
+
authenticationRequest = beforeResult.authenticationRequest;
|
|
325
|
+
}
|
|
326
|
+
try {
|
|
327
|
+
const primaryKey = ApiControllerGetPrimaryColumn(parameters, entityMetadata);
|
|
328
|
+
if (!primaryKey) {
|
|
329
|
+
await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, entityInstance, EApiRouteType.PARTIAL_UPDATE, EApiSubscriberOnType.BEFORE_ERROR, { ...beforeExecutionContext, result: undefined }, new Error("Primary key not found in entity columns"));
|
|
330
|
+
throw ErrorException("Primary key not found in entity columns");
|
|
331
|
+
}
|
|
332
|
+
ApiControllerTransformData(properties.routes[method]?.request?.transformers, properties, { body, parameters }, { authenticationRequest, headers, ip });
|
|
333
|
+
await ApiControllerValidateRequest(properties.routes[method]?.request?.validators, properties, parameters);
|
|
334
|
+
await ApiControllerHandleRequestRelations(this, properties, properties.routes[method]?.request?.relations, parameters);
|
|
335
|
+
const requestCriteria = {
|
|
336
|
+
[primaryKey.key]: primaryKey.value,
|
|
337
|
+
};
|
|
338
|
+
const response = await this.service.update(requestCriteria, body);
|
|
339
|
+
ApiControllerTransformData(properties.routes[method]?.response?.transformers, properties, { response }, { authenticationRequest, headers, ip });
|
|
340
|
+
const afterExecutionContext = {
|
|
341
|
+
data: { ...beforeExecutionContext.data, authenticationRequest, body, headers, ip, parameters },
|
|
342
|
+
entity: response,
|
|
343
|
+
result: response,
|
|
344
|
+
routeType: EApiRouteType.PARTIAL_UPDATE,
|
|
345
|
+
};
|
|
346
|
+
const afterResult = await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, response, EApiRouteType.PARTIAL_UPDATE, EApiSubscriberOnType.AFTER, afterExecutionContext);
|
|
347
|
+
const finalResponse = afterResult ?? response;
|
|
348
|
+
const dto = DtoGenerate(properties.entity, entityMetadata, method, EApiDtoType.RESPONSE, properties.routes[method]?.autoDto?.[EApiDtoType.RESPONSE], properties.routes[method]?.authentication?.guard);
|
|
349
|
+
return plainToInstance(dto, finalResponse, {
|
|
350
|
+
excludeExtraneousValues: true,
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
catch (error) {
|
|
354
|
+
const errorExecutionContext = {
|
|
355
|
+
data: { ...beforeExecutionContext.data, authenticationRequest, body, headers, ip, parameters },
|
|
356
|
+
entity: entityInstance,
|
|
357
|
+
routeType: EApiRouteType.PARTIAL_UPDATE,
|
|
358
|
+
};
|
|
359
|
+
await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, entityInstance, EApiRouteType.PARTIAL_UPDATE, EApiSubscriberOnType.AFTER_ERROR, errorExecutionContext, error);
|
|
360
|
+
throw error;
|
|
361
|
+
}
|
|
201
362
|
}, "name", { value: methodName });
|
|
202
363
|
}
|
|
203
|
-
// eslint-disable-next-line @elsikora/sonar/no-identical-functions
|
|
204
364
|
[EApiRouteType.UPDATE](method, methodName, properties, entityMetadata) {
|
|
205
365
|
this.targetPrototype[methodName] = Object.defineProperty(async function (parameters, body, headers, ip, authenticationRequest) {
|
|
206
|
-
const
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
await ApiControllerHandleRequestRelations(this, properties, properties.routes[method]?.request?.relations, parameters);
|
|
213
|
-
const requestCriteria = {
|
|
214
|
-
[primaryKey.key]: primaryKey.value,
|
|
366
|
+
const entityInstance = new properties.entity();
|
|
367
|
+
const beforeExecutionContext = {
|
|
368
|
+
data: { entityMetadata, method, methodName, properties },
|
|
369
|
+
entity: entityInstance,
|
|
370
|
+
result: { authenticationRequest, body, headers, ip, parameters },
|
|
371
|
+
routeType: EApiRouteType.UPDATE,
|
|
215
372
|
};
|
|
216
|
-
const
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
373
|
+
const beforeResult = await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, entityInstance, EApiRouteType.UPDATE, EApiSubscriberOnType.BEFORE, beforeExecutionContext);
|
|
374
|
+
if (beforeResult) {
|
|
375
|
+
parameters = beforeResult.parameters;
|
|
376
|
+
body = beforeResult.body;
|
|
377
|
+
headers = beforeResult.headers;
|
|
378
|
+
ip = beforeResult.ip;
|
|
379
|
+
authenticationRequest = beforeResult.authenticationRequest;
|
|
380
|
+
}
|
|
381
|
+
try {
|
|
382
|
+
const primaryKey = ApiControllerGetPrimaryColumn(parameters, entityMetadata);
|
|
383
|
+
if (!primaryKey) {
|
|
384
|
+
await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, entityInstance, EApiRouteType.UPDATE, EApiSubscriberOnType.BEFORE_ERROR, { ...beforeExecutionContext, result: undefined }, new Error("Primary key not found in entity columns"));
|
|
385
|
+
throw ErrorException("Primary key not found in entity columns");
|
|
386
|
+
}
|
|
387
|
+
ApiControllerTransformData(properties.routes[method]?.request?.transformers, properties, { body, parameters }, { authenticationRequest, headers, ip });
|
|
388
|
+
await ApiControllerValidateRequest(properties.routes[method]?.request?.validators, properties, parameters);
|
|
389
|
+
await ApiControllerHandleRequestRelations(this, properties, properties.routes[method]?.request?.relations, parameters);
|
|
390
|
+
const requestCriteria = {
|
|
391
|
+
[primaryKey.key]: primaryKey.value,
|
|
392
|
+
};
|
|
393
|
+
const response = await this.service.update(requestCriteria, body);
|
|
394
|
+
ApiControllerTransformData(properties.routes[method]?.response?.transformers, properties, { response }, { authenticationRequest, headers, ip });
|
|
395
|
+
const afterExecutionContext = {
|
|
396
|
+
data: { ...beforeExecutionContext.data, authenticationRequest, body, headers, ip, parameters },
|
|
397
|
+
entity: response,
|
|
398
|
+
result: response,
|
|
399
|
+
routeType: EApiRouteType.UPDATE,
|
|
400
|
+
};
|
|
401
|
+
const afterResult = await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, response, EApiRouteType.UPDATE, EApiSubscriberOnType.AFTER, afterExecutionContext);
|
|
402
|
+
const finalResponse = afterResult ?? response;
|
|
403
|
+
const dto = DtoGenerate(properties.entity, entityMetadata, method, EApiDtoType.RESPONSE, properties.routes[method]?.autoDto?.[EApiDtoType.RESPONSE], properties.routes[method]?.authentication?.guard);
|
|
404
|
+
return plainToInstance(dto, finalResponse, {
|
|
405
|
+
excludeExtraneousValues: true,
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
catch (error) {
|
|
409
|
+
const errorExecutionContext = {
|
|
410
|
+
data: { ...beforeExecutionContext.data, authenticationRequest, body, headers, ip, parameters },
|
|
411
|
+
entity: entityInstance,
|
|
412
|
+
routeType: EApiRouteType.UPDATE,
|
|
413
|
+
};
|
|
414
|
+
await ApiSubscriberExecutor.executeRouteSubscribers(this.constructor, entityInstance, EApiRouteType.UPDATE, EApiSubscriberOnType.AFTER_ERROR, errorExecutionContext, error);
|
|
415
|
+
throw error;
|
|
416
|
+
}
|
|
223
417
|
}, "name", { value: methodName });
|
|
224
418
|
}
|
|
225
419
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller.factory.js","sources":["../../../../../src/factory/api/controller.factory.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsBa,oBAAoB,CAAA;AAQrB,IAAA,MAAA;AACO,IAAA,UAAA;AARlB,I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GAAG,WAAW,IAAI,QAAQ;AAC7C,gBAAA,MAAM,GAAG,GAA8B,WAAW,CAAC,UAAU,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,WAAW,CAAC,QAAQ,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,KAAK,CAAC;AAEjO,gBAAA,OAAO,eAAe,CAAC,GAA0B,EAAE,aAAa,EAAE;AACjE,oBAAA,uBAAuB,EAAE,IAAI;AAC7B,iBAAA,CAAC;;YACD,OAAO,KAAK,EAAE;AACf,gBAAA,MAAM,qBAAqB,GAAkD;AAC5E,oBAAA,IAAI,EAAE,EAAE,GAAI,sBAAsB,CAAC,IAAY,EAAE,qBAAqB,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE;AACvG,oBAAA,MAAM,EAAE,cAAc;oBACtB,SAAS,EAAE,aAAa,CAAC,MAAM;iBAC/B;gBACD,MAAM,qBAAqB,CAAC,uBAAuB,CAAC,IAAI,CAAC,WAA4B,EAAE,cAAc,EAAE,aAAa,CAAC,MAAM,EAAE,oBAAoB,CAAC,WAAW,EAAE,qBAAqB,EAAE,KAAc,CAAC;AAErM,gBAAA,MAAM,KAAK;;SAEZ,EACD,MAAM,EACN,EAAE,KAAK,EAAE,UAAU,EAAE,CACrB;;AAEF;;;;"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './enum/index';
|
|
|
5
5
|
export * from './factory/api/index';
|
|
6
6
|
export * from './interceptor/index';
|
|
7
7
|
export type * from './interface/index';
|
|
8
|
+
export * from './module/index';
|
|
8
9
|
export type * from './type/index';
|
|
9
10
|
export * from './utility/index';
|
|
10
11
|
export * from './validator/index';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export { ApiServiceBase } from './class/api/service-base.class.js';
|
|
2
|
+
export { ApiSubscriberBase } from './class/api/subscriber/base.class.js';
|
|
3
|
+
export { ApiSubscriberDiscoveryService } from './class/api/subscriber/discovery-service.class.js';
|
|
4
|
+
export { ApiSubscriberExecutor } from './class/api/subscriber/executor.class.js';
|
|
5
|
+
export { ApiFunctionSubscriberBase } from './class/api/subscriber/function-base.class.js';
|
|
6
|
+
export { apiSubscriberRegistry } from './class/api/subscriber/registry.class.js';
|
|
7
|
+
export { ApiRouteSubscriberBase } from './class/api/subscriber/route-base.class.js';
|
|
2
8
|
export { MetadataStorage } from './class/metadata-storage.class.js';
|
|
3
9
|
export { DtoPropertyFactoryBoolean } from './class/utility/dto/property/factory/boolean.class.js';
|
|
4
10
|
export { DtoPropertyFactoryDate } from './class/utility/dto/property/factory/date.class.js';
|
|
@@ -27,6 +33,7 @@ export { NUMBER_CONSTANT } from './constant/number.constant.js';
|
|
|
27
33
|
export { DTO_UTILITY_CONSTANT } from './constant/utility/dto/constant.js';
|
|
28
34
|
export { DTO_GENERATE_CONSTANT } from './constant/utility/dto/generate.constant.js';
|
|
29
35
|
export { VALIDATOR_HAS_PAIRED_CUSTOM_SUFFIXES_FIELDS_CONSTANT } from './constant/validator/has-paired-custom-suffixes-fields.constant.js';
|
|
36
|
+
export { ApiControllerObservable } from './decorator/api/controller/observable.decorator.js';
|
|
30
37
|
export { ApiController } from './decorator/api/controller.decorator.js';
|
|
31
38
|
export { ApiFunctionCreate } from './decorator/api/function/create.decorator.js';
|
|
32
39
|
export { ApiFunction } from './decorator/api/function/decorator.js';
|
|
@@ -45,13 +52,17 @@ export { ApiPropertyNumber } from './decorator/api/property/number.decorator.js'
|
|
|
45
52
|
export { ApiPropertyObject } from './decorator/api/property/object.decorator.js';
|
|
46
53
|
export { ApiPropertyString } from './decorator/api/property/string.decorator.js';
|
|
47
54
|
export { ApiPropertyUUID } from './decorator/api/property/uuid.decorator.js';
|
|
55
|
+
export { ApiServiceObservable } from './decorator/api/service/observable.decorator.js';
|
|
48
56
|
export { ApiService } from './decorator/api/service.decorator.js';
|
|
57
|
+
export { ApiFunctionSubscriber } from './decorator/api/subscriber/function.decorator.js';
|
|
58
|
+
export { ApiRouteSubscriber } from './decorator/api/subscriber/route.decorator.js';
|
|
49
59
|
export { EApiAction } from './enum/decorator/api/action.enum.js';
|
|
50
60
|
export { EApiAuthenticationType } from './enum/decorator/api/authentication-type.enum.js';
|
|
51
61
|
export { EApiControllerLoadRelationsStrategy } from './enum/decorator/api/controller/load-relations-strategy.enum.js';
|
|
52
62
|
export { EApiControllerRequestTransformerType } from './enum/decorator/api/controller/request-transformer-type.enum.js';
|
|
53
63
|
export { EApiDtoType } from './enum/decorator/api/dto-type.enum.js';
|
|
54
64
|
export { EApiFunctionType } from './enum/decorator/api/function/type.enum.js';
|
|
65
|
+
export { EApiSubscriberOnType } from './enum/decorator/api/on-type.enum.js';
|
|
55
66
|
export { EApiPropertyDataType } from './enum/decorator/api/property/data-type.enum.js';
|
|
56
67
|
export { EApiPropertyDateIdentifier } from './enum/decorator/api/property/date/identifier.enum.js';
|
|
57
68
|
export { EApiPropertyDateType } from './enum/decorator/api/property/date/type.enum.js';
|
|
@@ -68,6 +79,7 @@ export { EHasPairedCustomSuffixesFieldsArgumentType } from './enum/validator/has
|
|
|
68
79
|
export { EMastMatchOneOfSchemasValidationErrorType } from './enum/validator/must-match-one-of-schemas-error-type.enum.js';
|
|
69
80
|
export { ApiControllerFactory } from './factory/api/controller.factory.js';
|
|
70
81
|
export { CorrelationIDResponseBodyInterceptor } from './interceptor/correlation-id-response-body.interceptor.js';
|
|
82
|
+
export { ApiSubscriberModule } from './module/api-subscriber.module.js';
|
|
71
83
|
export { ApiControllerApplyDecorators } from './utility/api/controller/apply-decorators.utility.js';
|
|
72
84
|
export { ApiControllerApplyMetadata } from './utility/api/controller/apply-metadata.utility.js';
|
|
73
85
|
export { ApiControllerGetListTransformFilter } from './utility/api/controller/get-list/transform-filter.utility.js';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IApiBaseEntity } from '../../../api-base-entity.interface';
|
|
2
|
+
export interface IApiSubscriberExecutionContext<E extends IApiBaseEntity, Result = unknown, Input = unknown> {
|
|
3
|
+
/**
|
|
4
|
+
* An immutable container for metadata (e.g., transaction manager, HTTP headers)
|
|
5
|
+
*/
|
|
6
|
+
readonly data: Input;
|
|
7
|
+
/**
|
|
8
|
+
* The entity instance the operation is being performed on.
|
|
9
|
+
*/
|
|
10
|
+
readonly entity: E;
|
|
11
|
+
/**
|
|
12
|
+
* The mutable data payload that subscribers can modify.
|
|
13
|
+
*/
|
|
14
|
+
result?: Result;
|
|
15
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EApiFunctionType } from '../../../../enum/decorator/api/function/index';
|
|
2
|
+
import type { IApiBaseEntity } from '../../../api-base-entity.interface';
|
|
3
|
+
import type { IApiSubscriberExecutionContext } from './execution-context.interface';
|
|
4
|
+
export interface IApiSubscriberFunctionExecutionContext<E extends IApiBaseEntity, Result = unknown, Input = unknown> extends IApiSubscriberExecutionContext<E, Result, Input> {
|
|
5
|
+
readonly functionType: EApiFunctionType;
|
|
6
|
+
}
|