@elsikora/nestjs-crud-automator 1.9.0-dev.2 → 1.10.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/class/api/index.d.ts +2 -1
- package/dist/cjs/class/api/subscriber/base.class.d.ts +3 -0
- package/dist/cjs/class/api/subscriber/base.class.js +7 -0
- package/dist/cjs/class/api/subscriber/base.class.js.map +1 -0
- package/dist/cjs/class/api/subscriber/discovery-service.class.d.ts +9 -0
- package/dist/cjs/class/api/subscriber/discovery-service.class.js +46 -0
- package/dist/cjs/class/api/subscriber/discovery-service.class.js.map +1 -0
- package/dist/cjs/class/api/subscriber/executor.class.d.ts +10 -0
- package/dist/cjs/class/api/subscriber/executor.class.js +52 -0
- package/dist/cjs/class/api/subscriber/executor.class.js.map +1 -0
- package/dist/cjs/class/api/subscriber/function-base.class.d.ts +5 -0
- package/dist/cjs/class/api/subscriber/function-base.class.js +9 -0
- package/dist/cjs/class/api/subscriber/function-base.class.js.map +1 -0
- package/dist/cjs/class/api/subscriber/index.d.ts +6 -0
- package/dist/cjs/class/api/subscriber/registry.class.d.ts +15 -0
- package/dist/cjs/class/api/subscriber/registry.class.js +57 -0
- package/dist/cjs/class/api/subscriber/registry.class.js.map +1 -0
- package/dist/cjs/class/api/subscriber/route-base.class.d.ts +5 -0
- package/dist/cjs/class/api/subscriber/route-base.class.js +9 -0
- package/dist/cjs/class/api/subscriber/route-base.class.js.map +1 -0
- package/dist/cjs/class/metadata-storage.class.js +1 -2
- package/dist/cjs/class/metadata-storage.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/property/factory/number.class.js +1 -0
- package/dist/cjs/class/utility/dto/property/factory/number.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/property/factory/relation.class.js +1 -0
- package/dist/cjs/class/utility/dto/property/factory/relation.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/body.class.js +1 -0
- package/dist/cjs/class/utility/dto/strategy/body.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/query.class.js +1 -0
- package/dist/cjs/class/utility/dto/strategy/query.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/request.class.js +1 -0
- package/dist/cjs/class/utility/dto/strategy/request.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/response.class.js +1 -0
- package/dist/cjs/class/utility/dto/strategy/response.class.js.map +1 -1
- package/dist/cjs/constant/decorator/api/controller.constant.d.ts +1 -0
- package/dist/cjs/constant/decorator/api/controller.constant.js +2 -0
- package/dist/cjs/constant/decorator/api/controller.constant.js.map +1 -1
- package/dist/cjs/constant/decorator/api/property-describe.constant.d.ts +1 -1
- package/dist/cjs/constant/decorator/api/property-describe.constant.js +2 -2
- package/dist/cjs/constant/decorator/api/property-describe.constant.js.map +1 -1
- package/dist/cjs/constant/decorator/api/service.constant.d.ts +3 -0
- package/dist/cjs/constant/decorator/api/service.constant.js +9 -0
- package/dist/cjs/constant/decorator/api/service.constant.js.map +1 -0
- package/dist/cjs/constant/decorator/api/subscriber.constant.d.ts +4 -0
- package/dist/cjs/constant/decorator/api/subscriber.constant.js +11 -0
- package/dist/cjs/constant/decorator/api/subscriber.constant.js.map +1 -0
- package/dist/cjs/constant/utility/dto/constant.js +1 -0
- package/dist/cjs/constant/utility/dto/constant.js.map +1 -1
- package/dist/cjs/constant/validator/has-paired-custom-suffixes-fields.constant.js +0 -1
- package/dist/cjs/constant/validator/has-paired-custom-suffixes-fields.constant.js.map +1 -1
- package/dist/cjs/decorator/api/controller/index.d.ts +1 -0
- package/dist/cjs/decorator/api/controller/observable.decorator.d.ts +4 -0
- package/dist/cjs/decorator/api/controller/observable.decorator.js +15 -0
- package/dist/cjs/decorator/api/controller/observable.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/function/create.decorator.d.ts +2 -2
- package/dist/cjs/decorator/api/function/create.decorator.js +45 -8
- package/dist/cjs/decorator/api/function/create.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/decorator.js +1 -1
- package/dist/cjs/decorator/api/function/decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/delete.decorator.d.ts +5 -1
- package/dist/cjs/decorator/api/function/delete.decorator.js +59 -7
- package/dist/cjs/decorator/api/function/delete.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get-list.decorator.d.ts +5 -1
- package/dist/cjs/decorator/api/function/get-list.decorator.js +56 -10
- package/dist/cjs/decorator/api/function/get-list.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get-many.decorator.d.ts +5 -1
- package/dist/cjs/decorator/api/function/get-many.decorator.js +53 -5
- package/dist/cjs/decorator/api/function/get-many.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get.decorator.d.ts +5 -1
- package/dist/cjs/decorator/api/function/get.decorator.js +53 -5
- package/dist/cjs/decorator/api/function/get.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/update.decorator.d.ts +5 -1
- package/dist/cjs/decorator/api/function/update.decorator.js +60 -11
- package/dist/cjs/decorator/api/function/update.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/index.d.ts +6 -3
- package/dist/cjs/decorator/api/method.decorator.js +1 -0
- package/dist/cjs/decorator/api/method.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/boolean.decorator.js +1 -2
- package/dist/cjs/decorator/api/property/boolean.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/copy.decorator.js +1 -1
- package/dist/cjs/decorator/api/property/copy.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/date.decorator.js +1 -2
- package/dist/cjs/decorator/api/property/date.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/describe.decorator.js +1 -1
- package/dist/cjs/decorator/api/property/describe.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/enum.decorator.js +0 -2
- package/dist/cjs/decorator/api/property/enum.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/number.decorator.js +1 -4
- package/dist/cjs/decorator/api/property/number.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/object.decorator.js +0 -4
- package/dist/cjs/decorator/api/property/object.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/string.decorator.js +4 -21
- package/dist/cjs/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/uuid.decorator.js +1 -2
- package/dist/cjs/decorator/api/property/uuid.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/service/index.d.ts +1 -0
- package/dist/cjs/decorator/api/service/observable.decorator.d.ts +4 -0
- package/dist/cjs/decorator/api/service/observable.decorator.js +15 -0
- package/dist/cjs/decorator/api/service/observable.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/service.decorator.js +3 -37
- package/dist/cjs/decorator/api/service.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/subscriber/function.decorator.d.ts +9 -0
- package/dist/cjs/decorator/api/subscriber/function.decorator.js +18 -0
- package/dist/cjs/decorator/api/subscriber/function.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/subscriber/index.d.ts +2 -0
- package/dist/cjs/decorator/api/subscriber/route.decorator.d.ts +9 -0
- package/dist/cjs/decorator/api/subscriber/route.decorator.js +18 -0
- package/dist/cjs/decorator/api/subscriber/route.decorator.js.map +1 -0
- package/dist/cjs/enum/decorator/api/index.d.ts +5 -4
- package/dist/cjs/enum/decorator/api/on-type.enum.d.ts +6 -0
- package/dist/cjs/enum/decorator/api/on-type.enum.js +10 -0
- package/dist/cjs/enum/decorator/api/on-type.enum.js.map +1 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/domain/enum/logger-log-level.enum.js +14 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/domain/enum/logger-log-level.enum.js.map +1 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/infrastructure/class/base/error.class.js +31 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/infrastructure/class/base/error.class.js.map +1 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/infrastructure/class/base/registry.class.js +222 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/infrastructure/class/base/registry.class.js.map +1 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/infrastructure/constant/console-logger-default-options.constant.js +11 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/infrastructure/constant/console-logger-default-options.constant.js.map +1 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/infrastructure/service/console-logger.service.js +131 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/infrastructure/service/console-logger.service.js.map +1 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/presentation/utility/create/registry.utility.js +19 -0
- package/dist/cjs/external/@elsikora/cladi/dist/esm/presentation/utility/create/registry.utility.js.map +1 -0
- package/dist/cjs/factory/api/controller.factory.d.ts +2 -1
- package/dist/cjs/factory/api/controller.factory.js +299 -105
- package/dist/cjs/factory/api/controller.factory.js.map +1 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +33 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interface/class/api/subscriber/execution-context.interface.d.ts +15 -0
- package/dist/cjs/interface/class/api/subscriber/function-execution-context.interface.d.ts +6 -0
- package/dist/cjs/interface/class/api/subscriber/function.interface.d.ts +31 -0
- package/dist/cjs/interface/class/api/subscriber/interface.d.ts +2 -0
- package/dist/cjs/interface/class/api/subscriber/route-execution-context.interface.d.ts +6 -0
- package/dist/cjs/interface/class/api/subscriber/route.interface.d.ts +39 -0
- package/dist/cjs/interface/decorator/api/function/create-executor-properties.interface.d.ts +2 -1
- package/dist/cjs/interface/decorator/api/function/delete-executor-properties.interface.d.ts +5 -4
- package/dist/cjs/interface/decorator/api/function/get-executor-properties.interface.d.ts +2 -1
- package/dist/cjs/interface/decorator/api/function/get-list-executor-properties.interface.d.ts +2 -1
- package/dist/cjs/interface/decorator/api/function/get-many-executor-properties.interface.d.ts +2 -1
- package/dist/cjs/interface/decorator/api/function/properties.interface.d.ts +2 -2
- package/dist/cjs/interface/decorator/api/function/update-executor-properties.interface.d.ts +5 -4
- package/dist/cjs/interface/decorator/api/index.d.ts +6 -5
- package/dist/cjs/interface/decorator/api/subscriber/function-properties.interface.d.ts +5 -0
- package/dist/cjs/interface/decorator/api/subscriber/index.d.ts +2 -0
- package/dist/cjs/interface/decorator/api/subscriber/route-properties.interface.d.ts +5 -0
- package/dist/cjs/module/api-subscriber.module.d.ts +2 -0
- package/dist/cjs/module/api-subscriber.module.js +17 -0
- package/dist/cjs/module/api-subscriber.module.js.map +1 -0
- package/dist/cjs/module/index.d.ts +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/utility/api/controller/apply-decorators.utility.js +1 -0
- package/dist/cjs/utility/api/controller/apply-decorators.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/apply-metadata.utility.js +1 -0
- package/dist/cjs/utility/api/controller/apply-metadata.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/get-list/transform-filter.utility.js +1 -0
- package/dist/cjs/utility/api/controller/get-list/transform-filter.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/get-list/transform-operation.utility.d.ts +5 -0
- package/dist/cjs/utility/api/controller/get-list/transform-operation.utility.js +5 -1
- package/dist/cjs/utility/api/controller/get-list/transform-operation.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/handle-request-relations.utility.js +4 -0
- package/dist/cjs/utility/api/controller/handle-request-relations.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/transform-data.utility.js +1 -0
- package/dist/cjs/utility/api/controller/transform-data.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/write-dto-swagger.utility.js +2 -4
- package/dist/cjs/utility/api/controller/write-dto-swagger.utility.js.map +1 -1
- package/dist/cjs/utility/api/filter-order-by-from-entity.utility.js +1 -1
- package/dist/cjs/utility/api/filter-order-by-from-entity.utility.js.map +1 -1
- package/dist/cjs/utility/dto/build-decorator.utility.js +1 -0
- package/dist/cjs/utility/dto/build-decorator.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate-dynamic.utility.js +1 -3
- package/dist/cjs/utility/dto/generate-dynamic.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate-exception.utility.js +1 -0
- package/dist/cjs/utility/dto/generate-exception.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate-filter-decorator.utility.js +1 -0
- package/dist/cjs/utility/dto/generate-filter-decorator.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate-get-list-response.utility.js +1 -0
- package/dist/cjs/utility/dto/generate-get-list-response.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate.utility.js +4 -18
- package/dist/cjs/utility/dto/generate.utility.js.map +1 -1
- package/dist/cjs/utility/dto/get-get-list-query-base-class.utility.js +1 -0
- package/dist/cjs/utility/dto/get-get-list-query-base-class.utility.js.map +1 -1
- package/dist/cjs/utility/dto/handle-date-property.utility.js +1 -0
- package/dist/cjs/utility/dto/handle-date-property.utility.js.map +1 -1
- package/dist/cjs/utility/dto/is-property-should-be-marked.utility.js +1 -0
- package/dist/cjs/utility/dto/is-property-should-be-marked.utility.js.map +1 -1
- package/dist/cjs/utility/dto/is-should-be-generated.utility.js +1 -0
- package/dist/cjs/utility/dto/is-should-be-generated.utility.js.map +1 -1
- package/dist/cjs/utility/logger.utility.js +3 -2
- package/dist/cjs/utility/logger.utility.js.map +1 -1
- package/dist/cjs/validator/all-or-none-of-listed-properties.validator.js +0 -1
- package/dist/cjs/validator/all-or-none-of-listed-properties.validator.js.map +1 -1
- package/dist/cjs/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js +0 -1
- package/dist/cjs/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js.map +1 -1
- package/dist/cjs/validator/has-at-least-one-of-listed-properties.validator.js +0 -1
- package/dist/cjs/validator/has-at-least-one-of-listed-properties.validator.js.map +1 -1
- package/dist/cjs/validator/has-at-least-one-property.validator.js +0 -1
- package/dist/cjs/validator/has-at-least-one-property.validator.js.map +1 -1
- package/dist/cjs/validator/has-paired-custom-suffixes-fields.validator.js +0 -1
- package/dist/cjs/validator/has-paired-custom-suffixes-fields.validator.js.map +1 -1
- package/dist/cjs/validator/must-match-one-of-schemas.validator.js +0 -1
- package/dist/cjs/validator/must-match-one-of-schemas.validator.js.map +1 -1
- package/dist/cjs/validator/only-one-of-listed-properties.validator.js +0 -1
- package/dist/cjs/validator/only-one-of-listed-properties.validator.js.map +1 -1
- package/dist/esm/class/api/index.d.ts +2 -1
- package/dist/esm/class/api/subscriber/base.class.d.ts +3 -0
- package/dist/esm/class/api/subscriber/base.class.js +5 -0
- package/dist/esm/class/api/subscriber/base.class.js.map +1 -0
- package/dist/esm/class/api/subscriber/discovery-service.class.d.ts +9 -0
- package/dist/esm/class/api/subscriber/discovery-service.class.js +46 -0
- package/dist/esm/class/api/subscriber/discovery-service.class.js.map +1 -0
- package/dist/esm/class/api/subscriber/executor.class.d.ts +10 -0
- package/dist/esm/class/api/subscriber/executor.class.js +50 -0
- package/dist/esm/class/api/subscriber/executor.class.js.map +1 -0
- package/dist/esm/class/api/subscriber/function-base.class.d.ts +5 -0
- package/dist/esm/class/api/subscriber/function-base.class.js +7 -0
- package/dist/esm/class/api/subscriber/function-base.class.js.map +1 -0
- package/dist/esm/class/api/subscriber/index.d.ts +6 -0
- package/dist/esm/class/api/subscriber/registry.class.d.ts +15 -0
- package/dist/esm/class/api/subscriber/registry.class.js +55 -0
- package/dist/esm/class/api/subscriber/registry.class.js.map +1 -0
- package/dist/esm/class/api/subscriber/route-base.class.d.ts +5 -0
- package/dist/esm/class/api/subscriber/route-base.class.js +7 -0
- package/dist/esm/class/api/subscriber/route-base.class.js.map +1 -0
- package/dist/esm/class/metadata-storage.class.js +1 -2
- package/dist/esm/class/metadata-storage.class.js.map +1 -1
- package/dist/esm/class/utility/dto/property/factory/number.class.js +1 -0
- package/dist/esm/class/utility/dto/property/factory/number.class.js.map +1 -1
- package/dist/esm/class/utility/dto/property/factory/relation.class.js +1 -0
- package/dist/esm/class/utility/dto/property/factory/relation.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/body.class.js +1 -0
- package/dist/esm/class/utility/dto/strategy/body.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/query.class.js +1 -0
- package/dist/esm/class/utility/dto/strategy/query.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/request.class.js +1 -0
- package/dist/esm/class/utility/dto/strategy/request.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/response.class.js +1 -0
- package/dist/esm/class/utility/dto/strategy/response.class.js.map +1 -1
- package/dist/esm/constant/decorator/api/controller.constant.d.ts +1 -0
- package/dist/esm/constant/decorator/api/controller.constant.js +2 -0
- package/dist/esm/constant/decorator/api/controller.constant.js.map +1 -1
- package/dist/esm/constant/decorator/api/property-describe.constant.d.ts +1 -1
- package/dist/esm/constant/decorator/api/property-describe.constant.js +2 -2
- package/dist/esm/constant/decorator/api/property-describe.constant.js.map +1 -1
- package/dist/esm/constant/decorator/api/service.constant.d.ts +3 -0
- package/dist/esm/constant/decorator/api/service.constant.js +7 -0
- package/dist/esm/constant/decorator/api/service.constant.js.map +1 -0
- package/dist/esm/constant/decorator/api/subscriber.constant.d.ts +4 -0
- package/dist/esm/constant/decorator/api/subscriber.constant.js +9 -0
- package/dist/esm/constant/decorator/api/subscriber.constant.js.map +1 -0
- package/dist/esm/constant/utility/dto/constant.js +1 -0
- package/dist/esm/constant/utility/dto/constant.js.map +1 -1
- package/dist/esm/constant/validator/has-paired-custom-suffixes-fields.constant.js +0 -1
- package/dist/esm/constant/validator/has-paired-custom-suffixes-fields.constant.js.map +1 -1
- package/dist/esm/decorator/api/controller/index.d.ts +1 -0
- package/dist/esm/decorator/api/controller/observable.decorator.d.ts +4 -0
- package/dist/esm/decorator/api/controller/observable.decorator.js +13 -0
- package/dist/esm/decorator/api/controller/observable.decorator.js.map +1 -0
- package/dist/esm/decorator/api/function/create.decorator.d.ts +2 -2
- package/dist/esm/decorator/api/function/create.decorator.js +45 -8
- package/dist/esm/decorator/api/function/create.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/decorator.js +1 -1
- package/dist/esm/decorator/api/function/decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/delete.decorator.d.ts +5 -1
- package/dist/esm/decorator/api/function/delete.decorator.js +59 -7
- package/dist/esm/decorator/api/function/delete.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get-list.decorator.d.ts +5 -1
- package/dist/esm/decorator/api/function/get-list.decorator.js +56 -10
- package/dist/esm/decorator/api/function/get-list.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get-many.decorator.d.ts +5 -1
- package/dist/esm/decorator/api/function/get-many.decorator.js +53 -5
- package/dist/esm/decorator/api/function/get-many.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get.decorator.d.ts +5 -1
- package/dist/esm/decorator/api/function/get.decorator.js +53 -5
- package/dist/esm/decorator/api/function/get.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/update.decorator.d.ts +5 -1
- package/dist/esm/decorator/api/function/update.decorator.js +60 -11
- package/dist/esm/decorator/api/function/update.decorator.js.map +1 -1
- package/dist/esm/decorator/api/index.d.ts +6 -3
- package/dist/esm/decorator/api/method.decorator.js +1 -0
- package/dist/esm/decorator/api/method.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/boolean.decorator.js +1 -2
- package/dist/esm/decorator/api/property/boolean.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/copy.decorator.js +1 -1
- package/dist/esm/decorator/api/property/copy.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/date.decorator.js +1 -2
- package/dist/esm/decorator/api/property/date.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/describe.decorator.js +1 -1
- package/dist/esm/decorator/api/property/describe.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/enum.decorator.js +0 -2
- package/dist/esm/decorator/api/property/enum.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/number.decorator.js +1 -4
- package/dist/esm/decorator/api/property/number.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/object.decorator.js +0 -4
- package/dist/esm/decorator/api/property/object.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/string.decorator.js +4 -21
- package/dist/esm/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/uuid.decorator.js +1 -2
- package/dist/esm/decorator/api/property/uuid.decorator.js.map +1 -1
- package/dist/esm/decorator/api/service/index.d.ts +1 -0
- package/dist/esm/decorator/api/service/observable.decorator.d.ts +4 -0
- package/dist/esm/decorator/api/service/observable.decorator.js +13 -0
- package/dist/esm/decorator/api/service/observable.decorator.js.map +1 -0
- package/dist/esm/decorator/api/service.decorator.js +3 -37
- package/dist/esm/decorator/api/service.decorator.js.map +1 -1
- package/dist/esm/decorator/api/subscriber/function.decorator.d.ts +9 -0
- package/dist/esm/decorator/api/subscriber/function.decorator.js +16 -0
- package/dist/esm/decorator/api/subscriber/function.decorator.js.map +1 -0
- package/dist/esm/decorator/api/subscriber/index.d.ts +2 -0
- package/dist/esm/decorator/api/subscriber/route.decorator.d.ts +9 -0
- package/dist/esm/decorator/api/subscriber/route.decorator.js +16 -0
- package/dist/esm/decorator/api/subscriber/route.decorator.js.map +1 -0
- package/dist/esm/enum/decorator/api/index.d.ts +5 -4
- package/dist/esm/enum/decorator/api/on-type.enum.d.ts +6 -0
- package/dist/esm/enum/decorator/api/on-type.enum.js +10 -0
- package/dist/esm/enum/decorator/api/on-type.enum.js.map +1 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/domain/enum/logger-log-level.enum.js +14 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/domain/enum/logger-log-level.enum.js.map +1 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/infrastructure/class/base/error.class.js +29 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/infrastructure/class/base/error.class.js.map +1 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/infrastructure/class/base/registry.class.js +220 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/infrastructure/class/base/registry.class.js.map +1 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/infrastructure/constant/console-logger-default-options.constant.js +9 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/infrastructure/constant/console-logger-default-options.constant.js.map +1 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/infrastructure/service/console-logger.service.js +129 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/infrastructure/service/console-logger.service.js.map +1 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/presentation/utility/create/registry.utility.js +17 -0
- package/dist/esm/external/@elsikora/cladi/dist/esm/presentation/utility/create/registry.utility.js.map +1 -0
- package/dist/esm/factory/api/controller.factory.d.ts +2 -1
- package/dist/esm/factory/api/controller.factory.js +299 -105
- package/dist/esm/factory/api/controller.factory.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +12 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interface/class/api/subscriber/execution-context.interface.d.ts +15 -0
- package/dist/esm/interface/class/api/subscriber/function-execution-context.interface.d.ts +6 -0
- package/dist/esm/interface/class/api/subscriber/function.interface.d.ts +31 -0
- package/dist/esm/interface/class/api/subscriber/interface.d.ts +2 -0
- package/dist/esm/interface/class/api/subscriber/route-execution-context.interface.d.ts +6 -0
- package/dist/esm/interface/class/api/subscriber/route.interface.d.ts +39 -0
- package/dist/esm/interface/decorator/api/function/create-executor-properties.interface.d.ts +2 -1
- package/dist/esm/interface/decorator/api/function/delete-executor-properties.interface.d.ts +5 -4
- package/dist/esm/interface/decorator/api/function/get-executor-properties.interface.d.ts +2 -1
- package/dist/esm/interface/decorator/api/function/get-list-executor-properties.interface.d.ts +2 -1
- package/dist/esm/interface/decorator/api/function/get-many-executor-properties.interface.d.ts +2 -1
- package/dist/esm/interface/decorator/api/function/properties.interface.d.ts +2 -2
- package/dist/esm/interface/decorator/api/function/update-executor-properties.interface.d.ts +5 -4
- package/dist/esm/interface/decorator/api/index.d.ts +6 -5
- package/dist/esm/interface/decorator/api/subscriber/function-properties.interface.d.ts +5 -0
- package/dist/esm/interface/decorator/api/subscriber/index.d.ts +2 -0
- package/dist/esm/interface/decorator/api/subscriber/route-properties.interface.d.ts +5 -0
- package/dist/esm/module/api-subscriber.module.d.ts +2 -0
- package/dist/esm/module/api-subscriber.module.js +17 -0
- package/dist/esm/module/api-subscriber.module.js.map +1 -0
- package/dist/esm/module/index.d.ts +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/utility/api/controller/apply-decorators.utility.js +1 -0
- package/dist/esm/utility/api/controller/apply-decorators.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/apply-metadata.utility.js +1 -0
- package/dist/esm/utility/api/controller/apply-metadata.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/get-list/transform-filter.utility.js +1 -0
- package/dist/esm/utility/api/controller/get-list/transform-filter.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/get-list/transform-operation.utility.d.ts +5 -0
- package/dist/esm/utility/api/controller/get-list/transform-operation.utility.js +5 -1
- package/dist/esm/utility/api/controller/get-list/transform-operation.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/handle-request-relations.utility.js +4 -0
- package/dist/esm/utility/api/controller/handle-request-relations.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/transform-data.utility.js +1 -0
- package/dist/esm/utility/api/controller/transform-data.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/write-dto-swagger.utility.js +2 -4
- package/dist/esm/utility/api/controller/write-dto-swagger.utility.js.map +1 -1
- package/dist/esm/utility/api/filter-order-by-from-entity.utility.js +1 -1
- package/dist/esm/utility/api/filter-order-by-from-entity.utility.js.map +1 -1
- package/dist/esm/utility/dto/build-decorator.utility.js +1 -0
- package/dist/esm/utility/dto/build-decorator.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate-dynamic.utility.js +1 -3
- package/dist/esm/utility/dto/generate-dynamic.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate-exception.utility.js +1 -0
- package/dist/esm/utility/dto/generate-exception.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate-filter-decorator.utility.js +1 -0
- package/dist/esm/utility/dto/generate-filter-decorator.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate-get-list-response.utility.js +1 -0
- package/dist/esm/utility/dto/generate-get-list-response.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate.utility.js +4 -18
- package/dist/esm/utility/dto/generate.utility.js.map +1 -1
- package/dist/esm/utility/dto/get-get-list-query-base-class.utility.js +1 -0
- package/dist/esm/utility/dto/get-get-list-query-base-class.utility.js.map +1 -1
- package/dist/esm/utility/dto/handle-date-property.utility.js +1 -0
- package/dist/esm/utility/dto/handle-date-property.utility.js.map +1 -1
- package/dist/esm/utility/dto/is-property-should-be-marked.utility.js +1 -0
- package/dist/esm/utility/dto/is-property-should-be-marked.utility.js.map +1 -1
- package/dist/esm/utility/dto/is-should-be-generated.utility.js +1 -0
- package/dist/esm/utility/dto/is-should-be-generated.utility.js.map +1 -1
- package/dist/esm/utility/logger.utility.js +3 -2
- package/dist/esm/utility/logger.utility.js.map +1 -1
- package/dist/esm/validator/all-or-none-of-listed-properties.validator.js +0 -1
- package/dist/esm/validator/all-or-none-of-listed-properties.validator.js.map +1 -1
- package/dist/esm/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js +0 -1
- package/dist/esm/validator/has-at-least-one-and-only-one-of-listed-properties.validator.js.map +1 -1
- package/dist/esm/validator/has-at-least-one-of-listed-properties.validator.js +0 -1
- package/dist/esm/validator/has-at-least-one-of-listed-properties.validator.js.map +1 -1
- package/dist/esm/validator/has-at-least-one-property.validator.js +0 -1
- package/dist/esm/validator/has-at-least-one-property.validator.js.map +1 -1
- package/dist/esm/validator/has-paired-custom-suffixes-fields.validator.js +0 -1
- package/dist/esm/validator/has-paired-custom-suffixes-fields.validator.js.map +1 -1
- package/dist/esm/validator/must-match-one-of-schemas.validator.js +0 -1
- package/dist/esm/validator/must-match-one-of-schemas.validator.js.map +1 -1
- package/dist/esm/validator/only-one-of-listed-properties.validator.js +0 -1
- package/dist/esm/validator/only-one-of-listed-properties.validator.js.map +1 -1
- package/package.json +21 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.decorator.js","sources":["../../../../../../src/decorator/api/property/number.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","ApiProperty","EApiPropertyNumberType","IsNumber","IsInt","Type","IsDivisibleBy","Min","Max","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Transform","NUMBER_CONSTANT","EApiPropertyDataType","isInt"],"mappings":"
|
|
1
|
+
{"version":3,"file":"number.decorator.js","sources":["../../../../../../src/decorator/api/property/number.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","ApiProperty","EApiPropertyNumberType","IsNumber","IsInt","Type","IsDivisibleBy","Min","Max","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Transform","NUMBER_CONSTANT","EApiPropertyDataType","isInt"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiEG;AACG,SAAU,iBAAiB,CAAC,UAAwC,EAAA;AACzE,IAAA,UAAU,CAAC,YAAY,KAAK,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC;IAE1E,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC;IAClF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC;AAE5F,IAAA,OAAOA,sBAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA;;;;;;;AAOG;AACH,SAAS,uBAAuB,CAAC,UAAwC,EAAA;AACxE,IAAA,MAAM,kBAAkB,GAAuB;A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AAC,QAAQ,IAAI,CAAC,EAAE;AACzD,YAAA,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC;;;AAIhF,IAAA,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;AACtB,QAAA,MAAM,IAAI,KAAK,CAAC,CAAA,yBAAA,EAA4B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAE,CAAA,CAAC;;AAElE;;;;"}
|
|
@@ -48,7 +48,6 @@ function ApiPropertyObject(options) {
|
|
|
48
48
|
function buildApiPropertyOptions(properties) {
|
|
49
49
|
const apiPropertyOptions = {
|
|
50
50
|
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
51
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
52
51
|
nullable: !!properties.isNullable,
|
|
53
52
|
};
|
|
54
53
|
if (Array.isArray(properties.type)) {
|
|
@@ -121,7 +120,6 @@ function buildObjectValidationDecorators(properties) {
|
|
|
121
120
|
const decorators = [];
|
|
122
121
|
const isArray = properties.isArray ?? false;
|
|
123
122
|
if (!properties.isResponse && properties.shouldValidateNested) {
|
|
124
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
125
123
|
decorators.push(classValidator.ValidateNested({ each: isArray }));
|
|
126
124
|
}
|
|
127
125
|
return decorators;
|
|
@@ -188,7 +186,6 @@ function buildTransformDecorators(properties) {
|
|
|
188
186
|
return { name: key, value };
|
|
189
187
|
}),
|
|
190
188
|
},
|
|
191
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
192
189
|
keepDiscriminatorProperty: properties.discriminator.shouldKeepDiscriminatorProperty,
|
|
193
190
|
}));
|
|
194
191
|
}
|
|
@@ -203,7 +200,6 @@ function buildTransformDecorators(properties) {
|
|
|
203
200
|
return { name: key, value: properties.generatedDTOs[value] };
|
|
204
201
|
}),
|
|
205
202
|
},
|
|
206
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
207
203
|
keepDiscriminatorProperty: properties.discriminator.shouldKeepDiscriminatorProperty,
|
|
208
204
|
}));
|
|
209
205
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.decorator.js","sources":["../../../../../../src/decorator/api/property/object.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","getSchemaPath","ApiProperty","ValidateNested","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","MustMatchOneOfSchemasValidator","Type"],"mappings":";;;;;;;;AAUA;;;;;;;;;;;;;;;;;;;;;;;;;AAyBG;AACG,SAAU,iBAAiB,CAAC,OAAqC,EAAA;IACtE,eAAe,CAAC,OAAO,CAAC;AAExB,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,OAAO,CAAC;IAC/E,MAAM,UAAU,GAA6B,eAAe,CAAC,OAAO,EAAE,kBAAkB,CAAC;AAEzF,IAAA,OAAOA,sBAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA;;;;;;AAMG;AACH,SAAS,uBAAuB,CAAC,UAAwC,EAAA;AACxE,IAAA,MAAM,kBAAkB,GAAuB;AAC9C,QAAA,WAAW,EAAE,CAAG,EAAA,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,EAAE,CAAE,CAAA
|
|
1
|
+
{"version":3,"file":"object.decorator.js","sources":["../../../../../../src/decorator/api/property/object.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","getSchemaPath","ApiProperty","ValidateNested","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","MustMatchOneOfSchemasValidator","Type"],"mappings":";;;;;;;;AAUA;;;;;;;;;;;;;;;;;;;;;;;;;AAyBG;AACG,SAAU,iBAAiB,CAAC,OAAqC,EAAA;IACtE,eAAe,CAAC,OAAO,CAAC;AAExB,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,OAAO,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UAAU,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,EAAE;AAC9C,YAAA,MAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC;;AAGrD,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;;AAGzC,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;;QAGzC,IAAI,UAAU,CAAC,aAAa,IAAI,UAAU,CAAC,QAAQ,IAAI,CAAC,EAAE;AACzD,YAAA,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC;;;AAIhF,IAAA,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;AACtB,QAAA,MAAM,IAAI,KAAK,CAAC,CAAA,yBAAA,EAA4B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAE,CAAA,CAAC;;AAElE;;;;"}
|
|
@@ -7,6 +7,7 @@ require('../../../enum/decorator/api/controller/load-relations-strategy.enum.js'
|
|
|
7
7
|
require('../../../enum/decorator/api/controller/request-transformer-type.enum.js');
|
|
8
8
|
require('../../../enum/decorator/api/dto-type.enum.js');
|
|
9
9
|
require('../../../enum/decorator/api/function/type.enum.js');
|
|
10
|
+
require('../../../enum/decorator/api/on-type.enum.js');
|
|
10
11
|
var dataType_enum = require('../../../enum/decorator/api/property/data-type.enum.js');
|
|
11
12
|
require('../../../enum/decorator/api/property/date/identifier.enum.js');
|
|
12
13
|
require('../../../enum/decorator/api/property/date/type.enum.js');
|
|
@@ -104,7 +105,6 @@ function ApiPropertyString(properties) {
|
|
|
104
105
|
function buildApiPropertyOptions(properties) {
|
|
105
106
|
const apiPropertyOptions = {
|
|
106
107
|
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
107
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
108
108
|
nullable: !!properties.isNullable,
|
|
109
109
|
type: dataType_enum.EApiPropertyDataType.STRING,
|
|
110
110
|
};
|
|
@@ -157,60 +157,45 @@ function buildFormatDecorators(properties) {
|
|
|
157
157
|
if (properties.isResponse === undefined || !properties.isResponse) {
|
|
158
158
|
switch (properties.format) {
|
|
159
159
|
case stringType_enum.EApiPropertyStringType.DATE: {
|
|
160
|
-
decorators.push(
|
|
161
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
162
|
-
classValidator.IsDate({ each: isArray }), classTransformer.Type(() => Date));
|
|
160
|
+
decorators.push(classValidator.IsDate({ each: isArray }), classTransformer.Type(() => Date));
|
|
163
161
|
break;
|
|
164
162
|
}
|
|
165
163
|
case stringType_enum.EApiPropertyStringType.EMAIL: {
|
|
166
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
167
164
|
decorators.push(classValidator.IsEmail({}, { each: isArray }));
|
|
168
165
|
break;
|
|
169
166
|
}
|
|
170
167
|
case stringType_enum.EApiPropertyStringType.IP: {
|
|
171
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
172
168
|
decorators.push(classValidator.IsIP(string_constant.STRING_PROPERTY_API_INTERFACE_CONSTANT.IP_VERSION, { each: isArray }));
|
|
173
169
|
break;
|
|
174
170
|
}
|
|
175
171
|
case stringType_enum.EApiPropertyStringType.LOWERCASE_STRING: {
|
|
176
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
177
172
|
decorators.push(classValidator.IsString({ each: isArray }), classValidator.IsLowercase({ each: isArray }));
|
|
178
173
|
break;
|
|
179
174
|
}
|
|
180
175
|
case stringType_enum.EApiPropertyStringType.REGEXP: {
|
|
181
176
|
decorators.push(classValidator.Validate(isRegularExpression_validator.IsRegularExpressionValidator, {
|
|
182
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
183
177
|
each: isArray,
|
|
184
178
|
message: `${String(properties.description)} must be valid regular expression string`,
|
|
185
|
-
}),
|
|
186
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
187
|
-
classValidator.Matches(new RegExp(properties.pattern.slice(1, -1)), { each: isArray }), classTransformer.Type(() => RegExp));
|
|
179
|
+
}), classValidator.Matches(new RegExp(properties.pattern.slice(1, -1)), { each: isArray }), classTransformer.Type(() => RegExp));
|
|
188
180
|
break;
|
|
189
181
|
}
|
|
190
182
|
case stringType_enum.EApiPropertyStringType.STRING: {
|
|
191
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
192
183
|
decorators.push(classValidator.IsString({ each: isArray }));
|
|
193
184
|
break;
|
|
194
185
|
}
|
|
195
186
|
case stringType_enum.EApiPropertyStringType.UPPERCASE_STRING: {
|
|
196
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
197
187
|
decorators.push(classValidator.IsString({ each: isArray }), classValidator.IsUppercase({ each: isArray }));
|
|
198
188
|
break;
|
|
199
189
|
}
|
|
200
190
|
case stringType_enum.EApiPropertyStringType.URL: {
|
|
201
191
|
decorators.push(classValidator.IsUrl({
|
|
202
192
|
protocols: ["https", "http"],
|
|
203
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
204
193
|
require_host: true,
|
|
205
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
206
194
|
require_protocol: true,
|
|
207
|
-
},
|
|
208
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
209
|
-
{ each: isArray }));
|
|
195
|
+
}, { each: isArray }));
|
|
210
196
|
break;
|
|
211
197
|
}
|
|
212
198
|
case stringType_enum.EApiPropertyStringType.UUID: {
|
|
213
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
214
199
|
decorators.push(classValidator.IsUUID("all", { each: isArray }));
|
|
215
200
|
break;
|
|
216
201
|
}
|
|
@@ -274,9 +259,7 @@ function buildStringValidationDecorators(properties) {
|
|
|
274
259
|
const decorators = [];
|
|
275
260
|
const isArray = properties.isArray ?? false;
|
|
276
261
|
if (properties.isResponse === false || properties.isResponse === undefined) {
|
|
277
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
278
262
|
classValidator.Matches(new RegExp(properties.pattern.slice(1, -1)), { each: isArray });
|
|
279
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
280
263
|
classValidator.Length(properties.minLength, properties.maxLength, { each: isArray });
|
|
281
264
|
}
|
|
282
265
|
return decorators;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.decorator.js","sources":["../../../../../../src/decorator/api/property/string.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","EApiPropertyDataType","ApiProperty","EApiPropertyStringType","IsDate","Type","IsEmail","IsIP","STRING_PROPERTY_API_INTERFACE_CONSTANT","IsString","IsLowercase","Validate","IsRegularExpressionValidator","Matches","IsUppercase","IsUrl","IsUUID","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Length"],"mappings":"
|
|
1
|
+
{"version":3,"file":"string.decorator.js","sources":["../../../../../../src/decorator/api/property/string.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","EApiPropertyDataType","ApiProperty","EApiPropertyStringType","IsDate","Type","IsEmail","IsIP","STRING_PROPERTY_API_INTERFACE_CONSTANT","IsString","IsLowercase","Validate","IsRegularExpressionValidator","Matches","IsUppercase","IsUrl","IsUUID","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Length"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkEG;AACG,SAAU,iBAAiB,CAAC,UAAwC,EAAA;IACzE,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC;IAClF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kB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AElE;;;;"}
|
|
@@ -7,6 +7,7 @@ require('../../../enum/decorator/api/controller/load-relations-strategy.enum.js'
|
|
|
7
7
|
require('../../../enum/decorator/api/controller/request-transformer-type.enum.js');
|
|
8
8
|
require('../../../enum/decorator/api/dto-type.enum.js');
|
|
9
9
|
require('../../../enum/decorator/api/function/type.enum.js');
|
|
10
|
+
require('../../../enum/decorator/api/on-type.enum.js');
|
|
10
11
|
var dataType_enum = require('../../../enum/decorator/api/property/data-type.enum.js');
|
|
11
12
|
require('../../../enum/decorator/api/property/date/identifier.enum.js');
|
|
12
13
|
require('../../../enum/decorator/api/property/date/type.enum.js');
|
|
@@ -79,7 +80,6 @@ function ApiPropertyUUID(properties) {
|
|
|
79
80
|
function buildApiPropertyOptions(uuidExample, properties) {
|
|
80
81
|
const apiPropertyOptions = {
|
|
81
82
|
description: `${String(properties.entity.name)} ${properties.description ?? "identifier"}`,
|
|
82
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
83
83
|
nullable: !!properties.isNullable,
|
|
84
84
|
type: dataType_enum.EApiPropertyDataType.STRING,
|
|
85
85
|
};
|
|
@@ -127,7 +127,6 @@ function buildDecorators(properties, apiPropertyOptions) {
|
|
|
127
127
|
function buildFormatDecorators(properties) {
|
|
128
128
|
const decorators = [];
|
|
129
129
|
const isArray = properties.isArray ?? false;
|
|
130
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
131
130
|
decorators.push(classValidator.IsUUID(undefined, { each: isArray }));
|
|
132
131
|
return decorators;
|
|
133
132
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.decorator.js","sources":["../../../../../../src/decorator/api/property/uuid.decorator.ts"],"sourcesContent":[null],"names":["randomUUID","applyDecorators","EApiPropertyDataType","EApiPropertyStringType","ApiProperty","IsUUID","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude"],"mappings":"
|
|
1
|
+
{"version":3,"file":"uuid.decorator.js","sources":["../../../../../../src/decorator/api/property/uuid.decorator.ts"],"sourcesContent":[null],"names":["randomUUID","applyDecorators","EApiPropertyDataType","EApiPropertyStringType","ApiProperty","IsUUID","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCG;AACG,SAAU,eAAe,CAAC,UAAsC,EAAA;AACrE,IAAA,MAAM,WAAW,GAAWA,sBAAU,EAAE;IAExC,eAAe,CAAC,UAAU,CAAC;IAE3B,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,WAAW,EAAE,UAAU,CAAC;IAC/F,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC;AAE5F,IAAA,OAAOC,sBAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA;;;;;;;;AAQG;AACH,SAAS,uBAAuB,CAAC,WAAmB,EAAE,UAAsC,EAAA;AAC3F,IAAA,MAAM,kBAAkB,GAAuB;AAC9C,QAAA,WAAW,EAAE,CAAG,EAAA,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,YAAY,CAAE,CAAA;AAE1F,QAAA,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,UAAU;QACjC,IAAI,EAAEC,kCAAoB,CAAC,MAAM;KACjC;AAED,IAAA,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,UAAU;AAEnD,IAAA,IAAI,UAAU,CAAC,OAAO,EAAE;AACvB,QAAA,kBAAkB,CAAC,OAAO,GAAG,IAAI;AACjC,QAAA,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ;AACjD,QAAA,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ;AACjD,QAAA,kBAAkB,CAAC,WAAW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uC,CAAC;;AAGrD,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;;AAGzC,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;;QAGzC,IAAI,UAAU,CAAC,aAAa,IAAI,UAAU,CAAC,QAAQ,IAAI,CAAC,EAAE;AACzD,YAAA,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC;;;AAIhF,IAAA,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;AACtB,QAAA,MAAM,IAAI,KAAK,CAAC,CAAA,uBAAA,EAA0B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAE,CAAA,CAAC;;AAEhE;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './observable.decorator';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var service_constant = require('../../../constant/decorator/api/service.constant.js');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
function ApiServiceObservable() {
|
|
9
|
+
return (target) => {
|
|
10
|
+
Reflect.defineMetadata(service_constant.SERVICE_API_DECORATOR_CONSTANT.OBSERVABLE_METADATA_KEY, true, target);
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
exports.ApiServiceObservable = ApiServiceObservable;
|
|
15
|
+
//# sourceMappingURL=observable.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observable.decorator.js","sources":["../../../../../../src/decorator/api/service/observable.decorator.ts"],"sourcesContent":[null],"names":["SERVICE_API_DECORATOR_CONSTANT"],"mappings":";;;;AAEA;;AAEG;SACa,oBAAoB,GAAA;IACnC,OAAO,CAAC,MAAc,KAAI;QACzB,OAAO,CAAC,cAAc,CAACA,+CAA8B,CAAC,uBAAuB,EAAE,IAAI,EAAE,MAAM,CAAC;AAC7F,KAAC;AACF;;;;"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
require('../../class/api/subscriber/executor.class.js');
|
|
4
|
+
var type_enum = require('../../enum/decorator/api/function/type.enum.js');
|
|
5
|
+
require('../../enum/decorator/api/on-type.enum.js');
|
|
3
6
|
require('../../enum/utility/error-string/action.enum.js');
|
|
4
7
|
require('../../enum/utility/error-string/composite-action.enum.js');
|
|
5
8
|
require('@nestjs/common');
|
|
@@ -10,7 +13,6 @@ require('../../enum/decorator/api/authentication-type.enum.js');
|
|
|
10
13
|
require('../../enum/decorator/api/controller/load-relations-strategy.enum.js');
|
|
11
14
|
require('../../enum/decorator/api/controller/request-transformer-type.enum.js');
|
|
12
15
|
require('../../enum/decorator/api/dto-type.enum.js');
|
|
13
|
-
var type_enum = require('../../enum/decorator/api/function/type.enum.js');
|
|
14
16
|
require('../../enum/decorator/api/property/data-type.enum.js');
|
|
15
17
|
require('../../enum/decorator/api/property/date/identifier.enum.js');
|
|
16
18
|
require('../../enum/decorator/api/property/date/type.enum.js');
|
|
@@ -35,9 +37,7 @@ function ApiService(properties) {
|
|
|
35
37
|
super(..._arguments);
|
|
36
38
|
if (!Object.prototype.hasOwnProperty.call(this, type_enum.EApiFunctionType.GET_LIST)) {
|
|
37
39
|
Object.defineProperty(this, type_enum.EApiFunctionType.GET_LIST, {
|
|
38
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
39
40
|
configurable: true,
|
|
40
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
41
41
|
enumerable: true,
|
|
42
42
|
value: async function (properties, relations, eventManager) {
|
|
43
43
|
const apiFunctionDecorator = decorator.ApiFunction({
|
|
@@ -45,27 +45,21 @@ function ApiService(properties) {
|
|
|
45
45
|
type: type_enum.EApiFunctionType.GET_LIST,
|
|
46
46
|
});
|
|
47
47
|
const descriptor = {
|
|
48
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
49
48
|
configurable: true,
|
|
50
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
51
49
|
enumerable: true,
|
|
52
50
|
// eslint-disable-next-line @elsikora/sonar/no-nested-functions
|
|
53
51
|
value: () => void 0,
|
|
54
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
55
52
|
writable: true,
|
|
56
53
|
};
|
|
57
54
|
const decoratedDescriptor = apiFunctionDecorator(this, type_enum.EApiFunctionType.GET_LIST, descriptor);
|
|
58
55
|
return decoratedDescriptor.value.call(this, properties, relations, eventManager);
|
|
59
56
|
},
|
|
60
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
61
57
|
writable: true,
|
|
62
58
|
});
|
|
63
59
|
}
|
|
64
60
|
if (!Object.prototype.hasOwnProperty.call(this, type_enum.EApiFunctionType.GET)) {
|
|
65
61
|
Object.defineProperty(this, type_enum.EApiFunctionType.GET, {
|
|
66
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
67
62
|
configurable: true,
|
|
68
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
69
63
|
enumerable: true,
|
|
70
64
|
value: async function (properties, eventManager) {
|
|
71
65
|
const apiFunctionDecorator = decorator.ApiFunction({
|
|
@@ -73,27 +67,21 @@ function ApiService(properties) {
|
|
|
73
67
|
type: type_enum.EApiFunctionType.GET,
|
|
74
68
|
});
|
|
75
69
|
const descriptor = {
|
|
76
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
77
70
|
configurable: true,
|
|
78
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
79
71
|
enumerable: true,
|
|
80
72
|
// eslint-disable-next-line @elsikora/sonar/no-nested-functions
|
|
81
73
|
value: () => void 0,
|
|
82
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
83
74
|
writable: true,
|
|
84
75
|
};
|
|
85
76
|
const decoratedDescriptor = apiFunctionDecorator(this, type_enum.EApiFunctionType.GET, descriptor);
|
|
86
77
|
return decoratedDescriptor.value.call(this, properties, eventManager);
|
|
87
78
|
},
|
|
88
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
89
79
|
writable: true,
|
|
90
80
|
});
|
|
91
81
|
}
|
|
92
82
|
if (!Object.prototype.hasOwnProperty.call(this, type_enum.EApiFunctionType.GET_MANY)) {
|
|
93
83
|
Object.defineProperty(this, type_enum.EApiFunctionType.GET_MANY, {
|
|
94
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
95
84
|
configurable: true,
|
|
96
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
97
85
|
enumerable: true,
|
|
98
86
|
value: async function (properties, eventManager) {
|
|
99
87
|
const apiFunctionDecorator = decorator.ApiFunction({
|
|
@@ -101,27 +89,21 @@ function ApiService(properties) {
|
|
|
101
89
|
type: type_enum.EApiFunctionType.GET_MANY,
|
|
102
90
|
});
|
|
103
91
|
const descriptor = {
|
|
104
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
105
92
|
configurable: true,
|
|
106
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
107
93
|
enumerable: true,
|
|
108
94
|
// eslint-disable-next-line @elsikora/sonar/no-nested-functions
|
|
109
95
|
value: () => void 0,
|
|
110
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
111
96
|
writable: true,
|
|
112
97
|
};
|
|
113
98
|
const decoratedDescriptor = apiFunctionDecorator(this, type_enum.EApiFunctionType.GET_MANY, descriptor);
|
|
114
99
|
return decoratedDescriptor.value.call(this, properties, eventManager);
|
|
115
100
|
},
|
|
116
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
117
101
|
writable: true,
|
|
118
102
|
});
|
|
119
103
|
}
|
|
120
104
|
if (!Object.prototype.hasOwnProperty.call(this, type_enum.EApiFunctionType.CREATE)) {
|
|
121
105
|
Object.defineProperty(this, type_enum.EApiFunctionType.CREATE, {
|
|
122
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
123
106
|
configurable: true,
|
|
124
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
125
107
|
enumerable: true,
|
|
126
108
|
value: async function (properties, eventManager) {
|
|
127
109
|
const apiFunctionDecorator = decorator.ApiFunction({
|
|
@@ -129,27 +111,21 @@ function ApiService(properties) {
|
|
|
129
111
|
type: type_enum.EApiFunctionType.CREATE,
|
|
130
112
|
});
|
|
131
113
|
const descriptor = {
|
|
132
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
133
114
|
configurable: true,
|
|
134
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
135
115
|
enumerable: true,
|
|
136
116
|
// eslint-disable-next-line @elsikora/sonar/no-nested-functions
|
|
137
117
|
value: () => void 0,
|
|
138
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
139
118
|
writable: true,
|
|
140
119
|
};
|
|
141
120
|
const decoratedDescriptor = apiFunctionDecorator(this, type_enum.EApiFunctionType.CREATE, descriptor);
|
|
142
121
|
return decoratedDescriptor.value.call(this, properties, eventManager);
|
|
143
122
|
},
|
|
144
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
145
123
|
writable: true,
|
|
146
124
|
});
|
|
147
125
|
}
|
|
148
126
|
if (!Object.prototype.hasOwnProperty.call(this, type_enum.EApiFunctionType.UPDATE)) {
|
|
149
127
|
Object.defineProperty(this, type_enum.EApiFunctionType.UPDATE, {
|
|
150
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
151
128
|
configurable: true,
|
|
152
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
153
129
|
enumerable: true,
|
|
154
130
|
value: async function (criteria, properties, eventManager) {
|
|
155
131
|
const apiFunctionDecorator = decorator.ApiFunction({
|
|
@@ -157,27 +133,21 @@ function ApiService(properties) {
|
|
|
157
133
|
type: type_enum.EApiFunctionType.UPDATE,
|
|
158
134
|
});
|
|
159
135
|
const descriptor = {
|
|
160
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
161
136
|
configurable: true,
|
|
162
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
163
137
|
enumerable: true,
|
|
164
138
|
// eslint-disable-next-line @elsikora/sonar/no-nested-functions
|
|
165
139
|
value: () => void 0,
|
|
166
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
167
140
|
writable: true,
|
|
168
141
|
};
|
|
169
142
|
const decoratedDescriptor = apiFunctionDecorator(this, type_enum.EApiFunctionType.UPDATE, descriptor);
|
|
170
143
|
return decoratedDescriptor.value.call(this, criteria, properties, eventManager);
|
|
171
144
|
},
|
|
172
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
173
145
|
writable: true,
|
|
174
146
|
});
|
|
175
147
|
}
|
|
176
148
|
if (!Object.prototype.hasOwnProperty.call(this, type_enum.EApiFunctionType.DELETE)) {
|
|
177
149
|
Object.defineProperty(this, type_enum.EApiFunctionType.DELETE, {
|
|
178
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
179
150
|
configurable: true,
|
|
180
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
181
151
|
enumerable: true,
|
|
182
152
|
value: async function (criteria, eventManager) {
|
|
183
153
|
const apiFunctionDecorator = decorator.ApiFunction({
|
|
@@ -185,19 +155,15 @@ function ApiService(properties) {
|
|
|
185
155
|
type: type_enum.EApiFunctionType.DELETE,
|
|
186
156
|
});
|
|
187
157
|
const descriptor = {
|
|
188
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
189
158
|
configurable: true,
|
|
190
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
191
159
|
enumerable: true,
|
|
192
160
|
// eslint-disable-next-line @elsikora/sonar/no-nested-functions
|
|
193
161
|
value: () => void 0,
|
|
194
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
195
162
|
writable: true,
|
|
196
163
|
};
|
|
197
164
|
const decoratedDescriptor = apiFunctionDecorator(this, type_enum.EApiFunctionType.DELETE, descriptor);
|
|
198
165
|
return decoratedDescriptor.value.call(this, criteria, eventManager);
|
|
199
166
|
},
|
|
200
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
201
167
|
writable: true,
|
|
202
168
|
});
|
|
203
169
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.decorator.js","sources":["../../../../../src/decorator/api/service.decorator.ts"],"sourcesContent":[null],"names":["EApiFunctionType","ApiFunction"],"mappings":"
|
|
1
|
+
{"version":3,"file":"service.decorator.js","sources":["../../../../../src/decorator/api/service.decorator.ts"],"sourcesContent":[null],"names":["EApiFunctionType","ApiFunction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AASA;;;;;AAKG;AACG,SAAU,UAAU,CAA2B,UAAoC,EAAA;AACxF,IAAA,MAAM,EAAE,MAAM,EAAE,GAA6B,UAAU;AAEvD,IAAA,OAAO,UAAuE,MAAiB,EAAA;QAC9F,MAAM,mBAAmB,GAAc,MAAM;AAE7C,QAAA,MAAM,aAAa,GAAmE,cAAc,mBAAmB,CAAA;AACtH,YAAA,WAAA,CAAY,GAAG,UAAsB,EAAA;;AAEpC,gBAAA,KAAK,CAAC,GAAG,UAAU,CAAC;AAEpB,gBAAA,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAEA,0BAAgB,CAAC,QAAQ,CAAC,EAAE;oBAC3E,MAAM,CAAC,cAAc,CAAC,IAAI,EAAEA,0BAAgB,CAAC,QAAQ,EAAE;AACtD,wBAAA,YAAY,EAAE,IAAI;AAElB,wBAAA,UAAU,EAAE,IAAI;AAChB,wBAAA,KAAK,EAAE,gBAAgB,UAA4C,EAAE,SAAkC,EAAE,YAA4B,EAAA;4BACpI,MAAM,oBA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AmB,CAAC;AAEzD,QAAA,OAAO,aAA0B;AAClC,KAAC;AACF;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IApiBaseEntity } from '../../../interface/api-base-entity.interface';
|
|
2
|
+
import { IApiFunctionSubscriberProperties } from '../../../interface/decorator/api/subscriber/index';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param properties
|
|
6
|
+
* @param properties.entity
|
|
7
|
+
* @param properties.priority
|
|
8
|
+
*/
|
|
9
|
+
export declare function ApiFunctionSubscriber<E extends IApiBaseEntity>(properties: IApiFunctionSubscriberProperties<E>): ClassDecorator;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var subscriber_constant = require('../../../constant/decorator/api/subscriber.constant.js');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @param properties
|
|
8
|
+
* @param properties.entity
|
|
9
|
+
* @param properties.priority
|
|
10
|
+
*/
|
|
11
|
+
function ApiFunctionSubscriber(properties) {
|
|
12
|
+
return (target) => {
|
|
13
|
+
Reflect.defineMetadata(subscriber_constant.SUBSCRIBER_API_DECORATOR_CONSTANT.FUNCTION_METADATA_KEY, properties, target);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.ApiFunctionSubscriber = ApiFunctionSubscriber;
|
|
18
|
+
//# sourceMappingURL=function.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function.decorator.js","sources":["../../../../../../src/decorator/api/subscriber/function.decorator.ts"],"sourcesContent":[null],"names":["SUBSCRIBER_API_DECORATOR_CONSTANT"],"mappings":";;;;AAIA;;;;;AAKG;AACG,SAAU,qBAAqB,CAA2B,UAA+C,EAAA;IAC9G,OAAO,CAAC,MAAc,KAAI;QACzB,OAAO,CAAC,cAAc,CAACA,qDAAiC,CAAC,qBAAqB,EAAE,UAAU,EAAE,MAAM,CAAC;AACpG,KAAC;AACF;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IApiBaseEntity } from '../../../interface/api-base-entity.interface';
|
|
2
|
+
import { IApiRouteSubscriberProperties } from '../../../interface/decorator/api/subscriber/index';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param properties
|
|
6
|
+
* @param properties.entity
|
|
7
|
+
* @param properties.priority
|
|
8
|
+
*/
|
|
9
|
+
export declare function ApiRouteSubscriber<E extends IApiBaseEntity>(properties: IApiRouteSubscriberProperties<E>): ClassDecorator;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var subscriber_constant = require('../../../constant/decorator/api/subscriber.constant.js');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @param properties
|
|
8
|
+
* @param properties.entity
|
|
9
|
+
* @param properties.priority
|
|
10
|
+
*/
|
|
11
|
+
function ApiRouteSubscriber(properties) {
|
|
12
|
+
return (target) => {
|
|
13
|
+
Reflect.defineMetadata(subscriber_constant.SUBSCRIBER_API_DECORATOR_CONSTANT.ROUTE_METADATA_KEY, properties, target);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.ApiRouteSubscriber = ApiRouteSubscriber;
|
|
18
|
+
//# sourceMappingURL=route.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route.decorator.js","sources":["../../../../../../src/decorator/api/subscriber/route.decorator.ts"],"sourcesContent":[null],"names":["SUBSCRIBER_API_DECORATOR_CONSTANT"],"mappings":";;;;AAIA;;;;;AAKG;AACG,SAAU,kBAAkB,CAA2B,UAA4C,EAAA;IACxG,OAAO,CAAC,MAAc,KAAI;QACzB,OAAO,CAAC,cAAc,CAACA,qDAAiC,CAAC,kBAAkB,EAAE,UAAU,EAAE,MAAM,CAAC;AACjG,KAAC;AACF;;;;"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from './action.enum';
|
|
2
|
+
export * from './authentication-type.enum';
|
|
3
3
|
export * from './controller/index';
|
|
4
|
-
export
|
|
4
|
+
export * from './dto-type.enum';
|
|
5
5
|
export * from './function/index';
|
|
6
|
+
export * from './on-type.enum';
|
|
6
7
|
export * from './property/index';
|
|
7
|
-
export
|
|
8
|
+
export * from './route-type.enum';
|