@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
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApiPropertyDate = ApiPropertyDate;
|
|
4
|
-
const common_1 = require("@nestjs/common");
|
|
5
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
6
|
-
const class_transformer_1 = require("class-transformer");
|
|
7
|
-
const class_validator_1 = require("class-validator");
|
|
8
|
-
const enum_1 = require("../../../enum");
|
|
9
|
-
function ApiPropertyDate(properties) {
|
|
10
|
-
validateOptions(properties);
|
|
11
|
-
const apiPropertyOptions = buildApiPropertyOptions(properties);
|
|
12
|
-
const decorators = buildDecorators(properties, apiPropertyOptions);
|
|
13
|
-
return (0, common_1.applyDecorators)(...decorators);
|
|
14
|
-
}
|
|
15
|
-
function buildApiPropertyOptions(properties) {
|
|
16
|
-
const example = getExample(properties.format);
|
|
17
|
-
const apiPropertyOptions = {
|
|
18
|
-
description: `${String(properties.entity.name)} ${getDescription(properties.identifier)}`,
|
|
19
|
-
nullable: properties.isNullable,
|
|
20
|
-
type: enum_1.EApiPropertyDataType.STRING,
|
|
21
|
-
};
|
|
22
|
-
apiPropertyOptions.required = properties.isResponse === false || properties.isResponse === undefined ? properties.isRequired : false;
|
|
23
|
-
if (properties.isArray) {
|
|
24
|
-
apiPropertyOptions.isArray = true;
|
|
25
|
-
apiPropertyOptions.minItems = properties.minItems;
|
|
26
|
-
apiPropertyOptions.maxItems = properties.maxItems;
|
|
27
|
-
apiPropertyOptions.uniqueItems = properties.isUniqueItems;
|
|
28
|
-
apiPropertyOptions.items = {
|
|
29
|
-
maxLength: example.length,
|
|
30
|
-
minLength: example.length,
|
|
31
|
-
};
|
|
32
|
-
apiPropertyOptions.example = [example];
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
apiPropertyOptions.minLength = example.length;
|
|
36
|
-
apiPropertyOptions.maxLength = example.length;
|
|
37
|
-
apiPropertyOptions.example = example;
|
|
38
|
-
}
|
|
39
|
-
apiPropertyOptions.pattern = getPattern(properties.format);
|
|
40
|
-
apiPropertyOptions.format = properties.format;
|
|
41
|
-
return apiPropertyOptions;
|
|
42
|
-
}
|
|
43
|
-
function buildDecorators(properties, apiPropertyOptions) {
|
|
44
|
-
const decorators = [(0, swagger_1.ApiProperty)(apiPropertyOptions)];
|
|
45
|
-
decorators.push(...buildResponseDecorators(properties), ...buildRequestDecorators(properties), ...buildFormatDecorators(properties), ...buildTransformDecorators(properties));
|
|
46
|
-
return decorators;
|
|
47
|
-
}
|
|
48
|
-
function buildFormatDecorators(properties) {
|
|
49
|
-
const decorators = [];
|
|
50
|
-
const isArray = properties.isArray ?? false;
|
|
51
|
-
if (!properties.isResponse) {
|
|
52
|
-
decorators.push((0, class_validator_1.IsDate)({ each: isArray }));
|
|
53
|
-
}
|
|
54
|
-
return decorators;
|
|
55
|
-
}
|
|
56
|
-
function buildRequestDecorators(properties) {
|
|
57
|
-
const decorators = [];
|
|
58
|
-
if (properties.isResponse === false || properties.isResponse === undefined) {
|
|
59
|
-
if (!properties.isRequired) {
|
|
60
|
-
decorators.push((0, class_validator_1.IsOptional)());
|
|
61
|
-
}
|
|
62
|
-
if (properties.isArray === true) {
|
|
63
|
-
decorators.push((0, class_validator_1.IsArray)(), (0, class_validator_1.ArrayMinSize)(properties.minItems), (0, class_validator_1.ArrayMaxSize)(properties.maxItems));
|
|
64
|
-
if (properties.minItems > 0) {
|
|
65
|
-
decorators.push((0, class_validator_1.ArrayNotEmpty)());
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return decorators;
|
|
70
|
-
}
|
|
71
|
-
function buildResponseDecorators(properties) {
|
|
72
|
-
const decorators = [];
|
|
73
|
-
if (properties.isResponse) {
|
|
74
|
-
decorators.push((0, swagger_1.ApiResponseProperty)());
|
|
75
|
-
if (properties.isExpose === undefined || properties.isExpose) {
|
|
76
|
-
decorators.push((0, class_transformer_1.Expose)());
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
decorators.push((0, class_transformer_1.Exclude)());
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return decorators;
|
|
83
|
-
}
|
|
84
|
-
function buildTransformDecorators(properties) {
|
|
85
|
-
const decorators = [];
|
|
86
|
-
if (!properties.isResponse) {
|
|
87
|
-
if (properties.isArray) {
|
|
88
|
-
decorators.push((0, class_transformer_1.Transform)(({ value }) => {
|
|
89
|
-
if (!Array.isArray(value)) {
|
|
90
|
-
const singleValue = value;
|
|
91
|
-
return singleValue ? [new Date(singleValue)] : [];
|
|
92
|
-
}
|
|
93
|
-
return value.map((dateString) => (dateString ? new Date(dateString) : undefined));
|
|
94
|
-
}, { toClassOnly: true }));
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
decorators.push((0, class_transformer_1.Transform)(({ value }) => (value ? new Date(value) : undefined), { toClassOnly: true }));
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
return decorators;
|
|
101
|
-
}
|
|
102
|
-
function getDescription(identifier) {
|
|
103
|
-
switch (identifier) {
|
|
104
|
-
case enum_1.EApiPropertyDateIdentifier.CREATED_AT: {
|
|
105
|
-
return "creation date";
|
|
106
|
-
}
|
|
107
|
-
case enum_1.EApiPropertyDateIdentifier.CREATED_AT_FROM: {
|
|
108
|
-
return "createdAt from";
|
|
109
|
-
}
|
|
110
|
-
case enum_1.EApiPropertyDateIdentifier.CREATED_AT_TO: {
|
|
111
|
-
return "createdAt to";
|
|
112
|
-
}
|
|
113
|
-
case enum_1.EApiPropertyDateIdentifier.DATE: {
|
|
114
|
-
return "date";
|
|
115
|
-
}
|
|
116
|
-
case enum_1.EApiPropertyDateIdentifier.EXPIRES_IN: {
|
|
117
|
-
return "expiration date";
|
|
118
|
-
}
|
|
119
|
-
case enum_1.EApiPropertyDateIdentifier.RECEIVED_AT: {
|
|
120
|
-
return "receivedAt date";
|
|
121
|
-
}
|
|
122
|
-
case enum_1.EApiPropertyDateIdentifier.RECEIVED_AT_FROM: {
|
|
123
|
-
return "receivedAt from";
|
|
124
|
-
}
|
|
125
|
-
case enum_1.EApiPropertyDateIdentifier.RECEIVED_AT_TO: {
|
|
126
|
-
return "receivedAt to";
|
|
127
|
-
}
|
|
128
|
-
case enum_1.EApiPropertyDateIdentifier.REFRESH_IN: {
|
|
129
|
-
return "refresh date";
|
|
130
|
-
}
|
|
131
|
-
case enum_1.EApiPropertyDateIdentifier.UPDATED_AT: {
|
|
132
|
-
return "last update date";
|
|
133
|
-
}
|
|
134
|
-
case enum_1.EApiPropertyDateIdentifier.UPDATED_AT_FROM: {
|
|
135
|
-
return "updatedAt from";
|
|
136
|
-
}
|
|
137
|
-
case enum_1.EApiPropertyDateIdentifier.UPDATED_AT_TO: {
|
|
138
|
-
return "updatedAt to";
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
function getExample(format) {
|
|
143
|
-
const startOfYearUTCDate = new Date(Date.UTC(new Date().getUTCFullYear(), 0, 1, 0, 0, 0, 0));
|
|
144
|
-
switch (format) {
|
|
145
|
-
case enum_1.EApiPropertyDateType.DATE: {
|
|
146
|
-
return startOfYearUTCDate.toISOString().split("T")[0];
|
|
147
|
-
}
|
|
148
|
-
case enum_1.EApiPropertyDateType.DATE_TIME: {
|
|
149
|
-
return startOfYearUTCDate.toISOString();
|
|
150
|
-
}
|
|
151
|
-
case enum_1.EApiPropertyDateType.TIME: {
|
|
152
|
-
return startOfYearUTCDate.toISOString().split("T")[1].split(".")[0];
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
function getPattern(format) {
|
|
157
|
-
switch (format) {
|
|
158
|
-
case enum_1.EApiPropertyDateType.DATE: {
|
|
159
|
-
return "^[0-9]{4}-[0-9]{2}-[0-9]{2}$";
|
|
160
|
-
}
|
|
161
|
-
case enum_1.EApiPropertyDateType.DATE_TIME: {
|
|
162
|
-
return "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}Z$";
|
|
163
|
-
}
|
|
164
|
-
case enum_1.EApiPropertyDateType.TIME: {
|
|
165
|
-
return "^[0-9]{2}:[0-9]{2}:[0-9]{2}$";
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
function validateOptions(properties) {
|
|
170
|
-
const errors = [];
|
|
171
|
-
if (properties.isArray === true) {
|
|
172
|
-
if (properties.minItems > properties.maxItems) {
|
|
173
|
-
errors.push("'minItems' is greater than 'maxItems'");
|
|
174
|
-
}
|
|
175
|
-
if (properties.minItems < 0) {
|
|
176
|
-
errors.push("'minItems' is less than 0");
|
|
177
|
-
}
|
|
178
|
-
if (properties.maxItems < 0) {
|
|
179
|
-
errors.push("'maxItems' is less than 0");
|
|
180
|
-
}
|
|
181
|
-
if (properties.isUniqueItems && properties.maxItems <= 1) {
|
|
182
|
-
errors.push("'uniqueItems' is true but 'maxItems' is less than or equal to 1");
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
if (errors.length > 0) {
|
|
186
|
-
throw new Error(`ApiPropertyDate error: ${errors.join("\n")}`);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
//# sourceMappingURL=date.decorator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date.decorator.js","sourceRoot":"","sources":["../../../../src/decorator/api/property/date.decorator.ts"],"names":[],"mappings":";;AAWA,0CAOC;AAdD,2CAAiD;AACjD,6CAAmE;AACnE,yDAA+D;AAC/D,qDAAyG;AAEzG,wCAAuG;AAEvG,SAAgB,eAAe,CAAC,UAAsC;IACrE,eAAe,CAAC,UAAU,CAAC,CAAC;IAE5B,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC,CAAC;IACnF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC;IAE7F,OAAO,IAAA,wBAAe,EAAC,GAAG,UAAU,CAAC,CAAC;AACvC,CAAC;AAED,SAAS,uBAAuB,CAAC,UAAsC;IACtE,MAAM,OAAO,GAAW,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAEtD,MAAM,kBAAkB,GAAuB;QAC9C,WAAW,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,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CAAC;QACvC,CAAC;IACF,CAAC;AACF,CAAC;AAED,SAAS,eAAe,CAAC,UAAsC;IAC9D,MAAM,MAAM,GAAkB,EAAE,CAAC;IAEjC,IAAI,UAAU,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;QACjC,IAAI,UAAU,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,EAAE,CAAC;YAC/C,MAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC,CAAC;QACtD,CAAC;QAED,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE,CAAC;YAC7B,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;QAC1C,CAAC;QAED,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE,CAAC;YAC7B,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;QAC1C,CAAC;QAED,IAAI,UAAU,CAAC,aAAa,IAAI,UAAU,CAAC,QAAQ,IAAI,CAAC,EAAE,CAAC;YAC1D,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC,CAAC;QAChF,CAAC;IACF,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,0BAA0B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAChE,CAAC;AACF,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApiPropertyDescribe = ApiPropertyDescribe;
|
|
4
|
-
const class_1 = require("../../../class");
|
|
5
|
-
const constant_1 = require("../../../constant");
|
|
6
|
-
function ApiPropertyDescribe(properties) {
|
|
7
|
-
return (target, propertyKey) => {
|
|
8
|
-
const entityName = target.constructor.name;
|
|
9
|
-
class_1.MetadataStorage.getInstance().setMetadata(entityName, propertyKey, constant_1.PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT.METADATA_PROPERTY_NAME, properties);
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=describe.decorator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"describe.decorator.js","sourceRoot":"","sources":["../../../../src/decorator/api/property/describe.decorator.ts"],"names":[],"mappings":";;AAKA,kDAKC;AARD,0CAAiD;AACjD,gDAA6E;AAE7E,SAAgB,mBAAmB,CAAC,UAA0C;IAC7E,OAAO,CAAC,MAAwB,EAAE,WAAmB,EAAQ,EAAE;QAC9D,MAAM,UAAU,GAAW,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;QACnD,uBAAe,CAAC,WAAW,EAAE,CAAC,WAAW,CAAC,UAAU,EAAE,WAAW,EAAE,mDAAwC,CAAC,sBAAsB,EAAE,UAAU,CAAC,CAAC;IACjJ,CAAC,CAAC;AACH,CAAC"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApiPropertyEnum = ApiPropertyEnum;
|
|
4
|
-
const common_1 = require("@nestjs/common");
|
|
5
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
6
|
-
const class_transformer_1 = require("class-transformer");
|
|
7
|
-
const class_validator_1 = require("class-validator");
|
|
8
|
-
function ApiPropertyEnum(properties) {
|
|
9
|
-
validateOptions(properties);
|
|
10
|
-
const apiPropertyOptions = buildApiPropertyOptions(properties);
|
|
11
|
-
const decorators = buildDecorators(properties, apiPropertyOptions);
|
|
12
|
-
return (0, common_1.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 = [(0, swagger_1.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((0, class_validator_1.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((0, class_validator_1.IsOptional)());
|
|
57
|
-
}
|
|
58
|
-
if (properties.isArray === true) {
|
|
59
|
-
decorators.push((0, class_validator_1.IsArray)(), (0, class_validator_1.ArrayMinSize)(properties.minItems), (0, class_validator_1.ArrayMaxSize)(properties.maxItems));
|
|
60
|
-
if (properties.minItems > 0) {
|
|
61
|
-
decorators.push((0, class_validator_1.ArrayNotEmpty)());
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return decorators;
|
|
66
|
-
}
|
|
67
|
-
function buildResponseDecorators(properties) {
|
|
68
|
-
const decorators = [];
|
|
69
|
-
if (properties.isResponse) {
|
|
70
|
-
decorators.push((0, swagger_1.ApiResponseProperty)());
|
|
71
|
-
if (properties.isExpose === undefined || properties.isExpose) {
|
|
72
|
-
decorators.push((0, class_transformer_1.Expose)());
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
decorators.push((0, class_transformer_1.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
|
-
//# sourceMappingURL=enum.decorator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enum.decorator.js","sourceRoot":"","sources":["../../../../src/decorator/api/property/enum.decorator.ts"],"names":[],"mappings":";;AASA,0CAOC;AAZD,2CAAiD;AACjD,6CAAmE;AACnE,yDAAoD;AACpD,qDAAyG;AAEzG,SAAgB,eAAe,CAAC,UAAsC;IACrE,eAAe,CAAC,UAAU,CAAC,CAAC;IAE5B,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC,CAAC;IACnF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC;IAE7F,OAAO,IAAA,wBAAe,EAAC,GAAG,UAAU,CAAC,CAAC;AACvC,CAAC;AAED,SAAS,uBAAuB,CAAC,UAAsC;IACtE,MAAM,kBAAkB,GAA6C;QACpE,WAAW,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,EAAE,EAAE;QAEhF,QAAQ,EAAE,UAAU,CAAC,UAAU;KAC/B,CAAC;IAEF,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,UAAU,KAAK,KAAK,IAAI,UAAU,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC;IAErI,IAAI,UAAU,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;QACjC,kBAAkB,CAAC,OAAO,GAAG,IAAI,CAAC;QAClC,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QAClD,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QAClD,kBAAkB,CAAC,WAAW,GAAG,UAAU,CAAC,aAAa,CAAC;QAE1D,IAAI,UAAU,CAAC,YAAY,EAAE,CAAC;YAC7B,kBAAkB,CA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,EAAE,CAAC;IAEjC,IAAI,UAAU,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;QACjC,IAAI,UAAU,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,EAAE,CAAC;YAC/C,MAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC,CAAC;QACtD,CAAC;QAED,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE,CAAC;YAC7B,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;QAC1C,CAAC;QAED,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE,CAAC;YAC7B,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;QAC1C,CAAC;QAED,IAAI,UAAU,CAAC,aAAa,IAAI,UAAU,CAAC,QAAQ,IAAI,CAAC,EAAE,CAAC;YAC1D,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC,CAAC;QAChF,CAAC;IACF,CAAC;IAED,IAAI,UAAU,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;QAClG,MAAM,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;IAChD,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,0BAA0B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAChE,CAAC;AACF,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./boolean.decorator"), exports);
|
|
18
|
-
__exportStar(require("./date.decorator"), exports);
|
|
19
|
-
__exportStar(require("./describe.decorator"), exports);
|
|
20
|
-
__exportStar(require("./number.decorator"), exports);
|
|
21
|
-
__exportStar(require("./object.decorator"), exports);
|
|
22
|
-
__exportStar(require("./string.decorator"), exports);
|
|
23
|
-
__exportStar(require("./uuid.decorator"), exports);
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/decorator/api/property/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,mDAAiC;AACjC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC"}
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ApiPropertyNumber = ApiPropertyNumber;
|
|
7
|
-
const common_1 = require("@nestjs/common");
|
|
8
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
9
|
-
const class_transformer_1 = require("class-transformer");
|
|
10
|
-
const class_validator_1 = require("class-validator");
|
|
11
|
-
const random_1 = __importDefault(require("lodash/random"));
|
|
12
|
-
const constant_1 = require("../../../constant");
|
|
13
|
-
const enum_1 = require("../../../enum");
|
|
14
|
-
function ApiPropertyNumber(properties) {
|
|
15
|
-
if (properties.exampleValue === undefined) {
|
|
16
|
-
properties.exampleValue = (0, random_1.default)(properties.minimum, properties.maximum);
|
|
17
|
-
}
|
|
18
|
-
validateOptions(properties);
|
|
19
|
-
const apiPropertyOptions = buildApiPropertyOptions(properties);
|
|
20
|
-
const decorators = buildDecorators(properties, apiPropertyOptions);
|
|
21
|
-
return (0, common_1.applyDecorators)(...decorators);
|
|
22
|
-
}
|
|
23
|
-
function buildApiPropertyOptions(properties) {
|
|
24
|
-
const apiPropertyOptions = {
|
|
25
|
-
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
26
|
-
format: getFormat(properties),
|
|
27
|
-
nullable: properties.isNullable,
|
|
28
|
-
type: getType(properties),
|
|
29
|
-
};
|
|
30
|
-
apiPropertyOptions.required = properties.isResponse === false || properties.isResponse === undefined ? properties.isRequired : false;
|
|
31
|
-
if (properties.isArray) {
|
|
32
|
-
apiPropertyOptions.isArray = true;
|
|
33
|
-
apiPropertyOptions.minItems = properties.minItems;
|
|
34
|
-
apiPropertyOptions.maxItems = properties.maxItems;
|
|
35
|
-
apiPropertyOptions.uniqueItems = properties.isUniqueItems;
|
|
36
|
-
apiPropertyOptions.example = Array.isArray(properties.exampleValue) ? properties.exampleValue : [properties.exampleValue];
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
apiPropertyOptions.example = properties.exampleValue;
|
|
40
|
-
}
|
|
41
|
-
apiPropertyOptions.minimum = properties.minimum;
|
|
42
|
-
apiPropertyOptions.maximum = properties.maximum;
|
|
43
|
-
if ((properties.isResponse === false || properties.isResponse === undefined) && properties.multipleOf !== undefined) {
|
|
44
|
-
apiPropertyOptions.multipleOf = properties.multipleOf;
|
|
45
|
-
}
|
|
46
|
-
return apiPropertyOptions;
|
|
47
|
-
}
|
|
48
|
-
function buildDecorators(properties, apiPropertyOptions) {
|
|
49
|
-
const decorators = [(0, swagger_1.ApiProperty)(apiPropertyOptions)];
|
|
50
|
-
decorators.push(...buildResponseDecorators(properties), ...buildRequestDecorators(properties), ...buildFormatDecorators(properties), ...buildTransformDecorators(properties), ...buildNumberValidationDecorators(properties));
|
|
51
|
-
return decorators;
|
|
52
|
-
}
|
|
53
|
-
function buildFormatDecorators(properties) {
|
|
54
|
-
const decorators = [];
|
|
55
|
-
const isArray = properties.isArray ?? false;
|
|
56
|
-
if (properties.isResponse === undefined || !properties.isResponse) {
|
|
57
|
-
switch (properties.format) {
|
|
58
|
-
case enum_1.EApiPropertyNumberType.DOUBLE: {
|
|
59
|
-
decorators.push((0, class_validator_1.IsNumber)({}, { each: isArray }));
|
|
60
|
-
break;
|
|
61
|
-
}
|
|
62
|
-
case enum_1.EApiPropertyNumberType.INTEGER: {
|
|
63
|
-
decorators.push((0, class_validator_1.IsInt)({ each: isArray }));
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
default: {
|
|
67
|
-
throw new Error(`ApiPropertyNumber error: Format is not valid for number property: ${String(properties.format)}`);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
decorators.push((0, class_transformer_1.Type)(() => Number));
|
|
71
|
-
}
|
|
72
|
-
return decorators;
|
|
73
|
-
}
|
|
74
|
-
function buildNumberValidationDecorators(properties) {
|
|
75
|
-
const decorators = [];
|
|
76
|
-
const isArray = properties.isArray ?? false;
|
|
77
|
-
if ((properties.isResponse === false || properties.isResponse === undefined) && properties.multipleOf !== undefined) {
|
|
78
|
-
decorators.push((0, class_validator_1.IsDivisibleBy)(properties.multipleOf, { each: isArray }), (0, class_validator_1.Min)(properties.minimum, { each: isArray }), (0, class_validator_1.Max)(properties.maximum, { each: isArray }));
|
|
79
|
-
}
|
|
80
|
-
return decorators;
|
|
81
|
-
}
|
|
82
|
-
function buildRequestDecorators(properties) {
|
|
83
|
-
const decorators = [];
|
|
84
|
-
if (properties.isResponse === false || properties.isResponse === undefined) {
|
|
85
|
-
if (!properties.isRequired) {
|
|
86
|
-
decorators.push((0, class_validator_1.IsOptional)());
|
|
87
|
-
}
|
|
88
|
-
if (properties.isArray === true) {
|
|
89
|
-
decorators.push((0, class_validator_1.IsArray)(), (0, class_validator_1.ArrayMinSize)(properties.minItems), (0, class_validator_1.ArrayMaxSize)(properties.maxItems));
|
|
90
|
-
if (properties.minItems > 0) {
|
|
91
|
-
decorators.push((0, class_validator_1.ArrayNotEmpty)());
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return decorators;
|
|
96
|
-
}
|
|
97
|
-
function buildResponseDecorators(properties) {
|
|
98
|
-
const decorators = [];
|
|
99
|
-
if (properties.isResponse) {
|
|
100
|
-
decorators.push((0, swagger_1.ApiResponseProperty)());
|
|
101
|
-
if (properties.isExpose === undefined || properties.isExpose) {
|
|
102
|
-
decorators.push((0, class_transformer_1.Expose)());
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
decorators.push((0, class_transformer_1.Exclude)());
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
return decorators;
|
|
109
|
-
}
|
|
110
|
-
function buildTransformDecorators(properties) {
|
|
111
|
-
const decorators = [];
|
|
112
|
-
if (!properties.isResponse) {
|
|
113
|
-
if (properties.isArray) {
|
|
114
|
-
decorators.push((0, class_transformer_1.Transform)(({ value }) => value.map(Number), { toClassOnly: true }));
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
decorators.push((0, class_transformer_1.Transform)(({ value }) => Number(value), { toClassOnly: true }));
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
return decorators;
|
|
121
|
-
}
|
|
122
|
-
function getFormat(properties) {
|
|
123
|
-
switch (properties.format) {
|
|
124
|
-
case enum_1.EApiPropertyNumberType.DOUBLE: {
|
|
125
|
-
return enum_1.EApiPropertyNumberType.DOUBLE;
|
|
126
|
-
}
|
|
127
|
-
case enum_1.EApiPropertyNumberType.INTEGER: {
|
|
128
|
-
return properties.maximum <= constant_1.NUMBER_CONSTANT.MAX_INTEGER && properties.maximum >= constant_1.NUMBER_CONSTANT.MIN_INTEGER ? "int32" : "int64";
|
|
129
|
-
}
|
|
130
|
-
default: {
|
|
131
|
-
throw new Error("ApiPropertyNumber error: Format is not defined");
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
function getType(properties) {
|
|
136
|
-
switch (properties.format) {
|
|
137
|
-
case enum_1.EApiPropertyNumberType.DOUBLE: {
|
|
138
|
-
return enum_1.EApiPropertyDataType.NUMBER;
|
|
139
|
-
}
|
|
140
|
-
case enum_1.EApiPropertyNumberType.INTEGER: {
|
|
141
|
-
return enum_1.EApiPropertyDataType.INTEGER;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
function validateOptions(properties) {
|
|
146
|
-
const errors = [];
|
|
147
|
-
if (properties.minimum > properties.maximum) {
|
|
148
|
-
errors.push("'minimum' is greater than maximum");
|
|
149
|
-
}
|
|
150
|
-
if (properties.multipleOf !== undefined) {
|
|
151
|
-
if (Array.isArray(properties.exampleValue)) {
|
|
152
|
-
for (const example of properties.exampleValue) {
|
|
153
|
-
if (!(0, class_validator_1.isInt)(example / properties.multipleOf)) {
|
|
154
|
-
errors.push("'exampleValue' is not a multiple of 'multipleOf' value: " + String(example));
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
else if (properties.exampleValue !== undefined && !(0, class_validator_1.isInt)(properties.exampleValue / properties.multipleOf)) {
|
|
159
|
-
errors.push("'exampleValue' is not a multiple of 'multipleOf' value: " + String(properties.exampleValue));
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
if (Array.isArray(properties.exampleValue)) {
|
|
163
|
-
for (const example of properties.exampleValue) {
|
|
164
|
-
if (example < properties.minimum) {
|
|
165
|
-
errors.push("'exampleValue' is less than 'minimum': " + String(example));
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
else if (properties.exampleValue !== undefined && properties.exampleValue < properties.minimum) {
|
|
170
|
-
errors.push("'exampleValue' is less than 'minimum': " + String(properties.exampleValue));
|
|
171
|
-
}
|
|
172
|
-
if (Array.isArray(properties.exampleValue)) {
|
|
173
|
-
for (const example of properties.exampleValue) {
|
|
174
|
-
if (example > properties.maximum) {
|
|
175
|
-
errors.push("'exampleValue' is greater than 'maximum': " + String(example));
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
else if (properties.exampleValue !== undefined && properties.exampleValue > properties.maximum) {
|
|
180
|
-
errors.push("'exampleValue' is greater than 'maximum': " + String(properties.exampleValue));
|
|
181
|
-
}
|
|
182
|
-
if (properties.isArray === true) {
|
|
183
|
-
if (properties.minItems > properties.maxItems) {
|
|
184
|
-
errors.push("'minItems' is greater than 'maxItems'");
|
|
185
|
-
}
|
|
186
|
-
if (properties.minItems < 0) {
|
|
187
|
-
errors.push("'minItems' is less than 0");
|
|
188
|
-
}
|
|
189
|
-
if (properties.maxItems < 0) {
|
|
190
|
-
errors.push("'maxItems' is less than 0");
|
|
191
|
-
}
|
|
192
|
-
if (properties.isUniqueItems && properties.maxItems <= 1) {
|
|
193
|
-
errors.push("'uniqueItems' is true but 'maxItems' is less than or equal to 1");
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
if (errors.length > 0) {
|
|
197
|
-
throw new Error(`ApiPropertyNumber error: ${errors.join("\n")}`);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
//# sourceMappingURL=number.decorator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"number.decorator.js","sourceRoot":"","sources":["../../../../src/decorator/api/property/number.decorator.ts"],"names":[],"mappings":";;;;;AAaA,8CAWC;AApBD,2CAAiD;AACjD,6CAAmE;AACnE,yDAAqE;AACrE,qDAAkJ;A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