@elsikora/nestjs-crud-automator 1.2.0 → 1.2.2
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/base-service.class.d.ts +5 -5
- package/dist/class/api/base-service.class.js +19 -10
- package/dist/class/api/base-service.class.js.map +1 -1
- package/dist/class/api/index.d.ts +0 -1
- package/dist/class/api/index.js +0 -1
- package/dist/class/api/index.js.map +1 -1
- package/dist/class/index.d.ts +1 -0
- package/dist/class/index.js +1 -0
- package/dist/class/index.js.map +1 -1
- package/dist/class/utility/dto/index.d.ts +2 -0
- package/dist/{decorator/api/route → class/utility/dto}/index.js +2 -2
- package/dist/class/utility/dto/index.js.map +1 -0
- package/dist/class/utility/dto/property/factory/boolean.class.d.ts +5 -0
- package/dist/class/utility/dto/property/factory/boolean.class.js +15 -0
- package/dist/class/utility/dto/property/factory/boolean.class.js.map +1 -0
- package/dist/class/utility/dto/property/factory/date.class.d.ts +5 -0
- package/dist/class/utility/dto/property/factory/date.class.js +15 -0
- package/dist/class/utility/dto/property/factory/date.class.js.map +1 -0
- package/dist/class/utility/dto/property/factory/index.d.ts +6 -0
- package/dist/{dto/exception → class/utility/dto/property/factory}/index.js +6 -7
- package/dist/class/utility/dto/property/factory/index.js.map +1 -0
- package/dist/class/utility/dto/property/factory/number.class.d.ts +5 -0
- package/dist/class/utility/dto/property/factory/number.class.js +19 -0
- package/dist/class/utility/dto/property/factory/number.class.js.map +1 -0
- package/dist/class/utility/dto/property/factory/object.class.d.ts +5 -0
- package/dist/class/utility/dto/property/factory/object.class.js +17 -0
- package/dist/class/utility/dto/property/factory/object.class.js.map +1 -0
- package/dist/class/utility/dto/property/factory/relation.class.d.ts +5 -0
- package/dist/class/utility/dto/property/factory/relation.class.js +11 -0
- package/dist/class/utility/dto/property/factory/relation.class.js.map +1 -0
- package/dist/class/utility/dto/property/factory/string.class.d.ts +5 -0
- package/dist/class/utility/dto/property/factory/string.class.js +15 -0
- package/dist/class/utility/dto/property/factory/string.class.js.map +1 -0
- package/dist/class/utility/dto/property/factory/uuid.class.d.ts +5 -0
- package/dist/class/utility/dto/property/factory/uuid.class.js +11 -0
- package/dist/class/utility/dto/property/factory/uuid.class.js.map +1 -0
- package/dist/class/utility/dto/property/index.d.ts +1 -0
- package/dist/{dto → class/utility/dto/property}/index.js +1 -1
- package/dist/class/utility/dto/property/index.js.map +1 -0
- package/dist/class/utility/dto/strategy/body.class.d.ts +6 -0
- package/dist/class/utility/dto/strategy/body.class.js +21 -0
- package/dist/class/utility/dto/strategy/body.class.js.map +1 -0
- package/dist/class/utility/dto/strategy/index.d.ts +4 -0
- package/dist/class/utility/dto/strategy/index.js +21 -0
- package/dist/class/utility/dto/strategy/index.js.map +1 -0
- package/dist/class/utility/dto/strategy/query.class.d.ts +6 -0
- package/dist/class/utility/dto/strategy/query.class.js +18 -0
- package/dist/class/utility/dto/strategy/query.class.js.map +1 -0
- package/dist/class/utility/dto/strategy/request.class.d.ts +6 -0
- package/dist/class/utility/dto/strategy/request.class.js +26 -0
- package/dist/class/utility/dto/strategy/request.class.js.map +1 -0
- package/dist/class/utility/dto/strategy/response.class.d.ts +6 -0
- package/dist/class/utility/dto/strategy/response.class.js +18 -0
- package/dist/class/utility/dto/strategy/response.class.js.map +1 -0
- package/dist/class/utility/index.d.ts +1 -0
- package/dist/class/utility/index.js +18 -0
- package/dist/class/utility/index.js.map +1 -0
- package/dist/constant/decorator/api/controller.constant.d.ts +1 -1
- package/dist/constant/decorator/api/controller.constant.js +2 -2
- package/dist/constant/decorator/api/controller.constant.js.map +1 -1
- package/dist/constant/decorator/api/function.constant.d.ts +1 -1
- package/dist/constant/decorator/api/function.constant.js +2 -2
- package/dist/constant/decorator/api/function.constant.js.map +1 -1
- package/dist/constant/decorator/api/property-describe.constant.d.ts +1 -1
- package/dist/constant/decorator/api/property-describe.constant.js +2 -2
- package/dist/constant/decorator/api/property-describe.constant.js.map +1 -1
- package/dist/constant/factory/dto/get-list-query.constant.d.ts +1 -2
- package/dist/constant/factory/dto/get-list-query.constant.js +2 -2
- package/dist/constant/factory/dto/get-list-query.constant.js.map +1 -1
- package/dist/constant/interface/api/filter.constant.d.ts +1 -1
- package/dist/constant/interface/api/filter.constant.js +2 -2
- package/dist/constant/interface/api/filter.constant.js.map +1 -1
- package/dist/constant/interface/api/index.d.ts +1 -0
- package/dist/constant/interface/api/index.js +1 -0
- package/dist/constant/interface/api/index.js.map +1 -1
- package/dist/constant/interface/api/property/string.constant.d.ts +1 -1
- package/dist/constant/interface/api/property/string.constant.js +2 -2
- package/dist/constant/interface/api/property/string.constant.js.map +1 -1
- package/dist/constant/interface/api/property/wallet.constant.d.ts +1 -1
- package/dist/constant/interface/api/property/wallet.constant.js +2 -2
- package/dist/constant/interface/api/property/wallet.constant.js.map +1 -1
- package/dist/constant/utility/dto/constant.d.ts +6 -0
- package/dist/constant/utility/dto/constant.js +27 -0
- package/dist/constant/utility/dto/constant.js.map +1 -0
- package/dist/decorator/api/controller.decorator.d.ts +3 -7
- package/dist/decorator/api/controller.decorator.js +2 -2
- package/dist/decorator/api/controller.decorator.js.map +1 -1
- package/dist/decorator/api/function/create.decorator.d.ts +2 -4
- package/dist/decorator/api/function/create.decorator.js +25 -17
- package/dist/decorator/api/function/create.decorator.js.map +1 -1
- package/dist/decorator/api/function/decorator.d.ts +3 -7
- package/dist/decorator/api/function/decorator.js +20 -16
- package/dist/decorator/api/function/decorator.js.map +1 -1
- package/dist/decorator/api/function/delete.decorator.d.ts +3 -3
- package/dist/decorator/api/function/delete.decorator.js +6 -6
- package/dist/decorator/api/function/delete.decorator.js.map +1 -1
- package/dist/decorator/api/function/get-list.decorator.d.ts +3 -3
- package/dist/decorator/api/function/get-list.decorator.js +9 -8
- package/dist/decorator/api/function/get-list.decorator.js.map +1 -1
- package/dist/decorator/api/function/get.decorator.d.ts +3 -3
- package/dist/decorator/api/function/get.decorator.js +8 -9
- package/dist/decorator/api/function/get.decorator.js.map +1 -1
- package/dist/decorator/api/function/update.decorator.d.ts +3 -3
- package/dist/decorator/api/function/update.decorator.js +10 -14
- package/dist/decorator/api/function/update.decorator.js.map +1 -1
- package/dist/decorator/api/index.d.ts +0 -1
- package/dist/decorator/api/index.js +0 -1
- package/dist/decorator/api/index.js.map +1 -1
- package/dist/decorator/api/method.decorator.js +58 -0
- package/dist/decorator/api/method.decorator.js.map +1 -1
- package/dist/decorator/api/property/date.decorator.js.map +1 -1
- package/dist/decorator/api/property/describe.decorator.js +1 -1
- package/dist/decorator/api/property/describe.decorator.js.map +1 -1
- package/dist/decorator/api/property/string.decorator.js +13 -6
- package/dist/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/decorator/api/property/wallet.decorator.js +3 -3
- package/dist/decorator/api/property/wallet.decorator.js.map +1 -1
- package/dist/decorator/api/service.decorator.d.ts +3 -6
- package/dist/decorator/api/service.decorator.js +23 -49
- package/dist/decorator/api/service.decorator.js.map +1 -1
- package/dist/enum/decorator/api/authentication-type.enum.d.ts +1 -0
- package/dist/enum/decorator/api/authentication-type.enum.js +1 -0
- package/dist/enum/decorator/api/authentication-type.enum.js.map +1 -1
- package/dist/enum/decorator/api/dto-type.enum.d.ts +3 -3
- package/dist/enum/decorator/api/dto-type.enum.js +2 -2
- package/dist/enum/decorator/api/dto-type.enum.js.map +1 -1
- package/dist/enum/decorator/api/property/desribe-type.enum.d.ts +2 -1
- 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/factory/api/controller.factory.d.ts +8 -8
- package/dist/factory/api/controller.factory.js +89 -55
- package/dist/factory/api/controller.factory.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/interceptor/correlation-id-response-body.interceptor.js +0 -8
- package/dist/interceptor/correlation-id-response-body.interceptor.js.map +1 -1
- package/dist/interface/class/dto/index.d.ts +1 -0
- package/dist/interface/class/dto/index.js +18 -0
- package/dist/interface/class/dto/index.js.map +1 -0
- package/dist/interface/class/dto/strategy.interface.d.ts +5 -0
- package/dist/{type/decorator/api/function/get-properties.type.js → interface/class/dto/strategy.interface.js} +1 -1
- package/dist/interface/class/dto/strategy.interface.js.map +1 -0
- package/dist/interface/class/index.d.ts +1 -0
- package/dist/interface/class/index.js +18 -0
- package/dist/interface/class/index.js.map +1 -0
- package/dist/interface/decorator/api/controller-properties.interface.d.ts +12 -7
- package/dist/interface/decorator/api/controller-properties.interface.js.map +1 -1
- package/dist/interface/decorator/api/function/create-properties.interface.d.ts +4 -0
- package/dist/interface/decorator/api/function/create-properties.interface.js +3 -0
- package/dist/interface/decorator/api/function/create-properties.interface.js.map +1 -0
- package/dist/interface/decorator/api/index.d.ts +1 -0
- package/dist/interface/decorator/api/index.js +1 -0
- package/dist/interface/decorator/api/index.js.map +1 -1
- package/dist/interface/decorator/api/method/properties.interface.d.ts +3 -2
- package/dist/interface/decorator/api/method/properties.interface.js.map +1 -1
- package/dist/interface/decorator/api/property/base-properties.interface.d.ts +1 -1
- package/dist/interface/decorator/api/property/base-properties.interface.js.map +1 -1
- package/dist/interface/dto-generate-factory.interface.d.ts +5 -0
- package/dist/interface/dto-generate-factory.interface.js +3 -0
- package/dist/interface/dto-generate-factory.interface.js.map +1 -0
- package/dist/interface/index.d.ts +2 -0
- package/dist/interface/index.js +2 -0
- package/dist/interface/index.js.map +1 -1
- package/dist/interface/utility/get-entity-columns-properties.interface.d.ts +5 -0
- package/dist/interface/utility/get-entity-columns-properties.interface.js +3 -0
- package/dist/interface/utility/get-entity-columns-properties.interface.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/type/decorator/api/controller/constructor.type.d.ts +4 -0
- package/dist/type/decorator/api/{function/create-properties.type.js → controller/constructor.type.js} +1 -1
- package/dist/type/decorator/api/controller/constructor.type.js.map +1 -0
- package/dist/type/decorator/api/controller/index.d.ts +1 -0
- package/dist/type/decorator/api/controller/index.js +18 -0
- package/dist/type/decorator/api/controller/index.js.map +1 -0
- package/dist/type/decorator/api/function/create/executor-properties.type.d.ts +8 -0
- package/dist/type/decorator/api/function/create/executor-properties.type.js +3 -0
- package/dist/type/decorator/api/function/create/executor-properties.type.js.map +1 -0
- package/dist/type/decorator/api/function/create/index.d.ts +2 -0
- package/dist/type/decorator/api/function/create/index.js +19 -0
- package/dist/type/decorator/api/function/create/index.js.map +1 -0
- package/dist/type/decorator/api/function/{update-properties.type.js → create/properties.type.js} +1 -1
- package/dist/type/decorator/api/function/create/properties.type.js.map +1 -0
- package/dist/type/decorator/api/function/delete/executor-properties.type.d.ts +9 -0
- package/dist/type/decorator/api/function/delete/executor-properties.type.js +3 -0
- package/dist/type/decorator/api/function/delete/executor-properties.type.js.map +1 -0
- package/dist/type/decorator/api/function/delete/index.d.ts +1 -0
- package/dist/type/decorator/api/function/delete/index.js +18 -0
- package/dist/type/decorator/api/function/delete/index.js.map +1 -0
- package/dist/type/decorator/api/function/get/executor-properties.type.d.ts +7 -0
- package/dist/type/decorator/api/function/get/executor-properties.type.js +3 -0
- package/dist/type/decorator/api/function/get/executor-properties.type.js.map +1 -0
- package/dist/type/decorator/api/function/get/index.d.ts +2 -0
- package/dist/type/decorator/api/function/get/index.js +19 -0
- package/dist/type/decorator/api/function/get/index.js.map +1 -0
- package/dist/type/decorator/api/function/get/properties.type.js +3 -0
- package/dist/type/decorator/api/function/get/properties.type.js.map +1 -0
- package/dist/type/decorator/api/function/get-list/base-properties.type.d.ts +16 -0
- package/dist/type/decorator/api/function/get-list/base-properties.type.js +3 -0
- package/dist/type/decorator/api/function/get-list/base-properties.type.js.map +1 -0
- package/dist/type/decorator/api/function/get-list/executor-properties.type.d.ts +9 -0
- package/dist/type/decorator/api/function/get-list/executor-properties.type.js +3 -0
- package/dist/type/decorator/api/function/get-list/executor-properties.type.js.map +1 -0
- package/dist/type/decorator/api/function/get-list/index.d.ts +3 -0
- package/dist/type/decorator/api/function/get-list/index.js +20 -0
- package/dist/type/decorator/api/function/get-list/index.js.map +1 -0
- package/dist/type/decorator/api/function/get-list/properties.type.d.ts +9 -0
- package/dist/type/decorator/api/function/get-list/properties.type.js +3 -0
- package/dist/type/decorator/api/function/get-list/properties.type.js.map +1 -0
- package/dist/type/decorator/api/function/index.d.ts +5 -4
- package/dist/type/decorator/api/function/index.js +5 -4
- package/dist/type/decorator/api/function/index.js.map +1 -1
- package/dist/type/decorator/api/function/properties.type.d.ts +7 -0
- package/dist/type/decorator/api/function/properties.type.js +3 -0
- package/dist/type/decorator/api/function/properties.type.js.map +1 -0
- package/dist/type/decorator/api/function/update/executor-properties.type.d.ts +11 -0
- package/dist/type/decorator/api/function/update/executor-properties.type.js +3 -0
- package/dist/type/decorator/api/function/update/executor-properties.type.js.map +1 -0
- package/dist/type/decorator/api/function/update/index.d.ts +2 -0
- package/dist/type/decorator/api/function/update/index.js +19 -0
- package/dist/type/decorator/api/function/update/index.js.map +1 -0
- package/dist/type/decorator/api/function/update/properties.type.js +3 -0
- package/dist/type/decorator/api/function/update/properties.type.js.map +1 -0
- package/dist/type/decorator/api/index.d.ts +1 -0
- package/dist/type/decorator/api/index.js +1 -0
- package/dist/type/decorator/api/index.js.map +1 -1
- package/dist/type/decorator/api/property/describe/array/index.d.ts +2 -0
- package/dist/type/decorator/api/property/describe/array/index.js +19 -0
- package/dist/type/decorator/api/property/describe/array/index.js.map +1 -0
- package/dist/type/decorator/api/property/describe/array/optional-properties.type.d.ts +3 -0
- package/dist/type/decorator/api/property/describe/array/optional-properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/array/optional-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/array/required-properties.type.d.ts +6 -0
- package/dist/type/decorator/api/property/describe/array/required-properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/array/required-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/base-properties.type.d.ts +7 -0
- package/dist/type/decorator/api/property/describe/base-properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/base-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/boolean-properties.type.d.ts +7 -0
- package/dist/type/decorator/api/property/describe/boolean-properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/boolean-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/date-properties.type.d.ts +7 -0
- package/dist/type/decorator/api/property/describe/date-properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/date-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/dto/body-properties.type.d.ts +5 -0
- package/dist/type/decorator/api/property/describe/dto/body-properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/dto/body-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/dto/index.d.ts +5 -0
- package/dist/type/decorator/api/property/describe/dto/index.js +22 -0
- package/dist/type/decorator/api/property/describe/dto/index.js.map +1 -0
- package/dist/type/decorator/api/property/describe/dto/properties.type.d.ts +6 -0
- package/dist/type/decorator/api/property/describe/dto/properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/dto/properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/dto/query/get-list-properties.type.d.ts +3 -0
- package/dist/type/decorator/api/property/describe/dto/query/get-list-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/dto/query/index.d.ts +2 -0
- package/dist/type/decorator/api/property/describe/dto/query/index.js +19 -0
- package/dist/type/decorator/api/property/describe/dto/query/index.js.map +1 -0
- package/dist/type/decorator/api/property/describe/dto/query/properties.type.d.ts +6 -0
- package/dist/type/decorator/api/property/describe/dto/query/properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/dto/query/properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/dto/request-properties.type.d.ts +5 -0
- package/dist/type/decorator/api/property/describe/dto/request-properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/dto/request-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/dto/response-properties.type.d.ts +5 -0
- package/dist/type/decorator/api/property/describe/dto/response-properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/dto/response-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/example-properties.type.d.ts +7 -0
- package/dist/type/decorator/api/property/describe/example-properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/example-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/index.d.ts +12 -0
- package/dist/type/decorator/api/property/describe/index.js +29 -0
- package/dist/type/decorator/api/property/describe/index.js.map +1 -0
- package/dist/type/decorator/api/property/describe/number-properties.type.d.ts +13 -0
- package/dist/type/decorator/api/property/describe/number-properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/number-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/object-properties.type.d.ts +10 -0
- package/dist/type/decorator/api/property/describe/object-properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/object-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/properties/base-dto-properties.type.d.ts +2 -0
- package/dist/type/decorator/api/property/describe/properties/base-dto-properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/properties/base-dto-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/properties/base-properties.type.d.ts +10 -0
- package/dist/type/decorator/api/property/describe/properties/base-properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/properties/base-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/properties/index.d.ts +2 -0
- package/dist/type/decorator/api/property/describe/properties/index.js +19 -0
- package/dist/type/decorator/api/property/describe/properties/index.js.map +1 -0
- package/dist/type/decorator/api/property/describe/properties.type.d.ts +8 -0
- package/dist/type/decorator/api/property/describe/properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/relation-properties.type.d.ts +6 -0
- package/dist/type/decorator/api/property/describe/relation-properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/relation-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/string-properties.type.d.ts +13 -0
- package/dist/type/decorator/api/property/describe/string-properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/string-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/describe/uuid-properties.type.d.ts +7 -0
- package/dist/type/decorator/api/property/describe/uuid-properties.type.js +3 -0
- package/dist/type/decorator/api/property/describe/uuid-properties.type.js.map +1 -0
- package/dist/type/decorator/api/property/index.d.ts +1 -1
- package/dist/type/decorator/api/property/index.js +1 -1
- package/dist/type/decorator/api/property/index.js.map +1 -1
- package/dist/type/decorator/api/service-properties.type.d.ts +3 -0
- package/dist/type/decorator/api/service-properties.type.js +3 -0
- package/dist/type/decorator/api/service-properties.type.js.map +1 -0
- package/dist/type/index.d.ts +1 -0
- package/dist/type/index.js +1 -0
- package/dist/type/index.js.map +1 -1
- package/dist/type/utility/dto/generate-allowed-combination.type.d.ts +9 -0
- package/dist/type/utility/dto/generate-allowed-combination.type.js +3 -0
- package/dist/type/utility/dto/generate-allowed-combination.type.js.map +1 -0
- package/dist/type/utility/dto/generate-is-allowed-combination.type.d.ts +3 -0
- package/dist/type/utility/dto/generate-is-allowed-combination.type.js +3 -0
- package/dist/type/utility/dto/generate-is-allowed-combination.type.js.map +1 -0
- package/dist/type/utility/dto/index.d.ts +2 -0
- package/dist/type/utility/dto/index.js +19 -0
- package/dist/type/utility/dto/index.js.map +1 -0
- package/dist/type/utility/index.d.ts +1 -0
- package/dist/type/utility/index.js +18 -0
- package/dist/type/utility/index.js.map +1 -0
- package/dist/utility/api/controller/get-method-name.utility.d.ts +1 -1
- package/dist/utility/api/controller/get-method-name.utility.js +1 -1
- package/dist/utility/api/controller/get-method-name.utility.js.map +1 -1
- package/dist/utility/api/controller/write-method.utility.d.ts +3 -3
- package/dist/utility/api/controller/write-method.utility.js +2 -2
- package/dist/utility/api/controller/write-method.utility.js.map +1 -1
- package/dist/utility/api/filter-order-by-from-entity.utility.d.ts +4 -2
- package/dist/utility/api/filter-order-by-from-entity.utility.js +17 -14
- package/dist/utility/api/filter-order-by-from-entity.utility.js.map +1 -1
- package/dist/utility/dto/analize.utility.js.map +1 -1
- package/dist/utility/dto/build-decorator.utility.d.ts +4 -0
- package/dist/utility/dto/build-decorator.utility.js +31 -0
- package/dist/utility/dto/build-decorator.utility.js.map +1 -0
- package/dist/utility/dto/generate-decorator.utility.d.ts +3 -0
- package/dist/utility/dto/generate-decorator.utility.js +15 -0
- package/dist/utility/dto/generate-decorator.utility.js.map +1 -0
- package/dist/utility/dto/generate-exception.utility.d.ts +2 -0
- package/dist/utility/dto/generate-exception.utility.js +88 -0
- package/dist/utility/dto/generate-exception.utility.js.map +1 -0
- package/dist/utility/dto/generate.utility.d.ts +2 -2
- package/dist/utility/dto/generate.utility.js +51 -308
- package/dist/utility/dto/generate.utility.js.map +1 -1
- package/dist/utility/dto/get-base-class.utility.d.ts +3 -0
- package/dist/utility/dto/get-base-class.utility.js +65 -0
- package/dist/utility/dto/get-base-class.utility.js.map +1 -0
- package/dist/utility/dto/get-decorator-config.utility.d.ts +3 -0
- package/dist/utility/dto/get-decorator-config.utility.js +21 -0
- package/dist/utility/dto/get-decorator-config.utility.js.map +1 -0
- package/dist/utility/dto/handle-date-property.utility.d.ts +5 -0
- package/dist/utility/dto/handle-date-property.utility.js +18 -0
- package/dist/utility/dto/handle-date-property.utility.js.map +1 -0
- package/dist/utility/dto/index.d.ts +8 -0
- package/dist/utility/dto/index.js +8 -0
- package/dist/utility/dto/index.js.map +1 -1
- package/dist/utility/dto/is-property-should-be-enabled.utility.d.ts +3 -0
- package/dist/utility/dto/is-property-should-be-enabled.utility.js +26 -0
- package/dist/utility/dto/is-property-should-be-enabled.utility.js.map +1 -0
- package/dist/utility/dto/is-should-be-generated.utility.d.ts +2 -0
- package/dist/utility/dto/is-should-be-generated.utility.js +25 -0
- package/dist/utility/dto/is-should-be-generated.utility.js.map +1 -0
- package/dist/utility/dto/validate-property-config.utility.d.ts +2 -0
- package/dist/utility/dto/validate-property-config.utility.js +14 -0
- package/dist/utility/dto/validate-property-config.utility.js.map +1 -0
- package/dist/utility/generate-entity-information.utility.js +15 -6
- package/dist/utility/generate-entity-information.utility.js.map +1 -1
- package/dist/utility/get-entity-columns.utility.d.ts +3 -2
- package/dist/utility/get-entity-columns.utility.js +4 -3
- package/dist/utility/get-entity-columns.utility.js.map +1 -1
- package/package.json +4 -1
- package/dist/class/api/base-controller.class.d.ts +0 -4
- package/dist/class/api/base-controller.class.js +0 -10
- package/dist/class/api/base-controller.class.js.map +0 -1
- package/dist/decorator/api/route/decorator.d.ts +0 -18
- package/dist/decorator/api/route/decorator.js +0 -43
- package/dist/decorator/api/route/decorator.js.map +0 -1
- package/dist/decorator/api/route/get.decorator.d.ts +0 -9
- package/dist/decorator/api/route/get.decorator.js +0 -53
- package/dist/decorator/api/route/get.decorator.js.map +0 -1
- package/dist/decorator/api/route/index.d.ts +0 -2
- package/dist/decorator/api/route/index.js.map +0 -1
- package/dist/dto/exception/bad-request.dto.d.ts +0 -8
- package/dist/dto/exception/bad-request.dto.js +0 -84
- package/dist/dto/exception/bad-request.dto.js.map +0 -1
- package/dist/dto/exception/conflict.dto.d.ts +0 -8
- package/dist/dto/exception/conflict.dto.js +0 -84
- package/dist/dto/exception/conflict.dto.js.map +0 -1
- package/dist/dto/exception/forbidden.dto.d.ts +0 -8
- package/dist/dto/exception/forbidden.dto.js +0 -84
- package/dist/dto/exception/forbidden.dto.js.map +0 -1
- package/dist/dto/exception/index.d.ts +0 -7
- package/dist/dto/exception/index.js.map +0 -1
- package/dist/dto/exception/internal-server-error.dto.d.ts +0 -8
- package/dist/dto/exception/internal-server-error.dto.js +0 -84
- package/dist/dto/exception/internal-server-error.dto.js.map +0 -1
- package/dist/dto/exception/not-found.dto.d.ts +0 -8
- package/dist/dto/exception/not-found.dto.js +0 -84
- package/dist/dto/exception/not-found.dto.js.map +0 -1
- package/dist/dto/exception/too-many-requests.dto.d.ts +0 -8
- package/dist/dto/exception/too-many-requests.dto.js +0 -84
- package/dist/dto/exception/too-many-requests.dto.js.map +0 -1
- package/dist/dto/exception/unauthorized.dto.d.ts +0 -8
- package/dist/dto/exception/unauthorized.dto.js +0 -84
- package/dist/dto/exception/unauthorized.dto.js.map +0 -1
- package/dist/dto/index.d.ts +0 -1
- package/dist/dto/index.js.map +0 -1
- package/dist/type/decorator/api/function/create-properties.type.js.map +0 -1
- package/dist/type/decorator/api/function/get-list-properties.type.d.ts +0 -23
- package/dist/type/decorator/api/function/get-list-properties.type.js.map +0 -1
- package/dist/type/decorator/api/function/get-properties.type.js.map +0 -1
- package/dist/type/decorator/api/function/update-properties.type.js.map +0 -1
- package/dist/type/decorator/api/property/describe-properties.type.d.ts +0 -64
- package/dist/type/decorator/api/property/describe-properties.type.js +0 -3
- package/dist/type/decorator/api/property/describe-properties.type.js.map +0 -1
- /package/dist/type/decorator/api/function/{create-properties.type.d.ts → create/properties.type.d.ts} +0 -0
- /package/dist/type/decorator/api/function/{get-properties.type.d.ts → get/properties.type.d.ts} +0 -0
- /package/dist/type/decorator/api/function/{update-properties.type.d.ts → update/properties.type.d.ts} +0 -0
- /package/dist/type/decorator/api/{function → property/describe/dto/query}/get-list-properties.type.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constructor.type.js","sourceRoot":"/","sources":["type/decorator/api/controller/constructor.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { BaseApiService } from \"../../../../class\";\n\nexport type TApiControllerConstructor = new (...arguments_: Array<any>) => { service: BaseApiService<any> };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./constructor.type";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./constructor.type"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/controller/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC","sourcesContent":["export * from \"./constructor.type\";\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TApiFunctionCreateProperties } from "./properties.type";
|
|
2
|
+
import type { IApiBaseEntity } from "../../../../../interface";
|
|
3
|
+
import type { Repository } from "typeorm";
|
|
4
|
+
export interface IApiFunctionCreateExecutorProperties<E extends IApiBaseEntity> {
|
|
5
|
+
entity: IApiBaseEntity;
|
|
6
|
+
properties: TApiFunctionCreateProperties<E>;
|
|
7
|
+
repository: Repository<E>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/create/executor-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { TApiFunctionCreateProperties } from \"./properties.type\";\n\nimport type { IApiBaseEntity } from \"../../../../../interface\";\nimport type { Repository } from \"typeorm\";\n\nexport interface IApiFunctionCreateExecutorProperties<E extends IApiBaseEntity> {\n\tentity: IApiBaseEntity;\n\tproperties: TApiFunctionCreateProperties<E>;\n\trepository: Repository<E>;\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./properties.type"), exports);
|
|
18
|
+
__exportStar(require("./executor-properties.type"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/function/create/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,6DAA2C","sourcesContent":["export * from \"./properties.type\";\nexport * from \"./executor-properties.type\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/create/properties.type.ts"],"names":[],"mappings":"","sourcesContent":["export type TApiFunctionCreateProperties<E> = Partial<E>;\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IApiBaseEntity } from "../../../../../interface";
|
|
2
|
+
import type { TApiFunctionGetProperties } from "../get";
|
|
3
|
+
import type { Repository } from "typeorm";
|
|
4
|
+
export interface IApiFunctionDeleteExecutorProperties<E extends IApiBaseEntity> {
|
|
5
|
+
entity: IApiBaseEntity;
|
|
6
|
+
getFunction: (id: string, properties?: TApiFunctionGetProperties<E>) => Promise<E>;
|
|
7
|
+
id: number | string;
|
|
8
|
+
repository: Repository<E>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/delete/executor-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { IApiBaseEntity } from \"../../../../../interface\";\n\nimport type { TApiFunctionGetProperties } from \"../get\";\nimport type { Repository } from \"typeorm\";\n\nexport interface IApiFunctionDeleteExecutorProperties<E extends IApiBaseEntity> {\n\tentity: IApiBaseEntity;\n\tgetFunction: (id: string, properties?: TApiFunctionGetProperties<E>) => Promise<E>;\n\tid: number | string;\n\trepository: Repository<E>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./executor-properties.type";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./executor-properties.type"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/function/delete/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C","sourcesContent":["export * from \"./executor-properties.type\";\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IApiBaseEntity } from "../../../../../interface";
|
|
2
|
+
import type { FindOneOptions, Repository } from "typeorm";
|
|
3
|
+
export interface IApiFunctionGetExecutorProperties<E extends IApiBaseEntity> {
|
|
4
|
+
entity: IApiBaseEntity;
|
|
5
|
+
filter: FindOneOptions<E>;
|
|
6
|
+
repository: Repository<E>;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/get/executor-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { IApiBaseEntity } from \"../../../../../interface\";\nimport type { FindOneOptions, Repository } from \"typeorm\";\n\nexport interface IApiFunctionGetExecutorProperties<E extends IApiBaseEntity> {\n\tentity: IApiBaseEntity;\n\tfilter: FindOneOptions<E>;\n\trepository: Repository<E>;\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./properties.type"), exports);
|
|
18
|
+
__exportStar(require("./executor-properties.type"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/function/get/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,6DAA2C","sourcesContent":["export * from \"./properties.type\";\nexport * from \"./executor-properties.type\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/get/properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { FindManyOptions } from \"typeorm\";\n\nexport type TApiFunctionGetProperties<E> = {\n\tfilter?: FindManyOptions<E>;\n} & {\n\t[K in keyof E]?: E[K];\n};\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { EFilterOrderDirection } from "../../../../../enum";
|
|
2
|
+
import type { IApiFilterOrderBy } from "../../filter";
|
|
3
|
+
import type { FindManyOptions } from "typeorm";
|
|
4
|
+
export type TApiFunctionGetListBaseProperties<E> = {
|
|
5
|
+
createdAtFrom?: Date;
|
|
6
|
+
createdAtTo?: Date;
|
|
7
|
+
filter?: FindManyOptions<E>;
|
|
8
|
+
limit: number;
|
|
9
|
+
orderBy?: IApiFilterOrderBy<E>;
|
|
10
|
+
orderDirection?: EFilterOrderDirection;
|
|
11
|
+
page: number;
|
|
12
|
+
receivedAtFrom?: Date;
|
|
13
|
+
receivedAtTo?: Date;
|
|
14
|
+
updatedAtFrom?: Date;
|
|
15
|
+
updatedAtTo?: Date;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/get-list/base-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { EFilterOrderDirection } from \"../../../../../enum\";\nimport type { IApiFilterOrderBy } from \"../../filter\";\n\nimport type { FindManyOptions } from \"typeorm\";\n\nexport type TApiFunctionGetListBaseProperties<E> = {\n\tcreatedAtFrom?: Date;\n\tcreatedAtTo?: Date;\n\tfilter?: FindManyOptions<E>;\n\tlimit: number;\n\torderBy?: IApiFilterOrderBy<E>;\n\torderDirection?: EFilterOrderDirection;\n\tpage: number;\n\treceivedAtFrom?: Date;\n\treceivedAtTo?: Date;\n\tupdatedAtFrom?: Date;\n\tupdatedAtTo?: Date;\n};\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TApiFunctionGetListProperties } from "./properties.type";
|
|
2
|
+
import type { IApiBaseEntity } from "../../../../../interface";
|
|
3
|
+
import type { FindManyOptions, Repository } from "typeorm";
|
|
4
|
+
export interface IApiFunctionGetListExecutorProperties<E extends IApiBaseEntity> {
|
|
5
|
+
entity: IApiBaseEntity;
|
|
6
|
+
filter: FindManyOptions<E>;
|
|
7
|
+
properties: TApiFunctionGetListProperties<E>;
|
|
8
|
+
repository: Repository<E>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/get-list/executor-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { TApiFunctionGetListProperties } from \"./properties.type\";\nimport type { IApiBaseEntity } from \"../../../../../interface\";\n\nimport type { FindManyOptions, Repository } from \"typeorm\";\n\nexport interface IApiFunctionGetListExecutorProperties<E extends IApiBaseEntity> {\n\tentity: IApiBaseEntity;\n\tfilter: FindManyOptions<E>;\n\tproperties: TApiFunctionGetListProperties<E>;\n\trepository: Repository<E>;\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./base-properties.type"), exports);
|
|
18
|
+
__exportStar(require("./properties.type"), exports);
|
|
19
|
+
__exportStar(require("./executor-properties.type"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/function/get-list/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,oDAAkC;AAClC,6DAA2C","sourcesContent":["export * from \"./base-properties.type\";\nexport * from \"./properties.type\";\nexport * from \"./executor-properties.type\";\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TApiFunctionGetListBaseProperties } from "./base-properties.type";
|
|
2
|
+
import type { IApiFilterOrderBy } from "../../filter";
|
|
3
|
+
import type { FindManyOptions } from "typeorm";
|
|
4
|
+
export type TApiFunctionGetListProperties<E> = TApiFunctionGetListBaseProperties<E> & {
|
|
5
|
+
filter?: FindManyOptions<E>;
|
|
6
|
+
orderBy?: IApiFilterOrderBy<E>;
|
|
7
|
+
} & {
|
|
8
|
+
[K in Exclude<keyof Omit<E, "createdAt" | "receivedAt" | "updatedAt">, keyof TApiFunctionGetListBaseProperties<E>>]?: E[K];
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/get-list/properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { TApiFunctionGetListBaseProperties } from \"./base-properties.type\";\n\nimport type { IApiFilterOrderBy } from \"../../filter\";\nimport type { FindManyOptions } from \"typeorm\";\n\nexport type TApiFunctionGetListProperties<E> = TApiFunctionGetListBaseProperties<E> & {\n\tfilter?: FindManyOptions<E>;\n\torderBy?: IApiFilterOrderBy<E>;\n} & {\n\t[K in Exclude<keyof Omit<E, \"createdAt\" | \"receivedAt\" | \"updatedAt\">, keyof TApiFunctionGetListBaseProperties<E>>]?: E[K];\n};\n"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./get-
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./update
|
|
1
|
+
export * from "./create";
|
|
2
|
+
export * from "./get-list";
|
|
3
|
+
export * from "./get";
|
|
4
|
+
export * from "./update";
|
|
5
|
+
export * from "./delete";
|
|
@@ -14,8 +14,9 @@ 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("./
|
|
18
|
-
__exportStar(require("./get-
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./update
|
|
17
|
+
__exportStar(require("./create"), exports);
|
|
18
|
+
__exportStar(require("./get-list"), exports);
|
|
19
|
+
__exportStar(require("./get"), exports);
|
|
20
|
+
__exportStar(require("./update"), exports);
|
|
21
|
+
__exportStar(require("./delete"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/function/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/function/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B;AAC3B,wCAAsB;AACtB,2CAAyB;AACzB,2CAAyB","sourcesContent":["export * from \"./create\";\nexport * from \"./get-list\";\nexport * from \"./get\";\nexport * from \"./update\";\nexport * from \"./delete\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { EApiFunctionType } from \"../../../../enum\";\n\nimport type { FindOptionsRelations } from \"typeorm\";\n\nexport type TApiFunctionProperties<E> = {\n\tentity: new () => E;\n\trelations?: FindOptionsRelations<E>;\n\ttype: EApiFunctionType;\n};\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TApiFunctionUpdateProperties } from "./properties.type";
|
|
2
|
+
import type { IApiBaseEntity } from "../../../../../interface";
|
|
3
|
+
import type { TApiFunctionGetProperties } from "../get";
|
|
4
|
+
import type { Repository } from "typeorm";
|
|
5
|
+
export interface IApiFunctionUpdateExecutorProperties<E extends IApiBaseEntity> {
|
|
6
|
+
entity: IApiBaseEntity;
|
|
7
|
+
getFunction: (id: string, properties?: TApiFunctionGetProperties<E>) => Promise<E>;
|
|
8
|
+
id: number | string;
|
|
9
|
+
properties: TApiFunctionUpdateProperties<E>;
|
|
10
|
+
repository: Repository<E>;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/update/executor-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { TApiFunctionUpdateProperties } from \"./properties.type\";\nimport type { IApiBaseEntity } from \"../../../../../interface\";\n\nimport type { TApiFunctionGetProperties } from \"../get\";\nimport type { Repository } from \"typeorm\";\n\nexport interface IApiFunctionUpdateExecutorProperties<E extends IApiBaseEntity> {\n\tentity: IApiBaseEntity;\n\tgetFunction: (id: string, properties?: TApiFunctionGetProperties<E>) => Promise<E>;\n\tid: number | string;\n\tproperties: TApiFunctionUpdateProperties<E>;\n\trepository: Repository<E>;\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./executor-properties.type"), exports);
|
|
18
|
+
__exportStar(require("./properties.type"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/function/update/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,oDAAkC","sourcesContent":["export * from \"./executor-properties.type\";\nexport * from \"./properties.type\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"properties.type.js","sourceRoot":"/","sources":["type/decorator/api/function/update/properties.type.ts"],"names":[],"mappings":"","sourcesContent":["export type TApiFunctionUpdateProperties<E> = Partial<E>;\n"]}
|
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./filter"), exports);
|
|
18
18
|
__exportStar(require("./function"), exports);
|
|
19
19
|
__exportStar(require("./property"), exports);
|
|
20
|
+
__exportStar(require("./controller"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B;AAC3B,6CAA2B","sourcesContent":["export * from \"./filter\";\nexport * from \"./function\";\nexport * from \"./property\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B;AAC3B,6CAA2B;AAC3B,+CAA6B","sourcesContent":["export * from \"./filter\";\nexport * from \"./function\";\nexport * from \"./property\";\nexport * from \"./controller\";\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./required-properties.type"), exports);
|
|
18
|
+
__exportStar(require("./optional-properties.type"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["type/decorator/api/property/describe/array/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,6DAA2C","sourcesContent":["export * from \"./required-properties.type\";\nexport * from \"./optional-properties.type\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optional-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/property/describe/array/optional-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["export type TApiPropertyDescribeArrayOptionalProperties = {\n\tisArray?: false;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"required-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/property/describe/array/required-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["export type TApiPropertyDescribeArrayRequiredProperties = {\n\tisArray: true;\n\tmaxItems: number;\n\tminItems: number;\n\tuniqueItems: boolean;\n};\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TApiPropertyDescribePropertiesBaseProperties } from "./properties/base-properties.type";
|
|
2
|
+
export type TApiPropertyDescribeBaseProperties = {
|
|
3
|
+
enum?: Record<string, number | string>;
|
|
4
|
+
isArray?: boolean;
|
|
5
|
+
nullable?: boolean;
|
|
6
|
+
properties?: TApiPropertyDescribePropertiesBaseProperties;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/property/describe/base-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { TApiPropertyDescribePropertiesBaseProperties } from \"./properties/base-properties.type\";\n\nexport type TApiPropertyDescribeBaseProperties = {\n\tenum?: Record<string, number | string>;\n\tisArray?: boolean;\n\tnullable?: boolean;\n\tproperties?: TApiPropertyDescribePropertiesBaseProperties;\n};\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TApiPropertyDescribeArrayOptionalProperties, TApiPropertyDescribeArrayRequiredProperties } from "./array";
|
|
2
|
+
import type { TApiPropertyDescribeBaseProperties } from "./base-properties.type";
|
|
3
|
+
import type { EApiPropertyDescribeType } from "../../../../../enum";
|
|
4
|
+
export type TApiPropertyDescribeBooleanProperties = TApiPropertyDescribeBaseProperties & {
|
|
5
|
+
description: string;
|
|
6
|
+
type: EApiPropertyDescribeType.BOOLEAN;
|
|
7
|
+
} & (TApiPropertyDescribeArrayOptionalProperties | TApiPropertyDescribeArrayRequiredProperties);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boolean-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/property/describe/boolean-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { TApiPropertyDescribeArrayOptionalProperties, TApiPropertyDescribeArrayRequiredProperties } from \"./array\";\nimport type { TApiPropertyDescribeBaseProperties } from \"./base-properties.type\";\n\nimport type { EApiPropertyDescribeType } from \"../../../../../enum\";\n\nexport type TApiPropertyDescribeBooleanProperties = TApiPropertyDescribeBaseProperties & {\n\tdescription: string;\n\ttype: EApiPropertyDescribeType.BOOLEAN;\n} & (TApiPropertyDescribeArrayOptionalProperties | TApiPropertyDescribeArrayRequiredProperties);\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TApiPropertyDescribeArrayOptionalProperties, TApiPropertyDescribeArrayRequiredProperties } from "./array";
|
|
2
|
+
import type { TApiPropertyDescribeBaseProperties } from "./base-properties.type";
|
|
3
|
+
import type { EApiPropertyDateType, EApiPropertyDescribeType } from "../../../../../enum";
|
|
4
|
+
export type TApiPropertyDescribeDateProperties = TApiPropertyDescribeBaseProperties & {
|
|
5
|
+
dataType: EApiPropertyDateType;
|
|
6
|
+
type: EApiPropertyDescribeType.DATE;
|
|
7
|
+
} & (TApiPropertyDescribeArrayOptionalProperties | TApiPropertyDescribeArrayRequiredProperties);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/property/describe/date-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { TApiPropertyDescribeArrayOptionalProperties, TApiPropertyDescribeArrayRequiredProperties } from \"./array\";\nimport type { TApiPropertyDescribeBaseProperties } from \"./base-properties.type\";\n\nimport type { EApiPropertyDateType, EApiPropertyDescribeType } from \"../../../../../enum\";\n\nexport type TApiPropertyDescribeDateProperties = TApiPropertyDescribeBaseProperties & {\n\tdataType: EApiPropertyDateType;\n\ttype: EApiPropertyDescribeType.DATE;\n} & (TApiPropertyDescribeArrayOptionalProperties | TApiPropertyDescribeArrayRequiredProperties);\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body-properties.type.js","sourceRoot":"/","sources":["type/decorator/api/property/describe/dto/body-properties.type.ts"],"names":[],"mappings":"","sourcesContent":["import type { TApiPropertyDescribeDtoProperties } from \"./properties.type\";\n\nimport type { EApiDtoType } from \"../../../../../../enum\";\n\nexport type TApiPropertyDescribeDtoBodyProperties = {\n\t[EApiDtoType.BODY]?: TApiPropertyDescribeDtoProperties;\n};\n"]}
|