@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 { EApiRouteType } from
|
|
1
|
+
import type { EApiRouteType } from '../../../enum/decorator/api/index';
|
|
2
|
+
/**
|
|
3
|
+
* Generates a standardized method name for controller methods based on the API route type.
|
|
4
|
+
* Prefixes the method name with a reserved prefix defined in constants.
|
|
5
|
+
* @param {EApiRouteType} method - The API route type (CREATE, DELETE, GET, etc.)
|
|
6
|
+
* @returns {string} The generated method name
|
|
7
|
+
*/
|
|
2
8
|
export declare function ApiControllerGetMethodName(method: EApiRouteType): string;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { CONTROLLER_API_DECORATOR_CONSTANT } from '../../../constant/decorator/api/controller.constant.js';
|
|
2
2
|
import '../../../constant/decorator/api/function.constant.js';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Generates a standardized method name for controller methods based on the API route type.
|
|
6
|
+
* Prefixes the method name with a reserved prefix defined in constants.
|
|
7
|
+
* @param {EApiRouteType} method - The API route type (CREATE, DELETE, GET, etc.)
|
|
8
|
+
* @returns {string} The generated method name
|
|
9
|
+
*/
|
|
4
10
|
function ApiControllerGetMethodName(method) {
|
|
5
11
|
return `${CONTROLLER_API_DECORATOR_CONSTANT.RESERVED_METHOD_PREFIX}${method}`;
|
|
6
12
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-method-name.utility.js","sources":["../../../../../../src/utility/api/controller/get-method-name.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAIA;;;;;AAKG;AACG,SAAU,0BAA0B,CAAC,MAAqB,EAAA;AAC/D,IAAA,OAAO,GAAG,iCAAiC,CAAC,sBAAsB,CAAG,EAAA,MAAM,EAAE;AAC9E;;;;"}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import type { IApiEntity } from '../../../interface/entity/index';
|
|
2
|
+
import type { IApiControllerPrimaryColumn } from '../../../interface/utility/index';
|
|
1
3
|
import type { DeepPartial } from "typeorm";
|
|
2
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Extracts the primary key column and its value from an entity's metadata.
|
|
6
|
+
* Used for CRUD operations that need to identify records by primary key.
|
|
7
|
+
* @param {DeepPartial<E> | Partial<E>} parameters - The request parameters containing the primary key value
|
|
8
|
+
* @param {IApiEntity<E>} entityMetadata - The entity metadata containing column information
|
|
9
|
+
* @returns {IApiControllerPrimaryColumn<E> | undefined} The primary key information or undefined if no primary key is found
|
|
10
|
+
* @template E - The entity type
|
|
11
|
+
*/
|
|
3
12
|
export declare function ApiControllerGetPrimaryColumn<E>(parameters: DeepPartial<E> | Partial<E>, entityMetadata: IApiEntity<E>): IApiControllerPrimaryColumn<E> | undefined;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extracts the primary key column and its value from an entity's metadata.
|
|
3
|
+
* Used for CRUD operations that need to identify records by primary key.
|
|
4
|
+
* @param {DeepPartial<E> | Partial<E>} parameters - The request parameters containing the primary key value
|
|
5
|
+
* @param {IApiEntity<E>} entityMetadata - The entity metadata containing column information
|
|
6
|
+
* @returns {IApiControllerPrimaryColumn<E> | undefined} The primary key information or undefined if no primary key is found
|
|
7
|
+
* @template E - The entity type
|
|
8
|
+
*/
|
|
9
|
+
function ApiControllerGetPrimaryColumn(parameters, entityMetadata) {
|
|
10
|
+
const primaryKeyColumn = entityMetadata.columns.find((column) => column.isPrimary);
|
|
11
|
+
if (!primaryKeyColumn) {
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
key: primaryKeyColumn.name,
|
|
16
|
+
value: parameters[primaryKeyColumn.name],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { ApiControllerGetPrimaryColumn };
|
|
21
|
+
//# sourceMappingURL=get-primary-column.utility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-primary-column.utility.js","sources":["../../../../../../src/utility/api/controller/get-primary-column.utility.ts"],"sourcesContent":[null],"names":[],"mappings":"AAIA;;;;;;;AAOG;AACa,SAAA,6BAA6B,CAAI,UAAuC,EAAE,cAA6B,EAAA;AACtH,IAAA,MAAM,gBAAgB,GAAoC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAA2B,KAAoC,MAAM,CAAC,SAAS,CAAC;IAEvK,IAAI,CAAC,gBAAgB,EAAE;AACtB,QAAA,OAAO,SAAS;;IAGjB,OAAO;QACN,GAAG,EAAE,gBAAgB,CAAC,IAAI;AAC1B,QAAA,KAAK,EAAE,UAAU,CAAC,gBAAgB,CAAC,IAA4B,CAAW;KAC1E;AACF;;;;"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
+
import type { IApiControllerProperties } from '../../../interface/decorator/api/index';
|
|
2
|
+
import type { TApiControllerMethod } from '../../../type/class/index';
|
|
3
|
+
import type { TApiControllerGetListQuery, TApiControllerPropertiesRouteBaseRequestRelations } from '../../../type/decorator/api/controller/index';
|
|
1
4
|
import type { DeepPartial } from "typeorm";
|
|
2
|
-
|
|
3
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Manages loading related entities when processing API requests.
|
|
7
|
+
* Determines which relations to load based on configuration strategy (MANUAL or AUTO),
|
|
8
|
+
* finds the appropriate service for each relation, and loads the related entities.
|
|
9
|
+
* @param {TApiControllerMethod<E>} controllerMethod - The controller method with access to service instances
|
|
10
|
+
* @param {IApiControllerProperties<E>} properties - Controller configuration properties
|
|
11
|
+
* @param {TApiControllerPropertiesRouteBaseRequestRelations<E> | undefined} relationConfig - Configuration for relation loading
|
|
12
|
+
* @param {DeepPartial<E> | Partial<E> | TApiControllerGetListQuery<E>} parameters - The request parameters containing relation IDs
|
|
13
|
+
* @returns {Promise<void>} A promise that resolves when all relations are loaded
|
|
14
|
+
* @throws {BadRequestException} When an invalid relation ID is provided
|
|
15
|
+
* @throws {Error} When service configuration is invalid or services are not found
|
|
16
|
+
* @template E - The entity type
|
|
17
|
+
* @template R - The route type
|
|
18
|
+
*/
|
|
4
19
|
export declare function ApiControllerHandleRequestRelations<E>(controllerMethod: TApiControllerMethod<E>, properties: IApiControllerProperties<E>, relationConfig: TApiControllerPropertiesRouteBaseRequestRelations<E> | undefined, parameters: DeepPartial<E> | Partial<E> | TApiControllerGetListQuery<E>): Promise<void>;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { BadRequestException } from '@nestjs/common';
|
|
2
1
|
import { ApiServiceBase } from '../../../class/api/service-base.class.js';
|
|
3
|
-
import '../../../constant/decorator/api/function.constant.js';
|
|
4
2
|
import '../../../enum/decorator/api/action.enum.js';
|
|
5
3
|
import '../../../enum/decorator/api/authentication-type.enum.js';
|
|
6
4
|
import { EApiControllerLoadRelationsStrategy } from '../../../enum/decorator/api/controller/load-relations-strategy.enum.js';
|
|
@@ -14,12 +12,24 @@ import '../../../enum/decorator/api/property/desribe-type.enum.js';
|
|
|
14
12
|
import '../../../enum/decorator/api/property/number-type.enum.js';
|
|
15
13
|
import '../../../enum/decorator/api/property/string-type.enum.js';
|
|
16
14
|
import '../../../enum/decorator/api/route-type.enum.js';
|
|
17
|
-
import '
|
|
18
|
-
import '../../../enum/filter-order-direction.enum.js';
|
|
19
|
-
import '../../../enum/utility/error-string-action.enum.js';
|
|
15
|
+
import { BadRequestException } from '@nestjs/common';
|
|
20
16
|
import { ErrorException } from '../../error-exception.utility.js';
|
|
21
17
|
import { GetEntityColumns } from '../../get-entity-columns.utility.js';
|
|
22
18
|
|
|
19
|
+
/**
|
|
20
|
+
* Manages loading related entities when processing API requests.
|
|
21
|
+
* Determines which relations to load based on configuration strategy (MANUAL or AUTO),
|
|
22
|
+
* finds the appropriate service for each relation, and loads the related entities.
|
|
23
|
+
* @param {TApiControllerMethod<E>} controllerMethod - The controller method with access to service instances
|
|
24
|
+
* @param {IApiControllerProperties<E>} properties - Controller configuration properties
|
|
25
|
+
* @param {TApiControllerPropertiesRouteBaseRequestRelations<E> | undefined} relationConfig - Configuration for relation loading
|
|
26
|
+
* @param {DeepPartial<E> | Partial<E> | TApiControllerGetListQuery<E>} parameters - The request parameters containing relation IDs
|
|
27
|
+
* @returns {Promise<void>} A promise that resolves when all relations are loaded
|
|
28
|
+
* @throws {BadRequestException} When an invalid relation ID is provided
|
|
29
|
+
* @throws {Error} When service configuration is invalid or services are not found
|
|
30
|
+
* @template E - The entity type
|
|
31
|
+
* @template R - The route type
|
|
32
|
+
*/
|
|
23
33
|
async function ApiControllerHandleRequestRelations(controllerMethod, properties, relationConfig, parameters) {
|
|
24
34
|
if (relationConfig?.shouldLoadRelations) {
|
|
25
35
|
for (const propertyName of GetEntityColumns({ entity: properties.entity, shouldTakeRelationsOnly: true })) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handle-request-relations.utility.js","sources":["../../../../../../src/utility/api/controller/handle-request-relations.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAaA;;;;;;;;;;;;;AAaG;AACI,eAAe,mCAAmC,CAAI,gBAAyC,EAAE,UAAuC,EAAE,cAAgF,EAAE,UAAuE,EAAA;AACzS,IAAA,IAAI,cAAc,EAAE,mBAAmB,EAAE;AACxC,QAAA,KAAK,MAAM,YAAY,IAAI,gBAAgB,CAAI,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,uBAAuB,EAAE,IAAI,EAAE,CAAC,EAAE;;AAE7G,YAAA,IAAI,UAAU,CAAC,YAAY,CAAC,KAAK,SAAS,IAAI,OAAO,YAAY,KAAK,QAAQ,EAAE;AAC/E,gBAAA,IAAI,cAAc,CAAC,qBAA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yB,MAAM,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAwB;gBAEjG,IAAI,CAAC,MAAM,EAAE;oBACZ,MAAM,IAAI,mBAAmB,CAAC,CAAW,QAAA,EAAA,MAAM,CAAC,YAAY,CAAC,CAAK,GAAA,CAAA,CAAC;;;AAIpE,gBAAA,UAAU,CAAC,YAAY,CAAC,GAAG,MAAM;;;;AAIrC;;;;"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export * from
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
1
|
+
export { ApiControllerApplyDecorators } from './apply-decorators.utility';
|
|
2
|
+
export { ApiControllerApplyMetadata } from './apply-metadata.utility';
|
|
3
|
+
export * from './get-list/index';
|
|
4
|
+
export { ApiControllerGetMethodName } from './get-method-name.utility';
|
|
5
|
+
export { ApiControllerGetPrimaryColumn } from './get-primary-column.utility';
|
|
6
|
+
export { ApiControllerHandleRequestRelations } from './handle-request-relations.utility';
|
|
7
|
+
export { ApiControllerTransformData } from './transform-data.utility';
|
|
8
|
+
export { ApiControllerValidateRequest } from './validate-request.utility';
|
|
9
|
+
export { ApiControllerWriteDtoSwagger } from './write-dto-swagger.utility';
|
|
10
|
+
export { ApiControllerWriteMethod } from './write-method.utility';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
import type { EApiRouteType } from
|
|
2
|
-
import type { IApiControllerProperties } from
|
|
3
|
-
import type { TApiControllerPropertiesRouteBaseRequestTransformers, TApiControllerPropertiesRouteBaseResponseTransformers
|
|
1
|
+
import type { EApiRouteType } from '../../../enum/decorator/api/index';
|
|
2
|
+
import type { IApiControllerProperties } from '../../../interface/decorator/api/index';
|
|
3
|
+
import type { TApiControllerPropertiesRouteBaseRequestTransformers, TApiControllerPropertiesRouteBaseResponseTransformers } from '../../../type/decorator/api/controller/index';
|
|
4
|
+
import type { TApiControllerTransformDataData, TApiControllerTransformDataObjectToTransform } from '../../../type/utility/index';
|
|
5
|
+
/**
|
|
6
|
+
* Transforms data between request/response objects and entity objects.
|
|
7
|
+
* Handles both static and dynamic transformations for body, query, request, and response data.
|
|
8
|
+
* @param {TApiControllerPropertiesRouteBaseRequestTransformers<E, R> | TApiControllerPropertiesRouteBaseResponseTransformers<E, R> | undefined} transformers - Configuration for data transformations
|
|
9
|
+
* @param {IApiControllerProperties<E>} properties - Controller configuration properties
|
|
10
|
+
* @param {TApiControllerTransformDataObjectToTransform<E>} objectToTransform - The object to apply transformations to
|
|
11
|
+
* @param {TApiControllerTransformDataData} data - Data sources to use for transformations including headers, IP address, and authentication
|
|
12
|
+
* @returns {void}
|
|
13
|
+
* @template E - The entity type
|
|
14
|
+
* @template R - The route type
|
|
15
|
+
*/
|
|
4
16
|
export declare function ApiControllerTransformData<E, R extends EApiRouteType>(transformers: TApiControllerPropertiesRouteBaseRequestTransformers<E, R> | TApiControllerPropertiesRouteBaseResponseTransformers<E, R> | undefined, properties: IApiControllerProperties<E>, objectToTransform: TApiControllerTransformDataObjectToTransform<E>, data: TApiControllerTransformDataData): void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InternalServerErrorException } from '@nestjs/common';
|
|
2
1
|
import { TRANSFORMER_VALUE_DTO_CONSTANT } from '../../../constant/dto/transformer-value.constant.js';
|
|
3
2
|
import '../../../enum/decorator/api/action.enum.js';
|
|
4
3
|
import '../../../enum/decorator/api/authentication-type.enum.js';
|
|
@@ -13,11 +12,21 @@ import '../../../enum/decorator/api/property/desribe-type.enum.js';
|
|
|
13
12
|
import '../../../enum/decorator/api/property/number-type.enum.js';
|
|
14
13
|
import '../../../enum/decorator/api/property/string-type.enum.js';
|
|
15
14
|
import '../../../enum/decorator/api/route-type.enum.js';
|
|
16
|
-
import '../../../enum/exception.enum.js';
|
|
17
|
-
import '../../../enum/filter-order-direction.enum.js';
|
|
18
15
|
import { EErrorStringAction } from '../../../enum/utility/error-string-action.enum.js';
|
|
16
|
+
import { InternalServerErrorException } from '@nestjs/common';
|
|
19
17
|
import { ErrorString } from '../../error-string.utility.js';
|
|
20
18
|
|
|
19
|
+
/**
|
|
20
|
+
* Transforms data between request/response objects and entity objects.
|
|
21
|
+
* Handles both static and dynamic transformations for body, query, request, and response data.
|
|
22
|
+
* @param {TApiControllerPropertiesRouteBaseRequestTransformers<E, R> | TApiControllerPropertiesRouteBaseResponseTransformers<E, R> | undefined} transformers - Configuration for data transformations
|
|
23
|
+
* @param {IApiControllerProperties<E>} properties - Controller configuration properties
|
|
24
|
+
* @param {TApiControllerTransformDataObjectToTransform<E>} objectToTransform - The object to apply transformations to
|
|
25
|
+
* @param {TApiControllerTransformDataData} data - Data sources to use for transformations including headers, IP address, and authentication
|
|
26
|
+
* @returns {void}
|
|
27
|
+
* @template E - The entity type
|
|
28
|
+
* @template R - The route type
|
|
29
|
+
*/
|
|
21
30
|
function ApiControllerTransformData(transformers, properties, objectToTransform, data) {
|
|
22
31
|
if (!transformers)
|
|
23
32
|
return;
|
|
@@ -46,6 +55,17 @@ function ApiControllerTransformData(transformers, properties, objectToTransform,
|
|
|
46
55
|
}
|
|
47
56
|
}
|
|
48
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Handles transformation of object properties, setting values with appropriate type handling.
|
|
60
|
+
* @param {TApiTransformDataIsValidationProperties<E>} object - The object to transform
|
|
61
|
+
* @param {keyof E | keyof IApiGetListResponseResult<E> | keyof TApiControllerGetListQuery<E>} key - The property key
|
|
62
|
+
* @param {unknown} value - The value to set
|
|
63
|
+
* @param {IApiBaseEntity} entity - The entity metadata
|
|
64
|
+
* @param {boolean} [shouldSetValueEvenIfMissing] - Whether to set the value even if the key is missing
|
|
65
|
+
* @returns {void}
|
|
66
|
+
* @throws {InternalServerErrorException} When key not found in object and not forced
|
|
67
|
+
* @private
|
|
68
|
+
*/
|
|
49
69
|
function handleTransformation(object, key, value, entity, shouldSetValueEvenIfMissing = false) {
|
|
50
70
|
if (isApiGetListResponseResult(object)) {
|
|
51
71
|
if (key in object) {
|
|
@@ -70,15 +90,44 @@ function handleTransformation(object, key, value, entity, shouldSetValueEvenIfMi
|
|
|
70
90
|
}));
|
|
71
91
|
}
|
|
72
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Checks if an object is a get list query properties instance.
|
|
95
|
+
* @param {TApiTransformDataIsValidationProperties<E>} object - The object to check
|
|
96
|
+
* @returns {boolean} True if the object is a get list query object
|
|
97
|
+
* @private
|
|
98
|
+
*/
|
|
73
99
|
function isApiFunctionGetListProperties(object) {
|
|
74
100
|
return "limit" in object && "page" in object;
|
|
75
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* Checks if an object is a get list response result instance.
|
|
104
|
+
* @param {TApiTransformDataIsValidationProperties<E>} object - The object to check
|
|
105
|
+
* @returns {boolean} True if the object is a get list response result
|
|
106
|
+
* @private
|
|
107
|
+
*/
|
|
76
108
|
function isApiGetListResponseResult(object) {
|
|
77
109
|
return "items" in object && "totalCount" in object;
|
|
78
110
|
}
|
|
111
|
+
/**
|
|
112
|
+
* Checks if an object is a partial entity instance.
|
|
113
|
+
* @param {TApiTransformDataIsValidationProperties<E>} object - The object to check
|
|
114
|
+
* @returns {boolean} True if the object is a partial entity
|
|
115
|
+
* @private
|
|
116
|
+
*/
|
|
79
117
|
function isPartialE(object) {
|
|
80
118
|
return !isApiGetListResponseResult(object) && !isApiFunctionGetListProperties(object);
|
|
81
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* Processes a single transformer, applying the transformation to the object.
|
|
122
|
+
* Handles both static and dynamic transformations including special values like user, IP, and headers.
|
|
123
|
+
* @param {TApiRequestTransformer<E>} transformer - The transformer configuration
|
|
124
|
+
* @param {TApiTransformDataIsValidationProperties<E>} objectToTransform - The object to transform
|
|
125
|
+
* @param {IApiControllerProperties<E>} properties - Controller configuration properties
|
|
126
|
+
* @param {TApiControllerTransformDataData} data - The data sources for transformation
|
|
127
|
+
* @returns {void}
|
|
128
|
+
* @throws {InternalServerErrorException} When required data for transformation is missing
|
|
129
|
+
* @private
|
|
130
|
+
*/
|
|
82
131
|
function processTransformer(transformer, objectToTransform, properties, data) {
|
|
83
132
|
switch (transformer.type) {
|
|
84
133
|
case EApiControllerRequestTransformerType.DYNAMIC: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform-data.utility.js","sources":["../../../../../../src/utility/api/controller/transform-data.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAaA;;;;;;;;;;AAUG;AACG,SAAU,0BAA0B,CAA6B,YAAkJ,EAAE,UAAuC,EAAE,iBAAkE,EAAE,IAAqC,EAAA;AAC5W,IAAA,IAAI,CAAC,YAAY;QAAE;AAEnB,IAAA,IAAI,WAAW,CAAC,IAAI,IAAI,YAAY,IAAI,YAAY,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;QACvE,KAAK,MAAM,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;YACzD,IAAI,iBAAiB,CAAC,IAAI;gBAAE,kBAAkB,CAAC,WAAW,EAAE,iBAAiB,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC;;;AAIvG,IAAA,IAAI,WAAW,CAAC,KAAK,IAAI,YAAY,IAAI,YAAY,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE;QACzE,KAAK,MAAM,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE;YAC1D,IAAI,iBAAiB,CAAC,KAAK;gBAAE,kBAAkB,CAAC,WAAW,EAAE,iBAAiB,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,CAAC;;;AAIzG,IAAA,IAAI,WAAW,CAAC,OAAO,IAAI,YAAY,IAAI,YAAY,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE;QAC7E,KAAK,MAAM,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE;YAC5D,IA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AY,CAAC,EAAE,UAAU,CAAC,MAAM,EAAE,WAAW,CAAC,2BAA2B,CAAC;wBAEhJ;;oBAGD,SAAS;AACR,wBAAA,MAAM,IAAI,4BAA4B,CACrC,WAAW,CAAC;4BACX,MAAM,EAAE,UAAU,CAAC,MAAM;4BACzB,IAAI,EAAE,kBAAkB,CAAC,+BAA+B;AACxD,yBAAA,CAAC,CACF;;;;iBAGG;AACN,gBAAA,MAAM,IAAI,4BAA4B,CACrC,WAAW,CAAC;oBACX,MAAM,EAAE,UAAU,CAAC,MAAM;oBACzB,IAAI,EAAE,kBAAkB,CAAC,+BAA+B;AACxD,iBAAA,CAAC,CACF;;YAGF;;AAGD,QAAA,KAAK,oCAAoC,CAAC,MAAM,EAAE;AACjD,YAAA,MAAM,WAAW,GAAW,WAAW,CAAC,KAAK;AAC7C,YAAA,oBAAoB,CAAC,iBAAiB,EAAE,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,UAAU,CAAC,MAAM,EAAE,WAAW,CAAC,2BAA2B,CAAC;YAEjI;;;AAGH;;;;"}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { IApiRequestValidator } from '../../../interface/api-request-validator.interface';
|
|
2
|
+
import type { IApiControllerProperties } from '../../../interface/decorator/api/index';
|
|
3
|
+
import type { TApiControllerGetListQuery } from '../../../type/decorator/api/controller/index';
|
|
4
|
+
/**
|
|
5
|
+
* Validates incoming request parameters against defined validators.
|
|
6
|
+
* Sequentially applies validation functions and throws appropriate exceptions with error messages when validation fails.
|
|
7
|
+
* @param {Array<IApiRequestValidator<E>> | undefined} validators - List of request validators to apply
|
|
8
|
+
* @param {IApiControllerProperties<E>} properties - Controller configuration properties
|
|
9
|
+
* @param {Partial<E> | TApiControllerGetListQuery<E>} parameters - The request parameters to validate
|
|
10
|
+
* @returns {Promise<void>} A promise that resolves when validation passes
|
|
11
|
+
* @template E - The entity type
|
|
12
|
+
*/
|
|
3
13
|
export declare function ApiControllerValidateRequest<E>(validators: Array<IApiRequestValidator<E>> | undefined, properties: IApiControllerProperties<E>, parameters: Partial<E> | TApiControllerGetListQuery<E>): Promise<void>;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { ErrorString } from '../../error-string.utility.js';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Validates incoming request parameters against defined validators.
|
|
5
|
+
* Sequentially applies validation functions and throws appropriate exceptions with error messages when validation fails.
|
|
6
|
+
* @param {Array<IApiRequestValidator<E>> | undefined} validators - List of request validators to apply
|
|
7
|
+
* @param {IApiControllerProperties<E>} properties - Controller configuration properties
|
|
8
|
+
* @param {Partial<E> | TApiControllerGetListQuery<E>} parameters - The request parameters to validate
|
|
9
|
+
* @returns {Promise<void>} A promise that resolves when validation passes
|
|
10
|
+
* @template E - The entity type
|
|
11
|
+
*/
|
|
3
12
|
async function ApiControllerValidateRequest(validators, properties, parameters) {
|
|
4
13
|
if (validators) {
|
|
5
14
|
for (const validator of validators) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-request.utility.js","sources":["../../../../../../src/utility/api/controller/validate-request.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAMA;;;;;;;;AAQG;AACI,eAAe,4BAA4B,CAAI,UAAsD,EAAE,UAAuC,EAAE,UAAsD,EAAA;IAC5M,IAAI,UAAU,EAAE;AACf,QAAA,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE;YACnC,MAAM,MAAM,GAA+B,SAAS,CAAC,kBAAkB,CAAC,UAAU,CAAC;AACnF,YAAA,MAAM,OAAO,GAAY,MAAM,YAAY,OAAO,GAAG,MAAM,MAAM,GAAG,MAAM;YAE1E,IAAI,CAAC,OAAO,EAAE;gBACb,MAAM,IAAI,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC,SAAS,EAAE,CAAC,CAAC;;;;AAIxG;;;;"}
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
import type { EApiRouteType } from
|
|
2
|
-
import type { IApiControllerProperties
|
|
3
|
-
import type {
|
|
1
|
+
import type { EApiRouteType } from '../../../enum/decorator/api/index';
|
|
2
|
+
import type { IApiControllerProperties } from '../../../interface/decorator/api/index';
|
|
3
|
+
import type { IApiEntity } from '../../../interface/entity/index';
|
|
4
|
+
import type { TApiControllerPropertiesRoute } from '../../../type/decorator/api/controller/index';
|
|
5
|
+
/**
|
|
6
|
+
* Generates and registers Swagger documentation for DTOs.
|
|
7
|
+
* Creates or uses existing DTOs for request, query, body, and response,
|
|
8
|
+
* and ensures they're properly registered with Swagger for API documentation.
|
|
9
|
+
* @param {object} target - The target controller class
|
|
10
|
+
* @param {IApiEntity<E>} entity - The entity definition
|
|
11
|
+
* @param {IApiControllerProperties<E>} properties - Controller configuration properties
|
|
12
|
+
* @param {EApiRouteType} method - The type of route (CREATE, DELETE, GET, etc.)
|
|
13
|
+
* @param {TApiControllerPropertiesRoute<E, typeof method>} routeConfig - Route-specific configuration
|
|
14
|
+
* @param {IApiEntity<E>} entityMetadata - The entity metadata containing column information
|
|
15
|
+
* @returns {void}
|
|
16
|
+
* @template E - The entity type
|
|
17
|
+
*/
|
|
4
18
|
export declare function ApiControllerWriteDtoSwagger<E>(target: object, entity: IApiEntity<E>, properties: IApiControllerProperties<E>, method: EApiRouteType, routeConfig: TApiControllerPropertiesRoute<E, typeof method>, entityMetadata: IApiEntity<E>): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { DECORATORS } from '@nestjs/swagger/dist/constants';
|
|
2
1
|
import { MetadataStorage } from '../../../class/metadata-storage.class.js';
|
|
2
|
+
import '../../../constant/decorator/api/function.constant.js';
|
|
3
|
+
import { PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT } from '../../../constant/decorator/api/property-describe.constant.js';
|
|
3
4
|
import '../../../enum/decorator/api/action.enum.js';
|
|
4
5
|
import '../../../enum/decorator/api/authentication-type.enum.js';
|
|
5
6
|
import '../../../enum/decorator/api/controller/load-relations-strategy.enum.js';
|
|
@@ -13,30 +14,38 @@ import { EApiPropertyDescribeType } from '../../../enum/decorator/api/property/d
|
|
|
13
14
|
import '../../../enum/decorator/api/property/number-type.enum.js';
|
|
14
15
|
import '../../../enum/decorator/api/property/string-type.enum.js';
|
|
15
16
|
import '../../../enum/decorator/api/route-type.enum.js';
|
|
16
|
-
import '
|
|
17
|
-
import '../../../enum/filter-order-direction.enum.js';
|
|
18
|
-
import '../../../enum/utility/error-string-action.enum.js';
|
|
19
|
-
import '../../../constant/decorator/api/function.constant.js';
|
|
20
|
-
import { PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT } from '../../../constant/decorator/api/property-describe.constant.js';
|
|
17
|
+
import { DECORATORS } from '@nestjs/swagger/dist/constants';
|
|
21
18
|
import { CamelCaseString } from '../../camel-case-string.utility.js';
|
|
22
19
|
import '../../../constant/utility/dto/constant.js';
|
|
23
|
-
import '
|
|
20
|
+
import '../../../external/tslib/tslib.es6.js';
|
|
24
21
|
import '@nestjs/common';
|
|
25
22
|
import '@nestjs/swagger';
|
|
26
23
|
import 'class-transformer';
|
|
27
24
|
import 'class-validator';
|
|
28
25
|
import 'lodash/random';
|
|
29
|
-
import '../../../validator/all-or-none-of-listed-properties.validator.js';
|
|
30
|
-
import '../../../validator/has-at-least-one-and-only-one-of-listed-properties.validator.js';
|
|
31
|
-
import '../../../validator/has-at-least-one-of-listed-properties.validator.js';
|
|
32
|
-
import '../../../validator/has-at-least-one-property.validator.js';
|
|
33
26
|
import '../../../validator/is-regular-expression.validator.js';
|
|
34
|
-
import '../../../validator/only-one-of-listed-properties.validator.js';
|
|
35
27
|
import 'node:crypto';
|
|
28
|
+
import '../../../enum/filter-operation.enum.js';
|
|
29
|
+
import '../../../validator/must-match-one-of-schemas.validator.js';
|
|
36
30
|
import { DtoGenerate } from '../../dto/generate.utility.js';
|
|
31
|
+
import '../../../enum/filter-order-direction.enum.js';
|
|
37
32
|
import 'typeorm';
|
|
38
33
|
import 'reflect-metadata';
|
|
34
|
+
import '../../../validator/all-or-none-of-listed-properties.validator.js';
|
|
39
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Generates and registers Swagger documentation for DTOs.
|
|
38
|
+
* Creates or uses existing DTOs for request, query, body, and response,
|
|
39
|
+
* and ensures they're properly registered with Swagger for API documentation.
|
|
40
|
+
* @param {object} target - The target controller class
|
|
41
|
+
* @param {IApiEntity<E>} entity - The entity definition
|
|
42
|
+
* @param {IApiControllerProperties<E>} properties - Controller configuration properties
|
|
43
|
+
* @param {EApiRouteType} method - The type of route (CREATE, DELETE, GET, etc.)
|
|
44
|
+
* @param {TApiControllerPropertiesRoute<E, typeof method>} routeConfig - Route-specific configuration
|
|
45
|
+
* @param {IApiEntity<E>} entityMetadata - The entity metadata containing column information
|
|
46
|
+
* @returns {void}
|
|
47
|
+
* @template E - The entity type
|
|
48
|
+
*/
|
|
40
49
|
function ApiControllerWriteDtoSwagger(target, entity, properties, method, routeConfig, entityMetadata) {
|
|
41
50
|
const swaggerModels = (Reflect.getMetadata(DECORATORS.API_EXTRA_MODELS, target) ?? []);
|
|
42
51
|
const requestDto = routeConfig.dto?.request ?? DtoGenerate(properties.entity, entity, method, EApiDtoType.REQUEST, routeConfig.autoDto?.[EApiDtoType.REQUEST], routeConfig.authentication?.guard);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-dto-swagger.utility.js","sources":["../../../../../../src/utility/api/controller/write-dto-swagger.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA;;;;;;;;;;;;AAYG;AACa,SAAA,4BAA4B,CAAI,MAAc,EAAE,MAAqB,EAAE,UAAuC,EAAE,MAAqB,EAAE,WAA4D,EAAE,cAA6B,EAAA;AACjP,IAAA,MAAM,aAAa,IAAoB,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC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iRouteType } from
|
|
2
|
-
import type { IApiControllerProperties
|
|
1
|
+
import type { EApiRouteType } from '../../../enum/decorator/api/index';
|
|
2
|
+
import type { IApiControllerProperties } from '../../../interface/decorator/api/index';
|
|
3
|
+
import type { IApiEntity } from '../../../interface/entity/index';
|
|
4
|
+
/**
|
|
5
|
+
* Creates controller methods dynamically.
|
|
6
|
+
* Gets the method name, checks if it's already defined, and either
|
|
7
|
+
* calls the implementation or throws an error if not implemented.
|
|
8
|
+
* @param {Record<string, (method: EApiRouteType, methodName: string, properties: IApiControllerProperties<E>, entityMetadata: IApiEntity<E>) => void>} thisTarget - The object containing method implementations
|
|
9
|
+
* @param {Record<string, unknown>} target - The target controller class to add methods to
|
|
10
|
+
* @param {EApiRouteType} method - The type of route (CREATE, DELETE, GET, etc.)
|
|
11
|
+
* @param {IApiControllerProperties<E>} properties - Controller configuration properties
|
|
12
|
+
* @param {IApiEntity<E>} entityMetadata - The entity metadata containing column information
|
|
13
|
+
* @returns {void}
|
|
14
|
+
* @throws {Error} When the reserved method is already defined or method implementation is missing
|
|
15
|
+
* @template E - The entity type
|
|
16
|
+
*/
|
|
3
17
|
export declare function ApiControllerWriteMethod<E>(thisTarget: Record<string, (method: EApiRouteType, methodName: string, properties: IApiControllerProperties<E>, entityMetadata: IApiEntity<E>) => void>, target: Record<string, unknown>, method: EApiRouteType, properties: IApiControllerProperties<E>, entityMetadata: IApiEntity<E>): void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ApiControllerGetMethodName } from './get-method-name.utility.js';
|
|
2
|
+
import { ErrorException } from '../../error-exception.utility.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Creates controller methods dynamically.
|
|
6
|
+
* Gets the method name, checks if it's already defined, and either
|
|
7
|
+
* calls the implementation or throws an error if not implemented.
|
|
8
|
+
* @param {Record<string, (method: EApiRouteType, methodName: string, properties: IApiControllerProperties<E>, entityMetadata: IApiEntity<E>) => void>} thisTarget - The object containing method implementations
|
|
9
|
+
* @param {Record<string, unknown>} target - The target controller class to add methods to
|
|
10
|
+
* @param {EApiRouteType} method - The type of route (CREATE, DELETE, GET, etc.)
|
|
11
|
+
* @param {IApiControllerProperties<E>} properties - Controller configuration properties
|
|
12
|
+
* @param {IApiEntity<E>} entityMetadata - The entity metadata containing column information
|
|
13
|
+
* @returns {void}
|
|
14
|
+
* @throws {Error} When the reserved method is already defined or method implementation is missing
|
|
15
|
+
* @template E - The entity type
|
|
16
|
+
*/
|
|
17
|
+
function ApiControllerWriteMethod(thisTarget, target, method, properties, entityMetadata) {
|
|
18
|
+
const methodName = ApiControllerGetMethodName(method);
|
|
19
|
+
if (target[methodName]) {
|
|
20
|
+
throw ErrorException(`Reserved method ${methodName} already defined`);
|
|
21
|
+
}
|
|
22
|
+
if (thisTarget[method]) {
|
|
23
|
+
thisTarget[method](method, methodName, properties, entityMetadata);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
throw ErrorException(`Method ${methodName} not implemented`);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { ApiControllerWriteMethod };
|
|
31
|
+
//# sourceMappingURL=write-method.utility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-method.utility.js","sources":["../../../../../../src/utility/api/controller/write-method.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAOA;;;;;;;;;;;;AAYG;AACG,SAAU,wBAAwB,CAAI,UAAuJ,EAAE,MAA+B,EAAE,MAAqB,EAAE,UAAuC,EAAE,cAA6B,EAAA;AAClU,IAAA,MAAM,UAAU,GAAW,0BAA0B,CAAC,MAAM,CAAC;AAE7D,IAAA,IAAI,MAAM,CAAC,UAAU,CAAC,EAAE;AACvB,QAAA,MAAM,cAAc,CAAC,CAAA,gBAAA,EAAmB,UAAU,CAAA,gBAAA,CAAkB,CAAC;;AAGtE,IAAA,IAAI,UAAU,CAAC,MAAM,CAAC,EAAE;AACvB,QAAA,UAAU,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,CAAC;;SAC5D;AACN,QAAA,MAAM,cAAc,CAAC,CAAA,OAAA,EAAU,UAAU,CAAA,gBAAA,CAAkB,CAAC;;AAE9D;;;;"}
|
|
@@ -1,6 +1,19 @@
|
|
|
1
|
+
import type { EApiDtoType, EApiRouteType } from '../../enum/decorator/api/index';
|
|
2
|
+
import type { IApiEntity } from '../../interface/entity/index';
|
|
3
|
+
import type { TApiFilterOrderBy, TFilterFieldSelector } from '../../type/decorator/api/filter/index';
|
|
1
4
|
import type { ObjectLiteral } from "typeorm";
|
|
2
|
-
import type { EApiDtoType, EApiRouteType } from "../../enum";
|
|
3
|
-
import type { IApiEntity } from "../../interface";
|
|
4
|
-
import type { TApiFilterOrderBy, TFilterFieldSelector } from "../../type";
|
|
5
5
|
import "reflect-metadata";
|
|
6
|
+
/**
|
|
7
|
+
* Extracts filterable and sortable fields from an entity for building query filters.
|
|
8
|
+
* Analyzes entity columns, checks if they're of allowed types, and transforms
|
|
9
|
+
* property names to snake_case for use in filter and order-by operations.
|
|
10
|
+
* @param {ObjectLiteral} entity - The entity class
|
|
11
|
+
* @param {IApiEntity<E>} entityMetadata - The entity metadata containing column information
|
|
12
|
+
* @param {EApiRouteType} method - The type of route (CREATE, DELETE, GET, etc.)
|
|
13
|
+
* @param {EApiDtoType} dtoType - The type of DTO (REQUEST, RESPONSE, etc.)
|
|
14
|
+
* @param {TFilterFieldSelector<typeof entity>} [fieldSelector] - Optional selector to include/exclude specific fields
|
|
15
|
+
* @returns {TApiFilterOrderBy<typeof entity>} An object mapping snake_case column names to camelCase property names
|
|
16
|
+
* @throws {Error} When a field in the fieldSelector doesn't exist in the entity
|
|
17
|
+
* @template E - The entity type
|
|
18
|
+
*/
|
|
6
19
|
export declare function FilterOrderByFromEntity<E>(entity: ObjectLiteral, entityMetadata: IApiEntity<E>, method: EApiRouteType, dtoType: EApiDtoType, fieldSelector?: TFilterFieldSelector<typeof entity>): TApiFilterOrderBy<typeof entity>;
|
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
import { getMetadataArgsStorage } from 'typeorm';
|
|
2
1
|
import '../../constant/decorator/api/function.constant.js';
|
|
3
2
|
import { PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT } from '../../constant/decorator/api/property-describe.constant.js';
|
|
4
3
|
import { FILTER_API_INTERFACE_CONSTANT } from '../../constant/interface/api/filter.constant.js';
|
|
4
|
+
import { getMetadataArgsStorage } from 'typeorm';
|
|
5
5
|
import 'reflect-metadata';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Extracts filterable and sortable fields from an entity for building query filters.
|
|
9
|
+
* Analyzes entity columns, checks if they're of allowed types, and transforms
|
|
10
|
+
* property names to snake_case for use in filter and order-by operations.
|
|
11
|
+
* @param {ObjectLiteral} entity - The entity class
|
|
12
|
+
* @param {IApiEntity<E>} entityMetadata - The entity metadata containing column information
|
|
13
|
+
* @param {EApiRouteType} method - The type of route (CREATE, DELETE, GET, etc.)
|
|
14
|
+
* @param {EApiDtoType} dtoType - The type of DTO (REQUEST, RESPONSE, etc.)
|
|
15
|
+
* @param {TFilterFieldSelector<typeof entity>} [fieldSelector] - Optional selector to include/exclude specific fields
|
|
16
|
+
* @returns {TApiFilterOrderBy<typeof entity>} An object mapping snake_case column names to camelCase property names
|
|
17
|
+
* @throws {Error} When a field in the fieldSelector doesn't exist in the entity
|
|
18
|
+
* @template E - The entity type
|
|
19
|
+
*/
|
|
7
20
|
function FilterOrderByFromEntity(entity, entityMetadata, method, dtoType, fieldSelector) {
|
|
8
21
|
const metadata = getMetadataArgsStorage();
|
|
9
22
|
const columns = metadata.columns.filter((column) => column.target == entity);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-order-by-from-entity.utility.js","sources":["../../../../../src/utility/api/filter-order-by-from-entity.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAcA;;;;;;;;;;;;AA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oC,cAAc,CAAC,QAAQ,GAAG,wCAAwC,CAAC,sBAAsB,CAAoC;;AAE/K,gBAAA,MAAM,WAAW,GAAyB,QAAQ,EAAE,UAAU,GAAG,MAAM,CAAC,GAAG,OAAO,CAAC,EAAE,kBAA8B,IAAI,KAAK;AAE5H,gBAAA,IAAI,cAAc,CAAC,IAAI,IAAI,MAAM,CAAC,YAAY,IAAI,QAAQ,KAAK,WAAW,IAAI,SAAS,IAAI,WAAW,CAAC,EAAE;AACxG,oBAAA,MAAM,cAAc,GAAW,MAAM,CAAC;;yBAEpC,KAAK,CAAC,EAAE;AACR,yBAAA,GAAG,CAAC,CAAC,IAAY,EAAE,KAAa,KAAY;AAC5C,wBAAA,IAAI,KAAK,GAAG,CAAC,IAAI,IAAI,KAAK,IAAI,CAAC,WAAW,EAAE,IAAI,IAAI,KAAK,IAAI,CAAC,WAAW,EAAE,EAAE;4BAC5E,OAAO,GAAG,GAAG,IAAI;;AAGlB,wBAAA,OAAO,IAAI;AACZ,qBAAC;yBACA,IAAI,CAAC,EAAE;AACP,yBAAA,WAAW,EAAE;AAEf,oBAAA,WAAW,CAAC,cAAwD,CAAC,GAAG,MAAM,CAAC,YAAY;;;;;AAM/F,IAAA,OAAO,WAAW;AACnB;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export
|
|
1
|
+
export * from './controller/index';
|
|
2
|
+
export { FilterOrderByFromEntity } from './filter-order-by-from-entity.utility';
|
|
@@ -1 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a string to camel case format with special handling for known compound words
|
|
3
|
+
* @param {string} string - The string to convert to camel case
|
|
4
|
+
* @returns {string} The camel-cased string
|
|
5
|
+
*/
|
|
1
6
|
export declare function CamelCaseString(string: string): string;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a string to camel case format with special handling for known compound words
|
|
3
|
+
* @param {string} string - The string to convert to camel case
|
|
4
|
+
* @returns {string} The camel-cased string
|
|
5
|
+
*/
|
|
1
6
|
function CamelCaseString(string) {
|
|
2
7
|
const knownCompounds = {
|
|
3
8
|
getlist: "GetList",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"camel-case-string.utility.js","sources":["../../../../src/utility/camel-case-string.utility.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;AAIG;AACG,SAAU,eAAe,CAAC,MAAc,EAAA;AAC7C,IAAA,MAAM,cAAc,GAA2B;AAC9C,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,aAAa,EAAE,eAAe;KAC9B;IAED,MAAM,WAAW,GAAW,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,GAAG,CAAC;IAClE,MAAM,KAAK,GAAkB,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC;IAEnD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE;QACnC,MAAM,IAAI,GAAW,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;AAE3C,QAAA,IAAI,cAAc,CAAC,IAAI,CAAC,EAAE;AACzB,YAAA,OAAO,cAAc,CAAC,IAAI,CAAC;;AAG5B,QAAA,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;;AAGpD,IAAA,OAAO;AACL,SAAA,GAAG,CAAC,CAAC,IAAY,KAAI;AACrB,QAAA,IAAI,CAAC,IAAI;AAAE,YAAA,OAAO,EAAE;AAEpB,QAAA,MAAM,SAAS,GAAW,IAAI,CAAC,WAAW,EAAE;AAE5C,QAAA,IAAI,cAAc,CAAC,SAAS,CAAC,EAAE;AAC9B,YAAA,OAAO,cAAc,CAAC,SAAS,CAAC;;AAGjC,QAAA,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;AACzD,KAAC;SACA,IAAI,CAAC,EAAE,CAAC;AACX;;;;"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Capitalizes the first letter of a string and makes the rest lowercase
|
|
3
|
+
* @param {string} string - The string to capitalize
|
|
4
|
+
* @returns {string} The capitalized string
|
|
5
|
+
*/
|
|
1
6
|
function CapitalizeString(string) {
|
|
2
7
|
return string.charAt(0).toUpperCase() + string.toLowerCase().slice(1);
|
|
3
8
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capitalize-string.utility.js","sources":["../../../../src/utility/capitalize-string.utility.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;AAIG;AACG,SAAU,gBAAgB,CAAC,MAAc,EAAA;AAC9C,IAAA,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AACtE;;;;"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import type { IApiBaseEntity } from
|
|
1
|
+
import type { IApiBaseEntity } from '../../interface/api-base-entity.interface';
|
|
2
|
+
/**
|
|
3
|
+
* Analyzes entity metadata using the MetadataStorage singleton class.
|
|
4
|
+
* Currently only retrieves metadata but doesn't perform further operations.
|
|
5
|
+
* @param {IApiBaseEntity} entity - The entity to analyze metadata for
|
|
6
|
+
* @returns {void}
|
|
7
|
+
*/
|
|
2
8
|
export declare function analyzeEntityMetadata(entity: IApiBaseEntity): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MetadataStorage } from '../../class/metadata-storage.class.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Analyzes entity metadata using the MetadataStorage singleton class.
|
|
5
|
+
* Currently only retrieves metadata but doesn't perform further operations.
|
|
6
|
+
* @param {IApiBaseEntity} entity - The entity to analyze metadata for
|
|
7
|
+
* @returns {void}
|
|
8
|
+
*/
|
|
9
|
+
function analyzeEntityMetadata(entity) {
|
|
10
|
+
const storage = MetadataStorage.getInstance();
|
|
11
|
+
storage.getMetadata(entity.name ?? "UnknownResource");
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { analyzeEntityMetadata };
|
|
15
|
+
//# sourceMappingURL=analize.utility.js.map
|