@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,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApiPropertyObject = ApiPropertyObject;
|
|
4
|
-
const common_1 = require("@nestjs/common");
|
|
5
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
6
|
-
const class_transformer_1 = require("class-transformer");
|
|
7
|
-
const class_validator_1 = require("class-validator");
|
|
8
|
-
function ApiPropertyObject(options) {
|
|
9
|
-
validateOptions(options);
|
|
10
|
-
const apiPropertyOptions = buildApiPropertyOptions(options);
|
|
11
|
-
const decorators = buildDecorators(options, apiPropertyOptions);
|
|
12
|
-
return (0, common_1.applyDecorators)(...decorators);
|
|
13
|
-
}
|
|
14
|
-
function buildApiPropertyOptions(properties) {
|
|
15
|
-
const apiPropertyOptions = {
|
|
16
|
-
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
17
|
-
nullable: properties.isNullable,
|
|
18
|
-
type: properties.type,
|
|
19
|
-
};
|
|
20
|
-
apiPropertyOptions.required = properties.isResponse === false || properties.isResponse === undefined ? properties.isRequired : false;
|
|
21
|
-
if (properties.additionalProperties) {
|
|
22
|
-
apiPropertyOptions.additionalProperties = properties.additionalProperties;
|
|
23
|
-
}
|
|
24
|
-
if (properties.isArray) {
|
|
25
|
-
apiPropertyOptions.isArray = true;
|
|
26
|
-
apiPropertyOptions.minItems = properties.minItems;
|
|
27
|
-
apiPropertyOptions.maxItems = properties.maxItems;
|
|
28
|
-
apiPropertyOptions.uniqueItems = properties.isUniqueItems;
|
|
29
|
-
apiPropertyOptions.description = `Array of ${String(properties.entity.name)} ${properties.description ?? ""}`;
|
|
30
|
-
}
|
|
31
|
-
return apiPropertyOptions;
|
|
32
|
-
}
|
|
33
|
-
function buildDecorators(properties, apiPropertyOptions) {
|
|
34
|
-
const decorators = [(0, swagger_1.ApiProperty)(apiPropertyOptions)];
|
|
35
|
-
decorators.push(...buildResponseDecorators(properties), ...buildRequestDecorators(properties), ...buildTransformDecorators(properties), ...buildObjectValidationDecorators(properties));
|
|
36
|
-
return decorators;
|
|
37
|
-
}
|
|
38
|
-
function buildObjectValidationDecorators(properties) {
|
|
39
|
-
const decorators = [];
|
|
40
|
-
const isArray = properties.isArray ?? false;
|
|
41
|
-
if (!properties.isResponse && properties.shouldValidateNested) {
|
|
42
|
-
decorators.push((0, class_validator_1.ValidateNested)({ each: isArray }));
|
|
43
|
-
}
|
|
44
|
-
return decorators;
|
|
45
|
-
}
|
|
46
|
-
function buildRequestDecorators(properties) {
|
|
47
|
-
const decorators = [];
|
|
48
|
-
if (properties.isResponse === false || properties.isResponse === undefined) {
|
|
49
|
-
if (!properties.isRequired) {
|
|
50
|
-
decorators.push((0, class_validator_1.IsOptional)());
|
|
51
|
-
}
|
|
52
|
-
if (properties.isArray === true) {
|
|
53
|
-
decorators.push((0, class_validator_1.IsArray)(), (0, class_validator_1.ArrayMinSize)(properties.minItems), (0, class_validator_1.ArrayMaxSize)(properties.maxItems));
|
|
54
|
-
if (properties.minItems > 0) {
|
|
55
|
-
decorators.push((0, class_validator_1.ArrayNotEmpty)());
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
return decorators;
|
|
60
|
-
}
|
|
61
|
-
function buildResponseDecorators(properties) {
|
|
62
|
-
const decorators = [];
|
|
63
|
-
if (properties.isResponse) {
|
|
64
|
-
decorators.push((0, swagger_1.ApiResponseProperty)());
|
|
65
|
-
if (properties.isExpose === undefined || properties.isExpose) {
|
|
66
|
-
decorators.push((0, class_transformer_1.Expose)());
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
decorators.push((0, class_transformer_1.Exclude)());
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return decorators;
|
|
73
|
-
}
|
|
74
|
-
function buildTransformDecorators(properties) {
|
|
75
|
-
const decorators = [];
|
|
76
|
-
decorators.push((0, class_transformer_1.Type)(() => properties.type));
|
|
77
|
-
return decorators;
|
|
78
|
-
}
|
|
79
|
-
function validateOptions(properties) {
|
|
80
|
-
const errors = [];
|
|
81
|
-
if (properties.isArray && !properties.shouldValidateNested && !properties.isResponse) {
|
|
82
|
-
errors.push("Array property must be 'shouldValidateNested'");
|
|
83
|
-
}
|
|
84
|
-
if (properties.isArray === true) {
|
|
85
|
-
if (properties.minItems > properties.maxItems) {
|
|
86
|
-
errors.push("'minItems' is greater than 'maxItems'");
|
|
87
|
-
}
|
|
88
|
-
if (properties.minItems < 0) {
|
|
89
|
-
errors.push("'minItems' is less than 0");
|
|
90
|
-
}
|
|
91
|
-
if (properties.maxItems < 0) {
|
|
92
|
-
errors.push("'maxItems' is less than 0");
|
|
93
|
-
}
|
|
94
|
-
if (properties.isUniqueItems && properties.maxItems <= 1) {
|
|
95
|
-
errors.push("'uniqueItems' is true but 'maxItems' is less than or equal to 1");
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
if (errors.length > 0) {
|
|
99
|
-
throw new Error(`ApiPropertyString error: ${errors.join("\n")}`);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
//# sourceMappingURL=object.decorator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"object.decorator.js","sourceRoot":"","sources":["../../../../src/decorator/api/property/object.decorator.ts"],"names":[],"mappings":";;AASA,8CAOC;AAZD,2CAAiD;AACjD,6CAAmE;AACnE,yDAA0D;AAC1D,qDAAiH;AAEjH,SAAgB,iBAAiB,CAAC,OAAqC;IACtE,eAAe,CAAC,OAAO,CAAC,CAAC;IAEzB,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAChF,MAAM,UAAU,GAA6B,eAAe,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC;IAE1F,OAAO,IAAA,wBAAe,EAAC,GAAG,UAAU,CAAC,CAAC;AACvC,CAAC;AAED,SAAS,uBAAuB,CAAC,UAAwC;IACxE,MAAM,kBAAkB,GAAuB;QAC9C,WAAW,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,EAAE,EAAE;QAEhF,QAAQ,EAAE,UAAU,CAAC,UAAU;QAC/B,IAAI,EAAE,UAAU,CAAC,IAAI;KACrB,CAAC;IAEF,kBAAkB,CAAC,Q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IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAClE,CAAC;AACF,CAAC"}
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApiPropertyString = ApiPropertyString;
|
|
4
|
-
const common_1 = require("@nestjs/common");
|
|
5
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
6
|
-
const class_transformer_1 = require("class-transformer");
|
|
7
|
-
const class_validator_1 = require("class-validator");
|
|
8
|
-
const constant_1 = require("../../../constant");
|
|
9
|
-
const enum_1 = require("../../../enum");
|
|
10
|
-
const validator_1 = require("../../../validator");
|
|
11
|
-
function ApiPropertyString(properties) {
|
|
12
|
-
validateOptions(properties);
|
|
13
|
-
const apiPropertyOptions = buildApiPropertyOptions(properties);
|
|
14
|
-
const decorators = buildDecorators(properties, apiPropertyOptions);
|
|
15
|
-
return (0, common_1.applyDecorators)(...decorators);
|
|
16
|
-
}
|
|
17
|
-
function buildApiPropertyOptions(properties) {
|
|
18
|
-
const apiPropertyOptions = {
|
|
19
|
-
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
20
|
-
nullable: properties.isNullable,
|
|
21
|
-
type: enum_1.EApiPropertyDataType.STRING,
|
|
22
|
-
};
|
|
23
|
-
apiPropertyOptions.required = properties.isResponse === false || properties.isResponse === undefined ? properties.isRequired : false;
|
|
24
|
-
if (properties.isArray === true) {
|
|
25
|
-
apiPropertyOptions.isArray = true;
|
|
26
|
-
apiPropertyOptions.minItems = properties.minItems;
|
|
27
|
-
apiPropertyOptions.maxItems = properties.maxItems;
|
|
28
|
-
apiPropertyOptions.uniqueItems = properties.isUniqueItems;
|
|
29
|
-
apiPropertyOptions.items = {
|
|
30
|
-
maxLength: properties.maxLength,
|
|
31
|
-
minLength: properties.minLength,
|
|
32
|
-
};
|
|
33
|
-
apiPropertyOptions.example = Array.isArray(properties.exampleValue) ? properties.exampleValue : [properties.exampleValue];
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
apiPropertyOptions.maxLength = properties.maxLength;
|
|
37
|
-
apiPropertyOptions.minLength = properties.minLength;
|
|
38
|
-
apiPropertyOptions.example = properties.exampleValue;
|
|
39
|
-
}
|
|
40
|
-
apiPropertyOptions.format = properties.format;
|
|
41
|
-
apiPropertyOptions.pattern = properties.pattern.slice(1, -1);
|
|
42
|
-
return apiPropertyOptions;
|
|
43
|
-
}
|
|
44
|
-
function buildDecorators(properties, apiPropertyOptions) {
|
|
45
|
-
const decorators = [(0, swagger_1.ApiProperty)(apiPropertyOptions)];
|
|
46
|
-
decorators.push(...buildResponseDecorators(properties), ...buildRequestDecorators(properties), ...buildFormatDecorators(properties), ...buildStringValidationDecorators(properties));
|
|
47
|
-
return decorators;
|
|
48
|
-
}
|
|
49
|
-
function buildFormatDecorators(properties) {
|
|
50
|
-
const decorators = [];
|
|
51
|
-
const isArray = properties.isArray ?? false;
|
|
52
|
-
if (properties.isResponse === undefined || !properties.isResponse) {
|
|
53
|
-
switch (properties.format) {
|
|
54
|
-
case enum_1.EApiPropertyStringType.DATE: {
|
|
55
|
-
decorators.push((0, class_validator_1.IsDate)({ each: isArray }), (0, class_transformer_1.Type)(() => Date));
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
case enum_1.EApiPropertyStringType.EMAIL: {
|
|
59
|
-
decorators.push((0, class_validator_1.IsEmail)({}, { each: isArray }));
|
|
60
|
-
break;
|
|
61
|
-
}
|
|
62
|
-
case enum_1.EApiPropertyStringType.IP: {
|
|
63
|
-
decorators.push((0, class_validator_1.IsIP)(constant_1.STRING_PROPERTY_API_INTERFACE_CONSTANT.IP_VERSION, { each: isArray }));
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
case enum_1.EApiPropertyStringType.LOWERCASE_STRING: {
|
|
67
|
-
decorators.push((0, class_validator_1.IsString)({ each: isArray }), (0, class_validator_1.IsLowercase)({ each: isArray }));
|
|
68
|
-
break;
|
|
69
|
-
}
|
|
70
|
-
case enum_1.EApiPropertyStringType.REGEXP: {
|
|
71
|
-
decorators.push((0, class_validator_1.Validate)(validator_1.IsRegularExpression, {
|
|
72
|
-
each: isArray,
|
|
73
|
-
message: `${String(properties.description)} must be valid regular expression string`,
|
|
74
|
-
}), (0, class_validator_1.Matches)(new RegExp(properties.pattern.slice(1, -1)), { each: isArray }), (0, class_transformer_1.Type)(() => RegExp));
|
|
75
|
-
break;
|
|
76
|
-
}
|
|
77
|
-
case enum_1.EApiPropertyStringType.STRING: {
|
|
78
|
-
decorators.push((0, class_validator_1.IsString)({ each: isArray }));
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
case enum_1.EApiPropertyStringType.UPPERCASE_STRING: {
|
|
82
|
-
decorators.push((0, class_validator_1.IsString)({ each: isArray }), (0, class_validator_1.IsUppercase)({ each: isArray }));
|
|
83
|
-
break;
|
|
84
|
-
}
|
|
85
|
-
case enum_1.EApiPropertyStringType.URL: {
|
|
86
|
-
decorators.push((0, class_validator_1.IsUrl)({
|
|
87
|
-
protocols: ["https", "http"],
|
|
88
|
-
require_host: true,
|
|
89
|
-
require_protocol: true,
|
|
90
|
-
}, { each: isArray }));
|
|
91
|
-
break;
|
|
92
|
-
}
|
|
93
|
-
case enum_1.EApiPropertyStringType.UUID: {
|
|
94
|
-
decorators.push((0, class_validator_1.IsUUID)("all", { each: isArray }));
|
|
95
|
-
break;
|
|
96
|
-
}
|
|
97
|
-
default: {
|
|
98
|
-
throw new Error(`ApiPropertyString error: Format is not valid for string property: ${String(properties.format)}`);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
return decorators;
|
|
103
|
-
}
|
|
104
|
-
function buildRequestDecorators(properties) {
|
|
105
|
-
const decorators = [];
|
|
106
|
-
if (properties.isResponse === false || properties.isResponse === undefined) {
|
|
107
|
-
if (!properties.isRequired) {
|
|
108
|
-
decorators.push((0, class_validator_1.IsOptional)());
|
|
109
|
-
}
|
|
110
|
-
if (properties.isArray === true) {
|
|
111
|
-
decorators.push((0, class_validator_1.IsArray)(), (0, class_validator_1.ArrayMinSize)(properties.minItems), (0, class_validator_1.ArrayMaxSize)(properties.maxItems));
|
|
112
|
-
if (properties.minItems > 0) {
|
|
113
|
-
decorators.push((0, class_validator_1.ArrayNotEmpty)());
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
return decorators;
|
|
118
|
-
}
|
|
119
|
-
function buildResponseDecorators(properties) {
|
|
120
|
-
const decorators = [];
|
|
121
|
-
if (properties.isResponse) {
|
|
122
|
-
decorators.push((0, swagger_1.ApiResponseProperty)());
|
|
123
|
-
if (properties.isExpose === undefined || properties.isExpose) {
|
|
124
|
-
decorators.push((0, class_transformer_1.Expose)());
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
decorators.push((0, class_transformer_1.Exclude)());
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
return decorators;
|
|
131
|
-
}
|
|
132
|
-
function buildStringValidationDecorators(properties) {
|
|
133
|
-
const decorators = [];
|
|
134
|
-
const isArray = properties.isArray ?? false;
|
|
135
|
-
if (properties.isResponse === false || properties.isResponse === undefined) {
|
|
136
|
-
(0, class_validator_1.Matches)(new RegExp(properties.pattern.slice(1, -1)), { each: isArray });
|
|
137
|
-
(0, class_validator_1.Length)(properties.minLength, properties.maxLength, { each: isArray });
|
|
138
|
-
}
|
|
139
|
-
return decorators;
|
|
140
|
-
}
|
|
141
|
-
function validateOptions(properties) {
|
|
142
|
-
const errors = [];
|
|
143
|
-
if ((!properties.isResponse && (!properties.exampleValue || !properties.pattern)) || (properties.exampleValue && properties.pattern)) {
|
|
144
|
-
const matches = /^\/(.*?)\/([gimuy]*)$/.exec(properties.pattern);
|
|
145
|
-
if (matches) {
|
|
146
|
-
const pattern = matches[constant_1.STRING_PROPERTY_API_INTERFACE_CONSTANT.REGEX_PATTERN_INDEX];
|
|
147
|
-
const flags = matches[constant_1.STRING_PROPERTY_API_INTERFACE_CONSTANT.REGEX_FLAGS_INDEX];
|
|
148
|
-
const regex = new RegExp(pattern, flags);
|
|
149
|
-
if (Array.isArray(properties.exampleValue)) {
|
|
150
|
-
for (const example of properties.exampleValue) {
|
|
151
|
-
if (!regex.test(example)) {
|
|
152
|
-
errors.push("RegExp 'pattern' does not match example string: " + example);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
else if (!regex.test(properties.exampleValue)) {
|
|
157
|
-
errors.push("RegExp 'pattern' does not match 'example' string: " + properties.exampleValue);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
else {
|
|
161
|
-
errors.push("Invalid RegExp 'pattern' format: " + properties.pattern);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
if (properties.minLength > properties.maxLength) {
|
|
165
|
-
errors.push("'minLength' is greater than 'maxLength'");
|
|
166
|
-
}
|
|
167
|
-
if (properties.minLength < 0) {
|
|
168
|
-
errors.push("'minLength' is less than 0");
|
|
169
|
-
}
|
|
170
|
-
if (properties.maxLength < 0) {
|
|
171
|
-
errors.push("'maxLength' is less than 0");
|
|
172
|
-
}
|
|
173
|
-
if (Array.isArray(properties.exampleValue)) {
|
|
174
|
-
for (const example of properties.exampleValue) {
|
|
175
|
-
if (example.length < properties.minLength) {
|
|
176
|
-
errors.push("Example length is less than 'minLength': " + example);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
else if (properties.exampleValue.length < properties.minLength) {
|
|
181
|
-
errors.push("Example length is less than 'minLength': " + properties.exampleValue);
|
|
182
|
-
}
|
|
183
|
-
if (Array.isArray(properties.exampleValue)) {
|
|
184
|
-
for (const example of properties.exampleValue) {
|
|
185
|
-
if (example.length > properties.maxLength) {
|
|
186
|
-
errors.push("Example length is greater than 'maxLength': " + example);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
else if (properties.exampleValue.length > properties.maxLength) {
|
|
191
|
-
errors.push("Example length is greater than 'maxLength': " + properties.exampleValue);
|
|
192
|
-
}
|
|
193
|
-
if (properties.isArray === true) {
|
|
194
|
-
if (properties.minItems > properties.maxItems) {
|
|
195
|
-
errors.push("'minItems' is greater than 'maxItems'");
|
|
196
|
-
}
|
|
197
|
-
if (properties.minItems < 0) {
|
|
198
|
-
errors.push("'minItems' is less than 0");
|
|
199
|
-
}
|
|
200
|
-
if (properties.maxItems < 0) {
|
|
201
|
-
errors.push("'maxItems' is less than 0");
|
|
202
|
-
}
|
|
203
|
-
if (properties.isUniqueItems && properties.maxItems <= 1) {
|
|
204
|
-
errors.push("'uniqueItems' is true but 'maxItems' is less than or equal to 1");
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
if (errors.length > 0) {
|
|
208
|
-
throw new Error(`ApiPropertyString error: ${errors.join("\n")}`);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
//# sourceMappingURL=string.decorator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"string.decorator.js","sourceRoot":"","sources":["../../../../src/decorator/api/property/string.decorator.ts"],"names":[],"mappings":";;AAaA,8CAOC;AAhBD,2CAAiD;AACjD,6CAAmE;AACnE,yDAA0D;AAC1D,qDAAsM;AAEtM,gDAA2E;AAC3E,wCAA6E;AAC7E,kDAAyD;AAEzD,SAAgB,iBAAiB,CAAC,UAAwC;IACzE,eAAe,CAAC,UAAU,CAAC,CAAC;IAE5B,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC,CAAC;IACnF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC;IAE7F,OAAO,IAAA,wBAAe,EAAC,GAAG,UAAU,CAAC,CAAC;AACvC,CAAC;AAED,SAAS,uBAAuB,CAAC,UAAwC;IACxE,MAAM,kBAAkB,GAA6C;QACpE,WAAW,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,CAA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CAAuC,CAAC,CAAC;QACtD,CAAC;QAED,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE,CAAC;YAC7B,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;QAC1C,CAAC;QAED,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE,CAAC;YAC7B,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;QAC1C,CAAC;QAED,IAAI,UAAU,CAAC,aAAa,IAAI,UAAU,CAAC,QAAQ,IAAI,CAAC,EAAE,CAAC;YAC1D,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC,CAAC;QAChF,CAAC;IACF,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,4BAA4B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAClE,CAAC;AACF,CAAC"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApiPropertyUUID = ApiPropertyUUID;
|
|
4
|
-
const node_crypto_1 = require("node:crypto");
|
|
5
|
-
const common_1 = require("@nestjs/common");
|
|
6
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
7
|
-
const class_transformer_1 = require("class-transformer");
|
|
8
|
-
const class_validator_1 = require("class-validator");
|
|
9
|
-
const enum_1 = require("../../../enum");
|
|
10
|
-
function ApiPropertyUUID(properties) {
|
|
11
|
-
const uuidExample = (0, node_crypto_1.randomUUID)();
|
|
12
|
-
validateOptions(properties);
|
|
13
|
-
const apiPropertyOptions = buildApiPropertyOptions(uuidExample, properties);
|
|
14
|
-
const decorators = buildDecorators(properties, apiPropertyOptions);
|
|
15
|
-
return (0, common_1.applyDecorators)(...decorators);
|
|
16
|
-
}
|
|
17
|
-
function buildApiPropertyOptions(uuidExample, properties) {
|
|
18
|
-
const apiPropertyOptions = {
|
|
19
|
-
description: `${String(properties.entity.name)} ${properties.description ?? "identifier"}`,
|
|
20
|
-
nullable: properties.isNullable,
|
|
21
|
-
type: enum_1.EApiPropertyDataType.STRING,
|
|
22
|
-
};
|
|
23
|
-
apiPropertyOptions.required = properties.isResponse === false || properties.isResponse === undefined ? properties.isRequired : false;
|
|
24
|
-
if (properties.isArray) {
|
|
25
|
-
apiPropertyOptions.isArray = true;
|
|
26
|
-
apiPropertyOptions.minItems = properties.minItems;
|
|
27
|
-
apiPropertyOptions.maxItems = properties.maxItems;
|
|
28
|
-
apiPropertyOptions.uniqueItems = properties.isUniqueItems;
|
|
29
|
-
apiPropertyOptions.items = {
|
|
30
|
-
maxLength: uuidExample.length,
|
|
31
|
-
minLength: uuidExample.length,
|
|
32
|
-
};
|
|
33
|
-
apiPropertyOptions.example = [uuidExample];
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
apiPropertyOptions.minLength = uuidExample.length;
|
|
37
|
-
apiPropertyOptions.maxLength = uuidExample.length;
|
|
38
|
-
apiPropertyOptions.example = uuidExample;
|
|
39
|
-
}
|
|
40
|
-
apiPropertyOptions.format = enum_1.EApiPropertyStringType.UUID;
|
|
41
|
-
apiPropertyOptions.pattern = "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$";
|
|
42
|
-
return apiPropertyOptions;
|
|
43
|
-
}
|
|
44
|
-
function buildDecorators(properties, apiPropertyOptions) {
|
|
45
|
-
const decorators = [(0, swagger_1.ApiProperty)(apiPropertyOptions)];
|
|
46
|
-
decorators.push(...buildResponseDecorators(properties), ...buildRequestDecorators(properties), ...buildFormatDecorators(properties));
|
|
47
|
-
return decorators;
|
|
48
|
-
}
|
|
49
|
-
function buildFormatDecorators(properties) {
|
|
50
|
-
const decorators = [];
|
|
51
|
-
const isArray = properties.isArray ?? false;
|
|
52
|
-
decorators.push((0, class_validator_1.IsUUID)(undefined, { each: isArray }));
|
|
53
|
-
return decorators;
|
|
54
|
-
}
|
|
55
|
-
function buildRequestDecorators(properties) {
|
|
56
|
-
const decorators = [];
|
|
57
|
-
if (properties.isResponse === false || properties.isResponse === undefined) {
|
|
58
|
-
if (!properties.isRequired) {
|
|
59
|
-
decorators.push((0, class_validator_1.IsOptional)());
|
|
60
|
-
}
|
|
61
|
-
if (properties.isArray === true) {
|
|
62
|
-
decorators.push((0, class_validator_1.IsArray)(), (0, class_validator_1.ArrayMinSize)(properties.minItems), (0, class_validator_1.ArrayMaxSize)(properties.maxItems));
|
|
63
|
-
if (properties.minItems > 0) {
|
|
64
|
-
decorators.push((0, class_validator_1.ArrayNotEmpty)());
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
return decorators;
|
|
69
|
-
}
|
|
70
|
-
function buildResponseDecorators(properties) {
|
|
71
|
-
const decorators = [];
|
|
72
|
-
if (properties.isResponse) {
|
|
73
|
-
decorators.push((0, swagger_1.ApiResponseProperty)());
|
|
74
|
-
if (properties.isExpose === undefined || properties.isExpose) {
|
|
75
|
-
decorators.push((0, class_transformer_1.Expose)());
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
decorators.push((0, class_transformer_1.Exclude)());
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return decorators;
|
|
82
|
-
}
|
|
83
|
-
function validateOptions(properties) {
|
|
84
|
-
const errors = [];
|
|
85
|
-
if (properties.isArray === true) {
|
|
86
|
-
if (properties.minItems > properties.maxItems) {
|
|
87
|
-
errors.push("'minItems' is greater than 'maxItems'");
|
|
88
|
-
}
|
|
89
|
-
if (properties.minItems < 0) {
|
|
90
|
-
errors.push("'minItems' is less than 0");
|
|
91
|
-
}
|
|
92
|
-
if (properties.maxItems < 0) {
|
|
93
|
-
errors.push("'maxItems' is less than 0");
|
|
94
|
-
}
|
|
95
|
-
if (properties.isUniqueItems && properties.maxItems <= 1) {
|
|
96
|
-
errors.push("'uniqueItems' is true but 'maxItems' is less than or equal to 1");
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
if (errors.length > 0) {
|
|
100
|
-
throw new Error(`ApiPropertyUUID error: ${errors.join("\n")}`);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
//# sourceMappingURL=uuid.decorator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.decorator.js","sourceRoot":"","sources":["../../../../src/decorator/api/property/uuid.decorator.ts"],"names":[],"mappings":";;AAaA,0CASC;AAlBD,6CAAyC;AAEzC,2CAAiD;AACjD,6CAAmE;AACnE,yDAAoD;AACpD,qDAAyG;AAEzG,wCAA6E;AAE7E,SAAgB,eAAe,CAAC,UAAsC;IACrE,MAAM,WAAW,GAAW,IAAA,wBAAU,GAAE,CAAC;IAEzC,eAAe,CAAC,UAAU,CAAC,CAAC;IAE5B,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IAChG,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC;IAE7F,OAAO,IAAA,wBAAe,EAAC,GAAG,UAAU,CAAC,CAAC;AACvC,CAAC;AAED,SAAS,uBAAuB,CAAC,WAAmB,EAAE,UAAsC;IAC3F,MAAM,kBAAkB,GAAuB;QAC9C,WAAW,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,YAAY,EAAE;QAE1F,QAAQ,EAAE,UAAU,CAAC,UAAU;QAC/B,IAAI,EAAE,2BAAoB,CAAC,MAAM;KACjC,CAAC;IAEF,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,UAAU,KAAK,KAAK,IAAI,UAAU,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC;IAErI,IAAI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C;IACF,CAAC;IAED,OAAO,UAAU,CAAC;AACnB,CAAC;AAED,SAAS,eAAe,CAAC,UAAsC;IAC9D,MAAM,MAAM,GAAkB,EAAE,CAAC;IAEjC,IAAI,UAAU,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;QACjC,IAAI,UAAU,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,EAAE,CAAC;YAC/C,MAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC,CAAC;QACtD,CAAC;QAED,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE,CAAC;YAC7B,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;QAC1C,CAAC;QAED,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE,CAAC;YAC7B,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;QAC1C,CAAC;QAED,IAAI,UAAU,CAAC,aAAa,IAAI,UAAU,CAAC,QAAQ,IAAI,CAAC,EAAE,CAAC;YAC1D,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC,CAAC;QAChF,CAAC;IACF,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,0BAA0B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAChE,CAAC;AACF,CAAC"}
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApiService = ApiService;
|
|
4
|
-
const enum_1 = require("../../enum");
|
|
5
|
-
const function_1 = require("./function");
|
|
6
|
-
function ApiService(properties) {
|
|
7
|
-
const { entity } = properties;
|
|
8
|
-
return function (target) {
|
|
9
|
-
const originalConstructor = target;
|
|
10
|
-
const ExtendedClass = class extends originalConstructor {
|
|
11
|
-
constructor(..._arguments) {
|
|
12
|
-
super(..._arguments);
|
|
13
|
-
if (!Object.prototype.hasOwnProperty.call(this, enum_1.EApiFunctionType.GET_LIST)) {
|
|
14
|
-
Object.defineProperty(this, enum_1.EApiFunctionType.GET_LIST, {
|
|
15
|
-
configurable: true,
|
|
16
|
-
enumerable: true,
|
|
17
|
-
value: async function (properties, relations) {
|
|
18
|
-
const apiFunctionDecorator = (0, function_1.ApiFunction)({
|
|
19
|
-
entity,
|
|
20
|
-
relations,
|
|
21
|
-
type: enum_1.EApiFunctionType.GET_LIST,
|
|
22
|
-
});
|
|
23
|
-
const descriptor = {
|
|
24
|
-
configurable: true,
|
|
25
|
-
enumerable: true,
|
|
26
|
-
value: () => void 0,
|
|
27
|
-
writable: true,
|
|
28
|
-
};
|
|
29
|
-
const decoratedDescriptor = apiFunctionDecorator(this, enum_1.EApiFunctionType.GET_LIST, descriptor);
|
|
30
|
-
return decoratedDescriptor.value.call(this, properties);
|
|
31
|
-
},
|
|
32
|
-
writable: true,
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
if (!Object.prototype.hasOwnProperty.call(this, enum_1.EApiFunctionType.GET)) {
|
|
36
|
-
Object.defineProperty(this, enum_1.EApiFunctionType.GET, {
|
|
37
|
-
configurable: true,
|
|
38
|
-
enumerable: true,
|
|
39
|
-
value: async function (properties) {
|
|
40
|
-
const apiFunctionDecorator = (0, function_1.ApiFunction)({
|
|
41
|
-
entity,
|
|
42
|
-
type: enum_1.EApiFunctionType.GET,
|
|
43
|
-
});
|
|
44
|
-
const descriptor = {
|
|
45
|
-
configurable: true,
|
|
46
|
-
enumerable: true,
|
|
47
|
-
value: () => void 0,
|
|
48
|
-
writable: true,
|
|
49
|
-
};
|
|
50
|
-
const decoratedDescriptor = apiFunctionDecorator(this, enum_1.EApiFunctionType.GET, descriptor);
|
|
51
|
-
return decoratedDescriptor.value.call(this, properties);
|
|
52
|
-
},
|
|
53
|
-
writable: true,
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
if (!Object.prototype.hasOwnProperty.call(this, enum_1.EApiFunctionType.GET_MANY)) {
|
|
57
|
-
Object.defineProperty(this, enum_1.EApiFunctionType.GET_MANY, {
|
|
58
|
-
configurable: true,
|
|
59
|
-
enumerable: true,
|
|
60
|
-
value: async function (properties) {
|
|
61
|
-
const apiFunctionDecorator = (0, function_1.ApiFunction)({
|
|
62
|
-
entity,
|
|
63
|
-
type: enum_1.EApiFunctionType.GET_MANY,
|
|
64
|
-
});
|
|
65
|
-
const descriptor = {
|
|
66
|
-
configurable: true,
|
|
67
|
-
enumerable: true,
|
|
68
|
-
value: () => void 0,
|
|
69
|
-
writable: true,
|
|
70
|
-
};
|
|
71
|
-
const decoratedDescriptor = apiFunctionDecorator(this, enum_1.EApiFunctionType.GET_MANY, descriptor);
|
|
72
|
-
return decoratedDescriptor.value.call(this, properties);
|
|
73
|
-
},
|
|
74
|
-
writable: true,
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
if (!Object.prototype.hasOwnProperty.call(this, enum_1.EApiFunctionType.CREATE)) {
|
|
78
|
-
Object.defineProperty(this, enum_1.EApiFunctionType.CREATE, {
|
|
79
|
-
configurable: true,
|
|
80
|
-
enumerable: true,
|
|
81
|
-
value: async function (properties) {
|
|
82
|
-
const apiFunctionDecorator = (0, function_1.ApiFunction)({
|
|
83
|
-
entity,
|
|
84
|
-
type: enum_1.EApiFunctionType.CREATE,
|
|
85
|
-
});
|
|
86
|
-
const descriptor = {
|
|
87
|
-
configurable: true,
|
|
88
|
-
enumerable: true,
|
|
89
|
-
value: () => void 0,
|
|
90
|
-
writable: true,
|
|
91
|
-
};
|
|
92
|
-
const decoratedDescriptor = apiFunctionDecorator(this, enum_1.EApiFunctionType.CREATE, descriptor);
|
|
93
|
-
return decoratedDescriptor.value.call(this, properties);
|
|
94
|
-
},
|
|
95
|
-
writable: true,
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
if (!Object.prototype.hasOwnProperty.call(this, enum_1.EApiFunctionType.UPDATE)) {
|
|
99
|
-
Object.defineProperty(this, enum_1.EApiFunctionType.UPDATE, {
|
|
100
|
-
configurable: true,
|
|
101
|
-
enumerable: true,
|
|
102
|
-
value: async function (criteria, properties) {
|
|
103
|
-
const apiFunctionDecorator = (0, function_1.ApiFunction)({
|
|
104
|
-
entity,
|
|
105
|
-
type: enum_1.EApiFunctionType.UPDATE,
|
|
106
|
-
});
|
|
107
|
-
const descriptor = {
|
|
108
|
-
configurable: true,
|
|
109
|
-
enumerable: true,
|
|
110
|
-
value: () => void 0,
|
|
111
|
-
writable: true,
|
|
112
|
-
};
|
|
113
|
-
const decoratedDescriptor = apiFunctionDecorator(this, enum_1.EApiFunctionType.UPDATE, descriptor);
|
|
114
|
-
return decoratedDescriptor.value.call(this, criteria, properties);
|
|
115
|
-
},
|
|
116
|
-
writable: true,
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
if (!Object.prototype.hasOwnProperty.call(this, enum_1.EApiFunctionType.DELETE)) {
|
|
120
|
-
Object.defineProperty(this, enum_1.EApiFunctionType.DELETE, {
|
|
121
|
-
configurable: true,
|
|
122
|
-
enumerable: true,
|
|
123
|
-
value: async function (criteria) {
|
|
124
|
-
const apiFunctionDecorator = (0, function_1.ApiFunction)({
|
|
125
|
-
entity,
|
|
126
|
-
type: enum_1.EApiFunctionType.DELETE,
|
|
127
|
-
});
|
|
128
|
-
const descriptor = {
|
|
129
|
-
configurable: true,
|
|
130
|
-
enumerable: true,
|
|
131
|
-
value: () => void 0,
|
|
132
|
-
writable: true,
|
|
133
|
-
};
|
|
134
|
-
const decoratedDescriptor = apiFunctionDecorator(this, enum_1.EApiFunctionType.DELETE, descriptor);
|
|
135
|
-
return decoratedDescriptor.value.call(this, criteria);
|
|
136
|
-
},
|
|
137
|
-
writable: true,
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
Object.setPrototypeOf(ExtendedClass, originalConstructor);
|
|
143
|
-
return ExtendedClass;
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
//# sourceMappingURL=service.decorator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"service.decorator.js","sourceRoot":"","sources":["../../../src/decorator/api/service.decorator.ts"],"names":[],"mappings":";;AASA,gCAkQC;AAtQD,qCAA8C;AAE9C,yCAAyC;AAEzC,SAAgB,UAAU,CAA2B,UAAoC;IACxF,MAAM,EAAE,MAAM,EAAE,GAA6B,UAAU,CAAC;IAExD,OAAO,UAAuE,MAAiB;QAC9F,MAAM,mBAAmB,GAAc,MAAM,CAAC;QAE9C,MAAM,aAAa,GAAmE,KAAM,SAAQ,mBAAmB;YACtH,YAAY,GAAG,UAAsB;gBAEpC,KAAK,CAAC,GAAG,UAAU,CAAC,CAAC;gBAErB,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,uBAAgB,CAAC,QAAQ,CAAC,EAAE,CAAC;oBAC5E,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,uBAAgB,CAAC,QAAQ,EAAE;wBAEtD,YAAY,EAAE,IAAI;wBAElB,UAAU,EAAE,IAAI;wBAChB,KAAK,EAAE,KAAK,WAAW,UAA4C,EAAE,SAAkC;4BACtG,MAAM,oBAAoB,GAA+F,IAAA,sBAAW,EAAC;gCACpI,MAAM;gCACN,SAAS;gCACT,IAAI,EAAE,uBAAgB,CAAC,QAAQ;6BAC/B,CAAC,CAAC;4BAEH,MAAM,UAAU,GAQZ;gCAEH,YAAY,EAAE,IAAI;gCAElB,UAAU,EAAE,IAAI;gCAEhB,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC;gCAEnB,QAAQ,EAAE,IAAI;6BACd,CAAC;4BAEF,MAAM,mBAAmB,GAAuB,oBAAoB,CAAC,IAAI,EAAE,uBAAgB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;4BAElH,OAAQ,mBAAmB,CAAC,KAA4G,CAAC,IAAI,CAAC,IAAI,EAAE,UAA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B,GAAkG,IAAA,sBAAW,EAAC;gCACvI,MAAM;gCACN,IAAI,EAAE,uBAAgB,CAAC,MAAM;6BAC7B,CAAC,CAAC;4BAEH,MAAM,UAAU,GAQZ;gCAEH,YAAY,EAAE,IAAI;gCAElB,UAAU,EAAE,IAAI;gCAEhB,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC;gCAEnB,QAAQ,EAAE,IAAI;6BACd,CAAC;4BAEF,MAAM,mBAAmB,GAAuB,oBAAoB,CAAC,IAAI,EAAE,uBAAgB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;4BAEhH,OAAQ,mBAAmB,CAAC,KAA+E,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;wBAClI,CAAC;wBAED,QAAQ,EAAE,IAAI;qBACd,CAAC,CAAC;gBACJ,CAAC;YACF,CAAC;SACD,CAAC;QAEF,MAAM,CAAC,cAAc,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAAC;QAE1D,OAAO,aAA0B,CAAC;IACnC,CAAC,CAAC;AACH,CAAC"}
|
package/dist/decorator/index.js
DELETED
|
@@ -1,18 +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("./api"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/decorator/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
|