@elsikora/nestjs-crud-automator 1.5.0 → 1.5.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/class/api/service-base.class.js.map +1 -1
- package/dist/class/metadata-storage.class.js.map +1 -1
- package/dist/class/utility/dto/index.d.ts +1 -1
- package/dist/class/utility/dto/index.js +1 -1
- package/dist/class/utility/dto/property/factory/boolean.class.js +2 -1
- package/dist/class/utility/dto/property/factory/boolean.class.js.map +1 -1
- package/dist/class/utility/dto/property/factory/date.class.js +2 -1
- package/dist/class/utility/dto/property/factory/date.class.js.map +1 -1
- package/dist/class/utility/dto/property/factory/enum.class.d.ts +5 -0
- package/dist/class/utility/dto/property/factory/enum.class.js +16 -0
- package/dist/class/utility/dto/property/factory/enum.class.js.map +1 -0
- package/dist/class/utility/dto/property/factory/index.d.ts +4 -4
- package/dist/class/utility/dto/property/factory/index.js +4 -4
- package/dist/class/utility/dto/property/factory/index.js.map +1 -1
- package/dist/class/utility/dto/property/factory/number.class.js +2 -5
- package/dist/class/utility/dto/property/factory/number.class.js.map +1 -1
- package/dist/class/utility/dto/property/factory/object.class.js +5 -9
- package/dist/class/utility/dto/property/factory/object.class.js.map +1 -1
- package/dist/class/utility/dto/property/factory/relation.class.d.ts +1 -1
- package/dist/class/utility/dto/property/factory/relation.class.js +2 -6
- package/dist/class/utility/dto/property/factory/relation.class.js.map +1 -1
- package/dist/class/utility/dto/property/factory/string.class.js +2 -1
- package/dist/class/utility/dto/property/factory/string.class.js.map +1 -1
- package/dist/class/utility/dto/property/factory/uuid.class.js +2 -1
- package/dist/class/utility/dto/property/factory/uuid.class.js.map +1 -1
- package/dist/class/utility/dto/strategy/body.class.d.ts +1 -1
- package/dist/class/utility/dto/strategy/body.class.js +16 -4
- package/dist/class/utility/dto/strategy/body.class.js.map +1 -1
- package/dist/class/utility/dto/strategy/index.d.ts +1 -1
- package/dist/class/utility/dto/strategy/index.js +1 -1
- package/dist/class/utility/dto/strategy/index.js.map +1 -1
- package/dist/class/utility/dto/strategy/query.class.d.ts +1 -1
- package/dist/class/utility/dto/strategy/query.class.js +15 -3
- package/dist/class/utility/dto/strategy/query.class.js.map +1 -1
- package/dist/class/utility/dto/strategy/request.class.d.ts +1 -1
- package/dist/class/utility/dto/strategy/request.class.js +14 -7
- package/dist/class/utility/dto/strategy/request.class.js.map +1 -1
- package/dist/class/utility/dto/strategy/response.class.d.ts +1 -1
- package/dist/class/utility/dto/strategy/response.class.js +17 -2
- package/dist/class/utility/dto/strategy/response.class.js.map +1 -1
- package/dist/constant/decorator/api/index.d.ts +1 -1
- package/dist/constant/decorator/api/index.js +1 -1
- package/dist/constant/decorator/api/index.js.map +1 -1
- package/dist/constant/decorator/api/property-describe.constant.js.map +1 -1
- package/dist/constant/dto/index.d.ts +1 -1
- package/dist/constant/dto/index.js +1 -1
- package/dist/constant/dto/index.js.map +1 -1
- package/dist/constant/dto/transformer-value.constant.d.ts +5 -5
- package/dist/constant/index.d.ts +2 -2
- package/dist/constant/index.js +2 -2
- package/dist/constant/index.js.map +1 -1
- package/dist/constant/interface/api/index.d.ts +1 -1
- package/dist/constant/interface/api/index.js +1 -1
- package/dist/constant/interface/api/index.js.map +1 -1
- package/dist/constant/utility/dto/constant.d.ts +1 -1
- package/dist/constant/utility/dto/constant.js +2 -0
- package/dist/constant/utility/dto/constant.js.map +1 -1
- package/dist/decorator/api/controller.decorator.js.map +1 -1
- package/dist/decorator/api/function/create.decorator.js.map +1 -1
- package/dist/decorator/api/function/delete.decorator.js.map +1 -1
- package/dist/decorator/api/function/get-list.decorator.js.map +1 -1
- package/dist/decorator/api/function/get-many.decorator.js.map +1 -1
- package/dist/decorator/api/function/get.decorator.js.map +1 -1
- package/dist/decorator/api/function/index.d.ts +3 -3
- package/dist/decorator/api/function/index.js +3 -3
- package/dist/decorator/api/function/index.js.map +1 -1
- package/dist/decorator/api/function/update.decorator.js.map +1 -1
- package/dist/decorator/api/index.d.ts +2 -2
- package/dist/decorator/api/index.js +2 -2
- package/dist/decorator/api/index.js.map +1 -1
- package/dist/decorator/api/property/boolean.decorator.d.ts +2 -3
- package/dist/decorator/api/property/boolean.decorator.js +120 -33
- package/dist/decorator/api/property/boolean.decorator.js.map +1 -1
- package/dist/decorator/api/property/date.decorator.d.ts +2 -3
- package/dist/decorator/api/property/date.decorator.js +155 -51
- package/dist/decorator/api/property/date.decorator.js.map +1 -1
- package/dist/decorator/api/property/describe.decorator.js.map +1 -1
- package/dist/decorator/api/property/enum.decorator.d.ts +2 -0
- package/dist/decorator/api/property/enum.decorator.js +106 -0
- package/dist/decorator/api/property/enum.decorator.js.map +1 -0
- package/dist/decorator/api/property/index.d.ts +2 -3
- package/dist/decorator/api/property/index.js +2 -3
- package/dist/decorator/api/property/index.js.map +1 -1
- package/dist/decorator/api/property/number.decorator.d.ts +2 -3
- package/dist/decorator/api/property/number.decorator.js +129 -74
- package/dist/decorator/api/property/number.decorator.js.map +1 -1
- package/dist/decorator/api/property/object.decorator.d.ts +2 -3
- package/dist/decorator/api/property/object.decorator.js +51 -72
- package/dist/decorator/api/property/object.decorator.js.map +1 -1
- package/dist/decorator/api/property/string.decorator.d.ts +2 -3
- package/dist/decorator/api/property/string.decorator.js +131 -204
- package/dist/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/decorator/api/property/uuid.decorator.d.ts +2 -3
- package/dist/decorator/api/property/uuid.decorator.js +76 -34
- package/dist/decorator/api/property/uuid.decorator.js.map +1 -1
- package/dist/decorator/api/service.decorator.js.map +1 -1
- package/dist/enum/decorator/api/controller/index.d.ts +1 -1
- package/dist/enum/decorator/api/controller/index.js +1 -1
- package/dist/enum/decorator/api/controller/index.js.map +1 -1
- package/dist/enum/decorator/api/index.d.ts +3 -3
- package/dist/enum/decorator/api/index.js +3 -3
- package/dist/enum/decorator/api/index.js.map +1 -1
- package/dist/enum/decorator/api/property/data-type.enum.d.ts +0 -5
- package/dist/enum/decorator/api/property/data-type.enum.js +1 -20
- package/dist/enum/decorator/api/property/data-type.enum.js.map +1 -1
- package/dist/enum/decorator/api/property/{date-type.enum.d.ts → date/identifier.enum.d.ts} +1 -1
- package/dist/enum/decorator/api/property/date/identifier.enum.js +19 -0
- package/dist/enum/decorator/api/property/date/identifier.enum.js.map +1 -0
- package/dist/enum/decorator/api/property/date/index.d.ts +2 -0
- package/dist/enum/decorator/api/property/date/index.js +19 -0
- package/dist/enum/decorator/api/property/date/index.js.map +1 -0
- package/dist/enum/decorator/api/property/date/type.enum.d.ts +5 -0
- package/dist/enum/decorator/api/property/date/type.enum.js +11 -0
- package/dist/enum/decorator/api/property/date/type.enum.js.map +1 -0
- package/dist/enum/decorator/api/property/desribe-type.enum.d.ts +1 -0
- package/dist/enum/decorator/api/property/desribe-type.enum.js +1 -0
- package/dist/enum/decorator/api/property/desribe-type.enum.js.map +1 -1
- package/dist/enum/decorator/api/property/index.d.ts +3 -1
- package/dist/enum/decorator/api/property/index.js +3 -1
- package/dist/enum/decorator/api/property/index.js.map +1 -1
- package/dist/enum/decorator/api/property/number-type.enum.d.ts +4 -0
- package/dist/enum/decorator/api/property/number-type.enum.js +10 -0
- package/dist/enum/decorator/api/property/number-type.enum.js.map +1 -0
- package/dist/enum/decorator/api/property/string-type.enum.d.ts +11 -0
- package/dist/enum/decorator/api/property/string-type.enum.js +17 -0
- package/dist/enum/decorator/api/property/string-type.enum.js.map +1 -0
- package/dist/enum/filter-operation.enum.d.ts +108 -0
- package/dist/enum/filter-operation.enum.js +122 -0
- package/dist/enum/filter-operation.enum.js.map +1 -0
- package/dist/enum/index.d.ts +1 -1
- package/dist/enum/index.js +1 -1
- package/dist/enum/index.js.map +1 -1
- package/dist/enum/utility/error-string-action.enum.d.ts +1 -0
- package/dist/enum/utility/error-string-action.enum.js +1 -0
- package/dist/enum/utility/error-string-action.enum.js.map +1 -1
- package/dist/factory/api/controller.factory.js +63 -94
- package/dist/factory/api/controller.factory.js.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +5 -7
- package/dist/index.js.map +1 -1
- package/dist/interceptor/correlation-id-response-body.interceptor.js.map +1 -1
- package/dist/interface/class/dto/index.d.ts +1 -1
- package/dist/interface/class/dto/index.js +0 -15
- package/dist/interface/class/dto/index.js.map +1 -1
- package/dist/interface/class/index.d.ts +2 -2
- package/dist/interface/class/index.js +0 -16
- package/dist/interface/class/index.js.map +1 -1
- package/dist/interface/decorator/api/controller/index.d.ts +3 -3
- package/dist/interface/decorator/api/controller/index.js +0 -17
- package/dist/interface/decorator/api/controller/index.js.map +1 -1
- package/dist/interface/decorator/api/controller/properties/index.d.ts +1 -1
- package/dist/interface/decorator/api/controller/properties/index.js +0 -15
- package/dist/interface/decorator/api/controller/properties/index.js.map +1 -1
- package/dist/interface/decorator/api/controller/properties/route/authentication.interface.d.ts +1 -1
- package/dist/interface/decorator/api/controller/properties/route/base-response.interface.d.ts +1 -1
- package/dist/interface/decorator/api/controller/properties/route/base.interface.d.ts +1 -1
- package/dist/interface/decorator/api/controller/properties/route/index.d.ts +7 -7
- package/dist/interface/decorator/api/controller/properties/route/index.js +0 -21
- package/dist/interface/decorator/api/controller/properties/route/index.js.map +1 -1
- package/dist/interface/decorator/api/controller/properties/route/with-auto-dto.interface.d.ts +2 -4
- package/dist/interface/decorator/api/controller/properties/route/with-dto.interface.d.ts +3 -5
- package/dist/interface/decorator/api/function/create-executor-properties.interface.d.ts +1 -1
- package/dist/interface/decorator/api/function/delete-executor-properties.type.d.ts +1 -1
- package/dist/interface/decorator/api/function/get-executor-properties.interface.d.ts +1 -1
- package/dist/interface/decorator/api/function/get-list-executor-properties.type.d.ts +1 -1
- package/dist/interface/decorator/api/function/get-many-executor-properties.interface.d.ts +1 -1
- package/dist/interface/decorator/api/function/index.d.ts +5 -5
- package/dist/interface/decorator/api/function/index.js +0 -19
- package/dist/interface/decorator/api/function/index.js.map +1 -1
- package/dist/interface/decorator/api/function/update-executor-properties.type.d.ts +1 -1
- package/dist/interface/decorator/api/index.d.ts +5 -5
- package/dist/interface/decorator/api/index.js +0 -19
- package/dist/interface/decorator/api/index.js.map +1 -1
- package/dist/interface/decorator/api/method/index.d.ts +2 -2
- package/dist/interface/decorator/api/method/index.js +0 -16
- package/dist/interface/decorator/api/method/index.js.map +1 -1
- package/dist/interface/decorator/api/method/properties.interface.d.ts +2 -2
- package/dist/interface/decorator/index.d.ts +1 -1
- package/dist/interface/decorator/index.js +0 -15
- package/dist/interface/decorator/index.js.map +1 -1
- package/dist/interface/dto-generate-factory.interface.d.ts +1 -1
- package/dist/interface/entity/index.d.ts +2 -2
- package/dist/interface/entity/index.js +0 -16
- package/dist/interface/entity/index.js.map +1 -1
- package/dist/interface/entity/interface.d.ts +1 -1
- package/dist/interface/index.d.ts +8 -8
- package/dist/interface/index.js +0 -22
- package/dist/interface/index.js.map +1 -1
- package/dist/interface/utility/api/controller/index.d.ts +1 -1
- package/dist/interface/utility/api/controller/index.js +0 -15
- package/dist/interface/utility/api/controller/index.js.map +1 -1
- package/dist/interface/utility/api/index.d.ts +1 -1
- package/dist/interface/utility/api/index.js +0 -15
- package/dist/interface/utility/api/index.js.map +1 -1
- package/dist/interface/utility/index.d.ts +2 -2
- package/dist/interface/utility/index.js +0 -16
- package/dist/interface/utility/index.js.map +1 -1
- package/dist/package.json +13 -12
- package/dist/type/class/controller/index.d.ts +1 -1
- package/dist/type/class/controller/index.js +0 -15
- package/dist/type/class/controller/index.js.map +1 -1
- package/dist/type/class/index.d.ts +3 -3
- package/dist/type/class/index.js +0 -17
- package/dist/type/class/index.js.map +1 -1
- package/dist/type/decorator/api/controller/get-list-query.type.d.ts +4 -4
- package/dist/type/decorator/api/controller/index.d.ts +5 -5
- package/dist/type/decorator/api/controller/index.js +0 -19
- package/dist/type/decorator/api/controller/index.js.map +1 -1
- package/dist/type/decorator/api/controller/properties/index.d.ts +1 -1
- package/dist/type/decorator/api/controller/properties/index.js +0 -15
- package/dist/type/decorator/api/controller/properties/index.js.map +1 -1
- package/dist/type/decorator/api/controller/properties/route/base-request-relations.type.d.ts +6 -6
- package/dist/type/decorator/api/controller/properties/route/index.d.ts +3 -3
- package/dist/type/decorator/api/controller/properties/route/index.js +0 -17
- package/dist/type/decorator/api/controller/properties/route/index.js.map +1 -1
- package/dist/type/decorator/api/filter/index.d.ts +4 -4
- package/dist/type/decorator/api/filter/index.js +0 -18
- package/dist/type/decorator/api/filter/index.js.map +1 -1
- package/dist/type/decorator/api/filter/order-by.type.d.ts +1 -1
- package/dist/type/decorator/api/function/get-list-properties-where.type.d.ts +2 -2
- package/dist/type/decorator/api/function/index.d.ts +9 -9
- package/dist/type/decorator/api/function/index.js +0 -23
- package/dist/type/decorator/api/function/index.js.map +1 -1
- package/dist/type/decorator/api/function/properties.type.d.ts +1 -1
- package/dist/type/decorator/api/index.d.ts +5 -5
- package/dist/type/decorator/api/index.js +0 -19
- package/dist/type/decorator/api/index.js.map +1 -1
- package/dist/type/decorator/api/property/base/array/index.d.ts +2 -0
- package/dist/type/decorator/api/property/{base-properties.type.js → base/array/index.js} +1 -1
- package/dist/type/decorator/api/property/base/array/index.js.map +1 -0
- package/dist/type/decorator/api/property/base/array/optional-properties.type.d.ts +3 -0
- package/dist/type/decorator/api/property/{date-properties.interface.js → base/array/optional-properties.type.js} +1 -1
- package/dist/type/decorator/api/property/base/array/optional-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/base/array/required-properties.type.d.ts +6 -0
- package/dist/type/decorator/api/property/{uuid-properties.interface.js → base/array/required-properties.type.js} +1 -1
- package/dist/type/decorator/api/property/base/array/required-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/base/index.d.ts +4 -0
- package/dist/type/decorator/api/property/{object-properties.interface.js → base/index.js} +1 -1
- package/dist/type/decorator/api/property/base/index.js.map +1 -0
- package/dist/type/decorator/api/property/base/properties.type.d.ts +9 -0
- package/dist/type/decorator/api/property/base/properties.type.js +3 -0
- package/dist/type/decorator/api/property/base/properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/base/request-properties.type.d.ts +4 -0
- package/dist/type/decorator/api/property/base/request-properties.type.js +3 -0
- package/dist/type/decorator/api/property/base/request-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/base/response-properties.type.d.ts +4 -0
- package/dist/type/decorator/api/property/base/response-properties.type.js +3 -0
- package/dist/type/decorator/api/property/base/response-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/date-properties.type.d.ts +6 -0
- package/dist/type/decorator/api/property/date-properties.type.js +3 -0
- package/dist/type/decorator/api/property/date-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/array/index.d.ts +2 -2
- package/dist/type/decorator/api/property/describe/array/index.js +0 -16
- package/dist/type/decorator/api/property/describe/array/index.js.map +1 -1
- package/dist/type/decorator/api/property/describe/array/required-properties.type.d.ts +1 -1
- package/dist/type/decorator/api/property/describe/base-properties.type.d.ts +2 -9
- package/dist/type/decorator/api/property/describe/boolean-properties.type.d.ts +3 -3
- package/dist/type/decorator/api/property/describe/date-properties.type.d.ts +5 -4
- package/dist/type/decorator/api/property/describe/dto/body-properties.type.d.ts +1 -1
- package/dist/type/decorator/api/property/describe/dto/index.d.ts +5 -5
- package/dist/type/decorator/api/property/describe/dto/index.js +0 -19
- package/dist/type/decorator/api/property/describe/dto/index.js.map +1 -1
- package/dist/type/decorator/api/property/describe/dto/properties.type.d.ts +8 -5
- package/dist/type/decorator/api/property/describe/dto/query/index.d.ts +2 -2
- package/dist/type/decorator/api/property/describe/dto/query/index.js +0 -16
- package/dist/type/decorator/api/property/describe/dto/query/index.js.map +1 -1
- package/dist/type/decorator/api/property/describe/dto/query/properties.type.d.ts +1 -1
- package/dist/type/decorator/api/property/describe/dto/request-properties.type.d.ts +1 -1
- package/dist/type/decorator/api/property/describe/dto/response-properties.type.d.ts +1 -1
- package/dist/type/decorator/api/property/describe/enum-properties.type.d.ts +9 -0
- package/dist/type/decorator/api/property/describe/enum-properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/enum-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/example-properties.type.d.ts +5 -5
- package/dist/type/decorator/api/property/describe/index.d.ts +13 -12
- package/dist/type/decorator/api/property/describe/index.js +0 -26
- package/dist/type/decorator/api/property/describe/index.js.map +1 -1
- package/dist/type/decorator/api/property/describe/number-properties.type.d.ts +4 -5
- package/dist/type/decorator/api/property/describe/object-properties.type.d.ts +8 -6
- package/dist/type/decorator/api/property/describe/properties/base-dto-properties.type.d.ts +1 -1
- package/dist/type/decorator/api/property/describe/properties/base-properties.type.d.ts +1 -1
- package/dist/type/decorator/api/property/describe/properties/index.d.ts +2 -2
- package/dist/type/decorator/api/property/describe/properties/index.js +0 -16
- package/dist/type/decorator/api/property/describe/properties/index.js.map +1 -1
- package/dist/type/decorator/api/property/describe/properties.type.d.ts +2 -1
- package/dist/type/decorator/api/property/describe/relation-properties.type.d.ts +3 -3
- package/dist/type/decorator/api/property/describe/string-properties.type.d.ts +4 -5
- package/dist/type/decorator/api/property/describe/uuid-properties.type.d.ts +3 -3
- package/dist/type/decorator/api/property/enum-properties.type.d.ts +6 -0
- package/dist/type/decorator/api/property/enum-properties.type.js +3 -0
- package/dist/type/decorator/api/property/enum-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/index.d.ts +6 -7
- package/dist/type/decorator/api/property/index.js +0 -21
- package/dist/type/decorator/api/property/index.js.map +1 -1
- package/dist/type/decorator/api/property/number-properties.type.d.ts +9 -0
- package/dist/type/decorator/api/property/number-properties.type.js +3 -0
- package/dist/type/decorator/api/property/number-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/object-properties.type.d.ts +8 -0
- package/dist/type/decorator/api/property/object-properties.type.js +3 -0
- package/dist/type/decorator/api/property/object-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/string-properties.type.d.ts +9 -0
- package/dist/type/decorator/api/property/string-properties.type.js +3 -0
- package/dist/type/decorator/api/property/string-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/uuid-properties.type.d.ts +2 -0
- package/dist/type/decorator/api/property/uuid-properties.type.js +3 -0
- package/dist/type/decorator/api/property/uuid-properties.type.js.map +1 -0
- package/dist/type/decorator/api/service/index.d.ts +2 -2
- package/dist/type/decorator/api/service/index.js +0 -16
- package/dist/type/decorator/api/service/index.js.map +1 -1
- package/dist/type/decorator/index.d.ts +1 -1
- package/dist/type/decorator/index.js +0 -15
- package/dist/type/decorator/index.js.map +1 -1
- package/dist/type/factory/api/controller/index.d.ts +4 -4
- package/dist/type/factory/api/controller/index.js +0 -18
- package/dist/type/factory/api/controller/index.js.map +1 -1
- package/dist/type/factory/api/controller/method-map.type.d.ts +1 -1
- package/dist/type/factory/api/controller/target-methods.type.d.ts +2 -2
- package/dist/type/factory/api/index.d.ts +1 -1
- package/dist/type/factory/api/index.js +0 -15
- package/dist/type/factory/api/index.js.map +1 -1
- package/dist/type/factory/index.d.ts +1 -1
- package/dist/type/factory/index.js +0 -15
- package/dist/type/factory/index.js.map +1 -1
- package/dist/type/index.d.ts +5 -5
- package/dist/type/index.js +0 -19
- package/dist/type/index.js.map +1 -1
- package/dist/type/utility/api/controller/index.d.ts +1 -0
- package/dist/type/utility/api/controller/index.js +3 -0
- package/dist/type/utility/api/controller/index.js.map +1 -0
- package/dist/type/utility/api/controller/transform-data/data.type.d.ts +6 -0
- package/dist/type/utility/api/controller/transform-data/data.type.js +3 -0
- package/dist/type/utility/api/controller/transform-data/data.type.js.map +1 -0
- package/dist/type/utility/api/controller/transform-data/index.d.ts +3 -0
- package/dist/type/utility/api/controller/transform-data/index.js +3 -0
- package/dist/type/utility/api/controller/transform-data/index.js.map +1 -0
- package/dist/type/utility/api/controller/transform-data/is-validation-properties.type.d.ts +3 -0
- package/dist/type/{decorator/api/property/number-properties.interface.js → utility/api/controller/transform-data/is-validation-properties.type.js} +1 -1
- package/dist/type/utility/api/controller/transform-data/is-validation-properties.type.js.map +1 -0
- package/dist/type/utility/api/controller/transform-data/object-to-transform.type.d.ts +9 -0
- package/dist/type/utility/api/controller/transform-data/object-to-transform.type.js +3 -0
- package/dist/type/utility/api/controller/transform-data/object-to-transform.type.js.map +1 -0
- package/dist/type/utility/api/index.d.ts +1 -0
- package/dist/type/utility/api/index.js +3 -0
- package/dist/type/utility/api/index.js.map +1 -0
- package/dist/type/utility/dto/generate-is-allowed-combination.type.d.ts +1 -1
- package/dist/type/utility/dto/index.d.ts +2 -2
- package/dist/type/utility/dto/index.js +0 -16
- package/dist/type/utility/dto/index.js.map +1 -1
- package/dist/type/utility/filter-keys.type.d.ts +7 -0
- package/dist/type/utility/filter-keys.type.js +3 -0
- package/dist/type/utility/filter-keys.type.js.map +1 -0
- package/dist/type/utility/index.d.ts +7 -5
- package/dist/type/utility/index.js +0 -19
- package/dist/type/utility/index.js.map +1 -1
- package/dist/utility/api/controller/apply-metadata.utility.d.ts +1 -1
- package/dist/utility/api/controller/apply-metadata.utility.js.map +1 -1
- package/dist/utility/api/controller/get-list/index.d.ts +2 -0
- package/dist/utility/api/controller/get-list/index.js +19 -0
- package/dist/utility/api/controller/get-list/index.js.map +1 -0
- package/dist/utility/api/controller/get-list/transform-filter.utility.d.ts +2 -0
- package/dist/utility/api/controller/get-list/transform-filter.utility.js +22 -0
- package/dist/utility/api/controller/get-list/transform-filter.utility.js.map +1 -0
- package/dist/utility/api/controller/get-list/transform-operation.utility.d.ts +3 -0
- package/dist/utility/api/controller/get-list/transform-operation.utility.js +80 -0
- package/dist/utility/api/controller/get-list/transform-operation.utility.js.map +1 -0
- package/dist/utility/api/controller/get-method-name.utility.js.map +1 -1
- package/dist/utility/api/controller/get-primary-column.utility.d.ts +1 -1
- package/dist/utility/api/controller/get-primary-column.utility.js.map +1 -1
- package/dist/utility/api/controller/handle-request-relations.utility.d.ts +1 -1
- package/dist/utility/api/controller/handle-request-relations.utility.js.map +1 -1
- package/dist/utility/api/controller/index.d.ts +5 -3
- package/dist/utility/api/controller/index.js +5 -3
- package/dist/utility/api/controller/index.js.map +1 -1
- package/dist/utility/api/controller/transform-data.utility.d.ts +4 -0
- package/dist/utility/api/controller/{transform-request.utility.js → transform-data.utility.js} +25 -22
- package/dist/utility/api/controller/transform-data.utility.js.map +1 -0
- package/dist/utility/api/controller/validate-request.utility.js.map +1 -1
- package/dist/utility/api/controller/write-dto-swagger.utility.d.ts +1 -1
- package/dist/utility/api/controller/write-dto-swagger.utility.js.map +1 -1
- package/dist/utility/api/controller/write-method.utility.js.map +1 -1
- package/dist/utility/api/filter-order-by-from-entity.utility.d.ts +2 -2
- package/dist/utility/api/filter-order-by-from-entity.utility.js +1 -1
- package/dist/utility/api/filter-order-by-from-entity.utility.js.map +1 -1
- package/dist/utility/api/index.d.ts +1 -1
- package/dist/utility/api/index.js +1 -1
- package/dist/utility/api/index.js.map +1 -1
- package/dist/utility/dto/build-decorator.utility.d.ts +3 -3
- package/dist/utility/dto/build-decorator.utility.js +3 -3
- package/dist/utility/dto/build-decorator.utility.js.map +1 -1
- package/dist/utility/dto/generate-decorator.utility.js.map +1 -1
- package/dist/utility/dto/generate-exception.utility.js +14 -20
- package/dist/utility/dto/generate-exception.utility.js.map +1 -1
- package/dist/utility/dto/generate-filter-decorator.utility.d.ts +3 -0
- package/dist/utility/dto/generate-filter-decorator.utility.js +35 -0
- package/dist/utility/dto/generate-filter-decorator.utility.js.map +1 -0
- package/dist/utility/dto/generate-get-list-response.utility.d.ts +1 -1
- package/dist/utility/dto/generate-get-list-response.utility.js +14 -19
- package/dist/utility/dto/generate-get-list-response.utility.js.map +1 -1
- package/dist/utility/dto/generate-relation-response.utility.d.ts +2 -2
- package/dist/utility/dto/generate-relation-response.utility.js +1 -1
- package/dist/utility/dto/generate-relation-response.utility.js.map +1 -1
- package/dist/utility/dto/generate.utility.d.ts +2 -2
- package/dist/utility/dto/generate.utility.js +49 -19
- package/dist/utility/dto/generate.utility.js.map +1 -1
- package/dist/utility/dto/get-decorator-config.utility.js.map +1 -1
- package/dist/utility/dto/get-get-list-query-base-class.utility.d.ts +2 -2
- package/dist/utility/dto/get-get-list-query-base-class.utility.js +15 -14
- package/dist/utility/dto/get-get-list-query-base-class.utility.js.map +1 -1
- package/dist/utility/dto/handle-date-property.utility.d.ts +3 -3
- package/dist/utility/dto/handle-date-property.utility.js +8 -8
- package/dist/utility/dto/handle-date-property.utility.js.map +1 -1
- package/dist/utility/dto/index.d.ts +7 -7
- package/dist/utility/dto/index.js +7 -7
- package/dist/utility/dto/index.js.map +1 -1
- package/dist/utility/dto/is-property-exposed-for-guard.utility.d.ts +2 -2
- package/dist/utility/dto/is-property-exposed-for-guard.utility.js.map +1 -1
- package/dist/utility/dto/is-property-should-be-marked.utility.d.ts +2 -2
- package/dist/utility/dto/is-property-should-be-marked.utility.js +1 -1
- package/dist/utility/dto/is-property-should-be-marked.utility.js.map +1 -1
- package/dist/utility/dto/is-should-be-generated.utility.js +5 -5
- package/dist/utility/dto/is-should-be-generated.utility.js.map +1 -1
- package/dist/utility/dto/validate-property-config.utility.d.ts +1 -1
- package/dist/utility/dto/validate-property-config.utility.js +1 -9
- package/dist/utility/dto/validate-property-config.utility.js.map +1 -1
- package/dist/utility/generate-entity-information.utility.js.map +1 -1
- package/dist/utility/get-entity-columns.utility.js.map +1 -1
- package/dist/utility/index.d.ts +5 -5
- package/dist/utility/index.js +5 -5
- package/dist/utility/index.js.map +1 -1
- package/dist/validator/all-or-none-of-listed-properties.validator.d.ts +2 -2
- package/dist/validator/all-or-none-of-listed-properties.validator.js +5 -5
- package/dist/validator/all-or-none-of-listed-properties.validator.js.map +1 -1
- package/dist/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js.map +1 -1
- package/dist/validator/has-at-least-one-of-listed-properties.validator.js.map +1 -1
- package/dist/validator/has-at-least-one-property.validator.js.map +1 -1
- package/dist/validator/has-paired-custom-suffixes-fields.validator.d.ts +7 -0
- package/dist/validator/has-paired-custom-suffixes-fields.validator.js +220 -0
- package/dist/validator/has-paired-custom-suffixes-fields.validator.js.map +1 -0
- package/dist/validator/index.d.ts +1 -1
- package/dist/validator/index.js +1 -1
- package/dist/validator/index.js.map +1 -1
- package/dist/validator/is-regular-expression.validator.js.map +1 -1
- package/package.json +13 -12
- package/dist/decorator/api/property/wallet.decorator.d.ts +0 -3
- package/dist/decorator/api/property/wallet.decorator.js +0 -25
- package/dist/decorator/api/property/wallet.decorator.js.map +0 -1
- package/dist/enum/decorator/api/property/date-type.enum.js +0 -19
- package/dist/enum/decorator/api/property/date-type.enum.js.map +0 -1
- package/dist/type/decorator/api/property/base-properties.type.d.ts +0 -18
- package/dist/type/decorator/api/property/base-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/date-properties.interface.d.ts +0 -5
- package/dist/type/decorator/api/property/date-properties.interface.js.map +0 -1
- package/dist/type/decorator/api/property/number-properties.interface.d.ts +0 -9
- package/dist/type/decorator/api/property/number-properties.interface.js.map +0 -1
- package/dist/type/decorator/api/property/object-properties.interface.d.ts +0 -10
- package/dist/type/decorator/api/property/object-properties.interface.js.map +0 -1
- package/dist/type/decorator/api/property/string-properties.interface.d.ts +0 -10
- package/dist/type/decorator/api/property/string-properties.interface.js +0 -3
- package/dist/type/decorator/api/property/string-properties.interface.js.map +0 -1
- package/dist/type/decorator/api/property/uuid-properties.interface.d.ts +0 -8
- package/dist/type/decorator/api/property/uuid-properties.interface.js.map +0 -1
- package/dist/utility/api/controller/transform-request.utility.d.ts +0 -17
- package/dist/utility/api/controller/transform-request.utility.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-base.class.js","sourceRoot":"","sources":["../../../src/class/api/service-base.class.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"service-base.class.js","sourceRoot":"","sources":["../../../src/class/api/service-base.class.ts"],"names":[],"mappings":";;;AAIA,MAAa,cAAc;IAC1B,MAAM,CAAC,UAA2C;QACjD,KAAK,UAAU,CAAC;QAEhB,OAAO,OAAO,CAAC,OAAO,CAAC,EAAO,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,QAAuC;QAC7C,KAAK,QAAQ,CAAC;QAEd,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC1B,CAAC;IAED,GAAG,CAAC,UAAwC;QAC3C,KAAK,UAAU,CAAC;QAEhB,OAAO,OAAO,CAAC,OAAO,CAAC,EAAO,CAAC,CAAC;IACjC,CAAC;IAED,OAAO,CAAC,UAA4C;QACnD,KAAK,UAAU,CAAC;QAEhB,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAA6C,CAAC,CAAC;IAC5F,CAAC;IAED,OAAO,CAAC,UAA4C;QACnD,KAAK,UAAU,CAAC;QAEhB,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,QAAuC,EAAE,UAA2C;QAC1F,KAAK,QAAQ,CAAC;QACd,KAAK,UAAU,CAAC;QAEhB,OAAO,OAAO,CAAC,OAAO,CAAC,EAAO,CAAC,CAAC;IACjC,CAAC;CACD;AArCD,wCAqCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata-storage.class.js","sourceRoot":"","sources":["../../src/class/metadata-storage.class.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"metadata-storage.class.js","sourceRoot":"","sources":["../../src/class/metadata-storage.class.ts"],"names":[],"mappings":";;;AAGA,0CAAuE;AAEvE,MAAa,eAAe;IACnB,MAAM,CAAC,QAAQ,CAAkB;IAExB,OAAO,GAA6C,IAAI,GAAG,EAAuC,CAAC;IAE7G,MAAM,CAAC,WAAW;QACxB,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC;YAC/B,eAAe,CAAC,QAAQ,GAAG,IAAI,eAAe,EAAE,CAAC;QAClD,CAAC;QAED,OAAO,eAAe,CAAC,QAAQ,CAAC;IACjC,CAAC;IAEM,sBAAsB;QAC5B,MAAM,MAAM,GAA8B,EAAE,CAAC;QAE7C,KAAK,MAAM,CAAC,UAAU,EAAE,cAAc,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;YACnE,MAAM,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;QACzD,CAAC;QAED,OAAO,MAAM,CAAC;IACf,CAAC;IAKM,WAAW,CAAC,UAAkB,EAAE,YAAqB,EAAE,GAA0B;QACvF,MAAM,cAAc,GAA4C,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAE7F,IAAI,CAAC,cAAc;YAAE,OAAO,SAAS,CAAC;QAEtC,IAAI,CAAC,YAAY;YAAE,OAAO,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;QAC7D,MAAM,gBAAgB,GAA+B,cAAc,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAEtF,IAAI,CAAC,gBAAgB;YAAE,OAAO,SAAS,CAAC;QAExC,IAAI,CAAC,GAAG;YAAE,OAAO,gBAAgB,CAAC;QAElC,OAAO,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;IAEM,WAAW,CAAiC,UAAkB,EAAE,YAAoB,EAAE,GAAM,EAAE,KAAwB;QAC5H,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC;YACnC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;QACzC,CAAC;QACD,MAAM,cAAc,GAAgC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAE,CAAC;QAElF,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC;YACvC,cAAc,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC,mDAAwC,CAAC,sBAAsB,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QAC7G,CAAC;QAED,MAAM,gBAAgB,GAAmB,cAAc,CAAC,GAAG,CAAC,YAAY,CAAE,CAAC;QAC3E,gBAAgB,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IAC/B,CAAC;CACD;AAtDD,0CAsDC"}
|
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./strategy"), exports);
|
|
18
17
|
__exportStar(require("./property"), exports);
|
|
18
|
+
__exportStar(require("./strategy"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -4,10 +4,11 @@ exports.DtoPropertyFactoryBoolean = void 0;
|
|
|
4
4
|
const boolean_decorator_1 = require("../../../../../decorator/api/property/boolean.decorator");
|
|
5
5
|
class DtoPropertyFactoryBoolean {
|
|
6
6
|
create(metadata, entity, config) {
|
|
7
|
+
const { type, ...restProperties } = metadata;
|
|
7
8
|
return (0, boolean_decorator_1.ApiPropertyBoolean)({
|
|
8
|
-
description: metadata.description,
|
|
9
9
|
entity,
|
|
10
10
|
...config,
|
|
11
|
+
...restProperties,
|
|
11
12
|
});
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean.class.js","sourceRoot":"","sources":["../../../../../../src/class/utility/dto/property/factory/boolean.class.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"boolean.class.js","sourceRoot":"","sources":["../../../../../../src/class/utility/dto/property/factory/boolean.class.ts"],"names":[],"mappings":";;;AAGA,+FAA6F;AAE7F,MAAa,yBAAyB;IACrC,MAAM,CAAC,QAA+C,EAAE,MAAqB,EAAE,MAAyC;QACvH,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,EAAE,GAA0C,QAAQ,CAAC;QAEpF,OAAO,IAAA,sCAAkB,EAAC;YACzB,MAAM;YACN,GAAG,MAAM;YACT,GAAG,cAAc;SACjB,CAAC,CAAC;IACJ,CAAC;CACD;AAVD,8DAUC"}
|
|
@@ -4,10 +4,11 @@ exports.DtoPropertyFactoryDate = void 0;
|
|
|
4
4
|
const date_decorator_1 = require("../../../../../decorator/api/property/date.decorator");
|
|
5
5
|
class DtoPropertyFactoryDate {
|
|
6
6
|
create(metadata, entity, config) {
|
|
7
|
+
const { type, ...restProperties } = metadata;
|
|
7
8
|
return (0, date_decorator_1.ApiPropertyDate)({
|
|
8
9
|
entity,
|
|
9
10
|
...config,
|
|
10
|
-
|
|
11
|
+
...restProperties,
|
|
11
12
|
});
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.class.js","sourceRoot":"","sources":["../../../../../../src/class/utility/dto/property/factory/date.class.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"date.class.js","sourceRoot":"","sources":["../../../../../../src/class/utility/dto/property/factory/date.class.ts"],"names":[],"mappings":";;;AAGA,yFAAuF;AAEvF,MAAa,sBAAsB;IAClC,MAAM,CAAC,QAA4C,EAAE,MAAqB,EAAE,MAAyC;QACpH,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,EAAE,GAAuC,QAAQ,CAAC;QAEjF,OAAO,IAAA,gCAAe,EAAC;YACtB,MAAM;YACN,GAAG,MAAM;YACT,GAAG,cAAc;SACjB,CAAC,CAAC;IACJ,CAAC;CACD;AAVD,wDAUC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IApiEntity, IDtoGenerateFactory } from "../../../../../interface";
|
|
2
|
+
import type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeEnumProperties } from "../../../../../type";
|
|
3
|
+
export declare class DtoPropertyFactoryEnum<E> implements IDtoGenerateFactory<E> {
|
|
4
|
+
create(metadata: TApiPropertyDescribeEnumProperties, entity: IApiEntity<E>, config: TApiPropertyDescribeDtoProperties): PropertyDecorator;
|
|
5
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DtoPropertyFactoryEnum = void 0;
|
|
4
|
+
const enum_decorator_1 = require("../../../../../decorator/api/property/enum.decorator");
|
|
5
|
+
class DtoPropertyFactoryEnum {
|
|
6
|
+
create(metadata, entity, config) {
|
|
7
|
+
const { type, ...restProperties } = metadata;
|
|
8
|
+
return (0, enum_decorator_1.ApiPropertyEnum)({
|
|
9
|
+
entity,
|
|
10
|
+
...config,
|
|
11
|
+
...restProperties,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.DtoPropertyFactoryEnum = DtoPropertyFactoryEnum;
|
|
16
|
+
//# sourceMappingURL=enum.class.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enum.class.js","sourceRoot":"","sources":["../../../../../../src/class/utility/dto/property/factory/enum.class.ts"],"names":[],"mappings":";;;AAGA,yFAAuF;AAEvF,MAAa,sBAAsB;IAClC,MAAM,CAAC,QAA4C,EAAE,MAAqB,EAAE,MAAyC;QACpH,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,EAAE,GAAuC,QAAQ,CAAC;QAEjF,OAAO,IAAA,gCAAe,EAAC;YACtB,MAAM;YACN,GAAG,MAAM;YACT,GAAG,cAAc;SACjB,CAAC,CAAC;IACJ,CAAC;CACD;AAVD,wDAUC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./uuid.class";
|
|
2
|
-
export * from "./string.class";
|
|
3
|
-
export * from "./object.class";
|
|
4
|
-
export * from "./number.class";
|
|
5
1
|
export * from "./boolean.class";
|
|
6
2
|
export * from "./date.class";
|
|
3
|
+
export * from "./number.class";
|
|
4
|
+
export * from "./object.class";
|
|
5
|
+
export * from "./string.class";
|
|
6
|
+
export * from "./uuid.class";
|
|
@@ -14,10 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./uuid.class"), exports);
|
|
18
|
-
__exportStar(require("./string.class"), exports);
|
|
19
|
-
__exportStar(require("./object.class"), exports);
|
|
20
|
-
__exportStar(require("./number.class"), exports);
|
|
21
17
|
__exportStar(require("./boolean.class"), exports);
|
|
22
18
|
__exportStar(require("./date.class"), exports);
|
|
19
|
+
__exportStar(require("./number.class"), exports);
|
|
20
|
+
__exportStar(require("./object.class"), exports);
|
|
21
|
+
__exportStar(require("./string.class"), exports);
|
|
22
|
+
__exportStar(require("./uuid.class"), exports);
|
|
23
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/class/utility/dto/property/factory/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,iDAA+B;AAC/B,iDAA+B;AAC/B,iDAA+B;AAC/B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/class/utility/dto/property/factory/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,+CAA6B;AAC7B,iDAA+B;AAC/B,iDAA+B;AAC/B,iDAA+B;AAC/B,+CAA6B"}
|
|
@@ -4,14 +4,11 @@ exports.DtoPropertyFactoryNumber = void 0;
|
|
|
4
4
|
const number_decorator_1 = require("../../../../../decorator/api/property/number.decorator");
|
|
5
5
|
class DtoPropertyFactoryNumber {
|
|
6
6
|
create(metadata, entity, config) {
|
|
7
|
+
const { type, ...restProperties } = metadata;
|
|
7
8
|
return (0, number_decorator_1.ApiPropertyNumber)({
|
|
8
|
-
description: metadata.description,
|
|
9
9
|
entity,
|
|
10
10
|
...config,
|
|
11
|
-
|
|
12
|
-
minimum: metadata.minimum,
|
|
13
|
-
multipleOf: metadata.multipleOf,
|
|
14
|
-
type: metadata.dataType,
|
|
11
|
+
...restProperties,
|
|
15
12
|
});
|
|
16
13
|
}
|
|
17
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.class.js","sourceRoot":"","sources":["../../../../../../src/class/utility/dto/property/factory/number.class.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"number.class.js","sourceRoot":"","sources":["../../../../../../src/class/utility/dto/property/factory/number.class.ts"],"names":[],"mappings":";;;AAGA,6FAA2F;AAE3F,MAAa,wBAAwB;IACpC,MAAM,CAAC,QAA8C,EAAE,MAAqB,EAAE,MAAyC;QACtH,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,EAAE,GAAyC,QAAQ,CAAC;QAEnF,OAAO,IAAA,oCAAiB,EAAC;YACxB,MAAM;YACN,GAAG,MAAM;YACT,GAAG,cAAc;SACjB,CAAC,CAAC;IACJ,CAAC;CACD;AAVD,4DAUC"}
|
|
@@ -4,17 +4,13 @@ exports.DtoPropertyFactoryObject = void 0;
|
|
|
4
4
|
const object_decorator_1 = require("../../../../../decorator/api/property/object.decorator");
|
|
5
5
|
class DtoPropertyFactoryObject {
|
|
6
6
|
create(metadata, entity, config) {
|
|
7
|
-
const
|
|
7
|
+
const { dataType, type, ...restProperties } = metadata;
|
|
8
|
+
return (0, object_decorator_1.ApiPropertyObject)({
|
|
8
9
|
entity,
|
|
10
|
+
type: dataType,
|
|
9
11
|
...config,
|
|
10
|
-
...
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
if (metadata.enum) {
|
|
14
|
-
properties.enum = metadata.enum;
|
|
15
|
-
properties.enumName = metadata.enumName;
|
|
16
|
-
}
|
|
17
|
-
return (0, object_decorator_1.ApiPropertyObject)(properties);
|
|
12
|
+
...restProperties,
|
|
13
|
+
});
|
|
18
14
|
}
|
|
19
15
|
}
|
|
20
16
|
exports.DtoPropertyFactoryObject = DtoPropertyFactoryObject;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.class.js","sourceRoot":"","sources":["../../../../../../src/class/utility/dto/property/factory/object.class.ts"],"names":[],"mappings":";;;AAGA,6FAA2F;AAE3F,MAAa,wBAAwB;IACpC,MAAM,CAAC,QAA8C,EAAE,MAAqB,EAAE,MAAyC;QACtH,MAAM,
|
|
1
|
+
{"version":3,"file":"object.class.js","sourceRoot":"","sources":["../../../../../../src/class/utility/dto/property/factory/object.class.ts"],"names":[],"mappings":";;;AAGA,6FAA2F;AAE3F,MAAa,wBAAwB;IACpC,MAAM,CAAC,QAA8C,EAAE,MAAqB,EAAE,MAAyC;QACtH,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,cAAc,EAAE,GAAyC,QAAQ,CAAC;QAE7F,OAAO,IAAA,oCAAiB,EAAC;YACxB,MAAM;YACN,IAAI,EAAE,QAAQ;YACd,GAAG,MAAM;YACT,GAAG,cAAc;SACjB,CAAC,CAAC;IACJ,CAAC;CACD;AAXD,4DAWC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EApiDtoType } from "../../../../../enum";
|
|
2
1
|
import type { EApiRouteType } from "../../../../../enum";
|
|
3
2
|
import type { IApiEntity, IDtoGenerateFactory } from "../../../../../interface";
|
|
4
3
|
import type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeUuidProperties } from "../../../../../type";
|
|
4
|
+
import { EApiDtoType } from "../../../../../enum";
|
|
5
5
|
export declare class DtoPropertyFactoryRelation<E> implements IDtoGenerateFactory<E> {
|
|
6
6
|
create(metadata: TApiPropertyDescribeUuidProperties, entity: IApiEntity<E>, config: TApiPropertyDescribeDtoProperties, method: EApiRouteType, dtoType: EApiDtoType, propertyName: string): PropertyDecorator;
|
|
7
7
|
}
|
|
@@ -7,12 +7,8 @@ const enum_1 = require("../../../../../enum");
|
|
|
7
7
|
const generate_relation_response_utility_1 = require("../../../../../utility/dto/generate-relation-response.utility");
|
|
8
8
|
class DtoPropertyFactoryRelation {
|
|
9
9
|
create(metadata, entity, config, method, dtoType, propertyName) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
else {
|
|
14
|
-
return (0, uuid_decorator_1.ApiPropertyUUID)({ description: metadata.description, entity, ...config });
|
|
15
|
-
}
|
|
10
|
+
const { type, ...restProperties } = metadata;
|
|
11
|
+
return dtoType === enum_1.EApiDtoType.RESPONSE ? (0, object_decorator_1.ApiPropertyObject)({ description: metadata.description, entity, isArray: false, type: (0, generate_relation_response_utility_1.DtoGenerateRelationResponse)(entity, method, dtoType, propertyName), ...config, ...restProperties }) : (0, uuid_decorator_1.ApiPropertyUUID)({ description: metadata.description, entity, isArray: false, ...config, ...restProperties });
|
|
16
12
|
}
|
|
17
13
|
}
|
|
18
14
|
exports.DtoPropertyFactoryRelation = DtoPropertyFactoryRelation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relation.class.js","sourceRoot":"","sources":["../../../../../../src/class/utility/dto/property/factory/relation.class.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"relation.class.js","sourceRoot":"","sources":["../../../../../../src/class/utility/dto/property/factory/relation.class.ts"],"names":[],"mappings":";;;AAIA,6FAA2F;AAC3F,yFAAuF;AACvF,8CAAkD;AAClD,sHAA4G;AAE5G,MAAa,0BAA0B;IACtC,MAAM,CAAC,QAA4C,EAAE,MAAqB,EAAE,MAAyC,EAAE,MAAqB,EAAE,OAAoB,EAAE,YAAoB;QACvL,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,EAAE,GAAuC,QAAQ,CAAC;QAEjF,OAAO,OAAO,KAAK,kBAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAA,oCAAiB,EAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAA,gEAA2B,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,CAAC,EAAE,GAAG,MAAM,EAAE,GAAG,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,IAAA,gCAAe,EAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,MAAM,EAAE,GAAG,cAAc,EAAE,CAAC,CAAC;IACnV,CAAC;CACD;AAND,gEAMC"}
|
|
@@ -4,10 +4,11 @@ exports.DtoPropertyFactoryString = void 0;
|
|
|
4
4
|
const string_decorator_1 = require("../../../../../decorator/api/property/string.decorator");
|
|
5
5
|
class DtoPropertyFactoryString {
|
|
6
6
|
create(metadata, entity, config) {
|
|
7
|
+
const { type, ...restProperties } = metadata;
|
|
7
8
|
return (0, string_decorator_1.ApiPropertyString)({
|
|
8
9
|
entity,
|
|
9
10
|
...config,
|
|
10
|
-
...
|
|
11
|
+
...restProperties,
|
|
11
12
|
});
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.class.js","sourceRoot":"","sources":["../../../../../../src/class/utility/dto/property/factory/string.class.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"string.class.js","sourceRoot":"","sources":["../../../../../../src/class/utility/dto/property/factory/string.class.ts"],"names":[],"mappings":";;;AAGA,6FAA2F;AAE3F,MAAa,wBAAwB;IACpC,MAAM,CAAC,QAA8C,EAAE,MAAqB,EAAE,MAAyC;QACtH,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,EAAE,GAAyC,QAAQ,CAAC;QAEnF,OAAO,IAAA,oCAAiB,EAAC;YACxB,MAAM;YACN,GAAG,MAAM;YACT,GAAG,cAAc;SACjB,CAAC,CAAC;IACJ,CAAC;CACD;AAVD,4DAUC"}
|
|
@@ -4,7 +4,8 @@ exports.DtoPropertyFactoryUuid = void 0;
|
|
|
4
4
|
const uuid_decorator_1 = require("../../../../../decorator/api/property/uuid.decorator");
|
|
5
5
|
class DtoPropertyFactoryUuid {
|
|
6
6
|
create(metadata, entity, config) {
|
|
7
|
-
|
|
7
|
+
const { type, ...restProperties } = metadata;
|
|
8
|
+
return (0, uuid_decorator_1.ApiPropertyUUID)({ entity, ...config, ...restProperties });
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
exports.DtoPropertyFactoryUuid = DtoPropertyFactoryUuid;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.class.js","sourceRoot":"","sources":["../../../../../../src/class/utility/dto/property/factory/uuid.class.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"uuid.class.js","sourceRoot":"","sources":["../../../../../../src/class/utility/dto/property/factory/uuid.class.ts"],"names":[],"mappings":";;;AAGA,yFAAuF;AAEvF,MAAa,sBAAsB;IAClC,MAAM,CAAC,QAA4C,EAAE,MAAqB,EAAE,MAAyC;QACpH,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,EAAE,GAAuC,QAAQ,CAAC;QAEjF,OAAO,IAAA,gCAAe,EAAC,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,cAAc,EAAE,CAAC,CAAC;IAClE,CAAC;CACD;AAND,wDAMC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EApiRouteType } from "../../../../enum";
|
|
2
1
|
import type { IDtoStrategy } from "../../../../interface";
|
|
3
2
|
import type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeProperties } from "../../../../type";
|
|
3
|
+
import { EApiRouteType } from "../../../../enum";
|
|
4
4
|
export declare class DtoStrategyBody implements IDtoStrategy {
|
|
5
5
|
getDecoratorConfig(method: EApiRouteType, _metadata: TApiPropertyDescribeProperties): TApiPropertyDescribeDtoProperties;
|
|
6
6
|
}
|
|
@@ -5,14 +5,26 @@ const enum_1 = require("../../../../enum");
|
|
|
5
5
|
class DtoStrategyBody {
|
|
6
6
|
getDecoratorConfig(method, _metadata) {
|
|
7
7
|
switch (method) {
|
|
8
|
-
case enum_1.EApiRouteType.
|
|
9
|
-
return {
|
|
8
|
+
case enum_1.EApiRouteType.CREATE: {
|
|
9
|
+
return { isRequired: false };
|
|
10
|
+
}
|
|
11
|
+
case enum_1.EApiRouteType.DELETE: {
|
|
12
|
+
return { isRequired: false };
|
|
13
|
+
}
|
|
14
|
+
case enum_1.EApiRouteType.GET: {
|
|
15
|
+
return { isRequired: false };
|
|
16
|
+
}
|
|
17
|
+
case enum_1.EApiRouteType.GET_LIST: {
|
|
18
|
+
return { isRequired: false };
|
|
10
19
|
}
|
|
11
20
|
case enum_1.EApiRouteType.PARTIAL_UPDATE: {
|
|
12
|
-
return {
|
|
21
|
+
return { isRequired: false };
|
|
22
|
+
}
|
|
23
|
+
case enum_1.EApiRouteType.UPDATE: {
|
|
24
|
+
return { isRequired: true };
|
|
13
25
|
}
|
|
14
26
|
default: {
|
|
15
|
-
return {
|
|
27
|
+
return { isRequired: false };
|
|
16
28
|
}
|
|
17
29
|
}
|
|
18
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"body.class.js","sourceRoot":"","sources":["../../../../../src/class/utility/dto/strategy/body.class.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"body.class.js","sourceRoot":"","sources":["../../../../../src/class/utility/dto/strategy/body.class.ts"],"names":[],"mappings":";;;AAGA,2CAAiD;AAEjD,MAAa,eAAe;IAC3B,kBAAkB,CAAC,MAAqB,EAAE,SAAyC;QAClF,QAAQ,MAAM,EAAE,CAAC;YAChB,KAAK,oBAAa,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC3B,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;YAC9B,CAAC;YAED,KAAK,oBAAa,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC3B,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;YAC9B,CAAC;YAED,KAAK,oBAAa,CAAC,GAAG,CAAC,CAAC,CAAC;gBACxB,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;YAC9B,CAAC;YAED,KAAK,oBAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;gBAC7B,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;YAC9B,CAAC;YAED,KAAK,oBAAa,CAAC,cAAc,CAAC,CAAC,CAAC;gBACnC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;YAC9B,CAAC;YAED,KAAK,oBAAa,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC3B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;YAC7B,CAAC;YAED,OAAO,CAAC,CAAC,CAAC;gBACT,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;YAC9B,CAAC;QACF,CAAC;IACF,CAAC;CACD;AAhCD,0CAgCC"}
|
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./body.class"), exports);
|
|
18
|
-
__exportStar(require("./response.class"), exports);
|
|
19
18
|
__exportStar(require("./query.class"), exports);
|
|
20
19
|
__exportStar(require("./request.class"), exports);
|
|
20
|
+
__exportStar(require("./response.class"), exports);
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/class/utility/dto/strategy/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/class/utility/dto/strategy/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,gDAA8B;AAC9B,kDAAgC;AAChC,mDAAiC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EApiRouteType } from "../../../../enum";
|
|
2
1
|
import type { IDtoStrategy } from "../../../../interface";
|
|
3
2
|
import type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeProperties } from "../../../../type";
|
|
3
|
+
import { EApiRouteType } from "../../../../enum";
|
|
4
4
|
export declare class DtoStrategyQuery implements IDtoStrategy {
|
|
5
5
|
getDecoratorConfig(method: EApiRouteType, _metadata: TApiPropertyDescribeProperties): TApiPropertyDescribeDtoProperties;
|
|
6
6
|
}
|
|
@@ -5,11 +5,23 @@ const enum_1 = require("../../../../enum");
|
|
|
5
5
|
class DtoStrategyQuery {
|
|
6
6
|
getDecoratorConfig(method, _metadata) {
|
|
7
7
|
switch (method) {
|
|
8
|
+
case enum_1.EApiRouteType.CREATE: {
|
|
9
|
+
return { isRequired: false };
|
|
10
|
+
}
|
|
11
|
+
case enum_1.EApiRouteType.DELETE: {
|
|
12
|
+
return { isRequired: false };
|
|
13
|
+
}
|
|
14
|
+
case enum_1.EApiRouteType.GET: {
|
|
15
|
+
return { isRequired: false };
|
|
16
|
+
}
|
|
8
17
|
case enum_1.EApiRouteType.GET_LIST: {
|
|
9
|
-
return {
|
|
18
|
+
return { isRequired: false };
|
|
19
|
+
}
|
|
20
|
+
case enum_1.EApiRouteType.PARTIAL_UPDATE: {
|
|
21
|
+
return { isRequired: false };
|
|
10
22
|
}
|
|
11
|
-
|
|
12
|
-
return {
|
|
23
|
+
case enum_1.EApiRouteType.UPDATE: {
|
|
24
|
+
return { isRequired: false };
|
|
13
25
|
}
|
|
14
26
|
}
|
|
15
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.class.js","sourceRoot":"","sources":["../../../../../src/class/utility/dto/strategy/query.class.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"query.class.js","sourceRoot":"","sources":["../../../../../src/class/utility/dto/strategy/query.class.ts"],"names":[],"mappings":";;;AAGA,2CAAiD;AAEjD,MAAa,gBAAgB;IAC5B,kBAAkB,CAAC,MAAqB,EAAE,SAAyC;QAClF,QAAQ,MAAM,EAAE,CAAC;YAChB,KAAK,oBAAa,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC3B,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;YAC9B,CAAC;YAED,KAAK,oBAAa,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC3B,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;YAC9B,CAAC;YAED,KAAK,oBAAa,CAAC,GAAG,CAAC,CAAC,CAAC;gBACxB,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;YAC9B,CAAC;YAED,KAAK,oBAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;gBAC7B,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;YAC9B,CAAC;YAED,KAAK,oBAAa,CAAC,cAAc,CAAC,CAAC,CAAC;gBACnC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;YAC9B,CAAC;YAED,KAAK,oBAAa,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC3B,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;YAC9B,CAAC;QACF,CAAC;IACF,CAAC;CACD;AA5BD,4CA4BC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EApiRouteType } from "../../../../enum";
|
|
2
1
|
import type { IDtoStrategy } from "../../../../interface";
|
|
3
2
|
import type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeProperties } from "../../../../type";
|
|
3
|
+
import { EApiRouteType } from "../../../../enum";
|
|
4
4
|
export declare class DtoStrategyRequest implements IDtoStrategy {
|
|
5
5
|
getDecoratorConfig(method: EApiRouteType, _metadata: TApiPropertyDescribeProperties): TApiPropertyDescribeDtoProperties;
|
|
6
6
|
}
|
|
@@ -5,19 +5,26 @@ const enum_1 = require("../../../../enum");
|
|
|
5
5
|
class DtoStrategyRequest {
|
|
6
6
|
getDecoratorConfig(method, _metadata) {
|
|
7
7
|
switch (method) {
|
|
8
|
-
case enum_1.EApiRouteType.
|
|
8
|
+
case enum_1.EApiRouteType.CREATE: {
|
|
9
|
+
return { isRequired: true };
|
|
10
|
+
}
|
|
9
11
|
case enum_1.EApiRouteType.DELETE: {
|
|
10
|
-
return {
|
|
12
|
+
return { isRequired: true };
|
|
11
13
|
}
|
|
12
|
-
case enum_1.EApiRouteType.
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
case enum_1.EApiRouteType.GET: {
|
|
15
|
+
return { isRequired: true };
|
|
16
|
+
}
|
|
17
|
+
case enum_1.EApiRouteType.GET_LIST: {
|
|
18
|
+
return { isRequired: true };
|
|
15
19
|
}
|
|
16
20
|
case enum_1.EApiRouteType.PARTIAL_UPDATE: {
|
|
17
|
-
return {
|
|
21
|
+
return { isRequired: true };
|
|
22
|
+
}
|
|
23
|
+
case enum_1.EApiRouteType.UPDATE: {
|
|
24
|
+
return { isRequired: true };
|
|
18
25
|
}
|
|
19
26
|
default: {
|
|
20
|
-
return {
|
|
27
|
+
return { isRequired: true };
|
|
21
28
|
}
|
|
22
29
|
}
|
|
23
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.class.js","sourceRoot":"","sources":["../../../../../src/class/utility/dto/strategy/request.class.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"request.class.js","sourceRoot":"","sources":["../../../../../src/class/utility/dto/strategy/request.class.ts"],"names":[],"mappings":";;;AAGA,2CAAiD;AAEjD,MAAa,kBAAkB;IAC9B,kBAAkB,CAAC,MAAqB,EAAE,SAAyC;QAClF,QAAQ,MAAM,EAAE,CAAC;YAChB,KAAK,oBAAa,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC3B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;YAC7B,CAAC;YAED,KAAK,oBAAa,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC3B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;YAC7B,CAAC;YAED,KAAK,oBAAa,CAAC,GAAG,CAAC,CAAC,CAAC;gBACxB,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;YAC7B,CAAC;YAED,KAAK,oBAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;gBAC7B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;YAC7B,CAAC;YAED,KAAK,oBAAa,CAAC,cAAc,CAAC,CAAC,CAAC;gBACnC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;YAC7B,CAAC;YAED,KAAK,oBAAa,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC3B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;YAC7B,CAAC;YAED,OAAO,CAAC,CAAC,CAAC;gBACT,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;YAC7B,CAAC;QACF,CAAC;IACF,CAAC;CACD;AAhCD,gDAgCC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EApiRouteType } from "../../../../enum";
|
|
2
1
|
import type { IDtoStrategy } from "../../../../interface";
|
|
3
2
|
import type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeProperties } from "../../../../type";
|
|
3
|
+
import { EApiRouteType } from "../../../../enum";
|
|
4
4
|
export declare class DtoStrategyResponse implements IDtoStrategy {
|
|
5
5
|
getDecoratorConfig(method: EApiRouteType, _metadata: TApiPropertyDescribeProperties): TApiPropertyDescribeDtoProperties;
|
|
6
6
|
}
|
|
@@ -5,11 +5,26 @@ const enum_1 = require("../../../../enum");
|
|
|
5
5
|
class DtoStrategyResponse {
|
|
6
6
|
getDecoratorConfig(method, _metadata) {
|
|
7
7
|
switch (method) {
|
|
8
|
+
case enum_1.EApiRouteType.CREATE: {
|
|
9
|
+
return { isResponse: true };
|
|
10
|
+
}
|
|
8
11
|
case enum_1.EApiRouteType.DELETE: {
|
|
9
|
-
return {
|
|
12
|
+
return { isResponse: true };
|
|
13
|
+
}
|
|
14
|
+
case enum_1.EApiRouteType.GET: {
|
|
15
|
+
return { isResponse: true };
|
|
16
|
+
}
|
|
17
|
+
case enum_1.EApiRouteType.GET_LIST: {
|
|
18
|
+
return { isExpose: true, isResponse: true };
|
|
19
|
+
}
|
|
20
|
+
case enum_1.EApiRouteType.PARTIAL_UPDATE: {
|
|
21
|
+
return { isResponse: true };
|
|
22
|
+
}
|
|
23
|
+
case enum_1.EApiRouteType.UPDATE: {
|
|
24
|
+
return { isResponse: true };
|
|
10
25
|
}
|
|
11
26
|
default: {
|
|
12
|
-
return {
|
|
27
|
+
return { isResponse: true };
|
|
13
28
|
}
|
|
14
29
|
}
|
|
15
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response.class.js","sourceRoot":"","sources":["../../../../../src/class/utility/dto/strategy/response.class.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"response.class.js","sourceRoot":"","sources":["../../../../../src/class/utility/dto/strategy/response.class.ts"],"names":[],"mappings":";;;AAGA,2CAAiD;AAEjD,MAAa,mBAAmB;IAC/B,kBAAkB,CAAC,MAAqB,EAAE,SAAyC;QAClF,QAAQ,MAAM,EAAE,CAAC;YAChB,KAAK,oBAAa,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC3B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;YAC7B,CAAC;YAED,KAAK,oBAAa,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC3B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;YAC7B,CAAC;YAED,KAAK,oBAAa,CAAC,GAAG,CAAC,CAAC,CAAC;gBACxB,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;YAC7B,CAAC;YAED,KAAK,oBAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;gBAC7B,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;YAC7C,CAAC;YAED,KAAK,oBAAa,CAAC,cAAc,CAAC,CAAC,CAAC;gBACnC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;YAC7B,CAAC;YAED,KAAK,oBAAa,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC3B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;YAC7B,CAAC;YAED,OAAO,CAAC,CAAC,CAAC;gBACT,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;YAC7B,CAAC;QACF,CAAC;IACF,CAAC;CACD;AAhCD,kDAgCC"}
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./function.constant"), exports);
|
|
18
17
|
__exportStar(require("./controller.constant"), exports);
|
|
18
|
+
__exportStar(require("./function.constant"), exports);
|
|
19
19
|
__exportStar(require("./property-describe.constant"), exports);
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constant/decorator/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constant/decorator/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,sDAAoC;AACpC,+DAA6C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property-describe.constant.js","sourceRoot":"","sources":["../../../../src/constant/decorator/api/property-describe.constant.ts"],"names":[],"mappings":";;;AACA,MAAM,sBAAsB,GAA4B,
|
|
1
|
+
{"version":3,"file":"property-describe.constant.js","sourceRoot":"","sources":["../../../../src/constant/decorator/api/property-describe.constant.ts"],"names":[],"mappings":";;;AACA,MAAM,sBAAsB,GAA4B,uBAAuB,CAAC;AAEnE,QAAA,wCAAwC,GAAiE;IACrH,sBAAsB;CACb,CAAC"}
|
|
@@ -15,6 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./exception.constant"), exports);
|
|
18
|
-
__exportStar(require("./transformer-value.constant"), exports);
|
|
19
18
|
__exportStar(require("./list.constant"), exports);
|
|
19
|
+
__exportStar(require("./transformer-value.constant"), exports);
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constant/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,+DAA6C
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constant/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,kDAAgC;AAChC,+DAA6C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const TRANSFORMER_VALUE_DTO_CONSTANT: {
|
|
2
|
-
readonly AUTHORIZED_ENTITY:
|
|
3
|
-
readonly REQUEST_IP:
|
|
4
|
-
readonly REQUEST_SIGNATURE:
|
|
5
|
-
readonly REQUEST_TIMESTAMP:
|
|
6
|
-
readonly REQUEST_USER_AGENT:
|
|
2
|
+
readonly AUTHORIZED_ENTITY: symbol;
|
|
3
|
+
readonly REQUEST_IP: symbol;
|
|
4
|
+
readonly REQUEST_SIGNATURE: symbol;
|
|
5
|
+
readonly REQUEST_TIMESTAMP: symbol;
|
|
6
|
+
readonly REQUEST_USER_AGENT: symbol;
|
|
7
7
|
};
|
package/dist/constant/index.d.ts
CHANGED
package/dist/constant/index.js
CHANGED
|
@@ -14,10 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./date.constant"), exports);
|
|
17
18
|
__exportStar(require("./decorator"), exports);
|
|
18
19
|
__exportStar(require("./dto"), exports);
|
|
20
|
+
__exportStar(require("./factory"), exports);
|
|
19
21
|
__exportStar(require("./interface"), exports);
|
|
20
|
-
__exportStar(require("./date.constant"), exports);
|
|
21
22
|
__exportStar(require("./number.constant"), exports);
|
|
22
|
-
__exportStar(require("./factory"), exports);
|
|
23
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constant/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,wCAAsB;AACtB,8CAA4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constant/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,8CAA4B;AAC5B,wCAAsB;AACtB,4CAA0B;AAC1B,8CAA4B;AAC5B,oDAAkC"}
|
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./property"), exports);
|
|
18
17
|
__exportStar(require("./filter.constant"), exports);
|
|
18
|
+
__exportStar(require("./property"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constant/interface/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constant/interface/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,6CAA2B"}
|