@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generate-entity-information.utility.js","sourceRoot":"","sources":["../../src/utility/generate-entity-information.utility.ts"],"names":[],"mappings":";;AAcA,8DAqEC;AA3ED,qCAAwE;AAExE,oCAA2C;AAE3C,uEAA2D;AAE3D,SAAgB,yBAAyB,CAAI,MAAs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7B,IAAI,EAAE,YAA0B;SAChC,CAAC,CAAC;KACH,CAAC;IAEF,KAAK,MAAM,MAAM,IAAI,aAAa,EAAE,CAAC;QACpC,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;YACtB,eAAe,CAAC,UAAU,GAAG,MAAM,CAAC;QACrC,CAAC;IACF,CAAC;IAED,eAAe,CAAC,OAAO,GAAG,aAAa,CAAC;IAExC,OAAO,eAAe,CAAC;AACxB,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetEntityColumns = GetEntityColumns;
|
|
4
|
-
const typeorm_1 = require("typeorm");
|
|
5
|
-
function GetEntityColumns(properties) {
|
|
6
|
-
const { entity, shouldTakeGeneratedOnly, shouldTakeRelationsOnly } = properties;
|
|
7
|
-
const columns = (0, typeorm_1.getMetadataArgsStorage)().columns.filter((column) => column.target == entity);
|
|
8
|
-
const relations = (0, typeorm_1.getMetadataArgsStorage)().relations.filter((relation) => relation.target == entity);
|
|
9
|
-
let columnNames;
|
|
10
|
-
if (shouldTakeRelationsOnly) {
|
|
11
|
-
columnNames = relations.map((relation) => relation.propertyName);
|
|
12
|
-
}
|
|
13
|
-
else {
|
|
14
|
-
const columnPropertyNames = columns.filter((column) => !shouldTakeGeneratedOnly || column.options.generated || column.options.default !== undefined).map((column) => column.propertyName);
|
|
15
|
-
const relationNames = relations.map((relation) => relation.propertyName);
|
|
16
|
-
columnNames = [...columnPropertyNames, ...relationNames];
|
|
17
|
-
}
|
|
18
|
-
return columnNames;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=get-entity-columns.utility.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-entity-columns.utility.js","sourceRoot":"","sources":["../../src/utility/get-entity-columns.utility.ts"],"names":[],"mappings":";;AAOA,4CAqBC;AAvBD,qCAAiD;AAEjD,SAAgB,gBAAgB,CAA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=== 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("./api"), exports);
|
|
18
|
-
__exportStar(require("./camel-case-string.utility"), exports);
|
|
19
|
-
__exportStar(require("./capitalize-string.utility"), exports);
|
|
20
|
-
__exportStar(require("./dto"), exports);
|
|
21
|
-
__exportStar(require("./error-exception.utility"), exports);
|
|
22
|
-
__exportStar(require("./error-string.utility"), exports);
|
|
23
|
-
__exportStar(require("./generate-entity-information.utility"), exports);
|
|
24
|
-
__exportStar(require("./get-entity-columns.utility"), exports);
|
|
25
|
-
__exportStar(require("./is-error-of-type.utility"), exports);
|
|
26
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utility/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,8DAA4C;AAC5C,8DAA4C;AAC5C,wCAAsB;AACtB,4DAA0C;AAC1C,yDAAuC;AACvC,wEAAsD;AACtD,+DAA6C;AAC7C,6DAA2C"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IsErrorOfType = IsErrorOfType;
|
|
4
|
-
const common_1 = require("@nestjs/common");
|
|
5
|
-
const throttler_1 = require("@nestjs/throttler");
|
|
6
|
-
const enum_1 = require("../enum");
|
|
7
|
-
const ExceptionMap = {
|
|
8
|
-
[enum_1.EException.BAD_REQUEST]: common_1.BadRequestException,
|
|
9
|
-
[enum_1.EException.CONFLICT]: common_1.ConflictException,
|
|
10
|
-
[enum_1.EException.EXPECTATION_FAILED]: undefined,
|
|
11
|
-
[enum_1.EException.FORBIDDEN]: common_1.ForbiddenException,
|
|
12
|
-
[enum_1.EException.GATEWAY_TIMEOUT]: common_1.GatewayTimeoutException,
|
|
13
|
-
[enum_1.EException.GONE]: common_1.GoneException,
|
|
14
|
-
[enum_1.EException.HTTP_VERSION_NOT_SUPPORTED]: common_1.HttpVersionNotSupportedException,
|
|
15
|
-
[enum_1.EException.IM_A_TEAPOT]: common_1.ImATeapotException,
|
|
16
|
-
[enum_1.EException.INTERNAL_SERVER_ERROR]: common_1.InternalServerErrorException,
|
|
17
|
-
[enum_1.EException.LENGTH_REQUIRED]: undefined,
|
|
18
|
-
[enum_1.EException.METHOD_NOT_ALLOWED]: common_1.MethodNotAllowedException,
|
|
19
|
-
[enum_1.EException.NETWORK_AUTHENTICATION_REQUIRED]: undefined,
|
|
20
|
-
[enum_1.EException.NOT_ACCEPTABLE]: common_1.NotAcceptableException,
|
|
21
|
-
[enum_1.EException.NOT_EXTENDED]: undefined,
|
|
22
|
-
[enum_1.EException.NOT_FOUND]: common_1.NotFoundException,
|
|
23
|
-
[enum_1.EException.NOT_IMPLEMENTED]: common_1.NotImplementedException,
|
|
24
|
-
[enum_1.EException.PAYLOAD_TOO_LARGE]: common_1.PayloadTooLargeException,
|
|
25
|
-
[enum_1.EException.PAYMENT_REQUIRED]: undefined,
|
|
26
|
-
[enum_1.EException.PRECONDITION_FAILED]: common_1.PreconditionFailedException,
|
|
27
|
-
[enum_1.EException.REQUEST_HEADER_FIELDS_TOO_LARGE]: undefined,
|
|
28
|
-
[enum_1.EException.REQUEST_TIMEOUT]: common_1.RequestTimeoutException,
|
|
29
|
-
[enum_1.EException.REQUEST_URI_TOO_LONG]: undefined,
|
|
30
|
-
[enum_1.EException.SERVICE_UNAVAILABLE]: common_1.ServiceUnavailableException,
|
|
31
|
-
[enum_1.EException.TOO_MANY_REQUESTS]: throttler_1.ThrottlerException,
|
|
32
|
-
[enum_1.EException.UNAUTHORIZED]: common_1.UnauthorizedException,
|
|
33
|
-
[enum_1.EException.UNPROCESSABLE_ENTITY]: common_1.UnprocessableEntityException,
|
|
34
|
-
[enum_1.EException.UNSUPPORTED_MEDIA_TYPE]: common_1.UnsupportedMediaTypeException,
|
|
35
|
-
[enum_1.EException.UPGRADE_REQUIRED]: undefined,
|
|
36
|
-
};
|
|
37
|
-
function IsErrorOfType(error, type) {
|
|
38
|
-
const ExceptionClass = ExceptionMap[type];
|
|
39
|
-
if (!ExceptionClass) {
|
|
40
|
-
return false;
|
|
41
|
-
}
|
|
42
|
-
if (!error || typeof error !== "object") {
|
|
43
|
-
return false;
|
|
44
|
-
}
|
|
45
|
-
if (error instanceof ExceptionClass) {
|
|
46
|
-
return true;
|
|
47
|
-
}
|
|
48
|
-
const errorObject = error;
|
|
49
|
-
return !!(errorObject.name && errorObject.name === ExceptionClass.name);
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=is-error-of-type.utility.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-error-of-type.utility.js","sourceRoot":"","sources":["../../src/utility/is-error-of-type.utility.ts"],"names":[],"mappings":";;AA8DA,sCAmBC;AA3ED,2CAoBwB;AACxB,iDAAuD;AAEvD,kCAAqC;AAErC,MAAM,YAAY,GAA4B;IAC7C,CAAC,iBAAU,CAAC,WAAW,CAAC,EAAE,4BAAmB;IAC7C,CAAC,iBAAU,CAAC,QAAQ,CAAC,EAAE,0BAAiB;IACxC,CAAC,iBAAU,CAAC,kBAAkB,CAAC,EAAE,SAAS;IAC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C,sBAAsB,CAAC,EAAE,sCAA6B;IAClE,CAAC,iBAAU,CAAC,gBAAgB,CAAC,EAAE,SAAS;CACxC,CAAC;AAEF,SAAgB,aAAa,CAAC,KAAc,EAAE,IAAgB;IAC7D,MAAM,cAAc,GAAkB,YAAY,CAAC,IAAI,CAAkB,CAAC;IAE1E,IAAI,CAAC,cAAc,EAAE,CAAC;QACrB,OAAO,KAAK,CAAC;IACd,CAAC;IAED,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACzC,OAAO,KAAK,CAAC;IACd,CAAC;IAGD,IAAI,KAAK,YAAY,cAAc,EAAE,CAAC;QACrC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,MAAM,WAAW,GAAsB,KAA0B,CAAC;IAElE,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,IAAI,WAAW,CAAC,IAAI,KAAK,cAAc,CAAC,IAAI,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.AllOrNoneOfListedProperties = void 0;
|
|
10
|
-
const class_validator_1 = require("class-validator");
|
|
11
|
-
let AllOrNoneOfListedProperties = class AllOrNoneOfListedProperties {
|
|
12
|
-
defaultMessage(properties) {
|
|
13
|
-
return `either all or none of the following properties must be provided: ${properties.constraints.join(", ")}`;
|
|
14
|
-
}
|
|
15
|
-
validate(_value, properties) {
|
|
16
|
-
const constraints = properties.constraints;
|
|
17
|
-
if (constraints.length > 0) {
|
|
18
|
-
const indexableObject = properties.object;
|
|
19
|
-
const definedFields = constraints.filter((field) => Object.prototype.hasOwnProperty.call(indexableObject, field) && indexableObject[field] !== undefined);
|
|
20
|
-
return definedFields.length === 0 || definedFields.length === constraints.length;
|
|
21
|
-
}
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
exports.AllOrNoneOfListedProperties = AllOrNoneOfListedProperties;
|
|
26
|
-
exports.AllOrNoneOfListedProperties = AllOrNoneOfListedProperties = __decorate([
|
|
27
|
-
(0, class_validator_1.ValidatorConstraint)({ async: false, name: "all-or-none-of-listed-properties" })
|
|
28
|
-
], AllOrNoneOfListedProperties);
|
|
29
|
-
//# sourceMappingURL=all-or-none-of-listed-properties.validator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"all-or-none-of-listed-properties.validator.js","sourceRoot":"","sources":["../../src/validator/all-or-none-of-listed-properties.validator.ts"],"names":[],"mappings":";;;;;;;;;AAEA,qDAAsD;AAI/C,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACvC,cAAc,CAAC,UAA+B;QAC7C,OAAO,oEAAoE,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IAChH,CAAC;IAED,QAAQ,CAAC,MAAe,EAAE,UAA+B;QACxD,MAAM,WAAW,GAAkB,UAAU,CAAC,WAA4B,CAAC;QAE3E,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5B,MAAM,eAAe,GAAwB,UAAU,CAAC,MAA6B,CAAC;YACtF,MAAM,aAAa,GAAkB,WAAW,CAAC,MAAM,CAAC,CAAC,KAAa,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,IAAI,eAAe,CAAC,KAAK,CAAC,KAAK,SAAS,CAAC,CAAC;YAEjL,OAAO,aAAa,CAAC,MAAM,KAAK,CAAC,IAAI,aAAa,CAAC,MAAM,KAAK,WAAW,CAAC,MAAM,CAAC;QAClF,CAAC;QAED,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAA;AAjBY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,qCAAmB,EAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,kCAAkC,EAAE,CAAC;GACnE,2BAA2B,CAiBvC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.HasAtLeastOneAndOnlyOneOfListedProperties = void 0;
|
|
10
|
-
const class_validator_1 = require("class-validator");
|
|
11
|
-
let HasAtLeastOneAndOnlyOneOfListedProperties = class HasAtLeastOneAndOnlyOneOfListedProperties {
|
|
12
|
-
defaultMessage(properties) {
|
|
13
|
-
return `at least one and only one of the following properties must be provided: ${properties.constraints.join(", ")}`;
|
|
14
|
-
}
|
|
15
|
-
validate(_value, properties) {
|
|
16
|
-
const constraints = properties.constraints;
|
|
17
|
-
if (constraints.length > 0) {
|
|
18
|
-
let isExists = false;
|
|
19
|
-
let count = 0;
|
|
20
|
-
const indexableObject = properties.object;
|
|
21
|
-
for (const constraint of constraints) {
|
|
22
|
-
if (Object.prototype.hasOwnProperty.call(indexableObject, constraint) && indexableObject[constraint] !== undefined) {
|
|
23
|
-
isExists = true;
|
|
24
|
-
count++;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
if (count !== 1) {
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
return isExists;
|
|
31
|
-
}
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
exports.HasAtLeastOneAndOnlyOneOfListedProperties = HasAtLeastOneAndOnlyOneOfListedProperties;
|
|
36
|
-
exports.HasAtLeastOneAndOnlyOneOfListedProperties = HasAtLeastOneAndOnlyOneOfListedProperties = __decorate([
|
|
37
|
-
(0, class_validator_1.ValidatorConstraint)({ async: false, name: "has-at-least-one-of-listed-properties" })
|
|
38
|
-
], HasAtLeastOneAndOnlyOneOfListedProperties);
|
|
39
|
-
//# sourceMappingURL=has-at-least-one-and-only-one-of-listed-properties.validator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"has-at-least-one-and-only-one-of-listed-properties.validator.js","sourceRoot":"","sources":["../../src/validator/has-at-least-one-and-only-one-of-listed-properties.validator.ts"],"names":[],"mappings":";;;;;;;;;AAEA,qDAAsD;AAI/C,IAAM,yCAAyC,GAA/C,MAAM,yCAAyC;IACrD,cAAc,CAAC,UAA+B;QAC7C,OAAO,2EAA2E,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IACvH,CAAC;IAED,QAAQ,CAAC,MAAe,EAAE,UAA+B;QACxD,MAAM,WAAW,GAAkB,UAAU,CAAC,WAA4B,CAAC;QAE3E,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5B,IAAI,QAAQ,GAAY,KAAK,CAAC;YAC9B,IAAI,KAAK,GAAW,CAAC,CAAC;YACtB,MAAM,eAAe,GAAwB,UAAU,CAAC,MAA6B,CAAC;YAEtF,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;gBACtC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,IAAI,eAAe,CAAC,UAAU,CAAC,KAAK,SAAS,EAAE,CAAC;oBACpH,QAAQ,GAAG,IAAI,CAAC;oBAChB,KAAK,EAAE,CAAC;gBACT,CAAC;YACF,CAAC;YAED,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;gBACjB,OAAO,KAAK,CAAC;YACd,CAAC;YAED,OAAO,QAAQ,CAAC;QACjB,CAAC;QAED,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAA;AA7BY,8FAAyC;oDAAzC,yCAAyC;IADrD,IAAA,qCAAmB,EAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,uCAAuC,EAAE,CAAC;GACxE,yCAAyC,CA6BrD"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.HasAtLeastOneOfListedProperties = void 0;
|
|
10
|
-
const class_validator_1 = require("class-validator");
|
|
11
|
-
let HasAtLeastOneOfListedProperties = class HasAtLeastOneOfListedProperties {
|
|
12
|
-
defaultMessage(properties) {
|
|
13
|
-
return `at least one of the following properties must be provided: ${properties.constraints.join(", ")}`;
|
|
14
|
-
}
|
|
15
|
-
validate(_value, properties) {
|
|
16
|
-
const constraints = properties.constraints;
|
|
17
|
-
if (constraints.length > 0) {
|
|
18
|
-
let isExists = false;
|
|
19
|
-
const indexableObject = properties.object;
|
|
20
|
-
for (const constraint of constraints) {
|
|
21
|
-
if (Object.prototype.hasOwnProperty.call(indexableObject, constraint) && indexableObject[constraint] !== undefined) {
|
|
22
|
-
isExists = true;
|
|
23
|
-
break;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return isExists;
|
|
27
|
-
}
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
exports.HasAtLeastOneOfListedProperties = HasAtLeastOneOfListedProperties;
|
|
32
|
-
exports.HasAtLeastOneOfListedProperties = HasAtLeastOneOfListedProperties = __decorate([
|
|
33
|
-
(0, class_validator_1.ValidatorConstraint)({ async: false, name: "has-at-least-one-of-listed-properties" })
|
|
34
|
-
], HasAtLeastOneOfListedProperties);
|
|
35
|
-
//# sourceMappingURL=has-at-least-one-of-listed-properties.validator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"has-at-least-one-of-listed-properties.validator.js","sourceRoot":"","sources":["../../src/validator/has-at-least-one-of-listed-properties.validator.ts"],"names":[],"mappings":";;;;;;;;;AAEA,qDAAsD;AAI/C,IAAM,+BAA+B,GAArC,MAAM,+BAA+B;IAC3C,cAAc,CAAC,UAA+B;QAC7C,OAAO,8DAA8D,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IAC1G,CAAC;IAED,QAAQ,CAAC,MAAe,EAAE,UAA+B;QACxD,MAAM,WAAW,GAAkB,UAAU,CAAC,WAA4B,CAAC;QAE3E,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5B,IAAI,QAAQ,GAAY,KAAK,CAAC;YAC9B,MAAM,eAAe,GAAwB,UAAU,CAAC,MAA6B,CAAC;YAEtF,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;gBACtC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,IAAI,eAAe,CAAC,UAAU,CAAC,KAAK,SAAS,EAAE,CAAC;oBACpH,QAAQ,GAAG,IAAI,CAAC;oBAEhB,MAAM;gBACP,CAAC;YACF,CAAC;YAED,OAAO,QAAQ,CAAC;QACjB,CAAC;QAED,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAA;AAzBY,0EAA+B;0CAA/B,+BAA+B;IAD3C,IAAA,qCAAmB,EAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,uCAAuC,EAAE,CAAC;GACxE,+BAA+B,CAyB3C"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.HasAtLeastOneProperty = void 0;
|
|
10
|
-
const class_validator_1 = require("class-validator");
|
|
11
|
-
let HasAtLeastOneProperty = class HasAtLeastOneProperty {
|
|
12
|
-
defaultMessage() {
|
|
13
|
-
return "at least one property must be provided";
|
|
14
|
-
}
|
|
15
|
-
validate(_value, properties) {
|
|
16
|
-
return Object.keys(properties.object).length > 0;
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
exports.HasAtLeastOneProperty = HasAtLeastOneProperty;
|
|
20
|
-
exports.HasAtLeastOneProperty = HasAtLeastOneProperty = __decorate([
|
|
21
|
-
(0, class_validator_1.ValidatorConstraint)({ async: false, name: "has-at-least-one-property" })
|
|
22
|
-
], HasAtLeastOneProperty);
|
|
23
|
-
//# sourceMappingURL=has-at-least-one-property.validator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"has-at-least-one-property.validator.js","sourceRoot":"","sources":["../../src/validator/has-at-least-one-property.validator.ts"],"names":[],"mappings":";;;;;;;;;AAEA,qDAAsD;AAI/C,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IACjC,cAAc;QACb,OAAO,wCAAwC,CAAC;IACjD,CAAC;IAED,QAAQ,CAAC,MAAe,EAAE,UAA+B;QACxD,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;IAClD,CAAC;CACD,CAAA;AARY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,qCAAmB,EAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC;GAC5D,qBAAqB,CAQjC"}
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.HasPairedCustomSuffixesFields = void 0;
|
|
10
|
-
const class_validator_1 = require("class-validator");
|
|
11
|
-
const filter_operation_enum_1 = require("../enum/filter-operation.enum");
|
|
12
|
-
var EArgumentType;
|
|
13
|
-
(function (EArgumentType) {
|
|
14
|
-
EArgumentType["ARRAY"] = "array";
|
|
15
|
-
EArgumentType["NULL"] = "null";
|
|
16
|
-
EArgumentType["SINGLE"] = "single";
|
|
17
|
-
})(EArgumentType || (EArgumentType = {}));
|
|
18
|
-
const DEFAULT_OPERATION_CONFIGS = {
|
|
19
|
-
[filter_operation_enum_1.EFilterOperation.BETWEEN]: {
|
|
20
|
-
argumentType: EArgumentType.ARRAY,
|
|
21
|
-
exactLength: 2,
|
|
22
|
-
},
|
|
23
|
-
[filter_operation_enum_1.EFilterOperation.CONT]: {
|
|
24
|
-
argumentType: EArgumentType.SINGLE,
|
|
25
|
-
},
|
|
26
|
-
[filter_operation_enum_1.EFilterOperation.CONTL]: {
|
|
27
|
-
argumentType: EArgumentType.SINGLE,
|
|
28
|
-
},
|
|
29
|
-
[filter_operation_enum_1.EFilterOperation.ENDS]: {
|
|
30
|
-
argumentType: EArgumentType.SINGLE,
|
|
31
|
-
},
|
|
32
|
-
[filter_operation_enum_1.EFilterOperation.ENDSL]: {
|
|
33
|
-
argumentType: EArgumentType.SINGLE,
|
|
34
|
-
},
|
|
35
|
-
[filter_operation_enum_1.EFilterOperation.EQ]: {
|
|
36
|
-
argumentType: EArgumentType.SINGLE,
|
|
37
|
-
},
|
|
38
|
-
[filter_operation_enum_1.EFilterOperation.EQL]: {
|
|
39
|
-
argumentType: EArgumentType.SINGLE,
|
|
40
|
-
},
|
|
41
|
-
[filter_operation_enum_1.EFilterOperation.EXCL]: {
|
|
42
|
-
argumentType: EArgumentType.ARRAY,
|
|
43
|
-
},
|
|
44
|
-
[filter_operation_enum_1.EFilterOperation.EXCLL]: {
|
|
45
|
-
argumentType: EArgumentType.ARRAY,
|
|
46
|
-
},
|
|
47
|
-
[filter_operation_enum_1.EFilterOperation.GT]: {
|
|
48
|
-
argumentType: EArgumentType.SINGLE,
|
|
49
|
-
},
|
|
50
|
-
[filter_operation_enum_1.EFilterOperation.GTE]: {
|
|
51
|
-
argumentType: EArgumentType.SINGLE,
|
|
52
|
-
},
|
|
53
|
-
[filter_operation_enum_1.EFilterOperation.IN]: {
|
|
54
|
-
argumentType: EArgumentType.ARRAY,
|
|
55
|
-
minLength: 1,
|
|
56
|
-
},
|
|
57
|
-
[filter_operation_enum_1.EFilterOperation.INL]: {
|
|
58
|
-
argumentType: EArgumentType.ARRAY,
|
|
59
|
-
minLength: 1,
|
|
60
|
-
},
|
|
61
|
-
[filter_operation_enum_1.EFilterOperation.ISNULL]: {
|
|
62
|
-
argumentType: EArgumentType.NULL,
|
|
63
|
-
},
|
|
64
|
-
[filter_operation_enum_1.EFilterOperation.LT]: {
|
|
65
|
-
argumentType: EArgumentType.SINGLE,
|
|
66
|
-
},
|
|
67
|
-
[filter_operation_enum_1.EFilterOperation.LTE]: {
|
|
68
|
-
argumentType: EArgumentType.SINGLE,
|
|
69
|
-
},
|
|
70
|
-
[filter_operation_enum_1.EFilterOperation.NE]: {
|
|
71
|
-
argumentType: EArgumentType.SINGLE,
|
|
72
|
-
},
|
|
73
|
-
[filter_operation_enum_1.EFilterOperation.NEL]: {
|
|
74
|
-
argumentType: EArgumentType.SINGLE,
|
|
75
|
-
},
|
|
76
|
-
[filter_operation_enum_1.EFilterOperation.NOTIN]: {
|
|
77
|
-
argumentType: EArgumentType.ARRAY,
|
|
78
|
-
minLength: 1,
|
|
79
|
-
},
|
|
80
|
-
[filter_operation_enum_1.EFilterOperation.NOTINL]: {
|
|
81
|
-
argumentType: EArgumentType.ARRAY,
|
|
82
|
-
minLength: 1,
|
|
83
|
-
},
|
|
84
|
-
[filter_operation_enum_1.EFilterOperation.NOTNULL]: {
|
|
85
|
-
argumentType: EArgumentType.NULL,
|
|
86
|
-
},
|
|
87
|
-
[filter_operation_enum_1.EFilterOperation.STARTS]: {
|
|
88
|
-
argumentType: EArgumentType.SINGLE,
|
|
89
|
-
},
|
|
90
|
-
[filter_operation_enum_1.EFilterOperation.STARTSL]: {
|
|
91
|
-
argumentType: EArgumentType.SINGLE,
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
let HasPairedCustomSuffixesFields = class HasPairedCustomSuffixesFields {
|
|
95
|
-
defaultMessage(properties) {
|
|
96
|
-
const object = properties.object;
|
|
97
|
-
const fieldGroups = object.__fieldGroups;
|
|
98
|
-
const operatorSuffix = object.__operatorSuffix;
|
|
99
|
-
const valueSuffixes = object.__valueSuffixes;
|
|
100
|
-
const indexableObject = properties.object;
|
|
101
|
-
for (const [baseName, groupSuffixes] of fieldGroups) {
|
|
102
|
-
const hasValueSuffix = valueSuffixes.some((suffix) => groupSuffixes.has(suffix));
|
|
103
|
-
if (hasValueSuffix && !groupSuffixes.has(operatorSuffix)) {
|
|
104
|
-
return `group "${baseName}" with value suffix must have an operator suffix [${operatorSuffix}]`;
|
|
105
|
-
}
|
|
106
|
-
if (groupSuffixes.has(operatorSuffix)) {
|
|
107
|
-
if (groupSuffixes.size === 1) {
|
|
108
|
-
return `group "${baseName}" with operator suffix must have at least one value with suffix [${[...valueSuffixes].join(", ")}]`;
|
|
109
|
-
}
|
|
110
|
-
const operatorField = `${baseName}[${operatorSuffix}]`;
|
|
111
|
-
const operatorValue = indexableObject[operatorField];
|
|
112
|
-
const operator = operatorValue;
|
|
113
|
-
const operatorConfig = DEFAULT_OPERATION_CONFIGS[operator];
|
|
114
|
-
if (!operatorConfig) {
|
|
115
|
-
return `Invalid operator "${operator}" for group "${baseName}"`;
|
|
116
|
-
}
|
|
117
|
-
if (operatorConfig.argumentType === EArgumentType.NULL) {
|
|
118
|
-
const valueCount = valueSuffixes.filter((suffix) => groupSuffixes.has(suffix)).length;
|
|
119
|
-
if (valueCount > 0) {
|
|
120
|
-
return `group "${baseName}" with ${operator} operation should not have any values`;
|
|
121
|
-
}
|
|
122
|
-
continue;
|
|
123
|
-
}
|
|
124
|
-
const valueFields = valueSuffixes.filter((suffix) => groupSuffixes.has(suffix)).map((suffix) => `${baseName}[${suffix}]`);
|
|
125
|
-
if (valueFields.length === 0) {
|
|
126
|
-
return `group "${baseName}" requires a value for ${operator} operation`;
|
|
127
|
-
}
|
|
128
|
-
if (valueFields.length > 1) {
|
|
129
|
-
return `group "${baseName}" can only have one value with suffix [${[...valueSuffixes].join(", ")}] when operator is present`;
|
|
130
|
-
}
|
|
131
|
-
const value = indexableObject[valueFields[0]];
|
|
132
|
-
const isArray = Array.isArray(value);
|
|
133
|
-
if (operatorConfig.argumentType === EArgumentType.ARRAY && !isArray) {
|
|
134
|
-
return `group "${baseName}" with ${operator} operation requires an array value`;
|
|
135
|
-
}
|
|
136
|
-
if (operatorConfig.argumentType === EArgumentType.SINGLE && isArray) {
|
|
137
|
-
return `group "${baseName}" with ${operator} operation requires a single value, not an array`;
|
|
138
|
-
}
|
|
139
|
-
if (isArray) {
|
|
140
|
-
if (operatorConfig.exactLength !== undefined && value.length !== operatorConfig.exactLength) {
|
|
141
|
-
return `group "${baseName}" with ${operator} operation requires exactly ${String(operatorConfig.exactLength)} values`;
|
|
142
|
-
}
|
|
143
|
-
if (operatorConfig.minLength !== undefined && value.length < operatorConfig.minLength) {
|
|
144
|
-
return `group "${baseName}" with ${operator} operation requires at least ${String(operatorConfig.minLength)} values`;
|
|
145
|
-
}
|
|
146
|
-
if (operatorConfig.maxLength !== undefined && value.length > operatorConfig.maxLength) {
|
|
147
|
-
return `group "${baseName}" with ${operator} operation requires at most ${String(operatorConfig.maxLength)} values`;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
return `fields must have valid operator-value suffix pairs`;
|
|
153
|
-
}
|
|
154
|
-
validate(_value, properties) {
|
|
155
|
-
const [operatorSuffix, valueSuffixes] = properties.constraints;
|
|
156
|
-
const indexableObject = properties.object;
|
|
157
|
-
const fields = Object.keys(indexableObject);
|
|
158
|
-
const fieldGroups = new Map();
|
|
159
|
-
const suffixPattern = [operatorSuffix, ...valueSuffixes].map((suffix) => suffix.replaceAll(/[.*+?^${}()|[\]\\]/g, String.raw `\$&`)).join("|");
|
|
160
|
-
const regex = new RegExp(`^(.+?)\\[(${suffixPattern})\\]$`);
|
|
161
|
-
for (const field of fields) {
|
|
162
|
-
const match = regex.exec(field);
|
|
163
|
-
if (match) {
|
|
164
|
-
const [, baseName, suffix] = match;
|
|
165
|
-
if (!fieldGroups.has(baseName)) {
|
|
166
|
-
fieldGroups.set(baseName, new Set());
|
|
167
|
-
}
|
|
168
|
-
if (indexableObject[field] !== undefined) {
|
|
169
|
-
fieldGroups.get(baseName)?.add(suffix);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
properties.object.__fieldGroups = fieldGroups;
|
|
174
|
-
properties.object.__operatorSuffix = operatorSuffix;
|
|
175
|
-
properties.object.__valueSuffixes = valueSuffixes;
|
|
176
|
-
for (const [baseName, groupSuffixes] of fieldGroups) {
|
|
177
|
-
const hasValueSuffix = valueSuffixes.some((suffix) => groupSuffixes.has(suffix));
|
|
178
|
-
if (hasValueSuffix && !groupSuffixes.has(operatorSuffix)) {
|
|
179
|
-
return false;
|
|
180
|
-
}
|
|
181
|
-
if (groupSuffixes.has(operatorSuffix)) {
|
|
182
|
-
const operatorField = `${baseName}[${operatorSuffix}]`;
|
|
183
|
-
const operatorValue = indexableObject[operatorField];
|
|
184
|
-
const operator = operatorValue;
|
|
185
|
-
const operatorConfig = DEFAULT_OPERATION_CONFIGS[operator];
|
|
186
|
-
if (!operatorConfig)
|
|
187
|
-
return false;
|
|
188
|
-
if (operatorConfig.argumentType === EArgumentType.NULL) {
|
|
189
|
-
const valueCount = valueSuffixes.filter((suffix) => groupSuffixes.has(suffix)).length;
|
|
190
|
-
if (valueCount > 0)
|
|
191
|
-
return false;
|
|
192
|
-
continue;
|
|
193
|
-
}
|
|
194
|
-
const valueFields = valueSuffixes.filter((suffix) => groupSuffixes.has(suffix)).map((suffix) => `${baseName}[${suffix}]`);
|
|
195
|
-
if (valueFields.length !== 1)
|
|
196
|
-
return false;
|
|
197
|
-
const value = indexableObject[valueFields[0]];
|
|
198
|
-
const isArray = Array.isArray(value);
|
|
199
|
-
if (operatorConfig.argumentType === EArgumentType.ARRAY && !isArray)
|
|
200
|
-
return false;
|
|
201
|
-
if (operatorConfig.argumentType === EArgumentType.SINGLE && isArray)
|
|
202
|
-
return false;
|
|
203
|
-
if (isArray) {
|
|
204
|
-
if (operatorConfig.exactLength !== undefined && value.length !== operatorConfig.exactLength)
|
|
205
|
-
return false;
|
|
206
|
-
if (operatorConfig.minLength !== undefined && value.length < operatorConfig.minLength)
|
|
207
|
-
return false;
|
|
208
|
-
if (operatorConfig.maxLength !== undefined && value.length > operatorConfig.maxLength)
|
|
209
|
-
return false;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
return true;
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
exports.HasPairedCustomSuffixesFields = HasPairedCustomSuffixesFields;
|
|
217
|
-
exports.HasPairedCustomSuffixesFields = HasPairedCustomSuffixesFields = __decorate([
|
|
218
|
-
(0, class_validator_1.ValidatorConstraint)({ async: false, name: "has-paired-custom-suffixes-fields" })
|
|
219
|
-
], HasPairedCustomSuffixesFields);
|
|
220
|
-
//# sourceMappingURL=has-paired-custom-suffixes-fields.validator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"has-paired-custom-suffixes-fields.validator.js","sourceRoot":"","sources":["../../src/validator/has-paired-custom-suffixes-fields.validator.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qDAA8G;AAE9G,yEAAiE;AAEjE,IAAK,aAIJ;AAJD,WAAK,aAAa;IACjB,gCAAe,CAAA;IACf,8BAAa,CAAA;IACb,kCAAiB,CAAA;AAClB,CAAC,EAJI,aAAa,KA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AS;wBAAE,OAAO,KAAK,CAAC;gBACrG,CAAC;YACF,CAAC;QACF,CAAC;QAED,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAA;AA1JY,sEAA6B;wCAA7B,6BAA6B;IADzC,IAAA,qCAAmB,EAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,mCAAmC,EAAE,CAAC;GACpE,6BAA6B,CA0JzC"}
|
package/dist/validator/index.js
DELETED
|
@@ -1,23 +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("./all-or-none-of-listed-properties.validator"), exports);
|
|
18
|
-
__exportStar(require("./has-at-least-one-and-only-one-of-listed-properties.validator"), exports);
|
|
19
|
-
__exportStar(require("./has-at-least-one-of-listed-properties.validator"), exports);
|
|
20
|
-
__exportStar(require("./has-at-least-one-property.validator"), exports);
|
|
21
|
-
__exportStar(require("./is-regular-expression.validator"), exports);
|
|
22
|
-
__exportStar(require("./only-one-of-listed-properties.validator"), exports);
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/validator/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+EAA6D;AAC7D,iGAA+E;AAC/E,oFAAkE;AAClE,wEAAsD;AACtD,oEAAkD;AAClD,4EAA0D"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.IsRegularExpression = void 0;
|
|
10
|
-
const class_validator_1 = require("class-validator");
|
|
11
|
-
let IsRegularExpression = class IsRegularExpression {
|
|
12
|
-
validate(pattern) {
|
|
13
|
-
if (pattern) {
|
|
14
|
-
try {
|
|
15
|
-
new RegExp(pattern);
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
catch {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
exports.IsRegularExpression = IsRegularExpression;
|
|
28
|
-
exports.IsRegularExpression = IsRegularExpression = __decorate([
|
|
29
|
-
(0, class_validator_1.ValidatorConstraint)()
|
|
30
|
-
], IsRegularExpression);
|
|
31
|
-
//# sourceMappingURL=is-regular-expression.validator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-regular-expression.validator.js","sourceRoot":"","sources":["../../src/validator/is-regular-expression.validator.ts"],"names":[],"mappings":";;;;;;;;;AAEA,qDAAsD;AAG/C,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC/B,QAAQ,CAAC,OAAe;QACvB,IAAI,OAAO,EAAE,CAAC;YACb,IAAI,CAAC;gBACJ,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC;gBAEpB,OAAO,IAAI,CAAC;YACb,CAAC;YAAC,MAAM,CAAC;gBACR,OAAO,KAAK,CAAC;YACd,CAAC;QACF,CAAC;aAAM,CAAC;YACP,OAAO,KAAK,CAAC;QACd,CAAC;IACF,CAAC;CACD,CAAA;AAdY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,qCAAmB,GAAE;GACT,mBAAmB,CAc/B"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.OnlyOneOfListedProperties = void 0;
|
|
10
|
-
const class_validator_1 = require("class-validator");
|
|
11
|
-
let OnlyOneOfListedProperties = class OnlyOneOfListedProperties {
|
|
12
|
-
defaultMessage(properties) {
|
|
13
|
-
return `only one of the following properties must be provided: ${properties.constraints.join(", ")}`;
|
|
14
|
-
}
|
|
15
|
-
validate(_value, properties) {
|
|
16
|
-
const constraints = properties.constraints;
|
|
17
|
-
if (constraints.length > 0) {
|
|
18
|
-
let count = 0;
|
|
19
|
-
const indexableObject = properties.object;
|
|
20
|
-
for (const constraint of constraints) {
|
|
21
|
-
if (Object.prototype.hasOwnProperty.call(indexableObject, constraint) && indexableObject[constraint] !== undefined) {
|
|
22
|
-
count++;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return count === 1;
|
|
26
|
-
}
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.OnlyOneOfListedProperties = OnlyOneOfListedProperties;
|
|
31
|
-
exports.OnlyOneOfListedProperties = OnlyOneOfListedProperties = __decorate([
|
|
32
|
-
(0, class_validator_1.ValidatorConstraint)({ async: false, name: "only-one-of-listed-properties" })
|
|
33
|
-
], OnlyOneOfListedProperties);
|
|
34
|
-
//# sourceMappingURL=only-one-of-listed-properties.validator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"only-one-of-listed-properties.validator.js","sourceRoot":"","sources":["../../src/validator/only-one-of-listed-properties.validator.ts"],"names":[],"mappings":";;;;;;;;;AAEA,qDAAsD;AAI/C,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IACrC,cAAc,CAAC,UAA+B;QAC7C,OAAO,0DAA0D,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IACtG,CAAC;IAED,QAAQ,CAAC,MAAe,EAAE,UAA+B;QACxD,MAAM,WAAW,GAAkB,UAAU,CAAC,WAA4B,CAAC;QAE3E,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5B,IAAI,KAAK,GAAW,CAAC,CAAC;YACtB,MAAM,eAAe,GAAwB,UAAU,CAAC,MAA6B,CAAC;YAEtF,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;gBACtC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,IAAI,eAAe,CAAC,UAAU,CAAC,KAAK,SAAS,EAAE,CAAC;oBACpH,KAAK,EAAE,CAAC;gBACT,CAAC;YACF,CAAC;YAED,OAAO,KAAK,KAAK,CAAC,CAAC;QACpB,CAAC;QAED,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAA;AAvBY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,qCAAmB,EAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,+BAA+B,EAAE,CAAC;GAChE,yBAAyB,CAuBrC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|