@elsikora/nestjs-crud-automator 2.1.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -0
- package/dist/cjs/class/api/authorization/bootstrap-validation.service.class.js +1 -1
- package/dist/cjs/class/api/authorization/bootstrap-validation.service.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/hook/permission/cache.class.js +1 -1
- package/dist/cjs/class/api/authorization/hook/permission/cache.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/hook/permission/resolver.class.js +1 -1
- package/dist/cjs/class/api/authorization/hook/permission/resolver.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/iam/attachment/cache.class.js +1 -1
- package/dist/cjs/class/api/authorization/iam/attachment/cache.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/iam/attachment/resolver.class.js +2 -2
- package/dist/cjs/class/api/authorization/iam/attachment/resolver.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/iam/document/cache.class.js +1 -1
- package/dist/cjs/class/api/authorization/iam/document/cache.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/iam/document/resolver.class.js +1 -1
- package/dist/cjs/class/api/authorization/iam/document/resolver.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/runtime.class.js +2 -2
- package/dist/cjs/class/api/authorization/runtime.class.js.map +1 -1
- package/dist/cjs/class/api/route-runtime.class.d.ts +1 -0
- package/dist/cjs/class/api/route-runtime.class.js +41 -3
- package/dist/cjs/class/api/route-runtime.class.js.map +1 -1
- package/dist/cjs/constant/interface/api/property/default-string-format.constant.js +9 -0
- package/dist/cjs/constant/interface/api/property/default-string-format.constant.js.map +1 -1
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/bigint-string/constant.d.ts +5 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/bigint-string/constant.js +12 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/bigint-string/constant.js.map +1 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/bigint-string/index.d.ts +2 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/bigint-string/sign/default.constant.d.ts +2 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/bigint-string/sign/default.constant.js +6 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/bigint-string/sign/default.constant.js.map +1 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/bigint-string/sign/index.d.ts +2 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/bigint-string/sign/properties.constant.d.ts +2 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/bigint-string/sign/properties.constant.js +28 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/bigint-string/sign/properties.constant.js.map +1 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/constant.d.ts +9 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/constant.js +12 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/constant.js.map +1 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/customizer/index.d.ts +1 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/customizer/map.constant.d.ts +2 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/customizer/map.constant.js +28 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/customizer/map.constant.js.map +1 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/index.d.ts +1 -0
- package/dist/cjs/constant/utility/api/index.d.ts +1 -0
- package/dist/cjs/constant/utility/index.d.ts +1 -0
- package/dist/cjs/decorator/api/controller/observable.decorator.js +9 -3
- package/dist/cjs/decorator/api/controller/observable.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/controller/securable.decorator.js +9 -3
- package/dist/cjs/decorator/api/controller/securable.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/method.decorator.js +38 -15
- package/dist/cjs/decorator/api/method.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/boolean.decorator.d.ts +1 -1
- package/dist/cjs/decorator/api/property/boolean.decorator.js +4 -5
- package/dist/cjs/decorator/api/property/boolean.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/date.decorator.d.ts +1 -1
- package/dist/cjs/decorator/api/property/date.decorator.js +4 -5
- package/dist/cjs/decorator/api/property/date.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/enum.decorator.d.ts +1 -1
- package/dist/cjs/decorator/api/property/enum.decorator.js +4 -5
- package/dist/cjs/decorator/api/property/enum.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/number.decorator.d.ts +1 -1
- package/dist/cjs/decorator/api/property/number.decorator.js +4 -5
- package/dist/cjs/decorator/api/property/number.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/object.decorator.d.ts +1 -1
- package/dist/cjs/decorator/api/property/object.decorator.js +38 -6
- package/dist/cjs/decorator/api/property/object.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/string.decorator.d.ts +1 -1
- package/dist/cjs/decorator/api/property/string.decorator.js +8 -6
- package/dist/cjs/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/uuid.decorator.d.ts +1 -1
- package/dist/cjs/decorator/api/property/uuid.decorator.js +4 -5
- package/dist/cjs/decorator/api/property/uuid.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/route-custom.decorator.js +1 -0
- package/dist/cjs/decorator/api/route-custom.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/service/decorator.d.ts +1 -1
- package/dist/cjs/decorator/api/service/decorator.js +1 -1
- package/dist/cjs/decorator/api/service/observable.decorator.js +9 -3
- package/dist/cjs/decorator/api/service/observable.decorator.js.map +1 -1
- package/dist/cjs/enum/decorator/api/property/data-type.enum.d.ts +1 -0
- package/dist/cjs/enum/decorator/api/property/data-type.enum.js +1 -0
- package/dist/cjs/enum/decorator/api/property/data-type.enum.js.map +1 -1
- package/dist/cjs/enum/decorator/api/property/string-type.enum.d.ts +1 -0
- package/dist/cjs/enum/decorator/api/property/string-type.enum.js +1 -0
- package/dist/cjs/enum/decorator/api/property/string-type.enum.js.map +1 -1
- package/dist/cjs/factory/api-controller.factory.js +4 -0
- package/dist/cjs/factory/api-controller.factory.js.map +1 -1
- package/dist/cjs/index.js +25 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interceptor/correlation-id-response-body.interceptor.js +2 -8
- package/dist/cjs/interceptor/correlation-id-response-body.interceptor.js.map +1 -1
- package/dist/cjs/interface/decorator/api/route/response/properties.interface.d.ts +3 -1
- package/dist/cjs/interface/decorator/api/route/runtime-properties.interface.d.ts +2 -1
- package/dist/cjs/module/api/authorization.module.js +1 -1
- package/dist/cjs/module/api/authorization.module.js.map +1 -1
- package/dist/cjs/type/decorator/api/index.d.ts +1 -0
- package/dist/cjs/type/decorator/api/property/default/string/format/type.d.ts +1 -1
- package/dist/cjs/type/decorator/api/route/custom/dto-properties.type.d.ts +8 -0
- package/dist/cjs/type/decorator/api/route/custom/index.d.ts +1 -0
- package/dist/cjs/type/decorator/api/route/discriminated/dto-properties.type.d.ts +10 -0
- package/dist/cjs/type/decorator/api/route/discriminated/index.d.ts +1 -0
- package/dist/cjs/type/decorator/api/route/index.d.ts +2 -0
- package/dist/cjs/type/index.d.ts +1 -0
- package/dist/cjs/type/utility/api/discriminator/index.d.ts +1 -0
- package/dist/cjs/type/utility/api/discriminator/validate/config-properties.type.d.ts +8 -0
- package/dist/cjs/type/utility/api/discriminator/validate/index.d.ts +1 -0
- package/dist/cjs/type/utility/api/get-default-string-format-properties/bigint-string/index.d.ts +2 -0
- package/dist/cjs/type/utility/api/get-default-string-format-properties/bigint-string/options.type.d.ts +4 -0
- package/dist/cjs/type/utility/api/get-default-string-format-properties/bigint-string/sign/index.d.ts +2 -0
- package/dist/cjs/type/utility/api/get-default-string-format-properties/bigint-string/sign/properties.type.d.ts +2 -0
- package/dist/cjs/type/utility/api/get-default-string-format-properties/bigint-string/sign/type.d.ts +1 -0
- package/dist/cjs/type/utility/api/get-default-string-format-properties/customizer/index.d.ts +2 -0
- package/dist/cjs/type/utility/api/get-default-string-format-properties/customizer/map.type.d.ts +5 -0
- package/dist/cjs/type/utility/api/get-default-string-format-properties/customizer/type.d.ts +3 -0
- package/dist/cjs/type/utility/api/get-default-string-format-properties/index.d.ts +3 -0
- package/dist/cjs/type/utility/api/get-default-string-format-properties/options.type.d.ts +4 -0
- package/dist/cjs/type/utility/api/get-default-string-format-properties/parameters.type.d.ts +3 -0
- package/dist/cjs/type/utility/api/index.d.ts +2 -0
- package/dist/cjs/type/utility/index.d.ts +1 -1
- package/dist/cjs/utility/api/controller/apply/decorators.utility.d.ts +1 -1
- package/dist/cjs/utility/api/controller/apply/decorators.utility.js +1 -1
- package/dist/cjs/utility/api/controller/apply/metadata.utility.js +0 -1
- package/dist/cjs/utility/api/controller/apply/metadata.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/get/dto.utility.js +1 -0
- package/dist/cjs/utility/api/controller/get/dto.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/get-list/transform/filter.utility.d.ts +1 -1
- package/dist/cjs/utility/api/controller/get-list/transform/filter.utility.js +1 -1
- package/dist/cjs/utility/api/controller/get-list/transform/operation.utility.d.ts +2 -2
- package/dist/cjs/utility/api/controller/get-list/transform/operation.utility.js +2 -2
- package/dist/cjs/utility/api/controller/write/dto-swagger.utility.js +7 -3
- package/dist/cjs/utility/api/controller/write/dto-swagger.utility.js.map +1 -1
- package/dist/cjs/utility/api/discriminator/index.d.ts +1 -0
- package/dist/cjs/utility/api/discriminator/validate/config.utility.d.ts +7 -0
- package/dist/cjs/utility/api/discriminator/validate/config.utility.js +54 -0
- package/dist/cjs/utility/api/discriminator/validate/config.utility.js.map +1 -0
- package/dist/cjs/utility/api/discriminator/validate/index.d.ts +1 -0
- package/dist/cjs/utility/api/get-default-string-format-properties/bigint-string/apply-options.utility.d.ts +9 -0
- package/dist/cjs/utility/api/get-default-string-format-properties/bigint-string/apply-options.utility.js +20 -0
- package/dist/cjs/utility/api/get-default-string-format-properties/bigint-string/apply-options.utility.js.map +1 -0
- package/dist/cjs/utility/api/get-default-string-format-properties/bigint-string/index.d.ts +1 -0
- package/dist/cjs/utility/api/get-default-string-format-properties/customizer/apply.utility.d.ts +11 -0
- package/dist/cjs/utility/api/get-default-string-format-properties/customizer/apply.utility.js +20 -0
- package/dist/cjs/utility/api/get-default-string-format-properties/customizer/apply.utility.js.map +1 -0
- package/dist/cjs/utility/api/get-default-string-format-properties/customizer/index.d.ts +1 -0
- package/dist/cjs/utility/api/get-default-string-format-properties/index.d.ts +1 -0
- package/dist/cjs/utility/api/{get-default-string-format-properties.utility.d.ts → get-default-string-format-properties/utility.d.ts} +5 -2
- package/dist/cjs/utility/api/{get-default-string-format-properties.utility.js → get-default-string-format-properties/utility.js} +8 -5
- package/dist/cjs/utility/api/get-default-string-format-properties/utility.js.map +1 -0
- package/dist/cjs/utility/api/index.d.ts +2 -1
- package/dist/cjs/utility/api/route/apply-dto-metadata.utility.js +20 -6
- package/dist/cjs/utility/api/route/apply-dto-metadata.utility.js.map +1 -1
- package/dist/cjs/utility/api/route/discriminator/build-open-api-schema.utility.d.ts +9 -0
- package/dist/cjs/utility/api/route/discriminator/build-open-api-schema.utility.js +26 -0
- package/dist/cjs/utility/api/route/discriminator/build-open-api-schema.utility.js.map +1 -0
- package/dist/cjs/utility/api/route/discriminator/create-validation-failure.utility.d.ts +9 -0
- package/dist/cjs/utility/api/route/discriminator/create-validation-failure.utility.js +46 -0
- package/dist/cjs/utility/api/route/discriminator/create-validation-failure.utility.js.map +1 -0
- package/dist/cjs/utility/api/route/discriminator/index.d.ts +6 -0
- package/dist/cjs/utility/api/route/discriminator/is-dto-properties.utility.d.ts +7 -0
- package/dist/cjs/utility/api/route/discriminator/is-dto-properties.utility.js +13 -0
- package/dist/cjs/utility/api/route/discriminator/is-dto-properties.utility.js.map +1 -0
- package/dist/cjs/utility/api/route/discriminator/prepare-payload.utility.d.ts +8 -0
- package/dist/cjs/utility/api/route/discriminator/prepare-payload.utility.js +19 -0
- package/dist/cjs/utility/api/route/discriminator/prepare-payload.utility.js.map +1 -0
- package/dist/cjs/utility/api/route/discriminator/resolve-dto.utility.d.ts +10 -0
- package/dist/cjs/utility/api/route/discriminator/resolve-dto.utility.js +35 -0
- package/dist/cjs/utility/api/route/discriminator/resolve-dto.utility.js.map +1 -0
- package/dist/cjs/utility/api/route/discriminator/validate-dto-properties.utility.d.ts +8 -0
- package/dist/cjs/utility/api/route/discriminator/validate-dto-properties.utility.js +21 -0
- package/dist/cjs/utility/api/route/discriminator/validate-dto-properties.utility.js.map +1 -0
- package/dist/cjs/utility/api/route/dto/collect-with-registered-children.utility.d.ts +8 -0
- package/dist/cjs/utility/api/route/dto/collect-with-registered-children.utility.js +29 -0
- package/dist/cjs/utility/api/route/dto/collect-with-registered-children.utility.js.map +1 -0
- package/dist/cjs/utility/api/route/dto/index.d.ts +1 -0
- package/dist/cjs/utility/api/route/index.d.ts +4 -0
- package/dist/cjs/utility/api/route/response/project-relation.utility.js +16 -13
- package/dist/cjs/utility/api/route/response/project-relation.utility.js.map +1 -1
- package/dist/cjs/utility/api/route/response/serialize.utility.js +20 -0
- package/dist/cjs/utility/api/route/response/serialize.utility.js.map +1 -1
- package/dist/cjs/utility/api/route/validation/flatten-errors.utility.d.ts +8 -0
- package/dist/cjs/utility/api/route/validation/flatten-errors.utility.js +26 -0
- package/dist/cjs/utility/api/route/validation/flatten-errors.utility.js.map +1 -0
- package/dist/cjs/utility/api/route/validation/index.d.ts +1 -0
- package/dist/cjs/utility/authorization/scope-merge-where.utility.js +2 -2
- package/dist/cjs/utility/authorization/scope-merge-where.utility.js.map +1 -1
- package/dist/cjs/utility/database/typeorm/is/foreign-key-violation.utility.js +1 -4
- package/dist/cjs/utility/database/typeorm/is/foreign-key-violation.utility.js.map +1 -1
- package/dist/cjs/utility/database/typeorm/is/unique-violation.utility.js +1 -4
- package/dist/cjs/utility/database/typeorm/is/unique-violation.utility.js.map +1 -1
- package/dist/cjs/utility/dto/build-decorator.utility.js +1 -3
- package/dist/cjs/utility/dto/build-decorator.utility.js.map +1 -1
- package/dist/cjs/utility/dto/manual/property-metadata.utility.js +1 -1
- package/dist/cjs/utility/dto/manual/property-metadata.utility.js.map +1 -1
- package/dist/cjs/utility/generate-entity-information.utility.js +8 -15
- package/dist/cjs/utility/generate-entity-information.utility.js.map +1 -1
- package/dist/cjs/utility/index.d.ts +1 -1
- package/dist/cjs/utility/register-auto-dto-child.utility.d.ts +6 -0
- package/dist/cjs/utility/register-auto-dto-child.utility.js +30 -0
- package/dist/cjs/utility/register-auto-dto-child.utility.js.map +1 -1
- package/dist/cjs/validator/has/paired-custom-suffixes-fields.validator.js +1 -1
- package/dist/cjs/validator/has/paired-custom-suffixes-fields.validator.js.map +1 -1
- package/dist/cjs/validator/must-match-one-of-schemas.validator.d.ts +1 -2
- package/dist/cjs/validator/must-match-one-of-schemas.validator.js +4 -33
- package/dist/cjs/validator/must-match-one-of-schemas.validator.js.map +1 -1
- package/dist/esm/class/api/authorization/bootstrap-validation.service.class.js +2 -2
- package/dist/esm/class/api/authorization/bootstrap-validation.service.class.js.map +1 -1
- package/dist/esm/class/api/authorization/hook/permission/cache.class.js +1 -1
- package/dist/esm/class/api/authorization/hook/permission/cache.class.js.map +1 -1
- package/dist/esm/class/api/authorization/hook/permission/resolver.class.js +2 -2
- package/dist/esm/class/api/authorization/hook/permission/resolver.class.js.map +1 -1
- package/dist/esm/class/api/authorization/iam/attachment/cache.class.js +1 -1
- package/dist/esm/class/api/authorization/iam/attachment/cache.class.js.map +1 -1
- package/dist/esm/class/api/authorization/iam/attachment/resolver.class.js +3 -3
- package/dist/esm/class/api/authorization/iam/attachment/resolver.class.js.map +1 -1
- package/dist/esm/class/api/authorization/iam/document/cache.class.js +1 -1
- package/dist/esm/class/api/authorization/iam/document/cache.class.js.map +1 -1
- package/dist/esm/class/api/authorization/iam/document/resolver.class.js +2 -2
- package/dist/esm/class/api/authorization/iam/document/resolver.class.js.map +1 -1
- package/dist/esm/class/api/authorization/runtime.class.js +2 -2
- package/dist/esm/class/api/authorization/runtime.class.js.map +1 -1
- package/dist/esm/class/api/route-runtime.class.d.ts +1 -0
- package/dist/esm/class/api/route-runtime.class.js +41 -3
- package/dist/esm/class/api/route-runtime.class.js.map +1 -1
- package/dist/esm/constant/interface/api/property/default-string-format.constant.js +9 -0
- package/dist/esm/constant/interface/api/property/default-string-format.constant.js.map +1 -1
- package/dist/esm/constant/utility/api/get-default-string-format-properties/bigint-string/constant.d.ts +5 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/bigint-string/constant.js +10 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/bigint-string/constant.js.map +1 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/bigint-string/index.d.ts +2 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/bigint-string/sign/default.constant.d.ts +2 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/bigint-string/sign/default.constant.js +4 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/bigint-string/sign/default.constant.js.map +1 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/bigint-string/sign/index.d.ts +2 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/bigint-string/sign/properties.constant.d.ts +2 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/bigint-string/sign/properties.constant.js +26 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/bigint-string/sign/properties.constant.js.map +1 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/constant.d.ts +9 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/constant.js +10 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/constant.js.map +1 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/customizer/index.d.ts +1 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/customizer/map.constant.d.ts +2 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/customizer/map.constant.js +26 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/customizer/map.constant.js.map +1 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/index.d.ts +1 -0
- package/dist/esm/constant/utility/api/index.d.ts +1 -0
- package/dist/esm/constant/utility/index.d.ts +1 -0
- package/dist/esm/decorator/api/controller/observable.decorator.js +9 -3
- package/dist/esm/decorator/api/controller/observable.decorator.js.map +1 -1
- package/dist/esm/decorator/api/controller/securable.decorator.js +9 -3
- package/dist/esm/decorator/api/controller/securable.decorator.js.map +1 -1
- package/dist/esm/decorator/api/method.decorator.js +31 -8
- package/dist/esm/decorator/api/method.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/boolean.decorator.d.ts +1 -1
- package/dist/esm/decorator/api/property/boolean.decorator.js +4 -5
- package/dist/esm/decorator/api/property/boolean.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/date.decorator.d.ts +1 -1
- package/dist/esm/decorator/api/property/date.decorator.js +4 -5
- package/dist/esm/decorator/api/property/date.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/enum.decorator.d.ts +1 -1
- package/dist/esm/decorator/api/property/enum.decorator.js +4 -5
- package/dist/esm/decorator/api/property/enum.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/number.decorator.d.ts +1 -1
- package/dist/esm/decorator/api/property/number.decorator.js +4 -5
- package/dist/esm/decorator/api/property/number.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/object.decorator.d.ts +1 -1
- package/dist/esm/decorator/api/property/object.decorator.js +38 -6
- package/dist/esm/decorator/api/property/object.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/string.decorator.d.ts +1 -1
- package/dist/esm/decorator/api/property/string.decorator.js +8 -6
- package/dist/esm/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/uuid.decorator.d.ts +1 -1
- package/dist/esm/decorator/api/property/uuid.decorator.js +4 -5
- package/dist/esm/decorator/api/property/uuid.decorator.js.map +1 -1
- package/dist/esm/decorator/api/route-custom.decorator.js +1 -0
- package/dist/esm/decorator/api/route-custom.decorator.js.map +1 -1
- package/dist/esm/decorator/api/service/decorator.d.ts +1 -1
- package/dist/esm/decorator/api/service/decorator.js +1 -1
- package/dist/esm/decorator/api/service/observable.decorator.js +9 -3
- package/dist/esm/decorator/api/service/observable.decorator.js.map +1 -1
- package/dist/esm/enum/decorator/api/property/data-type.enum.d.ts +1 -0
- package/dist/esm/enum/decorator/api/property/data-type.enum.js +1 -0
- package/dist/esm/enum/decorator/api/property/data-type.enum.js.map +1 -1
- package/dist/esm/enum/decorator/api/property/string-type.enum.d.ts +1 -0
- package/dist/esm/enum/decorator/api/property/string-type.enum.js +1 -0
- package/dist/esm/enum/decorator/api/property/string-type.enum.js.map +1 -1
- package/dist/esm/factory/api-controller.factory.js +4 -0
- package/dist/esm/factory/api-controller.factory.js.map +1 -1
- package/dist/esm/index.js +13 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interceptor/correlation-id-response-body.interceptor.js +2 -8
- package/dist/esm/interceptor/correlation-id-response-body.interceptor.js.map +1 -1
- package/dist/esm/interface/decorator/api/route/response/properties.interface.d.ts +3 -1
- package/dist/esm/interface/decorator/api/route/runtime-properties.interface.d.ts +2 -1
- package/dist/esm/module/api/authorization.module.js +1 -1
- package/dist/esm/module/api/authorization.module.js.map +1 -1
- package/dist/esm/type/decorator/api/index.d.ts +1 -0
- package/dist/esm/type/decorator/api/property/default/string/format/type.d.ts +1 -1
- package/dist/esm/type/decorator/api/route/custom/dto-properties.type.d.ts +8 -0
- package/dist/esm/type/decorator/api/route/custom/index.d.ts +1 -0
- package/dist/esm/type/decorator/api/route/discriminated/dto-properties.type.d.ts +10 -0
- package/dist/esm/type/decorator/api/route/discriminated/index.d.ts +1 -0
- package/dist/esm/type/decorator/api/route/index.d.ts +2 -0
- package/dist/esm/type/index.d.ts +1 -0
- package/dist/esm/type/utility/api/discriminator/index.d.ts +1 -0
- package/dist/esm/type/utility/api/discriminator/validate/config-properties.type.d.ts +8 -0
- package/dist/esm/type/utility/api/discriminator/validate/index.d.ts +1 -0
- package/dist/esm/type/utility/api/get-default-string-format-properties/bigint-string/index.d.ts +2 -0
- package/dist/esm/type/utility/api/get-default-string-format-properties/bigint-string/options.type.d.ts +4 -0
- package/dist/esm/type/utility/api/get-default-string-format-properties/bigint-string/sign/index.d.ts +2 -0
- package/dist/esm/type/utility/api/get-default-string-format-properties/bigint-string/sign/properties.type.d.ts +2 -0
- package/dist/esm/type/utility/api/get-default-string-format-properties/bigint-string/sign/type.d.ts +1 -0
- package/dist/esm/type/utility/api/get-default-string-format-properties/customizer/index.d.ts +2 -0
- package/dist/esm/type/utility/api/get-default-string-format-properties/customizer/map.type.d.ts +5 -0
- package/dist/esm/type/utility/api/get-default-string-format-properties/customizer/type.d.ts +3 -0
- package/dist/esm/type/utility/api/get-default-string-format-properties/index.d.ts +3 -0
- package/dist/esm/type/utility/api/get-default-string-format-properties/options.type.d.ts +4 -0
- package/dist/esm/type/utility/api/get-default-string-format-properties/parameters.type.d.ts +3 -0
- package/dist/esm/type/utility/api/index.d.ts +2 -0
- package/dist/esm/type/utility/index.d.ts +1 -1
- package/dist/esm/utility/api/controller/apply/decorators.utility.d.ts +1 -1
- package/dist/esm/utility/api/controller/apply/decorators.utility.js +1 -1
- package/dist/esm/utility/api/controller/apply/metadata.utility.js +0 -1
- package/dist/esm/utility/api/controller/apply/metadata.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/get/dto.utility.js +1 -0
- package/dist/esm/utility/api/controller/get/dto.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/get-list/transform/filter.utility.d.ts +1 -1
- package/dist/esm/utility/api/controller/get-list/transform/filter.utility.js +1 -1
- package/dist/esm/utility/api/controller/get-list/transform/operation.utility.d.ts +2 -2
- package/dist/esm/utility/api/controller/get-list/transform/operation.utility.js +2 -2
- package/dist/esm/utility/api/controller/write/dto-swagger.utility.js +7 -3
- package/dist/esm/utility/api/controller/write/dto-swagger.utility.js.map +1 -1
- package/dist/esm/utility/api/discriminator/index.d.ts +1 -0
- package/dist/esm/utility/api/discriminator/validate/config.utility.d.ts +7 -0
- package/dist/esm/utility/api/discriminator/validate/config.utility.js +52 -0
- package/dist/esm/utility/api/discriminator/validate/config.utility.js.map +1 -0
- package/dist/esm/utility/api/discriminator/validate/index.d.ts +1 -0
- package/dist/esm/utility/api/get-default-string-format-properties/bigint-string/apply-options.utility.d.ts +9 -0
- package/dist/esm/utility/api/get-default-string-format-properties/bigint-string/apply-options.utility.js +18 -0
- package/dist/esm/utility/api/get-default-string-format-properties/bigint-string/apply-options.utility.js.map +1 -0
- package/dist/esm/utility/api/get-default-string-format-properties/bigint-string/index.d.ts +1 -0
- package/dist/esm/utility/api/get-default-string-format-properties/customizer/apply.utility.d.ts +11 -0
- package/dist/esm/utility/api/get-default-string-format-properties/customizer/apply.utility.js +18 -0
- package/dist/esm/utility/api/get-default-string-format-properties/customizer/apply.utility.js.map +1 -0
- package/dist/esm/utility/api/get-default-string-format-properties/customizer/index.d.ts +1 -0
- package/dist/esm/utility/api/get-default-string-format-properties/index.d.ts +1 -0
- package/dist/esm/utility/api/{get-default-string-format-properties.utility.d.ts → get-default-string-format-properties/utility.d.ts} +5 -2
- package/dist/esm/utility/api/{get-default-string-format-properties.utility.js → get-default-string-format-properties/utility.js} +8 -5
- package/dist/esm/utility/api/get-default-string-format-properties/utility.js.map +1 -0
- package/dist/esm/utility/api/index.d.ts +2 -1
- package/dist/esm/utility/api/route/apply-dto-metadata.utility.js +21 -7
- package/dist/esm/utility/api/route/apply-dto-metadata.utility.js.map +1 -1
- package/dist/esm/utility/api/route/discriminator/build-open-api-schema.utility.d.ts +9 -0
- package/dist/esm/utility/api/route/discriminator/build-open-api-schema.utility.js +24 -0
- package/dist/esm/utility/api/route/discriminator/build-open-api-schema.utility.js.map +1 -0
- package/dist/esm/utility/api/route/discriminator/create-validation-failure.utility.d.ts +9 -0
- package/dist/esm/utility/api/route/discriminator/create-validation-failure.utility.js +44 -0
- package/dist/esm/utility/api/route/discriminator/create-validation-failure.utility.js.map +1 -0
- package/dist/esm/utility/api/route/discriminator/index.d.ts +6 -0
- package/dist/esm/utility/api/route/discriminator/is-dto-properties.utility.d.ts +7 -0
- package/dist/esm/utility/api/route/discriminator/is-dto-properties.utility.js +11 -0
- package/dist/esm/utility/api/route/discriminator/is-dto-properties.utility.js.map +1 -0
- package/dist/esm/utility/api/route/discriminator/prepare-payload.utility.d.ts +8 -0
- package/dist/esm/utility/api/route/discriminator/prepare-payload.utility.js +17 -0
- package/dist/esm/utility/api/route/discriminator/prepare-payload.utility.js.map +1 -0
- package/dist/esm/utility/api/route/discriminator/resolve-dto.utility.d.ts +10 -0
- package/dist/esm/utility/api/route/discriminator/resolve-dto.utility.js +33 -0
- package/dist/esm/utility/api/route/discriminator/resolve-dto.utility.js.map +1 -0
- package/dist/esm/utility/api/route/discriminator/validate-dto-properties.utility.d.ts +8 -0
- package/dist/esm/utility/api/route/discriminator/validate-dto-properties.utility.js +19 -0
- package/dist/esm/utility/api/route/discriminator/validate-dto-properties.utility.js.map +1 -0
- package/dist/esm/utility/api/route/dto/collect-with-registered-children.utility.d.ts +8 -0
- package/dist/esm/utility/api/route/dto/collect-with-registered-children.utility.js +27 -0
- package/dist/esm/utility/api/route/dto/collect-with-registered-children.utility.js.map +1 -0
- package/dist/esm/utility/api/route/dto/index.d.ts +1 -0
- package/dist/esm/utility/api/route/index.d.ts +4 -0
- package/dist/esm/utility/api/route/response/project-relation.utility.js +16 -13
- package/dist/esm/utility/api/route/response/project-relation.utility.js.map +1 -1
- package/dist/esm/utility/api/route/response/serialize.utility.js +20 -0
- package/dist/esm/utility/api/route/response/serialize.utility.js.map +1 -1
- package/dist/esm/utility/api/route/validation/flatten-errors.utility.d.ts +8 -0
- package/dist/esm/utility/api/route/validation/flatten-errors.utility.js +24 -0
- package/dist/esm/utility/api/route/validation/flatten-errors.utility.js.map +1 -0
- package/dist/esm/utility/api/route/validation/index.d.ts +1 -0
- package/dist/esm/utility/authorization/scope-merge-where.utility.js +2 -2
- package/dist/esm/utility/authorization/scope-merge-where.utility.js.map +1 -1
- package/dist/esm/utility/database/typeorm/is/foreign-key-violation.utility.js +1 -4
- package/dist/esm/utility/database/typeorm/is/foreign-key-violation.utility.js.map +1 -1
- package/dist/esm/utility/database/typeorm/is/unique-violation.utility.js +1 -4
- package/dist/esm/utility/database/typeorm/is/unique-violation.utility.js.map +1 -1
- package/dist/esm/utility/dto/build-decorator.utility.js +1 -3
- package/dist/esm/utility/dto/build-decorator.utility.js.map +1 -1
- package/dist/esm/utility/dto/manual/property-metadata.utility.js +1 -1
- package/dist/esm/utility/dto/manual/property-metadata.utility.js.map +1 -1
- package/dist/esm/utility/generate-entity-information.utility.js +8 -15
- package/dist/esm/utility/generate-entity-information.utility.js.map +1 -1
- package/dist/esm/utility/index.d.ts +1 -1
- package/dist/esm/utility/register-auto-dto-child.utility.d.ts +6 -0
- package/dist/esm/utility/register-auto-dto-child.utility.js +30 -1
- package/dist/esm/utility/register-auto-dto-child.utility.js.map +1 -1
- package/dist/esm/validator/has/paired-custom-suffixes-fields.validator.js +1 -1
- package/dist/esm/validator/has/paired-custom-suffixes-fields.validator.js.map +1 -1
- package/dist/esm/validator/must-match-one-of-schemas.validator.d.ts +1 -2
- package/dist/esm/validator/must-match-one-of-schemas.validator.js +4 -33
- package/dist/esm/validator/must-match-one-of-schemas.validator.js.map +1 -1
- package/package.json +31 -30
- package/dist/cjs/utility/api/get-default-string-format-properties.utility.js.map +0 -1
- package/dist/esm/utility/api/get-default-string-format-properties.utility.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EManualDtoPropertyMetadataDecorator } from '../../../enum/utility/dto/manual/property-metadata/decorator.enum.js';
|
|
2
2
|
import { applyDecorators } from '@nestjs/common';
|
|
3
3
|
import { getSchemaPath, ApiProperty, ApiResponseProperty } from '@nestjs/swagger';
|
|
4
|
+
import { ApiDiscriminatorValidateConfig } from '../../../utility/api/discriminator/validate/config.utility.js';
|
|
4
5
|
import { ApplyAutoDtoResponseExposure } from '../../../utility/apply-auto-dto-response-exposure.utility.js';
|
|
5
6
|
import { CamelCaseString } from '../../../utility/camel-case-string.utility.js';
|
|
6
7
|
import { DtoGenerateContextualManualDto } from '../../../utility/dto/generate/manual-child.utility.js';
|
|
@@ -25,7 +26,7 @@ import { ValidateNested, IsArray, ArrayMinSize, ArrayMaxSize, ArrayNotEmpty, IsO
|
|
|
25
26
|
* - Validation rules
|
|
26
27
|
* - Transformation rules
|
|
27
28
|
* @param {TApiPropertyObjectProperties} options - Configuration options for the object property
|
|
28
|
-
* @returns {
|
|
29
|
+
* @returns {PropertyDecorator} A decorator function that can be applied to a class property
|
|
29
30
|
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-property/api-property-object | API Reference - ApiPropertyObject}
|
|
30
31
|
* @example
|
|
31
32
|
* ```typescript
|
|
@@ -45,6 +46,9 @@ function ApiPropertyObject(options) {
|
|
|
45
46
|
WithResolvedPropertyEntity(options.entity, "ApiPropertyObject", (resolvedEntity) => {
|
|
46
47
|
const normalizedOptions = resolveContextualObjectOptions(target, propertyKey, { ...options, entity: resolvedEntity });
|
|
47
48
|
RegisterAutoDtoChild(target, normalizedOptions.type);
|
|
49
|
+
if ("isDynamicallyGenerated" in normalizedOptions && normalizedOptions.isDynamicallyGenerated) {
|
|
50
|
+
RegisterAutoDtoChild(target, Object.values(normalizedOptions.generatedDTOs));
|
|
51
|
+
}
|
|
48
52
|
validateOptions(normalizedOptions);
|
|
49
53
|
RegisterManualDtoPropertyMetadata(target, propertyKey, {
|
|
50
54
|
apply: ApiPropertyObject(normalizedOptions),
|
|
@@ -93,7 +97,7 @@ function buildApiPropertyOptions(properties) {
|
|
|
93
97
|
if (properties.discriminator) {
|
|
94
98
|
apiPropertyOptions.discriminator = {
|
|
95
99
|
// eslint-disable-next-line @elsikora/typescript/no-unsafe-function-type
|
|
96
|
-
mapping: Object.fromEntries(Object.
|
|
100
|
+
mapping: Object.fromEntries(Object.entries(properties.discriminator.mapping).map(([key, value]) => [key, getSchemaPath(properties.generatedDTOs[value])])),
|
|
97
101
|
propertyName: properties.discriminator.propertyName,
|
|
98
102
|
};
|
|
99
103
|
}
|
|
@@ -125,9 +129,7 @@ function buildApiPropertyOptions(properties) {
|
|
|
125
129
|
* @private
|
|
126
130
|
*/
|
|
127
131
|
function buildDecorators(properties, apiPropertyOptions) {
|
|
128
|
-
|
|
129
|
-
decorators.push(...buildResponseDecorators(properties), ...buildRequestDecorators(properties), ...buildTransformDecorators(properties), ...buildObjectValidationDecorators(properties));
|
|
130
|
-
return decorators;
|
|
132
|
+
return [ApiProperty(apiPropertyOptions), ...buildResponseDecorators(properties), ...buildRequestDecorators(properties), ...buildTransformDecorators(properties), ...buildObjectValidationDecorators(properties)];
|
|
131
133
|
}
|
|
132
134
|
/**
|
|
133
135
|
* Builds decorators for validation of nested objects.
|
|
@@ -213,7 +215,7 @@ function buildResponseDecorators(properties) {
|
|
|
213
215
|
*/
|
|
214
216
|
function buildTransformDecorators(properties) {
|
|
215
217
|
const decorators = [];
|
|
216
|
-
if (Array.isArray(properties.type) && properties.discriminator) {
|
|
218
|
+
if (Array.isArray(properties.type) && properties.discriminator && !("isDynamicallyGenerated" in properties && properties.isDynamicallyGenerated)) {
|
|
217
219
|
decorators.push(MustMatchOneOfSchemasValidator({
|
|
218
220
|
discriminator: properties.discriminator,
|
|
219
221
|
schemas: properties.type,
|
|
@@ -255,6 +257,14 @@ function buildTransformDecorators(properties) {
|
|
|
255
257
|
}
|
|
256
258
|
return decorators;
|
|
257
259
|
}
|
|
260
|
+
/**
|
|
261
|
+
* Checks whether object property options use explicit class-based discriminator variants.
|
|
262
|
+
* @param {TApiPropertyObjectProperties} properties - Object property options.
|
|
263
|
+
* @returns {boolean} Whether properties contain class-based discriminator variants.
|
|
264
|
+
*/
|
|
265
|
+
function isApiPropertyObjectWithDiscriminatorProperties(properties) {
|
|
266
|
+
return Array.isArray(properties.type) && "discriminator" in properties && Boolean(properties.discriminator) && !("isDynamicallyGenerated" in properties && properties.isDynamicallyGenerated);
|
|
267
|
+
}
|
|
258
268
|
/**
|
|
259
269
|
* Replaces manual nested DTO references with context-specific generated wrappers when the property
|
|
260
270
|
* is applied inside an auto-generated DTO scope.
|
|
@@ -345,6 +355,28 @@ function validateOptions(properties) {
|
|
|
345
355
|
if (errors.length > 0) {
|
|
346
356
|
throw ErrorException(`ApiPropertyObject error: ${errors.join("\n")}`);
|
|
347
357
|
}
|
|
358
|
+
if (isApiPropertyObjectWithDiscriminatorProperties(properties)) {
|
|
359
|
+
ApiDiscriminatorValidateConfig({
|
|
360
|
+
context: "ApiPropertyObject",
|
|
361
|
+
discriminator: properties.discriminator,
|
|
362
|
+
shouldRequireDeclaredDiscriminatorProperty: true,
|
|
363
|
+
variants: properties.type,
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
if ("isDynamicallyGenerated" in properties && properties.isDynamicallyGenerated) {
|
|
367
|
+
const discriminatorMapping = Object.fromEntries(Object.entries(properties.discriminator.mapping).map(([key, value]) => {
|
|
368
|
+
return [key, properties.generatedDTOs[value]];
|
|
369
|
+
}));
|
|
370
|
+
ApiDiscriminatorValidateConfig({
|
|
371
|
+
context: "ApiPropertyObject",
|
|
372
|
+
discriminator: {
|
|
373
|
+
...properties.discriminator,
|
|
374
|
+
mapping: discriminatorMapping,
|
|
375
|
+
},
|
|
376
|
+
shouldRequireDeclaredDiscriminatorProperty: true,
|
|
377
|
+
variants: Object.values(properties.generatedDTOs),
|
|
378
|
+
});
|
|
379
|
+
}
|
|
348
380
|
}
|
|
349
381
|
|
|
350
382
|
export { ApiPropertyObject };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.decorator.js","sources":["../../../../../../src/decorator/api/property/object.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;AAsBA;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BG;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AAOG;AACH,SAAS,eAAe,CAAC,UAAwC,EAAA;IAChE,MAAM,MAAM,GAAkB,EAAE;AAEhC,IAAA,IAAI,UAAU,CAAC,OAAO,IAAI,CAAC,UAAU,CAAC,oBAAoB,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE;AACrF,QAAA,MAAM,CAAC,IAAI,CAAC,+CAA+C,CAAC;IAC7D;AAEA,IAAA,IAAI,UAAU,CAAC,OAAO,KAAK,IAAI,EAAE;QAChC,IAAI,UAAU,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,EAAE;AAC9C,YAAA,MAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC;QACrD;AAEA,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;QACzC;AAEA,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;QACzC;QAEA,IAAI,UAAU,CAAC,aAAa,IAAI,UAAU,CAAC,QAAQ,IAAI,CAAC,EAAE;AACzD,YAAA,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC;QAC/E;IACD;AAEA,IAAA,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;QACtB,MAAM,cAAc,CAAC,CAAA,yBAAA,EAA4B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,CAAE,CAAC;IACtE;AACD;;;;"}
|
|
1
|
+
{"version":3,"file":"object.decorator.js","sources":["../../../../../../src/decorator/api/property/object.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BG;AACG,SAAU,iBAAiB,CAAC,OAAqC,EAAA;AACtE,IAAA,OAAO,CAAC,MAAc,EAAE,WAA4B,KAAU;QAC7D,0BAA0B,CAAC,OAAO,CAAC,MAAM,E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C,CAAA,CAAE,CAAC;IACtE;AAEA,IAAA,IAAI,8CAA8C,CAAC,UAAU,CAAC,EAAE;AAC/D,QAAA,8BAA8B,CAAC;AAC9B,YAAA,OAAO,EAAE,mBAAmB;YAC5B,aAAa,EAAE,UAAU,CAAC,aAAa;AACvC,YAAA,0CAA0C,EAAE,IAAI;YAChD,QAAQ,EAAE,UAAU,CAAC,IAAgC;AACrD,SAAA,CAAC;IACH;IAEA,IAAI,wBAAwB,IAAI,UAAU,IAAI,UAAU,CAAC,sBAAsB,EAAE;QAChF,MAAM,oBAAoB,GAA8C,MAAM,CAAC,WAAW,CACzF,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAmB,KAAyC;YAC5H,OAAO,CAAC,GAAG,EAAE,UAAU,CAAC,aAAa,CAAC,KAAK,CAA8B,CAAC;QAC3E,CAAC,CAAC,CACF;AAED,QAAA,8BAA8B,CAAC;AAC9B,YAAA,OAAO,EAAE,mBAAmB;AAC5B,YAAA,aAAa,EAAE;gBACd,GAAG,UAAU,CAAC,aAAa;AAC3B,gBAAA,OAAO,EAAE,oBAAoB;AAC7B,aAAA;AACD,YAAA,0CAA0C,EAAE,IAAI;YAChD,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC;AACjD,SAAA,CAAC;IACH;AACD;;;;"}
|
|
@@ -14,7 +14,7 @@ import { TApiPropertyStringProperties } from '../../../type/decorator/api/proper
|
|
|
14
14
|
*
|
|
15
15
|
* The decorator applies appropriate validation rules based on the format and configuration.
|
|
16
16
|
* @param {TApiPropertyStringProperties} properties - Configuration options for the string property
|
|
17
|
-
* @returns {
|
|
17
|
+
* @returns {PropertyDecorator} A decorator function that can be applied to a class property
|
|
18
18
|
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-property/api-property-string | API Reference - ApiPropertyString}
|
|
19
19
|
* @example
|
|
20
20
|
* ```typescript
|
|
@@ -44,7 +44,7 @@ import { IsUUID, IsUrl, IsString, IsUppercase, IsTimeZone, IsSemVer, IsRgbColor,
|
|
|
44
44
|
*
|
|
45
45
|
* The decorator applies appropriate validation rules based on the format and configuration.
|
|
46
46
|
* @param {TApiPropertyStringProperties} properties - Configuration options for the string property
|
|
47
|
-
* @returns {
|
|
47
|
+
* @returns {PropertyDecorator} A decorator function that can be applied to a class property
|
|
48
48
|
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-property/api-property-string | API Reference - ApiPropertyString}
|
|
49
49
|
* @example
|
|
50
50
|
* ```typescript
|
|
@@ -130,9 +130,10 @@ function buildApiPropertyOptions(properties) {
|
|
|
130
130
|
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
131
131
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
132
132
|
nullable: !!properties.isNullable,
|
|
133
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
134
|
+
required: properties.isRequired,
|
|
133
135
|
type: EApiPropertyDataType.STRING,
|
|
134
136
|
};
|
|
135
|
-
apiPropertyOptions.required = properties.isRequired;
|
|
136
137
|
if (properties.isArray === true) {
|
|
137
138
|
apiPropertyOptions.isArray = true;
|
|
138
139
|
apiPropertyOptions.minItems = properties.minItems;
|
|
@@ -163,9 +164,7 @@ function buildApiPropertyOptions(properties) {
|
|
|
163
164
|
* @private
|
|
164
165
|
*/
|
|
165
166
|
function buildDecorators(properties, apiPropertyOptions) {
|
|
166
|
-
|
|
167
|
-
decorators.push(...buildResponseDecorators(properties), ...buildRequestDecorators(properties), ...buildFormatDecorators(properties), ...buildStringValidationDecorators(properties));
|
|
168
|
-
return decorators;
|
|
167
|
+
return [ApiProperty(apiPropertyOptions), ...buildResponseDecorators(properties), ...buildRequestDecorators(properties), ...buildFormatDecorators(properties), ...buildStringValidationDecorators(properties)];
|
|
169
168
|
}
|
|
170
169
|
/**
|
|
171
170
|
* Builds decorators for string format validation based on the specified format type.
|
|
@@ -185,6 +184,8 @@ function buildFormatDecorators(properties) {
|
|
|
185
184
|
// falls through
|
|
186
185
|
case EApiPropertyStringType.BCRYPT:
|
|
187
186
|
// falls through
|
|
187
|
+
case EApiPropertyStringType.BIGINT_STRING:
|
|
188
|
+
// falls through
|
|
188
189
|
case EApiPropertyStringType.COORDINATES:
|
|
189
190
|
// falls through
|
|
190
191
|
case EApiPropertyStringType.CRON:
|
|
@@ -414,7 +415,8 @@ function buildFormatDecorators(properties) {
|
|
|
414
415
|
break;
|
|
415
416
|
}
|
|
416
417
|
default: {
|
|
417
|
-
|
|
418
|
+
const format = properties.format;
|
|
419
|
+
throw ErrorException(`ApiPropertyString error: Format is not valid for string property: ${String(format)}`);
|
|
418
420
|
}
|
|
419
421
|
}
|
|
420
422
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.decorator.js","sources":["../../../../../../src/decorator/api/property/string.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEG;AACG,SAAU,iBAAiB,CAAC,UAAwC,EAAA;AACzE,IAAA,OAAO,CAAC,MAAc,EAAE,WAA4B,KAAU;QAC7D,0BAA0B,CAAC,UAAU,CAAC,MAAM,EAAE,mBAAmB,EAAE,CAAC,cAAyD,KAAI;AAChI,YAAA,MAAM,oBAAoB,GAAiC;AAC1D,gBAAA,GAAG,UAAU;AACb,gBAAA,MAAM,EAAE,cAAc;aACtB;YAED,eAAe,CAAC,oBAAoB,CAAC;AACrC,YAAA,iCAAiC,CAAC,MAAM,EAAE,WAAW,EAAE;AACtD,gBAAA,KAAK,EAAE,iBAAiB,CAAC,oBAAoB,CAAC;gBAC9C,SAAS,EAAE,mCAAmC,CAAC,MAAM;AACrD,gBAAA,UAAU,EA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,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;QACzC;AAEA,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;QACzC;QAEA,IAAI,UAAU,CAAC,aAAa,IAAI,UAAU,CAAC,QAAQ,IAAI,CAAC,EAAE;AACzD,YAAA,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC;QAC/E;IACD;AAEA,IAAA,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;QACtB,MAAM,cAAc,CAAC,CAAA,yBAAA,EAA4B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,CAAE,CAAC;IACtE;AACD;;;;"}
|
|
@@ -13,7 +13,7 @@ import { TApiPropertyUuidProperties } from '../../../type/decorator/api/property
|
|
|
13
13
|
* The decorator automatically generates a UUID example for Swagger documentation and
|
|
14
14
|
* applies appropriate validation rules based on the configuration.
|
|
15
15
|
* @param {TApiPropertyUuidProperties} properties - Configuration options for the UUID property
|
|
16
|
-
* @returns {
|
|
16
|
+
* @returns {PropertyDecorator} A decorator function that can be applied to a class property
|
|
17
17
|
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-property/api-property-uuid | API Reference - ApiPropertyUUID}
|
|
18
18
|
* @example
|
|
19
19
|
* ```typescript
|
|
@@ -41,7 +41,7 @@ import { IsUUID, IsArray, ArrayMinSize, ArrayMaxSize, ArrayNotEmpty, ValidateIf
|
|
|
41
41
|
* The decorator automatically generates a UUID example for Swagger documentation and
|
|
42
42
|
* applies appropriate validation rules based on the configuration.
|
|
43
43
|
* @param {TApiPropertyUuidProperties} properties - Configuration options for the UUID property
|
|
44
|
-
* @returns {
|
|
44
|
+
* @returns {PropertyDecorator} A decorator function that can be applied to a class property
|
|
45
45
|
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-property/api-property-uuid | API Reference - ApiPropertyUUID}
|
|
46
46
|
* @example
|
|
47
47
|
* ```typescript
|
|
@@ -101,9 +101,10 @@ function buildApiPropertyOptions(uuidExample, properties) {
|
|
|
101
101
|
description: `${String(properties.entity.name)} ${properties.description ?? "identifier"}`,
|
|
102
102
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
103
103
|
nullable: !!properties.isNullable,
|
|
104
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
105
|
+
required: properties.isRequired,
|
|
104
106
|
type: EApiPropertyDataType.STRING,
|
|
105
107
|
};
|
|
106
|
-
apiPropertyOptions.required = properties.isRequired;
|
|
107
108
|
if (properties.isArray) {
|
|
108
109
|
apiPropertyOptions.isArray = true;
|
|
109
110
|
apiPropertyOptions.minItems = properties.minItems;
|
|
@@ -133,9 +134,7 @@ function buildApiPropertyOptions(uuidExample, properties) {
|
|
|
133
134
|
* @private
|
|
134
135
|
*/
|
|
135
136
|
function buildDecorators(properties, apiPropertyOptions) {
|
|
136
|
-
|
|
137
|
-
decorators.push(...buildResponseDecorators(properties), ...buildRequestDecorators(properties), ...buildFormatDecorators(properties));
|
|
138
|
-
return decorators;
|
|
137
|
+
return [ApiProperty(apiPropertyOptions), ...buildResponseDecorators(properties), ...buildRequestDecorators(properties), ...buildFormatDecorators(properties)];
|
|
139
138
|
}
|
|
140
139
|
/**
|
|
141
140
|
* Builds decorators for UUID format validation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.decorator.js","sources":["../../../../../../src/decorator/api/property/uuid.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCG;AACG,SAAU,eAAe,CAAC,UAAsC,EAAA;AACrE,IAAA,OAAO,CAAC,MAAc,EAAE,WAA4B,KAAU;QAC7D,0BAA0B,CAAC,UAAU,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC,cAAqD,KAAI;YAC1H,MAAM,oBAAoB,GAA+B,EAAE,GAAG,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE;AAClG,YAAA,MAAM,WAAW,GAAW,UAAU,EAAE;YAExC,eAAe,CAAC,oBAAoB,CAAC;AACrC,YAAA,iCAAiC,CAAC,MAAM,EAAE,WAAW,EAAE;AACtD,gBAAA,KAAK,EAAE,eAAe,CAAC,oBAAoB,CAAC;gBAC5C,SAAS,EAAE,mCAAmC,CAAC,IAAI;AACnD,gBAAA,UAAU,EAAE,oBAAoB;AAChC,aAAA,CAAC;YAEF,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,WAAW,EAAE,oBAAoB,CAAC;YACzG,MAAM,UAAU,GAA6B,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC;YAEtG,eAAe,CAAC,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC;AACnD,YAAA,4BAA4B,CAAC,MAAM,EAAE,WAAW,EAAE,oBAAoB,CAAC;AACxE,QAAA,CAAC,CAAC;AACH,IAAA,CAAC;AACF;AAEA;;;;;;;;AAQG;AACH,SAAS,uBAAuB,CAAC,WAAmB,EAAE,UAAsC,EAAA;AAC3F,IAAA,MAAM,kBAAkB,GAAuB;AAC9C,QAAA,WAAW,EAAE,CAAA,EAAG,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,YAAY,CAAA,CAAE;;AAE1F,QAAA,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,UAAU;
|
|
1
|
+
{"version":3,"file":"uuid.decorator.js","sources":["../../../../../../src/decorator/api/property/uuid.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCG;AACG,SAAU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,EAA0B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,CAAE,CAAC;IACpE;AACD;;;;"}
|
|
@@ -35,6 +35,7 @@ import { ApiMethod } from './method.decorator.js';
|
|
|
35
35
|
function ApiRouteCustom(properties) {
|
|
36
36
|
const metadataResponse = properties.response
|
|
37
37
|
? {
|
|
38
|
+
discriminator: properties.response.discriminator,
|
|
38
39
|
errors: properties.response.errors,
|
|
39
40
|
serialization: properties.response.serialization,
|
|
40
41
|
status: properties.response.status,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-custom.decorator.js","sources":["../../../../../src/decorator/api/route-custom.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA;;;;;AAKG;AACG,SAAU,cAAc,CAA2B,UAAwC,EAAA;AAChG,IAAA,MAAM,gBAAgB,GAAiD,UAAU,CAAC;AACjF,UAAE;AACA,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM;AAClC,YAAA,aAAa,EAAE,UAAU,CAAC,QAAQ,CAAC,aAAa;AAChD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM;AAClC,YAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,IAAI;AAC9B;UACA,SAAS;IAEZ,MAAM,eAAe,GAAqE,UAAU,CAAC,QAAQ,GAAG,4BAA4B,CAAC,QAAQ;AACpJ,UAAE;AACA,YAAA,CAAC,4BAA4B,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC,4BAA4B,CAAC,QAAQ,CAAC;AACnG;UACA,SAAS;AAEZ,IAAA,MAAM,QAAQ,GAAyB;QACtC,aAAa,EAAE,UAAU,CAAC,aAAa;QACvC,QAAQ,EAAE,UAAU,CAAC,QAAQ;AAC7B,QAAA,QAAQ,EAAE,gBAAgB;QAC1B,KAAK,EAAE,UAAU,CAAC,KAAK;QACvB,QAAQ,EAAE,UAAU,CAAC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B,CAAC,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,UAAU,CAAC;AAC5N,IAAA,CAAC;AACF;AAEA;;;;;;AAMG;AACH,SAAS,yBAAyB,CAAC,MAAc,EAAE,WAA4B,EAAE,aAA8B,EAAA;IAC9G,MAAM,sBAAsB,IAAoD,OAAO,CAAC,WAAW,CAAC,mBAAmB,EAAE,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,mBAAmB,EAAE,MAAM,EAAE,WAAW,CAAC,CAAmD;IAE7Q,IAAI,CAAC,sBAAsB,EAAE;AAC5B,QAAA,OAAO,SAAS;IACjB;IAEA,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,EAAE;AAC3D,QAAA,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,GAAiC,KAAK;QACxD,MAAM,CAAC,IAAI,CAAC,GAAkB,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC;AAC5C,QAAA,MAAM,qBAAqB,GAAoB,MAAM,CAAC,IAAI,CAAC;AAE3D,QAAA,IAAI,qBAAqB,KAAK,aAAa,EAAE;YAC5C,OAAO,KAAK,CAAC,KAAK;QACnB;IACD;AAEA,IAAA,OAAO,SAAS;AACjB;;;;"}
|
|
1
|
+
{"version":3,"file":"route-custom.decorator.js","sources":["../../../../../src/decorator/api/route-custom.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA;;;;;AAKG;AACG,SAAU,cAAc,CAA2B,UAAwC,EAAA;AAChG,IAAA,MAAM,gBAAgB,GAAiD,UAAU,CAAC;AACjF,UAAE;AACA,YAAA,aAAa,EAAE,UAAU,CAAC,QAAQ,CAAC,aAAa;AAChD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM;AAClC,YAAA,aAAa,EAAE,UAAU,CAAC,QAAQ,CAAC,aAAa;AAChD,YAAA,MAAM,EA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AAa,EAAE;YAC5C,OAAO,KAAK,CAAC,KAAK;QACnB;IACD;AAEA,IAAA,OAAO,SAAS;AACjB;;;;"}
|
|
@@ -3,7 +3,7 @@ import { TApiServiceProperties } from '../../../type/decorator/api/service';
|
|
|
3
3
|
/**
|
|
4
4
|
* Creates a class decorator that adds CRUD operations to a service class for a specific entity
|
|
5
5
|
* @param {TApiServiceProperties<E>} properties - Configuration properties for the service
|
|
6
|
-
* @returns {
|
|
6
|
+
* @returns {ClassDecorator} A class decorator function that extends the target class with CRUD methods
|
|
7
7
|
* @template E - The entity type
|
|
8
8
|
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-service/api-service | API Reference - ApiService}
|
|
9
9
|
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/services | Core Concepts - Services}
|
|
@@ -30,7 +30,7 @@ import { ApiFunction } from '../function/decorator.js';
|
|
|
30
30
|
/**
|
|
31
31
|
* Creates a class decorator that adds CRUD operations to a service class for a specific entity
|
|
32
32
|
* @param {TApiServiceProperties<E>} properties - Configuration properties for the service
|
|
33
|
-
* @returns {
|
|
33
|
+
* @returns {ClassDecorator} A class decorator function that extends the target class with CRUD methods
|
|
34
34
|
* @template E - The entity type
|
|
35
35
|
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-service/api-service | API Reference - ApiService}
|
|
36
36
|
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/services | Core Concepts - Services}
|
|
@@ -7,9 +7,15 @@ import { SERVICE_API_DECORATOR_CONSTANT } from '../../../constant/decorator/api/
|
|
|
7
7
|
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-service/api-service-observable | API Reference - ApiServiceObservable}
|
|
8
8
|
*/
|
|
9
9
|
function ApiServiceObservable() {
|
|
10
|
-
return
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
return applyApiServiceObservableMetadata;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Applies service observable metadata.
|
|
14
|
+
* @param {object} target - Decorated service target.
|
|
15
|
+
* @returns {void}
|
|
16
|
+
*/
|
|
17
|
+
function applyApiServiceObservableMetadata(target) {
|
|
18
|
+
Reflect.defineMetadata(SERVICE_API_DECORATOR_CONSTANT.OBSERVABLE_METADATA_KEY, true, target);
|
|
13
19
|
}
|
|
14
20
|
|
|
15
21
|
export { ApiServiceObservable };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observable.decorator.js","sources":["../../../../../../src/decorator/api/service/observable.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA;;;;;AAKG;SACa,oBAAoB,GAAA;
|
|
1
|
+
{"version":3,"file":"observable.decorator.js","sources":["../../../../../../src/decorator/api/service/observable.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA;;;;;AAKG;SACa,oBAAoB,GAAA;AACnC,IAAA,OAAO,iCAAiC;AACzC;AAEA;;;;AAIG;AACH,SAAS,iCAAiC,CAAC,MAAc,EAAA;IACxD,OAAO,CAAC,cAAc,CAAC,8BAA8B,CAAC,uBAAuB,EAAE,IAAI,EAAE,MAAM,CAAC;AAC7F;;;;"}
|
|
@@ -3,6 +3,7 @@ var EApiPropertyDataType;
|
|
|
3
3
|
EApiPropertyDataType["API_KEY"] = "api-key";
|
|
4
4
|
EApiPropertyDataType["BASE64"] = "base64";
|
|
5
5
|
EApiPropertyDataType["BCRYPT"] = "bcrypt";
|
|
6
|
+
EApiPropertyDataType["BIGINT_STRING"] = "bigint-string";
|
|
6
7
|
EApiPropertyDataType["BITCOIN_ADDRESS"] = "bitcoin-address";
|
|
7
8
|
EApiPropertyDataType["BOOLEAN"] = "boolean";
|
|
8
9
|
EApiPropertyDataType["COORDINATES"] = "coordinates";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-type.enum.js","sources":["../../../../../../../src/enum/decorator/api/property/data-type.enum.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AA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,YAAyB;AACzB,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,oBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,oBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,oBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,oBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,oBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,oBAAA,CAAA,kBAAA,CAAA,GAAA,kBAAqC;AACrC,IAAA,oBAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACX,IAAA,oBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,oBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,oBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACd,CAAC,
|
|
1
|
+
{"version":3,"file":"data-type.enum.js","sources":["../../../../../../../src/enum/decorator/api/property/data-type.enum.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,oBAAoB,EAAA;AAC/B,IAAA,oBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,oBAAA,CAAA,eAAA,CAAA,GAAA,eAA+B;AAC/B,IAAA,oBAAA,CAAA,iBAAA,CAAA,GAAA,iBAAmC;AACnC,IAAA,oBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,oBAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,oBAAA,CAAA,qBAAA,CAAA,GAAA,qBAA2C;AAC3C,IAAA,oBAAA,CAAA,qBAAA,CAAA,GAAA,qBAA2C;AAC3C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W;AACX,IAAA,oBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,oBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,oBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACd,CAAC,EA9DW,oBAAoB,KAApB,oBAAoB,GAAA,EAAA,CAAA,CAAA;;;;"}
|
|
@@ -5,6 +5,7 @@ var EApiPropertyStringType;
|
|
|
5
5
|
EApiPropertyStringType["API_KEY"] = "api-key";
|
|
6
6
|
EApiPropertyStringType["BASE64"] = "base64";
|
|
7
7
|
EApiPropertyStringType["BCRYPT"] = "bcrypt";
|
|
8
|
+
EApiPropertyStringType["BIGINT_STRING"] = "bigint-string";
|
|
8
9
|
EApiPropertyStringType["BITCOIN_ADDRESS"] = "bitcoin-address";
|
|
9
10
|
EApiPropertyStringType["COORDINATES"] = "coordinates";
|
|
10
11
|
EApiPropertyStringType["COUNTRY_CODE_ALPHA2"] = "country-code-alpha2";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string-type.enum.js","sources":["../../../../../../../src/enum/decorator/api/property/string-type.enum.ts"],"sourcesContent":[null],"names":[],"mappings":";;IAEY;AAAZ,CAAA,UAAY,sBAAsB,EAAA;AACjC,IAAA,sBAAA,CAAA,SAAA,CAAA,GAAA,SAAsC;AACtC,IAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAoC;AACpC,IAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAoC;AACpC,IAAA,sBAAA,CAAA,iBAAA,CAAA,GAAA,iBAAsD;AACtD,IAAA,sBAAA,CAAA,aAAA,CAAA,GAAA,aAA8C;AAC9C,IAAA,sBAAA,CAAA,qBAAA,CAAA,GAAA,qBAA8D;AAC9D,IAAA,sBAAA,CAAA,qBAAA,CAAA,GAAA,qBAA8D;AAC9D,IAAA,sBAAA,CAAA,aAAA,CAAA,GAAA,aAA8C;AAC9C,IAAA,sBAAA,CAAA,MAAA,CAAA,GAAA,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aAA8C;AAC9C,IAAA,sBAAA,CAAA,WAAA,CAAA,GAAA,WAA0C;AAC1C,IAAA,sBAAA,CAAA,mBAAA,CAAA,GAAA,mBAA0D;AAC1D,IAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAoC;AACpC,IAAA,sBAAA,CAAA,cAAA,CAAA,GAAA,cAAgD;AAChD,IAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAwC;AACxC,IAAA,sBAAA,CAAA,cAAA,CAAA,GAAA,cAAgD;AAChD,IAAA,sBAAA,CAAA,aAAA,CAAA,GAAA,aAA8C;AAC9C,IAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAoC;AACpC,IAAA,sBAAA,CAAA,WAAA,CAAA,GAAA,WAA0C;AAC1C,IAAA,sBAAA,CAAA,YAAA,CAAA,GAAA,YAA4C;AAC5C,IAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAoC;AACpC,IAAA,sBAAA,CAAA,MAAA,CAAA,GAAA,MAAgC;AAChC,IAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAoC;AACpC,IAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAwC;AACxC,IAAA,sBAAA,CAAA,MAAA,CAAA,GAAA,MAAgC;AAChC,IAAA,sBAAA,CAAA,kBAAA,CAAA,GAAA,kBAAwD;AACxD,IAAA,sBAAA,CAAA,KAAA,CAAA,GAAA,KAA8B;AAC9B,IAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAwC;AACxC,IAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAwC;AACxC,IAAA,sBAAA,CAAA,MAAA,CAAA,GAAA,MAAgC;AACjC,CAAC,
|
|
1
|
+
{"version":3,"file":"string-type.enum.js","sources":["../../../../../../../src/enum/decorator/api/property/string-type.enum.ts"],"sourcesContent":[null],"names":[],"mappings":";;IAEY;AAAZ,CAAA,UAAY,sBAAsB,EAAA;AACjC,IAAA,sBAAA,CAAA,SAAA,CAAA,GAAA,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A,MAAgC;AAChC,IAAA,sBAAA,CAAA,kBAAA,CAAA,GAAA,kBAAwD;AACxD,IAAA,sBAAA,CAAA,KAAA,CAAA,GAAA,KAA8B;AAC9B,IAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAwC;AACxC,IAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAwC;AACxC,IAAA,sBAAA,CAAA,MAAA,CAAA,GAAA,MAAgC;AACjC,CAAC,EAvDW,sBAAsB,KAAtB,sBAAsB,GAAA,EAAA,CAAA,CAAA;;;;"}
|
|
@@ -32,6 +32,7 @@ import '../enum/filter/operation.enum.js';
|
|
|
32
32
|
import '../enum/filter/order-direction.enum.js';
|
|
33
33
|
import '../external/tslib/tslib.es6.js';
|
|
34
34
|
import 'lodash/random.js';
|
|
35
|
+
import '@nestjs/swagger/dist/constants.js';
|
|
35
36
|
import '../validator/must-match-one-of-schemas.validator.js';
|
|
36
37
|
import '../constant/interface/api/property/default-string-format.constant.js';
|
|
37
38
|
import 'typeorm';
|
|
@@ -50,6 +51,9 @@ import '../enum/utility/error-string/composite-action.enum.js';
|
|
|
50
51
|
import { ApiControllerWriteDtoSwagger } from '../utility/api/controller/write/dto-swagger.utility.js';
|
|
51
52
|
import { ApiControllerWriteMethod } from '../utility/api/controller/write/method.utility.js';
|
|
52
53
|
import 'lodash/cloneDeep.js';
|
|
54
|
+
import '../constant/utility/api/get-default-string-format-properties/customizer/map.constant.js';
|
|
55
|
+
import '@nestjs/common/constants.js';
|
|
56
|
+
import '@nestjs/common/enums/route-paramtypes.enum.js';
|
|
53
57
|
import { GenerateEntityInformation } from '../utility/generate-entity-information.utility.js';
|
|
54
58
|
|
|
55
59
|
class ApiControllerFactory {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-controller.factory.js","sources":["../../../../src/factory/api-controller.factory.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api-controller.factory.js","sources":["../../../../src/factory/api-controller.fact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AAI,CAAC,uBAAuB,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,CAAC;IAC7E;AAEQ,IAAA,uBAAuB,CAAC,MAAqB,EAAE,UAAiI,EAAE,UAAuC,EAAE,cAA6B,EAAA;QAC/P,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,cAAc,CACvD,gBAA+C,UAAsB,EAAE,IAAoB,EAAE,OAA+B,EAAE,EAAU,EAAE,qBAAiD,EAAA;AAC1L,YAAA,QAAQ,MAAM,eAAe,CAAC,gBAAgB,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,qBAAqB,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC;QACxL,CAAC,EACD,MAAM,EACN,EAAE,KAAK,EAAE,UAAU,EAAE,CACrB;IACF;AACA;;;;"}
|
package/dist/esm/index.js
CHANGED
|
@@ -68,6 +68,7 @@ export { DEFAULT_STRING_FORMAT_PROPERTY_API_INTERFACE_CONSTANT } from './constan
|
|
|
68
68
|
export { STRING_PROPERTY_API_INTERFACE_CONSTANT } from './constant/interface/api/property/string.constant.js';
|
|
69
69
|
export { WALLET_PROPERTY_API_INTERFACE_CONSTANT } from './constant/interface/api/property/wallet.constant.js';
|
|
70
70
|
export { NUMBER_CONSTANT } from './constant/number.constant.js';
|
|
71
|
+
export { GET_DEFAULT_STRING_FORMAT_PROPERTIES_API_UTILITY_CONSTANT } from './constant/utility/api/get-default-string-format-properties/constant.js';
|
|
71
72
|
export { DTO_UTILITY_CONSTANT } from './constant/utility/dto/constant.js';
|
|
72
73
|
export { DTO_GENERATE_CONSTANT } from './constant/utility/dto/generate.constant.js';
|
|
73
74
|
export { VALIDATOR_HAS_PAIRED_CUSTOM_SUFFIXES_FIELDS_CONSTANT } from './constant/validator-has-paired-custom-suffixes-fields.constant.js';
|
|
@@ -151,10 +152,20 @@ export { ApiControllerTransformData } from './utility/api/controller/transform-d
|
|
|
151
152
|
export { ApiControllerValidateRequest } from './utility/api/controller/validate-request.utility.js';
|
|
152
153
|
export { ApiControllerWriteDtoSwagger } from './utility/api/controller/write/dto-swagger.utility.js';
|
|
153
154
|
export { ApiControllerWriteMethod } from './utility/api/controller/write/method.utility.js';
|
|
155
|
+
export { ApiDiscriminatorValidateConfig } from './utility/api/discriminator/validate/config.utility.js';
|
|
154
156
|
export { FilterOrderByFromEntity } from './utility/api/filter-order-by-from-entity.utility.js';
|
|
155
|
-
export { GetDefaultStringFormatProperties } from './utility/api/get-default-string-format-properties
|
|
157
|
+
export { GetDefaultStringFormatProperties } from './utility/api/get-default-string-format-properties/utility.js';
|
|
158
|
+
export { ApiRouteApplyDtoMetadata } from './utility/api/route/apply-dto-metadata.utility.js';
|
|
159
|
+
export { ApiRouteBuildDiscriminatedDtoOpenApiSchema } from './utility/api/route/discriminator/build-open-api-schema.utility.js';
|
|
160
|
+
export { ApiRouteCreateDiscriminatedDtoValidationFailure } from './utility/api/route/discriminator/create-validation-failure.utility.js';
|
|
161
|
+
export { ApiRouteIsDiscriminatedDtoProperties } from './utility/api/route/discriminator/is-dto-properties.utility.js';
|
|
162
|
+
export { ApiRoutePrepareDiscriminatedDtoPayload } from './utility/api/route/discriminator/prepare-payload.utility.js';
|
|
163
|
+
export { ApiRouteResolveDiscriminatedDto } from './utility/api/route/discriminator/resolve-dto.utility.js';
|
|
164
|
+
export { ApiRouteValidateDiscriminatedDtoProperties } from './utility/api/route/discriminator/validate-dto-properties.utility.js';
|
|
165
|
+
export { ApiRouteCollectDtoWithRegisteredChildren } from './utility/api/route/dto/collect-with-registered-children.utility.js';
|
|
156
166
|
export { ApiRouteProjectRelationResponse } from './utility/api/route/response/project-relation.utility.js';
|
|
157
167
|
export { ApiRouteSerializeResponse } from './utility/api/route/response/serialize.utility.js';
|
|
168
|
+
export { ApiRouteValidationFlattenErrors } from './utility/api/route/validation/flatten-errors.utility.js';
|
|
158
169
|
export { AuthorizationDecisionApplyResult } from './utility/authorization/decision/apply-result.utility.js';
|
|
159
170
|
export { AuthorizationDecisionAttachResource } from './utility/authorization/decision/attach-resource.utility.js';
|
|
160
171
|
export { AuthorizationDecisionResolveFromRequest } from './utility/authorization/decision/resolve-from-request.utility.js';
|
|
@@ -200,7 +211,7 @@ export { IsEntityLiteral } from './utility/is/entity/literal.utility.js';
|
|
|
200
211
|
export { IsErrorOfType } from './utility/is/error-of-type.utility.js';
|
|
201
212
|
export { LoggerUtility } from './utility/logger.utility.js';
|
|
202
213
|
export { QueueAutoContextRetry } from './utility/queue-auto-context-retry.utility.js';
|
|
203
|
-
export { GetRegisteredAutoDtoChildren, RegisterAutoDtoChild } from './utility/register-auto-dto-child.utility.js';
|
|
214
|
+
export { GetRegisteredAutoDtoChildren, GetRegisteredAutoDtoChildrenRecursive, RegisterAutoDtoChild } from './utility/register-auto-dto-child.utility.js';
|
|
204
215
|
export { ResolveDecoratorContext } from './utility/resolve/decorator-context.utility.js';
|
|
205
216
|
export { ResolvePropertyEntity } from './utility/resolve/property-entity.utility.js';
|
|
206
217
|
export { WithResolvedPropertyEntity } from './utility/with-resolved-property-entity.utility.js';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -30,8 +30,7 @@ let CorrelationIDResponseBodyInterceptor = class CorrelationIDResponseBodyInterc
|
|
|
30
30
|
if (error instanceof ThrottlerException) {
|
|
31
31
|
const errorResponse = error.getResponse();
|
|
32
32
|
interceptorLogger.warn(`HTTP ${HttpStatus.TOO_MANY_REQUESTS} ${requestMethod} ${requestUrl} correlationID=${correlationId}`);
|
|
33
|
-
let customErrorResponse = {};
|
|
34
|
-
customErrorResponse.statusCode = HttpStatus.TOO_MANY_REQUESTS;
|
|
33
|
+
let customErrorResponse = { statusCode: HttpStatus.TOO_MANY_REQUESTS };
|
|
35
34
|
if (typeof errorResponse === "object" && errorResponse != null) {
|
|
36
35
|
customErrorResponse = { ...errorResponse };
|
|
37
36
|
}
|
|
@@ -86,12 +85,7 @@ let CorrelationIDResponseBodyInterceptor = class CorrelationIDResponseBodyInterc
|
|
|
86
85
|
}
|
|
87
86
|
const internalError = error;
|
|
88
87
|
const errorResponse = "Internal server error";
|
|
89
|
-
const customErrorResponse = {};
|
|
90
|
-
customErrorResponse.statusCode = HttpStatus.INTERNAL_SERVER_ERROR;
|
|
91
|
-
customErrorResponse.message = errorResponse;
|
|
92
|
-
customErrorResponse.error = "Internal server error";
|
|
93
|
-
customErrorResponse.timestamp = Date.now();
|
|
94
|
-
customErrorResponse.correlationID = correlationId;
|
|
88
|
+
const customErrorResponse = { correlationID: correlationId, error: "Internal server error", message: errorResponse, statusCode: HttpStatus.INTERNAL_SERVER_ERROR, timestamp: Date.now() };
|
|
95
89
|
const status = "getStatus" in internalError && typeof internalError.getStatus === "function" ? internalError.getStatus() : HttpStatus.INTERNAL_SERVER_ERROR;
|
|
96
90
|
throw new HttpException(customErrorResponse, status);
|
|
97
91
|
}
|