@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,5 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var executor_class = require('../../../class/api/subscriber/executor.class.js');
|
|
4
|
+
require('../../../enum/decorator/api/action.enum.js');
|
|
5
|
+
require('../../../enum/decorator/api/authentication-type.enum.js');
|
|
6
|
+
require('../../../enum/decorator/api/controller/load-relations-strategy.enum.js');
|
|
7
|
+
require('../../../enum/decorator/api/controller/request-transformer-type.enum.js');
|
|
8
|
+
require('../../../enum/decorator/api/dto-type.enum.js');
|
|
9
|
+
var type_enum = require('../../../enum/decorator/api/function/type.enum.js');
|
|
10
|
+
var onType_enum = require('../../../enum/decorator/api/on-type.enum.js');
|
|
11
|
+
require('../../../enum/decorator/api/property/data-type.enum.js');
|
|
12
|
+
require('../../../enum/decorator/api/property/date/identifier.enum.js');
|
|
13
|
+
require('../../../enum/decorator/api/property/date/type.enum.js');
|
|
14
|
+
require('../../../enum/decorator/api/property/desribe-type.enum.js');
|
|
15
|
+
require('../../../enum/decorator/api/property/number-type.enum.js');
|
|
16
|
+
require('../../../enum/decorator/api/property/string-type.enum.js');
|
|
17
|
+
require('../../../enum/decorator/api/route-type.enum.js');
|
|
3
18
|
var action_enum = require('../../../enum/utility/error-string/action.enum.js');
|
|
4
19
|
require('../../../enum/utility/error-string/composite-action.enum.js');
|
|
5
20
|
var common = require('@nestjs/common');
|
|
@@ -12,16 +27,31 @@ var logger_utility = require('../../../utility/logger.utility.js');
|
|
|
12
27
|
* @param {IApiFunctionProperties} properties - Configuration properties for the get function
|
|
13
28
|
* @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle single entity retrieval
|
|
14
29
|
*/
|
|
15
|
-
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @param properties
|
|
33
|
+
*/
|
|
16
34
|
function ApiFunctionGet(properties) {
|
|
17
35
|
const { entity } = properties;
|
|
18
|
-
return function (
|
|
19
|
-
descriptor.value = async function (
|
|
36
|
+
return function (_target, _propertyKey, descriptor) {
|
|
37
|
+
descriptor.value = async function (getProperties, eventManager) {
|
|
38
|
+
const entityInstance = new entity();
|
|
39
|
+
const executionContext = {
|
|
40
|
+
data: { eventManager, getProperties, repository: this.repository },
|
|
41
|
+
entity: entityInstance,
|
|
42
|
+
functionType: type_enum.EApiFunctionType.GET,
|
|
43
|
+
result: getProperties,
|
|
44
|
+
};
|
|
45
|
+
const result = await executor_class.ApiSubscriberExecutor.executeFunctionSubscribers(this.constructor, entityInstance, type_enum.EApiFunctionType.GET, onType_enum.EApiSubscriberOnType.BEFORE, executionContext);
|
|
46
|
+
if (result) {
|
|
47
|
+
executionContext.result = result;
|
|
48
|
+
}
|
|
20
49
|
const repository = this.repository;
|
|
21
50
|
if (!repository) {
|
|
51
|
+
await executor_class.ApiSubscriberExecutor.executeFunctionSubscribers(this.constructor, entityInstance, type_enum.EApiFunctionType.GET, onType_enum.EApiSubscriberOnType.BEFORE_ERROR, executionContext, new Error("Repository is not available in this context"));
|
|
22
52
|
throw errorException_utility.ErrorException("Repository is not available in this context");
|
|
23
53
|
}
|
|
24
|
-
return executor({ entity, eventManager, properties, repository });
|
|
54
|
+
return executor({ constructor: this.constructor, entity, eventManager, properties: executionContext.result, repository });
|
|
25
55
|
};
|
|
26
56
|
return descriptor;
|
|
27
57
|
};
|
|
@@ -34,7 +64,7 @@ function ApiFunctionGet(properties) {
|
|
|
34
64
|
* @throws {InternalServerErrorException} If the retrieval operation fails
|
|
35
65
|
*/
|
|
36
66
|
async function executor(options) {
|
|
37
|
-
const { entity, eventManager, properties, repository } = options;
|
|
67
|
+
const { constructor, entity, eventManager, properties, repository } = options;
|
|
38
68
|
try {
|
|
39
69
|
let item;
|
|
40
70
|
if (eventManager) {
|
|
@@ -47,13 +77,31 @@ async function executor(options) {
|
|
|
47
77
|
if (!item) {
|
|
48
78
|
throw new common.NotFoundException(errorString_utility.ErrorString({ entity, type: action_enum.EErrorStringAction.NOT_FOUND }));
|
|
49
79
|
}
|
|
80
|
+
const executionContext = {
|
|
81
|
+
data: { eventManager, properties, repository },
|
|
82
|
+
entity: item,
|
|
83
|
+
functionType: type_enum.EApiFunctionType.GET,
|
|
84
|
+
result: item,
|
|
85
|
+
};
|
|
86
|
+
const afterResult = await executor_class.ApiSubscriberExecutor.executeFunctionSubscribers(constructor, item, type_enum.EApiFunctionType.GET, onType_enum.EApiSubscriberOnType.AFTER, executionContext);
|
|
87
|
+
if (afterResult) {
|
|
88
|
+
return afterResult;
|
|
89
|
+
}
|
|
50
90
|
return item;
|
|
51
91
|
}
|
|
52
92
|
catch (error) {
|
|
93
|
+
const entityInstance = new entity();
|
|
94
|
+
const executionContext = {
|
|
95
|
+
data: { properties, eventManager, repository },
|
|
96
|
+
entity: entityInstance,
|
|
97
|
+
functionType: type_enum.EApiFunctionType.GET,
|
|
98
|
+
};
|
|
53
99
|
if (error instanceof common.HttpException) {
|
|
100
|
+
await executor_class.ApiSubscriberExecutor.executeFunctionSubscribers(constructor, entityInstance, type_enum.EApiFunctionType.GET, onType_enum.EApiSubscriberOnType.AFTER_ERROR, executionContext, error);
|
|
54
101
|
throw error;
|
|
55
102
|
}
|
|
56
103
|
logger_utility.LoggerUtility.getLogger("ApiFunctionGet").verbose(`Error fetching entity ${String(entity.name)}:`, error);
|
|
104
|
+
await executor_class.ApiSubscriberExecutor.executeFunctionSubscribers(constructor, entityInstance, type_enum.EApiFunctionType.GET, onType_enum.EApiSubscriberOnType.AFTER_ERROR, executionContext, error);
|
|
57
105
|
throw new common.InternalServerErrorException(errorString_utility.ErrorString({
|
|
58
106
|
entity,
|
|
59
107
|
type: action_enum.EErrorStringAction.FETCHING_ERROR,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.decorator.js","sources":["../../../../../../src/decorator/api/function/get.decorator.ts"],"sourcesContent":[null],"names":["ErrorException","NotFoundException","ErrorString","EErrorStringAction","HttpException","LoggerUtility","InternalServerErrorException"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get.decorator.js","sources":["../../../../../../src/decorator/api/function/get.decorator.ts"],"sourcesContent":[null],"names":["EApiFunctionType","ApiSubscriberExecutor","EApiSubscriberOnType","ErrorException","NotFoundException","ErrorString","EErrorStringAction","HttpException","LoggerUtility","InternalServerErrorException"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAcA;;;;AAIG;AAEH;;;AAGG;AACG,SAAU,cAAc,CAA2B,UAAqC,EAAA;AAC7F,IAAA,MAAM,EAAE,MAAM,EAAE,GAA8B,UAAU;AAExD,IAAA,OAAO,UAAU,OAAgB,EAAE,YAAoB,EAAE,UAA8B,EAAA;AAMtF,QAAA,UAAU,CAAC,KAAK,GAAG,gBAAqD,aAA2C,EAAE,YAA4B,EAAA;AAChJ,YAAA,MAAM,cAAc,GAAG,IAAI,MAAM,EAAE;AAEnC,YAAA,MAAM,gBAAgB,GAAiF;gBACtG,IAAI,EAAE,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE;AAClE,gBAAA,MAAM,EAAE,cAAc;gBACtB,YAAY,EAAEA,0BAAgB,CAAC,GAAG;AAClC,gBAAA,MAAM,EAAE,aAAa;aACrB;YAED,MAAM,MAAM,GAAG,MAAMC,oCAAqB,CAAC,0BAA0B,CAAC,IAAI,CAAC,WAA4B,EAAE,cAAc,EAAED,0BAAgB,CAAC,GAAG,EAAEE,gCAAoB,CAAC,MAAa,EAAE,gBAAgB,CAAC;YAEpM,IAAI,MAAM,EAAE;AACX,gBAAA,gBAAgB,CAAC,MAAM,GAAG,MAAM;;AAGjC,YAAA,MAAM,UAAU,GAAkB,IAAI,CAAC,UAAU;YAEjD,IAAI,CAAC,UAAU,EAAE;gBAChB,MAAMD,oCAAqB,CAAC,0BAA0B,CAAC,IAAI,CAAC,WAA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AI,EAAED,0BAAgB,CAAC,GAAG,EAAEE,gCAAoB,CAAC,KAAY,EAAE,gBAAgB,CAAC;QAExK,IAAI,WAAW,EAAE;AAChB,YAAA,OAAO,WAAW;;AAGnB,QAAA,OAAO,IAAI;;IACV,OAAO,KAAK,EAAE;AACf,QAAA,MAAM,cAAc,GAAG,IAAI,MAAM,EAAE;AACnC,QAAA,MAAM,gBAAgB,GAA0D;AAC/E,YAAA,IAAI,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE;AAC9C,YAAA,MAAM,EAAE,cAAc;YACtB,YAAY,EAAEF,0BAAgB,CAAC,GAAG;SAClC;AAED,QAAA,IAAI,KAAK,YAAYO,oBAAa,EAAE;YACnC,MAAMN,oCAAqB,CAAC,0BAA0B,CAAC,WAAW,EAAE,cAAc,EAAED,0BAAgB,CAAC,GAAG,EAAEE,gCAAoB,CAAC,WAAkB,EAAE,gBAAgB,EAAE,KAAK,CAAC;AAC3K,YAAA,MAAM,KAAK;;AAGZ,QAAAM,4BAAa,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAA,sBAAA,EAAyB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC;QACzG,MAAMP,oCAAqB,CAAC,0BAA0B,CAAC,WAAW,EAAE,cAAc,EAAED,0BAAgB,CAAC,GAAG,EAAEE,gCAAoB,CAAC,WAAkB,EAAE,gBAAgB,EAAE,KAAc,CAAC;AAEpL,QAAA,MAAM,IAAIO,mCAA4B,CACrCJ,+BAAW,CAAC;YACX,MAAM;YACN,IAAI,EAAEC,8BAAkB,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,5 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var executor_class = require('../../../class/api/subscriber/executor.class.js');
|
|
4
|
+
require('../../../enum/decorator/api/action.enum.js');
|
|
5
|
+
require('../../../enum/decorator/api/authentication-type.enum.js');
|
|
6
|
+
require('../../../enum/decorator/api/controller/load-relations-strategy.enum.js');
|
|
7
|
+
require('../../../enum/decorator/api/controller/request-transformer-type.enum.js');
|
|
8
|
+
require('../../../enum/decorator/api/dto-type.enum.js');
|
|
9
|
+
var type_enum = require('../../../enum/decorator/api/function/type.enum.js');
|
|
10
|
+
var onType_enum = require('../../../enum/decorator/api/on-type.enum.js');
|
|
11
|
+
require('../../../enum/decorator/api/property/data-type.enum.js');
|
|
12
|
+
require('../../../enum/decorator/api/property/date/identifier.enum.js');
|
|
13
|
+
require('../../../enum/decorator/api/property/date/type.enum.js');
|
|
14
|
+
require('../../../enum/decorator/api/property/desribe-type.enum.js');
|
|
15
|
+
require('../../../enum/decorator/api/property/number-type.enum.js');
|
|
16
|
+
require('../../../enum/decorator/api/property/string-type.enum.js');
|
|
17
|
+
require('../../../enum/decorator/api/route-type.enum.js');
|
|
3
18
|
var action_enum = require('../../../enum/utility/error-string/action.enum.js');
|
|
4
19
|
require('../../../enum/utility/error-string/composite-action.enum.js');
|
|
5
20
|
var common = require('@nestjs/common');
|
|
@@ -13,15 +28,30 @@ var get_decorator = require('./get.decorator.js');
|
|
|
13
28
|
* @param {IApiFunctionProperties} properties - Configuration properties for the update function
|
|
14
29
|
* @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle entity updates
|
|
15
30
|
*/
|
|
16
|
-
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @param properties
|
|
34
|
+
*/
|
|
17
35
|
function ApiFunctionUpdate(properties) {
|
|
18
36
|
const { entity } = properties;
|
|
19
37
|
const getDecorator = get_decorator.ApiFunctionGet({ entity });
|
|
20
38
|
let getFunction;
|
|
21
|
-
return function (
|
|
22
|
-
descriptor.value = async function (criteria,
|
|
39
|
+
return function (_target, _propertyKey, descriptor) {
|
|
40
|
+
descriptor.value = async function (criteria, updateProperties, eventManager) {
|
|
41
|
+
const entityInstance = new entity();
|
|
42
|
+
const executionContext = {
|
|
43
|
+
data: { criteria, eventManager, repository: this.repository },
|
|
44
|
+
entity: entityInstance,
|
|
45
|
+
functionType: type_enum.EApiFunctionType.UPDATE,
|
|
46
|
+
result: updateProperties,
|
|
47
|
+
};
|
|
48
|
+
const result = await executor_class.ApiSubscriberExecutor.executeFunctionSubscribers(this.constructor, entityInstance, type_enum.EApiFunctionType.UPDATE, onType_enum.EApiSubscriberOnType.BEFORE, executionContext);
|
|
49
|
+
if (result) {
|
|
50
|
+
executionContext.result = result;
|
|
51
|
+
}
|
|
23
52
|
const repository = this.repository;
|
|
24
53
|
if (!repository) {
|
|
54
|
+
await executor_class.ApiSubscriberExecutor.executeFunctionSubscribers(this.constructor, entityInstance, type_enum.EApiFunctionType.UPDATE, onType_enum.EApiSubscriberOnType.BEFORE_ERROR, executionContext, new Error("Repository is not available in this context"));
|
|
25
55
|
throw errorException_utility.ErrorException("Repository is not available in this context");
|
|
26
56
|
}
|
|
27
57
|
if (!getFunction) {
|
|
@@ -38,7 +68,7 @@ function ApiFunctionUpdate(properties) {
|
|
|
38
68
|
throw errorException_utility.ErrorException("Get function is not properly decorated");
|
|
39
69
|
}
|
|
40
70
|
}
|
|
41
|
-
return executor({ criteria, entity, eventManager, getFunction, properties, repository });
|
|
71
|
+
return executor({ constructor: this.constructor, criteria, entity, eventManager, getFunction, properties: executionContext.result, repository });
|
|
42
72
|
};
|
|
43
73
|
return descriptor;
|
|
44
74
|
};
|
|
@@ -50,7 +80,7 @@ function ApiFunctionUpdate(properties) {
|
|
|
50
80
|
* @throws {InternalServerErrorException} If the update operation fails
|
|
51
81
|
*/
|
|
52
82
|
async function executor(options) {
|
|
53
|
-
const { criteria, entity, eventManager, getFunction, properties, repository } = options;
|
|
83
|
+
const { constructor, criteria, entity, eventManager, getFunction, properties, repository } = options;
|
|
54
84
|
try {
|
|
55
85
|
const existingEntity = await getFunction({ where: criteria }, eventManager);
|
|
56
86
|
const updatedProperties = {};
|
|
@@ -60,21 +90,40 @@ async function executor(options) {
|
|
|
60
90
|
updatedProperties[key] = value;
|
|
61
91
|
}
|
|
62
92
|
}
|
|
63
|
-
const mergedEntity = {
|
|
64
|
-
|
|
65
|
-
...updatedProperties,
|
|
66
|
-
};
|
|
93
|
+
const mergedEntity = { ...existingEntity, ...updatedProperties };
|
|
94
|
+
let result;
|
|
67
95
|
if (eventManager) {
|
|
68
96
|
const eventRepository = eventManager.getRepository(entity);
|
|
69
|
-
|
|
97
|
+
result = await eventRepository.save(mergedEntity);
|
|
70
98
|
}
|
|
71
|
-
|
|
99
|
+
else {
|
|
100
|
+
result = await repository.save(mergedEntity);
|
|
101
|
+
}
|
|
102
|
+
const executionContext = {
|
|
103
|
+
data: { criteria, eventManager, repository },
|
|
104
|
+
entity: result,
|
|
105
|
+
functionType: type_enum.EApiFunctionType.UPDATE,
|
|
106
|
+
result: result,
|
|
107
|
+
};
|
|
108
|
+
const afterResult = await executor_class.ApiSubscriberExecutor.executeFunctionSubscribers(constructor, result, type_enum.EApiFunctionType.UPDATE, onType_enum.EApiSubscriberOnType.AFTER, executionContext);
|
|
109
|
+
if (afterResult) {
|
|
110
|
+
return afterResult;
|
|
111
|
+
}
|
|
112
|
+
return result;
|
|
72
113
|
}
|
|
73
114
|
catch (error) {
|
|
115
|
+
const entityInstance = new entity();
|
|
116
|
+
const executionContext = {
|
|
117
|
+
data: { criteria, eventManager, properties, repository },
|
|
118
|
+
entity: entityInstance,
|
|
119
|
+
functionType: type_enum.EApiFunctionType.UPDATE,
|
|
120
|
+
};
|
|
74
121
|
if (error instanceof common.HttpException) {
|
|
122
|
+
await executor_class.ApiSubscriberExecutor.executeFunctionSubscribers(constructor, entityInstance, type_enum.EApiFunctionType.UPDATE, onType_enum.EApiSubscriberOnType.AFTER_ERROR, executionContext, error);
|
|
75
123
|
throw error;
|
|
76
124
|
}
|
|
77
125
|
logger_utility.LoggerUtility.getLogger("ApiFunctionUpdate").verbose(`Error updating entity ${String(entity.name)}:`, error);
|
|
126
|
+
await executor_class.ApiSubscriberExecutor.executeFunctionSubscribers(constructor, entityInstance, type_enum.EApiFunctionType.UPDATE, onType_enum.EApiSubscriberOnType.AFTER_ERROR, executionContext, error);
|
|
78
127
|
throw new common.InternalServerErrorException(errorString_utility.ErrorString({
|
|
79
128
|
entity: entity,
|
|
80
129
|
type: action_enum.EErrorStringAction.UPDATING_ERROR,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.decorator.js","sources":["../../../../../../src/decorator/api/function/update.decorator.ts"],"sourcesContent":[null],"names":["ApiFunctionGet","ErrorException","HttpException","LoggerUtility","InternalServerErrorException","ErrorString","EErrorStringAction"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update.decorator.js","sources":["../../../../../../src/decorator/api/function/update.decorator.ts"],"sourcesContent":[null],"names":["ApiFunctionGet","EApiFunctionType","ApiSubscriberExecutor","EApiSubscriberOnType","ErrorException","HttpException","LoggerUtility","InternalServerErrorException","ErrorString","EErrorStringAction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAgBA;;;;AAIG;AAEH;;;AAGG;AACG,SAAU,iBAAiB,CAA2B,UAAqC,EAAA;AAChG,IAAA,MAAM,EAAE,MAAM,EAAE,GAA8B,UAAU;IACxD,MAAM,YAAY,GAA6FA,4BAAc,CAAI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CAAoB,CAAC,WAAkB,EAAE,gBAAgB,EAAE,KAAc,CAAC;AAEvL,QAAA,MAAM,IAAII,mCAA4B,CACrCC,+BAAW,CAAC;AACX,YAAA,MAAM,EAAE,MAAM;YACd,IAAI,EAAEC,8BAAkB,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';
|
|
@@ -7,6 +7,7 @@ require('../../enum/decorator/api/controller/load-relations-strategy.enum.js');
|
|
|
7
7
|
require('../../enum/decorator/api/controller/request-transformer-type.enum.js');
|
|
8
8
|
require('../../enum/decorator/api/dto-type.enum.js');
|
|
9
9
|
require('../../enum/decorator/api/function/type.enum.js');
|
|
10
|
+
require('../../enum/decorator/api/on-type.enum.js');
|
|
10
11
|
require('../../enum/decorator/api/property/data-type.enum.js');
|
|
11
12
|
require('../../enum/decorator/api/property/date/identifier.enum.js');
|
|
12
13
|
require('../../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":["EApiAction","pluralizer","ApiOperation","ApiResponse","HttpCode","Throttle","ApiUnauthorizedResponse","DtoGenerateException","HttpStatus","ApiForbiddenResponse","ApiInternalServerErrorResponse","ApiNotFoundResponse","ApiBadRequestResponse","ApiTooManyRequestsResponse","RequestMethod","Delete","Get","Patch","Post","Put","ApiBearerAuth","ApiSecurity","UseGuards","applyDecorators"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAUA;;;;;AAKG;AACH;AACM,SA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IAAI,CAACK,UAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAElC;;QAGD,SAAS;AACR,YAAA,MAAM,IAAI,KAAK,CAAC,CAAA,wBAAA,EAA2B,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAmB,iBAAA,CAAA,CAAC;;;AAIvF,IAAA,IAAI,OAAO,CAAC,cAAc,EAAE;QAC3B,IAAI,OAAO,CAAC,cAAc,EAAE,gBAAgB,EAAE,MAAM,EAAE;YACrD,KAAK,MAAM,QAAQ,IAAI,OAAO,CAAC,cAAc,EAAE,gBAAgB,IAAI,EAAE,EAAE;gBACtE,UAAU,CAAC,IAAI,CAACC,qBAAa,CAAC,QAAQ,CAAC,CAAC;;;QAI1C,IAAI,OAAO,CAAC,cAAc,EAAE,kBAAkB,EAAE,MAAM,EAAE;YACvD,KAAK,MAAM,QAAQ,IAAI,OAAO,CAAC,cAAc,CAAC,kBAAkB,EAAE;gBACjE,UAAU,CAAC,IAAI,CAACC,mBAAW,CAAC,QAAQ,CAAC,CAAC;;;AAIxC,QAAA,UAAU,CAAC,IAAI,CAACC,gBAAS,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;;AAGzD,IAAA,OAAOC,sBAAe,CAAC,GAAG,UAAU,CAAC;AACtC;;;;"}
|
|
1
|
+
{"version":3,"file":"method.decorator.js","sources":["../../../../../src/decorator/api/method.decorator.ts"],"sourcesContent":[null],"names":["EApiAction","pluralizer","ApiOperation","ApiResponse","HttpCode","Throttle","ApiUnauthorizedResponse","DtoGenerateException","HttpStatus","ApiForbiddenResponse","ApiInternalServerErrorResponse","ApiNotFoundResponse","ApiBadRequestResponse","ApiTooManyRequestsResponse","RequestMethod","Delete","Get","Patch","Post","Put","ApiBearerAuth","ApiSecurity","UseGuards","applyDecorators"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAUA;;;;;AAKG;AACH;AACM,SAAU,SAAS,CAA2B,OAAgC,EAAA;IACnF,IAAI,OAAO,GAA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C;YAElC;;QAGD,SAAS;AACR,YAAA,MAAM,IAAI,KAAK,CAAC,CAAA,wBAAA,EAA2B,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAmB,iBAAA,CAAA,CAAC;;;AAIvF,IAAA,IAAI,OAAO,CAAC,cAAc,EAAE;QAC3B,IAAI,OAAO,CAAC,cAAc,EAAE,gBAAgB,EAAE,MAAM,EAAE;YACrD,KAAK,MAAM,QAAQ,IAAI,OAAO,CAAC,cAAc,EAAE,gBAAgB,IAAI,EAAE,EAAE;gBACtE,UAAU,CAAC,IAAI,CAACC,qBAAa,CAAC,QAAQ,CAAC,CAAC;;;QAI1C,IAAI,OAAO,CAAC,cAAc,EAAE,kBAAkB,EAAE,MAAM,EAAE;YACvD,KAAK,MAAM,QAAQ,IAAI,OAAO,CAAC,cAAc,CAAC,kBAAkB,EAAE;gBACjE,UAAU,CAAC,IAAI,CAACC,mBAAW,CAAC,QAAQ,CAAC,CAAC;;;AAIxC,QAAA,UAAU,CAAC,IAAI,CAACC,gBAAS,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;;AAGzD,IAAA,OAAOC,sBAAe,CAAC,GAAG,UAAU,CAAC;AACtC;;;;"}
|
|
@@ -6,6 +6,7 @@ require('../../../enum/decorator/api/controller/load-relations-strategy.enum.js'
|
|
|
6
6
|
require('../../../enum/decorator/api/controller/request-transformer-type.enum.js');
|
|
7
7
|
require('../../../enum/decorator/api/dto-type.enum.js');
|
|
8
8
|
require('../../../enum/decorator/api/function/type.enum.js');
|
|
9
|
+
require('../../../enum/decorator/api/on-type.enum.js');
|
|
9
10
|
var dataType_enum = require('../../../enum/decorator/api/property/data-type.enum.js');
|
|
10
11
|
require('../../../enum/decorator/api/property/date/identifier.enum.js');
|
|
11
12
|
require('../../../enum/decorator/api/property/date/type.enum.js');
|
|
@@ -84,7 +85,6 @@ function ApiPropertyBoolean(properties) {
|
|
|
84
85
|
function buildApiPropertyOptions(properties) {
|
|
85
86
|
const apiPropertyOptions = {
|
|
86
87
|
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
87
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
88
88
|
nullable: !!properties.isNullable,
|
|
89
89
|
type: dataType_enum.EApiPropertyDataType.BOOLEAN,
|
|
90
90
|
};
|
|
@@ -123,7 +123,6 @@ function buildFormatDecorators(properties) {
|
|
|
123
123
|
const decorators = [];
|
|
124
124
|
const isArray = properties.isArray ?? false;
|
|
125
125
|
if (properties.isResponse === undefined || !properties.isResponse) {
|
|
126
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
127
126
|
decorators.push(classValidator.IsBoolean({ each: isArray }));
|
|
128
127
|
}
|
|
129
128
|
return decorators;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean.decorator.js","sources":["../../../../../../src/decorator/api/property/boolean.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","EApiPropertyDataType","ApiProperty","IsBoolean","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Transform"],"mappings":"
|
|
1
|
+
{"version":3,"file":"boolean.decorator.js","sources":["../../../../../../src/decorator/api/property/boolean.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","EApiPropertyDataType","ApiProperty","IsBoolean","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Transform"],"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,OAAOA,sBAA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AAO,IAAI;AAElD,oBAAA,IAAI,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,GAAG;AAAE,wBAAA,OAAO,KAAK;AAEpD,oBAAA,OAAO,OAAO,CAAC,KAAK,CAAC;;AAGtB,gBAAA,OAAO,KAAK;aACZ,EACD,EAAE,WAAW,EAAE,IAAI,EAAE,CACrB,CACD;;;AAIH,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;;;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;;;;"}
|
|
@@ -29,7 +29,7 @@ function ApiPropertyCopy(entity, propertyName, method, dtoType, metadata, curren
|
|
|
29
29
|
if (!column) {
|
|
30
30
|
throw errorException_utility.ErrorException(`Property ${String(propertyName)} not found in entity ${String(entity.name)}`);
|
|
31
31
|
}
|
|
32
|
-
let propertyMetadata = column.metadata?.[propertyDescribe_constant.PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT.
|
|
32
|
+
let propertyMetadata = column.metadata?.[propertyDescribe_constant.PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT.METADATA_KEY];
|
|
33
33
|
if (!propertyMetadata) {
|
|
34
34
|
throw errorException_utility.ErrorException(`Metadata for property ${String(propertyName)} in entity ${String(entity.name)} not found`);
|
|
35
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy.decorator.js","sources":["../../../../../../src/decorator/api/property/copy.decorator.ts"],"sourcesContent":[null],"names":["GenerateEntityInformation","ErrorException","PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT","DtoGenerateDynamic","DtoBuildDecorator","applyDecorators"],"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,GAAkBA,2DAAyB,CAAC,MAAM,CAAC;AAEvE,QAAA,IAAI,CAAC,cAAc,EAAE,OAAO,EAAE;YAC7B,MAAMC,qCAAc,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,MAAM,CAAC,IAAI,IAAI,YAAY,CAAC;QAEzI,IAAI,CAAC,MAAM,EAAE;AACZ,YAAA,MAAMA,qCAAc,CAAC,CAAA,SAAA,EAAY,MAAM,CAAC,YAAY,CAAC,CAAA,qBAAA,EAAwB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA,CAAE,CAAC;;QAGpG,IAAI,gBAAgB,GAAmC,MAAM,CAAC,QAAQ,GAAGC,kEAAwC,CAAC,
|
|
1
|
+
{"version":3,"file":"copy.decorator.js","sources":["../../../../../../src/decorator/api/property/copy.decorator.ts"],"sourcesContent":[null],"names":["GenerateEntityInformation","ErrorException","PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT","DtoGenerateDynamic","DtoBuildDecorator","applyDecorators"],"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,GAAkBA,2DAAyB,CAAC,MAAM,CAAC;AAEvE,QAAA,IAAI,CAAC,cAAc,EAAE,OAAO,EAAE;YAC7B,MAAMC,qCAAc,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,MAAM,CAAC,IAAI,IAAI,YAAY,CAAC;QAEzI,IAAI,CAAC,MAAM,EAAE;AACZ,YAAA,MAAMA,qCAAc,CAAC,CAAA,SAAA,EAAY,MAAM,CAAC,YAAY,CAAC,CAAA,qBAAA,EAAwB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA,CAAE,CAAC;;QAGpG,IAAI,gBAAgB,GAAmC,MAAM,CAAC,QAAQ,GAAGC,kEAAwC,CAAC,YAAY,CAAmC;QAEjK,IAAI,CAAC,gBAAgB,EAAE;AACtB,YAAA,MAAMD,qCAAc,CAAC,CAAA,sBAAA,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,GAA8CE,0CAAkB,CAAC,MAAM,EAAE,gBAAgB,EAAE,cAAc,EAAE,OAAO,EAAE,YAAsB,EAAE,YAAY,CAAC;AAE5K,QAAA,MAAM,UAAU,GAAyCC,wCAAiB,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,MAAMH,qCAAc,CAAC,CAAA,qCAAA,EAAwC,MAAM,CAAC,YAAY,CAAC,CAAA,WAAA,EAAc,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA,CAAE,CAAC;;QAGtHI,sBAAe,CAAC,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC;AAC5C,KAAC;AACF;;;;"}
|
|
@@ -6,6 +6,7 @@ require('../../../enum/decorator/api/controller/load-relations-strategy.enum.js'
|
|
|
6
6
|
require('../../../enum/decorator/api/controller/request-transformer-type.enum.js');
|
|
7
7
|
require('../../../enum/decorator/api/dto-type.enum.js');
|
|
8
8
|
require('../../../enum/decorator/api/function/type.enum.js');
|
|
9
|
+
require('../../../enum/decorator/api/on-type.enum.js');
|
|
9
10
|
var dataType_enum = require('../../../enum/decorator/api/property/data-type.enum.js');
|
|
10
11
|
var identifier_enum = require('../../../enum/decorator/api/property/date/identifier.enum.js');
|
|
11
12
|
var type_enum = require('../../../enum/decorator/api/property/date/type.enum.js');
|
|
@@ -89,7 +90,6 @@ function buildApiPropertyOptions(properties) {
|
|
|
89
90
|
const example = getExample(properties.format);
|
|
90
91
|
const apiPropertyOptions = {
|
|
91
92
|
description: `${String(properties.entity.name)} ${getDescription(properties.identifier)}`,
|
|
92
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
93
93
|
nullable: !!properties.isNullable,
|
|
94
94
|
type: dataType_enum.EApiPropertyDataType.STRING,
|
|
95
95
|
};
|
|
@@ -137,7 +137,6 @@ function buildFormatDecorators(properties) {
|
|
|
137
137
|
const decorators = [];
|
|
138
138
|
const isArray = properties.isArray ?? false;
|
|
139
139
|
if (!properties.isResponse) {
|
|
140
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
141
140
|
decorators.push(classValidator.IsDate({ each: isArray }));
|
|
142
141
|
}
|
|
143
142
|
return decorators;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.decorator.js","sources":["../../../../../../src/decorator/api/property/date.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","EApiPropertyDataType","ApiProperty","IsDate","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Transform","EApiPropertyDateIdentifier","EApiPropertyDateType"],"mappings":"
|
|
1
|
+
{"version":3,"file":"date.decorator.js","sources":["../../../../../../src/decorator/api/property/date.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","EApiPropertyDataType","ApiProperty","IsDate","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Transform","EApiPropertyDateIdentifier","EApiPropertyDateType"],"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,OAAOA,sBAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA;;;;;AAKG;AACH,SAAS,uBAAuB,CAAC,UAA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GzC,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;;;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;;;;"}
|
|
@@ -88,7 +88,7 @@ var propertyDescribe_constant = require('../../../constant/decorator/api/propert
|
|
|
88
88
|
function ApiPropertyDescribe(properties) {
|
|
89
89
|
return (target, propertyKey) => {
|
|
90
90
|
const entityName = target.constructor.name;
|
|
91
|
-
metadataStorage_class.MetadataStorage.getInstance().setMetadata(entityName, propertyKey, propertyDescribe_constant.PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT.
|
|
91
|
+
metadataStorage_class.MetadataStorage.getInstance().setMetadata(entityName, propertyKey, propertyDescribe_constant.PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT.METADATA_KEY, properties);
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"describe.decorator.js","sources":["../../../../../../src/decorator/api/property/describe.decorator.ts"],"sourcesContent":[null],"names":["MetadataStorage","PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT"],"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,QAAAA,qCAAe,CAAC,WAAW,EAAE,CAAC,WAAW,CAAC,UAAU,EAAE,WAAW,EAAEC,kEAAwC,CAAC,
|
|
1
|
+
{"version":3,"file":"describe.decorator.js","sources":["../../../../../../src/decorator/api/property/describe.decorator.ts"],"sourcesContent":[null],"names":["MetadataStorage","PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT"],"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,QAAAA,qCAAe,CAAC,WAAW,EAAE,CAAC,WAAW,CAAC,UAAU,EAAE,WAAW,EAAEC,kEAAwC,CAAC,YAAY,EAAE,UAAU,CAAC;AACtI,KAAC;AACF;;;;"}
|
|
@@ -94,7 +94,6 @@ function ApiPropertyEnum(properties) {
|
|
|
94
94
|
function buildApiPropertyOptions(properties) {
|
|
95
95
|
const apiPropertyOptions = {
|
|
96
96
|
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
97
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
98
97
|
nullable: !!properties.isNullable,
|
|
99
98
|
};
|
|
100
99
|
apiPropertyOptions.required = properties.isRequired;
|
|
@@ -140,7 +139,6 @@ function buildDecorators(properties, apiPropertyOptions) {
|
|
|
140
139
|
function buildFormatDecorators(properties) {
|
|
141
140
|
const decorators = [];
|
|
142
141
|
const isArray = properties.isArray ?? false;
|
|
143
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
144
142
|
decorators.push(classValidator.IsEnum(properties.enum, { each: isArray }));
|
|
145
143
|
return decorators;
|
|
146
144
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enum.decorator.js","sources":["../../../../../../src/decorator/api/property/enum.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","ApiProperty","IsEnum","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude"],"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,OAAOA,sBAAe,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":["applyDecorators","ApiProperty","IsEnum","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude"],"mappings":";;;;;;;AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyEG;AACG,SAAU,eAAe,CAAC,UAAsC,EAAA;IACrE,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU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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;;;;"}
|
|
@@ -7,6 +7,7 @@ require('../../../enum/decorator/api/controller/load-relations-strategy.enum.js'
|
|
|
7
7
|
require('../../../enum/decorator/api/controller/request-transformer-type.enum.js');
|
|
8
8
|
require('../../../enum/decorator/api/dto-type.enum.js');
|
|
9
9
|
require('../../../enum/decorator/api/function/type.enum.js');
|
|
10
|
+
require('../../../enum/decorator/api/on-type.enum.js');
|
|
10
11
|
var dataType_enum = require('../../../enum/decorator/api/property/data-type.enum.js');
|
|
11
12
|
require('../../../enum/decorator/api/property/date/identifier.enum.js');
|
|
12
13
|
require('../../../enum/decorator/api/property/date/type.enum.js');
|
|
@@ -105,7 +106,6 @@ function buildApiPropertyOptions(properties) {
|
|
|
105
106
|
const apiPropertyOptions = {
|
|
106
107
|
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
107
108
|
format: getFormat(properties),
|
|
108
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
109
109
|
nullable: !!properties.isNullable,
|
|
110
110
|
type: getType(properties),
|
|
111
111
|
};
|
|
@@ -154,12 +154,10 @@ function buildFormatDecorators(properties) {
|
|
|
154
154
|
if (properties.isResponse === undefined || !properties.isResponse) {
|
|
155
155
|
switch (properties.format) {
|
|
156
156
|
case numberType_enum.EApiPropertyNumberType.DOUBLE: {
|
|
157
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
158
157
|
decorators.push(classValidator.IsNumber({}, { each: isArray }));
|
|
159
158
|
break;
|
|
160
159
|
}
|
|
161
160
|
case numberType_enum.EApiPropertyNumberType.INTEGER: {
|
|
162
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
163
161
|
decorators.push(classValidator.IsInt({ each: isArray }));
|
|
164
162
|
break;
|
|
165
163
|
}
|
|
@@ -182,7 +180,6 @@ function buildNumberValidationDecorators(properties) {
|
|
|
182
180
|
const decorators = [];
|
|
183
181
|
const isArray = properties.isArray ?? false;
|
|
184
182
|
if ((properties.isResponse === false || properties.isResponse === undefined) && properties.multipleOf != undefined) {
|
|
185
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
186
183
|
decorators.push(classValidator.IsDivisibleBy(properties.multipleOf, { each: isArray }), classValidator.Min(properties.minimum, { each: isArray }), classValidator.Max(properties.maximum, { each: isArray }));
|
|
187
184
|
}
|
|
188
185
|
return decorators;
|