@elsikora/nestjs-crud-automator 1.24.0-dev.1 → 2.0.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/README.md +213 -163
- package/dist/cjs/class/api/authorization/bootstrap-validation.service.class.d.ts +1 -0
- package/dist/cjs/class/api/authorization/bootstrap-validation.service.class.js +37 -3
- package/dist/cjs/class/api/authorization/bootstrap-validation.service.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/cache-invalidation.service.class.d.ts +7 -0
- package/dist/cjs/class/api/authorization/cache-invalidation.service.class.js +21 -0
- package/dist/cjs/class/api/authorization/cache-invalidation.service.class.js.map +1 -0
- package/dist/cjs/class/api/authorization/guard.class.d.ts +1 -2
- package/dist/cjs/class/api/authorization/guard.class.js +13 -18
- package/dist/cjs/class/api/authorization/guard.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/index.d.ts +1 -0
- package/dist/cjs/class/api/authorization/policy/executor.class.js +1 -2
- package/dist/cjs/class/api/authorization/policy/executor.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/policy/index.d.ts +1 -0
- package/dist/cjs/class/api/authorization/policy/registry.class.d.ts +3 -5
- package/dist/cjs/class/api/authorization/policy/registry.class.js +11 -34
- package/dist/cjs/class/api/authorization/policy/registry.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/policy/subscriber-wrapper.class.d.ts +10 -0
- package/dist/cjs/class/api/authorization/policy/subscriber-wrapper.class.js +23 -0
- package/dist/cjs/class/api/authorization/policy/subscriber-wrapper.class.js.map +1 -0
- package/dist/cjs/class/api/authorization/runtime.class.d.ts +3 -2
- package/dist/cjs/class/api/authorization/runtime.class.js +6 -5
- package/dist/cjs/class/api/authorization/runtime.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/simulator.class.d.ts +2 -0
- package/dist/cjs/class/api/authorization/simulator.class.js +1 -0
- package/dist/cjs/class/api/authorization/simulator.class.js.map +1 -1
- package/dist/cjs/class/api/function/context-storage.class.d.ts +7 -0
- package/dist/cjs/class/api/function/context-storage.class.js +16 -0
- package/dist/cjs/class/api/function/context-storage.class.js.map +1 -0
- package/dist/cjs/class/api/function/custom-runtime.class.d.ts +19 -0
- package/dist/cjs/class/api/function/custom-runtime.class.js +118 -0
- package/dist/cjs/class/api/function/custom-runtime.class.js.map +1 -0
- package/dist/cjs/class/api/function/index.d.ts +1 -0
- package/dist/cjs/class/api/function/transaction-scope.class.d.ts +6 -0
- package/dist/cjs/class/api/function/transaction-scope.class.js +34 -0
- package/dist/cjs/class/api/function/transaction-scope.class.js.map +1 -0
- package/dist/cjs/class/api/index.d.ts +2 -0
- package/dist/cjs/class/api/route-runtime.class.d.ts +21 -0
- package/dist/cjs/class/api/route-runtime.class.js +335 -0
- package/dist/cjs/class/api/route-runtime.class.js.map +1 -0
- package/dist/cjs/class/api/service-base.class.d.ts +9 -7
- package/dist/cjs/class/api/service-base.class.js +16 -6
- package/dist/cjs/class/api/service-base.class.js.map +1 -1
- package/dist/cjs/class/api/subscriber/executor.class.d.ts +7 -6
- package/dist/cjs/class/api/subscriber/executor.class.js +16 -12
- package/dist/cjs/class/api/subscriber/executor.class.js.map +1 -1
- package/dist/cjs/class/api/subscriber/index.d.ts +1 -0
- package/dist/cjs/class/api/subscriber/registry.class.d.ts +5 -2
- package/dist/cjs/class/api/subscriber/registry.class.js +26 -24
- package/dist/cjs/class/api/subscriber/registry.class.js.map +1 -1
- package/dist/cjs/class/api/subscriber/wrapper.class.d.ts +18 -0
- package/dist/cjs/class/api/subscriber/wrapper.class.js +23 -0
- package/dist/cjs/class/api/subscriber/wrapper.class.js.map +1 -0
- package/dist/cjs/class/utility/dto/exception/details/foreign-key-violation.class.js +5 -1
- package/dist/cjs/class/utility/dto/exception/details/foreign-key-violation.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/exception/details/unique-violation.class.js +5 -1
- package/dist/cjs/class/utility/dto/exception/details/unique-violation.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/property/factory/number.class.js +6 -2
- 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 +5 -1
- package/dist/cjs/class/utility/dto/property/factory/relation.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/body.class.js +5 -1
- package/dist/cjs/class/utility/dto/strategy/body.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/query.class.js +5 -1
- package/dist/cjs/class/utility/dto/strategy/query.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/request.class.js +5 -1
- package/dist/cjs/class/utility/dto/strategy/request.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/response.class.js +5 -1
- package/dist/cjs/class/utility/dto/strategy/response.class.js.map +1 -1
- package/dist/cjs/constant/decorator/api/method.constant.d.ts +2 -3
- package/dist/cjs/constant/decorator/api/method.constant.js +4 -6
- package/dist/cjs/constant/decorator/api/method.constant.js.map +1 -1
- package/dist/cjs/constant/utility/dto/constant.js +6 -2
- package/dist/cjs/constant/utility/dto/constant.js.map +1 -1
- package/dist/cjs/decorator/api/function/create.decorator.js +51 -24
- package/dist/cjs/decorator/api/function/create.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/custom.decorator.d.ts +9 -0
- package/dist/cjs/decorator/api/function/custom.decorator.js +47 -0
- package/dist/cjs/decorator/api/function/custom.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/function/decorator.js +16 -7
- package/dist/cjs/decorator/api/function/decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/delete.decorator.js +62 -41
- package/dist/cjs/decorator/api/function/delete.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get/decorator.js +40 -25
- package/dist/cjs/decorator/api/function/get/decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get/list.decorator.js +40 -25
- package/dist/cjs/decorator/api/function/get/list.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get/many.decorator.js +40 -25
- package/dist/cjs/decorator/api/function/get/many.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/index.d.ts +1 -0
- package/dist/cjs/decorator/api/function/update.decorator.js +62 -41
- package/dist/cjs/decorator/api/function/update.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/index.d.ts +1 -0
- package/dist/cjs/decorator/api/method.decorator.d.ts +5 -6
- package/dist/cjs/decorator/api/method.decorator.js +65 -325
- package/dist/cjs/decorator/api/method.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/boolean.decorator.js +23 -4
- package/dist/cjs/decorator/api/property/boolean.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/date.decorator.js +23 -4
- package/dist/cjs/decorator/api/property/date.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/enum.decorator.js +21 -3
- package/dist/cjs/decorator/api/property/enum.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/number.decorator.js +28 -5
- package/dist/cjs/decorator/api/property/number.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/object.decorator.js +21 -3
- package/dist/cjs/decorator/api/property/object.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/string.decorator.js +25 -8
- package/dist/cjs/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/uuid.decorator.js +26 -4
- package/dist/cjs/decorator/api/property/uuid.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/route-custom.decorator.d.ts +9 -0
- package/dist/cjs/decorator/api/route-custom.decorator.js +101 -0
- package/dist/cjs/decorator/api/route-custom.decorator.js.map +1 -0
- package/dist/cjs/decorator/api/service/decorator.js +28 -23
- package/dist/cjs/decorator/api/service/decorator.js.map +1 -1
- package/dist/cjs/enum/decorator/api/controller/index.d.ts +3 -1
- package/dist/cjs/enum/decorator/api/controller/relation-reference-shape.enum.d.ts +4 -0
- package/dist/cjs/enum/decorator/api/controller/relation-reference-shape.enum.js +8 -0
- package/dist/cjs/enum/decorator/api/controller/relation-reference-shape.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/controller/request/index.d.ts +2 -0
- package/dist/cjs/enum/decorator/api/controller/request/target.enum.d.ts +5 -0
- package/dist/cjs/enum/decorator/api/controller/request/target.enum.js +9 -0
- package/dist/cjs/enum/decorator/api/controller/request/target.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/controller/{request-transformer-type.enum.js → request/transformer-type.enum.js} +1 -1
- package/dist/cjs/enum/decorator/api/controller/request/transformer-type.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/controller/response-target.enum.d.ts +3 -0
- package/dist/cjs/enum/decorator/api/controller/response-target.enum.js +7 -0
- package/dist/cjs/enum/decorator/api/controller/response-target.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/dto-type.enum.d.ts +1 -1
- package/dist/cjs/enum/decorator/api/dto-type.enum.js +1 -1
- package/dist/cjs/enum/decorator/api/dto-type.enum.js.map +1 -1
- package/dist/cjs/enum/decorator/api/function-transaction-mode.enum.d.ts +6 -0
- package/dist/cjs/enum/decorator/api/function-transaction-mode.enum.js +10 -0
- package/dist/cjs/enum/decorator/api/function-transaction-mode.enum.js.map +1 -0
- package/dist/cjs/enum/decorator/api/function-type.enum.d.ts +1 -0
- package/dist/cjs/enum/decorator/api/function-type.enum.js +1 -0
- package/dist/cjs/enum/decorator/api/function-type.enum.js.map +1 -1
- package/dist/cjs/enum/decorator/api/index.d.ts +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/Observable.js +106 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/Observable.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/Subscriber.js +158 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/Subscriber.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/Subscription.js +148 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/Subscription.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/config.js +7 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/config.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/lastValueFrom.js +28 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/lastValueFrom.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/observable/from.js +11 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/observable/from.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/observable/innerFrom.js +154 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/observable/innerFrom.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js +66 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/operators/observeOn.js +15 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/operators/observeOn.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/operators/subscribeOn.js +13 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/operators/subscribeOn.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/scheduled/scheduleArray.js +23 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/scheduled/scheduleArray.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js +28 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js +37 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js +12 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/scheduled/schedulePromise.js +12 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/scheduled/schedulePromise.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js +11 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/scheduled/scheduled.js +42 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/scheduled/scheduled.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +20 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/symbol/iterator.js +13 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/symbol/iterator.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/symbol/observable.js +6 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/EmptyError.js +14 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/EmptyError.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +17 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/arrRemove.js +11 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/createErrorClass.js +15 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/errorContext.js +10 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/executeSchedule.js +22 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/executeSchedule.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/identity.js +8 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/identity.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/isArrayLike.js +6 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/isArrayLike.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/isAsyncIterable.js +10 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/isAsyncIterable.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/isFunction.js +8 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/isInteropObservable.js +11 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/isInteropObservable.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/isIterable.js +11 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/isIterable.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/isPromise.js +10 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/isPromise.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/isReadableStreamLike.js +44 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/isReadableStreamLike.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/lift.js +26 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/lift.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/noop.js +6 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/noop.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/pipe.js +18 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/pipe.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/reportUnhandledError.js +14 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/throwUnobservableError.js +8 -0
- package/dist/cjs/external/rxjs/dist/esm5/internal/util/throwUnobservableError.js.map +1 -0
- package/dist/cjs/external/tslib/tslib.es6.js +125 -0
- package/dist/cjs/external/tslib/tslib.es6.js.map +1 -1
- package/dist/cjs/factory/api-controller.factory.d.ts +1 -0
- package/dist/cjs/factory/api-controller.factory.js +42 -393
- package/dist/cjs/factory/api-controller.factory.js.map +1 -1
- package/dist/cjs/index.js +45 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interceptor/api-route-runtime.interceptor.d.ts +5 -0
- package/dist/cjs/interceptor/api-route-runtime.interceptor.js +29 -0
- package/dist/cjs/interceptor/api-route-runtime.interceptor.js.map +1 -0
- package/dist/cjs/interface/class/api/authorization/policy/registry.interface.d.ts +1 -0
- package/dist/cjs/interface/class/api/authorization/policy/subscriber/context/interface.d.ts +1 -1
- package/dist/cjs/interface/class/api/function/context/index.d.ts +2 -0
- package/dist/cjs/interface/class/api/function/context/interface.d.ts +10 -0
- package/dist/cjs/interface/class/api/function/context/operations.interface.d.ts +13 -0
- package/dist/cjs/interface/class/api/function/index.d.ts +1 -0
- package/dist/cjs/interface/class/api/index.d.ts +2 -0
- package/dist/cjs/interface/class/api/route/index.d.ts +1 -0
- package/dist/cjs/interface/class/api/route/runtime/context-data.interface.d.ts +10 -0
- package/dist/cjs/interface/class/api/route/runtime/custom-execution-options.interface.d.ts +9 -0
- package/dist/cjs/interface/class/api/route/runtime/generated/execution-options.interface.d.ts +14 -0
- package/dist/cjs/interface/class/api/route/runtime/generated/index.d.ts +2 -0
- package/dist/cjs/interface/class/api/route/runtime/generated/targets.interface.d.ts +12 -0
- package/dist/cjs/interface/class/api/route/runtime/http-request.interface.d.ts +8 -0
- package/dist/cjs/interface/class/api/route/runtime/index.d.ts +4 -0
- package/dist/cjs/interface/class/api/subscriber/function/error-execution-context.interface.d.ts +1 -0
- package/dist/cjs/interface/class/api/subscriber/function/execution/context.interface.d.ts +1 -0
- package/dist/cjs/interface/class/api/subscriber/function.interface.d.ts +4 -0
- package/dist/cjs/interface/class/api/subscriber/route/error-execution-context.interface.d.ts +2 -1
- package/dist/cjs/interface/class/api/subscriber/route/execution/context/data/extended.interface.d.ts +36 -0
- package/dist/cjs/interface/class/api/subscriber/route/execution/context/data/index.d.ts +2 -0
- package/dist/cjs/interface/class/api/subscriber/route/execution/context/data/interface.d.ts +32 -0
- package/dist/cjs/interface/class/api/subscriber/route/execution/context/index.d.ts +2 -0
- package/dist/cjs/interface/class/api/subscriber/route/execution/context/interface.d.ts +11 -0
- package/dist/cjs/interface/class/api/subscriber/route/execution/index.d.ts +1 -2
- package/dist/cjs/interface/class/api/subscriber/route.interface.d.ts +6 -2
- package/dist/cjs/interface/decorator/api/controller/properties/route/authentication.interface.d.ts +1 -1
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/generation.interface.d.ts +5 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/index.d.ts +5 -2
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/interface.d.ts +4 -7
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/relations/index.d.ts +4 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/relations/interface.d.ts +6 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/relations/reference.interface.d.ts +5 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/relations/request/index.d.ts +2 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/relations/request/interface.d.ts +6 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/relations/request/load.interface.d.ts +10 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/relations/response/index.d.ts +2 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/relations/response/interface.d.ts +6 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/relations/response/load.interface.d.ts +4 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/index.d.ts +2 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/interface.d.ts +6 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/target.interface.d.ts +6 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/response/index.d.ts +2 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/response/interface.d.ts +7 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/response/target.interface.d.ts +4 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/security.interface.d.ts +6 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/with/dto.interface.d.ts +1 -1
- package/dist/cjs/interface/decorator/api/function/create-executor-properties.interface.d.ts +1 -2
- package/dist/cjs/interface/decorator/api/function/custom-properties.interface.d.ts +9 -0
- package/dist/cjs/interface/decorator/api/function/delete-executor-properties.interface.d.ts +2 -3
- package/dist/cjs/interface/decorator/api/function/get/executor-properties.interface.d.ts +1 -2
- package/dist/cjs/interface/decorator/api/function/get/list-executor-properties.interface.d.ts +1 -2
- package/dist/cjs/interface/decorator/api/function/get/many-executor-properties.interface.d.ts +1 -2
- package/dist/cjs/interface/decorator/api/function/index.d.ts +1 -0
- package/dist/cjs/interface/decorator/api/function/properties.interface.d.ts +4 -0
- package/dist/cjs/interface/decorator/api/function/update-executor-properties.interface.d.ts +2 -3
- package/dist/cjs/interface/decorator/api/index.d.ts +1 -0
- package/dist/cjs/interface/decorator/api/method/index.d.ts +0 -2
- package/dist/cjs/interface/decorator/api/method/properties.interface.d.ts +4 -17
- package/dist/cjs/interface/decorator/api/route/custom-properties.interface.d.ts +6 -0
- package/dist/cjs/interface/decorator/api/route/documentation-properties.interface.d.ts +5 -0
- package/dist/cjs/interface/decorator/api/route/index.d.ts +7 -0
- package/dist/cjs/interface/decorator/api/route/metadata/index.d.ts +3 -0
- package/dist/cjs/interface/decorator/api/route/metadata/interface.d.ts +15 -0
- package/dist/cjs/interface/decorator/api/route/metadata/resource.interface.d.ts +6 -0
- package/dist/cjs/interface/decorator/api/route/metadata/route.interface.d.ts +7 -0
- package/dist/cjs/interface/decorator/api/route/response/index.d.ts +2 -0
- package/dist/cjs/interface/decorator/api/route/response/properties.interface.d.ts +9 -0
- package/dist/cjs/interface/decorator/api/route/response/serialization-properties.interface.d.ts +3 -0
- package/dist/cjs/interface/decorator/api/route/runtime-properties.interface.d.ts +11 -0
- package/dist/cjs/interface/decorator/api/route/security/authentication-properties.interface.d.ts +9 -0
- package/dist/cjs/interface/decorator/api/route/security/authorization-properties.interface.d.ts +4 -0
- package/dist/cjs/interface/decorator/api/route/security/index.d.ts +3 -0
- package/dist/cjs/interface/decorator/api/route/security/properties.interface.d.ts +6 -0
- package/dist/cjs/interface/decorator/api/route/throttling/default-properties.interface.d.ts +4 -0
- package/dist/cjs/interface/decorator/api/route/throttling/index.d.ts +2 -0
- package/dist/cjs/interface/decorator/api/route/throttling/properties.interface.d.ts +4 -0
- package/dist/cjs/interface/decorator/api/subscriber/function/filter.interface.d.ts +5 -0
- package/dist/cjs/interface/decorator/api/subscriber/function/index.d.ts +2 -0
- package/dist/cjs/interface/decorator/api/subscriber/function/properties.interface.d.ts +7 -0
- package/dist/cjs/interface/decorator/api/subscriber/index.d.ts +2 -2
- package/dist/cjs/interface/decorator/api/subscriber/route-properties.interface.d.ts +4 -0
- package/dist/cjs/module/api/authorization.module.js +18 -1
- package/dist/cjs/module/api/authorization.module.js.map +1 -1
- package/dist/cjs/package.json +0 -1
- package/dist/cjs/type/class/api/subscriber/route/after/create-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/route/after/delete-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/route/after/get/context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/route/after/get/list-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/route/after/partial-update-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/route/after/update-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/route/before/create-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/route/before/delete-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/route/before/get/context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/route/before/get/list-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/route/before/partial-update-context.type.d.ts +2 -2
- package/dist/cjs/type/class/api/subscriber/route/before/update-context.type.d.ts +2 -2
- package/dist/cjs/type/decorator/api/controller/properties/route/base/request/allowed-target.type.d.ts +9 -0
- package/dist/cjs/type/decorator/api/controller/properties/route/base/request/index.d.ts +1 -1
- package/dist/cjs/type/decorator/api/controller/properties/route/base/request/transformers.type.d.ts +7 -7
- package/dist/cjs/type/decorator/api/controller/properties/route/base/response-transformers.type.d.ts +6 -6
- package/dist/cjs/type/decorator/api/controller/transformer-config.type.d.ts +5 -5
- package/dist/cjs/type/decorator/api/function/properties.type.d.ts +5 -3
- package/dist/cjs/type/decorator/api/property/describe/dto/request-properties.type.d.ts +1 -1
- package/dist/cjs/type/decorator/api/property/describe/properties/base/properties.type.d.ts +4 -4
- package/dist/cjs/type/utility/dto/generate/allowed-combination.type.d.ts +4 -4
- package/dist/cjs/utility/api/controller/apply/decorators.utility.js +58 -26
- package/dist/cjs/utility/api/controller/apply/decorators.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/apply/metadata.utility.js +6 -2
- package/dist/cjs/utility/api/controller/apply/metadata.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/get/dto.utility.js +6 -2
- package/dist/cjs/utility/api/controller/get/dto.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/get-list/transform/filter.utility.js +5 -1
- package/dist/cjs/utility/api/controller/get-list/transform/filter.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/handle-request-relations.utility.d.ts +4 -4
- package/dist/cjs/utility/api/controller/handle-request-relations.utility.js +37 -11
- package/dist/cjs/utility/api/controller/handle-request-relations.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/index.d.ts +1 -0
- package/dist/cjs/utility/api/controller/serialize-route-response.utility.d.ts +14 -0
- package/dist/cjs/utility/api/controller/serialize-route-response.utility.js +29 -0
- package/dist/cjs/utility/api/controller/serialize-route-response.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/transform-data.utility.d.ts +8 -7
- package/dist/cjs/utility/api/controller/transform-data.utility.js +21 -18
- package/dist/cjs/utility/api/controller/transform-data.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/validate-request.utility.d.ts +3 -3
- package/dist/cjs/utility/api/controller/validate-request.utility.js +10 -9
- package/dist/cjs/utility/api/controller/validate-request.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/write/dto-swagger.utility.js +6 -2
- package/dist/cjs/utility/api/controller/write/dto-swagger.utility.js.map +1 -1
- package/dist/cjs/utility/api/function-transaction.utility.d.ts +20 -0
- package/dist/cjs/utility/api/function-transaction.utility.js +52 -0
- package/dist/cjs/utility/api/function-transaction.utility.js.map +1 -0
- package/dist/cjs/utility/api/index.d.ts +1 -0
- package/dist/cjs/utility/api/route/index.d.ts +1 -0
- package/dist/cjs/utility/api/route/response/index.d.ts +2 -0
- package/dist/cjs/utility/api/route/response/project-relation.utility.d.ts +11 -0
- package/dist/cjs/utility/api/route/response/project-relation.utility.js +75 -0
- package/dist/cjs/utility/api/route/response/project-relation.utility.js.map +1 -0
- package/dist/cjs/utility/api/route/response/serialize.utility.d.ts +11 -0
- package/dist/cjs/utility/api/route/response/serialize.utility.js +26 -0
- package/dist/cjs/utility/api/route/response/serialize.utility.js.map +1 -0
- package/dist/cjs/utility/dto/build-decorator.utility.js +5 -1
- package/dist/cjs/utility/dto/build-decorator.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate/core.utility.js +5 -1
- package/dist/cjs/utility/dto/generate/core.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate/dynamic.utility.js +5 -1
- package/dist/cjs/utility/dto/generate/dynamic.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate/exception.utility.js +5 -1
- package/dist/cjs/utility/dto/generate/exception.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate/filter-decorator.utility.js +5 -1
- package/dist/cjs/utility/dto/generate/filter-decorator.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate/get-list-response.utility.js +5 -1
- package/dist/cjs/utility/dto/generate/get-list-response.utility.js.map +1 -1
- package/dist/cjs/utility/dto/get/get-list-query-base-class.utility.js +5 -1
- 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 +5 -1
- 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 +7 -3
- 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 +8 -4
- package/dist/cjs/utility/dto/is/should-be-generated.utility.js.map +1 -1
- package/dist/esm/class/api/authorization/bootstrap-validation.service.class.d.ts +1 -0
- package/dist/esm/class/api/authorization/bootstrap-validation.service.class.js +37 -3
- package/dist/esm/class/api/authorization/bootstrap-validation.service.class.js.map +1 -1
- package/dist/esm/class/api/authorization/cache-invalidation.service.class.d.ts +7 -0
- package/dist/esm/class/api/authorization/cache-invalidation.service.class.js +21 -0
- package/dist/esm/class/api/authorization/cache-invalidation.service.class.js.map +1 -0
- package/dist/esm/class/api/authorization/guard.class.d.ts +1 -2
- package/dist/esm/class/api/authorization/guard.class.js +13 -18
- package/dist/esm/class/api/authorization/guard.class.js.map +1 -1
- package/dist/esm/class/api/authorization/index.d.ts +1 -0
- package/dist/esm/class/api/authorization/policy/executor.class.js +1 -2
- package/dist/esm/class/api/authorization/policy/executor.class.js.map +1 -1
- package/dist/esm/class/api/authorization/policy/index.d.ts +1 -0
- package/dist/esm/class/api/authorization/policy/registry.class.d.ts +3 -5
- package/dist/esm/class/api/authorization/policy/registry.class.js +10 -33
- package/dist/esm/class/api/authorization/policy/registry.class.js.map +1 -1
- package/dist/esm/class/api/authorization/policy/subscriber-wrapper.class.d.ts +10 -0
- package/dist/esm/class/api/authorization/policy/subscriber-wrapper.class.js +21 -0
- package/dist/esm/class/api/authorization/policy/subscriber-wrapper.class.js.map +1 -0
- package/dist/esm/class/api/authorization/runtime.class.d.ts +3 -2
- package/dist/esm/class/api/authorization/runtime.class.js +6 -5
- package/dist/esm/class/api/authorization/runtime.class.js.map +1 -1
- package/dist/esm/class/api/authorization/simulator.class.d.ts +2 -0
- package/dist/esm/class/api/authorization/simulator.class.js +1 -0
- package/dist/esm/class/api/authorization/simulator.class.js.map +1 -1
- package/dist/esm/class/api/function/context-storage.class.d.ts +7 -0
- package/dist/esm/class/api/function/context-storage.class.js +14 -0
- package/dist/esm/class/api/function/context-storage.class.js.map +1 -0
- package/dist/esm/class/api/function/custom-runtime.class.d.ts +19 -0
- package/dist/esm/class/api/function/custom-runtime.class.js +116 -0
- package/dist/esm/class/api/function/custom-runtime.class.js.map +1 -0
- package/dist/esm/class/api/function/index.d.ts +1 -0
- package/dist/esm/class/api/function/transaction-scope.class.d.ts +6 -0
- package/dist/esm/class/api/function/transaction-scope.class.js +32 -0
- package/dist/esm/class/api/function/transaction-scope.class.js.map +1 -0
- package/dist/esm/class/api/index.d.ts +2 -0
- package/dist/esm/class/api/route-runtime.class.d.ts +21 -0
- package/dist/esm/class/api/route-runtime.class.js +333 -0
- package/dist/esm/class/api/route-runtime.class.js.map +1 -0
- package/dist/esm/class/api/service-base.class.d.ts +9 -7
- package/dist/esm/class/api/service-base.class.js +16 -6
- package/dist/esm/class/api/service-base.class.js.map +1 -1
- package/dist/esm/class/api/subscriber/executor.class.d.ts +7 -6
- package/dist/esm/class/api/subscriber/executor.class.js +16 -12
- package/dist/esm/class/api/subscriber/executor.class.js.map +1 -1
- package/dist/esm/class/api/subscriber/index.d.ts +1 -0
- package/dist/esm/class/api/subscriber/registry.class.d.ts +5 -2
- package/dist/esm/class/api/subscriber/registry.class.js +24 -22
- package/dist/esm/class/api/subscriber/registry.class.js.map +1 -1
- package/dist/esm/class/api/subscriber/wrapper.class.d.ts +18 -0
- package/dist/esm/class/api/subscriber/wrapper.class.js +21 -0
- package/dist/esm/class/api/subscriber/wrapper.class.js.map +1 -0
- package/dist/esm/class/utility/dto/exception/details/foreign-key-violation.class.js +5 -1
- package/dist/esm/class/utility/dto/exception/details/foreign-key-violation.class.js.map +1 -1
- package/dist/esm/class/utility/dto/exception/details/unique-violation.class.js +5 -1
- package/dist/esm/class/utility/dto/exception/details/unique-violation.class.js.map +1 -1
- package/dist/esm/class/utility/dto/property/factory/number.class.js +6 -2
- 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 +5 -1
- package/dist/esm/class/utility/dto/property/factory/relation.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/body.class.js +5 -1
- package/dist/esm/class/utility/dto/strategy/body.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/query.class.js +5 -1
- package/dist/esm/class/utility/dto/strategy/query.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/request.class.js +5 -1
- package/dist/esm/class/utility/dto/strategy/request.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/response.class.js +5 -1
- package/dist/esm/class/utility/dto/strategy/response.class.js.map +1 -1
- package/dist/esm/constant/decorator/api/method.constant.d.ts +2 -3
- package/dist/esm/constant/decorator/api/method.constant.js +4 -6
- package/dist/esm/constant/decorator/api/method.constant.js.map +1 -1
- package/dist/esm/constant/utility/dto/constant.js +6 -2
- package/dist/esm/constant/utility/dto/constant.js.map +1 -1
- package/dist/esm/decorator/api/function/create.decorator.js +51 -24
- package/dist/esm/decorator/api/function/create.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/custom.decorator.d.ts +9 -0
- package/dist/esm/decorator/api/function/custom.decorator.js +45 -0
- package/dist/esm/decorator/api/function/custom.decorator.js.map +1 -0
- package/dist/esm/decorator/api/function/decorator.js +16 -7
- package/dist/esm/decorator/api/function/decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/delete.decorator.js +62 -41
- package/dist/esm/decorator/api/function/delete.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get/decorator.js +40 -25
- package/dist/esm/decorator/api/function/get/decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get/list.decorator.js +40 -25
- package/dist/esm/decorator/api/function/get/list.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get/many.decorator.js +40 -25
- package/dist/esm/decorator/api/function/get/many.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/index.d.ts +1 -0
- package/dist/esm/decorator/api/function/update.decorator.js +62 -41
- package/dist/esm/decorator/api/function/update.decorator.js.map +1 -1
- package/dist/esm/decorator/api/index.d.ts +1 -0
- package/dist/esm/decorator/api/method.decorator.d.ts +5 -6
- package/dist/esm/decorator/api/method.decorator.js +66 -326
- package/dist/esm/decorator/api/method.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/boolean.decorator.js +24 -5
- package/dist/esm/decorator/api/property/boolean.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/date.decorator.js +24 -5
- package/dist/esm/decorator/api/property/date.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/enum.decorator.js +22 -4
- package/dist/esm/decorator/api/property/enum.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/number.decorator.js +30 -7
- package/dist/esm/decorator/api/property/number.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/object.decorator.js +22 -4
- package/dist/esm/decorator/api/property/object.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/string.decorator.js +26 -9
- package/dist/esm/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/uuid.decorator.js +27 -5
- package/dist/esm/decorator/api/property/uuid.decorator.js.map +1 -1
- package/dist/esm/decorator/api/route-custom.decorator.d.ts +9 -0
- package/dist/esm/decorator/api/route-custom.decorator.js +99 -0
- package/dist/esm/decorator/api/route-custom.decorator.js.map +1 -0
- package/dist/esm/decorator/api/service/decorator.js +28 -23
- package/dist/esm/decorator/api/service/decorator.js.map +1 -1
- package/dist/esm/enum/decorator/api/controller/index.d.ts +3 -1
- package/dist/esm/enum/decorator/api/controller/relation-reference-shape.enum.d.ts +4 -0
- package/dist/esm/enum/decorator/api/controller/relation-reference-shape.enum.js +8 -0
- package/dist/esm/enum/decorator/api/controller/relation-reference-shape.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/controller/request/index.d.ts +2 -0
- package/dist/esm/enum/decorator/api/controller/request/target.enum.d.ts +5 -0
- package/dist/esm/enum/decorator/api/controller/request/target.enum.js +9 -0
- package/dist/esm/enum/decorator/api/controller/request/target.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/controller/{request-transformer-type.enum.js → request/transformer-type.enum.js} +1 -1
- package/dist/esm/enum/decorator/api/controller/request/transformer-type.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/controller/response-target.enum.d.ts +3 -0
- package/dist/esm/enum/decorator/api/controller/response-target.enum.js +7 -0
- package/dist/esm/enum/decorator/api/controller/response-target.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/dto-type.enum.d.ts +1 -1
- package/dist/esm/enum/decorator/api/dto-type.enum.js +1 -1
- package/dist/esm/enum/decorator/api/dto-type.enum.js.map +1 -1
- package/dist/esm/enum/decorator/api/function-transaction-mode.enum.d.ts +6 -0
- package/dist/esm/enum/decorator/api/function-transaction-mode.enum.js +10 -0
- package/dist/esm/enum/decorator/api/function-transaction-mode.enum.js.map +1 -0
- package/dist/esm/enum/decorator/api/function-type.enum.d.ts +1 -0
- package/dist/esm/enum/decorator/api/function-type.enum.js +1 -0
- package/dist/esm/enum/decorator/api/function-type.enum.js.map +1 -1
- package/dist/esm/enum/decorator/api/index.d.ts +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/Observable.js +104 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/Observable.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/Subscriber.js +154 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/Subscriber.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/Subscription.js +145 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/Subscription.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/config.js +5 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/config.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/lastValueFrom.js +26 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/lastValueFrom.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/observable/from.js +9 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/observable/from.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/observable/innerFrom.js +146 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/observable/innerFrom.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js +63 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/operators/observeOn.js +13 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/operators/observeOn.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/operators/subscribeOn.js +11 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/operators/subscribeOn.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/scheduled/scheduleArray.js +21 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/scheduled/scheduleArray.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js +26 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js +35 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js +10 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/scheduled/schedulePromise.js +10 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/scheduled/schedulePromise.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js +9 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/scheduled/scheduled.js +40 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/scheduled/scheduled.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +18 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/symbol/iterator.js +10 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/symbol/iterator.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/symbol/observable.js +4 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/EmptyError.js +12 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/EmptyError.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +15 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/arrRemove.js +9 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/createErrorClass.js +13 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/errorContext.js +8 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/executeSchedule.js +20 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/executeSchedule.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/identity.js +6 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/identity.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/isArrayLike.js +4 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/isArrayLike.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/isAsyncIterable.js +8 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/isAsyncIterable.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/isFunction.js +6 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/isInteropObservable.js +9 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/isInteropObservable.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/isIterable.js +9 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/isIterable.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/isPromise.js +8 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/isPromise.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/isReadableStreamLike.js +41 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/isReadableStreamLike.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/lift.js +23 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/lift.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/noop.js +4 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/noop.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/pipe.js +16 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/pipe.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/reportUnhandledError.js +12 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/throwUnobservableError.js +6 -0
- package/dist/esm/external/rxjs/dist/esm5/internal/util/throwUnobservableError.js.map +1 -0
- package/dist/esm/external/tslib/tslib.es6.js +117 -1
- package/dist/esm/external/tslib/tslib.es6.js.map +1 -1
- package/dist/esm/factory/api-controller.factory.d.ts +1 -0
- package/dist/esm/factory/api-controller.factory.js +42 -393
- package/dist/esm/factory/api-controller.factory.js.map +1 -1
- package/dist/esm/index.js +15 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interceptor/api-route-runtime.interceptor.d.ts +5 -0
- package/dist/esm/interceptor/api-route-runtime.interceptor.js +29 -0
- package/dist/esm/interceptor/api-route-runtime.interceptor.js.map +1 -0
- package/dist/esm/interface/class/api/authorization/policy/registry.interface.d.ts +1 -0
- package/dist/esm/interface/class/api/authorization/policy/subscriber/context/interface.d.ts +1 -1
- package/dist/esm/interface/class/api/function/context/index.d.ts +2 -0
- package/dist/esm/interface/class/api/function/context/interface.d.ts +10 -0
- package/dist/esm/interface/class/api/function/context/operations.interface.d.ts +13 -0
- package/dist/esm/interface/class/api/function/index.d.ts +1 -0
- package/dist/esm/interface/class/api/index.d.ts +2 -0
- package/dist/esm/interface/class/api/route/index.d.ts +1 -0
- package/dist/esm/interface/class/api/route/runtime/context-data.interface.d.ts +10 -0
- package/dist/esm/interface/class/api/route/runtime/custom-execution-options.interface.d.ts +9 -0
- package/dist/esm/interface/class/api/route/runtime/generated/execution-options.interface.d.ts +14 -0
- package/dist/esm/interface/class/api/route/runtime/generated/index.d.ts +2 -0
- package/dist/esm/interface/class/api/route/runtime/generated/targets.interface.d.ts +12 -0
- package/dist/esm/interface/class/api/route/runtime/http-request.interface.d.ts +8 -0
- package/dist/esm/interface/class/api/route/runtime/index.d.ts +4 -0
- package/dist/esm/interface/class/api/subscriber/function/error-execution-context.interface.d.ts +1 -0
- package/dist/esm/interface/class/api/subscriber/function/execution/context.interface.d.ts +1 -0
- package/dist/esm/interface/class/api/subscriber/function.interface.d.ts +4 -0
- package/dist/esm/interface/class/api/subscriber/route/error-execution-context.interface.d.ts +2 -1
- package/dist/esm/interface/class/api/subscriber/route/execution/context/data/extended.interface.d.ts +36 -0
- package/dist/esm/interface/class/api/subscriber/route/execution/context/data/index.d.ts +2 -0
- package/dist/esm/interface/class/api/subscriber/route/execution/context/data/interface.d.ts +32 -0
- package/dist/esm/interface/class/api/subscriber/route/execution/context/index.d.ts +2 -0
- package/dist/esm/interface/class/api/subscriber/route/execution/context/interface.d.ts +11 -0
- package/dist/esm/interface/class/api/subscriber/route/execution/index.d.ts +1 -2
- package/dist/esm/interface/class/api/subscriber/route.interface.d.ts +6 -2
- package/dist/esm/interface/decorator/api/controller/properties/route/authentication.interface.d.ts +1 -1
- package/dist/esm/interface/decorator/api/controller/properties/route/base/generation.interface.d.ts +5 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/index.d.ts +5 -2
- package/dist/esm/interface/decorator/api/controller/properties/route/base/interface.d.ts +4 -7
- package/dist/esm/interface/decorator/api/controller/properties/route/base/relations/index.d.ts +4 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/relations/interface.d.ts +6 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/relations/reference.interface.d.ts +5 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/relations/request/index.d.ts +2 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/relations/request/interface.d.ts +6 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/relations/request/load.interface.d.ts +10 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/relations/response/index.d.ts +2 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/relations/response/interface.d.ts +6 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/relations/response/load.interface.d.ts +4 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/index.d.ts +2 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/interface.d.ts +6 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/target.interface.d.ts +6 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/response/index.d.ts +2 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/response/interface.d.ts +7 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/response/target.interface.d.ts +4 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/security.interface.d.ts +6 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/with/dto.interface.d.ts +1 -1
- package/dist/esm/interface/decorator/api/function/create-executor-properties.interface.d.ts +1 -2
- package/dist/esm/interface/decorator/api/function/custom-properties.interface.d.ts +9 -0
- package/dist/esm/interface/decorator/api/function/delete-executor-properties.interface.d.ts +2 -3
- package/dist/esm/interface/decorator/api/function/get/executor-properties.interface.d.ts +1 -2
- package/dist/esm/interface/decorator/api/function/get/list-executor-properties.interface.d.ts +1 -2
- package/dist/esm/interface/decorator/api/function/get/many-executor-properties.interface.d.ts +1 -2
- package/dist/esm/interface/decorator/api/function/index.d.ts +1 -0
- package/dist/esm/interface/decorator/api/function/properties.interface.d.ts +4 -0
- package/dist/esm/interface/decorator/api/function/update-executor-properties.interface.d.ts +2 -3
- package/dist/esm/interface/decorator/api/index.d.ts +1 -0
- package/dist/esm/interface/decorator/api/method/index.d.ts +0 -2
- package/dist/esm/interface/decorator/api/method/properties.interface.d.ts +4 -17
- package/dist/esm/interface/decorator/api/route/custom-properties.interface.d.ts +6 -0
- package/dist/esm/interface/decorator/api/route/documentation-properties.interface.d.ts +5 -0
- package/dist/esm/interface/decorator/api/route/index.d.ts +7 -0
- package/dist/esm/interface/decorator/api/route/metadata/index.d.ts +3 -0
- package/dist/esm/interface/decorator/api/route/metadata/interface.d.ts +15 -0
- package/dist/esm/interface/decorator/api/route/metadata/resource.interface.d.ts +6 -0
- package/dist/esm/interface/decorator/api/route/metadata/route.interface.d.ts +7 -0
- package/dist/esm/interface/decorator/api/route/response/index.d.ts +2 -0
- package/dist/esm/interface/decorator/api/route/response/properties.interface.d.ts +9 -0
- package/dist/esm/interface/decorator/api/route/response/serialization-properties.interface.d.ts +3 -0
- package/dist/esm/interface/decorator/api/route/runtime-properties.interface.d.ts +11 -0
- package/dist/esm/interface/decorator/api/route/security/authentication-properties.interface.d.ts +9 -0
- package/dist/esm/interface/decorator/api/route/security/authorization-properties.interface.d.ts +4 -0
- package/dist/esm/interface/decorator/api/route/security/index.d.ts +3 -0
- package/dist/esm/interface/decorator/api/route/security/properties.interface.d.ts +6 -0
- package/dist/esm/interface/decorator/api/route/throttling/default-properties.interface.d.ts +4 -0
- package/dist/esm/interface/decorator/api/route/throttling/index.d.ts +2 -0
- package/dist/esm/interface/decorator/api/route/throttling/properties.interface.d.ts +4 -0
- package/dist/esm/interface/decorator/api/subscriber/function/filter.interface.d.ts +5 -0
- package/dist/esm/interface/decorator/api/subscriber/function/index.d.ts +2 -0
- package/dist/esm/interface/decorator/api/subscriber/function/properties.interface.d.ts +7 -0
- package/dist/esm/interface/decorator/api/subscriber/index.d.ts +2 -2
- package/dist/esm/interface/decorator/api/subscriber/route-properties.interface.d.ts +4 -0
- package/dist/esm/module/api/authorization.module.js +18 -1
- package/dist/esm/module/api/authorization.module.js.map +1 -1
- package/dist/esm/package.json +0 -1
- package/dist/esm/type/class/api/subscriber/route/after/create-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/route/after/delete-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/route/after/get/context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/route/after/get/list-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/route/after/partial-update-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/route/after/update-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/route/before/create-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/route/before/delete-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/route/before/get/context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/route/before/get/list-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/route/before/partial-update-context.type.d.ts +2 -2
- package/dist/esm/type/class/api/subscriber/route/before/update-context.type.d.ts +2 -2
- package/dist/esm/type/decorator/api/controller/properties/route/base/request/allowed-target.type.d.ts +9 -0
- package/dist/esm/type/decorator/api/controller/properties/route/base/request/index.d.ts +1 -1
- package/dist/esm/type/decorator/api/controller/properties/route/base/request/transformers.type.d.ts +7 -7
- package/dist/esm/type/decorator/api/controller/properties/route/base/response-transformers.type.d.ts +6 -6
- package/dist/esm/type/decorator/api/controller/transformer-config.type.d.ts +5 -5
- package/dist/esm/type/decorator/api/function/properties.type.d.ts +5 -3
- package/dist/esm/type/decorator/api/property/describe/dto/request-properties.type.d.ts +1 -1
- package/dist/esm/type/decorator/api/property/describe/properties/base/properties.type.d.ts +4 -4
- package/dist/esm/type/utility/dto/generate/allowed-combination.type.d.ts +4 -4
- package/dist/esm/utility/api/controller/apply/decorators.utility.js +59 -27
- package/dist/esm/utility/api/controller/apply/decorators.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/apply/metadata.utility.js +6 -2
- package/dist/esm/utility/api/controller/apply/metadata.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/get/dto.utility.js +6 -2
- package/dist/esm/utility/api/controller/get/dto.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/get-list/transform/filter.utility.js +5 -1
- package/dist/esm/utility/api/controller/get-list/transform/filter.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/handle-request-relations.utility.d.ts +4 -4
- package/dist/esm/utility/api/controller/handle-request-relations.utility.js +37 -11
- package/dist/esm/utility/api/controller/handle-request-relations.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/index.d.ts +1 -0
- package/dist/esm/utility/api/controller/serialize-route-response.utility.d.ts +14 -0
- package/dist/esm/utility/api/controller/serialize-route-response.utility.js +27 -0
- package/dist/esm/utility/api/controller/serialize-route-response.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/transform-data.utility.d.ts +8 -7
- package/dist/esm/utility/api/controller/transform-data.utility.js +19 -16
- package/dist/esm/utility/api/controller/transform-data.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/validate-request.utility.d.ts +3 -3
- package/dist/esm/utility/api/controller/validate-request.utility.js +10 -9
- package/dist/esm/utility/api/controller/validate-request.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/write/dto-swagger.utility.js +6 -2
- package/dist/esm/utility/api/controller/write/dto-swagger.utility.js.map +1 -1
- package/dist/esm/utility/api/function-transaction.utility.d.ts +20 -0
- package/dist/esm/utility/api/function-transaction.utility.js +50 -0
- package/dist/esm/utility/api/function-transaction.utility.js.map +1 -0
- package/dist/esm/utility/api/index.d.ts +1 -0
- package/dist/esm/utility/api/route/index.d.ts +1 -0
- package/dist/esm/utility/api/route/response/index.d.ts +2 -0
- package/dist/esm/utility/api/route/response/project-relation.utility.d.ts +11 -0
- package/dist/esm/utility/api/route/response/project-relation.utility.js +73 -0
- package/dist/esm/utility/api/route/response/project-relation.utility.js.map +1 -0
- package/dist/esm/utility/api/route/response/serialize.utility.d.ts +11 -0
- package/dist/esm/utility/api/route/response/serialize.utility.js +24 -0
- package/dist/esm/utility/api/route/response/serialize.utility.js.map +1 -0
- package/dist/esm/utility/dto/build-decorator.utility.js +5 -1
- package/dist/esm/utility/dto/build-decorator.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate/core.utility.js +5 -1
- package/dist/esm/utility/dto/generate/core.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate/dynamic.utility.js +5 -1
- package/dist/esm/utility/dto/generate/dynamic.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate/exception.utility.js +5 -1
- package/dist/esm/utility/dto/generate/exception.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate/filter-decorator.utility.js +5 -1
- package/dist/esm/utility/dto/generate/filter-decorator.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate/get-list-response.utility.js +5 -1
- package/dist/esm/utility/dto/generate/get-list-response.utility.js.map +1 -1
- package/dist/esm/utility/dto/get/get-list-query-base-class.utility.js +5 -1
- 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 +5 -1
- 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 +7 -3
- 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 +8 -4
- package/dist/esm/utility/dto/is/should-be-generated.utility.js.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/enum/decorator/api/controller/request-transformer-type.enum.js.map +0 -1
- package/dist/cjs/interface/class/api/subscriber/route/execution/context-data.interface.d.ts +0 -82
- package/dist/cjs/interface/class/api/subscriber/route/execution/context.interface.d.ts +0 -29
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request.interface.d.ts +0 -8
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/response.interface.d.ts +0 -7
- package/dist/cjs/interface/decorator/api/method/authorization.interface.d.ts +0 -3
- package/dist/cjs/interface/decorator/api/method/throttler-properties.interface.d.ts +0 -4
- package/dist/cjs/interface/decorator/api/subscriber/function-properties.interface.d.ts +0 -5
- package/dist/cjs/type/decorator/api/controller/properties/route/base/request/relations.type.d.ts +0 -18
- package/dist/esm/enum/decorator/api/controller/request-transformer-type.enum.js.map +0 -1
- package/dist/esm/interface/class/api/subscriber/route/execution/context-data.interface.d.ts +0 -82
- package/dist/esm/interface/class/api/subscriber/route/execution/context.interface.d.ts +0 -29
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request.interface.d.ts +0 -8
- package/dist/esm/interface/decorator/api/controller/properties/route/base/response.interface.d.ts +0 -7
- package/dist/esm/interface/decorator/api/method/authorization.interface.d.ts +0 -3
- package/dist/esm/interface/decorator/api/method/throttler-properties.interface.d.ts +0 -4
- package/dist/esm/interface/decorator/api/subscriber/function-properties.interface.d.ts +0 -5
- package/dist/esm/type/decorator/api/controller/properties/route/base/request/relations.type.d.ts +0 -18
- /package/dist/cjs/enum/decorator/api/controller/{request-transformer-type.enum.d.ts → request/transformer-type.enum.d.ts} +0 -0
- /package/dist/esm/enum/decorator/api/controller/{request-transformer-type.enum.d.ts → request/transformer-type.enum.d.ts} +0 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { ApiRouteRuntime } from '../../class/api/route-runtime.class.js';
|
|
2
|
+
import '../../constant/decorator/api/function.constant.js';
|
|
3
|
+
import { METHOD_API_DECORATOR_CONSTANT } from '../../constant/decorator/api/method.constant.js';
|
|
4
|
+
import '../../enum/decorator/api/action.enum.js';
|
|
5
|
+
import '../../enum/decorator/api/authentication-type.enum.js';
|
|
6
|
+
import '../../enum/decorator/api/controller/load-relations-strategy.enum.js';
|
|
7
|
+
import '../../enum/decorator/api/controller/relation-reference-shape.enum.js';
|
|
8
|
+
import '../../enum/decorator/api/controller/request/target.enum.js';
|
|
9
|
+
import '../../enum/decorator/api/controller/request/transformer-type.enum.js';
|
|
10
|
+
import { EApiControllerResponseTarget } from '../../enum/decorator/api/controller/response-target.enum.js';
|
|
11
|
+
import '../../enum/decorator/api/dto-type.enum.js';
|
|
12
|
+
import '../../enum/decorator/api/function-transaction-mode.enum.js';
|
|
13
|
+
import '../../enum/decorator/api/function-type.enum.js';
|
|
14
|
+
import '../../enum/decorator/api/on-type.enum.js';
|
|
15
|
+
import '../../enum/decorator/api/property/data-type.enum.js';
|
|
16
|
+
import '../../enum/decorator/api/property/date/identifier.enum.js';
|
|
17
|
+
import '../../enum/decorator/api/property/date/type.enum.js';
|
|
18
|
+
import '../../enum/decorator/api/property/desribe-type.enum.js';
|
|
19
|
+
import '../../enum/decorator/api/property/number-type.enum.js';
|
|
20
|
+
import '../../enum/decorator/api/property/string-type.enum.js';
|
|
21
|
+
import '../../enum/decorator/api/route-type.enum.js';
|
|
22
|
+
import { ApiRouteRuntimeInterceptor } from '../../interceptor/api-route-runtime.interceptor.js';
|
|
23
|
+
import { applyDecorators, SetMetadata, UseInterceptors } from '@nestjs/common';
|
|
24
|
+
import { ROUTE_ARGS_METADATA } from '@nestjs/common/constants';
|
|
25
|
+
import { RouteParamtypes } from '@nestjs/common/enums/route-paramtypes.enum';
|
|
26
|
+
import { ApiMethod } from './method.decorator.js';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Creates a custom API route with metadata, runtime properties, and route runtime interception.
|
|
30
|
+
* @template E - Entity type represented by the custom route metadata.
|
|
31
|
+
* @param {IApiRouteCustomProperties<E>} properties - Custom route metadata and runtime configuration.
|
|
32
|
+
* @returns {MethodDecorator} A decorator for a custom controller route method.
|
|
33
|
+
*/
|
|
34
|
+
function ApiRouteCustom(properties) {
|
|
35
|
+
const metadataResponse = properties.response
|
|
36
|
+
? {
|
|
37
|
+
errors: properties.response.errors,
|
|
38
|
+
serialization: properties.response.serialization,
|
|
39
|
+
status: properties.response.status,
|
|
40
|
+
type: properties.response.type,
|
|
41
|
+
}
|
|
42
|
+
: undefined;
|
|
43
|
+
const runtimeResponse = properties.response?.[EApiControllerResponseTarget.RESPONSE]
|
|
44
|
+
? {
|
|
45
|
+
[EApiControllerResponseTarget.RESPONSE]: properties.response[EApiControllerResponseTarget.RESPONSE],
|
|
46
|
+
}
|
|
47
|
+
: undefined;
|
|
48
|
+
const metadata = {
|
|
49
|
+
documentation: properties.documentation,
|
|
50
|
+
resource: properties.resource,
|
|
51
|
+
response: metadataResponse,
|
|
52
|
+
route: properties.route,
|
|
53
|
+
security: properties.security,
|
|
54
|
+
throttling: properties.throttling,
|
|
55
|
+
};
|
|
56
|
+
const runtimeProperties = {
|
|
57
|
+
autoDto: properties.autoDto,
|
|
58
|
+
dto: properties.dto,
|
|
59
|
+
relations: properties.relations,
|
|
60
|
+
request: properties.request,
|
|
61
|
+
response: runtimeResponse,
|
|
62
|
+
};
|
|
63
|
+
return function (target, propertyKey, descriptor) {
|
|
64
|
+
const originalMethod = descriptor.value;
|
|
65
|
+
const bodyArgumentIndex = resolveRouteArgumentIndex(target, propertyKey, RouteParamtypes.BODY);
|
|
66
|
+
descriptor.value = async function (...methodArguments) {
|
|
67
|
+
const body = bodyArgumentIndex === undefined ? undefined : methodArguments[bodyArgumentIndex];
|
|
68
|
+
await ApiRouteRuntime.executeCustomRequestRelations(this, metadata, runtimeProperties, body);
|
|
69
|
+
const response = await originalMethod.apply(this, methodArguments);
|
|
70
|
+
return await ApiRouteRuntime.executeCustomResponseRelations(this, runtimeProperties, response);
|
|
71
|
+
};
|
|
72
|
+
applyDecorators(ApiMethod({ metadata }), SetMetadata(METHOD_API_DECORATOR_CONSTANT.ROUTE_RUNTIME_PROPERTIES_METADATA_KEY, runtimeProperties), UseInterceptors(ApiRouteRuntimeInterceptor))(target, propertyKey, descriptor);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Resolves the argument index for a Nest route parameter type.
|
|
77
|
+
* @param {object} target - Controller prototype that owns the route method.
|
|
78
|
+
* @param {string | symbol} propertyKey - Route method property key.
|
|
79
|
+
* @param {RouteParamtypes} parameterType - Nest route parameter type to find.
|
|
80
|
+
* @returns {number | undefined} Argument index for the requested parameter type.
|
|
81
|
+
*/
|
|
82
|
+
function resolveRouteArgumentIndex(target, propertyKey, parameterType) {
|
|
83
|
+
const routeArgumentsMetadata = (Reflect.getMetadata(ROUTE_ARGS_METADATA, target.constructor, propertyKey) ?? Reflect.getMetadata(ROUTE_ARGS_METADATA, target, propertyKey));
|
|
84
|
+
if (!routeArgumentsMetadata) {
|
|
85
|
+
return undefined;
|
|
86
|
+
}
|
|
87
|
+
for (const entry of Object.entries(routeArgumentsMetadata)) {
|
|
88
|
+
const [key, value] = entry;
|
|
89
|
+
const [type] = key.split(":");
|
|
90
|
+
const metadataParameterType = Number(type);
|
|
91
|
+
if (metadataParameterType === parameterType) {
|
|
92
|
+
return value.index;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return undefined;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export { ApiRouteCustom };
|
|
99
|
+
//# sourceMappingURL=route-custom.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route-custom.decorator.js","sources":["../../../../../src/decorator/api/route-custom.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA;;;;;AAKG;AACG,SAAU,cAAc,CAA2B,UAAwC,EAAA;AAChG,IAAA,MAAM,gBAAgB,GAAiD,UAAU,CAAC;AACjF,UAAE;AACA,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM;AAClC,YAAA,aAAa,EAAE,UAAU,CAAC,QAAQ,CAAC,aAAa;AAChD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM;AAClC,YAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,IAAI;AAC9B;UACA,SAAS;IAEZ,MAAM,eAAe,GAAqE,UAAU,CAAC,QAAQ,GAAG,4BAA4B,CAAC,QAAQ;AACpJ,UAAE;AACA,YAAA,CAAC,4BAA4B,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC,4BAA4B,CAAC,QAAQ,CAAC;AACnG;UACA,SAAS;AAEZ,IAAA,MAAM,QAAQ,GAAyB;QACtC,aAAa,EAAE,UAAU,CAAC,aAAa;QACvC,QAAQ,EAAE,UAAU,CAAC,QAAQ;AAC7B,QAAA,QAAQ,EAAE,gBAAgB;QAC1B,KAAK,EAAE,UAAU,CAAC,KAAK;QACvB,QAAQ,EAAE,UAAU,CAAC,QAAQ;QAC7B,UAAU,EAAE,UAAU,CAAC,UAAU;KACjC;AAED,IAAA,MAAM,iBAAiB,GAA6C;QACnE,OAAO,EAAE,UAAU,CAAC,OAAO;QAC3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AW,CAAC,mBAAmB,EAAE,MAAM,EAAE,WAAW,CAAC,CAAmD;IAE7Q,IAAI,CAAC,sBAAsB,EAAE;AAC5B,QAAA,OAAO,SAAS;IACjB;IAEA,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,EAAE;AAC3D,QAAA,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,GAAiC,KAAK;QACxD,MAAM,CAAC,IAAI,CAAC,GAAkB,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC;AAC5C,QAAA,MAAM,qBAAqB,GAAoB,MAAM,CAAC,IAAI,CAAoB;AAE9E,QAAA,IAAI,qBAAqB,KAAK,aAAa,EAAE;YAC5C,OAAO,KAAK,CAAC,KAAK;QACnB;IACD;AAEA,IAAA,OAAO,SAAS;AACjB;;;;"}
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
+
import '../../../class/api/function/context-storage.class.js';
|
|
1
2
|
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';
|
|
4
|
-
import '../../../enum/utility/dto/manual/property-metadata/decorator.enum.js';
|
|
5
|
-
import '../../../enum/utility/error-string/action.enum.js';
|
|
6
|
-
import '../../../enum/utility/error-string/composite-action.enum.js';
|
|
7
|
-
import '../../../enum/utility/exception-details-type.enum.js';
|
|
8
|
-
import '@nestjs/common';
|
|
9
|
-
import 'typeorm';
|
|
10
|
-
import '../../../utility/logger.utility.js';
|
|
11
|
-
import { ApiFunction } from '../function/decorator.js';
|
|
12
3
|
import '../../../enum/decorator/api/action.enum.js';
|
|
13
4
|
import '../../../enum/decorator/api/authentication-type.enum.js';
|
|
14
5
|
import '../../../enum/decorator/api/controller/load-relations-strategy.enum.js';
|
|
15
|
-
import '../../../enum/decorator/api/controller/
|
|
6
|
+
import '../../../enum/decorator/api/controller/relation-reference-shape.enum.js';
|
|
7
|
+
import '../../../enum/decorator/api/controller/request/target.enum.js';
|
|
8
|
+
import '../../../enum/decorator/api/controller/request/transformer-type.enum.js';
|
|
9
|
+
import '../../../enum/decorator/api/controller/response-target.enum.js';
|
|
16
10
|
import '../../../enum/decorator/api/dto-type.enum.js';
|
|
11
|
+
import '../../../enum/decorator/api/function-transaction-mode.enum.js';
|
|
12
|
+
import { EApiFunctionType } from '../../../enum/decorator/api/function-type.enum.js';
|
|
13
|
+
import '../../../enum/decorator/api/on-type.enum.js';
|
|
17
14
|
import '../../../enum/decorator/api/property/data-type.enum.js';
|
|
18
15
|
import '../../../enum/decorator/api/property/date/identifier.enum.js';
|
|
19
16
|
import '../../../enum/decorator/api/property/date/type.enum.js';
|
|
@@ -21,6 +18,14 @@ import '../../../enum/decorator/api/property/desribe-type.enum.js';
|
|
|
21
18
|
import '../../../enum/decorator/api/property/number-type.enum.js';
|
|
22
19
|
import '../../../enum/decorator/api/property/string-type.enum.js';
|
|
23
20
|
import '../../../enum/decorator/api/route-type.enum.js';
|
|
21
|
+
import '../../../enum/utility/dto/manual/property-metadata/decorator.enum.js';
|
|
22
|
+
import '../../../enum/utility/error-string/action.enum.js';
|
|
23
|
+
import '../../../enum/utility/error-string/composite-action.enum.js';
|
|
24
|
+
import '../../../enum/utility/exception-details-type.enum.js';
|
|
25
|
+
import '@nestjs/common';
|
|
26
|
+
import 'typeorm';
|
|
27
|
+
import '../../../utility/logger.utility.js';
|
|
28
|
+
import { ApiFunction } from '../function/decorator.js';
|
|
24
29
|
|
|
25
30
|
/**
|
|
26
31
|
* Creates a class decorator that adds CRUD operations to a service class for a specific entity
|
|
@@ -47,7 +52,7 @@ function ApiService(properties) {
|
|
|
47
52
|
configurable: true,
|
|
48
53
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
49
54
|
enumerable: true,
|
|
50
|
-
value: async function (properties
|
|
55
|
+
value: async function (properties) {
|
|
51
56
|
const apiFunctionDecorator = ApiFunction({
|
|
52
57
|
entity,
|
|
53
58
|
type: EApiFunctionType.GET_LIST,
|
|
@@ -63,7 +68,7 @@ function ApiService(properties) {
|
|
|
63
68
|
writable: true,
|
|
64
69
|
};
|
|
65
70
|
const decoratedDescriptor = apiFunctionDecorator(this, EApiFunctionType.GET_LIST, descriptor);
|
|
66
|
-
return decoratedDescriptor.value.call(this, properties
|
|
71
|
+
return decoratedDescriptor.value.call(this, properties);
|
|
67
72
|
},
|
|
68
73
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
69
74
|
writable: true,
|
|
@@ -75,7 +80,7 @@ function ApiService(properties) {
|
|
|
75
80
|
configurable: true,
|
|
76
81
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
77
82
|
enumerable: true,
|
|
78
|
-
value: async function (properties
|
|
83
|
+
value: async function (properties) {
|
|
79
84
|
const apiFunctionDecorator = ApiFunction({
|
|
80
85
|
entity,
|
|
81
86
|
type: EApiFunctionType.GET,
|
|
@@ -91,7 +96,7 @@ function ApiService(properties) {
|
|
|
91
96
|
writable: true,
|
|
92
97
|
};
|
|
93
98
|
const decoratedDescriptor = apiFunctionDecorator(this, EApiFunctionType.GET, descriptor);
|
|
94
|
-
return decoratedDescriptor.value.call(this, properties
|
|
99
|
+
return decoratedDescriptor.value.call(this, properties);
|
|
95
100
|
},
|
|
96
101
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
97
102
|
writable: true,
|
|
@@ -103,7 +108,7 @@ function ApiService(properties) {
|
|
|
103
108
|
configurable: true,
|
|
104
109
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
105
110
|
enumerable: true,
|
|
106
|
-
value: async function (properties
|
|
111
|
+
value: async function (properties) {
|
|
107
112
|
const apiFunctionDecorator = ApiFunction({
|
|
108
113
|
entity,
|
|
109
114
|
type: EApiFunctionType.GET_MANY,
|
|
@@ -119,7 +124,7 @@ function ApiService(properties) {
|
|
|
119
124
|
writable: true,
|
|
120
125
|
};
|
|
121
126
|
const decoratedDescriptor = apiFunctionDecorator(this, EApiFunctionType.GET_MANY, descriptor);
|
|
122
|
-
return decoratedDescriptor.value.call(this, properties
|
|
127
|
+
return decoratedDescriptor.value.call(this, properties);
|
|
123
128
|
},
|
|
124
129
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
125
130
|
writable: true,
|
|
@@ -131,7 +136,7 @@ function ApiService(properties) {
|
|
|
131
136
|
configurable: true,
|
|
132
137
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
133
138
|
enumerable: true,
|
|
134
|
-
value: async function (properties
|
|
139
|
+
value: async function (properties) {
|
|
135
140
|
const apiFunctionDecorator = ApiFunction({
|
|
136
141
|
entity,
|
|
137
142
|
type: EApiFunctionType.CREATE,
|
|
@@ -147,7 +152,7 @@ function ApiService(properties) {
|
|
|
147
152
|
writable: true,
|
|
148
153
|
};
|
|
149
154
|
const decoratedDescriptor = apiFunctionDecorator(this, EApiFunctionType.CREATE, descriptor);
|
|
150
|
-
return decoratedDescriptor.value.call(this, properties
|
|
155
|
+
return decoratedDescriptor.value.call(this, properties);
|
|
151
156
|
},
|
|
152
157
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
153
158
|
writable: true,
|
|
@@ -159,7 +164,7 @@ function ApiService(properties) {
|
|
|
159
164
|
configurable: true,
|
|
160
165
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
161
166
|
enumerable: true,
|
|
162
|
-
value: async function (criteria, properties
|
|
167
|
+
value: async function (criteria, properties) {
|
|
163
168
|
const apiFunctionDecorator = ApiFunction({
|
|
164
169
|
entity,
|
|
165
170
|
type: EApiFunctionType.UPDATE,
|
|
@@ -175,7 +180,7 @@ function ApiService(properties) {
|
|
|
175
180
|
writable: true,
|
|
176
181
|
};
|
|
177
182
|
const decoratedDescriptor = apiFunctionDecorator(this, EApiFunctionType.UPDATE, descriptor);
|
|
178
|
-
return decoratedDescriptor.value.call(this, criteria, properties
|
|
183
|
+
return decoratedDescriptor.value.call(this, criteria, properties);
|
|
179
184
|
},
|
|
180
185
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
181
186
|
writable: true,
|
|
@@ -187,7 +192,7 @@ function ApiService(properties) {
|
|
|
187
192
|
configurable: true,
|
|
188
193
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
189
194
|
enumerable: true,
|
|
190
|
-
value: async function (criteria
|
|
195
|
+
value: async function (criteria) {
|
|
191
196
|
const apiFunctionDecorator = ApiFunction({
|
|
192
197
|
entity,
|
|
193
198
|
type: EApiFunctionType.DELETE,
|
|
@@ -203,7 +208,7 @@ function ApiService(properties) {
|
|
|
203
208
|
writable: true,
|
|
204
209
|
};
|
|
205
210
|
const decoratedDescriptor = apiFunctionDecorator(this, EApiFunctionType.DELETE, descriptor);
|
|
206
|
-
return decoratedDescriptor.value.call(this, criteria
|
|
211
|
+
return decoratedDescriptor.value.call(this, criteria);
|
|
207
212
|
},
|
|
208
213
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
209
214
|
writable: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorator.js","sources":["../../../../../../src/decorator/api/service/decorator.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"decorator.js","sources":["../../../../../../src/decorator/api/service/decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA;;;;;;;AAOG;AACG,SAAU,UAAU,CAA2B,UAAoC,EAAA;AACxF,IAAA,MAAM,EAAE,MAAM,EAAE,GAA6B,UAAU;;AAGvD,IAAA,OAAO,UAAuE,MAAiB,EAAA;QAC9F,MAAM,mBAAmB,GAAc,MAAM;;AAG7C,QAAA,MAAM,aAAa,GAAmE,cAAc,mBAAmB,CAAA;;AAEtH,YAAA,WAAA,CAAY,GAAG,UAAsB,EAAA;;AAEpC,gBAAA,KAAK,CAAC,GAAG,UAAU,CAAC;AAEpB,gBAAA,IAAI,CAAC,MAAM,CAAC,SAAS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,EAAE,QAAQ,CAAC;wBACrI,CAAC;;AAED,wBAAA,QAAQ,EAAE,IAAI;AACd,qBAAA,CAAC;gBACH;YACD;SACA;AAED,QAAA,MAAM,CAAC,cAAc,CAAC,aAAa,EAAE,mBAAmB,CAAC;AAEzD,QAAA,OAAO,aAA0B;AAClC,IAAA,CAAC;AACF;;;;"}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { EApiControllerLoadRelationsStrategy } from './load-relations-strategy.enum';
|
|
2
|
-
export {
|
|
2
|
+
export { EApiControllerRelationReferenceShape } from './relation-reference-shape.enum';
|
|
3
|
+
export * from './request/index';
|
|
4
|
+
export { EApiControllerResponseTarget } from './response-target.enum';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var EApiControllerRelationReferenceShape;
|
|
2
|
+
(function (EApiControllerRelationReferenceShape) {
|
|
3
|
+
EApiControllerRelationReferenceShape["OBJECT"] = "OBJECT";
|
|
4
|
+
EApiControllerRelationReferenceShape["SCALAR"] = "SCALAR";
|
|
5
|
+
})(EApiControllerRelationReferenceShape || (EApiControllerRelationReferenceShape = {}));
|
|
6
|
+
|
|
7
|
+
export { EApiControllerRelationReferenceShape };
|
|
8
|
+
//# sourceMappingURL=relation-reference-shape.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relation-reference-shape.enum.js","sources":["../../../../../../../src/enum/decorator/api/controller/relation-reference-shape.enum.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,oCAAoC,EAAA;AAC/C,IAAA,oCAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,oCAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AAClB,CAAC,EAHW,oCAAoC,KAApC,oCAAoC,GAAA,EAAA,CAAA,CAAA;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var EApiControllerRequestTarget;
|
|
2
|
+
(function (EApiControllerRequestTarget) {
|
|
3
|
+
EApiControllerRequestTarget["BODY"] = "BODY";
|
|
4
|
+
EApiControllerRequestTarget["PARAMETERS"] = "PARAMETERS";
|
|
5
|
+
EApiControllerRequestTarget["QUERY"] = "QUERY";
|
|
6
|
+
})(EApiControllerRequestTarget || (EApiControllerRequestTarget = {}));
|
|
7
|
+
|
|
8
|
+
export { EApiControllerRequestTarget };
|
|
9
|
+
//# sourceMappingURL=target.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"target.enum.js","sources":["../../../../../../../../src/enum/decorator/api/controller/request/target.enum.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,2BAA2B,EAAA;AACtC,IAAA,2BAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,2BAAA,CAAA,YAAA,CAAA,GAAA,YAAyB;AACzB,IAAA,2BAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AAChB,CAAC,EAJW,2BAA2B,KAA3B,2BAA2B,GAAA,EAAA,CAAA,CAAA;;;;"}
|
|
@@ -5,4 +5,4 @@ var EApiControllerRequestTransformerType;
|
|
|
5
5
|
})(EApiControllerRequestTransformerType || (EApiControllerRequestTransformerType = {}));
|
|
6
6
|
|
|
7
7
|
export { EApiControllerRequestTransformerType };
|
|
8
|
-
//# sourceMappingURL=
|
|
8
|
+
//# sourceMappingURL=transformer-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformer-type.enum.js","sources":["../../../../../../../../src/enum/decorator/api/controller/request/transformer-type.enum.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,oCAAoC,EAAA;AAC/C,IAAA,oCAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,oCAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AAClB,CAAC,EAHW,oCAAoC,KAApC,oCAAoC,GAAA,EAAA,CAAA,CAAA;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var EApiControllerResponseTarget;
|
|
2
|
+
(function (EApiControllerResponseTarget) {
|
|
3
|
+
EApiControllerResponseTarget["RESPONSE"] = "RESPONSE";
|
|
4
|
+
})(EApiControllerResponseTarget || (EApiControllerResponseTarget = {}));
|
|
5
|
+
|
|
6
|
+
export { EApiControllerResponseTarget };
|
|
7
|
+
//# sourceMappingURL=response-target.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response-target.enum.js","sources":["../../../../../../../src/enum/decorator/api/controller/response-target.enum.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,4BAA4B,EAAA;AACvC,IAAA,4BAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACtB,CAAC,EAFW,4BAA4B,KAA5B,4BAA4B,GAAA,EAAA,CAAA,CAAA;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var EApiDtoType;
|
|
2
2
|
(function (EApiDtoType) {
|
|
3
3
|
EApiDtoType["BODY"] = "body";
|
|
4
|
+
EApiDtoType["PARAMETERS"] = "parameters";
|
|
4
5
|
EApiDtoType["QUERY"] = "query";
|
|
5
|
-
EApiDtoType["REQUEST"] = "request";
|
|
6
6
|
EApiDtoType["RESPONSE"] = "response";
|
|
7
7
|
})(EApiDtoType || (EApiDtoType = {}));
|
|
8
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dto-type.enum.js","sources":["../../../../../../src/enum/decorator/api/dto-type.enum.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,WAAW,EAAA;AACtB,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,WAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"dto-type.enum.js","sources":["../../../../../../src/enum/decorator/api/dto-type.enum.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,WAAW,EAAA;AACtB,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,WAAA,CAAA,YAAA,CAAA,GAAA,YAAyB;AACzB,IAAA,WAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,WAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACtB,CAAC,EALW,WAAW,KAAX,WAAW,GAAA,EAAA,CAAA,CAAA;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var EApiFunctionTransactionMode;
|
|
2
|
+
(function (EApiFunctionTransactionMode) {
|
|
3
|
+
EApiFunctionTransactionMode["MANDATORY"] = "MANDATORY";
|
|
4
|
+
EApiFunctionTransactionMode["NONE"] = "NONE";
|
|
5
|
+
EApiFunctionTransactionMode["REQUIRED"] = "REQUIRED";
|
|
6
|
+
EApiFunctionTransactionMode["SUPPORTS"] = "SUPPORTS";
|
|
7
|
+
})(EApiFunctionTransactionMode || (EApiFunctionTransactionMode = {}));
|
|
8
|
+
|
|
9
|
+
export { EApiFunctionTransactionMode };
|
|
10
|
+
//# sourceMappingURL=function-transaction-mode.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-transaction-mode.enum.js","sources":["../../../../../../src/enum/decorator/api/function-transaction-mode.enum.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,2BAA2B,EAAA;AACtC,IAAA,2BAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AACvB,IAAA,2BAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,2BAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,2BAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACtB,CAAC,EALW,2BAA2B,KAA3B,2BAA2B,GAAA,EAAA,CAAA,CAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function-type.enum.js","sources":["../../../../../../src/enum/decorator/api/function-type.enum.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,gBAAgB,EAAA;AAC3B,IAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,gBAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACX,IAAA,gBAAA,CAAA,UAAA,CAAA,GAAA,SAAoB;AACpB,IAAA,gBAAA,CAAA,UAAA,CAAA,GAAA,SAAoB;AACpB,IAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AAClB,CAAC,
|
|
1
|
+
{"version":3,"file":"function-type.enum.js","sources":["../../../../../../src/enum/decorator/api/function-type.enum.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,gBAAgB,EAAA;AAC3B,IAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,gBAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACX,IAAA,gBAAA,CAAA,UAAA,CAAA,GAAA,SAAoB;AACpB,IAAA,gBAAA,CAAA,UAAA,CAAA,GAAA,SAAoB;AACpB,IAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AAClB,CAAC,EARW,gBAAgB,KAAhB,gBAAgB,GAAA,EAAA,CAAA,CAAA;;;;"}
|
|
@@ -2,6 +2,7 @@ export * from './action.enum';
|
|
|
2
2
|
export * from './authentication-type.enum';
|
|
3
3
|
export * from './controller/index';
|
|
4
4
|
export * from './dto-type.enum';
|
|
5
|
+
export { EApiFunctionTransactionMode } from './function-transaction-mode.enum';
|
|
5
6
|
export { EApiFunctionType } from './function-type.enum';
|
|
6
7
|
export * from './on-type.enum';
|
|
7
8
|
export * from './property/index';
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { SafeSubscriber, Subscriber } from './Subscriber.js';
|
|
2
|
+
import { isSubscription } from './Subscription.js';
|
|
3
|
+
import { observable } from './symbol/observable.js';
|
|
4
|
+
import { pipeFromArray } from './util/pipe.js';
|
|
5
|
+
import { config } from './config.js';
|
|
6
|
+
import { isFunction } from './util/isFunction.js';
|
|
7
|
+
import { errorContext } from './util/errorContext.js';
|
|
8
|
+
|
|
9
|
+
var Observable = (function () {
|
|
10
|
+
function Observable(subscribe) {
|
|
11
|
+
if (subscribe) {
|
|
12
|
+
this._subscribe = subscribe;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
Observable.prototype.lift = function (operator) {
|
|
16
|
+
var observable = new Observable();
|
|
17
|
+
observable.source = this;
|
|
18
|
+
observable.operator = operator;
|
|
19
|
+
return observable;
|
|
20
|
+
};
|
|
21
|
+
Observable.prototype.subscribe = function (observerOrNext, error, complete) {
|
|
22
|
+
var _this = this;
|
|
23
|
+
var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);
|
|
24
|
+
errorContext(function () {
|
|
25
|
+
var _a = _this, operator = _a.operator, source = _a.source;
|
|
26
|
+
subscriber.add(operator
|
|
27
|
+
?
|
|
28
|
+
operator.call(subscriber, source)
|
|
29
|
+
: source
|
|
30
|
+
?
|
|
31
|
+
_this._subscribe(subscriber)
|
|
32
|
+
:
|
|
33
|
+
_this._trySubscribe(subscriber));
|
|
34
|
+
});
|
|
35
|
+
return subscriber;
|
|
36
|
+
};
|
|
37
|
+
Observable.prototype._trySubscribe = function (sink) {
|
|
38
|
+
try {
|
|
39
|
+
return this._subscribe(sink);
|
|
40
|
+
}
|
|
41
|
+
catch (err) {
|
|
42
|
+
sink.error(err);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
Observable.prototype.forEach = function (next, promiseCtor) {
|
|
46
|
+
var _this = this;
|
|
47
|
+
promiseCtor = getPromiseCtor(promiseCtor);
|
|
48
|
+
return new promiseCtor(function (resolve, reject) {
|
|
49
|
+
var subscriber = new SafeSubscriber({
|
|
50
|
+
next: function (value) {
|
|
51
|
+
try {
|
|
52
|
+
next(value);
|
|
53
|
+
}
|
|
54
|
+
catch (err) {
|
|
55
|
+
reject(err);
|
|
56
|
+
subscriber.unsubscribe();
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
error: reject,
|
|
60
|
+
complete: resolve,
|
|
61
|
+
});
|
|
62
|
+
_this.subscribe(subscriber);
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
Observable.prototype._subscribe = function (subscriber) {
|
|
66
|
+
var _a;
|
|
67
|
+
return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);
|
|
68
|
+
};
|
|
69
|
+
Observable.prototype[observable] = function () {
|
|
70
|
+
return this;
|
|
71
|
+
};
|
|
72
|
+
Observable.prototype.pipe = function () {
|
|
73
|
+
var operations = [];
|
|
74
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
75
|
+
operations[_i] = arguments[_i];
|
|
76
|
+
}
|
|
77
|
+
return pipeFromArray(operations)(this);
|
|
78
|
+
};
|
|
79
|
+
Observable.prototype.toPromise = function (promiseCtor) {
|
|
80
|
+
var _this = this;
|
|
81
|
+
promiseCtor = getPromiseCtor(promiseCtor);
|
|
82
|
+
return new promiseCtor(function (resolve, reject) {
|
|
83
|
+
var value;
|
|
84
|
+
_this.subscribe(function (x) { return (value = x); }, function (err) { return reject(err); }, function () { return resolve(value); });
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
Observable.create = function (subscribe) {
|
|
88
|
+
return new Observable(subscribe);
|
|
89
|
+
};
|
|
90
|
+
return Observable;
|
|
91
|
+
}());
|
|
92
|
+
function getPromiseCtor(promiseCtor) {
|
|
93
|
+
var _a;
|
|
94
|
+
return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;
|
|
95
|
+
}
|
|
96
|
+
function isObserver(value) {
|
|
97
|
+
return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);
|
|
98
|
+
}
|
|
99
|
+
function isSubscriber(value) {
|
|
100
|
+
return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export { Observable };
|
|
104
|
+
//# sourceMappingURL=Observable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Observable.js","sources":["../../../../../../../node_modules/rxjs/dist/esm5/internal/Observable.js"],"sourcesContent":["import { SafeSubscriber, Subscriber } from './Subscriber';\nimport { isSubscription } from './Subscription';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nimport { isFunction } from './util/isFunction';\nimport { errorContext } from './util/errorContext';\nvar Observable = (function () {\n function Observable(subscribe) {\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n Observable.prototype.lift = function (operator) {\n var observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n };\n Observable.prototype.subscribe = function (observerOrNext, error, complete) {\n var _this = this;\n var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);\n errorContext(function () {\n var _a = _this, operator = _a.operator, source = _a.source;\n subscriber.add(operator\n ?\n operator.call(subscriber, source)\n : source\n ?\n _this._subscribe(subscriber)\n :\n _this._trySubscribe(subscriber));\n });\n return subscriber;\n };\n Observable.prototype._trySubscribe = function (sink) {\n try {\n return this._subscribe(sink);\n }\n catch (err) {\n sink.error(err);\n }\n };\n Observable.prototype.forEach = function (next, promiseCtor) {\n var _this = this;\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor(function (resolve, reject) {\n var subscriber = new SafeSubscriber({\n next: function (value) {\n try {\n next(value);\n }\n catch (err) {\n reject(err);\n subscriber.unsubscribe();\n }\n },\n error: reject,\n complete: resolve,\n });\n _this.subscribe(subscriber);\n });\n };\n Observable.prototype._subscribe = function (subscriber) {\n var _a;\n return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);\n };\n Observable.prototype[Symbol_observable] = function () {\n return this;\n };\n Observable.prototype.pipe = function () {\n var operations = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n operations[_i] = arguments[_i];\n }\n return pipeFromArray(operations)(this);\n };\n Observable.prototype.toPromise = function (promiseCtor) {\n var _this = this;\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor(function (resolve, reject) {\n var value;\n _this.subscribe(function (x) { return (value = x); }, function (err) { return reject(err); }, function () { return resolve(value); });\n });\n };\n Observable.create = function (subscribe) {\n return new Observable(subscribe);\n };\n return Observable;\n}());\nexport { Observable };\nfunction getPromiseCtor(promiseCtor) {\n var _a;\n return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;\n}\nfunction isObserver(value) {\n return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);\n}\nfunction isSubscriber(value) {\n return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));\n}\n//# sourceMappingURL=Observable.js.map"],"names":["Symbol_observable"],"mappings":";;;;;;;;AAOG,IAAC,UAAU,IAAI,YAAY;AAC9B,IAAI,SAAS,UAAU,CAAC,SAAS,EAAE;AACnC,QAAQ,IAAI,SAAS,EAAE;AACvB,YAAY,IAAI,CAAC,UAAU,GAAG,SAAS;AACvC,QAAQ;AACR,IAAI;AACJ,IAAI,UAAU,CAAC,SAAS,CAAC,IAAI,GAAG,UAAU,QAAQ,EAAE;AACpD,QAAQ,IAAI,UAAU,GAAG,IAAI,UAAU,EAAE;AACzC,QAAQ,UAAU,CAAC,MAAM,GAAG,IAAI;AAChC,QAAQ,UAAU,CAAC,QAAQ,GAAG,QAAQ;AACtC,QAAQ,OAAO,UAAU;AACzB,IAAI,CAAC;AACL,IAAI,UAAU,CAAC,SAAS,CAAC,SAAS,GAAG,UAAU,cA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