@elsikora/nestjs-crud-automator 1.6.3-dev.1 → 1.6.4-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/class/api/service-base.class.js +25 -0
- package/dist/cjs/class/api/service-base.class.js.map +1 -0
- package/dist/cjs/class/metadata-storage.class.js +50 -0
- package/dist/cjs/class/metadata-storage.class.js.map +1 -0
- package/dist/cjs/class/utility/dto/property/factory/boolean.class.js +17 -0
- package/dist/cjs/class/utility/dto/property/factory/boolean.class.js.map +1 -0
- package/dist/cjs/class/utility/dto/property/factory/date.class.js +17 -0
- package/dist/cjs/class/utility/dto/property/factory/date.class.js.map +1 -0
- package/dist/cjs/class/utility/dto/property/factory/enum.class.js +17 -0
- package/dist/cjs/class/utility/dto/property/factory/enum.class.js.map +1 -0
- package/dist/cjs/class/utility/dto/property/factory/number.class.d.ts +7 -0
- package/dist/cjs/class/utility/dto/property/factory/number.class.js +34 -0
- package/dist/cjs/class/utility/dto/property/factory/number.class.js.map +1 -0
- package/dist/cjs/class/utility/dto/property/factory/object.class.js +18 -0
- package/dist/cjs/class/utility/dto/property/factory/object.class.js.map +1 -0
- package/dist/cjs/class/utility/dto/property/factory/relation.class.js +31 -0
- package/dist/cjs/class/utility/dto/property/factory/relation.class.js.map +1 -0
- package/dist/cjs/class/utility/dto/property/factory/string.class.js +17 -0
- package/dist/cjs/class/utility/dto/property/factory/string.class.js.map +1 -0
- package/dist/cjs/class/utility/dto/property/factory/uuid.class.js +13 -0
- package/dist/cjs/class/utility/dto/property/factory/uuid.class.js.map +1 -0
- package/dist/cjs/class/utility/dto/strategy/body.class.js +49 -0
- package/dist/cjs/class/utility/dto/strategy/body.class.js.map +1 -0
- package/dist/cjs/class/utility/dto/strategy/query.class.js +46 -0
- package/dist/cjs/class/utility/dto/strategy/query.class.js.map +1 -0
- package/dist/cjs/class/utility/dto/strategy/request.class.js +49 -0
- package/dist/cjs/class/utility/dto/strategy/request.class.js.map +1 -0
- package/dist/cjs/class/utility/dto/strategy/response.class.js +49 -0
- package/dist/cjs/class/utility/dto/strategy/response.class.js.map +1 -0
- package/dist/cjs/constant/date.constant.js +11 -0
- package/dist/cjs/constant/date.constant.js.map +1 -0
- package/dist/cjs/constant/decorator/api/controller.constant.js +9 -0
- package/dist/cjs/constant/decorator/api/controller.constant.js.map +1 -0
- package/dist/cjs/constant/decorator/api/function.constant.js +26 -0
- package/dist/cjs/constant/decorator/api/function.constant.js.map +1 -0
- package/dist/cjs/constant/decorator/api/property-describe.constant.js +9 -0
- package/dist/cjs/constant/decorator/api/property-describe.constant.js.map +1 -0
- package/dist/cjs/constant/dto/exception.constant.js +15 -0
- package/dist/cjs/constant/dto/exception.constant.js.map +1 -0
- package/dist/cjs/constant/dto/list.constant.js +17 -0
- package/dist/cjs/constant/dto/list.constant.js.map +1 -0
- package/dist/cjs/constant/dto/transformer-value.constant.js +17 -0
- package/dist/cjs/constant/dto/transformer-value.constant.js.map +1 -0
- package/dist/cjs/constant/factory/dto/get-list-query.constant.js +15 -0
- package/dist/cjs/constant/factory/dto/get-list-query.constant.js.map +1 -0
- package/dist/cjs/constant/interface/api/filter.constant.js +9 -0
- package/dist/cjs/constant/interface/api/filter.constant.js.map +1 -0
- package/dist/cjs/constant/interface/api/property/string.constant.js +13 -0
- package/dist/cjs/constant/interface/api/property/string.constant.js.map +1 -0
- package/dist/cjs/constant/interface/api/property/wallet.constant.js +13 -0
- package/dist/cjs/constant/interface/api/property/wallet.constant.js.map +1 -0
- package/dist/cjs/constant/number.constant.js +39 -0
- package/dist/cjs/constant/number.constant.js.map +1 -0
- package/dist/cjs/constant/utility/dto/constant.js +55 -0
- package/dist/cjs/constant/utility/dto/constant.js.map +1 -0
- package/dist/cjs/constant/utility/dto/generate.constant.js +11 -0
- package/dist/cjs/constant/utility/dto/generate.constant.js.map +1 -0
- package/dist/cjs/decorator/api/controller.decorator.js +18 -0
- package/dist/cjs/decorator/api/controller.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/function/create.decorator.js +53 -0
- package/dist/cjs/decorator/api/function/create.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/function/decorator.js +71 -0
- package/dist/cjs/decorator/api/function/decorator.js.map +1 -0
- package/dist/cjs/decorator/api/function/delete.decorator.js +71 -0
- package/dist/cjs/decorator/api/function/delete.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/function/get-list.decorator.js +60 -0
- package/dist/cjs/decorator/api/function/get-list.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/function/get-many.decorator.js +57 -0
- package/dist/cjs/decorator/api/function/get-many.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/function/get.decorator.js +57 -0
- package/dist/cjs/decorator/api/function/get.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/function/update.decorator.js +82 -0
- package/dist/cjs/decorator/api/function/update.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/method.decorator.js +351 -0
- package/dist/cjs/decorator/api/method.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/property/boolean.decorator.js +179 -0
- package/dist/cjs/decorator/api/property/boolean.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/property/date.decorator.js +206 -0
- package/dist/cjs/decorator/api/property/date.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/property/describe.decorator.js +31 -0
- package/dist/cjs/decorator/api/property/describe.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/property/enum.decorator.js +105 -0
- package/dist/cjs/decorator/api/property/enum.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/property/number.decorator.js +215 -0
- package/dist/cjs/decorator/api/property/number.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/property/object.decorator.js +104 -0
- package/dist/cjs/decorator/api/property/object.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/property/string.decorator.js +234 -0
- package/dist/cjs/decorator/api/property/string.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/property/uuid.decorator.js +120 -0
- package/dist/cjs/decorator/api/property/uuid.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/service.decorator.js +163 -0
- package/dist/cjs/decorator/api/service.decorator.js.map +1 -0
- package/dist/cjs/enum/decorator/api/action.enum.js +34 -0
- package/dist/cjs/enum/decorator/api/action.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/authentication-type.enum.js +10 -0
- package/dist/cjs/enum/decorator/api/authentication-type.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/controller/load-relations-strategy.enum.js +8 -0
- package/dist/cjs/enum/decorator/api/controller/load-relations-strategy.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/controller/request-transformer-type.enum.js +8 -0
- package/dist/cjs/enum/decorator/api/controller/request-transformer-type.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/dto-type.enum.js +10 -0
- package/dist/cjs/enum/decorator/api/dto-type.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/function/type.enum.js +12 -0
- package/dist/cjs/enum/decorator/api/function/type.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/property/data-type.enum.js +22 -0
- package/dist/cjs/enum/decorator/api/property/data-type.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/property/date/identifier.enum.js +18 -0
- package/dist/cjs/enum/decorator/api/property/date/identifier.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/property/date/type.enum.js +11 -0
- package/dist/cjs/enum/decorator/api/property/date/type.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/property/desribe-type.enum.js +14 -0
- package/dist/cjs/enum/decorator/api/property/desribe-type.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/property/number-type.enum.js +10 -0
- package/dist/cjs/enum/decorator/api/property/number-type.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/property/string-type.enum.js +17 -0
- package/dist/cjs/enum/decorator/api/property/string-type.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/route-type.enum.js +12 -0
- package/dist/cjs/enum/decorator/api/route-type.enum.js.map +1 -0
- package/dist/cjs/enum/exception.enum.js +34 -0
- package/dist/cjs/enum/exception.enum.js.map +1 -0
- package/dist/cjs/enum/filter-operation.enum.js +123 -0
- package/dist/cjs/enum/filter-operation.enum.js.map +1 -0
- package/dist/cjs/enum/filter-order-direction.enum.js +8 -0
- package/dist/cjs/enum/filter-order-direction.enum.js.map +1 -0
- package/dist/cjs/enum/utility/error-string-action.enum.js +106 -0
- package/dist/cjs/enum/utility/error-string-action.enum.js.map +1 -0
- package/dist/cjs/external/tslib/tslib.es6.js +38 -0
- package/dist/cjs/external/tslib/tslib.es6.js.map +1 -0
- package/dist/cjs/factory/api/controller.factory.js +215 -0
- package/dist/cjs/factory/api/controller.factory.js.map +1 -0
- package/dist/cjs/index.js +219 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/interceptor/correlation-id-response-body.interceptor.js +76 -0
- package/dist/cjs/interceptor/correlation-id-response-body.interceptor.js.map +1 -0
- package/dist/cjs/interface/class/dto/strategy.interface.d.ts +5 -0
- package/dist/cjs/type/class/metadata.type.d.ts +2 -0
- package/dist/cjs/utility/api/controller/apply-decorators.utility.js +83 -0
- package/dist/cjs/utility/api/controller/apply-decorators.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/apply-metadata.utility.js +78 -0
- package/dist/cjs/utility/api/controller/apply-metadata.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/get-list/transform-filter.utility.js +48 -0
- package/dist/cjs/utility/api/controller/get-list/transform-filter.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/get-list/transform-operation.utility.js +82 -0
- package/dist/cjs/utility/api/controller/get-list/transform-operation.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/get-method-name.utility.js +11 -0
- package/dist/cjs/utility/api/controller/get-method-name.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/get-primary-column.utility.js +15 -0
- package/dist/cjs/utility/api/controller/get-primary-column.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/handle-request-relations.utility.js +72 -0
- package/dist/cjs/utility/api/controller/handle-request-relations.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/transform-data.utility.js +149 -0
- package/dist/cjs/utility/api/controller/transform-data.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/validate-request.utility.js +18 -0
- package/dist/cjs/utility/api/controller/validate-request.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/write-dto-swagger.utility.js +79 -0
- package/dist/cjs/utility/api/controller/write-dto-swagger.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/write-method.utility.js +15 -0
- package/dist/cjs/utility/api/controller/write-method.utility.js.map +1 -0
- package/dist/cjs/utility/api/filter-order-by-from-entity.utility.js +48 -0
- package/dist/cjs/utility/api/filter-order-by-from-entity.utility.js.map +1 -0
- package/dist/cjs/utility/camel-case-string.utility.js +31 -0
- package/dist/cjs/utility/camel-case-string.utility.js.map +1 -0
- package/dist/cjs/utility/capitalize-string.utility.js +8 -0
- package/dist/cjs/utility/capitalize-string.utility.js.map +1 -0
- package/dist/cjs/utility/dto/analize.utility.js +27 -0
- package/dist/cjs/utility/dto/analize.utility.js.map +1 -0
- package/dist/cjs/utility/dto/build-decorator.utility.js +51 -0
- package/dist/cjs/utility/dto/build-decorator.utility.js.map +1 -0
- package/dist/cjs/utility/dto/generate-decorator.utility.js +15 -0
- package/dist/cjs/utility/dto/generate-decorator.utility.js.map +1 -0
- package/dist/cjs/utility/dto/generate-exception.utility.js +98 -0
- package/dist/cjs/utility/dto/generate-exception.utility.js.map +1 -0
- package/dist/cjs/utility/dto/generate-filter-decorator.utility.js +52 -0
- package/dist/cjs/utility/dto/generate-filter-decorator.utility.js.map +1 -0
- package/dist/cjs/utility/dto/generate-get-list-response.utility.js +99 -0
- package/dist/cjs/utility/dto/generate-get-list-response.utility.js.map +1 -0
- package/dist/cjs/utility/dto/generate-relation-response.utility.js +20 -0
- package/dist/cjs/utility/dto/generate-relation-response.utility.js.map +1 -0
- package/dist/cjs/utility/dto/generate.utility.js +133 -0
- package/dist/cjs/utility/dto/generate.utility.js.map +1 -0
- package/dist/cjs/utility/dto/get-decorator-config.utility.js +20 -0
- package/dist/cjs/utility/dto/get-decorator-config.utility.js.map +1 -0
- package/dist/cjs/utility/dto/get-get-list-query-base-class.utility.js +93 -0
- package/dist/cjs/utility/dto/get-get-list-query-base-class.utility.js.map +1 -0
- package/dist/cjs/utility/dto/handle-date-property.utility.js +35 -0
- package/dist/cjs/utility/dto/handle-date-property.utility.js.map +1 -0
- package/dist/cjs/utility/dto/is-property-exposed-for-guard.utility.js +15 -0
- package/dist/cjs/utility/dto/is-property-exposed-for-guard.utility.js.map +1 -0
- package/dist/cjs/utility/dto/is-property-should-be-marked.utility.js +46 -0
- package/dist/cjs/utility/dto/is-property-should-be-marked.utility.js.map +1 -0
- package/dist/cjs/utility/dto/is-should-be-generated.utility.js +41 -0
- package/dist/cjs/utility/dto/is-should-be-generated.utility.js.map +1 -0
- package/dist/cjs/utility/dto/validate-property-config.utility.js +6 -0
- package/dist/cjs/utility/dto/validate-property-config.utility.js.map +1 -0
- package/dist/cjs/utility/error-exception.utility.js +8 -0
- package/dist/cjs/utility/error-exception.utility.js.map +1 -0
- package/dist/cjs/utility/error-string.utility.js +8 -0
- package/dist/cjs/utility/error-string.utility.js.map +1 -0
- package/dist/cjs/utility/generate-entity-information.utility.js +78 -0
- package/dist/cjs/utility/generate-entity-information.utility.js.map +1 -0
- package/dist/cjs/utility/get-entity-columns.utility.js +22 -0
- package/dist/cjs/utility/get-entity-columns.utility.js.map +1 -0
- package/dist/cjs/utility/is-error-of-type.utility.js +68 -0
- package/dist/cjs/utility/is-error-of-type.utility.js.map +1 -0
- package/dist/cjs/validator/all-or-none-of-listed-properties.validator.js +23 -0
- package/dist/cjs/validator/all-or-none-of-listed-properties.validator.js.map +1 -0
- package/dist/cjs/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js +33 -0
- package/dist/cjs/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js.map +1 -0
- package/dist/cjs/validator/has-at-least-one-of-listed-properties.validator.js +29 -0
- package/dist/cjs/validator/has-at-least-one-of-listed-properties.validator.js.map +1 -0
- package/dist/cjs/validator/has-at-least-one-property.validator.js +17 -0
- package/dist/cjs/validator/has-at-least-one-property.validator.js.map +1 -0
- package/dist/cjs/validator/has-paired-custom-suffixes-fields.validator.js +214 -0
- package/dist/cjs/validator/has-paired-custom-suffixes-fields.validator.js.map +1 -0
- package/dist/cjs/validator/is-regular-expression.validator.js +25 -0
- package/dist/cjs/validator/is-regular-expression.validator.js.map +1 -0
- package/dist/cjs/validator/only-one-of-listed-properties.validator.js +28 -0
- package/dist/cjs/validator/only-one-of-listed-properties.validator.js.map +1 -0
- package/dist/package.json +12 -8
- package/package.json +12 -8
- package/dist/class/api/index.js +0 -18
- package/dist/class/api/index.js.map +0 -1
- package/dist/class/api/service-base.class.js +0 -32
- package/dist/class/api/service-base.class.js.map +0 -1
- package/dist/class/index.js +0 -20
- package/dist/class/index.js.map +0 -1
- package/dist/class/metadata-storage.class.js +0 -47
- package/dist/class/metadata-storage.class.js.map +0 -1
- package/dist/class/utility/dto/index.js +0 -19
- package/dist/class/utility/dto/index.js.map +0 -1
- package/dist/class/utility/dto/property/factory/boolean.class.js +0 -16
- package/dist/class/utility/dto/property/factory/boolean.class.js.map +0 -1
- package/dist/class/utility/dto/property/factory/date.class.js +0 -16
- package/dist/class/utility/dto/property/factory/date.class.js.map +0 -1
- package/dist/class/utility/dto/property/factory/enum.class.js +0 -16
- package/dist/class/utility/dto/property/factory/enum.class.js.map +0 -1
- package/dist/class/utility/dto/property/factory/index.js +0 -23
- package/dist/class/utility/dto/property/factory/index.js.map +0 -1
- package/dist/class/utility/dto/property/factory/number.class.d.ts +0 -7
- package/dist/class/utility/dto/property/factory/number.class.js +0 -18
- package/dist/class/utility/dto/property/factory/number.class.js.map +0 -1
- package/dist/class/utility/dto/property/factory/object.class.js +0 -17
- package/dist/class/utility/dto/property/factory/object.class.js.map +0 -1
- package/dist/class/utility/dto/property/factory/relation.class.js +0 -15
- package/dist/class/utility/dto/property/factory/relation.class.js.map +0 -1
- package/dist/class/utility/dto/property/factory/string.class.js +0 -16
- package/dist/class/utility/dto/property/factory/string.class.js.map +0 -1
- package/dist/class/utility/dto/property/factory/uuid.class.js +0 -12
- package/dist/class/utility/dto/property/factory/uuid.class.js.map +0 -1
- package/dist/class/utility/dto/property/index.js +0 -18
- package/dist/class/utility/dto/property/index.js.map +0 -1
- package/dist/class/utility/dto/strategy/body.class.js +0 -33
- package/dist/class/utility/dto/strategy/body.class.js.map +0 -1
- package/dist/class/utility/dto/strategy/index.js +0 -21
- package/dist/class/utility/dto/strategy/index.js.map +0 -1
- package/dist/class/utility/dto/strategy/query.class.js +0 -30
- package/dist/class/utility/dto/strategy/query.class.js.map +0 -1
- package/dist/class/utility/dto/strategy/request.class.js +0 -33
- package/dist/class/utility/dto/strategy/request.class.js.map +0 -1
- package/dist/class/utility/dto/strategy/response.class.js +0 -33
- package/dist/class/utility/dto/strategy/response.class.js.map +0 -1
- package/dist/class/utility/index.js +0 -18
- package/dist/class/utility/index.js.map +0 -1
- package/dist/constant/date.constant.js +0 -10
- package/dist/constant/date.constant.js.map +0 -1
- package/dist/constant/decorator/api/controller.constant.js +0 -8
- package/dist/constant/decorator/api/controller.constant.js.map +0 -1
- package/dist/constant/decorator/api/function.constant.js +0 -9
- package/dist/constant/decorator/api/function.constant.js.map +0 -1
- package/dist/constant/decorator/api/index.js +0 -20
- package/dist/constant/decorator/api/index.js.map +0 -1
- package/dist/constant/decorator/api/property-describe.constant.js +0 -8
- package/dist/constant/decorator/api/property-describe.constant.js.map +0 -1
- package/dist/constant/decorator/index.js +0 -18
- package/dist/constant/decorator/index.js.map +0 -1
- package/dist/constant/dto/exception.constant.js +0 -14
- package/dist/constant/dto/exception.constant.js.map +0 -1
- package/dist/constant/dto/index.js +0 -20
- package/dist/constant/dto/index.js.map +0 -1
- package/dist/constant/dto/list.constant.js +0 -14
- package/dist/constant/dto/list.constant.js.map +0 -1
- package/dist/constant/dto/transformer-value.constant.js +0 -16
- package/dist/constant/dto/transformer-value.constant.js.map +0 -1
- package/dist/constant/factory/dto/get-list-query.constant.js +0 -14
- package/dist/constant/factory/dto/get-list-query.constant.js.map +0 -1
- package/dist/constant/factory/dto/index.js +0 -18
- package/dist/constant/factory/dto/index.js.map +0 -1
- package/dist/constant/factory/index.js +0 -18
- package/dist/constant/factory/index.js.map +0 -1
- package/dist/constant/index.js +0 -23
- package/dist/constant/index.js.map +0 -1
- package/dist/constant/interface/api/filter.constant.js +0 -8
- package/dist/constant/interface/api/filter.constant.js.map +0 -1
- package/dist/constant/interface/api/index.js +0 -19
- package/dist/constant/interface/api/index.js.map +0 -1
- package/dist/constant/interface/api/property/index.js +0 -19
- package/dist/constant/interface/api/property/index.js.map +0 -1
- package/dist/constant/interface/api/property/string.constant.js +0 -12
- package/dist/constant/interface/api/property/string.constant.js.map +0 -1
- package/dist/constant/interface/api/property/wallet.constant.js +0 -12
- package/dist/constant/interface/api/property/wallet.constant.js.map +0 -1
- package/dist/constant/interface/index.js +0 -18
- package/dist/constant/interface/index.js.map +0 -1
- package/dist/constant/number.constant.js +0 -38
- package/dist/constant/number.constant.js.map +0 -1
- package/dist/constant/utility/dto/constant.js +0 -29
- package/dist/constant/utility/dto/constant.js.map +0 -1
- package/dist/constant/utility/dto/generate.constant.js +0 -10
- package/dist/constant/utility/dto/generate.constant.js.map +0 -1
- package/dist/decorator/api/controller.decorator.js +0 -17
- package/dist/decorator/api/controller.decorator.js.map +0 -1
- package/dist/decorator/api/function/create.decorator.js +0 -38
- package/dist/decorator/api/function/create.decorator.js.map +0 -1
- package/dist/decorator/api/function/decorator.js +0 -54
- package/dist/decorator/api/function/decorator.js.map +0 -1
- package/dist/decorator/api/function/delete.decorator.js +0 -56
- package/dist/decorator/api/function/delete.decorator.js.map +0 -1
- package/dist/decorator/api/function/get-list.decorator.js +0 -43
- package/dist/decorator/api/function/get-list.decorator.js.map +0 -1
- package/dist/decorator/api/function/get-many.decorator.js +0 -42
- package/dist/decorator/api/function/get-many.decorator.js.map +0 -1
- package/dist/decorator/api/function/get.decorator.js +0 -42
- package/dist/decorator/api/function/get.decorator.js.map +0 -1
- package/dist/decorator/api/function/index.js +0 -24
- package/dist/decorator/api/function/index.js.map +0 -1
- package/dist/decorator/api/function/update.decorator.js +0 -67
- package/dist/decorator/api/function/update.decorator.js.map +0 -1
- package/dist/decorator/api/index.js +0 -22
- package/dist/decorator/api/index.js.map +0 -1
- package/dist/decorator/api/method.decorator.js +0 -333
- package/dist/decorator/api/method.decorator.js.map +0 -1
- package/dist/decorator/api/property/boolean.decorator.js +0 -162
- package/dist/decorator/api/property/boolean.decorator.js.map +0 -1
- package/dist/decorator/api/property/date.decorator.js +0 -189
- package/dist/decorator/api/property/date.decorator.js.map +0 -1
- package/dist/decorator/api/property/describe.decorator.js +0 -12
- package/dist/decorator/api/property/describe.decorator.js.map +0 -1
- package/dist/decorator/api/property/enum.decorator.js +0 -103
- package/dist/decorator/api/property/enum.decorator.js.map +0 -1
- package/dist/decorator/api/property/index.js +0 -24
- package/dist/decorator/api/property/index.js.map +0 -1
- package/dist/decorator/api/property/number.decorator.js +0 -200
- package/dist/decorator/api/property/number.decorator.js.map +0 -1
- package/dist/decorator/api/property/object.decorator.js +0 -102
- package/dist/decorator/api/property/object.decorator.js.map +0 -1
- package/dist/decorator/api/property/string.decorator.js +0 -211
- package/dist/decorator/api/property/string.decorator.js.map +0 -1
- package/dist/decorator/api/property/uuid.decorator.js +0 -103
- package/dist/decorator/api/property/uuid.decorator.js.map +0 -1
- package/dist/decorator/api/service.decorator.js +0 -146
- package/dist/decorator/api/service.decorator.js.map +0 -1
- package/dist/decorator/index.js +0 -18
- package/dist/decorator/index.js.map +0 -1
- package/dist/enum/decorator/api/action.enum.js +0 -35
- package/dist/enum/decorator/api/action.enum.js.map +0 -1
- package/dist/enum/decorator/api/authentication-type.enum.js +0 -11
- package/dist/enum/decorator/api/authentication-type.enum.js.map +0 -1
- package/dist/enum/decorator/api/controller/index.js +0 -19
- package/dist/enum/decorator/api/controller/index.js.map +0 -1
- package/dist/enum/decorator/api/controller/load-relations-strategy.enum.js +0 -9
- package/dist/enum/decorator/api/controller/load-relations-strategy.enum.js.map +0 -1
- package/dist/enum/decorator/api/controller/request-transformer-type.enum.js +0 -9
- package/dist/enum/decorator/api/controller/request-transformer-type.enum.js.map +0 -1
- package/dist/enum/decorator/api/dto-type.enum.js +0 -11
- package/dist/enum/decorator/api/dto-type.enum.js.map +0 -1
- package/dist/enum/decorator/api/function/index.js +0 -18
- package/dist/enum/decorator/api/function/index.js.map +0 -1
- package/dist/enum/decorator/api/function/type.enum.js +0 -13
- package/dist/enum/decorator/api/function/type.enum.js.map +0 -1
- package/dist/enum/decorator/api/index.js +0 -24
- package/dist/enum/decorator/api/index.js.map +0 -1
- package/dist/enum/decorator/api/property/data-type.enum.js +0 -23
- package/dist/enum/decorator/api/property/data-type.enum.js.map +0 -1
- package/dist/enum/decorator/api/property/date/identifier.enum.js +0 -19
- package/dist/enum/decorator/api/property/date/identifier.enum.js.map +0 -1
- package/dist/enum/decorator/api/property/date/index.js +0 -19
- package/dist/enum/decorator/api/property/date/index.js.map +0 -1
- package/dist/enum/decorator/api/property/date/type.enum.js +0 -11
- package/dist/enum/decorator/api/property/date/type.enum.js.map +0 -1
- package/dist/enum/decorator/api/property/desribe-type.enum.js +0 -15
- package/dist/enum/decorator/api/property/desribe-type.enum.js.map +0 -1
- package/dist/enum/decorator/api/property/index.js +0 -22
- package/dist/enum/decorator/api/property/index.js.map +0 -1
- package/dist/enum/decorator/api/property/number-type.enum.js +0 -10
- package/dist/enum/decorator/api/property/number-type.enum.js.map +0 -1
- package/dist/enum/decorator/api/property/string-type.enum.js +0 -17
- package/dist/enum/decorator/api/property/string-type.enum.js.map +0 -1
- package/dist/enum/decorator/api/route-type.enum.js +0 -13
- package/dist/enum/decorator/api/route-type.enum.js.map +0 -1
- package/dist/enum/decorator/index.js +0 -18
- package/dist/enum/decorator/index.js.map +0 -1
- package/dist/enum/exception.enum.js +0 -35
- package/dist/enum/exception.enum.js.map +0 -1
- package/dist/enum/filter-operation.enum.js +0 -124
- package/dist/enum/filter-operation.enum.js.map +0 -1
- package/dist/enum/filter-order-direction.enum.js +0 -9
- package/dist/enum/filter-order-direction.enum.js.map +0 -1
- package/dist/enum/index.js +0 -21
- package/dist/enum/index.js.map +0 -1
- package/dist/enum/utility/error-string-action.enum.js +0 -107
- package/dist/enum/utility/error-string-action.enum.js.map +0 -1
- package/dist/enum/utility/index.js +0 -18
- package/dist/enum/utility/index.js.map +0 -1
- package/dist/factory/api/controller.factory.js +0 -181
- package/dist/factory/api/controller.factory.js.map +0 -1
- package/dist/factory/api/index.js +0 -18
- package/dist/factory/api/index.js.map +0 -1
- package/dist/factory/index.js +0 -18
- package/dist/factory/index.js.map +0 -1
- package/dist/index.js +0 -25
- package/dist/index.js.map +0 -1
- package/dist/interceptor/correlation-id-response-body.interceptor.js +0 -82
- package/dist/interceptor/correlation-id-response-body.interceptor.js.map +0 -1
- package/dist/interceptor/index.js +0 -18
- package/dist/interceptor/index.js.map +0 -1
- package/dist/interface/api-authentication-request.interface.js +0 -3
- package/dist/interface/api-authentication-request.interface.js.map +0 -1
- package/dist/interface/api-base-entity.interface.js +0 -3
- package/dist/interface/api-base-entity.interface.js.map +0 -1
- package/dist/interface/api-dto-validator.interface.js +0 -3
- package/dist/interface/api-dto-validator.interface.js.map +0 -1
- package/dist/interface/api-request-validator.interface.js +0 -3
- package/dist/interface/api-request-validator.interface.js.map +0 -1
- package/dist/interface/class/dto/index.js +0 -3
- package/dist/interface/class/dto/index.js.map +0 -1
- package/dist/interface/class/dto/strategy.interface.d.ts +0 -5
- package/dist/interface/class/dto/strategy.interface.js +0 -3
- package/dist/interface/class/dto/strategy.interface.js.map +0 -1
- package/dist/interface/class/index.js +0 -3
- package/dist/interface/class/index.js.map +0 -1
- package/dist/interface/class/metadata-entry.interface.js +0 -3
- package/dist/interface/class/metadata-entry.interface.js.map +0 -1
- package/dist/interface/decorator/api/controller/base.interface.js +0 -3
- package/dist/interface/decorator/api/controller/base.interface.js.map +0 -1
- package/dist/interface/decorator/api/controller/index.js +0 -3
- package/dist/interface/decorator/api/controller/index.js.map +0 -1
- package/dist/interface/decorator/api/controller/properties/index.js +0 -3
- package/dist/interface/decorator/api/controller/properties/index.js.map +0 -1
- package/dist/interface/decorator/api/controller/properties/route/authentication.interface.js +0 -3
- package/dist/interface/decorator/api/controller/properties/route/authentication.interface.js.map +0 -1
- package/dist/interface/decorator/api/controller/properties/route/auto-dto-config.interface.js +0 -3
- package/dist/interface/decorator/api/controller/properties/route/auto-dto-config.interface.js.map +0 -1
- package/dist/interface/decorator/api/controller/properties/route/base-request.interface.js +0 -3
- package/dist/interface/decorator/api/controller/properties/route/base-request.interface.js.map +0 -1
- package/dist/interface/decorator/api/controller/properties/route/base-response.interface.js +0 -3
- package/dist/interface/decorator/api/controller/properties/route/base-response.interface.js.map +0 -1
- package/dist/interface/decorator/api/controller/properties/route/base.interface.js +0 -3
- package/dist/interface/decorator/api/controller/properties/route/base.interface.js.map +0 -1
- package/dist/interface/decorator/api/controller/properties/route/index.js +0 -3
- package/dist/interface/decorator/api/controller/properties/route/index.js.map +0 -1
- package/dist/interface/decorator/api/controller/properties/route/with-auto-dto.interface.js +0 -3
- package/dist/interface/decorator/api/controller/properties/route/with-auto-dto.interface.js.map +0 -1
- package/dist/interface/decorator/api/controller/properties/route/with-dto.interface.js +0 -3
- package/dist/interface/decorator/api/controller/properties/route/with-dto.interface.js.map +0 -1
- package/dist/interface/decorator/api/controller/properties.interface.js +0 -3
- package/dist/interface/decorator/api/controller/properties.interface.js.map +0 -1
- package/dist/interface/decorator/api/function/create-executor-properties.interface.js +0 -3
- package/dist/interface/decorator/api/function/create-executor-properties.interface.js.map +0 -1
- package/dist/interface/decorator/api/function/delete-executor-properties.interface.js +0 -3
- package/dist/interface/decorator/api/function/delete-executor-properties.interface.js.map +0 -1
- package/dist/interface/decorator/api/function/get-executor-properties.interface.js +0 -3
- package/dist/interface/decorator/api/function/get-executor-properties.interface.js.map +0 -1
- package/dist/interface/decorator/api/function/get-list-executor-properties.interface.js +0 -3
- package/dist/interface/decorator/api/function/get-list-executor-properties.interface.js.map +0 -1
- package/dist/interface/decorator/api/function/get-many-executor-properties.interface.js +0 -3
- package/dist/interface/decorator/api/function/get-many-executor-properties.interface.js.map +0 -1
- package/dist/interface/decorator/api/function/index.js +0 -3
- package/dist/interface/decorator/api/function/index.js.map +0 -1
- package/dist/interface/decorator/api/function/properties.interface.js +0 -3
- package/dist/interface/decorator/api/function/properties.interface.js.map +0 -1
- package/dist/interface/decorator/api/function/update-executor-properties.interface.js +0 -3
- package/dist/interface/decorator/api/function/update-executor-properties.interface.js.map +0 -1
- package/dist/interface/decorator/api/get-list-response-result.interface.js +0 -3
- package/dist/interface/decorator/api/get-list-response-result.interface.js.map +0 -1
- package/dist/interface/decorator/api/index.js +0 -3
- package/dist/interface/decorator/api/index.js.map +0 -1
- package/dist/interface/decorator/api/method/index.js +0 -3
- package/dist/interface/decorator/api/method/index.js.map +0 -1
- package/dist/interface/decorator/api/method/properties.interface.js +0 -3
- package/dist/interface/decorator/api/method/properties.interface.js.map +0 -1
- package/dist/interface/decorator/api/method/throttler-properties.interface.js +0 -3
- package/dist/interface/decorator/api/method/throttler-properties.interface.js.map +0 -1
- package/dist/interface/decorator/api/response-type.interface.js +0 -3
- package/dist/interface/decorator/api/response-type.interface.js.map +0 -1
- package/dist/interface/decorator/index.js +0 -3
- package/dist/interface/decorator/index.js.map +0 -1
- package/dist/interface/dto-generate-factory.interface.js +0 -3
- package/dist/interface/dto-generate-factory.interface.js.map +0 -1
- package/dist/interface/entity/column.interface.js +0 -3
- package/dist/interface/entity/column.interface.js.map +0 -1
- package/dist/interface/entity/index.js +0 -3
- package/dist/interface/entity/index.js.map +0 -1
- package/dist/interface/entity/interface.js +0 -3
- package/dist/interface/entity/interface.js.map +0 -1
- package/dist/interface/index.js +0 -3
- package/dist/interface/index.js.map +0 -1
- package/dist/interface/utility/api/controller/index.js +0 -3
- package/dist/interface/utility/api/controller/index.js.map +0 -1
- package/dist/interface/utility/api/controller/primary-column.interface.js +0 -3
- package/dist/interface/utility/api/controller/primary-column.interface.js.map +0 -1
- package/dist/interface/utility/api/index.js +0 -3
- package/dist/interface/utility/api/index.js.map +0 -1
- package/dist/interface/utility/error-string-properties.interface.js +0 -3
- package/dist/interface/utility/error-string-properties.interface.js.map +0 -1
- package/dist/interface/utility/get-entity-columns-properties.interface.js +0 -3
- package/dist/interface/utility/get-entity-columns-properties.interface.js.map +0 -1
- package/dist/interface/utility/index.js +0 -3
- package/dist/interface/utility/index.js.map +0 -1
- package/dist/type/api-request-transformer.type.js +0 -3
- package/dist/type/api-request-transformer.type.js.map +0 -1
- package/dist/type/class/api-exception.type.js +0 -3
- package/dist/type/class/api-exception.type.js.map +0 -1
- package/dist/type/class/controller/index.js +0 -3
- package/dist/type/class/controller/index.js.map +0 -1
- package/dist/type/class/controller/method.type.js +0 -3
- package/dist/type/class/controller/method.type.js.map +0 -1
- package/dist/type/class/index.js +0 -3
- package/dist/type/class/index.js.map +0 -1
- package/dist/type/class/metadata.type.d.ts +0 -2
- package/dist/type/class/metadata.type.js +0 -3
- package/dist/type/class/metadata.type.js.map +0 -1
- package/dist/type/decorator/api/controller/constructor.type.js +0 -3
- package/dist/type/decorator/api/controller/constructor.type.js.map +0 -1
- package/dist/type/decorator/api/controller/get-list-query.type.js +0 -3
- package/dist/type/decorator/api/controller/get-list-query.type.js.map +0 -1
- package/dist/type/decorator/api/controller/index.js +0 -3
- package/dist/type/decorator/api/controller/index.js.map +0 -1
- package/dist/type/decorator/api/controller/properties/index.js +0 -3
- package/dist/type/decorator/api/controller/properties/index.js.map +0 -1
- package/dist/type/decorator/api/controller/properties/route/base-request-relations.type.js +0 -3
- package/dist/type/decorator/api/controller/properties/route/base-request-relations.type.js.map +0 -1
- package/dist/type/decorator/api/controller/properties/route/base-request-transformers.type.js +0 -3
- package/dist/type/decorator/api/controller/properties/route/base-request-transformers.type.js.map +0 -1
- package/dist/type/decorator/api/controller/properties/route/base-response-transformers.type.js +0 -3
- package/dist/type/decorator/api/controller/properties/route/base-response-transformers.type.js.map +0 -1
- package/dist/type/decorator/api/controller/properties/route/index.js +0 -3
- package/dist/type/decorator/api/controller/properties/route/index.js.map +0 -1
- package/dist/type/decorator/api/controller/properties-route.type.js +0 -3
- package/dist/type/decorator/api/controller/properties-route.type.js.map +0 -1
- package/dist/type/decorator/api/controller/transformer-config.type.js +0 -3
- package/dist/type/decorator/api/controller/transformer-config.type.js.map +0 -1
- package/dist/type/decorator/api/filter/allowed-types.type.js +0 -3
- package/dist/type/decorator/api/filter/allowed-types.type.js.map +0 -1
- package/dist/type/decorator/api/filter/extracted-allowed-types.type.js +0 -3
- package/dist/type/decorator/api/filter/extracted-allowed-types.type.js.map +0 -1
- package/dist/type/decorator/api/filter/field-selector.type.js +0 -3
- package/dist/type/decorator/api/filter/field-selector.type.js.map +0 -1
- package/dist/type/decorator/api/filter/index.js +0 -3
- package/dist/type/decorator/api/filter/index.js.map +0 -1
- package/dist/type/decorator/api/filter/order-by.type.js +0 -3
- package/dist/type/decorator/api/filter/order-by.type.js.map +0 -1
- package/dist/type/decorator/api/function/create-properties.type.js +0 -3
- package/dist/type/decorator/api/function/create-properties.type.js.map +0 -1
- package/dist/type/decorator/api/function/delete-criteria.type.js +0 -3
- package/dist/type/decorator/api/function/delete-criteria.type.js.map +0 -1
- package/dist/type/decorator/api/function/get-list-properties-where.type.js +0 -3
- package/dist/type/decorator/api/function/get-list-properties-where.type.js.map +0 -1
- package/dist/type/decorator/api/function/get-list-properties.type.js +0 -3
- package/dist/type/decorator/api/function/get-list-properties.type.js.map +0 -1
- package/dist/type/decorator/api/function/get-many.properties.js +0 -3
- package/dist/type/decorator/api/function/get-many.properties.js.map +0 -1
- package/dist/type/decorator/api/function/get-properties.type.js +0 -3
- package/dist/type/decorator/api/function/get-properties.type.js.map +0 -1
- package/dist/type/decorator/api/function/index.js +0 -3
- package/dist/type/decorator/api/function/index.js.map +0 -1
- package/dist/type/decorator/api/function/properties.type.js +0 -3
- package/dist/type/decorator/api/function/properties.type.js.map +0 -1
- package/dist/type/decorator/api/function/update-criteria.type.js +0 -3
- package/dist/type/decorator/api/function/update-criteria.type.js.map +0 -1
- package/dist/type/decorator/api/function/update-properties.type.js +0 -3
- package/dist/type/decorator/api/function/update-properties.type.js.map +0 -1
- package/dist/type/decorator/api/index.js +0 -3
- package/dist/type/decorator/api/index.js.map +0 -1
- package/dist/type/decorator/api/property/base/array/index.js +0 -3
- package/dist/type/decorator/api/property/base/array/index.js.map +0 -1
- package/dist/type/decorator/api/property/base/array/optional-properties.type.js +0 -3
- package/dist/type/decorator/api/property/base/array/optional-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/base/array/required-properties.type.js +0 -3
- package/dist/type/decorator/api/property/base/array/required-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/base/index.js +0 -3
- package/dist/type/decorator/api/property/base/index.js.map +0 -1
- package/dist/type/decorator/api/property/base/properties.type.js +0 -3
- package/dist/type/decorator/api/property/base/properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/base/request-properties.type.js +0 -3
- package/dist/type/decorator/api/property/base/request-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/base/response-properties.type.js +0 -3
- package/dist/type/decorator/api/property/base/response-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/date-properties.type.js +0 -3
- package/dist/type/decorator/api/property/date-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/array/index.js +0 -3
- package/dist/type/decorator/api/property/describe/array/index.js.map +0 -1
- package/dist/type/decorator/api/property/describe/array/optional-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/array/optional-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/array/required-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/array/required-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/base-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/base-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/boolean-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/boolean-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/date-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/date-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/dto/body-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/dto/body-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/dto/guard-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/dto/guard-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/dto/index.js +0 -3
- package/dist/type/decorator/api/property/describe/dto/index.js.map +0 -1
- package/dist/type/decorator/api/property/describe/dto/properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/dto/properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/dto/query/get-list-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/dto/query/get-list-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/dto/query/index.js +0 -3
- package/dist/type/decorator/api/property/describe/dto/query/index.js.map +0 -1
- package/dist/type/decorator/api/property/describe/dto/query/properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/dto/query/properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/dto/request-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/dto/request-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/dto/response-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/dto/response-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/enum-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/enum-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/example-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/example-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/index.js +0 -3
- package/dist/type/decorator/api/property/describe/index.js.map +0 -1
- package/dist/type/decorator/api/property/describe/number-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/number-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/object-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/object-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/properties/base-dto-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/properties/base-dto-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/properties/base-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/properties/base-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/properties/index.js +0 -3
- package/dist/type/decorator/api/property/describe/properties/index.js.map +0 -1
- package/dist/type/decorator/api/property/describe/properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/relation-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/relation-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/string-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/string-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe/uuid-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe/uuid-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/enum-properties.type.js +0 -3
- package/dist/type/decorator/api/property/enum-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/index.js +0 -3
- package/dist/type/decorator/api/property/index.js.map +0 -1
- package/dist/type/decorator/api/property/number-properties.type.js +0 -3
- package/dist/type/decorator/api/property/number-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/object-properties.type.js +0 -3
- package/dist/type/decorator/api/property/object-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/string-properties.type.js +0 -3
- package/dist/type/decorator/api/property/string-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/uuid-properties.type.js +0 -3
- package/dist/type/decorator/api/property/uuid-properties.type.js.map +0 -1
- package/dist/type/decorator/api/service/index.js +0 -3
- package/dist/type/decorator/api/service/index.js.map +0 -1
- package/dist/type/decorator/api/service/keys.type.js +0 -3
- package/dist/type/decorator/api/service/keys.type.js.map +0 -1
- package/dist/type/decorator/api/service/properties.type.js +0 -3
- package/dist/type/decorator/api/service/properties.type.js.map +0 -1
- package/dist/type/decorator/index.js +0 -3
- package/dist/type/decorator/index.js.map +0 -1
- package/dist/type/factory/api/controller/index.js +0 -3
- package/dist/type/factory/api/controller/index.js.map +0 -1
- package/dist/type/factory/api/controller/method-map.type.js +0 -3
- package/dist/type/factory/api/controller/method-map.type.js.map +0 -1
- package/dist/type/factory/api/controller/method-name-map.type.js +0 -3
- package/dist/type/factory/api/controller/method-name-map.type.js.map +0 -1
- package/dist/type/factory/api/controller/method-name.type.js +0 -3
- package/dist/type/factory/api/controller/method-name.type.js.map +0 -1
- package/dist/type/factory/api/controller/target-methods.type.js +0 -3
- package/dist/type/factory/api/controller/target-methods.type.js.map +0 -1
- package/dist/type/factory/api/index.js +0 -3
- package/dist/type/factory/api/index.js.map +0 -1
- package/dist/type/factory/index.js +0 -3
- package/dist/type/factory/index.js.map +0 -1
- package/dist/type/index.js +0 -3
- package/dist/type/index.js.map +0 -1
- package/dist/type/utility/api/controller/index.js +0 -3
- package/dist/type/utility/api/controller/index.js.map +0 -1
- package/dist/type/utility/api/controller/transform-data/data.type.js +0 -3
- package/dist/type/utility/api/controller/transform-data/data.type.js.map +0 -1
- package/dist/type/utility/api/controller/transform-data/index.js +0 -3
- package/dist/type/utility/api/controller/transform-data/index.js.map +0 -1
- package/dist/type/utility/api/controller/transform-data/is-validation-properties.type.js +0 -3
- package/dist/type/utility/api/controller/transform-data/is-validation-properties.type.js.map +0 -1
- package/dist/type/utility/api/controller/transform-data/object-to-transform.type.js +0 -3
- package/dist/type/utility/api/controller/transform-data/object-to-transform.type.js.map +0 -1
- package/dist/type/utility/api/index.js +0 -3
- package/dist/type/utility/api/index.js.map +0 -1
- package/dist/type/utility/capitalize-string.type.js +0 -3
- package/dist/type/utility/capitalize-string.type.js.map +0 -1
- package/dist/type/utility/date-keys.type.js +0 -3
- package/dist/type/utility/date-keys.type.js.map +0 -1
- package/dist/type/utility/date-range-keys.type.js +0 -3
- package/dist/type/utility/date-range-keys.type.js.map +0 -1
- package/dist/type/utility/dto/generate-allowed-combination.type.js +0 -3
- package/dist/type/utility/dto/generate-allowed-combination.type.js.map +0 -1
- package/dist/type/utility/dto/generate-is-allowed-combination.type.js +0 -3
- package/dist/type/utility/dto/generate-is-allowed-combination.type.js.map +0 -1
- package/dist/type/utility/dto/index.js +0 -3
- package/dist/type/utility/dto/index.js.map +0 -1
- package/dist/type/utility/filter-keys.type.js +0 -3
- package/dist/type/utility/filter-keys.type.js.map +0 -1
- package/dist/type/utility/index.js +0 -3
- package/dist/type/utility/index.js.map +0 -1
- package/dist/type/utility/non-date-keys.type.js +0 -3
- package/dist/type/utility/non-date-keys.type.js.map +0 -1
- package/dist/utility/api/controller/apply-decorators.utility.js +0 -66
- package/dist/utility/api/controller/apply-decorators.utility.js.map +0 -1
- package/dist/utility/api/controller/apply-metadata.utility.js +0 -45
- package/dist/utility/api/controller/apply-metadata.utility.js.map +0 -1
- package/dist/utility/api/controller/get-list/index.js +0 -19
- package/dist/utility/api/controller/get-list/index.js.map +0 -1
- package/dist/utility/api/controller/get-list/transform-filter.utility.js +0 -30
- package/dist/utility/api/controller/get-list/transform-filter.utility.js.map +0 -1
- package/dist/utility/api/controller/get-list/transform-operation.utility.js +0 -80
- package/dist/utility/api/controller/get-list/transform-operation.utility.js.map +0 -1
- package/dist/utility/api/controller/get-method-name.utility.js +0 -8
- package/dist/utility/api/controller/get-method-name.utility.js.map +0 -1
- package/dist/utility/api/controller/get-primary-column.utility.js +0 -14
- package/dist/utility/api/controller/get-primary-column.utility.js.map +0 -1
- package/dist/utility/api/controller/handle-request-relations.utility.js +0 -54
- package/dist/utility/api/controller/handle-request-relations.utility.js.map +0 -1
- package/dist/utility/api/controller/index.js +0 -26
- package/dist/utility/api/controller/index.js.map +0 -1
- package/dist/utility/api/controller/transform-data.utility.js +0 -132
- package/dist/utility/api/controller/transform-data.utility.js.map +0 -1
- package/dist/utility/api/controller/validate-request.utility.js +0 -16
- package/dist/utility/api/controller/validate-request.utility.js.map +0 -1
- package/dist/utility/api/controller/write-dto-swagger.utility.js +0 -45
- package/dist/utility/api/controller/write-dto-swagger.utility.js.map +0 -1
- package/dist/utility/api/controller/write-method.utility.js +0 -13
- package/dist/utility/api/controller/write-method.utility.js.map +0 -1
- package/dist/utility/api/filter-order-by-from-entity.utility.js +0 -44
- package/dist/utility/api/filter-order-by-from-entity.utility.js.map +0 -1
- package/dist/utility/api/index.js +0 -19
- package/dist/utility/api/index.js.map +0 -1
- package/dist/utility/camel-case-string.utility.js +0 -30
- package/dist/utility/camel-case-string.utility.js.map +0 -1
- package/dist/utility/capitalize-string.utility.js +0 -7
- package/dist/utility/capitalize-string.utility.js.map +0 -1
- package/dist/utility/dto/analize.utility.js +0 -10
- package/dist/utility/dto/analize.utility.js.map +0 -1
- package/dist/utility/dto/build-decorator.utility.js +0 -34
- package/dist/utility/dto/build-decorator.utility.js.map +0 -1
- package/dist/utility/dto/generate-decorator.utility.js +0 -13
- package/dist/utility/dto/generate-decorator.utility.js.map +0 -1
- package/dist/utility/dto/generate-exception.utility.js +0 -87
- package/dist/utility/dto/generate-exception.utility.js.map +0 -1
- package/dist/utility/dto/generate-filter-decorator.utility.js +0 -35
- package/dist/utility/dto/generate-filter-decorator.utility.js.map +0 -1
- package/dist/utility/dto/generate-get-list-response.utility.js +0 -97
- package/dist/utility/dto/generate-get-list-response.utility.js.map +0 -1
- package/dist/utility/dto/generate-relation-response.utility.js +0 -27
- package/dist/utility/dto/generate-relation-response.utility.js.map +0 -1
- package/dist/utility/dto/generate.utility.js +0 -115
- package/dist/utility/dto/generate.utility.js.map +0 -1
- package/dist/utility/dto/get-decorator-config.utility.js +0 -21
- package/dist/utility/dto/get-decorator-config.utility.js.map +0 -1
- package/dist/utility/dto/get-get-list-query-base-class.utility.js +0 -83
- package/dist/utility/dto/get-get-list-query-base-class.utility.js.map +0 -1
- package/dist/utility/dto/handle-date-property.utility.js +0 -19
- package/dist/utility/dto/handle-date-property.utility.js.map +0 -1
- package/dist/utility/dto/index.js +0 -29
- package/dist/utility/dto/index.js.map +0 -1
- package/dist/utility/dto/is-property-exposed-for-guard.utility.js +0 -14
- package/dist/utility/dto/is-property-exposed-for-guard.utility.js.map +0 -1
- package/dist/utility/dto/is-property-should-be-marked.utility.js +0 -29
- package/dist/utility/dto/is-property-should-be-marked.utility.js.map +0 -1
- package/dist/utility/dto/is-should-be-generated.utility.js +0 -25
- package/dist/utility/dto/is-should-be-generated.utility.js.map +0 -1
- package/dist/utility/dto/validate-property-config.utility.js +0 -6
- package/dist/utility/dto/validate-property-config.utility.js.map +0 -1
- package/dist/utility/error-exception.utility.js +0 -7
- package/dist/utility/error-exception.utility.js.map +0 -1
- package/dist/utility/error-string.utility.js +0 -7
- package/dist/utility/error-string.utility.js.map +0 -1
- package/dist/utility/generate-entity-information.utility.js +0 -60
- package/dist/utility/generate-entity-information.utility.js.map +0 -1
- package/dist/utility/get-entity-columns.utility.js +0 -20
- package/dist/utility/get-entity-columns.utility.js.map +0 -1
- package/dist/utility/index.js +0 -26
- package/dist/utility/index.js.map +0 -1
- package/dist/utility/is-error-of-type.utility.js +0 -51
- package/dist/utility/is-error-of-type.utility.js.map +0 -1
- package/dist/validator/all-or-none-of-listed-properties.validator.js +0 -29
- package/dist/validator/all-or-none-of-listed-properties.validator.js.map +0 -1
- package/dist/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js +0 -39
- package/dist/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js.map +0 -1
- package/dist/validator/has-at-least-one-of-listed-properties.validator.js +0 -35
- package/dist/validator/has-at-least-one-of-listed-properties.validator.js.map +0 -1
- package/dist/validator/has-at-least-one-property.validator.js +0 -23
- package/dist/validator/has-at-least-one-property.validator.js.map +0 -1
- package/dist/validator/has-paired-custom-suffixes-fields.validator.js +0 -220
- package/dist/validator/has-paired-custom-suffixes-fields.validator.js.map +0 -1
- package/dist/validator/index.js +0 -23
- package/dist/validator/index.js.map +0 -1
- package/dist/validator/is-regular-expression.validator.js +0 -31
- package/dist/validator/is-regular-expression.validator.js.map +0 -1
- package/dist/validator/only-one-of-listed-properties.validator.js +0 -34
- package/dist/validator/only-one-of-listed-properties.validator.js.map +0 -1
- /package/dist/{class → cjs/class}/api/index.d.ts +0 -0
- /package/dist/{class → cjs/class}/api/service-base.class.d.ts +0 -0
- /package/dist/{class → cjs/class}/index.d.ts +0 -0
- /package/dist/{class → cjs/class}/metadata-storage.class.d.ts +0 -0
- /package/dist/{class → cjs/class}/utility/dto/index.d.ts +0 -0
- /package/dist/{class → cjs/class}/utility/dto/property/factory/boolean.class.d.ts +0 -0
- /package/dist/{class → cjs/class}/utility/dto/property/factory/date.class.d.ts +0 -0
- /package/dist/{class → cjs/class}/utility/dto/property/factory/enum.class.d.ts +0 -0
- /package/dist/{class → cjs/class}/utility/dto/property/factory/index.d.ts +0 -0
- /package/dist/{class → cjs/class}/utility/dto/property/factory/object.class.d.ts +0 -0
- /package/dist/{class → cjs/class}/utility/dto/property/factory/relation.class.d.ts +0 -0
- /package/dist/{class → cjs/class}/utility/dto/property/factory/string.class.d.ts +0 -0
- /package/dist/{class → cjs/class}/utility/dto/property/factory/uuid.class.d.ts +0 -0
- /package/dist/{class → cjs/class}/utility/dto/property/index.d.ts +0 -0
- /package/dist/{class → cjs/class}/utility/dto/strategy/body.class.d.ts +0 -0
- /package/dist/{class → cjs/class}/utility/dto/strategy/index.d.ts +0 -0
- /package/dist/{class → cjs/class}/utility/dto/strategy/query.class.d.ts +0 -0
- /package/dist/{class → cjs/class}/utility/dto/strategy/request.class.d.ts +0 -0
- /package/dist/{class → cjs/class}/utility/dto/strategy/response.class.d.ts +0 -0
- /package/dist/{class → cjs/class}/utility/index.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/date.constant.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/decorator/api/controller.constant.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/decorator/api/function.constant.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/decorator/api/index.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/decorator/api/property-describe.constant.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/decorator/index.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/dto/exception.constant.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/dto/index.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/dto/list.constant.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/dto/transformer-value.constant.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/factory/dto/get-list-query.constant.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/factory/dto/index.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/factory/index.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/index.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/interface/api/filter.constant.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/interface/api/index.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/interface/api/property/index.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/interface/api/property/string.constant.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/interface/api/property/wallet.constant.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/interface/index.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/number.constant.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/utility/dto/constant.d.ts +0 -0
- /package/dist/{constant → cjs/constant}/utility/dto/generate.constant.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/controller.decorator.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/function/create.decorator.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/function/decorator.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/function/delete.decorator.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/function/get-list.decorator.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/function/get-many.decorator.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/function/get.decorator.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/function/index.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/function/update.decorator.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/index.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/method.decorator.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/property/boolean.decorator.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/property/date.decorator.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/property/describe.decorator.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/property/enum.decorator.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/property/index.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/property/number.decorator.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/property/object.decorator.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/property/string.decorator.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/property/uuid.decorator.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/api/service.decorator.d.ts +0 -0
- /package/dist/{decorator → cjs/decorator}/index.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/decorator/api/action.enum.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/decorator/api/authentication-type.enum.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/decorator/api/controller/index.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/decorator/api/controller/load-relations-strategy.enum.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/decorator/api/controller/request-transformer-type.enum.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/decorator/api/dto-type.enum.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/decorator/api/function/index.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/decorator/api/function/type.enum.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/decorator/api/index.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/decorator/api/property/data-type.enum.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/decorator/api/property/date/identifier.enum.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/decorator/api/property/date/index.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/decorator/api/property/date/type.enum.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/decorator/api/property/desribe-type.enum.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/decorator/api/property/index.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/decorator/api/property/number-type.enum.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/decorator/api/property/string-type.enum.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/decorator/api/route-type.enum.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/decorator/index.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/exception.enum.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/filter-operation.enum.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/filter-order-direction.enum.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/index.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/utility/error-string-action.enum.d.ts +0 -0
- /package/dist/{enum → cjs/enum}/utility/index.d.ts +0 -0
- /package/dist/{factory → cjs/factory}/api/controller.factory.d.ts +0 -0
- /package/dist/{factory → cjs/factory}/api/index.d.ts +0 -0
- /package/dist/{factory → cjs/factory}/index.d.ts +0 -0
- /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
- /package/dist/{interceptor → cjs/interceptor}/correlation-id-response-body.interceptor.d.ts +0 -0
- /package/dist/{interceptor → cjs/interceptor}/index.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/api-authentication-request.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/api-base-entity.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/api-dto-validator.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/api-request-validator.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/class/dto/index.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/class/index.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/class/metadata-entry.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/controller/base.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/controller/index.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/controller/properties/index.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/controller/properties/route/authentication.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/controller/properties/route/auto-dto-config.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/controller/properties/route/base-request.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/controller/properties/route/base-response.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/controller/properties/route/base.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/controller/properties/route/index.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/controller/properties/route/with-auto-dto.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/controller/properties/route/with-dto.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/controller/properties.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/function/create-executor-properties.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/function/delete-executor-properties.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/function/get-executor-properties.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/function/get-list-executor-properties.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/function/get-many-executor-properties.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/function/index.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/function/properties.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/function/update-executor-properties.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/get-list-response-result.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/index.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/method/index.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/method/properties.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/method/throttler-properties.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/api/response-type.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/decorator/index.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/dto-generate-factory.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/entity/column.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/entity/index.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/entity/interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/index.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/utility/api/controller/index.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/utility/api/controller/primary-column.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/utility/api/index.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/utility/error-string-properties.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/utility/get-entity-columns-properties.interface.d.ts +0 -0
- /package/dist/{interface → cjs/interface}/utility/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/api-request-transformer.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/class/api-exception.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/class/controller/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/class/controller/method.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/class/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/controller/constructor.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/controller/get-list-query.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/controller/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/controller/properties/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/controller/properties/route/base-request-relations.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/controller/properties/route/base-request-transformers.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/controller/properties/route/base-response-transformers.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/controller/properties/route/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/controller/properties-route.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/controller/transformer-config.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/filter/allowed-types.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/filter/extracted-allowed-types.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/filter/field-selector.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/filter/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/filter/order-by.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/function/create-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/function/delete-criteria.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/function/get-list-properties-where.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/function/get-list-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/function/get-many.properties.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/function/get-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/function/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/function/properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/function/update-criteria.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/function/update-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/base/array/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/base/array/optional-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/base/array/required-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/base/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/base/properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/base/request-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/base/response-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/date-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/array/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/array/optional-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/array/required-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/base-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/boolean-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/date-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/dto/body-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/dto/guard-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/dto/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/dto/properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/dto/query/get-list-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/dto/query/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/dto/query/properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/dto/request-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/dto/response-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/enum-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/example-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/number-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/object-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/properties/base-dto-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/properties/base-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/properties/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/relation-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/string-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/describe/uuid-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/enum-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/number-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/object-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/string-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/property/uuid-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/service/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/service/keys.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/api/service/properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/decorator/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/factory/api/controller/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/factory/api/controller/method-map.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/factory/api/controller/method-name-map.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/factory/api/controller/method-name.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/factory/api/controller/target-methods.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/factory/api/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/factory/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/utility/api/controller/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/utility/api/controller/transform-data/data.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/utility/api/controller/transform-data/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/utility/api/controller/transform-data/is-validation-properties.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/utility/api/controller/transform-data/object-to-transform.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/utility/api/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/utility/capitalize-string.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/utility/date-keys.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/utility/date-range-keys.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/utility/dto/generate-allowed-combination.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/utility/dto/generate-is-allowed-combination.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/utility/dto/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/utility/filter-keys.type.d.ts +0 -0
- /package/dist/{type → cjs/type}/utility/index.d.ts +0 -0
- /package/dist/{type → cjs/type}/utility/non-date-keys.type.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/api/controller/apply-decorators.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/api/controller/apply-metadata.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/api/controller/get-list/index.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/api/controller/get-list/transform-filter.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/api/controller/get-list/transform-operation.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/api/controller/get-method-name.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/api/controller/get-primary-column.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/api/controller/handle-request-relations.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/api/controller/index.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/api/controller/transform-data.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/api/controller/validate-request.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/api/controller/write-dto-swagger.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/api/controller/write-method.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/api/filter-order-by-from-entity.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/api/index.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/camel-case-string.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/capitalize-string.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/dto/analize.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/dto/build-decorator.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/dto/generate-decorator.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/dto/generate-exception.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/dto/generate-filter-decorator.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/dto/generate-get-list-response.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/dto/generate-relation-response.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/dto/generate.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/dto/get-decorator-config.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/dto/get-get-list-query-base-class.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/dto/handle-date-property.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/dto/index.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/dto/is-property-exposed-for-guard.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/dto/is-property-should-be-marked.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/dto/is-should-be-generated.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/dto/validate-property-config.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/error-exception.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/error-string.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/generate-entity-information.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/get-entity-columns.utility.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/index.d.ts +0 -0
- /package/dist/{utility → cjs/utility}/is-error-of-type.utility.d.ts +0 -0
- /package/dist/{validator → cjs/validator}/all-or-none-of-listed-properties.validator.d.ts +0 -0
- /package/dist/{validator → cjs/validator}/has-at-least-one-and-only-one-of-listed-properties.validator.d.ts +0 -0
- /package/dist/{validator → cjs/validator}/has-at-least-one-of-listed-properties.validator.d.ts +0 -0
- /package/dist/{validator → cjs/validator}/has-at-least-one-property.validator.d.ts +0 -0
- /package/dist/{validator → cjs/validator}/has-paired-custom-suffixes-fields.validator.d.ts +0 -0
- /package/dist/{validator → cjs/validator}/index.d.ts +0 -0
- /package/dist/{validator → cjs/validator}/is-regular-expression.validator.d.ts +0 -0
- /package/dist/{validator → cjs/validator}/only-one-of-listed-properties.validator.d.ts +0 -0
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var common = require('@nestjs/common');
|
|
4
|
+
var swagger = require('@nestjs/swagger');
|
|
5
|
+
var classTransformer = require('class-transformer');
|
|
6
|
+
var classValidator = require('class-validator');
|
|
7
|
+
require('../../../enum/decorator/api/action.enum.js');
|
|
8
|
+
require('../../../enum/decorator/api/authentication-type.enum.js');
|
|
9
|
+
require('../../../enum/decorator/api/controller/load-relations-strategy.enum.js');
|
|
10
|
+
require('../../../enum/decorator/api/controller/request-transformer-type.enum.js');
|
|
11
|
+
require('../../../enum/decorator/api/dto-type.enum.js');
|
|
12
|
+
require('../../../enum/decorator/api/function/type.enum.js');
|
|
13
|
+
var dataType_enum = require('../../../enum/decorator/api/property/data-type.enum.js');
|
|
14
|
+
require('../../../enum/decorator/api/property/date/identifier.enum.js');
|
|
15
|
+
require('../../../enum/decorator/api/property/date/type.enum.js');
|
|
16
|
+
require('../../../enum/decorator/api/property/desribe-type.enum.js');
|
|
17
|
+
require('../../../enum/decorator/api/property/number-type.enum.js');
|
|
18
|
+
require('../../../enum/decorator/api/property/string-type.enum.js');
|
|
19
|
+
require('../../../enum/decorator/api/route-type.enum.js');
|
|
20
|
+
require('../../../enum/exception.enum.js');
|
|
21
|
+
require('../../../enum/filter-order-direction.enum.js');
|
|
22
|
+
require('../../../enum/utility/error-string-action.enum.js');
|
|
23
|
+
|
|
24
|
+
function ApiPropertyBoolean(properties) {
|
|
25
|
+
validateOptions(properties);
|
|
26
|
+
const apiPropertyOptions = buildApiPropertyOptions(properties);
|
|
27
|
+
const decorators = buildDecorators(properties, apiPropertyOptions);
|
|
28
|
+
return common.applyDecorators(...decorators);
|
|
29
|
+
}
|
|
30
|
+
function buildApiPropertyOptions(properties) {
|
|
31
|
+
const apiPropertyOptions = {
|
|
32
|
+
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
33
|
+
nullable: properties.isNullable,
|
|
34
|
+
type: dataType_enum.EApiPropertyDataType.BOOLEAN,
|
|
35
|
+
};
|
|
36
|
+
apiPropertyOptions.required = properties.isResponse === false || properties.isResponse === undefined ? properties.isRequired : false;
|
|
37
|
+
if (properties.isArray) {
|
|
38
|
+
apiPropertyOptions.isArray = true;
|
|
39
|
+
apiPropertyOptions.minItems = properties.minItems;
|
|
40
|
+
apiPropertyOptions.maxItems = properties.maxItems;
|
|
41
|
+
apiPropertyOptions.uniqueItems = properties.isUniqueItems;
|
|
42
|
+
apiPropertyOptions.example = [true];
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
apiPropertyOptions.example = true;
|
|
46
|
+
}
|
|
47
|
+
return apiPropertyOptions;
|
|
48
|
+
}
|
|
49
|
+
function buildDecorators(properties, apiPropertyOptions) {
|
|
50
|
+
const decorators = [swagger.ApiProperty(apiPropertyOptions)];
|
|
51
|
+
decorators.push(...buildResponseDecorators(properties), ...buildRequestDecorators(properties), ...buildFormatDecorators(properties), ...buildTransformDecorators(properties));
|
|
52
|
+
return decorators;
|
|
53
|
+
}
|
|
54
|
+
function buildFormatDecorators(properties) {
|
|
55
|
+
const decorators = [];
|
|
56
|
+
const isArray = properties.isArray ?? false;
|
|
57
|
+
if (properties.isResponse === undefined || !properties.isResponse) {
|
|
58
|
+
decorators.push(classValidator.IsBoolean({ each: isArray }));
|
|
59
|
+
}
|
|
60
|
+
return decorators;
|
|
61
|
+
}
|
|
62
|
+
function buildRequestDecorators(properties) {
|
|
63
|
+
const decorators = [];
|
|
64
|
+
if (properties.isResponse === false || properties.isResponse === undefined) {
|
|
65
|
+
if (!properties.isRequired) {
|
|
66
|
+
decorators.push(classValidator.IsOptional());
|
|
67
|
+
}
|
|
68
|
+
if (properties.isArray === true) {
|
|
69
|
+
decorators.push(classValidator.IsArray(), classValidator.ArrayMinSize(properties.minItems), classValidator.ArrayMaxSize(properties.maxItems));
|
|
70
|
+
if (properties.minItems > 0) {
|
|
71
|
+
decorators.push(classValidator.ArrayNotEmpty());
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return decorators;
|
|
76
|
+
}
|
|
77
|
+
function buildResponseDecorators(properties) {
|
|
78
|
+
const decorators = [];
|
|
79
|
+
if (properties.isResponse) {
|
|
80
|
+
decorators.push(swagger.ApiResponseProperty());
|
|
81
|
+
if (properties.isExpose === undefined || properties.isExpose) {
|
|
82
|
+
decorators.push(classTransformer.Expose());
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
decorators.push(classTransformer.Exclude());
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return decorators;
|
|
89
|
+
}
|
|
90
|
+
function buildTransformDecorators(properties) {
|
|
91
|
+
const decorators = [];
|
|
92
|
+
if (!properties.isResponse) {
|
|
93
|
+
if (properties.isArray) {
|
|
94
|
+
decorators.push(classTransformer.Transform(({ value }) => {
|
|
95
|
+
if (value === null || value === undefined) {
|
|
96
|
+
return [];
|
|
97
|
+
}
|
|
98
|
+
if (!Array.isArray(value)) {
|
|
99
|
+
const singleValue = value;
|
|
100
|
+
if (singleValue === undefined || singleValue === null)
|
|
101
|
+
return [false];
|
|
102
|
+
if (typeof singleValue === "boolean")
|
|
103
|
+
return [singleValue];
|
|
104
|
+
if (typeof singleValue === "number")
|
|
105
|
+
return [singleValue !== 0];
|
|
106
|
+
if (typeof singleValue === "string") {
|
|
107
|
+
const normalized = singleValue.toLowerCase().trim();
|
|
108
|
+
if (normalized === "true" || normalized === "1")
|
|
109
|
+
return [true];
|
|
110
|
+
if (normalized === "false" || normalized === "0")
|
|
111
|
+
return [false];
|
|
112
|
+
return [Boolean(normalized)];
|
|
113
|
+
}
|
|
114
|
+
return [false];
|
|
115
|
+
}
|
|
116
|
+
return value.map((_value) => {
|
|
117
|
+
if (_value === undefined || _value === null)
|
|
118
|
+
return false;
|
|
119
|
+
if (typeof _value === "boolean")
|
|
120
|
+
return _value;
|
|
121
|
+
if (typeof _value === "number")
|
|
122
|
+
return _value !== 0;
|
|
123
|
+
if (typeof _value === "string") {
|
|
124
|
+
const normalized = _value.toLowerCase().trim();
|
|
125
|
+
if (normalized === "true" || normalized === "1")
|
|
126
|
+
return true;
|
|
127
|
+
if (normalized === "false" || normalized === "0")
|
|
128
|
+
return false;
|
|
129
|
+
return Boolean(normalized);
|
|
130
|
+
}
|
|
131
|
+
return false;
|
|
132
|
+
});
|
|
133
|
+
}, { toClassOnly: true }));
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
decorators.push(classTransformer.Transform(({ value }) => {
|
|
137
|
+
if (value === undefined || value === null)
|
|
138
|
+
return false;
|
|
139
|
+
if (typeof value === "boolean")
|
|
140
|
+
return value;
|
|
141
|
+
if (typeof value === "number")
|
|
142
|
+
return value !== 0;
|
|
143
|
+
if (typeof value === "string") {
|
|
144
|
+
value = value.toLowerCase().trim();
|
|
145
|
+
if (value === "true" || value === "1")
|
|
146
|
+
return true;
|
|
147
|
+
if (value === "false" || value === "0")
|
|
148
|
+
return false;
|
|
149
|
+
return Boolean(value);
|
|
150
|
+
}
|
|
151
|
+
return false;
|
|
152
|
+
}, { toClassOnly: true }));
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return decorators;
|
|
156
|
+
}
|
|
157
|
+
function validateOptions(properties) {
|
|
158
|
+
const errors = [];
|
|
159
|
+
if (properties.isArray === true) {
|
|
160
|
+
if (properties.minItems > properties.maxItems) {
|
|
161
|
+
errors.push("'minItems' is greater than 'maxItems'");
|
|
162
|
+
}
|
|
163
|
+
if (properties.minItems < 0) {
|
|
164
|
+
errors.push("'minItems' is less than 0");
|
|
165
|
+
}
|
|
166
|
+
if (properties.maxItems < 0) {
|
|
167
|
+
errors.push("'maxItems' is less than 0");
|
|
168
|
+
}
|
|
169
|
+
if (properties.isUniqueItems && properties.maxItems <= 1) {
|
|
170
|
+
errors.push("'uniqueItems' is true but 'maxItems' is less than or equal to 1");
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
if (errors.length > 0) {
|
|
174
|
+
throw new Error(`ApiPropertyBoolean error: ${errors.join("\n")}`);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
exports.ApiPropertyBoolean = ApiPropertyBoolean;
|
|
179
|
+
//# sourceMappingURL=boolean.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boolean.decorator.js","sources":["../../../../../../src/decorator/api/property/boolean.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","EApiPropertyDataType","ApiProperty","IsBoolean","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Transform"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAWM,SAAU,kBAAkB,CAAC,UAAsC,EAAA;IACxE,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC;IAClF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC;AAE5F,IAAA,OAAOA,sBAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA,SAAS,uBAAuB,CAAC,UAAsC,EAAA;AACtE,IAAA,MAAM,kBAAkB,GAAuB;AAC9C,QAAA,WAAW,EAAE,CAAG,EAAA,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,EAAE,CAAE,CAAA;QAEhF,QAAQ,EAAE,UAAU,CAAC,UAAU;QAC/B,IAAI,EAAEC,kCAAoB,CAAC,OAAO;KAClC;IAED,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,UAAU,KAAK,KAAK,IAAI,UAAU,CAAC,UAAU,KAAK,SAAS,GAAG,UAAU,CAAC,UAAU,GAAG,KAAK;AAEpI,IAAA,IAAI,UAAU,CAAC,OAAO,EAAE;AACvB,QAAA,kBAAkB,CAAC,OAAO,GAAG,IAAI;AACjC,QAAA,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ;AACjD,QAAA,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ;AACjD,QAAA,kBAAkB,CAAC,WAAW,GAAG,UAAU,CAAC,aAAa;AACzD,QAAA,kBAAkB,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC;;SAC7B;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AC,EAAE;AACtB,QAAA,MAAM,IAAI,KAAK,CAAC,CAAA,0BAAA,EAA6B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAE,CAAA,CAAC;;AAEnE;;;;"}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var common = require('@nestjs/common');
|
|
4
|
+
var swagger = require('@nestjs/swagger');
|
|
5
|
+
var classTransformer = require('class-transformer');
|
|
6
|
+
var classValidator = require('class-validator');
|
|
7
|
+
require('../../../enum/decorator/api/action.enum.js');
|
|
8
|
+
require('../../../enum/decorator/api/authentication-type.enum.js');
|
|
9
|
+
require('../../../enum/decorator/api/controller/load-relations-strategy.enum.js');
|
|
10
|
+
require('../../../enum/decorator/api/controller/request-transformer-type.enum.js');
|
|
11
|
+
require('../../../enum/decorator/api/dto-type.enum.js');
|
|
12
|
+
require('../../../enum/decorator/api/function/type.enum.js');
|
|
13
|
+
var dataType_enum = require('../../../enum/decorator/api/property/data-type.enum.js');
|
|
14
|
+
var identifier_enum = require('../../../enum/decorator/api/property/date/identifier.enum.js');
|
|
15
|
+
var type_enum = require('../../../enum/decorator/api/property/date/type.enum.js');
|
|
16
|
+
require('../../../enum/decorator/api/property/desribe-type.enum.js');
|
|
17
|
+
require('../../../enum/decorator/api/property/number-type.enum.js');
|
|
18
|
+
require('../../../enum/decorator/api/property/string-type.enum.js');
|
|
19
|
+
require('../../../enum/decorator/api/route-type.enum.js');
|
|
20
|
+
require('../../../enum/exception.enum.js');
|
|
21
|
+
require('../../../enum/filter-order-direction.enum.js');
|
|
22
|
+
require('../../../enum/utility/error-string-action.enum.js');
|
|
23
|
+
|
|
24
|
+
function ApiPropertyDate(properties) {
|
|
25
|
+
validateOptions(properties);
|
|
26
|
+
const apiPropertyOptions = buildApiPropertyOptions(properties);
|
|
27
|
+
const decorators = buildDecorators(properties, apiPropertyOptions);
|
|
28
|
+
return common.applyDecorators(...decorators);
|
|
29
|
+
}
|
|
30
|
+
function buildApiPropertyOptions(properties) {
|
|
31
|
+
const example = getExample(properties.format);
|
|
32
|
+
const apiPropertyOptions = {
|
|
33
|
+
description: `${String(properties.entity.name)} ${getDescription(properties.identifier)}`,
|
|
34
|
+
nullable: properties.isNullable,
|
|
35
|
+
type: dataType_enum.EApiPropertyDataType.STRING,
|
|
36
|
+
};
|
|
37
|
+
apiPropertyOptions.required = properties.isResponse === false || properties.isResponse === undefined ? properties.isRequired : false;
|
|
38
|
+
if (properties.isArray) {
|
|
39
|
+
apiPropertyOptions.isArray = true;
|
|
40
|
+
apiPropertyOptions.minItems = properties.minItems;
|
|
41
|
+
apiPropertyOptions.maxItems = properties.maxItems;
|
|
42
|
+
apiPropertyOptions.uniqueItems = properties.isUniqueItems;
|
|
43
|
+
apiPropertyOptions.items = {
|
|
44
|
+
maxLength: example.length,
|
|
45
|
+
minLength: example.length,
|
|
46
|
+
};
|
|
47
|
+
apiPropertyOptions.example = [example];
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
apiPropertyOptions.minLength = example.length;
|
|
51
|
+
apiPropertyOptions.maxLength = example.length;
|
|
52
|
+
apiPropertyOptions.example = example;
|
|
53
|
+
}
|
|
54
|
+
apiPropertyOptions.pattern = getPattern(properties.format);
|
|
55
|
+
apiPropertyOptions.format = properties.format;
|
|
56
|
+
return apiPropertyOptions;
|
|
57
|
+
}
|
|
58
|
+
function buildDecorators(properties, apiPropertyOptions) {
|
|
59
|
+
const decorators = [swagger.ApiProperty(apiPropertyOptions)];
|
|
60
|
+
decorators.push(...buildResponseDecorators(properties), ...buildRequestDecorators(properties), ...buildFormatDecorators(properties), ...buildTransformDecorators(properties));
|
|
61
|
+
return decorators;
|
|
62
|
+
}
|
|
63
|
+
function buildFormatDecorators(properties) {
|
|
64
|
+
const decorators = [];
|
|
65
|
+
const isArray = properties.isArray ?? false;
|
|
66
|
+
if (!properties.isResponse) {
|
|
67
|
+
decorators.push(classValidator.IsDate({ each: isArray }));
|
|
68
|
+
}
|
|
69
|
+
return decorators;
|
|
70
|
+
}
|
|
71
|
+
function buildRequestDecorators(properties) {
|
|
72
|
+
const decorators = [];
|
|
73
|
+
if (properties.isResponse === false || properties.isResponse === undefined) {
|
|
74
|
+
if (!properties.isRequired) {
|
|
75
|
+
decorators.push(classValidator.IsOptional());
|
|
76
|
+
}
|
|
77
|
+
if (properties.isArray === true) {
|
|
78
|
+
decorators.push(classValidator.IsArray(), classValidator.ArrayMinSize(properties.minItems), classValidator.ArrayMaxSize(properties.maxItems));
|
|
79
|
+
if (properties.minItems > 0) {
|
|
80
|
+
decorators.push(classValidator.ArrayNotEmpty());
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return decorators;
|
|
85
|
+
}
|
|
86
|
+
function buildResponseDecorators(properties) {
|
|
87
|
+
const decorators = [];
|
|
88
|
+
if (properties.isResponse) {
|
|
89
|
+
decorators.push(swagger.ApiResponseProperty());
|
|
90
|
+
if (properties.isExpose === undefined || properties.isExpose) {
|
|
91
|
+
decorators.push(classTransformer.Expose());
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
decorators.push(classTransformer.Exclude());
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return decorators;
|
|
98
|
+
}
|
|
99
|
+
function buildTransformDecorators(properties) {
|
|
100
|
+
const decorators = [];
|
|
101
|
+
if (!properties.isResponse) {
|
|
102
|
+
if (properties.isArray) {
|
|
103
|
+
decorators.push(classTransformer.Transform(({ value }) => {
|
|
104
|
+
if (!Array.isArray(value)) {
|
|
105
|
+
const singleValue = value;
|
|
106
|
+
return singleValue ? [new Date(singleValue)] : [];
|
|
107
|
+
}
|
|
108
|
+
return value.map((dateString) => (dateString ? new Date(dateString) : undefined));
|
|
109
|
+
}, { toClassOnly: true }));
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
decorators.push(classTransformer.Transform(({ value }) => (value ? new Date(value) : undefined), { toClassOnly: true }));
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return decorators;
|
|
116
|
+
}
|
|
117
|
+
function getDescription(identifier) {
|
|
118
|
+
switch (identifier) {
|
|
119
|
+
case identifier_enum.EApiPropertyDateIdentifier.CREATED_AT: {
|
|
120
|
+
return "creation date";
|
|
121
|
+
}
|
|
122
|
+
case identifier_enum.EApiPropertyDateIdentifier.CREATED_AT_FROM: {
|
|
123
|
+
return "createdAt from";
|
|
124
|
+
}
|
|
125
|
+
case identifier_enum.EApiPropertyDateIdentifier.CREATED_AT_TO: {
|
|
126
|
+
return "createdAt to";
|
|
127
|
+
}
|
|
128
|
+
case identifier_enum.EApiPropertyDateIdentifier.DATE: {
|
|
129
|
+
return "date";
|
|
130
|
+
}
|
|
131
|
+
case identifier_enum.EApiPropertyDateIdentifier.EXPIRES_IN: {
|
|
132
|
+
return "expiration date";
|
|
133
|
+
}
|
|
134
|
+
case identifier_enum.EApiPropertyDateIdentifier.RECEIVED_AT: {
|
|
135
|
+
return "receivedAt date";
|
|
136
|
+
}
|
|
137
|
+
case identifier_enum.EApiPropertyDateIdentifier.RECEIVED_AT_FROM: {
|
|
138
|
+
return "receivedAt from";
|
|
139
|
+
}
|
|
140
|
+
case identifier_enum.EApiPropertyDateIdentifier.RECEIVED_AT_TO: {
|
|
141
|
+
return "receivedAt to";
|
|
142
|
+
}
|
|
143
|
+
case identifier_enum.EApiPropertyDateIdentifier.REFRESH_IN: {
|
|
144
|
+
return "refresh date";
|
|
145
|
+
}
|
|
146
|
+
case identifier_enum.EApiPropertyDateIdentifier.UPDATED_AT: {
|
|
147
|
+
return "last update date";
|
|
148
|
+
}
|
|
149
|
+
case identifier_enum.EApiPropertyDateIdentifier.UPDATED_AT_FROM: {
|
|
150
|
+
return "updatedAt from";
|
|
151
|
+
}
|
|
152
|
+
case identifier_enum.EApiPropertyDateIdentifier.UPDATED_AT_TO: {
|
|
153
|
+
return "updatedAt to";
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function getExample(format) {
|
|
158
|
+
const startOfYearUTCDate = new Date(Date.UTC(new Date().getUTCFullYear(), 0, 1, 0, 0, 0, 0));
|
|
159
|
+
switch (format) {
|
|
160
|
+
case type_enum.EApiPropertyDateType.DATE: {
|
|
161
|
+
return startOfYearUTCDate.toISOString().split("T")[0];
|
|
162
|
+
}
|
|
163
|
+
case type_enum.EApiPropertyDateType.DATE_TIME: {
|
|
164
|
+
return startOfYearUTCDate.toISOString();
|
|
165
|
+
}
|
|
166
|
+
case type_enum.EApiPropertyDateType.TIME: {
|
|
167
|
+
return startOfYearUTCDate.toISOString().split("T")[1].split(".")[0];
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
function getPattern(format) {
|
|
172
|
+
switch (format) {
|
|
173
|
+
case type_enum.EApiPropertyDateType.DATE: {
|
|
174
|
+
return "^[0-9]{4}-[0-9]{2}-[0-9]{2}$";
|
|
175
|
+
}
|
|
176
|
+
case type_enum.EApiPropertyDateType.DATE_TIME: {
|
|
177
|
+
return "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}Z$";
|
|
178
|
+
}
|
|
179
|
+
case type_enum.EApiPropertyDateType.TIME: {
|
|
180
|
+
return "^[0-9]{2}:[0-9]{2}:[0-9]{2}$";
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
function validateOptions(properties) {
|
|
185
|
+
const errors = [];
|
|
186
|
+
if (properties.isArray === true) {
|
|
187
|
+
if (properties.minItems > properties.maxItems) {
|
|
188
|
+
errors.push("'minItems' is greater than 'maxItems'");
|
|
189
|
+
}
|
|
190
|
+
if (properties.minItems < 0) {
|
|
191
|
+
errors.push("'minItems' is less than 0");
|
|
192
|
+
}
|
|
193
|
+
if (properties.maxItems < 0) {
|
|
194
|
+
errors.push("'maxItems' is less than 0");
|
|
195
|
+
}
|
|
196
|
+
if (properties.isUniqueItems && properties.maxItems <= 1) {
|
|
197
|
+
errors.push("'uniqueItems' is true but 'maxItems' is less than or equal to 1");
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
if (errors.length > 0) {
|
|
201
|
+
throw new Error(`ApiPropertyDate error: ${errors.join("\n")}`);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
exports.ApiPropertyDate = ApiPropertyDate;
|
|
206
|
+
//# sourceMappingURL=date.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.decorator.js","sources":["../../../../../../src/decorator/api/property/date.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","EApiPropertyDataType","ApiProperty","IsDate","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Transform","EApiPropertyDateIdentifier","EApiPropertyDateType"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAWM,SAAU,eAAe,CAAC,UAAsC,EAAA;IACrE,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC;IAClF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC;AAE5F,IAAA,OAAOA,sBAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA,SAAS,uBAAuB,CAAC,UAAsC,EAAA;IACtE,MAAM,OAAO,GAAW,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC;AAErD,IAAA,MAAM,kBAAkB,GAAuB;AAC9C,QAAA,WAAW,EAAE,CAAG,EAAA,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,UAAU,CAAC,UAAU,CAAC,CAAE,CAAA;QAEzF,QAAQ,EAAE,UAAU,CAAC,UAAU;QAC/B,IAAI,EAAEC,kCAAoB,CAAC,MAAM;KACjC;IAED,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,UAAU,K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
|
+
require('../../../enum/decorator/api/authentication-type.enum.js');
|
|
6
|
+
require('../../../enum/decorator/api/controller/load-relations-strategy.enum.js');
|
|
7
|
+
require('../../../enum/decorator/api/controller/request-transformer-type.enum.js');
|
|
8
|
+
require('../../../enum/decorator/api/dto-type.enum.js');
|
|
9
|
+
require('../../../enum/decorator/api/function/type.enum.js');
|
|
10
|
+
require('../../../enum/decorator/api/property/data-type.enum.js');
|
|
11
|
+
require('../../../enum/decorator/api/property/date/identifier.enum.js');
|
|
12
|
+
require('../../../enum/decorator/api/property/date/type.enum.js');
|
|
13
|
+
require('../../../enum/decorator/api/property/desribe-type.enum.js');
|
|
14
|
+
require('../../../enum/decorator/api/property/number-type.enum.js');
|
|
15
|
+
require('../../../enum/decorator/api/property/string-type.enum.js');
|
|
16
|
+
require('../../../enum/decorator/api/route-type.enum.js');
|
|
17
|
+
require('../../../enum/exception.enum.js');
|
|
18
|
+
require('../../../enum/filter-order-direction.enum.js');
|
|
19
|
+
require('../../../enum/utility/error-string-action.enum.js');
|
|
20
|
+
require('../../../constant/decorator/api/function.constant.js');
|
|
21
|
+
var propertyDescribe_constant = require('../../../constant/decorator/api/property-describe.constant.js');
|
|
22
|
+
|
|
23
|
+
function ApiPropertyDescribe(properties) {
|
|
24
|
+
return (target, propertyKey) => {
|
|
25
|
+
const entityName = target.constructor.name;
|
|
26
|
+
metadataStorage_class.MetadataStorage.getInstance().setMetadata(entityName, propertyKey, propertyDescribe_constant.PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT.METADATA_PROPERTY_NAME, properties);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
exports.ApiPropertyDescribe = ApiPropertyDescribe;
|
|
31
|
+
//# sourceMappingURL=describe.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"describe.decorator.js","sources":["../../../../../../src/decorator/api/property/describe.decorator.ts"],"sourcesContent":[null],"names":["MetadataStorage","PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAKM,SAAU,mBAAmB,CAAC,UAA0C,EAAA;AAC7E,IAAA,OAAO,CAAC,MAAwB,EAAE,WAAmB,KAAU;AAC9D,QAAA,MAAM,UAAU,GAAW,MAAM,CAAC,WAAW,CAAC,IAAI;AAClD,QAAAA,qCAAe,CAAC,WAAW,EAAE,CAAC,WAAW,CAAC,UAAU,EAAE,WAAW,EAAEC,kEAAwC,CAAC,sBAAsB,EAAE,UAAU,CAAC;AAChJ,KAAC;AACF;;;;"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var common = require('@nestjs/common');
|
|
4
|
+
var swagger = require('@nestjs/swagger');
|
|
5
|
+
var classTransformer = require('class-transformer');
|
|
6
|
+
var classValidator = require('class-validator');
|
|
7
|
+
|
|
8
|
+
function ApiPropertyEnum(properties) {
|
|
9
|
+
validateOptions(properties);
|
|
10
|
+
const apiPropertyOptions = buildApiPropertyOptions(properties);
|
|
11
|
+
const decorators = buildDecorators(properties, apiPropertyOptions);
|
|
12
|
+
return common.applyDecorators(...decorators);
|
|
13
|
+
}
|
|
14
|
+
function buildApiPropertyOptions(properties) {
|
|
15
|
+
const apiPropertyOptions = {
|
|
16
|
+
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
17
|
+
nullable: properties.isNullable,
|
|
18
|
+
};
|
|
19
|
+
apiPropertyOptions.required = properties.isResponse === false || properties.isResponse === undefined ? properties.isRequired : false;
|
|
20
|
+
if (properties.isArray === true) {
|
|
21
|
+
apiPropertyOptions.isArray = true;
|
|
22
|
+
apiPropertyOptions.minItems = properties.minItems;
|
|
23
|
+
apiPropertyOptions.maxItems = properties.maxItems;
|
|
24
|
+
apiPropertyOptions.uniqueItems = properties.isUniqueItems;
|
|
25
|
+
if (properties.exampleValue) {
|
|
26
|
+
apiPropertyOptions.example = Array.isArray(properties.exampleValue) ? properties.exampleValue : [properties.exampleValue];
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
apiPropertyOptions.example = [Object.values(properties.enum)[0]];
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
else if (properties.exampleValue) {
|
|
33
|
+
apiPropertyOptions.example = properties.exampleValue;
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
apiPropertyOptions.example = Object.values(properties.enum)[0];
|
|
37
|
+
}
|
|
38
|
+
apiPropertyOptions.enum = properties.enum;
|
|
39
|
+
return apiPropertyOptions;
|
|
40
|
+
}
|
|
41
|
+
function buildDecorators(properties, apiPropertyOptions) {
|
|
42
|
+
const decorators = [swagger.ApiProperty(apiPropertyOptions)];
|
|
43
|
+
decorators.push(...buildResponseDecorators(properties), ...buildRequestDecorators(properties), ...buildFormatDecorators(properties));
|
|
44
|
+
return decorators;
|
|
45
|
+
}
|
|
46
|
+
function buildFormatDecorators(properties) {
|
|
47
|
+
const decorators = [];
|
|
48
|
+
const isArray = properties.isArray ?? false;
|
|
49
|
+
decorators.push(classValidator.IsEnum(properties.enum, { each: isArray }));
|
|
50
|
+
return decorators;
|
|
51
|
+
}
|
|
52
|
+
function buildRequestDecorators(properties) {
|
|
53
|
+
const decorators = [];
|
|
54
|
+
if (properties.isResponse === false || properties.isResponse === undefined) {
|
|
55
|
+
if (!properties.isRequired) {
|
|
56
|
+
decorators.push(classValidator.IsOptional());
|
|
57
|
+
}
|
|
58
|
+
if (properties.isArray === true) {
|
|
59
|
+
decorators.push(classValidator.IsArray(), classValidator.ArrayMinSize(properties.minItems), classValidator.ArrayMaxSize(properties.maxItems));
|
|
60
|
+
if (properties.minItems > 0) {
|
|
61
|
+
decorators.push(classValidator.ArrayNotEmpty());
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return decorators;
|
|
66
|
+
}
|
|
67
|
+
function buildResponseDecorators(properties) {
|
|
68
|
+
const decorators = [];
|
|
69
|
+
if (properties.isResponse) {
|
|
70
|
+
decorators.push(swagger.ApiResponseProperty());
|
|
71
|
+
if (properties.isExpose === undefined || properties.isExpose) {
|
|
72
|
+
decorators.push(classTransformer.Expose());
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
decorators.push(classTransformer.Exclude());
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return decorators;
|
|
79
|
+
}
|
|
80
|
+
function validateOptions(properties) {
|
|
81
|
+
const errors = [];
|
|
82
|
+
if (properties.isArray === true) {
|
|
83
|
+
if (properties.minItems > properties.maxItems) {
|
|
84
|
+
errors.push("'minItems' is greater than 'maxItems'");
|
|
85
|
+
}
|
|
86
|
+
if (properties.minItems < 0) {
|
|
87
|
+
errors.push("'minItems' is less than 0");
|
|
88
|
+
}
|
|
89
|
+
if (properties.maxItems < 0) {
|
|
90
|
+
errors.push("'maxItems' is less than 0");
|
|
91
|
+
}
|
|
92
|
+
if (properties.isUniqueItems && properties.maxItems <= 1) {
|
|
93
|
+
errors.push("'uniqueItems' is true but 'maxItems' is less than or equal to 1");
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
if (properties.exampleValue && !Object.values(properties.enum).includes(properties.exampleValue)) {
|
|
97
|
+
errors.push("'exampleValue' is not in 'enum'");
|
|
98
|
+
}
|
|
99
|
+
if (errors.length > 0) {
|
|
100
|
+
throw new Error(`ApiPropertyEnum error: ${errors.join("\n")}`);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
exports.ApiPropertyEnum = ApiPropertyEnum;
|
|
105
|
+
//# sourceMappingURL=enum.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enum.decorator.js","sources":["../../../../../../src/decorator/api/property/enum.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","ApiProperty","IsEnum","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude"],"mappings":";;;;;;;AASM,SAAU,eAAe,CAA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