@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,18 @@
|
|
|
1
|
+
import { ApiSubscriberExecutor } from '../../../class/api/subscriber/executor.class.js';
|
|
2
|
+
import '../../../enum/decorator/api/action.enum.js';
|
|
3
|
+
import '../../../enum/decorator/api/authentication-type.enum.js';
|
|
4
|
+
import '../../../enum/decorator/api/controller/load-relations-strategy.enum.js';
|
|
5
|
+
import '../../../enum/decorator/api/controller/request-transformer-type.enum.js';
|
|
6
|
+
import '../../../enum/decorator/api/dto-type.enum.js';
|
|
7
|
+
import { EApiFunctionType } from '../../../enum/decorator/api/function/type.enum.js';
|
|
8
|
+
import { EApiSubscriberOnType } from '../../../enum/decorator/api/on-type.enum.js';
|
|
9
|
+
import '../../../enum/decorator/api/property/data-type.enum.js';
|
|
10
|
+
import '../../../enum/decorator/api/property/date/identifier.enum.js';
|
|
11
|
+
import '../../../enum/decorator/api/property/date/type.enum.js';
|
|
12
|
+
import '../../../enum/decorator/api/property/desribe-type.enum.js';
|
|
13
|
+
import '../../../enum/decorator/api/property/number-type.enum.js';
|
|
14
|
+
import '../../../enum/decorator/api/property/string-type.enum.js';
|
|
15
|
+
import '../../../enum/decorator/api/route-type.enum.js';
|
|
1
16
|
import { EErrorStringAction } from '../../../enum/utility/error-string/action.enum.js';
|
|
2
17
|
import '../../../enum/utility/error-string/composite-action.enum.js';
|
|
3
18
|
import { NotFoundException, HttpException, InternalServerErrorException } from '@nestjs/common';
|
|
@@ -10,16 +25,31 @@ import { LoggerUtility } from '../../../utility/logger.utility.js';
|
|
|
10
25
|
* @param {IApiFunctionProperties} properties - Configuration properties for the get function
|
|
11
26
|
* @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle single entity retrieval
|
|
12
27
|
*/
|
|
13
|
-
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @param properties
|
|
31
|
+
*/
|
|
14
32
|
function ApiFunctionGet(properties) {
|
|
15
33
|
const { entity } = properties;
|
|
16
|
-
return function (
|
|
17
|
-
descriptor.value = async function (
|
|
34
|
+
return function (_target, _propertyKey, descriptor) {
|
|
35
|
+
descriptor.value = async function (getProperties, eventManager) {
|
|
36
|
+
const entityInstance = new entity();
|
|
37
|
+
const executionContext = {
|
|
38
|
+
data: { eventManager, getProperties, repository: this.repository },
|
|
39
|
+
entity: entityInstance,
|
|
40
|
+
functionType: EApiFunctionType.GET,
|
|
41
|
+
result: getProperties,
|
|
42
|
+
};
|
|
43
|
+
const result = await ApiSubscriberExecutor.executeFunctionSubscribers(this.constructor, entityInstance, EApiFunctionType.GET, EApiSubscriberOnType.BEFORE, executionContext);
|
|
44
|
+
if (result) {
|
|
45
|
+
executionContext.result = result;
|
|
46
|
+
}
|
|
18
47
|
const repository = this.repository;
|
|
19
48
|
if (!repository) {
|
|
49
|
+
await ApiSubscriberExecutor.executeFunctionSubscribers(this.constructor, entityInstance, EApiFunctionType.GET, EApiSubscriberOnType.BEFORE_ERROR, executionContext, new Error("Repository is not available in this context"));
|
|
20
50
|
throw ErrorException("Repository is not available in this context");
|
|
21
51
|
}
|
|
22
|
-
return executor({ entity, eventManager, properties, repository });
|
|
52
|
+
return executor({ constructor: this.constructor, entity, eventManager, properties: executionContext.result, repository });
|
|
23
53
|
};
|
|
24
54
|
return descriptor;
|
|
25
55
|
};
|
|
@@ -32,7 +62,7 @@ function ApiFunctionGet(properties) {
|
|
|
32
62
|
* @throws {InternalServerErrorException} If the retrieval operation fails
|
|
33
63
|
*/
|
|
34
64
|
async function executor(options) {
|
|
35
|
-
const { entity, eventManager, properties, repository } = options;
|
|
65
|
+
const { constructor, entity, eventManager, properties, repository } = options;
|
|
36
66
|
try {
|
|
37
67
|
let item;
|
|
38
68
|
if (eventManager) {
|
|
@@ -45,13 +75,31 @@ async function executor(options) {
|
|
|
45
75
|
if (!item) {
|
|
46
76
|
throw new NotFoundException(ErrorString({ entity, type: EErrorStringAction.NOT_FOUND }));
|
|
47
77
|
}
|
|
78
|
+
const executionContext = {
|
|
79
|
+
data: { eventManager, properties, repository },
|
|
80
|
+
entity: item,
|
|
81
|
+
functionType: EApiFunctionType.GET,
|
|
82
|
+
result: item,
|
|
83
|
+
};
|
|
84
|
+
const afterResult = await ApiSubscriberExecutor.executeFunctionSubscribers(constructor, item, EApiFunctionType.GET, EApiSubscriberOnType.AFTER, executionContext);
|
|
85
|
+
if (afterResult) {
|
|
86
|
+
return afterResult;
|
|
87
|
+
}
|
|
48
88
|
return item;
|
|
49
89
|
}
|
|
50
90
|
catch (error) {
|
|
91
|
+
const entityInstance = new entity();
|
|
92
|
+
const executionContext = {
|
|
93
|
+
data: { properties, eventManager, repository },
|
|
94
|
+
entity: entityInstance,
|
|
95
|
+
functionType: EApiFunctionType.GET,
|
|
96
|
+
};
|
|
51
97
|
if (error instanceof HttpException) {
|
|
98
|
+
await ApiSubscriberExecutor.executeFunctionSubscribers(constructor, entityInstance, EApiFunctionType.GET, EApiSubscriberOnType.AFTER_ERROR, executionContext, error);
|
|
52
99
|
throw error;
|
|
53
100
|
}
|
|
54
101
|
LoggerUtility.getLogger("ApiFunctionGet").verbose(`Error fetching entity ${String(entity.name)}:`, error);
|
|
102
|
+
await ApiSubscriberExecutor.executeFunctionSubscribers(constructor, entityInstance, EApiFunctionType.GET, EApiSubscriberOnType.AFTER_ERROR, executionContext, error);
|
|
55
103
|
throw new InternalServerErrorException(ErrorString({
|
|
56
104
|
entity,
|
|
57
105
|
type: EErrorStringAction.FETCHING_ERROR,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.decorator.js","sources":["../../../../../../src/decorator/api/function/get.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get.decorator.js","sources":["../../../../../../src/decorator/api/function/get.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;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EAAE;AAC9C,YAAA,MAAM,EAAE,cAAc;YACtB,YAAY,EAAE,gBAAgB,CAAC,GAAG;SAClC;AAED,QAAA,IAAI,KAAK,YAAY,aAAa,EAAE;YACnC,MAAM,qBAAqB,CAAC,0BAA0B,CAAC,WAAW,EAAE,cAAc,EAAE,gBAAgB,CAAC,GAAG,EAAE,oBAAoB,CAAC,WAAkB,EAAE,gBAAgB,EAAE,KAAK,CAAC;AAC3K,YAAA,MAAM,KAAK;;AAGZ,QAAA,aAAa,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAA,sBAAA,EAAyB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC;QACzG,MAAM,qBAAqB,CAAC,0BAA0B,CAAC,WAAW,EAAE,cAAc,EAAE,gBAAgB,CAAC,GAAG,EAAE,oBAAoB,CAAC,WAAkB,EAAE,gBAAgB,EAAE,KAAc,CAAC;AAEpL,QAAA,MAAM,IAAI,4BAA4B,CACrC,WAAW,CAAC;YACX,MAAM;YACN,IAAI,EAAE,kBAAkB,CAAC,cAAc;AACvC,SAAA,CAAC,CACF;;AAEH;;;;"}
|
|
@@ -5,4 +5,8 @@ import type { IApiFunctionProperties } from '../../../interface/decorator/api/fu
|
|
|
5
5
|
* @param {IApiFunctionProperties} properties - Configuration properties for the update function
|
|
6
6
|
* @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle entity updates
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param properties
|
|
11
|
+
*/
|
|
12
|
+
export declare function ApiFunctionUpdate<E extends IApiBaseEntity>(properties: IApiFunctionProperties<E>): (target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
import { ApiSubscriberExecutor } from '../../../class/api/subscriber/executor.class.js';
|
|
2
|
+
import '../../../enum/decorator/api/action.enum.js';
|
|
3
|
+
import '../../../enum/decorator/api/authentication-type.enum.js';
|
|
4
|
+
import '../../../enum/decorator/api/controller/load-relations-strategy.enum.js';
|
|
5
|
+
import '../../../enum/decorator/api/controller/request-transformer-type.enum.js';
|
|
6
|
+
import '../../../enum/decorator/api/dto-type.enum.js';
|
|
7
|
+
import { EApiFunctionType } from '../../../enum/decorator/api/function/type.enum.js';
|
|
8
|
+
import { EApiSubscriberOnType } from '../../../enum/decorator/api/on-type.enum.js';
|
|
9
|
+
import '../../../enum/decorator/api/property/data-type.enum.js';
|
|
10
|
+
import '../../../enum/decorator/api/property/date/identifier.enum.js';
|
|
11
|
+
import '../../../enum/decorator/api/property/date/type.enum.js';
|
|
12
|
+
import '../../../enum/decorator/api/property/desribe-type.enum.js';
|
|
13
|
+
import '../../../enum/decorator/api/property/number-type.enum.js';
|
|
14
|
+
import '../../../enum/decorator/api/property/string-type.enum.js';
|
|
15
|
+
import '../../../enum/decorator/api/route-type.enum.js';
|
|
1
16
|
import { EErrorStringAction } from '../../../enum/utility/error-string/action.enum.js';
|
|
2
17
|
import '../../../enum/utility/error-string/composite-action.enum.js';
|
|
3
18
|
import { HttpException, InternalServerErrorException } from '@nestjs/common';
|
|
@@ -11,15 +26,30 @@ import { ApiFunctionGet } from './get.decorator.js';
|
|
|
11
26
|
* @param {IApiFunctionProperties} properties - Configuration properties for the update function
|
|
12
27
|
* @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle entity updates
|
|
13
28
|
*/
|
|
14
|
-
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param properties
|
|
32
|
+
*/
|
|
15
33
|
function ApiFunctionUpdate(properties) {
|
|
16
34
|
const { entity } = properties;
|
|
17
35
|
const getDecorator = ApiFunctionGet({ entity });
|
|
18
36
|
let getFunction;
|
|
19
|
-
return function (
|
|
20
|
-
descriptor.value = async function (criteria,
|
|
37
|
+
return function (_target, _propertyKey, descriptor) {
|
|
38
|
+
descriptor.value = async function (criteria, updateProperties, eventManager) {
|
|
39
|
+
const entityInstance = new entity();
|
|
40
|
+
const executionContext = {
|
|
41
|
+
data: { criteria, eventManager, repository: this.repository },
|
|
42
|
+
entity: entityInstance,
|
|
43
|
+
functionType: EApiFunctionType.UPDATE,
|
|
44
|
+
result: updateProperties,
|
|
45
|
+
};
|
|
46
|
+
const result = await ApiSubscriberExecutor.executeFunctionSubscribers(this.constructor, entityInstance, EApiFunctionType.UPDATE, EApiSubscriberOnType.BEFORE, executionContext);
|
|
47
|
+
if (result) {
|
|
48
|
+
executionContext.result = result;
|
|
49
|
+
}
|
|
21
50
|
const repository = this.repository;
|
|
22
51
|
if (!repository) {
|
|
52
|
+
await ApiSubscriberExecutor.executeFunctionSubscribers(this.constructor, entityInstance, EApiFunctionType.UPDATE, EApiSubscriberOnType.BEFORE_ERROR, executionContext, new Error("Repository is not available in this context"));
|
|
23
53
|
throw ErrorException("Repository is not available in this context");
|
|
24
54
|
}
|
|
25
55
|
if (!getFunction) {
|
|
@@ -36,7 +66,7 @@ function ApiFunctionUpdate(properties) {
|
|
|
36
66
|
throw ErrorException("Get function is not properly decorated");
|
|
37
67
|
}
|
|
38
68
|
}
|
|
39
|
-
return executor({ criteria, entity, eventManager, getFunction, properties, repository });
|
|
69
|
+
return executor({ constructor: this.constructor, criteria, entity, eventManager, getFunction, properties: executionContext.result, repository });
|
|
40
70
|
};
|
|
41
71
|
return descriptor;
|
|
42
72
|
};
|
|
@@ -48,7 +78,7 @@ function ApiFunctionUpdate(properties) {
|
|
|
48
78
|
* @throws {InternalServerErrorException} If the update operation fails
|
|
49
79
|
*/
|
|
50
80
|
async function executor(options) {
|
|
51
|
-
const { criteria, entity, eventManager, getFunction, properties, repository } = options;
|
|
81
|
+
const { constructor, criteria, entity, eventManager, getFunction, properties, repository } = options;
|
|
52
82
|
try {
|
|
53
83
|
const existingEntity = await getFunction({ where: criteria }, eventManager);
|
|
54
84
|
const updatedProperties = {};
|
|
@@ -58,21 +88,40 @@ async function executor(options) {
|
|
|
58
88
|
updatedProperties[key] = value;
|
|
59
89
|
}
|
|
60
90
|
}
|
|
61
|
-
const mergedEntity = {
|
|
62
|
-
|
|
63
|
-
...updatedProperties,
|
|
64
|
-
};
|
|
91
|
+
const mergedEntity = { ...existingEntity, ...updatedProperties };
|
|
92
|
+
let result;
|
|
65
93
|
if (eventManager) {
|
|
66
94
|
const eventRepository = eventManager.getRepository(entity);
|
|
67
|
-
|
|
95
|
+
result = await eventRepository.save(mergedEntity);
|
|
68
96
|
}
|
|
69
|
-
|
|
97
|
+
else {
|
|
98
|
+
result = await repository.save(mergedEntity);
|
|
99
|
+
}
|
|
100
|
+
const executionContext = {
|
|
101
|
+
data: { criteria, eventManager, repository },
|
|
102
|
+
entity: result,
|
|
103
|
+
functionType: EApiFunctionType.UPDATE,
|
|
104
|
+
result: result,
|
|
105
|
+
};
|
|
106
|
+
const afterResult = await ApiSubscriberExecutor.executeFunctionSubscribers(constructor, result, EApiFunctionType.UPDATE, EApiSubscriberOnType.AFTER, executionContext);
|
|
107
|
+
if (afterResult) {
|
|
108
|
+
return afterResult;
|
|
109
|
+
}
|
|
110
|
+
return result;
|
|
70
111
|
}
|
|
71
112
|
catch (error) {
|
|
113
|
+
const entityInstance = new entity();
|
|
114
|
+
const executionContext = {
|
|
115
|
+
data: { criteria, eventManager, properties, repository },
|
|
116
|
+
entity: entityInstance,
|
|
117
|
+
functionType: EApiFunctionType.UPDATE,
|
|
118
|
+
};
|
|
72
119
|
if (error instanceof HttpException) {
|
|
120
|
+
await ApiSubscriberExecutor.executeFunctionSubscribers(constructor, entityInstance, EApiFunctionType.UPDATE, EApiSubscriberOnType.AFTER_ERROR, executionContext, error);
|
|
73
121
|
throw error;
|
|
74
122
|
}
|
|
75
123
|
LoggerUtility.getLogger("ApiFunctionUpdate").verbose(`Error updating entity ${String(entity.name)}:`, error);
|
|
124
|
+
await ApiSubscriberExecutor.executeFunctionSubscribers(constructor, entityInstance, EApiFunctionType.UPDATE, EApiSubscriberOnType.AFTER_ERROR, executionContext, error);
|
|
76
125
|
throw new InternalServerErrorException(ErrorString({
|
|
77
126
|
entity: entity,
|
|
78
127
|
type: EErrorStringAction.UPDATING_ERROR,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.decorator.js","sources":["../../../../../../src/decorator/api/function/update.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update.decorator.js","sources":["../../../../../../src/decorator/api/function/update.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgBA;;;;AAIG;AAEH;;;AAGG;AACG,SAAU,iBAAiB,CAA2B,UAAqC,EAAA;AAChG,IAAA,MAAM,EAAE,MAAM,EAAE,GAA8B,UAAU;IACxD,MAAM,YAAY,GAA6F,cAAc,CAAI,EAAE,MAAM,EAAE,CAAC;AAC5I,IAAA,IAAI,WAAmG;AAEvG,IAAA,OAAO,UAAU,OAAgB,EAAE,YAAoB,EAAE,UAA8B,EAAA;QACtF,UAAU,CAAC,KAAK,GAAG,gBAAqD,QAAuC,EAAE,gBAAiD,EAAE,YAA4B,EAAA;AAC/L,YAAA,MAAM,cAAc,GAAG,IAAI,MAAM,EAAE;AAEnC,YAAA,MAAM,gBAAgB,GAAoF;gBACzG,IAAI,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE;AAC7D,gBAAA,MAAM,EAAE,cAAc;gBACtB,YAAY,EAAE,gBAAgB,CAAC,MAAM;AACrC,gBAAA,MAAM,EAAE,gBAAgB;aACxB;YAED,MAAM,MAAM,GAAG,MAAM,qBAAqB,CAAC,0BAA0B,CAAC,IAAI,CAAC,WAA4B,EAAE,cAAc,EAAE,gBAAgB,CAAC,MAAM,EAAE,oBAAoB,CAAC,MAAa,EAAE,gBAAgB,CAAC;YAEvM,IAAI,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EAAE,UAAU,EAAE;AACxD,YAAA,MAAM,EAAE,cAAc;YACtB,YAAY,EAAE,gBAAgB,CAAC,MAAM;SACrC;AAED,QAAA,IAAI,KAAK,YAAY,aAAa,EAAE;YACnC,MAAM,qBAAqB,CAAC,0BAA0B,CAAC,WAAW,EAAE,cAAc,EAAE,gBAAgB,CAAC,MAAM,EAAE,oBAAoB,CAAC,WAAkB,EAAE,gBAAgB,EAAE,KAAK,CAAC;AAC9K,YAAA,MAAM,KAAK;;AAGZ,QAAA,aAAa,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,CAAA,sBAAA,EAAyB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC;QAC5G,MAAM,qBAAqB,CAAC,0BAA0B,CAAC,WAAW,EAAE,cAAc,EAAE,gBAAgB,CAAC,MAAM,EAAE,oBAAoB,CAAC,WAAkB,EAAE,gBAAgB,EAAE,KAAc,CAAC;AAEvL,QAAA,MAAM,IAAI,4BAA4B,CACrC,WAAW,CAAC;AACX,YAAA,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,kBAAkB,CAAC,cAAc;AACvC,SAAA,CAAC,CACF;;AAEH;;;;"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './controller/index';
|
|
2
|
+
export * from './controller.decorator';
|
|
2
3
|
export * from './function/index';
|
|
3
|
-
export
|
|
4
|
+
export * from './method.decorator';
|
|
4
5
|
export * from './property/index';
|
|
5
|
-
export
|
|
6
|
+
export * from './service/index';
|
|
7
|
+
export * from './service.decorator';
|
|
8
|
+
export * from './subscriber/index';
|
|
@@ -5,6 +5,7 @@ import '../../enum/decorator/api/controller/load-relations-strategy.enum.js';
|
|
|
5
5
|
import '../../enum/decorator/api/controller/request-transformer-type.enum.js';
|
|
6
6
|
import '../../enum/decorator/api/dto-type.enum.js';
|
|
7
7
|
import '../../enum/decorator/api/function/type.enum.js';
|
|
8
|
+
import '../../enum/decorator/api/on-type.enum.js';
|
|
8
9
|
import '../../enum/decorator/api/property/data-type.enum.js';
|
|
9
10
|
import '../../enum/decorator/api/property/date/identifier.enum.js';
|
|
10
11
|
import '../../enum/decorator/api/property/date/type.enum.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method.decorator.js","sources":["../../../../../src/decorator/api/method.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAUA;;;;;AAKG;AACH;AACM,SAAU,SAAS,CAA2B,OAAgC,EAAA;IACnF,IAAI,OAAO,GAAW,EAAE;AAExB,IAAA,IAAI,OAAO,CAAC,MAAM,EAAE;AACnB,QAAA,QAAQ,OAAO,CAAC,MAAM;AACrB,YAAA,KAAK,UAAU,CAAC,OAAO,EAAE;AACxB,gBAAA,OAAO,GAAG,CAAe,YAAA,EAAA,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI;gBAE/E;;AAGD,YAAA,KAAK,UAAU,CAAC,cAAc,EAAE;AAC/B,gBAAA,OAAO,GAAG,CAAuB,oBAAA,EAAA,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI;gBAEvF;;AAGD,YAAA,KAAK,UAAU,CAAC,WAAW,EAAE;AAC5B,gBAAA,OAAO,GAAG,CAAmB,gBAAA,EAAA,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI;gBAEjF;;AAGD,YAAA,KAAK,UAAU,CAAC,WAAW,EAAE;AAC5B,gBAAA,OAAO,GAAG,CAAmB,gBAAA,EAAA,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI;gBAEjF;;AAGD,YAAA,KAAK,UAAU,CAAC,WAAW,EAAE;AA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AAW,CAAC,QAAQ,CAAC,CAAC;;;AAIxC,QAAA,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;;AAGzD,IAAA,OAAO,eAAe,CAAC,GAAG,UAAU,CAAC;AACtC;;;;"}
|
|
@@ -4,6 +4,7 @@ import '../../../enum/decorator/api/controller/load-relations-strategy.enum.js';
|
|
|
4
4
|
import '../../../enum/decorator/api/controller/request-transformer-type.enum.js';
|
|
5
5
|
import '../../../enum/decorator/api/dto-type.enum.js';
|
|
6
6
|
import '../../../enum/decorator/api/function/type.enum.js';
|
|
7
|
+
import '../../../enum/decorator/api/on-type.enum.js';
|
|
7
8
|
import { EApiPropertyDataType } from '../../../enum/decorator/api/property/data-type.enum.js';
|
|
8
9
|
import '../../../enum/decorator/api/property/date/identifier.enum.js';
|
|
9
10
|
import '../../../enum/decorator/api/property/date/type.enum.js';
|
|
@@ -82,7 +83,6 @@ function ApiPropertyBoolean(properties) {
|
|
|
82
83
|
function buildApiPropertyOptions(properties) {
|
|
83
84
|
const apiPropertyOptions = {
|
|
84
85
|
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
85
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
86
86
|
nullable: !!properties.isNullable,
|
|
87
87
|
type: EApiPropertyDataType.BOOLEAN,
|
|
88
88
|
};
|
|
@@ -121,7 +121,6 @@ function buildFormatDecorators(properties) {
|
|
|
121
121
|
const decorators = [];
|
|
122
122
|
const isArray = properties.isArray ?? false;
|
|
123
123
|
if (properties.isResponse === undefined || !properties.isResponse) {
|
|
124
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
125
124
|
decorators.push(IsBoolean({ each: isArray }));
|
|
126
125
|
}
|
|
127
126
|
return decorators;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean.decorator.js","sources":["../../../../../../src/decorator/api/property/boolean.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"boolean.decorator.js","sources":["../../../../../../src/decorator/api/property/boolean.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDG;AACG,SAAU,kBAAkB,CAAC,UAAsC,EAAA;IACxE,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC;IAClF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC;AAE5F,IAAA,OAAO,eAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA;;;;;AAKG;AACH,SAAS,uBAAuB,CAAC,UAAsC,EAAA;AACtE,IAAA,MAAM,kBAAkB,GAAuB;AAC9C,QAAA,WAAW,EAAE,CAAG,EAAA,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,EAAE,CAAE,CAAA;AAEhF,QAAA,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,UAAU;QACjC,IAAI,EAAE,oBAAoB,CAAC,OAAO;KAClC;AAED,IAAA,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,UAAU;AAEnD,IAAA,IAAI,UAAU,CAAC,OAAO,EAAE;AACvB,QAAA,kBAAkB,CAAC,OAAO,GAAG,IAAI;AACjC,QAAA,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ;AACjD,QAAA,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ;AACjD,QAAA,kBAAkB,CAAC,WAAW,GAAG,UAAU,CAAC,aAAa;AACzD,QAAA,kBAAkB,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC;;SAC7B;AACN,QAAA,kBAAkB,CAAC,OAAO,GAAG,IAAI;;AAGlC,IAAA,OAAO,kBAAkB;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AI,CAAC,iEAAiE,CAAC;;;AAIhF,IAAA,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;AACtB,QAAA,MAAM,IAAI,KAAK,CAAC,CAAA,0BAAA,EAA6B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAE,CAAA,CAAC;;AAEnE;;;;"}
|
|
@@ -27,7 +27,7 @@ function ApiPropertyCopy(entity, propertyName, method, dtoType, metadata, curren
|
|
|
27
27
|
if (!column) {
|
|
28
28
|
throw ErrorException(`Property ${String(propertyName)} not found in entity ${String(entity.name)}`);
|
|
29
29
|
}
|
|
30
|
-
let propertyMetadata = column.metadata?.[PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT.
|
|
30
|
+
let propertyMetadata = column.metadata?.[PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT.METADATA_KEY];
|
|
31
31
|
if (!propertyMetadata) {
|
|
32
32
|
throw ErrorException(`Metadata for property ${String(propertyName)} in entity ${String(entity.name)} not found`);
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy.decorator.js","sources":["../../../../../../src/decorator/api/property/copy.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAaA;;;;;;;;;;AAUG;AACa,SAAA,eAAe,CAAI,MAAe,EAAE,YAAqB,EAAE,MAAqB,EAAE,OAAoB,EAAE,QAAkD,EAAE,YAA+B,EAAA;IAC1M,OAAO,UAAU,MAAc,EAAE,GAAoB,EAAA;AACpD,QAAA,MAAM,cAAc,GAAkB,yBAAyB,CAAC,MAAM,CAAC;AAEvE,QAAA,IAAI,CAAC,cAAc,EAAE,OAAO,EAAE;YAC7B,MAAM,cAAc,CAAC,CAAA,oBAAA,EAAuB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAuB,qBAAA,CAAA,CAAC;;AAGxF,QAAA,MAAM,MAAM,GAAoC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAA2B,KAAK,MA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AAA,EAAyB,MAAM,CAAC,YAAY,CAAC,CAAA,WAAA,EAAc,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA,UAAA,CAAY,CAAC;;QAGjH,IAAI,QAAQ,EAAE;YACb,gBAAgB,GAAG,EAAE,GAAG,gBAAgB,EAAE,GAAI,QAA2C,EAAoC;;AAG9H,QAAA,MAAM,aAAa,GAA8C,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,EAAE,cAAc,EAAE,OAAO,EAAE,YAAsB,EAAE,YAAY,CAAC;AAE5K,QAAA,MAAM,UAAU,GAAyC,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,EAAE,cAAc,EAAE,OAAO,EAAE,YAAsB,EAAE,YAAY,EAAE,aAAa,CAAC;QAElL,IAAI,CAAC,UAAU,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE;AAC3C,YAAA,MAAM,cAAc,CAAC,CAAA,qCAAA,EAAwC,MAAM,CAAC,YAAY,CAAC,CAAA,WAAA,EAAc,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA,CAAE,CAAC;;QAGtH,eAAe,CAAC,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC;AAC5C,KAAC;AACF;;;;"}
|
|
@@ -4,6 +4,7 @@ import '../../../enum/decorator/api/controller/load-relations-strategy.enum.js';
|
|
|
4
4
|
import '../../../enum/decorator/api/controller/request-transformer-type.enum.js';
|
|
5
5
|
import '../../../enum/decorator/api/dto-type.enum.js';
|
|
6
6
|
import '../../../enum/decorator/api/function/type.enum.js';
|
|
7
|
+
import '../../../enum/decorator/api/on-type.enum.js';
|
|
7
8
|
import { EApiPropertyDataType } from '../../../enum/decorator/api/property/data-type.enum.js';
|
|
8
9
|
import { EApiPropertyDateIdentifier } from '../../../enum/decorator/api/property/date/identifier.enum.js';
|
|
9
10
|
import { EApiPropertyDateType } from '../../../enum/decorator/api/property/date/type.enum.js';
|
|
@@ -87,7 +88,6 @@ function buildApiPropertyOptions(properties) {
|
|
|
87
88
|
const example = getExample(properties.format);
|
|
88
89
|
const apiPropertyOptions = {
|
|
89
90
|
description: `${String(properties.entity.name)} ${getDescription(properties.identifier)}`,
|
|
90
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
91
91
|
nullable: !!properties.isNullable,
|
|
92
92
|
type: EApiPropertyDataType.STRING,
|
|
93
93
|
};
|
|
@@ -135,7 +135,6 @@ function buildFormatDecorators(properties) {
|
|
|
135
135
|
const decorators = [];
|
|
136
136
|
const isArray = properties.isArray ?? false;
|
|
137
137
|
if (!properties.isResponse) {
|
|
138
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
139
138
|
decorators.push(IsDate({ each: isArray }));
|
|
140
139
|
}
|
|
141
140
|
return decorators;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.decorator.js","sources":["../../../../../../src/decorator/api/property/date.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"date.decorator.js","sources":["../../../../../../src/decorator/api/property/date.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDG;AACG,SAAU,eAAe,CAAC,UAAsC,EAAA;IACrE,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC;IAClF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC;AAE5F,IAAA,OAAO,eAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA;;;;;AAKG;AACH,SAAS,uBAAuB,CAAC,UAAsC,EAAA;IACtE,MAAM,OAAO,GAAW,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC;AAErD,IAAA,MAAM,kBAAkB,GAAuB;AAC9C,QAAA,WAAW,EAAE,CAAG,EAAA,M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AACzD,YAAA,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC;;;AAIhF,IAAA,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;AACtB,QAAA,MAAM,IAAI,KAAK,CAAC,CAAA,uBAAA,EAA0B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAE,CAAA,CAAC;;AAEhE;;;;"}
|
|
@@ -86,7 +86,7 @@ import { PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT } from '../../../constant/deco
|
|
|
86
86
|
function ApiPropertyDescribe(properties) {
|
|
87
87
|
return (target, propertyKey) => {
|
|
88
88
|
const entityName = target.constructor.name;
|
|
89
|
-
MetadataStorage.getInstance().setMetadata(entityName, propertyKey, PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT.
|
|
89
|
+
MetadataStorage.getInstance().setMetadata(entityName, propertyKey, PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT.METADATA_KEY, properties);
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"describe.decorator.js","sources":["../../../../../../src/decorator/api/property/describe.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFG;AACG,SAAU,mBAAmB,CAAC,UAA0C,EAAA;AAC7E,IAAA,OAAO,CAAC,MAAwB,EAAE,WAAmB,KAAU;AAC9D,QAAA,MAAM,UAAU,GAAW,MAAM,CAAC,WAAW,CAAC,IAAI;AAClD,QAAA,eAAe,CAAC,WAAW,EAAE,CAAC,WAAW,CAAC,UAAU,EAAE,WAAW,EAAE,wCAAwC,CAAC,
|
|
1
|
+
{"version":3,"file":"describe.decorator.js","sources":["../../../../../../src/decorator/api/property/describe.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFG;AACG,SAAU,mBAAmB,CAAC,UAA0C,EAAA;AAC7E,IAAA,OAAO,CAAC,MAAwB,EAAE,WAAmB,KAAU;AAC9D,QAAA,MAAM,UAAU,GAAW,MAAM,CAAC,WAAW,CAAC,IAAI;AAClD,QAAA,eAAe,CAAC,WAAW,EAAE,CAAC,WAAW,CAAC,UAAU,EAAE,WAAW,EAAE,wCAAwC,CAAC,YAAY,EAAE,UAAU,CAAC;AACtI,KAAC;AACF;;;;"}
|
|
@@ -92,7 +92,6 @@ function ApiPropertyEnum(properties) {
|
|
|
92
92
|
function buildApiPropertyOptions(properties) {
|
|
93
93
|
const apiPropertyOptions = {
|
|
94
94
|
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
95
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
96
95
|
nullable: !!properties.isNullable,
|
|
97
96
|
};
|
|
98
97
|
apiPropertyOptions.required = properties.isRequired;
|
|
@@ -138,7 +137,6 @@ function buildDecorators(properties, apiPropertyOptions) {
|
|
|
138
137
|
function buildFormatDecorators(properties) {
|
|
139
138
|
const decorators = [];
|
|
140
139
|
const isArray = properties.isArray ?? false;
|
|
141
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
142
140
|
decorators.push(IsEnum(properties.enum, { each: isArray }));
|
|
143
141
|
return decorators;
|
|
144
142
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enum.decorator.js","sources":["../../../../../../src/decorator/api/property/enum.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyEG;AACG,SAAU,eAAe,CAAC,UAAsC,EAAA;IACrE,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC;IAClF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC;AAE5F,IAAA,OAAO,eAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA;;;;;AAKG;AACH,SAAS,uBAAuB,CAAC,UAAsC,EAAA;AACtE,IAAA,MAAM,kBAAkB,GAA6C;AACpE,QAAA,WAAW,EAAE,CAAG,EAAA,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,EAAE,CAAE,CAAA
|
|
1
|
+
{"version":3,"file":"enum.decorator.js","sources":["../../../../../../src/decorator/api/property/enum.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyEG;AACG,SAAU,eAAe,CAAC,UAAsC,EAAA;IACrE,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC;IAClF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC;AAE5F,IAAA,OAAO,eAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA;;;;;AAKG;AACH,SAAS,uBAAuB,CAAC,UAAsC,EAAA;AACtE,IAAA,MAAM,kBAAkB,GAA6C;AACpE,QAAA,WAAW,EAAE,CAAG,EAAA,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,EAAE,CAAE,CAAA;AAEhF,QAAA,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,UAAU;KACjC;AAED,IAAA,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,UAAU;AAEnD,IAAA,IAAI,UAAU,CAAC,OAAO,KAAK,IAAI,EAAE;A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UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;;;AAI5B,IAAA,OAAO,UAAU;AAClB;AAEA;;;;;;AAMG;AACH,SAAS,eAAe,CAAC,UAAsC,EAAA;IAC9D,MAAM,MAAM,GAAkB,EAAE;AAEhC,IAAA,IAAI,UAAU,CAAC,OAAO,KAAK,IAAI,EAAE;QAChC,IAAI,UAAU,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,EAAE;AAC9C,YAAA,MAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC;;AAGrD,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;;AAGzC,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;;QAGzC,IAAI,UAAU,CAAC,aAAa,IAAI,UAAU,CAAC,QAAQ,IAAI,CAAC,EAAE;AACzD,YAAA,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC;;;IAIhF,IAAI,UAAU,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE;AACjG,QAAA,MAAM,CAAC,IAAI,CAAC,iCAAiC,CAAC;;AAG/C,IAAA,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;AACtB,QAAA,MAAM,IAAI,KAAK,CAAC,CAAA,uBAAA,EAA0B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAE,CAAA,CAAC;;AAEhE;;;;"}
|
|
@@ -5,6 +5,7 @@ import '../../../enum/decorator/api/controller/load-relations-strategy.enum.js';
|
|
|
5
5
|
import '../../../enum/decorator/api/controller/request-transformer-type.enum.js';
|
|
6
6
|
import '../../../enum/decorator/api/dto-type.enum.js';
|
|
7
7
|
import '../../../enum/decorator/api/function/type.enum.js';
|
|
8
|
+
import '../../../enum/decorator/api/on-type.enum.js';
|
|
8
9
|
import { EApiPropertyDataType } from '../../../enum/decorator/api/property/data-type.enum.js';
|
|
9
10
|
import '../../../enum/decorator/api/property/date/identifier.enum.js';
|
|
10
11
|
import '../../../enum/decorator/api/property/date/type.enum.js';
|
|
@@ -103,7 +104,6 @@ function buildApiPropertyOptions(properties) {
|
|
|
103
104
|
const apiPropertyOptions = {
|
|
104
105
|
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
105
106
|
format: getFormat(properties),
|
|
106
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
107
107
|
nullable: !!properties.isNullable,
|
|
108
108
|
type: getType(properties),
|
|
109
109
|
};
|
|
@@ -152,12 +152,10 @@ function buildFormatDecorators(properties) {
|
|
|
152
152
|
if (properties.isResponse === undefined || !properties.isResponse) {
|
|
153
153
|
switch (properties.format) {
|
|
154
154
|
case EApiPropertyNumberType.DOUBLE: {
|
|
155
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
156
155
|
decorators.push(IsNumber({}, { each: isArray }));
|
|
157
156
|
break;
|
|
158
157
|
}
|
|
159
158
|
case EApiPropertyNumberType.INTEGER: {
|
|
160
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
161
159
|
decorators.push(IsInt({ each: isArray }));
|
|
162
160
|
break;
|
|
163
161
|
}
|
|
@@ -180,7 +178,6 @@ function buildNumberValidationDecorators(properties) {
|
|
|
180
178
|
const decorators = [];
|
|
181
179
|
const isArray = properties.isArray ?? false;
|
|
182
180
|
if ((properties.isResponse === false || properties.isResponse === undefined) && properties.multipleOf != undefined) {
|
|
183
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
184
181
|
decorators.push(IsDivisibleBy(properties.multipleOf, { each: isArray }), Min(properties.minimum, { each: isArray }), Max(properties.maximum, { each: isArray }));
|
|
185
182
|
}
|
|
186
183
|
return decorators;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.decorator.js","sources":["../../../../../../src/decorator/api/property/number.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"number.decorator.js","sources":["../../../../../../src/decorator/api/property/number.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiEG;AACG,SAAU,iBAAiB,CAAC,UAAwC,EAAA;AACzE,IAAA,UAAU,CAAC,YAAY,KAAK,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC;IAE1E,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC;IAClF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC;AAE5F,IAAA,OAAO,eAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA;;;;;;;AAOG;AACH,SAAS,uBAAuB,CAAC,UAAwC,EAAA;AACxE,IAAA,MAAM,kBAAkB,GAAuB;AAC9C,QAAA,WAAW,EAAE,CAAG,EAAA,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,EAAE,CAAE,CAAA;AAChF,QAAA,MAAM,EAAE,SAAS,CAAC,UAAU,CAAC;AAE7B,QAAA,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,UAAU;AACjC,QAAA,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC;KACzB;AAED,IAAA,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,UAAU;AAEnD,IAAA,IAAI,UAAU,CAAC,OAAO,EAAE;AACvB,QAAA,kBAAkB,CAAC,OAAO,GAAG,IAAI;AACjC,QAAA,kBAAkB,CAAC,QAAQ,GAAG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