@elsikora/nestjs-crud-automator 1.8.0-dev.2 → 1.9.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +253 -290
- package/dist/cjs/class/api/index.d.ts +1 -1
- package/dist/cjs/class/api/service-base.class.d.ts +2 -3
- package/dist/cjs/class/api/service-base.class.js.map +1 -1
- package/dist/cjs/class/index.d.ts +4 -3
- package/dist/cjs/class/metadata-storage.class.d.ts +2 -2
- package/dist/cjs/class/metadata-storage.class.js +1 -0
- package/dist/cjs/class/metadata-storage.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/property/factory/boolean.class.d.ts +4 -3
- package/dist/cjs/class/utility/dto/property/factory/boolean.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/property/factory/date.class.d.ts +4 -3
- package/dist/cjs/class/utility/dto/property/factory/date.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/property/factory/enum.class.d.ts +4 -3
- package/dist/cjs/class/utility/dto/property/factory/enum.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/property/factory/index.d.ts +8 -6
- package/dist/cjs/class/utility/dto/property/factory/number.class.d.ts +5 -4
- package/dist/cjs/class/utility/dto/property/factory/number.class.js +1 -3
- package/dist/cjs/class/utility/dto/property/factory/number.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/property/factory/object.class.d.ts +6 -4
- package/dist/cjs/class/utility/dto/property/factory/object.class.js +2 -1
- package/dist/cjs/class/utility/dto/property/factory/object.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/property/factory/relation.class.d.ts +5 -4
- package/dist/cjs/class/utility/dto/property/factory/relation.class.js +0 -3
- package/dist/cjs/class/utility/dto/property/factory/relation.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/property/factory/string.class.d.ts +4 -3
- package/dist/cjs/class/utility/dto/property/factory/string.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/property/factory/uuid.class.d.ts +4 -3
- package/dist/cjs/class/utility/dto/property/factory/uuid.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/body.class.d.ts +3 -3
- package/dist/cjs/class/utility/dto/strategy/body.class.js +1 -4
- package/dist/cjs/class/utility/dto/strategy/body.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/index.d.ts +4 -4
- package/dist/cjs/class/utility/dto/strategy/query.class.d.ts +3 -3
- package/dist/cjs/class/utility/dto/strategy/query.class.js +0 -3
- package/dist/cjs/class/utility/dto/strategy/query.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/request.class.d.ts +3 -3
- package/dist/cjs/class/utility/dto/strategy/request.class.js +0 -3
- package/dist/cjs/class/utility/dto/strategy/request.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/response.class.d.ts +3 -3
- package/dist/cjs/class/utility/dto/strategy/response.class.js +0 -3
- package/dist/cjs/class/utility/dto/strategy/response.class.js.map +1 -1
- package/dist/cjs/constant/decorator/api/function.constant.d.ts +1 -1
- package/dist/cjs/constant/decorator/api/function.constant.js +0 -15
- package/dist/cjs/constant/decorator/api/function.constant.js.map +1 -1
- package/dist/cjs/constant/decorator/api/index.d.ts +3 -3
- package/dist/cjs/constant/dto/index.d.ts +3 -3
- package/dist/cjs/constant/dto/list.constant.d.ts +1 -2
- package/dist/cjs/constant/dto/list.constant.js +1 -3
- package/dist/cjs/constant/dto/list.constant.js.map +1 -1
- package/dist/cjs/constant/factory/dto/get-list-query.constant.d.ts +1 -0
- package/dist/cjs/constant/factory/dto/get-list-query.constant.js +2 -0
- package/dist/cjs/constant/factory/dto/get-list-query.constant.js.map +1 -1
- package/dist/cjs/constant/factory/dto/index.d.ts +1 -1
- package/dist/cjs/constant/index.d.ts +8 -6
- package/dist/cjs/constant/interface/api/index.d.ts +2 -2
- package/dist/cjs/constant/interface/api/property/index.d.ts +2 -2
- package/dist/cjs/constant/utility/dto/constant.d.ts +3 -2
- package/dist/cjs/constant/utility/dto/constant.js +6 -10
- package/dist/cjs/constant/utility/dto/constant.js.map +1 -1
- package/dist/cjs/constant/utility/dto/index.d.ts +2 -0
- package/dist/cjs/constant/validator/has-paired-custom-suffixes-fields.constant.d.ts +5 -0
- package/dist/cjs/constant/validator/has-paired-custom-suffixes-fields.constant.js +89 -0
- package/dist/cjs/constant/validator/has-paired-custom-suffixes-fields.constant.js.map +1 -0
- package/dist/cjs/constant/validator/index.d.ts +1 -0
- package/dist/cjs/decorator/api/controller.decorator.d.ts +3 -2
- package/dist/cjs/decorator/api/controller.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/create.decorator.d.ts +7 -1
- package/dist/cjs/decorator/api/function/create.decorator.js +12 -16
- package/dist/cjs/decorator/api/function/create.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/decorator.d.ts +10 -3
- package/dist/cjs/decorator/api/function/decorator.js +7 -3
- package/dist/cjs/decorator/api/function/decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/delete.decorator.d.ts +7 -1
- package/dist/cjs/decorator/api/function/delete.decorator.js +12 -16
- package/dist/cjs/decorator/api/function/delete.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get-list.decorator.d.ts +8 -2
- package/dist/cjs/decorator/api/function/get-list.decorator.js +12 -16
- package/dist/cjs/decorator/api/function/get-list.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get-many.decorator.d.ts +7 -1
- package/dist/cjs/decorator/api/function/get-many.decorator.js +13 -16
- package/dist/cjs/decorator/api/function/get-many.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get.decorator.d.ts +7 -1
- package/dist/cjs/decorator/api/function/get.decorator.js +13 -16
- package/dist/cjs/decorator/api/function/get.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/index.d.ts +7 -7
- package/dist/cjs/decorator/api/function/update.decorator.d.ts +7 -1
- package/dist/cjs/decorator/api/function/update.decorator.js +12 -16
- package/dist/cjs/decorator/api/function/update.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/index.d.ts +5 -5
- package/dist/cjs/decorator/api/method.decorator.d.ts +8 -1
- package/dist/cjs/decorator/api/method.decorator.js +9 -6
- package/dist/cjs/decorator/api/method.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/boolean.decorator.d.ts +52 -1
- package/dist/cjs/decorator/api/property/boolean.decorator.js +99 -7
- package/dist/cjs/decorator/api/property/boolean.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/copy.decorator.d.ts +16 -0
- package/dist/cjs/decorator/api/property/copy.decorator.js +49 -0
- package/dist/cjs/decorator/api/property/copy.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/property/date.decorator.d.ts +56 -1
- package/dist/cjs/decorator/api/property/date.decorator.js +132 -7
- package/dist/cjs/decorator/api/property/date.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/describe.decorator.d.ts +82 -1
- package/dist/cjs/decorator/api/property/describe.decorator.js +81 -16
- package/dist/cjs/decorator/api/property/describe.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/enum.decorator.d.ts +75 -1
- package/dist/cjs/decorator/api/property/enum.decorator.js +112 -0
- package/dist/cjs/decorator/api/property/enum.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/index.d.ts +9 -7
- package/dist/cjs/decorator/api/property/number.decorator.d.ts +67 -1
- package/dist/cjs/decorator/api/property/number.decorator.js +152 -12
- package/dist/cjs/decorator/api/property/number.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/object.decorator.d.ts +27 -1
- package/dist/cjs/decorator/api/property/object.decorator.js +145 -3
- package/dist/cjs/decorator/api/property/object.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/string.decorator.d.ts +68 -1
- package/dist/cjs/decorator/api/property/string.decorator.js +131 -14
- package/dist/cjs/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/uuid.decorator.d.ts +42 -1
- package/dist/cjs/decorator/api/property/uuid.decorator.js +92 -7
- package/dist/cjs/decorator/api/property/uuid.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/service.decorator.d.ts +8 -2
- package/dist/cjs/decorator/api/service.decorator.js +10 -6
- package/dist/cjs/decorator/api/service.decorator.js.map +1 -1
- package/dist/cjs/enum/decorator/api/controller/index.d.ts +2 -2
- package/dist/cjs/enum/decorator/api/function/index.d.ts +1 -1
- package/dist/cjs/enum/decorator/api/index.d.ts +7 -7
- package/dist/cjs/enum/decorator/api/property/date/index.d.ts +2 -2
- package/dist/cjs/enum/decorator/api/property/index.d.ts +5 -5
- package/dist/cjs/enum/index.d.ts +6 -4
- package/dist/cjs/enum/utility/index.d.ts +1 -1
- package/dist/cjs/enum/validator/has-paired-custom-suffixes-fields-argument-type.enum.d.ts +5 -0
- package/dist/cjs/enum/validator/has-paired-custom-suffixes-fields-argument-type.enum.js +9 -0
- package/dist/cjs/enum/validator/has-paired-custom-suffixes-fields-argument-type.enum.js.map +1 -0
- package/dist/cjs/enum/validator/index.d.ts +2 -0
- package/dist/cjs/enum/validator/must-match-one-of-schemas-error-type.enum.d.ts +6 -0
- package/dist/cjs/enum/validator/must-match-one-of-schemas-error-type.enum.js +10 -0
- package/dist/cjs/enum/validator/must-match-one-of-schemas-error-type.enum.js.map +1 -0
- package/dist/cjs/factory/api/controller.factory.d.ts +4 -3
- package/dist/cjs/factory/api/controller.factory.js +11 -15
- package/dist/cjs/factory/api/controller.factory.js.map +1 -1
- package/dist/cjs/factory/api/index.d.ts +1 -1
- package/dist/cjs/index.d.ts +10 -10
- package/dist/cjs/index.js +132 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interceptor/index.d.ts +1 -1
- package/dist/cjs/interface/api-authentication-request.interface.d.ts +1 -1
- package/dist/cjs/interface/api-request-validator.interface.d.ts +3 -2
- package/dist/cjs/interface/class/dto/index.d.ts +1 -1
- package/dist/cjs/interface/class/dto/strategy.interface.d.ts +2 -2
- package/dist/cjs/interface/class/index.d.ts +2 -2
- package/dist/cjs/interface/decorator/api/controller/base.interface.d.ts +1 -1
- package/dist/cjs/interface/decorator/api/controller/index.d.ts +3 -3
- package/dist/cjs/interface/decorator/api/controller/properties/route/authentication.interface.d.ts +1 -1
- package/dist/cjs/interface/decorator/api/controller/properties/route/auto-dto-config.interface.d.ts +1 -1
- package/dist/cjs/interface/decorator/api/controller/properties/route/base-request.interface.d.ts +3 -3
- package/dist/cjs/interface/decorator/api/controller/properties/route/base-response.interface.d.ts +2 -2
- package/dist/cjs/interface/decorator/api/controller/properties/route/base.interface.d.ts +2 -4
- package/dist/cjs/interface/decorator/api/controller/properties/route/index.d.ts +7 -7
- package/dist/cjs/interface/decorator/api/controller/properties/route/with-auto-dto.interface.d.ts +2 -3
- package/dist/cjs/interface/decorator/api/controller/properties/route/with-dto.interface.d.ts +2 -2
- package/dist/cjs/interface/decorator/api/controller/properties.interface.d.ts +3 -3
- package/dist/cjs/interface/decorator/api/function/create-executor-properties.interface.d.ts +2 -2
- package/dist/cjs/interface/decorator/api/function/delete-executor-properties.interface.d.ts +2 -2
- package/dist/cjs/interface/decorator/api/function/get-executor-properties.interface.d.ts +2 -2
- package/dist/cjs/interface/decorator/api/function/get-list-executor-properties.interface.d.ts +2 -2
- package/dist/cjs/interface/decorator/api/function/get-many-executor-properties.interface.d.ts +2 -2
- package/dist/cjs/interface/decorator/api/function/index.d.ts +7 -7
- package/dist/cjs/interface/decorator/api/function/properties.interface.d.ts +1 -1
- package/dist/cjs/interface/decorator/api/function/update-executor-properties.interface.d.ts +2 -2
- package/dist/cjs/interface/decorator/api/index.d.ts +5 -5
- package/dist/cjs/interface/decorator/api/method/index.d.ts +2 -2
- package/dist/cjs/interface/decorator/api/method/properties.interface.d.ts +2 -4
- package/dist/cjs/interface/dto-generate-factory.interface.d.ts +5 -4
- package/dist/cjs/interface/entity/index.d.ts +2 -2
- package/dist/cjs/interface/entity/interface.d.ts +2 -2
- package/dist/cjs/interface/index.d.ts +10 -8
- package/dist/cjs/interface/utility/api/controller/index.d.ts +1 -1
- package/dist/cjs/interface/utility/error-string-properties.interface.d.ts +1 -1
- package/dist/cjs/interface/utility/get-entity-columns-properties.interface.d.ts +1 -1
- package/dist/cjs/interface/utility/index.d.ts +3 -2
- package/dist/cjs/interface/validator/index.d.ts +1 -0
- package/dist/cjs/interface/validator/must-match-one-of-schemas-discriminator-config.interface.d.ts +6 -0
- package/dist/cjs/type/api-request-transformer.type.d.ts +3 -3
- package/dist/cjs/type/class/controller/index.d.ts +1 -1
- package/dist/cjs/type/class/controller/method.type.d.ts +2 -2
- package/dist/cjs/type/class/index.d.ts +3 -3
- package/dist/cjs/type/class/metadata.type.d.ts +1 -1
- package/dist/cjs/type/decorator/api/controller/constructor.type.d.ts +1 -1
- package/dist/cjs/type/decorator/api/controller/get-list-query.type.d.ts +2 -2
- package/dist/cjs/type/decorator/api/controller/index.d.ts +5 -5
- package/dist/cjs/type/decorator/api/controller/properties/route/base-request-relations.type.d.ts +1 -1
- package/dist/cjs/type/decorator/api/controller/properties/route/base-request-transformers.type.d.ts +2 -2
- package/dist/cjs/type/decorator/api/controller/properties/route/base-response-transformers.type.d.ts +2 -2
- package/dist/cjs/type/decorator/api/controller/properties/route/index.d.ts +3 -3
- package/dist/cjs/type/decorator/api/controller/properties-route.type.d.ts +2 -2
- package/dist/cjs/type/decorator/api/controller/transformer-config.type.d.ts +2 -2
- package/dist/cjs/type/decorator/api/filter/extracted-allowed-types.type.d.ts +1 -1
- package/dist/cjs/type/decorator/api/filter/index.d.ts +4 -4
- package/dist/cjs/type/decorator/api/filter/order-by.type.d.ts +1 -1
- package/dist/cjs/type/decorator/api/function/index.d.ts +9 -9
- package/dist/cjs/type/decorator/api/function/properties.type.d.ts +1 -1
- package/dist/cjs/type/decorator/api/property/base/array/index.d.ts +2 -2
- package/dist/cjs/type/decorator/api/property/base/index.d.ts +4 -4
- package/dist/cjs/type/decorator/api/property/base/properties.type.d.ts +2 -4
- package/dist/cjs/type/decorator/api/property/date-properties.type.d.ts +2 -2
- package/dist/cjs/type/decorator/api/property/describe/array/index.d.ts +2 -2
- package/dist/cjs/type/decorator/api/property/describe/base-properties.type.d.ts +1 -1
- package/dist/cjs/type/decorator/api/property/describe/boolean-properties.type.d.ts +3 -3
- package/dist/cjs/type/decorator/api/property/describe/date-properties.type.d.ts +3 -3
- package/dist/cjs/type/decorator/api/property/describe/dto/body-properties.type.d.ts +2 -2
- package/dist/cjs/type/decorator/api/property/describe/dto/index.d.ts +6 -5
- package/dist/cjs/type/decorator/api/property/describe/dto/properties.type.d.ts +1 -1
- package/dist/cjs/type/decorator/api/property/describe/dto/query/index.d.ts +2 -2
- package/dist/cjs/type/decorator/api/property/describe/dto/query/properties.type.d.ts +2 -3
- package/dist/cjs/type/decorator/api/property/describe/dto/request-properties.type.d.ts +2 -2
- package/dist/cjs/type/decorator/api/property/describe/dto/response-properties.type.d.ts +2 -2
- package/dist/cjs/type/decorator/api/property/describe/enum-properties.type.d.ts +3 -3
- package/dist/cjs/type/decorator/api/property/describe/index.d.ts +14 -13
- package/dist/cjs/type/decorator/api/property/describe/number-properties.type.d.ts +4 -4
- package/dist/cjs/type/decorator/api/property/describe/object/dynamic-with-discriminator-properties.type.d.ts +15 -0
- package/dist/cjs/type/decorator/api/property/describe/object/index.d.ts +4 -0
- package/dist/cjs/type/decorator/api/property/describe/object/properties.type.d.ts +4 -0
- package/dist/cjs/type/decorator/api/property/describe/object/with-discriminator-properties.type.d.ts +14 -0
- package/dist/cjs/type/decorator/api/property/describe/{object-properties.type.d.ts → object/without-discriminator-properties.type.d.ts} +4 -4
- package/dist/cjs/type/decorator/api/property/describe/properties/base-dto-properties.type.d.ts +1 -1
- package/dist/cjs/type/decorator/api/property/describe/properties/base-properties.type.d.ts +2 -2
- package/dist/cjs/type/decorator/api/property/describe/properties/index.d.ts +2 -2
- package/dist/cjs/type/decorator/api/property/describe/properties.type.d.ts +8 -8
- package/dist/cjs/type/decorator/api/property/describe/relation-properties.type.d.ts +2 -2
- package/dist/cjs/type/decorator/api/property/describe/string-properties.type.d.ts +4 -4
- package/dist/cjs/type/decorator/api/property/describe/uuid-properties.type.d.ts +3 -3
- package/dist/cjs/type/decorator/api/property/enum-properties.type.d.ts +1 -1
- package/dist/cjs/type/decorator/api/property/index.d.ts +8 -6
- package/dist/cjs/type/decorator/api/property/number-properties.type.d.ts +3 -3
- package/dist/cjs/type/decorator/api/property/object/dynamic-with-discriminator-properties.type.d.ts +16 -0
- package/dist/cjs/type/decorator/api/property/object/index.d.ts +4 -0
- package/dist/cjs/type/decorator/api/property/object/properties.type.d.ts +4 -0
- package/dist/cjs/type/decorator/api/property/object/with-discriminator-properties.type.d.ts +15 -0
- package/dist/cjs/type/decorator/api/property/{object-properties.type.d.ts → object/without-discriminator-properties.type.d.ts} +4 -2
- package/dist/cjs/type/decorator/api/property/string-properties.type.d.ts +2 -2
- package/dist/cjs/type/decorator/api/property/uuid-properties.type.d.ts +1 -1
- package/dist/cjs/type/decorator/api/service/index.d.ts +2 -2
- package/dist/cjs/type/decorator/api/service/keys.type.d.ts +1 -1
- package/dist/cjs/type/factory/api/controller/index.d.ts +4 -4
- package/dist/cjs/type/factory/api/controller/method-map.type.d.ts +4 -3
- package/dist/cjs/type/factory/api/controller/method-name-map.type.d.ts +2 -2
- package/dist/cjs/type/factory/api/controller/method-name.type.d.ts +3 -3
- package/dist/cjs/type/factory/api/controller/target-methods.type.d.ts +4 -4
- package/dist/cjs/type/index.d.ts +10 -5
- package/dist/cjs/type/utility/api/controller/transform-data/data.type.d.ts +1 -1
- package/dist/cjs/type/utility/api/controller/transform-data/index.d.ts +3 -3
- package/dist/cjs/type/utility/api/controller/transform-data/is-validation-properties.type.d.ts +2 -2
- package/dist/cjs/type/utility/api/controller/transform-data/object-to-transform.type.d.ts +2 -2
- package/dist/cjs/type/utility/date-range-keys.type.d.ts +1 -1
- package/dist/cjs/type/utility/dto/generate-allowed-combination.type.d.ts +1 -1
- package/dist/cjs/type/utility/dto/generate-is-allowed-combination.type.d.ts +2 -2
- package/dist/cjs/type/utility/dto/index.d.ts +2 -2
- package/dist/cjs/type/utility/filter-keys.type.d.ts +1 -1
- package/dist/cjs/type/utility/index.d.ts +7 -7
- package/dist/cjs/type/validator/has-paired-custom-suffixes-fields/index.d.ts +2 -0
- package/dist/cjs/type/validator/has-paired-custom-suffixes-fields/operation-config.type.d.ts +7 -0
- package/dist/cjs/type/validator/has-paired-custom-suffixes-fields/validation-context.type.d.ts +5 -0
- package/dist/cjs/utility/api/controller/apply-decorators.utility.d.ts +18 -3
- package/dist/cjs/utility/api/controller/apply-decorators.utility.js +15 -4
- package/dist/cjs/utility/api/controller/apply-decorators.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/apply-metadata.utility.d.ts +17 -3
- package/dist/cjs/utility/api/controller/apply-metadata.utility.js +21 -12
- package/dist/cjs/utility/api/controller/apply-metadata.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/get-list/index.d.ts +2 -2
- package/dist/cjs/utility/api/controller/get-list/transform-filter.utility.d.ts +10 -1
- package/dist/cjs/utility/api/controller/get-list/transform-filter.utility.js +9 -3
- 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 +8 -1
- package/dist/cjs/utility/api/controller/get-list/transform-operation.utility.js +8 -1
- package/dist/cjs/utility/api/controller/get-list/transform-operation.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/get-method-name.utility.d.ts +7 -1
- package/dist/cjs/utility/api/controller/get-method-name.utility.js +6 -0
- package/dist/cjs/utility/api/controller/get-method-name.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/get-primary-column.utility.d.ts +10 -1
- package/dist/cjs/utility/api/controller/get-primary-column.utility.js +8 -0
- package/dist/cjs/utility/api/controller/get-primary-column.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/handle-request-relations.utility.d.ts +17 -2
- package/dist/cjs/utility/api/controller/handle-request-relations.utility.js +15 -5
- package/dist/cjs/utility/api/controller/handle-request-relations.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/index.d.ts +10 -9
- package/dist/cjs/utility/api/controller/transform-data.utility.d.ts +15 -3
- package/dist/cjs/utility/api/controller/transform-data.utility.js +52 -3
- package/dist/cjs/utility/api/controller/transform-data.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/validate-request.utility.d.ts +12 -2
- package/dist/cjs/utility/api/controller/validate-request.utility.js +9 -0
- package/dist/cjs/utility/api/controller/validate-request.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/write-dto-swagger.utility.d.ts +17 -3
- package/dist/cjs/utility/api/controller/write-dto-swagger.utility.js +20 -11
- package/dist/cjs/utility/api/controller/write-dto-swagger.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/write-method.utility.d.ts +16 -2
- package/dist/cjs/utility/api/controller/write-method.utility.js +14 -1
- package/dist/cjs/utility/api/controller/write-method.utility.js.map +1 -1
- package/dist/cjs/utility/api/filter-order-by-from-entity.utility.d.ts +16 -3
- package/dist/cjs/utility/api/filter-order-by-from-entity.utility.js +14 -1
- package/dist/cjs/utility/api/filter-order-by-from-entity.utility.js.map +1 -1
- package/dist/cjs/utility/api/index.d.ts +2 -2
- package/dist/cjs/utility/camel-case-string.utility.d.ts +5 -0
- package/dist/cjs/utility/camel-case-string.utility.js +5 -0
- package/dist/cjs/utility/camel-case-string.utility.js.map +1 -1
- package/dist/cjs/utility/capitalize-string.utility.d.ts +5 -0
- package/dist/cjs/utility/capitalize-string.utility.js +5 -0
- package/dist/cjs/utility/capitalize-string.utility.js.map +1 -1
- package/dist/cjs/utility/dto/analize.utility.d.ts +7 -1
- package/dist/cjs/utility/dto/analize.utility.js +6 -16
- package/dist/cjs/utility/dto/analize.utility.js.map +1 -1
- package/dist/cjs/utility/dto/build-decorator.utility.d.ts +19 -4
- package/dist/cjs/utility/dto/build-decorator.utility.js +17 -5
- package/dist/cjs/utility/dto/build-decorator.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate-decorator.utility.d.ts +19 -4
- package/dist/cjs/utility/dto/generate-decorator.utility.js +16 -2
- package/dist/cjs/utility/dto/generate-decorator.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate-dynamic.utility.d.ts +21 -0
- package/dist/cjs/utility/dto/generate-dynamic.utility.js +94 -0
- package/dist/cjs/utility/dto/generate-dynamic.utility.js.map +1 -0
- package/dist/cjs/utility/dto/generate-exception.utility.d.ts +7 -0
- package/dist/cjs/utility/dto/generate-exception.utility.js +8 -5
- package/dist/cjs/utility/dto/generate-exception.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate-filter-decorator.utility.d.ts +11 -2
- package/dist/cjs/utility/dto/generate-filter-decorator.utility.js +9 -3
- package/dist/cjs/utility/dto/generate-filter-decorator.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate-get-list-response.utility.d.ts +9 -0
- package/dist/cjs/utility/dto/generate-get-list-response.utility.js +25 -19
- package/dist/cjs/utility/dto/generate-get-list-response.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate-relation-response.utility.d.ts +12 -2
- package/dist/cjs/utility/dto/generate-relation-response.utility.js +10 -0
- package/dist/cjs/utility/dto/generate-relation-response.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate.utility.d.ts +17 -2
- package/dist/cjs/utility/dto/generate.utility.js +39 -11
- package/dist/cjs/utility/dto/generate.utility.js.map +1 -1
- package/dist/cjs/utility/dto/get-decorator-config.utility.d.ts +15 -2
- package/dist/cjs/utility/dto/get-decorator-config.utility.js +13 -0
- package/dist/cjs/utility/dto/get-decorator-config.utility.js.map +1 -1
- package/dist/cjs/utility/dto/get-get-list-query-base-class.utility.d.ts +13 -2
- package/dist/cjs/utility/dto/get-get-list-query-base-class.utility.js +16 -11
- 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.d.ts +9 -1
- package/dist/cjs/utility/dto/handle-date-property.utility.js +8 -3
- package/dist/cjs/utility/dto/handle-date-property.utility.js.map +1 -1
- package/dist/cjs/utility/dto/index.d.ts +16 -12
- package/dist/cjs/utility/dto/is-property-exposed-for-guard.utility.d.ts +10 -2
- package/dist/cjs/utility/dto/is-property-exposed-for-guard.utility.js +8 -0
- package/dist/cjs/utility/dto/is-property-exposed-for-guard.utility.js.map +1 -1
- package/dist/cjs/utility/dto/is-property-should-be-marked.utility.d.ts +12 -2
- package/dist/cjs/utility/dto/is-property-should-be-marked.utility.js +10 -3
- 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.d.ts +11 -1
- package/dist/cjs/utility/dto/is-should-be-generated.utility.js +10 -3
- package/dist/cjs/utility/dto/is-should-be-generated.utility.js.map +1 -1
- package/dist/cjs/utility/dto/validate-property-config.utility.d.ts +1 -1
- package/dist/cjs/utility/error-exception.utility.d.ts +5 -0
- package/dist/cjs/utility/error-exception.utility.js +5 -0
- package/dist/cjs/utility/error-exception.utility.js.map +1 -1
- package/dist/cjs/utility/error-string.utility.d.ts +8 -1
- package/dist/cjs/utility/error-string.utility.js +6 -0
- package/dist/cjs/utility/error-string.utility.js.map +1 -1
- package/dist/cjs/utility/generate-entity-information.utility.d.ts +8 -1
- package/dist/cjs/utility/generate-entity-information.utility.js +7 -17
- package/dist/cjs/utility/generate-entity-information.utility.js.map +1 -1
- package/dist/cjs/utility/get-entity-columns.utility.d.ts +7 -1
- package/dist/cjs/utility/get-entity-columns.utility.js +6 -0
- package/dist/cjs/utility/get-entity-columns.utility.js.map +1 -1
- package/dist/cjs/utility/index.d.ts +10 -10
- package/dist/cjs/utility/is-error-of-type.utility.d.ts +7 -1
- package/dist/cjs/utility/is-error-of-type.utility.js +7 -16
- package/dist/cjs/utility/is-error-of-type.utility.js.map +1 -1
- package/dist/cjs/utility/logger.utility.d.ts +4 -0
- package/dist/cjs/utility/logger.utility.js +4 -0
- package/dist/cjs/utility/logger.utility.js.map +1 -1
- package/dist/cjs/validator/all-or-none-of-listed-properties.validator.d.ts +1 -1
- package/dist/cjs/validator/all-or-none-of-listed-properties.validator.js +3 -3
- 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.d.ts +1 -1
- package/dist/cjs/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js +3 -3
- 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.d.ts +1 -1
- package/dist/cjs/validator/has-at-least-one-of-listed-properties.validator.js +3 -3
- 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.d.ts +1 -1
- package/dist/cjs/validator/has-at-least-one-property.validator.js +3 -3
- package/dist/cjs/validator/has-at-least-one-property.validator.js.map +1 -1
- package/dist/cjs/validator/has-paired-custom-suffixes-fields.validator.d.ts +12 -1
- package/dist/cjs/validator/has-paired-custom-suffixes-fields.validator.js +25 -95
- package/dist/cjs/validator/has-paired-custom-suffixes-fields.validator.js.map +1 -1
- package/dist/cjs/validator/index.d.ts +8 -6
- package/dist/cjs/validator/is-regular-expression.validator.d.ts +6 -1
- package/dist/cjs/validator/is-regular-expression.validator.js +8 -3
- package/dist/cjs/validator/is-regular-expression.validator.js.map +1 -1
- package/dist/cjs/validator/must-match-one-of-schemas.validator.d.ts +36 -0
- package/dist/cjs/validator/must-match-one-of-schemas.validator.js +190 -0
- package/dist/cjs/validator/must-match-one-of-schemas.validator.js.map +1 -0
- package/dist/cjs/validator/only-one-of-listed-properties.validator.d.ts +1 -1
- package/dist/cjs/validator/only-one-of-listed-properties.validator.js +3 -3
- package/dist/cjs/validator/only-one-of-listed-properties.validator.js.map +1 -1
- package/dist/esm/class/api/index.d.ts +1 -1
- package/dist/esm/class/api/service-base.class.d.ts +2 -3
- package/dist/esm/class/api/service-base.class.js.map +1 -0
- package/dist/esm/class/index.d.ts +4 -3
- package/dist/esm/class/metadata-storage.class.d.ts +2 -2
- package/dist/esm/{src/class → class}/metadata-storage.class.js +1 -0
- package/dist/esm/class/metadata-storage.class.js.map +1 -0
- package/dist/esm/class/utility/dto/property/factory/boolean.class.d.ts +4 -3
- package/dist/esm/class/utility/dto/property/factory/boolean.class.js.map +1 -0
- package/dist/esm/class/utility/dto/property/factory/date.class.d.ts +4 -3
- package/dist/esm/class/utility/dto/property/factory/date.class.js.map +1 -0
- package/dist/esm/class/utility/dto/property/factory/enum.class.d.ts +4 -3
- package/dist/esm/class/utility/dto/property/factory/enum.class.js.map +1 -0
- package/dist/esm/class/utility/dto/property/factory/index.d.ts +8 -6
- package/dist/esm/class/utility/dto/property/factory/number.class.d.ts +5 -4
- package/dist/esm/{src/class → class}/utility/dto/property/factory/number.class.js +1 -3
- package/dist/esm/class/utility/dto/property/factory/number.class.js.map +1 -0
- package/dist/esm/class/utility/dto/property/factory/object.class.d.ts +6 -4
- package/dist/esm/{src/class → class}/utility/dto/property/factory/object.class.js +2 -1
- package/dist/esm/class/utility/dto/property/factory/object.class.js.map +1 -0
- package/dist/esm/class/utility/dto/property/factory/relation.class.d.ts +5 -4
- package/dist/esm/{src/class → class}/utility/dto/property/factory/relation.class.js +0 -3
- package/dist/esm/class/utility/dto/property/factory/relation.class.js.map +1 -0
- package/dist/esm/class/utility/dto/property/factory/string.class.d.ts +4 -3
- package/dist/esm/class/utility/dto/property/factory/string.class.js.map +1 -0
- package/dist/esm/class/utility/dto/property/factory/uuid.class.d.ts +4 -3
- package/dist/esm/class/utility/dto/property/factory/uuid.class.js.map +1 -0
- package/dist/esm/class/utility/dto/strategy/body.class.d.ts +3 -3
- package/dist/esm/{src/class → class}/utility/dto/strategy/body.class.js +1 -4
- package/dist/esm/class/utility/dto/strategy/body.class.js.map +1 -0
- package/dist/esm/class/utility/dto/strategy/index.d.ts +4 -4
- package/dist/esm/class/utility/dto/strategy/query.class.d.ts +3 -3
- package/dist/esm/{src/class → class}/utility/dto/strategy/query.class.js +0 -3
- package/dist/esm/class/utility/dto/strategy/query.class.js.map +1 -0
- package/dist/esm/class/utility/dto/strategy/request.class.d.ts +3 -3
- package/dist/esm/{src/class → class}/utility/dto/strategy/request.class.js +0 -3
- package/dist/esm/class/utility/dto/strategy/request.class.js.map +1 -0
- package/dist/esm/class/utility/dto/strategy/response.class.d.ts +3 -3
- package/dist/esm/{src/class → class}/utility/dto/strategy/response.class.js +0 -3
- package/dist/esm/class/utility/dto/strategy/response.class.js.map +1 -0
- package/dist/esm/constant/date.constant.js.map +1 -0
- package/dist/esm/constant/decorator/api/controller.constant.js.map +1 -0
- package/dist/esm/constant/decorator/api/function.constant.d.ts +1 -1
- package/dist/esm/constant/decorator/api/function.constant.js +9 -0
- package/dist/esm/constant/decorator/api/function.constant.js.map +1 -0
- package/dist/esm/constant/decorator/api/index.d.ts +3 -3
- package/dist/esm/constant/decorator/api/property-describe.constant.js.map +1 -0
- package/dist/esm/constant/dto/exception.constant.js.map +1 -0
- package/dist/esm/constant/dto/index.d.ts +3 -3
- package/dist/esm/constant/dto/list.constant.d.ts +1 -2
- package/dist/esm/{src/constant → constant}/dto/list.constant.js +1 -1
- package/dist/esm/constant/dto/list.constant.js.map +1 -0
- package/dist/esm/constant/dto/transformer-value.constant.js.map +1 -0
- package/dist/esm/constant/factory/dto/get-list-query.constant.d.ts +1 -0
- package/dist/esm/{src/constant → constant}/factory/dto/get-list-query.constant.js +2 -0
- package/dist/esm/constant/factory/dto/get-list-query.constant.js.map +1 -0
- package/dist/esm/constant/factory/dto/index.d.ts +1 -1
- package/dist/esm/constant/index.d.ts +8 -6
- package/dist/esm/constant/interface/api/filter.constant.js.map +1 -0
- package/dist/esm/constant/interface/api/index.d.ts +2 -2
- package/dist/esm/constant/interface/api/property/index.d.ts +2 -2
- package/dist/esm/constant/interface/api/property/string.constant.js.map +1 -0
- package/dist/esm/constant/interface/api/property/wallet.constant.js.map +1 -0
- package/dist/esm/constant/number.constant.js.map +1 -0
- package/dist/esm/constant/utility/dto/constant.d.ts +3 -2
- package/dist/esm/{src/constant → constant}/utility/dto/constant.js +6 -10
- package/dist/esm/constant/utility/dto/constant.js.map +1 -0
- package/dist/esm/constant/utility/dto/generate.constant.js.map +1 -0
- package/dist/esm/constant/utility/dto/index.d.ts +2 -0
- package/dist/esm/constant/validator/has-paired-custom-suffixes-fields.constant.d.ts +5 -0
- package/dist/esm/constant/validator/has-paired-custom-suffixes-fields.constant.js +87 -0
- package/dist/esm/constant/validator/has-paired-custom-suffixes-fields.constant.js.map +1 -0
- package/dist/esm/constant/validator/index.d.ts +1 -0
- package/dist/esm/decorator/api/controller.decorator.d.ts +3 -2
- package/dist/esm/decorator/api/controller.decorator.js.map +1 -0
- package/dist/esm/decorator/api/function/create.decorator.d.ts +7 -1
- package/dist/esm/{src/decorator → decorator}/api/function/create.decorator.js +12 -16
- package/dist/esm/decorator/api/function/create.decorator.js.map +1 -0
- package/dist/esm/decorator/api/function/decorator.d.ts +10 -3
- package/dist/esm/{src/decorator → decorator}/api/function/decorator.js +7 -3
- package/dist/esm/decorator/api/function/decorator.js.map +1 -0
- package/dist/esm/decorator/api/function/delete.decorator.d.ts +7 -1
- package/dist/esm/{src/decorator → decorator}/api/function/delete.decorator.js +12 -16
- package/dist/esm/decorator/api/function/delete.decorator.js.map +1 -0
- package/dist/esm/decorator/api/function/get-list.decorator.d.ts +8 -2
- package/dist/esm/{src/decorator → decorator}/api/function/get-list.decorator.js +12 -16
- package/dist/esm/decorator/api/function/get-list.decorator.js.map +1 -0
- package/dist/esm/decorator/api/function/get-many.decorator.d.ts +7 -1
- package/dist/esm/{src/decorator → decorator}/api/function/get-many.decorator.js +13 -16
- package/dist/esm/decorator/api/function/get-many.decorator.js.map +1 -0
- package/dist/esm/decorator/api/function/get.decorator.d.ts +7 -1
- package/dist/esm/{src/decorator → decorator}/api/function/get.decorator.js +13 -16
- package/dist/esm/decorator/api/function/get.decorator.js.map +1 -0
- package/dist/esm/decorator/api/function/index.d.ts +7 -7
- package/dist/esm/decorator/api/function/update.decorator.d.ts +7 -1
- package/dist/esm/{src/decorator → decorator}/api/function/update.decorator.js +12 -16
- package/dist/esm/decorator/api/function/update.decorator.js.map +1 -0
- package/dist/esm/decorator/api/index.d.ts +5 -5
- package/dist/esm/decorator/api/method.decorator.d.ts +8 -1
- package/dist/esm/{src/decorator → decorator}/api/method.decorator.js +9 -6
- package/dist/esm/decorator/api/method.decorator.js.map +1 -0
- package/dist/esm/decorator/api/property/boolean.decorator.d.ts +52 -1
- package/dist/esm/{src/decorator → decorator}/api/property/boolean.decorator.js +99 -7
- package/dist/esm/decorator/api/property/boolean.decorator.js.map +1 -0
- package/dist/esm/decorator/api/property/copy.decorator.d.ts +16 -0
- package/dist/esm/decorator/api/property/copy.decorator.js +47 -0
- package/dist/esm/decorator/api/property/copy.decorator.js.map +1 -0
- package/dist/esm/decorator/api/property/date.decorator.d.ts +56 -1
- package/dist/esm/{src/decorator → decorator}/api/property/date.decorator.js +132 -7
- package/dist/esm/decorator/api/property/date.decorator.js.map +1 -0
- package/dist/esm/decorator/api/property/describe.decorator.d.ts +82 -1
- package/dist/esm/decorator/api/property/describe.decorator.js +94 -0
- package/dist/esm/decorator/api/property/describe.decorator.js.map +1 -0
- package/dist/esm/decorator/api/property/enum.decorator.d.ts +75 -1
- package/dist/esm/{src/decorator → decorator}/api/property/enum.decorator.js +112 -0
- package/dist/esm/decorator/api/property/enum.decorator.js.map +1 -0
- package/dist/esm/decorator/api/property/index.d.ts +9 -7
- package/dist/esm/decorator/api/property/number.decorator.d.ts +67 -1
- package/dist/esm/{src/decorator → decorator}/api/property/number.decorator.js +152 -12
- package/dist/esm/decorator/api/property/number.decorator.js.map +1 -0
- package/dist/esm/decorator/api/property/object.decorator.d.ts +27 -1
- package/dist/esm/decorator/api/property/object.decorator.js +246 -0
- package/dist/esm/decorator/api/property/object.decorator.js.map +1 -0
- package/dist/esm/decorator/api/property/string.decorator.d.ts +68 -1
- package/dist/esm/{src/decorator → decorator}/api/property/string.decorator.js +132 -15
- package/dist/esm/decorator/api/property/string.decorator.js.map +1 -0
- package/dist/esm/decorator/api/property/uuid.decorator.d.ts +42 -1
- package/dist/esm/{src/decorator → decorator}/api/property/uuid.decorator.js +92 -7
- package/dist/esm/decorator/api/property/uuid.decorator.js.map +1 -0
- package/dist/esm/decorator/api/service.decorator.d.ts +8 -2
- package/dist/esm/{src/decorator → decorator}/api/service.decorator.js +10 -6
- package/dist/esm/decorator/api/service.decorator.js.map +1 -0
- package/dist/esm/enum/decorator/api/action.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/authentication-type.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/controller/index.d.ts +2 -2
- package/dist/esm/enum/decorator/api/controller/load-relations-strategy.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/controller/request-transformer-type.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/dto-type.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/function/index.d.ts +1 -1
- package/dist/esm/enum/decorator/api/function/type.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/index.d.ts +7 -7
- package/dist/esm/enum/decorator/api/property/data-type.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/property/date/identifier.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/property/date/index.d.ts +2 -2
- package/dist/esm/enum/decorator/api/property/date/type.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/property/desribe-type.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/property/index.d.ts +5 -5
- package/dist/esm/enum/decorator/api/property/number-type.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/property/string-type.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/route-type.enum.js.map +1 -0
- package/dist/esm/enum/exception.enum.js.map +1 -0
- package/dist/esm/enum/filter-operation.enum.js.map +1 -0
- package/dist/esm/enum/filter-order-direction.enum.js.map +1 -0
- package/dist/esm/enum/index.d.ts +6 -4
- package/dist/esm/enum/utility/error-string-action.enum.js.map +1 -0
- package/dist/esm/enum/utility/index.d.ts +1 -1
- package/dist/esm/enum/validator/has-paired-custom-suffixes-fields-argument-type.enum.d.ts +5 -0
- package/dist/esm/enum/validator/has-paired-custom-suffixes-fields-argument-type.enum.js +9 -0
- package/dist/esm/enum/validator/has-paired-custom-suffixes-fields-argument-type.enum.js.map +1 -0
- package/dist/esm/enum/validator/index.d.ts +2 -0
- package/dist/esm/enum/validator/must-match-one-of-schemas-error-type.enum.d.ts +6 -0
- package/dist/esm/enum/validator/must-match-one-of-schemas-error-type.enum.js +10 -0
- package/dist/esm/enum/validator/must-match-one-of-schemas-error-type.enum.js.map +1 -0
- package/dist/esm/factory/api/controller.factory.d.ts +4 -3
- package/dist/esm/{src/factory → factory}/api/controller.factory.js +12 -16
- package/dist/esm/factory/api/controller.factory.js.map +1 -0
- package/dist/esm/factory/api/index.d.ts +1 -1
- package/dist/esm/index.d.ts +10 -10
- package/dist/esm/{src/index.js → index.js} +31 -0
- package/dist/esm/{src/index.js.map → index.js.map} +1 -1
- package/dist/esm/{src/interceptor → interceptor}/correlation-id-response-body.interceptor.js +1 -1
- package/dist/esm/interceptor/correlation-id-response-body.interceptor.js.map +1 -0
- package/dist/esm/interceptor/index.d.ts +1 -1
- package/dist/esm/interface/api-authentication-request.interface.d.ts +1 -1
- package/dist/esm/interface/api-request-validator.interface.d.ts +3 -2
- package/dist/esm/interface/class/dto/index.d.ts +1 -1
- package/dist/esm/interface/class/dto/strategy.interface.d.ts +2 -2
- package/dist/esm/interface/class/index.d.ts +2 -2
- package/dist/esm/interface/decorator/api/controller/base.interface.d.ts +1 -1
- package/dist/esm/interface/decorator/api/controller/index.d.ts +3 -3
- package/dist/esm/interface/decorator/api/controller/properties/route/authentication.interface.d.ts +1 -1
- package/dist/esm/interface/decorator/api/controller/properties/route/auto-dto-config.interface.d.ts +1 -1
- package/dist/esm/interface/decorator/api/controller/properties/route/base-request.interface.d.ts +3 -3
- package/dist/esm/interface/decorator/api/controller/properties/route/base-response.interface.d.ts +2 -2
- package/dist/esm/interface/decorator/api/controller/properties/route/base.interface.d.ts +2 -4
- package/dist/esm/interface/decorator/api/controller/properties/route/index.d.ts +7 -7
- package/dist/esm/interface/decorator/api/controller/properties/route/with-auto-dto.interface.d.ts +2 -3
- package/dist/esm/interface/decorator/api/controller/properties/route/with-dto.interface.d.ts +2 -2
- package/dist/esm/interface/decorator/api/controller/properties.interface.d.ts +3 -3
- package/dist/esm/interface/decorator/api/function/create-executor-properties.interface.d.ts +2 -2
- package/dist/esm/interface/decorator/api/function/delete-executor-properties.interface.d.ts +2 -2
- package/dist/esm/interface/decorator/api/function/get-executor-properties.interface.d.ts +2 -2
- package/dist/esm/interface/decorator/api/function/get-list-executor-properties.interface.d.ts +2 -2
- package/dist/esm/interface/decorator/api/function/get-many-executor-properties.interface.d.ts +2 -2
- package/dist/esm/interface/decorator/api/function/index.d.ts +7 -7
- package/dist/esm/interface/decorator/api/function/properties.interface.d.ts +1 -1
- package/dist/esm/interface/decorator/api/function/update-executor-properties.interface.d.ts +2 -2
- package/dist/esm/interface/decorator/api/index.d.ts +5 -5
- package/dist/esm/interface/decorator/api/method/index.d.ts +2 -2
- package/dist/esm/interface/decorator/api/method/properties.interface.d.ts +2 -4
- package/dist/esm/interface/dto-generate-factory.interface.d.ts +5 -4
- package/dist/esm/interface/entity/index.d.ts +2 -2
- package/dist/esm/interface/entity/interface.d.ts +2 -2
- package/dist/esm/interface/index.d.ts +10 -8
- package/dist/esm/interface/utility/api/controller/index.d.ts +1 -1
- package/dist/esm/interface/utility/error-string-properties.interface.d.ts +1 -1
- package/dist/esm/interface/utility/get-entity-columns-properties.interface.d.ts +1 -1
- package/dist/esm/interface/utility/index.d.ts +3 -2
- package/dist/esm/interface/validator/index.d.ts +1 -0
- package/dist/esm/interface/validator/must-match-one-of-schemas-discriminator-config.interface.d.ts +6 -0
- package/dist/esm/type/api-request-transformer.type.d.ts +3 -3
- package/dist/esm/type/class/controller/index.d.ts +1 -1
- package/dist/esm/type/class/controller/method.type.d.ts +2 -2
- package/dist/esm/type/class/index.d.ts +3 -3
- package/dist/esm/type/class/metadata.type.d.ts +1 -1
- package/dist/esm/type/decorator/api/controller/constructor.type.d.ts +1 -1
- package/dist/esm/type/decorator/api/controller/get-list-query.type.d.ts +2 -2
- package/dist/esm/type/decorator/api/controller/index.d.ts +5 -5
- package/dist/esm/type/decorator/api/controller/properties/route/base-request-relations.type.d.ts +1 -1
- package/dist/esm/type/decorator/api/controller/properties/route/base-request-transformers.type.d.ts +2 -2
- package/dist/esm/type/decorator/api/controller/properties/route/base-response-transformers.type.d.ts +2 -2
- package/dist/esm/type/decorator/api/controller/properties/route/index.d.ts +3 -3
- package/dist/esm/type/decorator/api/controller/properties-route.type.d.ts +2 -2
- package/dist/esm/type/decorator/api/controller/transformer-config.type.d.ts +2 -2
- package/dist/esm/type/decorator/api/filter/extracted-allowed-types.type.d.ts +1 -1
- package/dist/esm/type/decorator/api/filter/index.d.ts +4 -4
- package/dist/esm/type/decorator/api/filter/order-by.type.d.ts +1 -1
- package/dist/esm/type/decorator/api/function/index.d.ts +9 -9
- package/dist/esm/type/decorator/api/function/properties.type.d.ts +1 -1
- package/dist/esm/type/decorator/api/property/base/array/index.d.ts +2 -2
- package/dist/esm/type/decorator/api/property/base/index.d.ts +4 -4
- package/dist/esm/type/decorator/api/property/base/properties.type.d.ts +2 -4
- package/dist/esm/type/decorator/api/property/date-properties.type.d.ts +2 -2
- package/dist/esm/type/decorator/api/property/describe/array/index.d.ts +2 -2
- package/dist/esm/type/decorator/api/property/describe/base-properties.type.d.ts +1 -1
- package/dist/esm/type/decorator/api/property/describe/boolean-properties.type.d.ts +3 -3
- package/dist/esm/type/decorator/api/property/describe/date-properties.type.d.ts +3 -3
- package/dist/esm/type/decorator/api/property/describe/dto/body-properties.type.d.ts +2 -2
- package/dist/esm/type/decorator/api/property/describe/dto/index.d.ts +6 -5
- package/dist/esm/type/decorator/api/property/describe/dto/properties.type.d.ts +1 -1
- package/dist/esm/type/decorator/api/property/describe/dto/query/index.d.ts +2 -2
- package/dist/esm/type/decorator/api/property/describe/dto/query/properties.type.d.ts +2 -3
- package/dist/esm/type/decorator/api/property/describe/dto/request-properties.type.d.ts +2 -2
- package/dist/esm/type/decorator/api/property/describe/dto/response-properties.type.d.ts +2 -2
- package/dist/esm/type/decorator/api/property/describe/enum-properties.type.d.ts +3 -3
- package/dist/esm/type/decorator/api/property/describe/index.d.ts +14 -13
- package/dist/esm/type/decorator/api/property/describe/number-properties.type.d.ts +4 -4
- package/dist/esm/type/decorator/api/property/describe/object/dynamic-with-discriminator-properties.type.d.ts +15 -0
- package/dist/esm/type/decorator/api/property/describe/object/index.d.ts +4 -0
- package/dist/esm/type/decorator/api/property/describe/object/properties.type.d.ts +4 -0
- package/dist/esm/type/decorator/api/property/describe/object/with-discriminator-properties.type.d.ts +14 -0
- package/dist/esm/type/decorator/api/property/describe/{object-properties.type.d.ts → object/without-discriminator-properties.type.d.ts} +4 -4
- package/dist/esm/type/decorator/api/property/describe/properties/base-dto-properties.type.d.ts +1 -1
- package/dist/esm/type/decorator/api/property/describe/properties/base-properties.type.d.ts +2 -2
- package/dist/esm/type/decorator/api/property/describe/properties/index.d.ts +2 -2
- package/dist/esm/type/decorator/api/property/describe/properties.type.d.ts +8 -8
- package/dist/esm/type/decorator/api/property/describe/relation-properties.type.d.ts +2 -2
- package/dist/esm/type/decorator/api/property/describe/string-properties.type.d.ts +4 -4
- package/dist/esm/type/decorator/api/property/describe/uuid-properties.type.d.ts +3 -3
- package/dist/esm/type/decorator/api/property/enum-properties.type.d.ts +1 -1
- package/dist/esm/type/decorator/api/property/index.d.ts +8 -6
- package/dist/esm/type/decorator/api/property/number-properties.type.d.ts +3 -3
- package/dist/esm/type/decorator/api/property/object/dynamic-with-discriminator-properties.type.d.ts +16 -0
- package/dist/esm/type/decorator/api/property/object/index.d.ts +4 -0
- package/dist/esm/type/decorator/api/property/object/properties.type.d.ts +4 -0
- package/dist/esm/type/decorator/api/property/object/with-discriminator-properties.type.d.ts +15 -0
- package/dist/esm/type/decorator/api/property/{object-properties.type.d.ts → object/without-discriminator-properties.type.d.ts} +4 -2
- package/dist/esm/type/decorator/api/property/string-properties.type.d.ts +2 -2
- package/dist/esm/type/decorator/api/property/uuid-properties.type.d.ts +1 -1
- package/dist/esm/type/decorator/api/service/index.d.ts +2 -2
- package/dist/esm/type/decorator/api/service/keys.type.d.ts +1 -1
- package/dist/esm/type/factory/api/controller/index.d.ts +4 -4
- package/dist/esm/type/factory/api/controller/method-map.type.d.ts +4 -3
- package/dist/esm/type/factory/api/controller/method-name-map.type.d.ts +2 -2
- package/dist/esm/type/factory/api/controller/method-name.type.d.ts +3 -3
- package/dist/esm/type/factory/api/controller/target-methods.type.d.ts +4 -4
- package/dist/esm/type/index.d.ts +10 -5
- package/dist/esm/type/utility/api/controller/transform-data/data.type.d.ts +1 -1
- package/dist/esm/type/utility/api/controller/transform-data/index.d.ts +3 -3
- package/dist/esm/type/utility/api/controller/transform-data/is-validation-properties.type.d.ts +2 -2
- package/dist/esm/type/utility/api/controller/transform-data/object-to-transform.type.d.ts +2 -2
- package/dist/esm/type/utility/date-range-keys.type.d.ts +1 -1
- package/dist/esm/type/utility/dto/generate-allowed-combination.type.d.ts +1 -1
- package/dist/esm/type/utility/dto/generate-is-allowed-combination.type.d.ts +2 -2
- package/dist/esm/type/utility/dto/index.d.ts +2 -2
- package/dist/esm/type/utility/filter-keys.type.d.ts +1 -1
- package/dist/esm/type/utility/index.d.ts +7 -7
- package/dist/esm/type/validator/has-paired-custom-suffixes-fields/index.d.ts +2 -0
- package/dist/esm/type/validator/has-paired-custom-suffixes-fields/operation-config.type.d.ts +7 -0
- package/dist/esm/type/validator/has-paired-custom-suffixes-fields/validation-context.type.d.ts +5 -0
- package/dist/esm/utility/api/controller/apply-decorators.utility.d.ts +18 -3
- package/dist/esm/{src/utility → utility}/api/controller/apply-decorators.utility.js +15 -4
- package/dist/esm/utility/api/controller/apply-decorators.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/apply-metadata.utility.d.ts +17 -3
- package/dist/esm/{src/utility → utility}/api/controller/apply-metadata.utility.js +22 -13
- package/dist/esm/utility/api/controller/apply-metadata.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/get-list/index.d.ts +2 -2
- package/dist/esm/utility/api/controller/get-list/transform-filter.utility.d.ts +10 -1
- package/dist/esm/{src/utility → utility}/api/controller/get-list/transform-filter.utility.js +9 -3
- package/dist/esm/utility/api/controller/get-list/transform-filter.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/get-list/transform-operation.utility.d.ts +8 -1
- package/dist/esm/{src/utility → utility}/api/controller/get-list/transform-operation.utility.js +8 -1
- package/dist/esm/utility/api/controller/get-list/transform-operation.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/get-method-name.utility.d.ts +7 -1
- package/dist/esm/{src/utility → utility}/api/controller/get-method-name.utility.js +6 -0
- package/dist/esm/utility/api/controller/get-method-name.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/get-primary-column.utility.d.ts +10 -1
- package/dist/esm/utility/api/controller/get-primary-column.utility.js +21 -0
- package/dist/esm/utility/api/controller/get-primary-column.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/handle-request-relations.utility.d.ts +17 -2
- package/dist/esm/{src/utility → utility}/api/controller/handle-request-relations.utility.js +15 -5
- package/dist/esm/utility/api/controller/handle-request-relations.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/index.d.ts +10 -9
- package/dist/esm/utility/api/controller/transform-data.utility.d.ts +15 -3
- package/dist/esm/{src/utility → utility}/api/controller/transform-data.utility.js +52 -3
- package/dist/esm/utility/api/controller/transform-data.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/validate-request.utility.d.ts +12 -2
- package/dist/esm/{src/utility → utility}/api/controller/validate-request.utility.js +9 -0
- package/dist/esm/utility/api/controller/validate-request.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/write-dto-swagger.utility.d.ts +17 -3
- package/dist/esm/{src/utility → utility}/api/controller/write-dto-swagger.utility.js +21 -12
- package/dist/esm/utility/api/controller/write-dto-swagger.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/write-method.utility.d.ts +16 -2
- package/dist/esm/utility/api/controller/write-method.utility.js +31 -0
- package/dist/esm/utility/api/controller/write-method.utility.js.map +1 -0
- package/dist/esm/utility/api/filter-order-by-from-entity.utility.d.ts +16 -3
- package/dist/esm/{src/utility → utility}/api/filter-order-by-from-entity.utility.js +14 -1
- package/dist/esm/utility/api/filter-order-by-from-entity.utility.js.map +1 -0
- package/dist/esm/utility/api/index.d.ts +2 -2
- package/dist/esm/utility/camel-case-string.utility.d.ts +5 -0
- package/dist/esm/{src/utility → utility}/camel-case-string.utility.js +5 -0
- package/dist/esm/utility/camel-case-string.utility.js.map +1 -0
- package/dist/esm/utility/capitalize-string.utility.d.ts +5 -0
- package/dist/esm/{src/utility → utility}/capitalize-string.utility.js +5 -0
- package/dist/esm/utility/capitalize-string.utility.js.map +1 -0
- package/dist/esm/utility/dto/analize.utility.d.ts +7 -1
- package/dist/esm/utility/dto/analize.utility.js +15 -0
- package/dist/esm/utility/dto/analize.utility.js.map +1 -0
- package/dist/esm/utility/dto/build-decorator.utility.d.ts +19 -4
- package/dist/esm/{src/utility → utility}/dto/build-decorator.utility.js +17 -5
- package/dist/esm/utility/dto/build-decorator.utility.js.map +1 -0
- package/dist/esm/utility/dto/generate-decorator.utility.d.ts +19 -4
- package/dist/esm/utility/dto/generate-decorator.utility.js +27 -0
- package/dist/esm/utility/dto/generate-decorator.utility.js.map +1 -0
- package/dist/esm/utility/dto/generate-dynamic.utility.d.ts +21 -0
- package/dist/esm/utility/dto/generate-dynamic.utility.js +92 -0
- package/dist/esm/utility/dto/generate-dynamic.utility.js.map +1 -0
- package/dist/esm/utility/dto/generate-exception.utility.d.ts +7 -0
- package/dist/esm/{src/utility → utility}/dto/generate-exception.utility.js +9 -6
- package/dist/esm/utility/dto/generate-exception.utility.js.map +1 -0
- package/dist/esm/utility/dto/generate-filter-decorator.utility.d.ts +11 -2
- package/dist/esm/{src/utility → utility}/dto/generate-filter-decorator.utility.js +9 -3
- package/dist/esm/utility/dto/generate-filter-decorator.utility.js.map +1 -0
- package/dist/esm/utility/dto/generate-get-list-response.utility.d.ts +9 -0
- package/dist/esm/{src/utility → utility}/dto/generate-get-list-response.utility.js +12 -6
- package/dist/esm/utility/dto/generate-get-list-response.utility.js.map +1 -0
- package/dist/esm/utility/dto/generate-relation-response.utility.d.ts +12 -2
- package/dist/esm/{src/utility → utility}/dto/generate-relation-response.utility.js +11 -1
- package/dist/esm/utility/dto/generate-relation-response.utility.js.map +1 -0
- package/dist/esm/utility/dto/generate.utility.d.ts +17 -2
- package/dist/esm/{src/utility → utility}/dto/generate.utility.js +39 -11
- package/dist/esm/utility/dto/generate.utility.js.map +1 -0
- package/dist/esm/utility/dto/get-decorator-config.utility.d.ts +15 -2
- package/dist/esm/{src/utility → utility}/dto/get-decorator-config.utility.js +13 -0
- package/dist/esm/utility/dto/get-decorator-config.utility.js.map +1 -0
- package/dist/esm/utility/dto/get-get-list-query-base-class.utility.d.ts +13 -2
- package/dist/esm/{src/utility → utility}/dto/get-get-list-query-base-class.utility.js +17 -12
- package/dist/esm/utility/dto/get-get-list-query-base-class.utility.js.map +1 -0
- package/dist/esm/utility/dto/handle-date-property.utility.d.ts +9 -1
- package/dist/esm/{src/utility → utility}/dto/handle-date-property.utility.js +8 -3
- package/dist/esm/utility/dto/handle-date-property.utility.js.map +1 -0
- package/dist/esm/utility/dto/index.d.ts +16 -12
- package/dist/esm/utility/dto/is-property-exposed-for-guard.utility.d.ts +10 -2
- package/dist/esm/{src/utility → utility}/dto/is-property-exposed-for-guard.utility.js +8 -0
- package/dist/esm/utility/dto/is-property-exposed-for-guard.utility.js.map +1 -0
- package/dist/esm/utility/dto/is-property-should-be-marked.utility.d.ts +12 -2
- package/dist/esm/{src/utility → utility}/dto/is-property-should-be-marked.utility.js +10 -3
- package/dist/esm/utility/dto/is-property-should-be-marked.utility.js.map +1 -0
- package/dist/esm/utility/dto/is-should-be-generated.utility.d.ts +11 -1
- package/dist/esm/{src/utility → utility}/dto/is-should-be-generated.utility.js +10 -3
- package/dist/esm/utility/dto/is-should-be-generated.utility.js.map +1 -0
- package/dist/esm/utility/dto/validate-property-config.utility.d.ts +1 -1
- package/dist/esm/utility/dto/validate-property-config.utility.js.map +1 -0
- package/dist/esm/utility/error-exception.utility.d.ts +5 -0
- package/dist/esm/{src/utility → utility}/error-exception.utility.js +5 -0
- package/dist/esm/utility/error-exception.utility.js.map +1 -0
- package/dist/esm/utility/error-string.utility.d.ts +8 -1
- package/dist/esm/utility/error-string.utility.js +12 -0
- package/dist/esm/utility/error-string.utility.js.map +1 -0
- package/dist/esm/utility/generate-entity-information.utility.d.ts +8 -1
- package/dist/esm/{src/utility → utility}/generate-entity-information.utility.js +7 -17
- package/dist/esm/utility/generate-entity-information.utility.js.map +1 -0
- package/dist/esm/utility/get-entity-columns.utility.d.ts +7 -1
- package/dist/esm/{src/utility → utility}/get-entity-columns.utility.js +6 -0
- package/dist/esm/utility/get-entity-columns.utility.js.map +1 -0
- package/dist/esm/utility/index.d.ts +10 -10
- package/dist/esm/utility/is-error-of-type.utility.d.ts +7 -1
- package/dist/esm/{src/utility → utility}/is-error-of-type.utility.js +7 -16
- package/dist/esm/utility/is-error-of-type.utility.js.map +1 -0
- package/dist/esm/utility/logger.utility.d.ts +4 -0
- package/dist/esm/{src/utility → utility}/logger.utility.js +5 -1
- package/dist/esm/utility/logger.utility.js.map +1 -0
- package/dist/esm/validator/all-or-none-of-listed-properties.validator.d.ts +1 -1
- package/dist/esm/{src/validator → validator}/all-or-none-of-listed-properties.validator.js +5 -5
- package/dist/esm/validator/all-or-none-of-listed-properties.validator.js.map +1 -0
- package/dist/esm/validator/has-at-least-one-and-only-one-of-listed-properties.validator.d.ts +1 -1
- package/dist/esm/{src/validator → validator}/has-at-least-one-and-only-one-of-listed-properties.validator.js +5 -5
- package/dist/esm/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js.map +1 -0
- package/dist/esm/validator/has-at-least-one-of-listed-properties.validator.d.ts +1 -1
- package/dist/esm/{src/validator → validator}/has-at-least-one-of-listed-properties.validator.js +5 -5
- package/dist/esm/validator/has-at-least-one-of-listed-properties.validator.js.map +1 -0
- package/dist/esm/validator/has-at-least-one-property.validator.d.ts +1 -1
- package/dist/esm/{src/validator → validator}/has-at-least-one-property.validator.js +5 -5
- package/dist/esm/validator/has-at-least-one-property.validator.js.map +1 -0
- package/dist/esm/validator/has-paired-custom-suffixes-fields.validator.d.ts +12 -1
- package/dist/esm/{src/validator → validator}/has-paired-custom-suffixes-fields.validator.js +27 -97
- package/dist/esm/validator/has-paired-custom-suffixes-fields.validator.js.map +1 -0
- package/dist/esm/validator/index.d.ts +8 -6
- package/dist/esm/validator/is-regular-expression.validator.d.ts +6 -1
- package/dist/esm/validator/is-regular-expression.validator.js +30 -0
- package/dist/esm/validator/is-regular-expression.validator.js.map +1 -0
- package/dist/esm/validator/must-match-one-of-schemas.validator.d.ts +36 -0
- package/dist/esm/validator/must-match-one-of-schemas.validator.js +188 -0
- package/dist/esm/validator/must-match-one-of-schemas.validator.js.map +1 -0
- package/dist/esm/validator/only-one-of-listed-properties.validator.d.ts +1 -1
- package/dist/esm/{src/validator → validator}/only-one-of-listed-properties.validator.js +5 -5
- package/dist/esm/validator/only-one-of-listed-properties.validator.js.map +1 -0
- package/package.json +4 -2
- package/dist/cjs/class/utility/dto/index.d.ts +0 -2
- package/dist/cjs/class/utility/dto/property/index.d.ts +0 -1
- package/dist/cjs/class/utility/index.d.ts +0 -1
- package/dist/cjs/constant/decorator/index.d.ts +0 -1
- package/dist/cjs/constant/factory/index.d.ts +0 -1
- package/dist/cjs/constant/interface/index.d.ts +0 -1
- package/dist/cjs/decorator/index.d.ts +0 -1
- package/dist/cjs/enum/decorator/index.d.ts +0 -1
- package/dist/cjs/factory/index.d.ts +0 -1
- package/dist/cjs/interface/decorator/api/controller/properties/index.d.ts +0 -1
- package/dist/cjs/interface/decorator/index.d.ts +0 -1
- package/dist/cjs/interface/utility/api/index.d.ts +0 -1
- package/dist/cjs/type/decorator/api/controller/properties/index.d.ts +0 -1
- package/dist/cjs/type/decorator/api/index.d.ts +0 -5
- package/dist/cjs/type/decorator/index.d.ts +0 -1
- package/dist/cjs/type/factory/api/index.d.ts +0 -1
- package/dist/cjs/type/factory/index.d.ts +0 -1
- package/dist/cjs/type/utility/api/controller/index.d.ts +0 -1
- package/dist/cjs/type/utility/api/index.d.ts +0 -1
- package/dist/esm/class/utility/dto/index.d.ts +0 -2
- package/dist/esm/class/utility/dto/property/index.d.ts +0 -1
- package/dist/esm/class/utility/index.d.ts +0 -1
- package/dist/esm/constant/decorator/index.d.ts +0 -1
- package/dist/esm/constant/factory/index.d.ts +0 -1
- package/dist/esm/constant/interface/index.d.ts +0 -1
- package/dist/esm/decorator/index.d.ts +0 -1
- package/dist/esm/enum/decorator/index.d.ts +0 -1
- package/dist/esm/factory/index.d.ts +0 -1
- package/dist/esm/interface/decorator/api/controller/properties/index.d.ts +0 -1
- package/dist/esm/interface/decorator/index.d.ts +0 -1
- package/dist/esm/interface/utility/api/index.d.ts +0 -1
- package/dist/esm/src/class/api/service-base.class.js.map +0 -1
- package/dist/esm/src/class/metadata-storage.class.js.map +0 -1
- package/dist/esm/src/class/utility/dto/property/factory/boolean.class.js.map +0 -1
- package/dist/esm/src/class/utility/dto/property/factory/date.class.js.map +0 -1
- package/dist/esm/src/class/utility/dto/property/factory/enum.class.js.map +0 -1
- package/dist/esm/src/class/utility/dto/property/factory/number.class.js.map +0 -1
- package/dist/esm/src/class/utility/dto/property/factory/object.class.js.map +0 -1
- package/dist/esm/src/class/utility/dto/property/factory/relation.class.js.map +0 -1
- package/dist/esm/src/class/utility/dto/property/factory/string.class.js.map +0 -1
- package/dist/esm/src/class/utility/dto/property/factory/uuid.class.js.map +0 -1
- package/dist/esm/src/class/utility/dto/strategy/body.class.js.map +0 -1
- package/dist/esm/src/class/utility/dto/strategy/query.class.js.map +0 -1
- package/dist/esm/src/class/utility/dto/strategy/request.class.js.map +0 -1
- package/dist/esm/src/class/utility/dto/strategy/response.class.js.map +0 -1
- package/dist/esm/src/constant/date.constant.js.map +0 -1
- package/dist/esm/src/constant/decorator/api/controller.constant.js.map +0 -1
- package/dist/esm/src/constant/decorator/api/function.constant.js +0 -24
- package/dist/esm/src/constant/decorator/api/function.constant.js.map +0 -1
- package/dist/esm/src/constant/decorator/api/property-describe.constant.js.map +0 -1
- package/dist/esm/src/constant/dto/exception.constant.js.map +0 -1
- package/dist/esm/src/constant/dto/list.constant.js.map +0 -1
- package/dist/esm/src/constant/dto/transformer-value.constant.js.map +0 -1
- package/dist/esm/src/constant/factory/dto/get-list-query.constant.js.map +0 -1
- package/dist/esm/src/constant/interface/api/filter.constant.js.map +0 -1
- package/dist/esm/src/constant/interface/api/property/string.constant.js.map +0 -1
- package/dist/esm/src/constant/interface/api/property/wallet.constant.js.map +0 -1
- package/dist/esm/src/constant/number.constant.js.map +0 -1
- package/dist/esm/src/constant/utility/dto/constant.js.map +0 -1
- package/dist/esm/src/constant/utility/dto/generate.constant.js.map +0 -1
- package/dist/esm/src/decorator/api/controller.decorator.js.map +0 -1
- package/dist/esm/src/decorator/api/function/create.decorator.js.map +0 -1
- package/dist/esm/src/decorator/api/function/decorator.js.map +0 -1
- package/dist/esm/src/decorator/api/function/delete.decorator.js.map +0 -1
- package/dist/esm/src/decorator/api/function/get-list.decorator.js.map +0 -1
- package/dist/esm/src/decorator/api/function/get-many.decorator.js.map +0 -1
- package/dist/esm/src/decorator/api/function/get.decorator.js.map +0 -1
- package/dist/esm/src/decorator/api/function/update.decorator.js.map +0 -1
- package/dist/esm/src/decorator/api/method.decorator.js.map +0 -1
- package/dist/esm/src/decorator/api/property/boolean.decorator.js.map +0 -1
- package/dist/esm/src/decorator/api/property/date.decorator.js.map +0 -1
- package/dist/esm/src/decorator/api/property/describe.decorator.js +0 -29
- package/dist/esm/src/decorator/api/property/describe.decorator.js.map +0 -1
- package/dist/esm/src/decorator/api/property/enum.decorator.js.map +0 -1
- package/dist/esm/src/decorator/api/property/number.decorator.js.map +0 -1
- package/dist/esm/src/decorator/api/property/object.decorator.js +0 -104
- package/dist/esm/src/decorator/api/property/object.decorator.js.map +0 -1
- package/dist/esm/src/decorator/api/property/string.decorator.js.map +0 -1
- package/dist/esm/src/decorator/api/property/uuid.decorator.js.map +0 -1
- package/dist/esm/src/decorator/api/service.decorator.js.map +0 -1
- package/dist/esm/src/enum/decorator/api/action.enum.js.map +0 -1
- package/dist/esm/src/enum/decorator/api/authentication-type.enum.js.map +0 -1
- package/dist/esm/src/enum/decorator/api/controller/load-relations-strategy.enum.js.map +0 -1
- package/dist/esm/src/enum/decorator/api/controller/request-transformer-type.enum.js.map +0 -1
- package/dist/esm/src/enum/decorator/api/dto-type.enum.js.map +0 -1
- package/dist/esm/src/enum/decorator/api/function/type.enum.js.map +0 -1
- package/dist/esm/src/enum/decorator/api/property/data-type.enum.js.map +0 -1
- package/dist/esm/src/enum/decorator/api/property/date/identifier.enum.js.map +0 -1
- package/dist/esm/src/enum/decorator/api/property/date/type.enum.js.map +0 -1
- package/dist/esm/src/enum/decorator/api/property/desribe-type.enum.js.map +0 -1
- package/dist/esm/src/enum/decorator/api/property/number-type.enum.js.map +0 -1
- package/dist/esm/src/enum/decorator/api/property/string-type.enum.js.map +0 -1
- package/dist/esm/src/enum/decorator/api/route-type.enum.js.map +0 -1
- package/dist/esm/src/enum/exception.enum.js.map +0 -1
- package/dist/esm/src/enum/filter-operation.enum.js.map +0 -1
- package/dist/esm/src/enum/filter-order-direction.enum.js.map +0 -1
- package/dist/esm/src/enum/utility/error-string-action.enum.js.map +0 -1
- package/dist/esm/src/factory/api/controller.factory.js.map +0 -1
- package/dist/esm/src/interceptor/correlation-id-response-body.interceptor.js.map +0 -1
- package/dist/esm/src/utility/api/controller/apply-decorators.utility.js.map +0 -1
- package/dist/esm/src/utility/api/controller/apply-metadata.utility.js.map +0 -1
- package/dist/esm/src/utility/api/controller/get-list/transform-filter.utility.js.map +0 -1
- package/dist/esm/src/utility/api/controller/get-list/transform-operation.utility.js.map +0 -1
- package/dist/esm/src/utility/api/controller/get-method-name.utility.js.map +0 -1
- package/dist/esm/src/utility/api/controller/get-primary-column.utility.js +0 -13
- package/dist/esm/src/utility/api/controller/get-primary-column.utility.js.map +0 -1
- package/dist/esm/src/utility/api/controller/handle-request-relations.utility.js.map +0 -1
- package/dist/esm/src/utility/api/controller/transform-data.utility.js.map +0 -1
- package/dist/esm/src/utility/api/controller/validate-request.utility.js.map +0 -1
- package/dist/esm/src/utility/api/controller/write-dto-swagger.utility.js.map +0 -1
- package/dist/esm/src/utility/api/controller/write-method.utility.js +0 -18
- package/dist/esm/src/utility/api/controller/write-method.utility.js.map +0 -1
- package/dist/esm/src/utility/api/filter-order-by-from-entity.utility.js.map +0 -1
- package/dist/esm/src/utility/camel-case-string.utility.js.map +0 -1
- package/dist/esm/src/utility/capitalize-string.utility.js.map +0 -1
- package/dist/esm/src/utility/dto/analize.utility.js +0 -25
- package/dist/esm/src/utility/dto/analize.utility.js.map +0 -1
- package/dist/esm/src/utility/dto/build-decorator.utility.js.map +0 -1
- package/dist/esm/src/utility/dto/generate-decorator.utility.js +0 -13
- package/dist/esm/src/utility/dto/generate-decorator.utility.js.map +0 -1
- package/dist/esm/src/utility/dto/generate-exception.utility.js.map +0 -1
- package/dist/esm/src/utility/dto/generate-filter-decorator.utility.js.map +0 -1
- package/dist/esm/src/utility/dto/generate-get-list-response.utility.js.map +0 -1
- package/dist/esm/src/utility/dto/generate-relation-response.utility.js.map +0 -1
- package/dist/esm/src/utility/dto/generate.utility.js.map +0 -1
- package/dist/esm/src/utility/dto/get-decorator-config.utility.js.map +0 -1
- package/dist/esm/src/utility/dto/get-get-list-query-base-class.utility.js.map +0 -1
- package/dist/esm/src/utility/dto/handle-date-property.utility.js.map +0 -1
- package/dist/esm/src/utility/dto/is-property-exposed-for-guard.utility.js.map +0 -1
- package/dist/esm/src/utility/dto/is-property-should-be-marked.utility.js.map +0 -1
- package/dist/esm/src/utility/dto/is-should-be-generated.utility.js.map +0 -1
- package/dist/esm/src/utility/dto/validate-property-config.utility.js.map +0 -1
- package/dist/esm/src/utility/error-exception.utility.js.map +0 -1
- package/dist/esm/src/utility/error-string.utility.js +0 -6
- package/dist/esm/src/utility/error-string.utility.js.map +0 -1
- package/dist/esm/src/utility/generate-entity-information.utility.js.map +0 -1
- package/dist/esm/src/utility/get-entity-columns.utility.js.map +0 -1
- package/dist/esm/src/utility/is-error-of-type.utility.js.map +0 -1
- package/dist/esm/src/utility/logger.utility.js.map +0 -1
- package/dist/esm/src/validator/all-or-none-of-listed-properties.validator.js.map +0 -1
- package/dist/esm/src/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js.map +0 -1
- package/dist/esm/src/validator/has-at-least-one-of-listed-properties.validator.js.map +0 -1
- package/dist/esm/src/validator/has-at-least-one-property.validator.js.map +0 -1
- package/dist/esm/src/validator/has-paired-custom-suffixes-fields.validator.js.map +0 -1
- package/dist/esm/src/validator/is-regular-expression.validator.js +0 -25
- package/dist/esm/src/validator/is-regular-expression.validator.js.map +0 -1
- package/dist/esm/src/validator/only-one-of-listed-properties.validator.js.map +0 -1
- package/dist/esm/type/decorator/api/controller/properties/index.d.ts +0 -1
- package/dist/esm/type/decorator/api/index.d.ts +0 -5
- package/dist/esm/type/decorator/index.d.ts +0 -1
- package/dist/esm/type/factory/api/index.d.ts +0 -1
- package/dist/esm/type/factory/index.d.ts +0 -1
- package/dist/esm/type/utility/api/controller/index.d.ts +0 -1
- package/dist/esm/type/utility/api/index.d.ts +0 -1
- /package/dist/esm/{src/class → class}/api/service-base.class.js +0 -0
- /package/dist/esm/{src/class → class}/utility/dto/property/factory/boolean.class.js +0 -0
- /package/dist/esm/{src/class → class}/utility/dto/property/factory/date.class.js +0 -0
- /package/dist/esm/{src/class → class}/utility/dto/property/factory/enum.class.js +0 -0
- /package/dist/esm/{src/class → class}/utility/dto/property/factory/string.class.js +0 -0
- /package/dist/esm/{src/class → class}/utility/dto/property/factory/uuid.class.js +0 -0
- /package/dist/esm/{src/constant → constant}/date.constant.js +0 -0
- /package/dist/esm/{src/constant → constant}/decorator/api/controller.constant.js +0 -0
- /package/dist/esm/{src/constant → constant}/decorator/api/property-describe.constant.js +0 -0
- /package/dist/esm/{src/constant → constant}/dto/exception.constant.js +0 -0
- /package/dist/esm/{src/constant → constant}/dto/transformer-value.constant.js +0 -0
- /package/dist/esm/{src/constant → constant}/interface/api/filter.constant.js +0 -0
- /package/dist/esm/{src/constant → constant}/interface/api/property/string.constant.js +0 -0
- /package/dist/esm/{src/constant → constant}/interface/api/property/wallet.constant.js +0 -0
- /package/dist/esm/{src/constant → constant}/number.constant.js +0 -0
- /package/dist/esm/{src/constant → constant}/utility/dto/generate.constant.js +0 -0
- /package/dist/esm/{src/decorator → decorator}/api/controller.decorator.js +0 -0
- /package/dist/esm/{src/enum → enum}/decorator/api/action.enum.js +0 -0
- /package/dist/esm/{src/enum → enum}/decorator/api/authentication-type.enum.js +0 -0
- /package/dist/esm/{src/enum → enum}/decorator/api/controller/load-relations-strategy.enum.js +0 -0
- /package/dist/esm/{src/enum → enum}/decorator/api/controller/request-transformer-type.enum.js +0 -0
- /package/dist/esm/{src/enum → enum}/decorator/api/dto-type.enum.js +0 -0
- /package/dist/esm/{src/enum → enum}/decorator/api/function/type.enum.js +0 -0
- /package/dist/esm/{src/enum → enum}/decorator/api/property/data-type.enum.js +0 -0
- /package/dist/esm/{src/enum → enum}/decorator/api/property/date/identifier.enum.js +0 -0
- /package/dist/esm/{src/enum → enum}/decorator/api/property/date/type.enum.js +0 -0
- /package/dist/esm/{src/enum → enum}/decorator/api/property/desribe-type.enum.js +0 -0
- /package/dist/esm/{src/enum → enum}/decorator/api/property/number-type.enum.js +0 -0
- /package/dist/esm/{src/enum → enum}/decorator/api/property/string-type.enum.js +0 -0
- /package/dist/esm/{src/enum → enum}/decorator/api/route-type.enum.js +0 -0
- /package/dist/esm/{src/enum → enum}/exception.enum.js +0 -0
- /package/dist/esm/{src/enum → enum}/filter-operation.enum.js +0 -0
- /package/dist/esm/{src/enum → enum}/filter-order-direction.enum.js +0 -0
- /package/dist/esm/{src/enum → enum}/utility/error-string-action.enum.js +0 -0
- /package/dist/esm/{src/utility → utility}/dto/validate-property-config.utility.js +0 -0
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import type { IApiBaseEntity
|
|
1
|
+
import type { IApiBaseEntity } from '../../../interface/api-base-entity.interface';
|
|
2
|
+
import type { IApiFunctionProperties } from '../../../interface/decorator/api/function/index';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a decorator that adds entity update functionality to a service method
|
|
5
|
+
* @param {IApiFunctionProperties} properties - Configuration properties for the update function
|
|
6
|
+
* @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle entity updates
|
|
7
|
+
*/
|
|
2
8
|
export declare function ApiFunctionUpdate<E extends IApiBaseEntity>(properties: IApiFunctionProperties): (target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
@@ -1,27 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var common = require('@nestjs/common');
|
|
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
|
-
require('../../../enum/decorator/api/function/type.enum.js');
|
|
10
|
-
require('../../../enum/decorator/api/property/data-type.enum.js');
|
|
11
|
-
require('../../../enum/decorator/api/property/date/identifier.enum.js');
|
|
12
|
-
require('../../../enum/decorator/api/property/date/type.enum.js');
|
|
13
|
-
require('../../../enum/decorator/api/property/desribe-type.enum.js');
|
|
14
|
-
require('../../../enum/decorator/api/property/number-type.enum.js');
|
|
15
|
-
require('../../../enum/decorator/api/property/string-type.enum.js');
|
|
16
|
-
require('../../../enum/decorator/api/route-type.enum.js');
|
|
17
|
-
require('../../../enum/exception.enum.js');
|
|
18
|
-
require('../../../enum/filter-order-direction.enum.js');
|
|
19
3
|
var errorStringAction_enum = require('../../../enum/utility/error-string-action.enum.js');
|
|
4
|
+
var common = require('@nestjs/common');
|
|
20
5
|
var errorException_utility = require('../../../utility/error-exception.utility.js');
|
|
21
6
|
var errorString_utility = require('../../../utility/error-string.utility.js');
|
|
22
7
|
var logger_utility = require('../../../utility/logger.utility.js');
|
|
23
8
|
var get_decorator = require('./get.decorator.js');
|
|
24
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Creates a decorator that adds entity update functionality to a service method
|
|
12
|
+
* @param {IApiFunctionProperties} properties - Configuration properties for the update function
|
|
13
|
+
* @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle entity updates
|
|
14
|
+
*/
|
|
25
15
|
// eslint-disable-next-line @elsikora/typescript/no-unnecessary-type-parameters
|
|
26
16
|
function ApiFunctionUpdate(properties) {
|
|
27
17
|
const { entity } = properties;
|
|
@@ -52,6 +42,12 @@ function ApiFunctionUpdate(properties) {
|
|
|
52
42
|
return descriptor;
|
|
53
43
|
};
|
|
54
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Executes the entity update operation with error handling
|
|
47
|
+
* @param {IApiFunctionUpdateExecutorProperties<E>} options - Properties required for entity update
|
|
48
|
+
* @returns {Promise<E>} The updated entity instance
|
|
49
|
+
* @throws {InternalServerErrorException} If the update operation fails
|
|
50
|
+
*/
|
|
55
51
|
async function executor(options) {
|
|
56
52
|
const { criteria, entity, eventManager, getFunction, properties, repository } = options;
|
|
57
53
|
try {
|
|
@@ -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","ErrorException","HttpException","LoggerUtility","InternalServerErrorException","ErrorString","EErrorStringAction"],"mappings":";;;;;;;;;AAaA;;;;AAIG;AACH;AACM,SAAU,iBAAiB,CAA2B,UAAkC,EAAA;AAC7F,IAAA,MAAM,EAAE,MAAM,EAAE,GAA2B,UAAU;IACrD,MAAM,YAAY,GAA6FA,4BAAc,CAAI,EAAE,MAAM,EAAE,CAAC;AAC5I,IAAA,IAAI,WAAmG;AAEvG,IAAA,OAAO,UAAU,MAAe,EAAE,WAAmB,EAAE,UAA8B,EAAA;QAMpF,UAAU,CAAC,KAAK,GAAG,gBAIlB,QAAuC,EACvC,UAA2C,EAC3C,YAA4B,EAAA;AAE5B,YAAA,MAAM,UAAU,GAAkB,IAAI,CAAC,UAAU;YAEjD,IAAI,CAAC,UAAU,EAAE;AAChB,gBAAA,MAAMC,qCAAc,CAAC,6CAA6C,CAAC;;YAGpE,IAAI,CAAC,WAAW,EAAE;AACjB,gBAAA,MAAM,aAAa,GAAoH;AACtI,oBAAA,KAAK,EAAE,YAAA;wBACN,OAAO,OAAO,CAAC,MAAM,CAACA,qCAAc,CAAC,iBAAiB,CAAC,CAAC;qBACxD;iBACD;AACD,gBAAA,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,aAAa,CAAC;AAExC,gBAAA,IAAI,aAAa,CAAC,KAAK,EAAE;oBACxB,WAAW,GAAG,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;;qBACtC;AACN,oBAAA,MAAMA,qCAAc,CAAC,wCAAwC,CAAC;;;AAIhE,YAAA,OAAO,QAAQ,CAAI,EAAE,QAAQ,EAAE,MAA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AA4B,CACrCC,+BAAW,CAAC;AACX,YAAA,MAAM,EAAE,MAAM;YACd,IAAI,EAAEC,yCAAkB,CAAC,cAAc;AACvC,SAAA,CAAC,CACF;;AAEH;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from
|
|
3
|
-
export
|
|
4
|
-
export * from
|
|
5
|
-
export
|
|
1
|
+
export { ApiController } from './controller.decorator';
|
|
2
|
+
export * from './function/index';
|
|
3
|
+
export { ApiMethod } from './method.decorator';
|
|
4
|
+
export * from './property/index';
|
|
5
|
+
export { ApiService } from './service.decorator';
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
import type { IApiBaseEntity
|
|
1
|
+
import type { IApiBaseEntity } from '../../interface/api-base-entity.interface';
|
|
2
|
+
import type { IApiMethodProperties } from '../../interface/decorator/api/index';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a decorator for controller methods that combines NestJS route decorators with Swagger documentation
|
|
5
|
+
* @param {IApiMethodProperties<T>} options - Configuration options for the API method
|
|
6
|
+
* @returns {Function} A decorator function that applies multiple decorators to a controller method
|
|
7
|
+
* @template T - The entity type for the API method
|
|
8
|
+
*/
|
|
2
9
|
export declare function ApiMethod<T extends IApiBaseEntity>(options: IApiMethodProperties<T>): <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var pluralizer = require('@elsikora/pluralizer');
|
|
4
|
-
var common = require('@nestjs/common');
|
|
5
|
-
var swagger = require('@nestjs/swagger');
|
|
6
|
-
var throttler = require('@nestjs/throttler');
|
|
7
4
|
var action_enum = require('../../enum/decorator/api/action.enum.js');
|
|
8
5
|
require('../../enum/decorator/api/authentication-type.enum.js');
|
|
9
6
|
require('../../enum/decorator/api/controller/load-relations-strategy.enum.js');
|
|
@@ -17,11 +14,17 @@ require('../../enum/decorator/api/property/desribe-type.enum.js');
|
|
|
17
14
|
require('../../enum/decorator/api/property/number-type.enum.js');
|
|
18
15
|
require('../../enum/decorator/api/property/string-type.enum.js');
|
|
19
16
|
require('../../enum/decorator/api/route-type.enum.js');
|
|
20
|
-
require('
|
|
21
|
-
require('
|
|
22
|
-
require('
|
|
17
|
+
var common = require('@nestjs/common');
|
|
18
|
+
var swagger = require('@nestjs/swagger');
|
|
19
|
+
var throttler = require('@nestjs/throttler');
|
|
23
20
|
var generateException_utility = require('../../utility/dto/generate-exception.utility.js');
|
|
24
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Creates a decorator for controller methods that combines NestJS route decorators with Swagger documentation
|
|
24
|
+
* @param {IApiMethodProperties<T>} options - Configuration options for the API method
|
|
25
|
+
* @returns {Function} A decorator function that applies multiple decorators to a controller method
|
|
26
|
+
* @template T - The entity type for the API method
|
|
27
|
+
*/
|
|
25
28
|
// eslint-disable-next-line @elsikora/typescript/no-unnecessary-type-parameters,@elsikora/typescript/no-unsafe-function-type
|
|
26
29
|
function ApiMethod(options) {
|
|
27
30
|
let summary = "";
|
|
@@ -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;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,KAAKA,sBAAU,CA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mB,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,GAAW,EAAE;AAExB,IAAA,IAAI,OAAO,CAAC,MAAM,EAAE;AACnB,QAAA,QAAQ,OAAO,CAAC,MAAM;AACrB,YAAA,KAAKA,sBAAU,CAAC,OAAO,EAAE;AACxB,gBAAA,OAAO,GAAG,CAAe,YAAA,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AC,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,2 +1,53 @@
|
|
|
1
|
-
import type { TApiPropertyBaseProperties } from
|
|
1
|
+
import type { TApiPropertyBaseProperties } from '../../../type/decorator/api/property/index';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a decorator that applies NestJS Swagger and class-validator/class-transformer decorators
|
|
4
|
+
* for boolean properties in DTOs.
|
|
5
|
+
*
|
|
6
|
+
* This decorator handles boolean properties with support for:
|
|
7
|
+
* - Single boolean values or arrays of booleans
|
|
8
|
+
* - Response/Request specific decorators
|
|
9
|
+
* - Intelligent type conversion from various input types to boolean
|
|
10
|
+
* - Array validation with min/max items
|
|
11
|
+
* - Nullable values
|
|
12
|
+
*
|
|
13
|
+
* The decorator provides smart type conversion that handles string values ('true'/'false', '1'/'0'),
|
|
14
|
+
* number values (0/non-zero), and proper boolean values. This makes it robust when working with
|
|
15
|
+
* form data and query parameters.
|
|
16
|
+
* @param {TApiPropertyBaseProperties} properties - Configuration options for the boolean property
|
|
17
|
+
* @returns {Function} A decorator function that can be applied to a class property
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* // Simple boolean property
|
|
21
|
+
* class UserDto {
|
|
22
|
+
* @ApiPropertyBoolean({
|
|
23
|
+
* entity: { name: 'User' },
|
|
24
|
+
* description: 'is active',
|
|
25
|
+
* isRequired: true
|
|
26
|
+
* })
|
|
27
|
+
* isActive: boolean;
|
|
28
|
+
* }
|
|
29
|
+
*
|
|
30
|
+
* // Optional boolean property
|
|
31
|
+
* class ProductDto {
|
|
32
|
+
* @ApiPropertyBoolean({
|
|
33
|
+
* entity: { name: 'Product' },
|
|
34
|
+
* description: 'is featured',
|
|
35
|
+
* isRequired: false
|
|
36
|
+
* })
|
|
37
|
+
* isFeatured?: boolean;
|
|
38
|
+
* }
|
|
39
|
+
*
|
|
40
|
+
* // Array of boolean flags
|
|
41
|
+
* class PermissionsDto {
|
|
42
|
+
* @ApiPropertyBoolean({
|
|
43
|
+
* entity: { name: 'Permission' },
|
|
44
|
+
* description: 'flags',
|
|
45
|
+
* isArray: true,
|
|
46
|
+
* minItems: 1,
|
|
47
|
+
* maxItems: 10
|
|
48
|
+
* })
|
|
49
|
+
* flags: boolean[];
|
|
50
|
+
* }
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
2
53
|
export declare function ApiPropertyBoolean(properties: TApiPropertyBaseProperties): <Y>(target: object, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var common = require('@nestjs/common');
|
|
4
|
-
var swagger = require('@nestjs/swagger');
|
|
5
|
-
var classTransformer = require('class-transformer');
|
|
6
|
-
var classValidator = require('class-validator');
|
|
7
3
|
require('../../../enum/decorator/api/action.enum.js');
|
|
8
4
|
require('../../../enum/decorator/api/authentication-type.enum.js');
|
|
9
5
|
require('../../../enum/decorator/api/controller/load-relations-strategy.enum.js');
|
|
@@ -17,16 +13,74 @@ require('../../../enum/decorator/api/property/desribe-type.enum.js');
|
|
|
17
13
|
require('../../../enum/decorator/api/property/number-type.enum.js');
|
|
18
14
|
require('../../../enum/decorator/api/property/string-type.enum.js');
|
|
19
15
|
require('../../../enum/decorator/api/route-type.enum.js');
|
|
20
|
-
require('
|
|
21
|
-
require('
|
|
22
|
-
require('
|
|
16
|
+
var common = require('@nestjs/common');
|
|
17
|
+
var swagger = require('@nestjs/swagger');
|
|
18
|
+
var classTransformer = require('class-transformer');
|
|
19
|
+
var classValidator = require('class-validator');
|
|
23
20
|
|
|
21
|
+
/**
|
|
22
|
+
* Creates a decorator that applies NestJS Swagger and class-validator/class-transformer decorators
|
|
23
|
+
* for boolean properties in DTOs.
|
|
24
|
+
*
|
|
25
|
+
* This decorator handles boolean properties with support for:
|
|
26
|
+
* - Single boolean values or arrays of booleans
|
|
27
|
+
* - Response/Request specific decorators
|
|
28
|
+
* - Intelligent type conversion from various input types to boolean
|
|
29
|
+
* - Array validation with min/max items
|
|
30
|
+
* - Nullable values
|
|
31
|
+
*
|
|
32
|
+
* The decorator provides smart type conversion that handles string values ('true'/'false', '1'/'0'),
|
|
33
|
+
* number values (0/non-zero), and proper boolean values. This makes it robust when working with
|
|
34
|
+
* form data and query parameters.
|
|
35
|
+
* @param {TApiPropertyBaseProperties} properties - Configuration options for the boolean property
|
|
36
|
+
* @returns {Function} A decorator function that can be applied to a class property
|
|
37
|
+
* @example
|
|
38
|
+
* ```typescript
|
|
39
|
+
* // Simple boolean property
|
|
40
|
+
* class UserDto {
|
|
41
|
+
* @ApiPropertyBoolean({
|
|
42
|
+
* entity: { name: 'User' },
|
|
43
|
+
* description: 'is active',
|
|
44
|
+
* isRequired: true
|
|
45
|
+
* })
|
|
46
|
+
* isActive: boolean;
|
|
47
|
+
* }
|
|
48
|
+
*
|
|
49
|
+
* // Optional boolean property
|
|
50
|
+
* class ProductDto {
|
|
51
|
+
* @ApiPropertyBoolean({
|
|
52
|
+
* entity: { name: 'Product' },
|
|
53
|
+
* description: 'is featured',
|
|
54
|
+
* isRequired: false
|
|
55
|
+
* })
|
|
56
|
+
* isFeatured?: boolean;
|
|
57
|
+
* }
|
|
58
|
+
*
|
|
59
|
+
* // Array of boolean flags
|
|
60
|
+
* class PermissionsDto {
|
|
61
|
+
* @ApiPropertyBoolean({
|
|
62
|
+
* entity: { name: 'Permission' },
|
|
63
|
+
* description: 'flags',
|
|
64
|
+
* isArray: true,
|
|
65
|
+
* minItems: 1,
|
|
66
|
+
* maxItems: 10
|
|
67
|
+
* })
|
|
68
|
+
* flags: boolean[];
|
|
69
|
+
* }
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
24
72
|
function ApiPropertyBoolean(properties) {
|
|
25
73
|
validateOptions(properties);
|
|
26
74
|
const apiPropertyOptions = buildApiPropertyOptions(properties);
|
|
27
75
|
const decorators = buildDecorators(properties, apiPropertyOptions);
|
|
28
76
|
return common.applyDecorators(...decorators);
|
|
29
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Builds the API property options object from the provided property configuration
|
|
80
|
+
* @param {TApiPropertyBaseProperties} properties - The property configuration
|
|
81
|
+
* @returns {ApiPropertyOptions} The Swagger API property options object
|
|
82
|
+
* @private
|
|
83
|
+
*/
|
|
30
84
|
function buildApiPropertyOptions(properties) {
|
|
31
85
|
const apiPropertyOptions = {
|
|
32
86
|
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
@@ -47,11 +101,24 @@ function buildApiPropertyOptions(properties) {
|
|
|
47
101
|
}
|
|
48
102
|
return apiPropertyOptions;
|
|
49
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Builds all the necessary decorators for the property based on the configuration
|
|
106
|
+
* @param {TApiPropertyBaseProperties} properties - The property configuration
|
|
107
|
+
* @param {ApiPropertyOptions} apiPropertyOptions - The Swagger API property options
|
|
108
|
+
* @returns {Array<PropertyDecorator>} An array of decorators to apply to the property
|
|
109
|
+
* @private
|
|
110
|
+
*/
|
|
50
111
|
function buildDecorators(properties, apiPropertyOptions) {
|
|
51
112
|
const decorators = [swagger.ApiProperty(apiPropertyOptions)];
|
|
52
113
|
decorators.push(...buildResponseDecorators(properties), ...buildRequestDecorators(properties), ...buildFormatDecorators(properties), ...buildTransformDecorators(properties));
|
|
53
114
|
return decorators;
|
|
54
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* Builds decorators for format validation
|
|
118
|
+
* @param {TApiPropertyBaseProperties} properties - The property configuration
|
|
119
|
+
* @returns {Array<PropertyDecorator>} An array of format validation decorators
|
|
120
|
+
* @private
|
|
121
|
+
*/
|
|
55
122
|
function buildFormatDecorators(properties) {
|
|
56
123
|
const decorators = [];
|
|
57
124
|
const isArray = properties.isArray ?? false;
|
|
@@ -61,6 +128,12 @@ function buildFormatDecorators(properties) {
|
|
|
61
128
|
}
|
|
62
129
|
return decorators;
|
|
63
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* Builds decorators for request validation including optional status and array validation
|
|
133
|
+
* @param {TApiPropertyBaseProperties} properties - The property configuration
|
|
134
|
+
* @returns {Array<PropertyDecorator>} An array of request validation decorators
|
|
135
|
+
* @private
|
|
136
|
+
*/
|
|
64
137
|
function buildRequestDecorators(properties) {
|
|
65
138
|
const decorators = [];
|
|
66
139
|
if (properties.isResponse === false || properties.isResponse === undefined) {
|
|
@@ -76,6 +149,12 @@ function buildRequestDecorators(properties) {
|
|
|
76
149
|
}
|
|
77
150
|
return decorators;
|
|
78
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* Builds decorators for response serialization including API response property and expose/exclude
|
|
154
|
+
* @param {TApiPropertyBaseProperties} properties - The property configuration
|
|
155
|
+
* @returns {Array<PropertyDecorator>} An array of response serialization decorators
|
|
156
|
+
* @private
|
|
157
|
+
*/
|
|
79
158
|
function buildResponseDecorators(properties) {
|
|
80
159
|
const decorators = [];
|
|
81
160
|
if (properties.isResponse) {
|
|
@@ -89,6 +168,12 @@ function buildResponseDecorators(properties) {
|
|
|
89
168
|
}
|
|
90
169
|
return decorators;
|
|
91
170
|
}
|
|
171
|
+
/**
|
|
172
|
+
* Builds decorators for type transformation including handling various input types to boolean
|
|
173
|
+
* @param {TApiPropertyBaseProperties} properties - The property configuration
|
|
174
|
+
* @returns {Array<PropertyDecorator>} An array of type transformation decorators
|
|
175
|
+
* @private
|
|
176
|
+
*/
|
|
92
177
|
function buildTransformDecorators(properties) {
|
|
93
178
|
const decorators = [];
|
|
94
179
|
if (!properties.isResponse) {
|
|
@@ -156,6 +241,13 @@ function buildTransformDecorators(properties) {
|
|
|
156
241
|
}
|
|
157
242
|
return decorators;
|
|
158
243
|
}
|
|
244
|
+
/**
|
|
245
|
+
* Validates the configuration options for the API property
|
|
246
|
+
* @param {TApiPropertyBaseProperties} properties - The property configuration to validate
|
|
247
|
+
* @returns {void}
|
|
248
|
+
* @throws {Error} If the configuration is invalid
|
|
249
|
+
* @private
|
|
250
|
+
*/
|
|
159
251
|
function validateOptions(properties) {
|
|
160
252
|
const errors = [];
|
|
161
253
|
if (properties.isArray === true) {
|
|
@@ -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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outeType } from '../../../enum/decorator/api/index';
|
|
2
|
+
import type { Type } from "@nestjs/common";
|
|
3
|
+
import type { IAuthGuard } from "@nestjs/passport";
|
|
4
|
+
import type { TApiPropertyDescribeProperties } from '../../../type/decorator/api/property/index';
|
|
5
|
+
/**
|
|
6
|
+
* Decorator that copies decorators from an automatically generated DTO property.
|
|
7
|
+
* @param {Type<E>} entity - The entity to copy decorators from
|
|
8
|
+
* @param {string} propertyName - The name of the property to copy decorators from
|
|
9
|
+
* @param {EApiRouteType} method - The API route method type (GET, CREATE, UPDATE, etc.)
|
|
10
|
+
* @param {EApiDtoType} dtoType - The DTO type (BODY, QUERY, RESPONSE, etc.)
|
|
11
|
+
* @param {Partial<TApiPropertyDescribeProperties>} metadata - Optional metadata to apply to the copied decorators
|
|
12
|
+
* @param {Type<IAuthGuard>} currentGuard - Optional auth guard to use for security filtering
|
|
13
|
+
* @returns {PropertyDecorator} PropertyDecorator - A decorator that applies all decorators from the generated DTO
|
|
14
|
+
* @template E - The entity type
|
|
15
|
+
*/
|
|
16
|
+
export declare function ApiPropertyCopy<E>(entity: Type<E>, propertyName: keyof E, method: EApiRouteType, dtoType: EApiDtoType, metadata?: Partial<TApiPropertyDescribeProperties>, currentGuard?: Type<IAuthGuard>): PropertyDecorator;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('../../../constant/decorator/api/function.constant.js');
|
|
4
|
+
var propertyDescribe_constant = require('../../../constant/decorator/api/property-describe.constant.js');
|
|
5
|
+
var common = require('@nestjs/common');
|
|
6
|
+
var buildDecorator_utility = require('../../../utility/dto/build-decorator.utility.js');
|
|
7
|
+
var generateDynamic_utility = require('../../../utility/dto/generate-dynamic.utility.js');
|
|
8
|
+
var errorException_utility = require('../../../utility/error-exception.utility.js');
|
|
9
|
+
var generateEntityInformation_utility = require('../../../utility/generate-entity-information.utility.js');
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Decorator that copies decorators from an automatically generated DTO property.
|
|
13
|
+
* @param {Type<E>} entity - The entity to copy decorators from
|
|
14
|
+
* @param {string} propertyName - The name of the property to copy decorators from
|
|
15
|
+
* @param {EApiRouteType} method - The API route method type (GET, CREATE, UPDATE, etc.)
|
|
16
|
+
* @param {EApiDtoType} dtoType - The DTO type (BODY, QUERY, RESPONSE, etc.)
|
|
17
|
+
* @param {Partial<TApiPropertyDescribeProperties>} metadata - Optional metadata to apply to the copied decorators
|
|
18
|
+
* @param {Type<IAuthGuard>} currentGuard - Optional auth guard to use for security filtering
|
|
19
|
+
* @returns {PropertyDecorator} PropertyDecorator - A decorator that applies all decorators from the generated DTO
|
|
20
|
+
* @template E - The entity type
|
|
21
|
+
*/
|
|
22
|
+
function ApiPropertyCopy(entity, propertyName, method, dtoType, metadata, currentGuard) {
|
|
23
|
+
return function (target, key) {
|
|
24
|
+
const entityMetadata = generateEntityInformation_utility.GenerateEntityInformation(entity);
|
|
25
|
+
if (!entityMetadata?.columns) {
|
|
26
|
+
throw errorException_utility.ErrorException(`Entity metadata for ${String(entity.name)} not found or invalid`);
|
|
27
|
+
}
|
|
28
|
+
const column = entityMetadata.columns.find((column) => column.name == propertyName);
|
|
29
|
+
if (!column) {
|
|
30
|
+
throw errorException_utility.ErrorException(`Property ${String(propertyName)} not found in entity ${String(entity.name)}`);
|
|
31
|
+
}
|
|
32
|
+
let propertyMetadata = column.metadata?.[propertyDescribe_constant.PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT.METADATA_PROPERTY_NAME];
|
|
33
|
+
if (!propertyMetadata) {
|
|
34
|
+
throw errorException_utility.ErrorException(`Metadata for property ${String(propertyName)} in entity ${String(entity.name)} not found`);
|
|
35
|
+
}
|
|
36
|
+
if (metadata) {
|
|
37
|
+
propertyMetadata = { ...propertyMetadata, ...metadata };
|
|
38
|
+
}
|
|
39
|
+
const generatedDTOs = generateDynamic_utility.DtoGenerateDynamic(method, propertyMetadata, entityMetadata, dtoType, propertyName, currentGuard);
|
|
40
|
+
const decorators = buildDecorator_utility.DtoBuildDecorator(method, propertyMetadata, entityMetadata, dtoType, propertyName, currentGuard, generatedDTOs);
|
|
41
|
+
if (!decorators || decorators.length === 0) {
|
|
42
|
+
throw errorException_utility.ErrorException(`No decorators generated for property ${String(propertyName)} in entity ${String(entity.name)}`);
|
|
43
|
+
}
|
|
44
|
+
common.applyDecorators(...decorators)(target, key);
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
exports.ApiPropertyCopy = ApiPropertyCopy;
|
|
49
|
+
//# sourceMappingURL=copy.decorator.js.map
|
|
@@ -0,0 +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,sBAAsB,CAAmC;QAE3K,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;;;;"}
|
|
@@ -1,2 +1,57 @@
|
|
|
1
|
-
import type { TApiPropertyDateProperties } from
|
|
1
|
+
import type { TApiPropertyDateProperties } from '../../../type/decorator/api/property/index';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a decorator that applies NestJS Swagger and class-validator/class-transformer decorators
|
|
4
|
+
* for date properties in DTOs.
|
|
5
|
+
*
|
|
6
|
+
* This decorator handles date properties with support for:
|
|
7
|
+
* - Various date formats (date, datetime, time)
|
|
8
|
+
* - Predefined date types (createdAt, updatedAt, expiresIn, etc.)
|
|
9
|
+
* - Single dates or arrays of dates
|
|
10
|
+
* - Response/Request specific decorators
|
|
11
|
+
* - Automatic transformation from string to Date objects
|
|
12
|
+
* - Validation with appropriate patterns for each format
|
|
13
|
+
*
|
|
14
|
+
* The decorator provides appropriate examples and validation patterns based on the format,
|
|
15
|
+
* and handles string-to-Date transformation for request DTOs.
|
|
16
|
+
* @param {TApiPropertyDateProperties} properties - Configuration options for the date property
|
|
17
|
+
* @returns {Function} A decorator function that can be applied to a class property
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* // Simple date property (YYYY-MM-DD)
|
|
21
|
+
* class EventDto {
|
|
22
|
+
* @ApiPropertyDate({
|
|
23
|
+
* entity: { name: 'Event' },
|
|
24
|
+
* identifier: EApiPropertyDateIdentifier.DATE,
|
|
25
|
+
* format: EApiPropertyDateType.DATE,
|
|
26
|
+
* isRequired: true
|
|
27
|
+
* })
|
|
28
|
+
* date: Date;
|
|
29
|
+
* }
|
|
30
|
+
*
|
|
31
|
+
* // DateTime property for createdAt (ISO format)
|
|
32
|
+
* class UserDto {
|
|
33
|
+
* @ApiPropertyDate({
|
|
34
|
+
* entity: { name: 'User' },
|
|
35
|
+
* identifier: EApiPropertyDateIdentifier.CREATED_AT,
|
|
36
|
+
* format: EApiPropertyDateType.DATE_TIME,
|
|
37
|
+
* isResponse: true
|
|
38
|
+
* })
|
|
39
|
+
* createdAt: Date;
|
|
40
|
+
* }
|
|
41
|
+
*
|
|
42
|
+
* // Array of time values
|
|
43
|
+
* class ScheduleDto {
|
|
44
|
+
* @ApiPropertyDate({
|
|
45
|
+
* entity: { name: 'Schedule' },
|
|
46
|
+
* identifier: EApiPropertyDateIdentifier.DATE,
|
|
47
|
+
* format: EApiPropertyDateType.TIME,
|
|
48
|
+
* isArray: true,
|
|
49
|
+
* minItems: 1,
|
|
50
|
+
* maxItems: 10,
|
|
51
|
+
* isUniqueItems: true
|
|
52
|
+
* })
|
|
53
|
+
* availableTimes: Date[];
|
|
54
|
+
* }
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
2
57
|
export declare function ApiPropertyDate(properties: TApiPropertyDateProperties): <Y>(target: object, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
|