@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
|
@@ -46,7 +46,6 @@ function ApiPropertyObject(options) {
|
|
|
46
46
|
function buildApiPropertyOptions(properties) {
|
|
47
47
|
const apiPropertyOptions = {
|
|
48
48
|
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
49
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
50
49
|
nullable: !!properties.isNullable,
|
|
51
50
|
};
|
|
52
51
|
if (Array.isArray(properties.type)) {
|
|
@@ -119,7 +118,6 @@ function buildObjectValidationDecorators(properties) {
|
|
|
119
118
|
const decorators = [];
|
|
120
119
|
const isArray = properties.isArray ?? false;
|
|
121
120
|
if (!properties.isResponse && properties.shouldValidateNested) {
|
|
122
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
123
121
|
decorators.push(ValidateNested({ each: isArray }));
|
|
124
122
|
}
|
|
125
123
|
return decorators;
|
|
@@ -186,7 +184,6 @@ function buildTransformDecorators(properties) {
|
|
|
186
184
|
return { name: key, value };
|
|
187
185
|
}),
|
|
188
186
|
},
|
|
189
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
190
187
|
keepDiscriminatorProperty: properties.discriminator.shouldKeepDiscriminatorProperty,
|
|
191
188
|
}));
|
|
192
189
|
}
|
|
@@ -201,7 +198,6 @@ function buildTransformDecorators(properties) {
|
|
|
201
198
|
return { name: key, value: properties.generatedDTOs[value] };
|
|
202
199
|
}),
|
|
203
200
|
},
|
|
204
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
205
201
|
keepDiscriminatorProperty: properties.discriminator.shouldKeepDiscriminatorProperty,
|
|
206
202
|
}));
|
|
207
203
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.decorator.js","sources":["../../../../../../src/decorator/api/property/object.decorator.ts"],"sourcesContent":[null],"names":[],"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,OAAO,eAAe,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":[],"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,OAAO,eAAe,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;AAEhF,QAAA,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,UAAU;KACjC;IAED,IAAI,KAAK,CAAC,O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AAM,CAAC,MAAM,GAAG,CAAC,EAAE;AACtB,QAAA,MAAM,IAAI,KAAK,CAAC,CAAA,yBAAA,EAA4B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAE,CAAA,CAAC;;AAElE;;;;"}
|
|
@@ -5,6 +5,7 @@ import '../../../enum/decorator/api/controller/load-relations-strategy.enum.js';
|
|
|
5
5
|
import '../../../enum/decorator/api/controller/request-transformer-type.enum.js';
|
|
6
6
|
import '../../../enum/decorator/api/dto-type.enum.js';
|
|
7
7
|
import '../../../enum/decorator/api/function/type.enum.js';
|
|
8
|
+
import '../../../enum/decorator/api/on-type.enum.js';
|
|
8
9
|
import { EApiPropertyDataType } from '../../../enum/decorator/api/property/data-type.enum.js';
|
|
9
10
|
import '../../../enum/decorator/api/property/date/identifier.enum.js';
|
|
10
11
|
import '../../../enum/decorator/api/property/date/type.enum.js';
|
|
@@ -102,7 +103,6 @@ function ApiPropertyString(properties) {
|
|
|
102
103
|
function buildApiPropertyOptions(properties) {
|
|
103
104
|
const apiPropertyOptions = {
|
|
104
105
|
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
105
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
106
106
|
nullable: !!properties.isNullable,
|
|
107
107
|
type: EApiPropertyDataType.STRING,
|
|
108
108
|
};
|
|
@@ -155,60 +155,45 @@ function buildFormatDecorators(properties) {
|
|
|
155
155
|
if (properties.isResponse === undefined || !properties.isResponse) {
|
|
156
156
|
switch (properties.format) {
|
|
157
157
|
case EApiPropertyStringType.DATE: {
|
|
158
|
-
decorators.push(
|
|
159
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
160
|
-
IsDate({ each: isArray }), Type(() => Date));
|
|
158
|
+
decorators.push(IsDate({ each: isArray }), Type(() => Date));
|
|
161
159
|
break;
|
|
162
160
|
}
|
|
163
161
|
case EApiPropertyStringType.EMAIL: {
|
|
164
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
165
162
|
decorators.push(IsEmail({}, { each: isArray }));
|
|
166
163
|
break;
|
|
167
164
|
}
|
|
168
165
|
case EApiPropertyStringType.IP: {
|
|
169
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
170
166
|
decorators.push(IsIP(STRING_PROPERTY_API_INTERFACE_CONSTANT.IP_VERSION, { each: isArray }));
|
|
171
167
|
break;
|
|
172
168
|
}
|
|
173
169
|
case EApiPropertyStringType.LOWERCASE_STRING: {
|
|
174
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
175
170
|
decorators.push(IsString({ each: isArray }), IsLowercase({ each: isArray }));
|
|
176
171
|
break;
|
|
177
172
|
}
|
|
178
173
|
case EApiPropertyStringType.REGEXP: {
|
|
179
174
|
decorators.push(Validate(IsRegularExpressionValidator, {
|
|
180
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
181
175
|
each: isArray,
|
|
182
176
|
message: `${String(properties.description)} must be valid regular expression string`,
|
|
183
|
-
}),
|
|
184
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
185
|
-
Matches(new RegExp(properties.pattern.slice(1, -1)), { each: isArray }), Type(() => RegExp));
|
|
177
|
+
}), Matches(new RegExp(properties.pattern.slice(1, -1)), { each: isArray }), Type(() => RegExp));
|
|
186
178
|
break;
|
|
187
179
|
}
|
|
188
180
|
case EApiPropertyStringType.STRING: {
|
|
189
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
190
181
|
decorators.push(IsString({ each: isArray }));
|
|
191
182
|
break;
|
|
192
183
|
}
|
|
193
184
|
case EApiPropertyStringType.UPPERCASE_STRING: {
|
|
194
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
195
185
|
decorators.push(IsString({ each: isArray }), IsUppercase({ each: isArray }));
|
|
196
186
|
break;
|
|
197
187
|
}
|
|
198
188
|
case EApiPropertyStringType.URL: {
|
|
199
189
|
decorators.push(IsUrl({
|
|
200
190
|
protocols: ["https", "http"],
|
|
201
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
202
191
|
require_host: true,
|
|
203
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
204
192
|
require_protocol: true,
|
|
205
|
-
},
|
|
206
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
207
|
-
{ each: isArray }));
|
|
193
|
+
}, { each: isArray }));
|
|
208
194
|
break;
|
|
209
195
|
}
|
|
210
196
|
case EApiPropertyStringType.UUID: {
|
|
211
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
212
197
|
decorators.push(IsUUID("all", { each: isArray }));
|
|
213
198
|
break;
|
|
214
199
|
}
|
|
@@ -272,9 +257,7 @@ function buildStringValidationDecorators(properties) {
|
|
|
272
257
|
const decorators = [];
|
|
273
258
|
const isArray = properties.isArray ?? false;
|
|
274
259
|
if (properties.isResponse === false || properties.isResponse === undefined) {
|
|
275
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
276
260
|
Matches(new RegExp(properties.pattern.slice(1, -1)), { each: isArray });
|
|
277
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
278
261
|
Length(properties.minLength, properties.maxLength, { each: isArray });
|
|
279
262
|
}
|
|
280
263
|
return decorators;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.decorator.js","sources":["../../../../../../src/decorator/api/property/string.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"string.decorator.js","sources":["../../../../../../src/decorator/api/property/string.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkEG;AACG,SAAU,iBAAiB,CAAC,UAAwC,EAAA;IACzE,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC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C;;AAElE;;;;"}
|
|
@@ -5,6 +5,7 @@ import '../../../enum/decorator/api/controller/load-relations-strategy.enum.js';
|
|
|
5
5
|
import '../../../enum/decorator/api/controller/request-transformer-type.enum.js';
|
|
6
6
|
import '../../../enum/decorator/api/dto-type.enum.js';
|
|
7
7
|
import '../../../enum/decorator/api/function/type.enum.js';
|
|
8
|
+
import '../../../enum/decorator/api/on-type.enum.js';
|
|
8
9
|
import { EApiPropertyDataType } from '../../../enum/decorator/api/property/data-type.enum.js';
|
|
9
10
|
import '../../../enum/decorator/api/property/date/identifier.enum.js';
|
|
10
11
|
import '../../../enum/decorator/api/property/date/type.enum.js';
|
|
@@ -77,7 +78,6 @@ function ApiPropertyUUID(properties) {
|
|
|
77
78
|
function buildApiPropertyOptions(uuidExample, properties) {
|
|
78
79
|
const apiPropertyOptions = {
|
|
79
80
|
description: `${String(properties.entity.name)} ${properties.description ?? "identifier"}`,
|
|
80
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
81
81
|
nullable: !!properties.isNullable,
|
|
82
82
|
type: EApiPropertyDataType.STRING,
|
|
83
83
|
};
|
|
@@ -125,7 +125,6 @@ function buildDecorators(properties, apiPropertyOptions) {
|
|
|
125
125
|
function buildFormatDecorators(properties) {
|
|
126
126
|
const decorators = [];
|
|
127
127
|
const isArray = properties.isArray ?? false;
|
|
128
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
129
128
|
decorators.push(IsUUID(undefined, { each: isArray }));
|
|
130
129
|
return decorators;
|
|
131
130
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.decorator.js","sources":["../../../../../../src/decorator/api/property/uuid.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"uuid.decorator.js","sources":["../../../../../../src/decorator/api/property/uuid.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAWA;;;;;;;;;;;;;;;;;;;;;;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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,13 @@
|
|
|
1
|
+
import { SERVICE_API_DECORATOR_CONSTANT } from '../../../constant/decorator/api/service.constant.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
function ApiServiceObservable() {
|
|
7
|
+
return (target) => {
|
|
8
|
+
Reflect.defineMetadata(SERVICE_API_DECORATOR_CONSTANT.OBSERVABLE_METADATA_KEY, true, target);
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { ApiServiceObservable };
|
|
13
|
+
//# 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":[],"mappings":";;AAEA;;AAEG;SACa,oBAAoB,GAAA;IACnC,OAAO,CAAC,MAAc,KAAI;QACzB,OAAO,CAAC,cAAc,CAAC,8BAA8B,CAAC,uBAAuB,EAAE,IAAI,EAAE,MAAM,CAAC;AAC7F,KAAC;AACF;;;;"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import '../../class/api/subscriber/executor.class.js';
|
|
2
|
+
import { EApiFunctionType } from '../../enum/decorator/api/function/type.enum.js';
|
|
3
|
+
import '../../enum/decorator/api/on-type.enum.js';
|
|
1
4
|
import '../../enum/utility/error-string/action.enum.js';
|
|
2
5
|
import '../../enum/utility/error-string/composite-action.enum.js';
|
|
3
6
|
import '@nestjs/common';
|
|
@@ -8,7 +11,6 @@ import '../../enum/decorator/api/authentication-type.enum.js';
|
|
|
8
11
|
import '../../enum/decorator/api/controller/load-relations-strategy.enum.js';
|
|
9
12
|
import '../../enum/decorator/api/controller/request-transformer-type.enum.js';
|
|
10
13
|
import '../../enum/decorator/api/dto-type.enum.js';
|
|
11
|
-
import { EApiFunctionType } from '../../enum/decorator/api/function/type.enum.js';
|
|
12
14
|
import '../../enum/decorator/api/property/data-type.enum.js';
|
|
13
15
|
import '../../enum/decorator/api/property/date/identifier.enum.js';
|
|
14
16
|
import '../../enum/decorator/api/property/date/type.enum.js';
|
|
@@ -33,9 +35,7 @@ function ApiService(properties) {
|
|
|
33
35
|
super(..._arguments);
|
|
34
36
|
if (!Object.prototype.hasOwnProperty.call(this, EApiFunctionType.GET_LIST)) {
|
|
35
37
|
Object.defineProperty(this, EApiFunctionType.GET_LIST, {
|
|
36
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
37
38
|
configurable: true,
|
|
38
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
39
39
|
enumerable: true,
|
|
40
40
|
value: async function (properties, relations, eventManager) {
|
|
41
41
|
const apiFunctionDecorator = ApiFunction({
|
|
@@ -43,27 +43,21 @@ function ApiService(properties) {
|
|
|
43
43
|
type: EApiFunctionType.GET_LIST,
|
|
44
44
|
});
|
|
45
45
|
const descriptor = {
|
|
46
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
47
46
|
configurable: true,
|
|
48
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
49
47
|
enumerable: true,
|
|
50
48
|
// eslint-disable-next-line @elsikora/sonar/no-nested-functions
|
|
51
49
|
value: () => void 0,
|
|
52
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
53
50
|
writable: true,
|
|
54
51
|
};
|
|
55
52
|
const decoratedDescriptor = apiFunctionDecorator(this, EApiFunctionType.GET_LIST, descriptor);
|
|
56
53
|
return decoratedDescriptor.value.call(this, properties, relations, eventManager);
|
|
57
54
|
},
|
|
58
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
59
55
|
writable: true,
|
|
60
56
|
});
|
|
61
57
|
}
|
|
62
58
|
if (!Object.prototype.hasOwnProperty.call(this, EApiFunctionType.GET)) {
|
|
63
59
|
Object.defineProperty(this, EApiFunctionType.GET, {
|
|
64
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
65
60
|
configurable: true,
|
|
66
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
67
61
|
enumerable: true,
|
|
68
62
|
value: async function (properties, eventManager) {
|
|
69
63
|
const apiFunctionDecorator = ApiFunction({
|
|
@@ -71,27 +65,21 @@ function ApiService(properties) {
|
|
|
71
65
|
type: EApiFunctionType.GET,
|
|
72
66
|
});
|
|
73
67
|
const descriptor = {
|
|
74
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
75
68
|
configurable: true,
|
|
76
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
77
69
|
enumerable: true,
|
|
78
70
|
// eslint-disable-next-line @elsikora/sonar/no-nested-functions
|
|
79
71
|
value: () => void 0,
|
|
80
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
81
72
|
writable: true,
|
|
82
73
|
};
|
|
83
74
|
const decoratedDescriptor = apiFunctionDecorator(this, EApiFunctionType.GET, descriptor);
|
|
84
75
|
return decoratedDescriptor.value.call(this, properties, eventManager);
|
|
85
76
|
},
|
|
86
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
87
77
|
writable: true,
|
|
88
78
|
});
|
|
89
79
|
}
|
|
90
80
|
if (!Object.prototype.hasOwnProperty.call(this, EApiFunctionType.GET_MANY)) {
|
|
91
81
|
Object.defineProperty(this, EApiFunctionType.GET_MANY, {
|
|
92
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
93
82
|
configurable: true,
|
|
94
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
95
83
|
enumerable: true,
|
|
96
84
|
value: async function (properties, eventManager) {
|
|
97
85
|
const apiFunctionDecorator = ApiFunction({
|
|
@@ -99,27 +87,21 @@ function ApiService(properties) {
|
|
|
99
87
|
type: EApiFunctionType.GET_MANY,
|
|
100
88
|
});
|
|
101
89
|
const descriptor = {
|
|
102
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
103
90
|
configurable: true,
|
|
104
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
105
91
|
enumerable: true,
|
|
106
92
|
// eslint-disable-next-line @elsikora/sonar/no-nested-functions
|
|
107
93
|
value: () => void 0,
|
|
108
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
109
94
|
writable: true,
|
|
110
95
|
};
|
|
111
96
|
const decoratedDescriptor = apiFunctionDecorator(this, EApiFunctionType.GET_MANY, descriptor);
|
|
112
97
|
return decoratedDescriptor.value.call(this, properties, eventManager);
|
|
113
98
|
},
|
|
114
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
115
99
|
writable: true,
|
|
116
100
|
});
|
|
117
101
|
}
|
|
118
102
|
if (!Object.prototype.hasOwnProperty.call(this, EApiFunctionType.CREATE)) {
|
|
119
103
|
Object.defineProperty(this, EApiFunctionType.CREATE, {
|
|
120
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
121
104
|
configurable: true,
|
|
122
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
123
105
|
enumerable: true,
|
|
124
106
|
value: async function (properties, eventManager) {
|
|
125
107
|
const apiFunctionDecorator = ApiFunction({
|
|
@@ -127,27 +109,21 @@ function ApiService(properties) {
|
|
|
127
109
|
type: EApiFunctionType.CREATE,
|
|
128
110
|
});
|
|
129
111
|
const descriptor = {
|
|
130
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
131
112
|
configurable: true,
|
|
132
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
133
113
|
enumerable: true,
|
|
134
114
|
// eslint-disable-next-line @elsikora/sonar/no-nested-functions
|
|
135
115
|
value: () => void 0,
|
|
136
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
137
116
|
writable: true,
|
|
138
117
|
};
|
|
139
118
|
const decoratedDescriptor = apiFunctionDecorator(this, EApiFunctionType.CREATE, descriptor);
|
|
140
119
|
return decoratedDescriptor.value.call(this, properties, eventManager);
|
|
141
120
|
},
|
|
142
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
143
121
|
writable: true,
|
|
144
122
|
});
|
|
145
123
|
}
|
|
146
124
|
if (!Object.prototype.hasOwnProperty.call(this, EApiFunctionType.UPDATE)) {
|
|
147
125
|
Object.defineProperty(this, EApiFunctionType.UPDATE, {
|
|
148
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
149
126
|
configurable: true,
|
|
150
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
151
127
|
enumerable: true,
|
|
152
128
|
value: async function (criteria, properties, eventManager) {
|
|
153
129
|
const apiFunctionDecorator = ApiFunction({
|
|
@@ -155,27 +131,21 @@ function ApiService(properties) {
|
|
|
155
131
|
type: EApiFunctionType.UPDATE,
|
|
156
132
|
});
|
|
157
133
|
const descriptor = {
|
|
158
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
159
134
|
configurable: true,
|
|
160
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
161
135
|
enumerable: true,
|
|
162
136
|
// eslint-disable-next-line @elsikora/sonar/no-nested-functions
|
|
163
137
|
value: () => void 0,
|
|
164
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
165
138
|
writable: true,
|
|
166
139
|
};
|
|
167
140
|
const decoratedDescriptor = apiFunctionDecorator(this, EApiFunctionType.UPDATE, descriptor);
|
|
168
141
|
return decoratedDescriptor.value.call(this, criteria, properties, eventManager);
|
|
169
142
|
},
|
|
170
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
171
143
|
writable: true,
|
|
172
144
|
});
|
|
173
145
|
}
|
|
174
146
|
if (!Object.prototype.hasOwnProperty.call(this, EApiFunctionType.DELETE)) {
|
|
175
147
|
Object.defineProperty(this, EApiFunctionType.DELETE, {
|
|
176
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
177
148
|
configurable: true,
|
|
178
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
179
149
|
enumerable: true,
|
|
180
150
|
value: async function (criteria, eventManager) {
|
|
181
151
|
const apiFunctionDecorator = ApiFunction({
|
|
@@ -183,19 +153,15 @@ function ApiService(properties) {
|
|
|
183
153
|
type: EApiFunctionType.DELETE,
|
|
184
154
|
});
|
|
185
155
|
const descriptor = {
|
|
186
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
187
156
|
configurable: true,
|
|
188
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
189
157
|
enumerable: true,
|
|
190
158
|
// eslint-disable-next-line @elsikora/sonar/no-nested-functions
|
|
191
159
|
value: () => void 0,
|
|
192
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
193
160
|
writable: true,
|
|
194
161
|
};
|
|
195
162
|
const decoratedDescriptor = apiFunctionDecorator(this, EApiFunctionType.DELETE, descriptor);
|
|
196
163
|
return decoratedDescriptor.value.call(this, criteria, eventManager);
|
|
197
164
|
},
|
|
198
|
-
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
199
165
|
writable: true,
|
|
200
166
|
});
|
|
201
167
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.decorator.js","sources":["../../../../../src/decorator/api/service.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"service.decorator.js","sources":["../../../../../src/decorator/api/service.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AASA;;;;;A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E,YAA4B,EAAA;4BAC3F,MAAM,oBAAoB,GAAkG,WAAW,CAAC;gCACvI,MAAM;gCACN,IAAI,EAAE,gBAAgB,CAAC,MAAM;AAC7B,6BAAA,CAAC;AAEF,4BAAA,MAAM,UAAU,GAOZ;AACH,gCAAA,YAAY,EAAE,IAAI;AAElB,gCAAA,UAAU,EAAE,IAAI;;AAEhB,gCAAA,KAAK,EAAE,MAAM,MAAM;AAEnB,gCAAA,QAAQ,EAAE,IAAI;6BACd;AAED,4BAAA,MAAM,mBAAmB,GAAuB,oBAAoB,CAAC,IAAI,EAAE,gBAAgB,CAAC,MAAM,EAAE,UAAU,CAAC;AAE/G,4BAAA,OAAQ,mBAAmB,CAAC,KAA6G,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,YAAY,CAAC;yBAC5K;AAED,wBAAA,QAAQ,EAAE,IAAI;AACd,qBAAA,CAAC;;;SAGJ;AAED,QAAA,MAAM,CAAC,cAAc,CAAC,aAAa,EAAE,mBAAmB,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,16 @@
|
|
|
1
|
+
import { SUBSCRIBER_API_DECORATOR_CONSTANT } from '../../../constant/decorator/api/subscriber.constant.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param properties
|
|
6
|
+
* @param properties.entity
|
|
7
|
+
* @param properties.priority
|
|
8
|
+
*/
|
|
9
|
+
function ApiFunctionSubscriber(properties) {
|
|
10
|
+
return (target) => {
|
|
11
|
+
Reflect.defineMetadata(SUBSCRIBER_API_DECORATOR_CONSTANT.FUNCTION_METADATA_KEY, properties, target);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { ApiFunctionSubscriber };
|
|
16
|
+
//# 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":[],"mappings":";;AAIA;;;;;AAKG;AACG,SAAU,qBAAqB,CAA2B,UAA+C,EAAA;IAC9G,OAAO,CAAC,MAAc,KAAI;QACzB,OAAO,CAAC,cAAc,CAAC,iCAAiC,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,16 @@
|
|
|
1
|
+
import { SUBSCRIBER_API_DECORATOR_CONSTANT } from '../../../constant/decorator/api/subscriber.constant.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param properties
|
|
6
|
+
* @param properties.entity
|
|
7
|
+
* @param properties.priority
|
|
8
|
+
*/
|
|
9
|
+
function ApiRouteSubscriber(properties) {
|
|
10
|
+
return (target) => {
|
|
11
|
+
Reflect.defineMetadata(SUBSCRIBER_API_DECORATOR_CONSTANT.ROUTE_METADATA_KEY, properties, target);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { ApiRouteSubscriber };
|
|
16
|
+
//# 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":[],"mappings":";;AAIA;;;;;AAKG;AACG,SAAU,kBAAkB,CAA2B,UAA4C,EAAA;IACxG,OAAO,CAAC,MAAc,KAAI;QACzB,OAAO,CAAC,cAAc,CAAC,iCAAiC,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';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var EApiSubscriberOnType;
|
|
2
|
+
(function (EApiSubscriberOnType) {
|
|
3
|
+
EApiSubscriberOnType["AFTER"] = "After";
|
|
4
|
+
EApiSubscriberOnType["AFTER_ERROR"] = "AfterError";
|
|
5
|
+
EApiSubscriberOnType["BEFORE"] = "Before";
|
|
6
|
+
EApiSubscriberOnType["BEFORE_ERROR"] = "BeforeError";
|
|
7
|
+
})(EApiSubscriberOnType || (EApiSubscriberOnType = {}));
|
|
8
|
+
|
|
9
|
+
export { EApiSubscriberOnType };
|
|
10
|
+
//# sourceMappingURL=on-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"on-type.enum.js","sources":["../../../../../../src/enum/decorator/api/on-type.enum.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,oBAAoB,EAAA;AAC/B,IAAA,oBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,oBAAA,CAAA,aAAA,CAAA,GAAA,YAA0B;AAC1B,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,oBAAA,CAAA,cAAA,CAAA,GAAA,aAA4B;AAC7B,CAAC,EALW,oBAAoB,KAApB,oBAAoB,GAK/B,EAAA,CAAA,CAAA;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Log levels.
|
|
3
|
+
*/
|
|
4
|
+
var ELoggerLogLevel;
|
|
5
|
+
(function (ELoggerLogLevel) {
|
|
6
|
+
ELoggerLogLevel["DEBUG"] = "debug";
|
|
7
|
+
ELoggerLogLevel["ERROR"] = "error";
|
|
8
|
+
ELoggerLogLevel["INFO"] = "info";
|
|
9
|
+
ELoggerLogLevel["TRACE"] = "trace";
|
|
10
|
+
ELoggerLogLevel["WARN"] = "warn";
|
|
11
|
+
})(ELoggerLogLevel || (ELoggerLogLevel = {}));
|
|
12
|
+
|
|
13
|
+
export { ELoggerLogLevel };
|
|
14
|
+
//# sourceMappingURL=logger-log-level.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger-log-level.enum.js","sources":["../../../../../../../../../node_modules/@elsikora/cladi/dist/esm/domain/enum/logger-log-level.enum.js"],"sourcesContent":["/**\n * Log levels.\n */\nvar ELoggerLogLevel;\n(function (ELoggerLogLevel) {\n ELoggerLogLevel[\"DEBUG\"] = \"debug\";\n ELoggerLogLevel[\"ERROR\"] = \"error\";\n ELoggerLogLevel[\"INFO\"] = \"info\";\n ELoggerLogLevel[\"TRACE\"] = \"trace\";\n ELoggerLogLevel[\"WARN\"] = \"warn\";\n})(ELoggerLogLevel || (ELoggerLogLevel = {}));\n\nexport { ELoggerLogLevel };\n//# sourceMappingURL=logger-log-level.enum.js.map\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACG,IAAC;AACJ,CAAC,UAAU,eAAe,EAAE;AAC5B,IAAI,eAAe,CAAC,OAAO,CAAC,GAAG,OAAO;AACtC,IAAI,eAAe,CAAC,OAAO,CAAC,GAAG,OAAO;AACtC,IAAI,eAAe,CAAC,MAAM,CAAC,GAAG,MAAM;AACpC,IAAI,eAAe,CAAC,OAAO,CAAC,GAAG,OAAO;AACtC,IAAI,eAAe,CAAC,MAAM,CAAC,GAAG,MAAM;AACpC,CAAC,EAAE,eAAe,KAAK,eAAe,GAAG,EAAE,CAAC,CAAC;;;;","x_google_ignoreList":[0]}
|