@elsikora/nestjs-crud-automator 3.0.2 → 4.0.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +113 -11
- package/dist/cjs/class/api/authorization/guard.class.d.ts +1 -0
- package/dist/cjs/class/api/authorization/guard.class.js +39 -3
- package/dist/cjs/class/api/authorization/guard.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/iam/engine.class.d.ts +3 -2
- package/dist/cjs/class/api/authorization/iam/engine.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/iam/query-planner.class.d.ts +3 -2
- package/dist/cjs/class/api/authorization/iam/query-planner.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/policy/base.class.js +1 -0
- package/dist/cjs/class/api/authorization/policy/base.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/policy/executor.class.d.ts +2 -1
- package/dist/cjs/class/api/authorization/policy/executor.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/policy/registry.class.d.ts +3 -2
- package/dist/cjs/class/api/authorization/policy/registry.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/runtime.class.d.ts +3 -2
- package/dist/cjs/class/api/authorization/runtime.class.js +2 -1
- package/dist/cjs/class/api/authorization/runtime.class.js.map +1 -1
- package/dist/cjs/class/api/authorization/simulator.class.d.ts +3 -3
- package/dist/cjs/class/api/authorization/simulator.class.js.map +1 -1
- package/dist/cjs/class/api/controller/generated/function-capability.class.d.ts +12 -0
- package/dist/cjs/class/api/controller/generated/function-capability.class.js +47 -0
- package/dist/cjs/class/api/controller/generated/function-capability.class.js.map +1 -0
- package/dist/cjs/class/api/controller/generated/get-many-contract.class.d.ts +25 -0
- package/dist/cjs/class/api/controller/generated/get-many-contract.class.js +250 -0
- package/dist/cjs/class/api/controller/generated/get-many-contract.class.js.map +1 -0
- package/dist/cjs/class/api/controller/generated/index.d.ts +3 -0
- package/dist/cjs/class/api/controller/generated/read-scope-storage.class.d.ts +19 -0
- package/dist/cjs/class/api/controller/generated/read-scope-storage.class.js +120 -0
- package/dist/cjs/class/api/controller/generated/read-scope-storage.class.js.map +1 -0
- package/dist/cjs/class/api/controller/generated/relation-cache-contract.class.d.ts +11 -0
- package/dist/cjs/class/api/controller/generated/relation-cache-contract.class.js +70 -0
- package/dist/cjs/class/api/controller/generated/relation-cache-contract.class.js.map +1 -0
- package/dist/cjs/class/api/controller/generated/scope-where-contract.class.d.ts +14 -0
- package/dist/cjs/class/api/controller/generated/scope-where-contract.class.js +68 -0
- package/dist/cjs/class/api/controller/generated/scope-where-contract.class.js.map +1 -0
- package/dist/cjs/class/api/controller/generated/security-snapshot.class.d.ts +14 -0
- package/dist/cjs/class/api/controller/generated/security-snapshot.class.js +165 -0
- package/dist/cjs/class/api/controller/generated/security-snapshot.class.js.map +1 -0
- package/dist/cjs/class/api/controller/generated/write-hydration-contract.class.d.ts +9 -0
- package/dist/cjs/class/api/controller/generated/write-hydration-contract.class.js +69 -0
- package/dist/cjs/class/api/controller/generated/write-hydration-contract.class.js.map +1 -0
- package/dist/cjs/class/api/controller/get-list/cursor/data-source-contract.class.d.ts +32 -0
- package/dist/cjs/class/api/controller/get-list/cursor/data-source-contract.class.js +424 -0
- package/dist/cjs/class/api/controller/get-list/cursor/data-source-contract.class.js.map +1 -0
- package/dist/cjs/class/api/controller/get-list/cursor/index.d.ts +2 -0
- package/dist/cjs/class/api/controller/get-list/cursor/runtime.class.d.ts +28 -0
- package/dist/cjs/class/api/controller/get-list/cursor/runtime.class.js +371 -0
- package/dist/cjs/class/api/controller/get-list/cursor/runtime.class.js.map +1 -0
- package/dist/cjs/class/api/controller/get-list/query/plan-compiler.class.d.ts +20 -0
- package/dist/cjs/class/api/controller/get-list/query/plan-compiler.class.js +479 -41
- package/dist/cjs/class/api/controller/get-list/query/plan-compiler.class.js.map +1 -1
- package/dist/cjs/class/api/controller/get-list/query/runtime.class.d.ts +2 -0
- package/dist/cjs/class/api/controller/get-list/query/runtime.class.js +45 -2
- package/dist/cjs/class/api/controller/get-list/query/runtime.class.js.map +1 -1
- package/dist/cjs/class/api/controller/identity-plan-compiler.class.d.ts +14 -0
- package/dist/cjs/class/api/controller/identity-plan-compiler.class.js +150 -0
- package/dist/cjs/class/api/controller/identity-plan-compiler.class.js.map +1 -0
- package/dist/cjs/class/api/controller/index.d.ts +1 -0
- package/dist/cjs/class/api/controller/read-plan-compiler.class.d.ts +17 -0
- package/dist/cjs/class/api/controller/read-plan-compiler.class.js +240 -0
- package/dist/cjs/class/api/controller/read-plan-compiler.class.js.map +1 -0
- package/dist/cjs/class/api/function/context-storage.class.js +1 -0
- package/dist/cjs/class/api/function/context-storage.class.js.map +1 -1
- package/dist/cjs/class/api/function/custom-runtime.class.js +1 -0
- package/dist/cjs/class/api/function/custom-runtime.class.js.map +1 -1
- package/dist/cjs/class/api/function/step-runtime.class.js +1 -0
- package/dist/cjs/class/api/function/step-runtime.class.js.map +1 -1
- package/dist/cjs/class/api/function/transaction/exception/commit-unknown-outcome.class.js +1 -0
- package/dist/cjs/class/api/function/transaction/exception/commit-unknown-outcome.class.js.map +1 -1
- package/dist/cjs/class/api/function/transaction/exception/post-commit.class.js +1 -0
- package/dist/cjs/class/api/function/transaction/exception/post-commit.class.js.map +1 -1
- package/dist/cjs/class/api/function/transaction/exception/rollback.class.js +1 -0
- package/dist/cjs/class/api/function/transaction/exception/rollback.class.js.map +1 -1
- package/dist/cjs/class/api/function/transaction/lifecycle.class.js +1 -0
- package/dist/cjs/class/api/function/transaction/lifecycle.class.js.map +1 -1
- package/dist/cjs/class/api/function/transaction/registry.class.js +1 -0
- package/dist/cjs/class/api/function/transaction/registry.class.js.map +1 -1
- package/dist/cjs/class/api/function/transaction/runtime.class.js +1 -0
- package/dist/cjs/class/api/function/transaction/runtime.class.js.map +1 -1
- package/dist/cjs/class/api/function/transaction/scope.class.js +1 -0
- package/dist/cjs/class/api/function/transaction/scope.class.js.map +1 -1
- package/dist/cjs/class/api/route-runtime.class.d.ts +2 -0
- package/dist/cjs/class/api/route-runtime.class.js +202 -60
- package/dist/cjs/class/api/route-runtime.class.js.map +1 -1
- package/dist/cjs/class/api/subscriber/executor.class.js +1 -0
- package/dist/cjs/class/api/subscriber/executor.class.js.map +1 -1
- package/dist/cjs/class/api/subscriber/registry.class.d.ts +3 -3
- package/dist/cjs/class/api/subscriber/registry.class.js +3 -1
- package/dist/cjs/class/api/subscriber/registry.class.js.map +1 -1
- package/dist/cjs/class/api/subscriber/route-base.class.d.ts +2 -2
- package/dist/cjs/class/api/subscriber/route-base.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/exception/details/foreign-key-violation.class.js +1 -0
- 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 +1 -0
- 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 +1 -0
- package/dist/cjs/class/utility/dto/property/factory/number.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/property/factory/relation.class.js +1 -0
- package/dist/cjs/class/utility/dto/property/factory/relation.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/body.class.js +1 -0
- package/dist/cjs/class/utility/dto/strategy/body.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/query.class.js +1 -0
- package/dist/cjs/class/utility/dto/strategy/query.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/request.class.js +1 -0
- package/dist/cjs/class/utility/dto/strategy/request.class.js.map +1 -1
- package/dist/cjs/class/utility/dto/strategy/response.class.js +1 -0
- package/dist/cjs/class/utility/dto/strategy/response.class.js.map +1 -1
- package/dist/cjs/constant/api-controller-cursor.constant.d.ts +1 -0
- package/dist/cjs/constant/api-controller-cursor.constant.js +6 -0
- package/dist/cjs/constant/api-controller-cursor.constant.js.map +1 -0
- package/dist/cjs/constant/filter/operator-registry.constant.js +1 -0
- package/dist/cjs/constant/filter/operator-registry.constant.js.map +1 -1
- package/dist/cjs/constant/safe-object-property-names.constant.d.ts +1 -0
- package/dist/cjs/constant/safe-object-property-names.constant.js +6 -0
- package/dist/cjs/constant/safe-object-property-names.constant.js.map +1 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/customizer-map.constant.js +1 -0
- package/dist/cjs/constant/utility/api/get-default-string-format-properties/customizer-map.constant.js.map +1 -1
- package/dist/cjs/constant/utility/dto/constant.js +1 -0
- package/dist/cjs/constant/utility/dto/constant.js.map +1 -1
- package/dist/cjs/decorator/api/controller/decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/create.decorator.js +1 -0
- package/dist/cjs/decorator/api/function/create.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/custom.decorator.js +1 -0
- package/dist/cjs/decorator/api/function/custom.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/decorator.js +5 -0
- package/dist/cjs/decorator/api/function/decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/delete.decorator.js +19 -7
- package/dist/cjs/decorator/api/function/delete.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get/decorator.js +53 -19
- package/dist/cjs/decorator/api/function/get/decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get/list.decorator.js +41 -27
- package/dist/cjs/decorator/api/function/get/list.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get/many.decorator.js +70 -19
- package/dist/cjs/decorator/api/function/get/many.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/step.decorator.js +1 -0
- package/dist/cjs/decorator/api/function/step.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/update.decorator.js +20 -1
- package/dist/cjs/decorator/api/function/update.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/method.decorator.js +1 -0
- package/dist/cjs/decorator/api/method.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/boolean.decorator.js +1 -0
- package/dist/cjs/decorator/api/property/boolean.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/date.decorator.js +1 -0
- package/dist/cjs/decorator/api/property/date.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/number.decorator.js +1 -0
- package/dist/cjs/decorator/api/property/number.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/string.decorator.js +1 -0
- package/dist/cjs/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/uuid.decorator.js +1 -0
- package/dist/cjs/decorator/api/property/uuid.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/route-custom.decorator.js +1 -0
- package/dist/cjs/decorator/api/route-custom.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/service/decorator.js +16 -0
- package/dist/cjs/decorator/api/service/decorator.js.map +1 -1
- package/dist/cjs/enum/decorator/api/controller/get-list/query/index.d.ts +1 -0
- package/dist/cjs/enum/decorator/api/controller/get-list/query/pagination-mode.enum.d.ts +4 -0
- package/dist/cjs/enum/decorator/api/controller/get-list/query/pagination-mode.enum.js +8 -0
- package/dist/cjs/enum/decorator/api/controller/get-list/query/pagination-mode.enum.js.map +1 -0
- package/dist/cjs/factory/api-controller.factory.d.ts +4 -4
- package/dist/cjs/factory/api-controller.factory.js +37 -11
- package/dist/cjs/factory/api-controller.factory.js.map +1 -1
- package/dist/cjs/index.js +15 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interface/api/request-validator.interface.d.ts +3 -2
- package/dist/cjs/interface/class/api/authorization/policy/build-options.interface.d.ts +3 -2
- package/dist/cjs/interface/class/api/authorization/policy/registry.interface.d.ts +3 -2
- package/dist/cjs/interface/class/api/authorization/policy/subscriber/context/data.interface.d.ts +2 -1
- package/dist/cjs/interface/class/api/authorization/policy/subscriber/context/interface.d.ts +3 -2
- package/dist/cjs/interface/class/api/authorization/policy/subscriber/interface.d.ts +9 -8
- package/dist/cjs/interface/class/api/authorization/policy/subscriber/registration.interface.d.ts +3 -2
- package/dist/cjs/interface/class/api/authorization/request-metadata.interface.d.ts +3 -2
- package/dist/cjs/interface/class/api/controller/generated/get-many-session.interface.d.ts +11 -0
- package/dist/cjs/interface/class/api/controller/generated/index.d.ts +2 -0
- package/dist/cjs/interface/class/api/controller/generated/read-scope-entry.interface.d.ts +10 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/plan/order/entry.interface.d.ts +5 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/plan/order/index.d.ts +1 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/plan/order/interface.d.ts +3 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/plan/pagination.interface.d.ts +4 -0
- package/dist/cjs/interface/class/api/controller/get-list/query/runtime-result.interface.d.ts +2 -0
- package/dist/cjs/interface/class/api/controller/identity-plan.interface.d.ts +7 -0
- package/dist/cjs/interface/class/api/controller/index.d.ts +1 -0
- package/dist/cjs/interface/class/api/controller/read/index.d.ts +1 -0
- package/dist/cjs/interface/class/api/controller/read/plan/index.d.ts +2 -0
- package/dist/cjs/interface/class/api/controller/read/plan/interface.d.ts +7 -0
- package/dist/cjs/interface/class/api/controller/read/plan/parameter.interface.d.ts +4 -0
- package/dist/cjs/interface/class/api/route/runtime/generated/targets.interface.d.ts +2 -1
- package/dist/cjs/interface/class/api/subscriber/route/execution/context/data/extended.interface.d.ts +3 -2
- package/dist/cjs/interface/class/api/subscriber/route.interface.d.ts +7 -7
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/index.d.ts +1 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/read/index.d.ts +3 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/read/interface.d.ts +4 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/read/scope-parameter.interface.d.ts +5 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/read/scope.interface.d.ts +4 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/index.d.ts +1 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/interface.d.ts +2 -2
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/query/index.d.ts +1 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/query/interface.d.ts +4 -1
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/query/order/entry.interface.d.ts +6 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/query/order/index.d.ts +1 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/query/order/interface.d.ts +3 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/query/pagination.interface.d.ts +4 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/read-parameters-target.interface.d.ts +5 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/base/request/target.interface.d.ts +3 -2
- package/dist/cjs/interface/decorator/api/controller/properties/route/identity.interface.d.ts +3 -0
- package/dist/cjs/interface/decorator/api/controller/properties/route/index.d.ts +1 -0
- package/dist/cjs/interface/decorator/api/get-list/cursor-response-result.interface.d.ts +5 -0
- package/dist/cjs/interface/decorator/api/get-list/index.d.ts +2 -0
- package/dist/cjs/interface/decorator/api/index.d.ts +1 -1
- package/dist/cjs/module/api/authorization.module.js +2 -1
- package/dist/cjs/module/api/authorization.module.js.map +1 -1
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/type/api-request-transformer.type.d.ts +4 -2
- package/dist/cjs/type/class/api/authorization/policy/before/get/list-result.type.d.ts +2 -1
- package/dist/cjs/type/class/api/authorization/policy/context/before/get/list-context.type.d.ts +4 -3
- package/dist/cjs/type/class/api/authorization/policy/context/with-request-metadata.type.d.ts +4 -3
- package/dist/cjs/type/class/api/authorization/policy/hook/execution-result.type.d.ts +5 -0
- package/dist/cjs/type/class/api/authorization/policy/hook/result.type.d.ts +3 -2
- package/dist/cjs/type/class/api/authorization/policy/hook/type.d.ts +2 -1
- package/dist/cjs/type/class/api/authorization/rule/transform-payload.type.d.ts +2 -2
- package/dist/cjs/type/class/api/controller/generated/function.type.d.ts +1 -0
- package/dist/cjs/type/class/api/controller/generated/index.d.ts +2 -0
- package/dist/cjs/type/class/api/controller/generated/scope-function-type.type.d.ts +2 -0
- package/dist/cjs/type/class/api/controller/get-list/compiled/index.d.ts +3 -0
- package/dist/cjs/type/class/api/controller/get-list/compiled/order-field.type.d.ts +16 -0
- package/dist/cjs/type/class/api/controller/get-list/compiled/order.type.d.ts +6 -0
- package/dist/cjs/type/class/api/controller/get-list/compiled/plan.type.d.ts +8 -0
- package/dist/cjs/type/class/api/controller/get-list/cursor/execution-options.type.d.ts +18 -0
- package/dist/cjs/type/class/api/controller/get-list/cursor/index.d.ts +2 -0
- package/dist/cjs/type/class/api/controller/get-list/cursor/query-runtime-result.type.d.ts +8 -0
- package/dist/cjs/type/class/api/controller/get-list/index.d.ts +2 -0
- package/dist/cjs/type/class/api/controller/index.d.ts +1 -0
- package/dist/cjs/type/class/api/subscriber/route/after/get/list-context.type.d.ts +3 -2
- package/dist/cjs/type/class/api/subscriber/route/before/get/list-context.type.d.ts +5 -6
- package/dist/cjs/type/decorator/api/controller/get-list/index.d.ts +1 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/dto-contract.type.d.ts +1 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/request-target.type.d.ts +7 -0
- package/dist/cjs/type/decorator/api/controller/get-list/query/type.d.ts +22 -2
- package/dist/cjs/type/decorator/api/controller/get-list/response.type.d.ts +3 -0
- package/dist/cjs/type/decorator/api/controller/index.d.ts +1 -0
- package/dist/cjs/type/decorator/api/controller/properties/route/contract.type.d.ts +5 -0
- package/dist/cjs/type/decorator/api/controller/properties/route/identity/index.d.ts +2 -0
- package/dist/cjs/type/decorator/api/controller/properties/route/identity/with.type.d.ts +11 -0
- package/dist/cjs/type/decorator/api/controller/properties/route/identity/without.type.d.ts +3 -0
- package/dist/cjs/type/decorator/api/controller/properties/route/read/dto.type.d.ts +10 -0
- package/dist/cjs/type/decorator/api/controller/properties/route/read/index.d.ts +3 -0
- package/dist/cjs/type/decorator/api/controller/properties/route/read/with.type.d.ts +11 -0
- package/dist/cjs/type/decorator/api/controller/properties/route/read/without.type.d.ts +3 -0
- package/dist/cjs/type/decorator/api/controller/properties/route/without-parameters-dto.type.d.ts +4 -0
- package/dist/cjs/type/decorator/api/controller/properties-route.type.d.ts +3 -3
- package/dist/cjs/type/decorator/api/controller/read/direct-scalar-field.type.d.ts +2 -0
- package/dist/cjs/type/decorator/api/controller/read/index.d.ts +2 -0
- package/dist/cjs/type/decorator/api/controller/read/parameter-transformer/index.d.ts +1 -0
- package/dist/cjs/type/decorator/api/controller/read/parameter-transformer/type.d.ts +3 -0
- package/dist/cjs/type/decorator/api/controller/read/parameter-transformer/with-string-key.type.d.ts +5 -0
- package/dist/cjs/type/decorator/api/property/describe/properties/base/properties.type.d.ts +1 -1
- package/dist/cjs/type/factory/api/controller/method/map.type.d.ts +4 -5
- package/dist/cjs/type/factory/api/controller/target-methods.type.d.ts +3 -3
- package/dist/cjs/type/utility/api/controller/transform-data/is-validation-properties.type.d.ts +3 -2
- package/dist/cjs/type/utility/api/controller/transform-data/object-to-transform.type.d.ts +4 -3
- package/dist/cjs/type/utility/api/controller/transform-data/runtime-transformer.type.d.ts +3 -0
- package/dist/cjs/type/utility/api/controller/transform-data/targets.type.d.ts +17 -0
- package/dist/cjs/type/utility/dto/generate/allowed-combination.type.d.ts +1 -1
- package/dist/cjs/utility/api/controller/apply/decorators.utility.d.ts +18 -2
- package/dist/cjs/utility/api/controller/apply/decorators.utility.js +24 -2
- package/dist/cjs/utility/api/controller/apply/decorators.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/apply/metadata.utility.d.ts +18 -0
- package/dist/cjs/utility/api/controller/apply/metadata.utility.js +23 -3
- package/dist/cjs/utility/api/controller/apply/metadata.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/build-route-documentation.utility.js +1 -0
- package/dist/cjs/utility/api/controller/build-route-documentation.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/get/dto.utility.d.ts +17 -0
- package/dist/cjs/utility/api/controller/get/dto.utility.js +90 -11
- package/dist/cjs/utility/api/controller/get/dto.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/get-list/query/get-pagination-mode.utility.d.ts +8 -0
- package/dist/cjs/utility/api/controller/get-list/query/get-pagination-mode.utility.js +43 -0
- package/dist/cjs/utility/api/controller/get-list/query/get-pagination-mode.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/get-list/query/open-api/decorators.utility.js +1 -0
- package/dist/cjs/utility/api/controller/get-list/query/open-api/decorators.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/get-list/query/open-api/value-schema.utility.js +1 -0
- package/dist/cjs/utility/api/controller/get-list/query/open-api/value-schema.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/get-list/query/resolve-cursor-order-fields.utility.d.ts +7 -0
- package/dist/cjs/utility/api/controller/get-list/query/resolve-cursor-order-fields.utility.js +26 -0
- package/dist/cjs/utility/api/controller/get-list/query/resolve-cursor-order-fields.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/get-list/transform/filter.utility.js +1 -0
- package/dist/cjs/utility/api/controller/get-list/transform/filter.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/handle-request-relations.utility.d.ts +2 -1
- package/dist/cjs/utility/api/controller/handle-request-relations.utility.js +1 -0
- package/dist/cjs/utility/api/controller/handle-request-relations.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/identity/assert-plan.utility.d.ts +8 -0
- package/dist/cjs/utility/api/controller/identity/assert-plan.utility.js +18 -0
- package/dist/cjs/utility/api/controller/identity/assert-plan.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/identity/index.d.ts +2 -0
- package/dist/cjs/utility/api/controller/identity/plan/get.utility.d.ts +7 -0
- package/dist/cjs/utility/api/controller/identity/plan/get.utility.js +15 -0
- package/dist/cjs/utility/api/controller/identity/plan/get.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/identity/plan/index.d.ts +2 -0
- package/dist/cjs/utility/api/controller/identity/plan/metadata-key.constant.d.ts +1 -0
- package/dist/cjs/utility/api/controller/identity/plan/metadata-key.constant.js +6 -0
- package/dist/cjs/utility/api/controller/identity/plan/metadata-key.constant.js.map +1 -0
- package/dist/cjs/utility/api/controller/identity/plan/set.utility.d.ts +8 -0
- package/dist/cjs/utility/api/controller/identity/plan/set.utility.js +16 -0
- package/dist/cjs/utility/api/controller/identity/plan/set.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/read/assert-plan.utility.d.ts +8 -0
- package/dist/cjs/utility/api/controller/read/assert-plan.utility.js +18 -0
- package/dist/cjs/utility/api/controller/read/assert-plan.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/read/index.d.ts +3 -0
- package/dist/cjs/utility/api/controller/read/plan/get.utility.d.ts +8 -0
- package/dist/cjs/utility/api/controller/read/plan/get.utility.js +16 -0
- package/dist/cjs/utility/api/controller/read/plan/get.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/read/plan/index.d.ts +2 -0
- package/dist/cjs/utility/api/controller/read/plan/metadata-key.constant.d.ts +1 -0
- package/dist/cjs/utility/api/controller/read/plan/metadata-key.constant.js +6 -0
- package/dist/cjs/utility/api/controller/read/plan/metadata-key.constant.js.map +1 -0
- package/dist/cjs/utility/api/controller/read/plan/set.utility.d.ts +9 -0
- package/dist/cjs/utility/api/controller/read/plan/set.utility.js +17 -0
- package/dist/cjs/utility/api/controller/read/plan/set.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/read/scope.utility.d.ts +12 -0
- package/dist/cjs/utility/api/controller/read/scope.utility.js +38 -0
- package/dist/cjs/utility/api/controller/read/scope.utility.js.map +1 -0
- package/dist/cjs/utility/api/controller/transform-data.utility.js +13 -11
- package/dist/cjs/utility/api/controller/transform-data.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/validate-request.utility.d.ts +2 -1
- package/dist/cjs/utility/api/controller/validate-request.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/write/dto-swagger.utility.d.ts +17 -0
- package/dist/cjs/utility/api/controller/write/dto-swagger.utility.js +23 -4
- package/dist/cjs/utility/api/controller/write/dto-swagger.utility.js.map +1 -1
- package/dist/cjs/utility/api/function-transaction.utility.js +1 -0
- package/dist/cjs/utility/api/function-transaction.utility.js.map +1 -1
- package/dist/cjs/utility/api/route/apply-dto-metadata.utility.js +1 -0
- package/dist/cjs/utility/api/route/apply-dto-metadata.utility.js.map +1 -1
- package/dist/cjs/utility/api/route/response/project-relation.utility.js +1 -0
- package/dist/cjs/utility/api/route/response/project-relation.utility.js.map +1 -1
- package/dist/cjs/utility/authorization/scope-merge-where.utility.js +247 -130
- package/dist/cjs/utility/authorization/scope-merge-where.utility.js.map +1 -1
- package/dist/cjs/utility/dto/build-decorator.utility.js +1 -0
- package/dist/cjs/utility/dto/build-decorator.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate/core.utility.js +19 -7
- package/dist/cjs/utility/dto/generate/core.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate/dynamic.utility.js +1 -0
- package/dist/cjs/utility/dto/generate/dynamic.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate/exception.utility.js +1 -0
- package/dist/cjs/utility/dto/generate/exception.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate/filter-decorator.utility.js +1 -0
- package/dist/cjs/utility/dto/generate/filter-decorator.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate/get-list/cursor-response.utility.d.ts +10 -0
- package/dist/cjs/utility/dto/generate/get-list/cursor-response.utility.js +100 -0
- package/dist/cjs/utility/dto/generate/get-list/cursor-response.utility.js.map +1 -0
- package/dist/cjs/utility/dto/generate/get-list/index.d.ts +3 -0
- package/dist/cjs/utility/dto/generate/{get-list-query-properties.utility.d.ts → get-list/query-properties.utility.d.ts} +4 -4
- package/dist/cjs/utility/dto/generate/{get-list-query-properties.utility.js → get-list/query-properties.utility.js} +35 -34
- package/dist/cjs/utility/dto/generate/get-list/query-properties.utility.js.map +1 -0
- package/dist/cjs/utility/dto/generate/{get-list-response.utility.d.ts → get-list/response.utility.d.ts} +1 -1
- package/dist/cjs/utility/dto/generate/{get-list-response.utility.js → get-list/response.utility.js} +33 -32
- package/dist/cjs/utility/dto/generate/get-list/response.utility.js.map +1 -0
- package/dist/cjs/utility/dto/generate/identity-read-parameters.utility.d.ts +17 -0
- package/dist/cjs/utility/dto/generate/identity-read-parameters.utility.js +113 -0
- package/dist/cjs/utility/dto/generate/identity-read-parameters.utility.js.map +1 -0
- package/dist/cjs/utility/dto/generate/index.d.ts +1 -1
- package/dist/cjs/utility/dto/generate/read-parameters.utility.d.ts +17 -0
- package/dist/cjs/utility/dto/generate/read-parameters.utility.js +111 -0
- package/dist/cjs/utility/dto/generate/read-parameters.utility.js.map +1 -0
- package/dist/cjs/utility/dto/get/get-list-query-base-class.utility.d.ts +3 -2
- package/dist/cjs/utility/dto/get/get-list-query-base-class.utility.js +48 -15
- package/dist/cjs/utility/dto/get/get-list-query-base-class.utility.js.map +1 -1
- package/dist/cjs/utility/dto/handle-date-property.utility.js +1 -0
- package/dist/cjs/utility/dto/handle-date-property.utility.js.map +1 -1
- package/dist/cjs/utility/dto/is/property/infrastructure-timestamp.utility.js +1 -0
- package/dist/cjs/utility/dto/is/property/infrastructure-timestamp.utility.js.map +1 -1
- package/dist/cjs/utility/dto/is/property/should-be-marked.utility.js +1 -0
- package/dist/cjs/utility/dto/is/property/should-be-marked.utility.js.map +1 -1
- package/dist/cjs/utility/dto/is/should-be-generated.utility.js +1 -0
- package/dist/cjs/utility/dto/is/should-be-generated.utility.js.map +1 -1
- package/dist/cjs/utility/object-find-property-descriptor.utility.d.ts +7 -0
- package/dist/cjs/utility/object-find-property-descriptor.utility.js +22 -0
- package/dist/cjs/utility/object-find-property-descriptor.utility.js.map +1 -0
- package/dist/cjs/validator/at-most-one-of-listed-properties.validator.d.ts +5 -0
- package/dist/cjs/validator/at-most-one-of-listed-properties.validator.js +21 -0
- package/dist/cjs/validator/at-most-one-of-listed-properties.validator.js.map +1 -0
- package/dist/esm/class/api/authorization/guard.class.d.ts +1 -0
- package/dist/esm/class/api/authorization/guard.class.js +39 -3
- package/dist/esm/class/api/authorization/guard.class.js.map +1 -1
- package/dist/esm/class/api/authorization/iam/engine.class.d.ts +3 -2
- package/dist/esm/class/api/authorization/iam/engine.class.js.map +1 -1
- package/dist/esm/class/api/authorization/iam/query-planner.class.d.ts +3 -2
- package/dist/esm/class/api/authorization/iam/query-planner.class.js.map +1 -1
- package/dist/esm/class/api/authorization/policy/base.class.js +1 -0
- package/dist/esm/class/api/authorization/policy/base.class.js.map +1 -1
- package/dist/esm/class/api/authorization/policy/executor.class.d.ts +2 -1
- package/dist/esm/class/api/authorization/policy/executor.class.js.map +1 -1
- package/dist/esm/class/api/authorization/policy/registry.class.d.ts +3 -2
- package/dist/esm/class/api/authorization/policy/registry.class.js.map +1 -1
- package/dist/esm/class/api/authorization/runtime.class.d.ts +3 -2
- package/dist/esm/class/api/authorization/runtime.class.js +2 -1
- package/dist/esm/class/api/authorization/runtime.class.js.map +1 -1
- package/dist/esm/class/api/authorization/simulator.class.d.ts +3 -3
- package/dist/esm/class/api/authorization/simulator.class.js.map +1 -1
- package/dist/esm/class/api/controller/generated/function-capability.class.d.ts +12 -0
- package/dist/esm/class/api/controller/generated/function-capability.class.js +45 -0
- package/dist/esm/class/api/controller/generated/function-capability.class.js.map +1 -0
- package/dist/esm/class/api/controller/generated/get-many-contract.class.d.ts +25 -0
- package/dist/esm/class/api/controller/generated/get-many-contract.class.js +248 -0
- package/dist/esm/class/api/controller/generated/get-many-contract.class.js.map +1 -0
- package/dist/esm/class/api/controller/generated/index.d.ts +3 -0
- package/dist/esm/class/api/controller/generated/read-scope-storage.class.d.ts +19 -0
- package/dist/esm/class/api/controller/generated/read-scope-storage.class.js +118 -0
- package/dist/esm/class/api/controller/generated/read-scope-storage.class.js.map +1 -0
- package/dist/esm/class/api/controller/generated/relation-cache-contract.class.d.ts +11 -0
- package/dist/esm/class/api/controller/generated/relation-cache-contract.class.js +68 -0
- package/dist/esm/class/api/controller/generated/relation-cache-contract.class.js.map +1 -0
- package/dist/esm/class/api/controller/generated/scope-where-contract.class.d.ts +14 -0
- package/dist/esm/class/api/controller/generated/scope-where-contract.class.js +66 -0
- package/dist/esm/class/api/controller/generated/scope-where-contract.class.js.map +1 -0
- package/dist/esm/class/api/controller/generated/security-snapshot.class.d.ts +14 -0
- package/dist/esm/class/api/controller/generated/security-snapshot.class.js +163 -0
- package/dist/esm/class/api/controller/generated/security-snapshot.class.js.map +1 -0
- package/dist/esm/class/api/controller/generated/write-hydration-contract.class.d.ts +9 -0
- package/dist/esm/class/api/controller/generated/write-hydration-contract.class.js +67 -0
- package/dist/esm/class/api/controller/generated/write-hydration-contract.class.js.map +1 -0
- package/dist/esm/class/api/controller/get-list/cursor/data-source-contract.class.d.ts +32 -0
- package/dist/esm/class/api/controller/get-list/cursor/data-source-contract.class.js +422 -0
- package/dist/esm/class/api/controller/get-list/cursor/data-source-contract.class.js.map +1 -0
- package/dist/esm/class/api/controller/get-list/cursor/index.d.ts +2 -0
- package/dist/esm/class/api/controller/get-list/cursor/runtime.class.d.ts +28 -0
- package/dist/esm/class/api/controller/get-list/cursor/runtime.class.js +369 -0
- package/dist/esm/class/api/controller/get-list/cursor/runtime.class.js.map +1 -0
- package/dist/esm/class/api/controller/get-list/query/plan-compiler.class.d.ts +20 -0
- package/dist/esm/class/api/controller/get-list/query/plan-compiler.class.js +479 -41
- package/dist/esm/class/api/controller/get-list/query/plan-compiler.class.js.map +1 -1
- package/dist/esm/class/api/controller/get-list/query/runtime.class.d.ts +2 -0
- package/dist/esm/class/api/controller/get-list/query/runtime.class.js +45 -2
- package/dist/esm/class/api/controller/get-list/query/runtime.class.js.map +1 -1
- package/dist/esm/class/api/controller/identity-plan-compiler.class.d.ts +14 -0
- package/dist/esm/class/api/controller/identity-plan-compiler.class.js +148 -0
- package/dist/esm/class/api/controller/identity-plan-compiler.class.js.map +1 -0
- package/dist/esm/class/api/controller/index.d.ts +1 -0
- package/dist/esm/class/api/controller/read-plan-compiler.class.d.ts +17 -0
- package/dist/esm/class/api/controller/read-plan-compiler.class.js +238 -0
- package/dist/esm/class/api/controller/read-plan-compiler.class.js.map +1 -0
- package/dist/esm/class/api/function/context-storage.class.js +1 -0
- package/dist/esm/class/api/function/context-storage.class.js.map +1 -1
- package/dist/esm/class/api/function/custom-runtime.class.js +1 -0
- package/dist/esm/class/api/function/custom-runtime.class.js.map +1 -1
- package/dist/esm/class/api/function/step-runtime.class.js +1 -0
- package/dist/esm/class/api/function/step-runtime.class.js.map +1 -1
- package/dist/esm/class/api/function/transaction/exception/commit-unknown-outcome.class.js +1 -0
- package/dist/esm/class/api/function/transaction/exception/commit-unknown-outcome.class.js.map +1 -1
- package/dist/esm/class/api/function/transaction/exception/post-commit.class.js +1 -0
- package/dist/esm/class/api/function/transaction/exception/post-commit.class.js.map +1 -1
- package/dist/esm/class/api/function/transaction/exception/rollback.class.js +1 -0
- package/dist/esm/class/api/function/transaction/exception/rollback.class.js.map +1 -1
- package/dist/esm/class/api/function/transaction/lifecycle.class.js +1 -0
- package/dist/esm/class/api/function/transaction/lifecycle.class.js.map +1 -1
- package/dist/esm/class/api/function/transaction/registry.class.js +1 -0
- package/dist/esm/class/api/function/transaction/registry.class.js.map +1 -1
- package/dist/esm/class/api/function/transaction/runtime.class.js +1 -0
- package/dist/esm/class/api/function/transaction/runtime.class.js.map +1 -1
- package/dist/esm/class/api/function/transaction/scope.class.js +1 -0
- package/dist/esm/class/api/function/transaction/scope.class.js.map +1 -1
- package/dist/esm/class/api/route-runtime.class.d.ts +2 -0
- package/dist/esm/class/api/route-runtime.class.js +201 -59
- package/dist/esm/class/api/route-runtime.class.js.map +1 -1
- package/dist/esm/class/api/subscriber/executor.class.js +1 -0
- package/dist/esm/class/api/subscriber/executor.class.js.map +1 -1
- package/dist/esm/class/api/subscriber/registry.class.d.ts +3 -3
- package/dist/esm/class/api/subscriber/registry.class.js +3 -1
- package/dist/esm/class/api/subscriber/registry.class.js.map +1 -1
- package/dist/esm/class/api/subscriber/route-base.class.d.ts +2 -2
- package/dist/esm/class/api/subscriber/route-base.class.js.map +1 -1
- package/dist/esm/class/utility/dto/exception/details/foreign-key-violation.class.js +1 -0
- 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 +1 -0
- 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 +1 -0
- package/dist/esm/class/utility/dto/property/factory/number.class.js.map +1 -1
- package/dist/esm/class/utility/dto/property/factory/relation.class.js +1 -0
- package/dist/esm/class/utility/dto/property/factory/relation.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/body.class.js +1 -0
- package/dist/esm/class/utility/dto/strategy/body.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/query.class.js +1 -0
- package/dist/esm/class/utility/dto/strategy/query.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/request.class.js +1 -0
- package/dist/esm/class/utility/dto/strategy/request.class.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/response.class.js +1 -0
- package/dist/esm/class/utility/dto/strategy/response.class.js.map +1 -1
- package/dist/esm/constant/api-controller-cursor.constant.d.ts +1 -0
- package/dist/esm/constant/api-controller-cursor.constant.js +4 -0
- package/dist/esm/constant/api-controller-cursor.constant.js.map +1 -0
- package/dist/esm/constant/filter/operator-registry.constant.js +1 -0
- package/dist/esm/constant/filter/operator-registry.constant.js.map +1 -1
- package/dist/esm/constant/safe-object-property-names.constant.d.ts +1 -0
- package/dist/esm/constant/safe-object-property-names.constant.js +4 -0
- package/dist/esm/constant/safe-object-property-names.constant.js.map +1 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/customizer-map.constant.js +1 -0
- package/dist/esm/constant/utility/api/get-default-string-format-properties/customizer-map.constant.js.map +1 -1
- package/dist/esm/constant/utility/dto/constant.js +1 -0
- package/dist/esm/constant/utility/dto/constant.js.map +1 -1
- package/dist/esm/decorator/api/controller/decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/create.decorator.js +1 -0
- package/dist/esm/decorator/api/function/create.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/custom.decorator.js +1 -0
- package/dist/esm/decorator/api/function/custom.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/decorator.js +5 -0
- package/dist/esm/decorator/api/function/decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/delete.decorator.js +19 -7
- package/dist/esm/decorator/api/function/delete.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get/decorator.js +53 -19
- package/dist/esm/decorator/api/function/get/decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get/list.decorator.js +41 -27
- package/dist/esm/decorator/api/function/get/list.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get/many.decorator.js +70 -19
- package/dist/esm/decorator/api/function/get/many.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/step.decorator.js +1 -0
- package/dist/esm/decorator/api/function/step.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/update.decorator.js +20 -1
- package/dist/esm/decorator/api/function/update.decorator.js.map +1 -1
- package/dist/esm/decorator/api/method.decorator.js +1 -0
- package/dist/esm/decorator/api/method.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/boolean.decorator.js +1 -0
- package/dist/esm/decorator/api/property/boolean.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/date.decorator.js +1 -0
- package/dist/esm/decorator/api/property/date.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/number.decorator.js +1 -0
- package/dist/esm/decorator/api/property/number.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/string.decorator.js +1 -0
- package/dist/esm/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/uuid.decorator.js +1 -0
- package/dist/esm/decorator/api/property/uuid.decorator.js.map +1 -1
- package/dist/esm/decorator/api/route-custom.decorator.js +1 -0
- package/dist/esm/decorator/api/route-custom.decorator.js.map +1 -1
- package/dist/esm/decorator/api/service/decorator.js +16 -0
- package/dist/esm/decorator/api/service/decorator.js.map +1 -1
- package/dist/esm/enum/decorator/api/controller/get-list/query/index.d.ts +1 -0
- package/dist/esm/enum/decorator/api/controller/get-list/query/pagination-mode.enum.d.ts +4 -0
- package/dist/esm/enum/decorator/api/controller/get-list/query/pagination-mode.enum.js +8 -0
- package/dist/esm/enum/decorator/api/controller/get-list/query/pagination-mode.enum.js.map +1 -0
- package/dist/esm/factory/api-controller.factory.d.ts +4 -4
- package/dist/esm/factory/api-controller.factory.js +36 -10
- package/dist/esm/factory/api-controller.factory.js.map +1 -1
- package/dist/esm/index.js +7 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interface/api/request-validator.interface.d.ts +3 -2
- package/dist/esm/interface/class/api/authorization/policy/build-options.interface.d.ts +3 -2
- package/dist/esm/interface/class/api/authorization/policy/registry.interface.d.ts +3 -2
- package/dist/esm/interface/class/api/authorization/policy/subscriber/context/data.interface.d.ts +2 -1
- package/dist/esm/interface/class/api/authorization/policy/subscriber/context/interface.d.ts +3 -2
- package/dist/esm/interface/class/api/authorization/policy/subscriber/interface.d.ts +9 -8
- package/dist/esm/interface/class/api/authorization/policy/subscriber/registration.interface.d.ts +3 -2
- package/dist/esm/interface/class/api/authorization/request-metadata.interface.d.ts +3 -2
- package/dist/esm/interface/class/api/controller/generated/get-many-session.interface.d.ts +11 -0
- package/dist/esm/interface/class/api/controller/generated/index.d.ts +2 -0
- package/dist/esm/interface/class/api/controller/generated/read-scope-entry.interface.d.ts +10 -0
- package/dist/esm/interface/class/api/controller/get-list/query/plan/order/entry.interface.d.ts +5 -0
- package/dist/esm/interface/class/api/controller/get-list/query/plan/order/index.d.ts +1 -0
- package/dist/esm/interface/class/api/controller/get-list/query/plan/order/interface.d.ts +3 -0
- package/dist/esm/interface/class/api/controller/get-list/query/plan/pagination.interface.d.ts +4 -0
- package/dist/esm/interface/class/api/controller/get-list/query/runtime-result.interface.d.ts +2 -0
- package/dist/esm/interface/class/api/controller/identity-plan.interface.d.ts +7 -0
- package/dist/esm/interface/class/api/controller/index.d.ts +1 -0
- package/dist/esm/interface/class/api/controller/read/index.d.ts +1 -0
- package/dist/esm/interface/class/api/controller/read/plan/index.d.ts +2 -0
- package/dist/esm/interface/class/api/controller/read/plan/interface.d.ts +7 -0
- package/dist/esm/interface/class/api/controller/read/plan/parameter.interface.d.ts +4 -0
- package/dist/esm/interface/class/api/route/runtime/generated/targets.interface.d.ts +2 -1
- package/dist/esm/interface/class/api/subscriber/route/execution/context/data/extended.interface.d.ts +3 -2
- package/dist/esm/interface/class/api/subscriber/route.interface.d.ts +7 -7
- package/dist/esm/interface/decorator/api/controller/properties/route/base/index.d.ts +1 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/read/index.d.ts +3 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/read/interface.d.ts +4 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/read/scope-parameter.interface.d.ts +5 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/read/scope.interface.d.ts +4 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/index.d.ts +1 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/interface.d.ts +2 -2
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/query/index.d.ts +1 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/query/interface.d.ts +4 -1
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/query/order/entry.interface.d.ts +6 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/query/order/index.d.ts +1 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/query/order/interface.d.ts +3 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/query/pagination.interface.d.ts +4 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/read-parameters-target.interface.d.ts +5 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/base/request/target.interface.d.ts +3 -2
- package/dist/esm/interface/decorator/api/controller/properties/route/identity.interface.d.ts +3 -0
- package/dist/esm/interface/decorator/api/controller/properties/route/index.d.ts +1 -0
- package/dist/esm/interface/decorator/api/get-list/cursor-response-result.interface.d.ts +5 -0
- package/dist/esm/interface/decorator/api/get-list/index.d.ts +2 -0
- package/dist/esm/interface/decorator/api/index.d.ts +1 -1
- package/dist/esm/module/api/authorization.module.js +2 -1
- package/dist/esm/module/api/authorization.module.js.map +1 -1
- package/dist/esm/package.json +1 -0
- package/dist/esm/type/api-request-transformer.type.d.ts +4 -2
- package/dist/esm/type/class/api/authorization/policy/before/get/list-result.type.d.ts +2 -1
- package/dist/esm/type/class/api/authorization/policy/context/before/get/list-context.type.d.ts +4 -3
- package/dist/esm/type/class/api/authorization/policy/context/with-request-metadata.type.d.ts +4 -3
- package/dist/esm/type/class/api/authorization/policy/hook/execution-result.type.d.ts +5 -0
- package/dist/esm/type/class/api/authorization/policy/hook/result.type.d.ts +3 -2
- package/dist/esm/type/class/api/authorization/policy/hook/type.d.ts +2 -1
- package/dist/esm/type/class/api/authorization/rule/transform-payload.type.d.ts +2 -2
- package/dist/esm/type/class/api/controller/generated/function.type.d.ts +1 -0
- package/dist/esm/type/class/api/controller/generated/index.d.ts +2 -0
- package/dist/esm/type/class/api/controller/generated/scope-function-type.type.d.ts +2 -0
- package/dist/esm/type/class/api/controller/get-list/compiled/index.d.ts +3 -0
- package/dist/esm/type/class/api/controller/get-list/compiled/order-field.type.d.ts +16 -0
- package/dist/esm/type/class/api/controller/get-list/compiled/order.type.d.ts +6 -0
- package/dist/esm/type/class/api/controller/get-list/compiled/plan.type.d.ts +8 -0
- package/dist/esm/type/class/api/controller/get-list/cursor/execution-options.type.d.ts +18 -0
- package/dist/esm/type/class/api/controller/get-list/cursor/index.d.ts +2 -0
- package/dist/esm/type/class/api/controller/get-list/cursor/query-runtime-result.type.d.ts +8 -0
- package/dist/esm/type/class/api/controller/get-list/index.d.ts +2 -0
- package/dist/esm/type/class/api/controller/index.d.ts +1 -0
- package/dist/esm/type/class/api/subscriber/route/after/get/list-context.type.d.ts +3 -2
- package/dist/esm/type/class/api/subscriber/route/before/get/list-context.type.d.ts +5 -6
- package/dist/esm/type/decorator/api/controller/get-list/index.d.ts +1 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/dto-contract.type.d.ts +1 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/request-target.type.d.ts +7 -0
- package/dist/esm/type/decorator/api/controller/get-list/query/type.d.ts +22 -2
- package/dist/esm/type/decorator/api/controller/get-list/response.type.d.ts +3 -0
- package/dist/esm/type/decorator/api/controller/index.d.ts +1 -0
- package/dist/esm/type/decorator/api/controller/properties/route/contract.type.d.ts +5 -0
- package/dist/esm/type/decorator/api/controller/properties/route/identity/index.d.ts +2 -0
- package/dist/esm/type/decorator/api/controller/properties/route/identity/with.type.d.ts +11 -0
- package/dist/esm/type/decorator/api/controller/properties/route/identity/without.type.d.ts +3 -0
- package/dist/esm/type/decorator/api/controller/properties/route/read/dto.type.d.ts +10 -0
- package/dist/esm/type/decorator/api/controller/properties/route/read/index.d.ts +3 -0
- package/dist/esm/type/decorator/api/controller/properties/route/read/with.type.d.ts +11 -0
- package/dist/esm/type/decorator/api/controller/properties/route/read/without.type.d.ts +3 -0
- package/dist/esm/type/decorator/api/controller/properties/route/without-parameters-dto.type.d.ts +4 -0
- package/dist/esm/type/decorator/api/controller/properties-route.type.d.ts +3 -3
- package/dist/esm/type/decorator/api/controller/read/direct-scalar-field.type.d.ts +2 -0
- package/dist/esm/type/decorator/api/controller/read/index.d.ts +2 -0
- package/dist/esm/type/decorator/api/controller/read/parameter-transformer/index.d.ts +1 -0
- package/dist/esm/type/decorator/api/controller/read/parameter-transformer/type.d.ts +3 -0
- package/dist/esm/type/decorator/api/controller/read/parameter-transformer/with-string-key.type.d.ts +5 -0
- package/dist/esm/type/decorator/api/property/describe/properties/base/properties.type.d.ts +1 -1
- package/dist/esm/type/factory/api/controller/method/map.type.d.ts +4 -5
- package/dist/esm/type/factory/api/controller/target-methods.type.d.ts +3 -3
- package/dist/esm/type/utility/api/controller/transform-data/is-validation-properties.type.d.ts +3 -2
- package/dist/esm/type/utility/api/controller/transform-data/object-to-transform.type.d.ts +4 -3
- package/dist/esm/type/utility/api/controller/transform-data/runtime-transformer.type.d.ts +3 -0
- package/dist/esm/type/utility/api/controller/transform-data/targets.type.d.ts +17 -0
- package/dist/esm/type/utility/dto/generate/allowed-combination.type.d.ts +1 -1
- package/dist/esm/utility/api/controller/apply/decorators.utility.d.ts +18 -2
- package/dist/esm/utility/api/controller/apply/decorators.utility.js +25 -4
- package/dist/esm/utility/api/controller/apply/decorators.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/apply/metadata.utility.d.ts +18 -0
- package/dist/esm/utility/api/controller/apply/metadata.utility.js +24 -5
- package/dist/esm/utility/api/controller/apply/metadata.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/build-route-documentation.utility.js +1 -0
- package/dist/esm/utility/api/controller/build-route-documentation.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/get/dto.utility.d.ts +17 -0
- package/dist/esm/utility/api/controller/get/dto.utility.js +90 -12
- package/dist/esm/utility/api/controller/get/dto.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/get-list/query/get-pagination-mode.utility.d.ts +8 -0
- package/dist/esm/utility/api/controller/get-list/query/get-pagination-mode.utility.js +41 -0
- package/dist/esm/utility/api/controller/get-list/query/get-pagination-mode.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/get-list/query/open-api/decorators.utility.js +1 -0
- package/dist/esm/utility/api/controller/get-list/query/open-api/decorators.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/get-list/query/open-api/value-schema.utility.js +1 -0
- package/dist/esm/utility/api/controller/get-list/query/open-api/value-schema.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/get-list/query/resolve-cursor-order-fields.utility.d.ts +7 -0
- package/dist/esm/utility/api/controller/get-list/query/resolve-cursor-order-fields.utility.js +24 -0
- package/dist/esm/utility/api/controller/get-list/query/resolve-cursor-order-fields.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/get-list/transform/filter.utility.js +1 -0
- package/dist/esm/utility/api/controller/get-list/transform/filter.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/handle-request-relations.utility.d.ts +2 -1
- package/dist/esm/utility/api/controller/handle-request-relations.utility.js +1 -0
- package/dist/esm/utility/api/controller/handle-request-relations.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/identity/assert-plan.utility.d.ts +8 -0
- package/dist/esm/utility/api/controller/identity/assert-plan.utility.js +16 -0
- package/dist/esm/utility/api/controller/identity/assert-plan.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/identity/index.d.ts +2 -0
- package/dist/esm/utility/api/controller/identity/plan/get.utility.d.ts +7 -0
- package/dist/esm/utility/api/controller/identity/plan/get.utility.js +13 -0
- package/dist/esm/utility/api/controller/identity/plan/get.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/identity/plan/index.d.ts +2 -0
- package/dist/esm/utility/api/controller/identity/plan/metadata-key.constant.d.ts +1 -0
- package/dist/esm/utility/api/controller/identity/plan/metadata-key.constant.js +4 -0
- package/dist/esm/utility/api/controller/identity/plan/metadata-key.constant.js.map +1 -0
- package/dist/esm/utility/api/controller/identity/plan/set.utility.d.ts +8 -0
- package/dist/esm/utility/api/controller/identity/plan/set.utility.js +14 -0
- package/dist/esm/utility/api/controller/identity/plan/set.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/read/assert-plan.utility.d.ts +8 -0
- package/dist/esm/utility/api/controller/read/assert-plan.utility.js +16 -0
- package/dist/esm/utility/api/controller/read/assert-plan.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/read/index.d.ts +3 -0
- package/dist/esm/utility/api/controller/read/plan/get.utility.d.ts +8 -0
- package/dist/esm/utility/api/controller/read/plan/get.utility.js +14 -0
- package/dist/esm/utility/api/controller/read/plan/get.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/read/plan/index.d.ts +2 -0
- package/dist/esm/utility/api/controller/read/plan/metadata-key.constant.d.ts +1 -0
- package/dist/esm/utility/api/controller/read/plan/metadata-key.constant.js +4 -0
- package/dist/esm/utility/api/controller/read/plan/metadata-key.constant.js.map +1 -0
- package/dist/esm/utility/api/controller/read/plan/set.utility.d.ts +9 -0
- package/dist/esm/utility/api/controller/read/plan/set.utility.js +15 -0
- package/dist/esm/utility/api/controller/read/plan/set.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/read/scope.utility.d.ts +12 -0
- package/dist/esm/utility/api/controller/read/scope.utility.js +36 -0
- package/dist/esm/utility/api/controller/read/scope.utility.js.map +1 -0
- package/dist/esm/utility/api/controller/transform-data.utility.js +13 -11
- package/dist/esm/utility/api/controller/transform-data.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/validate-request.utility.d.ts +2 -1
- package/dist/esm/utility/api/controller/validate-request.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/write/dto-swagger.utility.d.ts +17 -0
- package/dist/esm/utility/api/controller/write/dto-swagger.utility.js +24 -6
- package/dist/esm/utility/api/controller/write/dto-swagger.utility.js.map +1 -1
- package/dist/esm/utility/api/function-transaction.utility.js +1 -0
- package/dist/esm/utility/api/function-transaction.utility.js.map +1 -1
- package/dist/esm/utility/api/route/apply-dto-metadata.utility.js +1 -0
- package/dist/esm/utility/api/route/apply-dto-metadata.utility.js.map +1 -1
- package/dist/esm/utility/api/route/response/project-relation.utility.js +1 -0
- package/dist/esm/utility/api/route/response/project-relation.utility.js.map +1 -1
- package/dist/esm/utility/authorization/scope-merge-where.utility.js +248 -131
- package/dist/esm/utility/authorization/scope-merge-where.utility.js.map +1 -1
- package/dist/esm/utility/dto/build-decorator.utility.js +1 -0
- package/dist/esm/utility/dto/build-decorator.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate/core.utility.js +18 -6
- package/dist/esm/utility/dto/generate/core.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate/dynamic.utility.js +1 -0
- package/dist/esm/utility/dto/generate/dynamic.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate/exception.utility.js +1 -0
- package/dist/esm/utility/dto/generate/exception.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate/filter-decorator.utility.js +1 -0
- package/dist/esm/utility/dto/generate/filter-decorator.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate/get-list/cursor-response.utility.d.ts +10 -0
- package/dist/esm/utility/dto/generate/get-list/cursor-response.utility.js +98 -0
- package/dist/esm/utility/dto/generate/get-list/cursor-response.utility.js.map +1 -0
- package/dist/esm/utility/dto/generate/get-list/index.d.ts +3 -0
- package/dist/esm/utility/dto/generate/{get-list-query-properties.utility.d.ts → get-list/query-properties.utility.d.ts} +4 -4
- package/dist/esm/utility/dto/generate/{get-list-query-properties.utility.js → get-list/query-properties.utility.js} +35 -34
- package/dist/esm/utility/dto/generate/get-list/query-properties.utility.js.map +1 -0
- package/dist/esm/utility/dto/generate/{get-list-response.utility.d.ts → get-list/response.utility.d.ts} +1 -1
- package/dist/esm/utility/dto/generate/{get-list-response.utility.js → get-list/response.utility.js} +33 -32
- package/dist/esm/utility/dto/generate/get-list/response.utility.js.map +1 -0
- package/dist/esm/utility/dto/generate/identity-read-parameters.utility.d.ts +17 -0
- package/dist/esm/utility/dto/generate/identity-read-parameters.utility.js +111 -0
- package/dist/esm/utility/dto/generate/identity-read-parameters.utility.js.map +1 -0
- package/dist/esm/utility/dto/generate/index.d.ts +1 -1
- package/dist/esm/utility/dto/generate/read-parameters.utility.d.ts +17 -0
- package/dist/esm/utility/dto/generate/read-parameters.utility.js +109 -0
- package/dist/esm/utility/dto/generate/read-parameters.utility.js.map +1 -0
- package/dist/esm/utility/dto/get/get-list-query-base-class.utility.d.ts +3 -2
- package/dist/esm/utility/dto/get/get-list-query-base-class.utility.js +48 -15
- package/dist/esm/utility/dto/get/get-list-query-base-class.utility.js.map +1 -1
- package/dist/esm/utility/dto/handle-date-property.utility.js +1 -0
- package/dist/esm/utility/dto/handle-date-property.utility.js.map +1 -1
- package/dist/esm/utility/dto/is/property/infrastructure-timestamp.utility.js +1 -0
- package/dist/esm/utility/dto/is/property/infrastructure-timestamp.utility.js.map +1 -1
- package/dist/esm/utility/dto/is/property/should-be-marked.utility.js +1 -0
- package/dist/esm/utility/dto/is/property/should-be-marked.utility.js.map +1 -1
- package/dist/esm/utility/dto/is/should-be-generated.utility.js +1 -0
- package/dist/esm/utility/dto/is/should-be-generated.utility.js.map +1 -1
- package/dist/esm/utility/object-find-property-descriptor.utility.d.ts +7 -0
- package/dist/esm/utility/object-find-property-descriptor.utility.js +20 -0
- package/dist/esm/utility/object-find-property-descriptor.utility.js.map +1 -0
- package/dist/esm/validator/at-most-one-of-listed-properties.validator.d.ts +5 -0
- package/dist/esm/validator/at-most-one-of-listed-properties.validator.js +21 -0
- package/dist/esm/validator/at-most-one-of-listed-properties.validator.js.map +1 -0
- package/package.json +2 -1
- package/dist/cjs/utility/dto/generate/get-list-query-properties.utility.js.map +0 -1
- package/dist/cjs/utility/dto/generate/get-list-response.utility.js.map +0 -1
- package/dist/esm/utility/dto/generate/get-list-query-properties.utility.js.map +0 -1
- package/dist/esm/utility/dto/generate/get-list-response.utility.js.map +0 -1
- /package/dist/cjs/interface/decorator/api/{get-list-response-result.interface.d.ts → get-list/response-result.interface.d.ts} +0 -0
- /package/dist/esm/interface/decorator/api/{get-list-response-result.interface.d.ts → get-list/response-result.interface.d.ts} +0 -0
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var apiControllerCursor_constant = require('../../../../../constant/api-controller-cursor.constant.js');
|
|
4
|
+
require('../../../../../enum/decorator/api/action.enum.js');
|
|
5
|
+
require('../../../../../enum/decorator/api/authentication-type.enum.js');
|
|
6
|
+
require('../../../../../enum/decorator/api/controller/get-list/query/filter/missing-behavior.enum.js');
|
|
7
|
+
require('../../../../../enum/decorator/api/controller/get-list/query/pagination-mode.enum.js');
|
|
8
|
+
require('../../../../../enum/decorator/api/controller/get-list/query/unlisted-fields.enum.js');
|
|
9
|
+
require('../../../../../enum/decorator/api/controller/relation-reference-shape.enum.js');
|
|
10
|
+
require('../../../../../enum/decorator/api/controller/request/target.enum.js');
|
|
11
|
+
require('../../../../../enum/decorator/api/controller/request/transformer-type.enum.js');
|
|
12
|
+
require('../../../../../enum/decorator/api/controller/response-target.enum.js');
|
|
13
|
+
require('../../../../../enum/decorator/api/dto-type.enum.js');
|
|
14
|
+
require('../../../../../enum/decorator/api/function/context-storage-kind.enum.js');
|
|
15
|
+
require('../../../../../enum/decorator/api/function/subscriber-transaction-expectation.enum.js');
|
|
16
|
+
require('../../../../../enum/decorator/api/function/transaction/event-status.enum.js');
|
|
17
|
+
require('../../../../../enum/decorator/api/function/transaction/failure-stage.enum.js');
|
|
18
|
+
require('../../../../../enum/decorator/api/function/transaction/mode.enum.js');
|
|
19
|
+
require('../../../../../enum/decorator/api/function/transaction/outcome.enum.js');
|
|
20
|
+
require('../../../../../enum/decorator/api/function/transaction/owner-kind.enum.js');
|
|
21
|
+
require('../../../../../enum/decorator/api/function/transaction/trace-type.enum.js');
|
|
22
|
+
require('../../../../../enum/decorator/api/function/type.enum.js');
|
|
23
|
+
require('../../../../../enum/decorator/api/on-type.enum.js');
|
|
24
|
+
require('../../../../../enum/decorator/api/property/data-type.enum.js');
|
|
25
|
+
require('../../../../../enum/decorator/api/property/date/identifier.enum.js');
|
|
26
|
+
require('../../../../../enum/decorator/api/property/date/type.enum.js');
|
|
27
|
+
var desribeType_enum = require('../../../../../enum/decorator/api/property/desribe-type.enum.js');
|
|
28
|
+
var numberType_enum = require('../../../../../enum/decorator/api/property/number-type.enum.js');
|
|
29
|
+
var stringType_enum = require('../../../../../enum/decorator/api/property/string-type.enum.js');
|
|
30
|
+
require('../../../../../enum/decorator/api/route/subscriber-authorization-expectation.enum.js');
|
|
31
|
+
require('../../../../../enum/decorator/api/route/type.enum.js');
|
|
32
|
+
var enumValues_utility = require('../../../../../utility/api/controller/get-list/query/enum-values.utility.js');
|
|
33
|
+
var resolveCursorOrderFields_utility = require('../../../../../utility/api/controller/get-list/query/resolve-cursor-order-fields.utility.js');
|
|
34
|
+
var exception_utility = require('../../../../../utility/error/exception.utility.js');
|
|
35
|
+
var objectFindPropertyDescriptor_utility = require('../../../../../utility/object-find-property-descriptor.utility.js');
|
|
36
|
+
|
|
37
|
+
const POSTGRES_BOOLEAN_OID = 16;
|
|
38
|
+
const POSTGRES_BIGINT_OID = 20;
|
|
39
|
+
const POSTGRES_SMALLINT_OID = 21;
|
|
40
|
+
const POSTGRES_INTEGER_OID = 23;
|
|
41
|
+
const POSTGRES_UUID_OID = 2950;
|
|
42
|
+
const POSTGRES_BIGINT_PROBE = "9007199254740992";
|
|
43
|
+
const SIGNED_BIGINT_MAXIMUM = 9223372036854775807n;
|
|
44
|
+
const SIGNED_BIGINT_MINIMUM = -9223372036854775808n;
|
|
45
|
+
const BASE64_INPUT_GROUP_SIZE = 3;
|
|
46
|
+
const BASE64_OUTPUT_GROUP_SIZE = 4;
|
|
47
|
+
const BOOLEAN_JSON_MAXIMUM_BYTES = 5;
|
|
48
|
+
const JSON_STRING_QUOTES_BYTES = 2;
|
|
49
|
+
const NUMBER_JSON_MAXIMUM_BYTES = 25;
|
|
50
|
+
const SIGNED_BIGINT_JSON_MAXIMUM_BYTES = 22;
|
|
51
|
+
const CURSOR_CONTEXT_HASH_LENGTH = 64;
|
|
52
|
+
const BINARY_RADIX = 2;
|
|
53
|
+
const SIGNED_WIDTH_OFFSET = 1;
|
|
54
|
+
const UUID_TEXT_LENGTH = 36;
|
|
55
|
+
const UUID_VALUE_PATTERN = /^[\da-f]{8}-(?:[\da-f]{4}-){3}[\da-f]{12}$/u;
|
|
56
|
+
const INTEGER_BITS_16 = 16;
|
|
57
|
+
const INTEGER_BITS_32 = 32;
|
|
58
|
+
const SIGNED_SMALLINT_MINIMUM = -32768;
|
|
59
|
+
const SIGNED_SMALLINT_MAXIMUM = 32_767;
|
|
60
|
+
const SIGNED_INTEGER_MINIMUM = -2147483648;
|
|
61
|
+
const SIGNED_INTEGER_MAXIMUM = 2_147_483_647;
|
|
62
|
+
const INTEGER_STORAGE_BITS = Object.freeze({
|
|
63
|
+
"postgres:integer": INTEGER_BITS_32,
|
|
64
|
+
"postgres:smallint": INTEGER_BITS_16,
|
|
65
|
+
});
|
|
66
|
+
const EXACT_STORAGE_TYPES_BY_DRIVER = Object.freeze({
|
|
67
|
+
postgres: Object.freeze({
|
|
68
|
+
BIGINT_STRING: new Set(["bigint"]),
|
|
69
|
+
BOOLEAN: new Set(["boolean"]),
|
|
70
|
+
ENUM_NUMBER: new Set(["integer", "smallint"]),
|
|
71
|
+
INTEGER: new Set(["integer", "smallint"]),
|
|
72
|
+
UUID: new Set(["uuid"]),
|
|
73
|
+
}),
|
|
74
|
+
});
|
|
75
|
+
/**
|
|
76
|
+
* Proves that the active repository uses an exact database/storage/hydration
|
|
77
|
+
* contract for every protected cursor tuple field.
|
|
78
|
+
*/
|
|
79
|
+
class ApiControllerGetListCursorDataSourceContract {
|
|
80
|
+
static assertSafe(repository, plan) {
|
|
81
|
+
if (plan) {
|
|
82
|
+
this.assertStorageSafe(repository, plan);
|
|
83
|
+
}
|
|
84
|
+
const target = repository.metadata.target;
|
|
85
|
+
if (repository.metadata.afterLoadListeners.length > 0) {
|
|
86
|
+
throw exception_utility.ErrorException("CURSOR GET_LIST entity cannot use a TypeORM afterLoad listener");
|
|
87
|
+
}
|
|
88
|
+
for (const subscriber of repository.manager.connection.subscribers) {
|
|
89
|
+
if (this.hasAfterLoad(subscriber) && this.isApplicable(subscriber, target)) {
|
|
90
|
+
throw exception_utility.ErrorException("CURSOR GET_LIST entity cannot use an applicable TypeORM afterLoad subscriber");
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
static createValueValidator(repository, plan) {
|
|
95
|
+
this.assertSafe(repository, plan);
|
|
96
|
+
const driverType = this.getDriverType(repository);
|
|
97
|
+
if (!driverType) {
|
|
98
|
+
throw exception_utility.ErrorException("CURSOR GET_LIST requires a supported exact active database storage contract");
|
|
99
|
+
}
|
|
100
|
+
const contracts = Object.freeze(this.getOrderFields(plan).map((field) => {
|
|
101
|
+
const column = repository.metadata.columns.find((candidate) => candidate.propertyPath === field.path);
|
|
102
|
+
if (!column) {
|
|
103
|
+
throw exception_utility.ErrorException(`CURSOR GET_LIST active repository is missing order field "${field.path}"`);
|
|
104
|
+
}
|
|
105
|
+
return Object.freeze({
|
|
106
|
+
field,
|
|
107
|
+
normalizedStorageType: this.normalizeActiveStorageType(repository, column),
|
|
108
|
+
storageContract: this.getStorageContract(field),
|
|
109
|
+
});
|
|
110
|
+
}));
|
|
111
|
+
return Object.freeze((field, value) => {
|
|
112
|
+
const contract = contracts.find((candidate) => candidate.field === field && candidate.field.path === field.path);
|
|
113
|
+
if (!contract) {
|
|
114
|
+
throw exception_utility.ErrorException("CURSOR GET_LIST storage validator received an unknown order field");
|
|
115
|
+
}
|
|
116
|
+
this.assertStorageValueSafe(driverType, contract.normalizedStorageType, contract.storageContract, contract.field, value);
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
static assertActiveColumnMatches(field, column) {
|
|
120
|
+
const columnType = this.normalizeDeclaredColumnType(column.type);
|
|
121
|
+
const columnPrecision = column.precision ?? undefined;
|
|
122
|
+
const fieldPrecision = field.precision ?? undefined;
|
|
123
|
+
if (column.propertyPath !== field.path || columnType !== field.columnType || columnPrecision !== fieldPrecision || column.scale !== field.scale || column.isArray !== field.isColumnArray || column.isNullable !== field.isNullable || column.isSelect !== field.isSelected || column.unsigned !== field.isUnsigned || Boolean(column.transformer) !== field.hasTransformer) {
|
|
124
|
+
throw exception_utility.ErrorException(`CURSOR GET_LIST active column metadata for "${field.path}" differs from the compiled cursor plan`);
|
|
125
|
+
}
|
|
126
|
+
if (column.isArray || column.isNullable || !column.isSelect || column.transformer || column.isVirtual || column.isVirtualProperty) {
|
|
127
|
+
throw exception_utility.ErrorException(`CURSOR GET_LIST active order field "${field.path}" is not an exact selected persisted scalar`);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
static assertExactPostgresTextParser(repository, storageContract, normalizedStorageType) {
|
|
131
|
+
const connection = repository.manager.connection;
|
|
132
|
+
const driver = connection.driver;
|
|
133
|
+
const postgres = driver && typeof driver === "object" && "postgres" in driver ? driver.postgres : undefined;
|
|
134
|
+
const driverTypes = postgres && typeof postgres === "object" && "types" in postgres ? postgres.types : undefined;
|
|
135
|
+
const getTypeParser = driverTypes && typeof driverTypes === "object" && "getTypeParser" in driverTypes ? driverTypes.getTypeParser : undefined;
|
|
136
|
+
if (typeof getTypeParser !== "function") {
|
|
137
|
+
throw exception_utility.ErrorException("CURSOR GET_LIST active PostgreSQL driver cannot prove its text result parsers");
|
|
138
|
+
}
|
|
139
|
+
let oid;
|
|
140
|
+
let probes;
|
|
141
|
+
if (storageContract === "BOOLEAN" && normalizedStorageType === "boolean") {
|
|
142
|
+
oid = POSTGRES_BOOLEAN_OID;
|
|
143
|
+
probes = Object.freeze([this.createPostgresParserProbe("t", true), this.createPostgresParserProbe("f", false)]);
|
|
144
|
+
}
|
|
145
|
+
else if ((storageContract === "INTEGER" || storageContract === "ENUM_NUMBER") && normalizedStorageType === "smallint") {
|
|
146
|
+
oid = POSTGRES_SMALLINT_OID;
|
|
147
|
+
probes = Object.freeze([this.createPostgresParserProbe(SIGNED_SMALLINT_MINIMUM.toString(), SIGNED_SMALLINT_MINIMUM), this.createPostgresParserProbe("-1", -1), this.createPostgresParserProbe("0", 0), this.createPostgresParserProbe("1", 1), this.createPostgresParserProbe(SIGNED_SMALLINT_MAXIMUM.toString(), SIGNED_SMALLINT_MAXIMUM)]);
|
|
148
|
+
}
|
|
149
|
+
else if ((storageContract === "INTEGER" || storageContract === "ENUM_NUMBER") && normalizedStorageType === "integer") {
|
|
150
|
+
oid = POSTGRES_INTEGER_OID;
|
|
151
|
+
probes = Object.freeze([this.createPostgresParserProbe(SIGNED_INTEGER_MINIMUM.toString(), SIGNED_INTEGER_MINIMUM), this.createPostgresParserProbe("-1", -1), this.createPostgresParserProbe("0", 0), this.createPostgresParserProbe("1", 1), this.createPostgresParserProbe(SIGNED_INTEGER_MAXIMUM.toString(), SIGNED_INTEGER_MAXIMUM)]);
|
|
152
|
+
}
|
|
153
|
+
else if (storageContract === "BIGINT_STRING" && normalizedStorageType === "bigint") {
|
|
154
|
+
oid = POSTGRES_BIGINT_OID;
|
|
155
|
+
probes = Object.freeze([SIGNED_BIGINT_MINIMUM.toString(), "-9007199254740993", "-9007199254740992", POSTGRES_BIGINT_PROBE, "9007199254740993", SIGNED_BIGINT_MAXIMUM.toString()].map((probe) => this.createPostgresParserProbe(probe, probe)));
|
|
156
|
+
}
|
|
157
|
+
else if (storageContract === "UUID" && normalizedStorageType === "uuid") {
|
|
158
|
+
oid = POSTGRES_UUID_OID;
|
|
159
|
+
probes = Object.freeze(["00000000-0000-0000-0000-000000000001", "00000000-0000-0000-0000-000000000002", "ffffffff-ffff-ffff-ffff-ffffffffffff"].map((probe) => this.createPostgresParserProbe(probe, probe)));
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
throw exception_utility.ErrorException("CURSOR GET_LIST active PostgreSQL storage has no proven text result parser");
|
|
163
|
+
}
|
|
164
|
+
try {
|
|
165
|
+
const parser = Reflect.apply(getTypeParser, driverTypes, [oid, "text"]);
|
|
166
|
+
if (typeof parser !== "function" || !probes.every(([input, expected]) => Object.is(Reflect.apply(parser, undefined, [input]), expected))) {
|
|
167
|
+
throw exception_utility.ErrorException("CURSOR GET_LIST active PostgreSQL text result parser is incompatible with an order field");
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
catch {
|
|
171
|
+
throw exception_utility.ErrorException("CURSOR GET_LIST active PostgreSQL text result parser is incompatible with an order field");
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
static assertIntegerStorageValue(driverType, normalizedStorageType, field, value) {
|
|
175
|
+
const storageKey = `${driverType}:${normalizedStorageType}`;
|
|
176
|
+
const bits = INTEGER_STORAGE_BITS[storageKey];
|
|
177
|
+
if (!bits || typeof value !== "number" || !Number.isSafeInteger(value)) {
|
|
178
|
+
throw exception_utility.ErrorException(`CURSOR GET_LIST integer order field "${field.path}" has an invalid active storage value`);
|
|
179
|
+
}
|
|
180
|
+
const databaseMinimum = -(BINARY_RADIX ** (bits - SIGNED_WIDTH_OFFSET));
|
|
181
|
+
const databaseMaximum = BINARY_RADIX ** (bits - SIGNED_WIDTH_OFFSET) - SIGNED_WIDTH_OFFSET;
|
|
182
|
+
if (value < databaseMinimum || value > databaseMaximum) {
|
|
183
|
+
throw exception_utility.ErrorException(`CURSOR GET_LIST integer order field "${field.path}" exceeds its active database storage range`);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
static assertPrimaryTieBreaker(repository, plan) {
|
|
187
|
+
const primaryColumns = repository.metadata.primaryColumns;
|
|
188
|
+
const finalTieBreaker = plan.order.tieBreakers?.at(-1)?.field;
|
|
189
|
+
if (primaryColumns.length !== 1 || !finalTieBreaker || primaryColumns[0]?.propertyPath !== finalTieBreaker) {
|
|
190
|
+
throw exception_utility.ErrorException("CURSOR GET_LIST active repository must use the final order field as its sole primary key");
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
static assertStorageSafe(repository, plan) {
|
|
194
|
+
const driverType = this.getDriverType(repository);
|
|
195
|
+
const fields = this.getOrderFields(plan);
|
|
196
|
+
const driverStorage = driverType ? EXACT_STORAGE_TYPES_BY_DRIVER[driverType] : undefined;
|
|
197
|
+
if (!driverType || !driverStorage) {
|
|
198
|
+
throw exception_utility.ErrorException("CURSOR GET_LIST requires a supported exact active database storage contract");
|
|
199
|
+
}
|
|
200
|
+
if (driverType === "postgres" && this.isPostgresBinaryMode(repository)) {
|
|
201
|
+
throw exception_utility.ErrorException("CURSOR GET_LIST requires PostgreSQL text result parsers for exact cursor values");
|
|
202
|
+
}
|
|
203
|
+
if (driverType === "postgres" && this.hasCustomPostgresTypes(repository)) {
|
|
204
|
+
throw exception_utility.ErrorException("CURSOR GET_LIST cannot prove custom PostgreSQL result parsers");
|
|
205
|
+
}
|
|
206
|
+
this.assertPrimaryTieBreaker(repository, plan);
|
|
207
|
+
const checkedParserContracts = new Set();
|
|
208
|
+
for (const field of fields) {
|
|
209
|
+
const column = repository.metadata.columns.find((candidate) => candidate.propertyPath === field.path);
|
|
210
|
+
if (!column) {
|
|
211
|
+
throw exception_utility.ErrorException(`CURSOR GET_LIST active repository is missing order field "${field.path}"`);
|
|
212
|
+
}
|
|
213
|
+
this.assertActiveColumnMatches(field, column);
|
|
214
|
+
const storageContract = this.getStorageContract(field);
|
|
215
|
+
const normalizedStorageType = this.normalizeActiveStorageType(repository, column);
|
|
216
|
+
if (!driverStorage[storageContract]?.has(normalizedStorageType)) {
|
|
217
|
+
throw exception_utility.ErrorException(`CURSOR GET_LIST order field "${field.path}" has no proven exact active database representation`);
|
|
218
|
+
}
|
|
219
|
+
if (field.isUnsigned) {
|
|
220
|
+
throw exception_utility.ErrorException(`CURSOR GET_LIST order field "${field.path}" cannot use unsigned metadata with active PostgreSQL storage`);
|
|
221
|
+
}
|
|
222
|
+
const parserContract = `${storageContract}:${normalizedStorageType}`;
|
|
223
|
+
if (!checkedParserContracts.has(parserContract)) {
|
|
224
|
+
this.assertExactPostgresTextParser(repository, storageContract, normalizedStorageType);
|
|
225
|
+
checkedParserContracts.add(parserContract);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
this.assertTokenCapacitySafe(plan);
|
|
229
|
+
}
|
|
230
|
+
static assertStorageValueSafe(driverType, normalizedStorageType, storageContract, field, value) {
|
|
231
|
+
if (storageContract === "BOOLEAN") {
|
|
232
|
+
if (typeof value !== "boolean") {
|
|
233
|
+
throw exception_utility.ErrorException(`CURSOR GET_LIST boolean order field "${field.path}" has an invalid active storage value`);
|
|
234
|
+
}
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
if (storageContract === "INTEGER" || storageContract === "ENUM_NUMBER") {
|
|
238
|
+
this.assertIntegerStorageValue(driverType, normalizedStorageType, field, value);
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
if (storageContract === "BIGINT_STRING") {
|
|
242
|
+
if (typeof value !== "string" || !/^(?:0|-?[1-9]\d*)$/u.test(value)) {
|
|
243
|
+
throw exception_utility.ErrorException(`CURSOR GET_LIST bigint-string order field "${field.path}" has an invalid active storage value`);
|
|
244
|
+
}
|
|
245
|
+
const bigintValue = BigInt(value);
|
|
246
|
+
if (bigintValue < SIGNED_BIGINT_MINIMUM || bigintValue > SIGNED_BIGINT_MAXIMUM) {
|
|
247
|
+
throw exception_utility.ErrorException(`CURSOR GET_LIST bigint-string order field "${field.path}" exceeds the active PostgreSQL bigint domain`);
|
|
248
|
+
}
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
if (storageContract === "UUID") {
|
|
252
|
+
if (typeof value !== "string" || !UUID_VALUE_PATTERN.test(value)) {
|
|
253
|
+
throw exception_utility.ErrorException(`CURSOR GET_LIST UUID order field "${field.path}" has an invalid active storage value`);
|
|
254
|
+
}
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
throw exception_utility.ErrorException(`CURSOR GET_LIST order field "${field.path}" has no active storage value contract`);
|
|
258
|
+
}
|
|
259
|
+
static assertTokenCapacitySafe(plan) {
|
|
260
|
+
const emptyPayloadBytes = Buffer.byteLength(JSON.stringify({ c: "0".repeat(CURSOR_CONTEXT_HASH_LENGTH), v: 1, values: [] }), "utf8");
|
|
261
|
+
for (const fields of this.getOrderFieldSequences(plan)) {
|
|
262
|
+
let maximumPayloadBytes = emptyPayloadBytes + Math.max(0, fields.length - 1);
|
|
263
|
+
for (const field of fields) {
|
|
264
|
+
maximumPayloadBytes += this.getMaximumStorageJsonBytes(field);
|
|
265
|
+
}
|
|
266
|
+
if (Math.ceil((maximumPayloadBytes * BASE64_OUTPUT_GROUP_SIZE) / BASE64_INPUT_GROUP_SIZE) > apiControllerCursor_constant.API_CONTROLLER_CURSOR_TOKEN_MAX_LENGTH) {
|
|
267
|
+
throw exception_utility.ErrorException("CURSOR GET_LIST active order tuple can exceed the maximum cursor token length");
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
static createPostgresParserProbe(input, expected) {
|
|
272
|
+
return Object.freeze([input, expected]);
|
|
273
|
+
}
|
|
274
|
+
static getDriverType(repository) {
|
|
275
|
+
const options = repository.manager.connection.options;
|
|
276
|
+
const type = options && typeof options === "object" && "type" in options ? options.type : undefined;
|
|
277
|
+
return typeof type === "string" ? type : undefined;
|
|
278
|
+
}
|
|
279
|
+
static getMaximumStorageJsonBytes(field) {
|
|
280
|
+
const storageContract = this.getStorageContract(field);
|
|
281
|
+
if (storageContract === "BOOLEAN") {
|
|
282
|
+
return BOOLEAN_JSON_MAXIMUM_BYTES;
|
|
283
|
+
}
|
|
284
|
+
if (storageContract === "INTEGER" || storageContract === "ENUM_NUMBER") {
|
|
285
|
+
return NUMBER_JSON_MAXIMUM_BYTES;
|
|
286
|
+
}
|
|
287
|
+
if (storageContract === "BIGINT_STRING") {
|
|
288
|
+
return SIGNED_BIGINT_JSON_MAXIMUM_BYTES;
|
|
289
|
+
}
|
|
290
|
+
if (storageContract === "UUID") {
|
|
291
|
+
return UUID_TEXT_LENGTH + JSON_STRING_QUOTES_BYTES;
|
|
292
|
+
}
|
|
293
|
+
throw exception_utility.ErrorException(`CURSOR GET_LIST order field "${field.path}" has no bounded PostgreSQL CURSOR v1 storage contract`);
|
|
294
|
+
}
|
|
295
|
+
static getOrderFields(plan) {
|
|
296
|
+
return resolveCursorOrderFields_utility.ApiControllerGetListQueryResolveCursorOrderFields(plan.order).map((fieldName) => {
|
|
297
|
+
const field = plan.order.serverFields[fieldName];
|
|
298
|
+
if (!field) {
|
|
299
|
+
throw exception_utility.ErrorException("CURSOR GET_LIST compiled order field is missing");
|
|
300
|
+
}
|
|
301
|
+
return field;
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
static getOrderFieldSequences(plan) {
|
|
305
|
+
const tieBreakerFields = Object.freeze((plan.order.tieBreakers ?? []).map((entry) => entry.field));
|
|
306
|
+
const configuredSequences = [Object.freeze([...(plan.order.defaultOrder ?? []).map((entry) => entry.field), ...tieBreakerFields])];
|
|
307
|
+
for (const [fieldName, field] of Object.entries(plan.order.fields)) {
|
|
308
|
+
if (field.isEnabled) {
|
|
309
|
+
configuredSequences.push(Object.freeze([fieldName, ...tieBreakerFields]));
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
return Object.freeze(configuredSequences.map((sequence) => {
|
|
313
|
+
const seenFields = new Set();
|
|
314
|
+
const fields = [];
|
|
315
|
+
for (const fieldName of sequence) {
|
|
316
|
+
if (seenFields.has(fieldName)) {
|
|
317
|
+
continue;
|
|
318
|
+
}
|
|
319
|
+
const field = plan.order.serverFields[fieldName];
|
|
320
|
+
if (!field) {
|
|
321
|
+
throw exception_utility.ErrorException("CURSOR GET_LIST compiled order field is missing");
|
|
322
|
+
}
|
|
323
|
+
seenFields.add(fieldName);
|
|
324
|
+
fields.push(field);
|
|
325
|
+
}
|
|
326
|
+
return Object.freeze(fields);
|
|
327
|
+
}));
|
|
328
|
+
}
|
|
329
|
+
static getStorageContract(field) {
|
|
330
|
+
if (field.type === desribeType_enum.EApiPropertyDescribeType.BOOLEAN) {
|
|
331
|
+
return "BOOLEAN";
|
|
332
|
+
}
|
|
333
|
+
if (field.type === desribeType_enum.EApiPropertyDescribeType.NUMBER) {
|
|
334
|
+
if ("format" in field.metadata && field.metadata.format === numberType_enum.EApiPropertyNumberType.INTEGER) {
|
|
335
|
+
return "INTEGER";
|
|
336
|
+
}
|
|
337
|
+
throw exception_utility.ErrorException(`CURSOR GET_LIST numeric order field "${field.path}" is not supported by PostgreSQL CURSOR v1`);
|
|
338
|
+
}
|
|
339
|
+
if (field.type === desribeType_enum.EApiPropertyDescribeType.STRING) {
|
|
340
|
+
if ("format" in field.metadata && field.metadata.format === stringType_enum.EApiPropertyStringType.BIGINT_STRING) {
|
|
341
|
+
return "BIGINT_STRING";
|
|
342
|
+
}
|
|
343
|
+
throw exception_utility.ErrorException(`CURSOR GET_LIST string order field "${field.path}" is not supported by PostgreSQL CURSOR v1`);
|
|
344
|
+
}
|
|
345
|
+
if (field.type === desribeType_enum.EApiPropertyDescribeType.ENUM) {
|
|
346
|
+
const values = enumValues_utility.ApiControllerGetListQueryEnumValues("enum" in field.metadata ? field.metadata.enum : {});
|
|
347
|
+
if (values.length > 0 && values.every((value) => typeof value === "number" && Number.isSafeInteger(value))) {
|
|
348
|
+
return "ENUM_NUMBER";
|
|
349
|
+
}
|
|
350
|
+
throw exception_utility.ErrorException(`CURSOR GET_LIST enum order field "${field.path}" is not supported by PostgreSQL CURSOR v1`);
|
|
351
|
+
}
|
|
352
|
+
if (field.type === desribeType_enum.EApiPropertyDescribeType.UUID) {
|
|
353
|
+
return "UUID";
|
|
354
|
+
}
|
|
355
|
+
throw exception_utility.ErrorException(`CURSOR GET_LIST order field "${field.path}" is not supported by PostgreSQL CURSOR v1`);
|
|
356
|
+
}
|
|
357
|
+
static hasAfterLoad(subscriber) {
|
|
358
|
+
const descriptor = objectFindPropertyDescriptor_utility.ObjectFindPropertyDescriptor(subscriber, "afterLoad");
|
|
359
|
+
return Boolean(descriptor && (!("value" in descriptor) || typeof descriptor.value === "function"));
|
|
360
|
+
}
|
|
361
|
+
static hasCustomPostgresTypes(repository) {
|
|
362
|
+
const options = repository.manager.connection.options;
|
|
363
|
+
const extra = options && typeof options === "object" && "extra" in options ? options.extra : undefined;
|
|
364
|
+
return Boolean(extra && typeof extra === "object" && Object.hasOwn(extra, "types"));
|
|
365
|
+
}
|
|
366
|
+
static isApplicable(subscriber, target) {
|
|
367
|
+
const descriptor = objectFindPropertyDescriptor_utility.ObjectFindPropertyDescriptor(subscriber, "listenTo");
|
|
368
|
+
if (!descriptor) {
|
|
369
|
+
return true;
|
|
370
|
+
}
|
|
371
|
+
if (!("value" in descriptor) || typeof descriptor.value !== "function") {
|
|
372
|
+
throw exception_utility.ErrorException("CURSOR GET_LIST TypeORM subscriber listenTo must be a data method");
|
|
373
|
+
}
|
|
374
|
+
const listenedTarget = Reflect.apply(descriptor.value, subscriber, []);
|
|
375
|
+
if (!listenedTarget || listenedTarget === Object || listenedTarget === target) {
|
|
376
|
+
return true;
|
|
377
|
+
}
|
|
378
|
+
return typeof listenedTarget === "function" && typeof target === "function" && this.isConstructorAncestor(listenedTarget, target);
|
|
379
|
+
}
|
|
380
|
+
static isConstructorAncestor(ancestor, target) {
|
|
381
|
+
let current = Object.getPrototypeOf(target);
|
|
382
|
+
while (current) {
|
|
383
|
+
if (current === ancestor) {
|
|
384
|
+
return true;
|
|
385
|
+
}
|
|
386
|
+
current = Object.getPrototypeOf(current);
|
|
387
|
+
}
|
|
388
|
+
return false;
|
|
389
|
+
}
|
|
390
|
+
static isPostgresBinaryMode(repository) {
|
|
391
|
+
const connection = repository.manager.connection;
|
|
392
|
+
const extra = connection.options && typeof connection.options === "object" && "extra" in connection.options ? connection.options.extra : undefined;
|
|
393
|
+
const extraBinary = extra && typeof extra === "object" && "binary" in extra ? extra.binary : undefined;
|
|
394
|
+
const driver = connection.driver;
|
|
395
|
+
const postgres = driver && typeof driver === "object" && "postgres" in driver ? driver.postgres : undefined;
|
|
396
|
+
const postgresDefaults = postgres && typeof postgres === "object" && "defaults" in postgres ? postgres.defaults : undefined;
|
|
397
|
+
const defaultBinary = postgresDefaults && typeof postgresDefaults === "object" && "binary" in postgresDefaults ? postgresDefaults.binary : undefined;
|
|
398
|
+
return Boolean(extraBinary) || Boolean(defaultBinary);
|
|
399
|
+
}
|
|
400
|
+
static normalizeActiveStorageType(repository, column) {
|
|
401
|
+
const driver = repository.manager.connection.driver;
|
|
402
|
+
const normalizeType = driver && typeof driver === "object" && "normalizeType" in driver ? driver.normalizeType : undefined;
|
|
403
|
+
if (typeof normalizeType !== "function") {
|
|
404
|
+
throw exception_utility.ErrorException("CURSOR GET_LIST active database driver cannot prove its storage type");
|
|
405
|
+
}
|
|
406
|
+
const normalized = Reflect.apply(normalizeType, driver, [column]);
|
|
407
|
+
if (typeof normalized !== "string" || normalized.length === 0) {
|
|
408
|
+
throw exception_utility.ErrorException("CURSOR GET_LIST active database driver returned an invalid storage type");
|
|
409
|
+
}
|
|
410
|
+
return normalized.trim().toLowerCase();
|
|
411
|
+
}
|
|
412
|
+
static normalizeDeclaredColumnType(type) {
|
|
413
|
+
if (type === Boolean) {
|
|
414
|
+
return "boolean-constructor";
|
|
415
|
+
}
|
|
416
|
+
if (type === Number) {
|
|
417
|
+
return "number-constructor";
|
|
418
|
+
}
|
|
419
|
+
return typeof type === "string" ? type.trim().toLowerCase() : "unknown";
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
exports.ApiControllerGetListCursorDataSourceContract = ApiControllerGetListCursorDataSourceContract;
|
|
424
|
+
//# sourceMappingURL=data-source-contract.class.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-source-contract.class.js","sources":["../../../../../../../../src/class/api/controller/get-list/cursor/data-source-contract.class.ts"],"sourcesContent":[null],"names":["ErrorException","API_CONTROLLER_CURSOR_TOKEN_MAX_LENGTH","ApiControllerGetListQueryResolveCursorOrderFields","EApiPropertyDescribeType","EApiPropertyNumberType","EApiPropertyStringType","ApiControllerGetListQueryEnumValues","ObjectFindPropertyDescriptor"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAM,oBAAoB,GAAW,EAAE;AACvC,MAAM,mBAAmB,GAAW,EAAE;AACtC,MAAM,qBAAqB,GAAW,EAAE;AACxC,MAAM,oBAAoB,GAAW,EAAE;AACvC,MAAM,iBAAiB,GAAW,IAAI;AACtC,MAAM,qBAAqB,GAAW,kBAAkB;AACxD,MAAM,qBAAqB,GAAW,oBAA0B;AAChE,MAAM,qBAAqB,GAAW,CAA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Aa,EAAE,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC;QAE1E,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE;AAC9D,YAAA,MAAMA,gCAAc,CAAC,yEAAyE,CAAC;QAChG;AAEA,QAAA,OAAO,UAAU,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE;IACvC;IAEQ,OAAO,2BAA2B,CAAC,IAAa,EAAA;AACvD,QAAA,IAAI,IAAI,KAAK,OAAO,EAAE;AACrB,YAAA,OAAO,qBAAqB;QAC7B;AAEA,QAAA,IAAI,IAAI,KAAK,MAAM,EAAE;AACpB,YAAA,OAAO,oBAAoB;QAC5B;AAEA,QAAA,OAAO,OAAO,IAAI,KAAK,QAAQ,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,GAAG,SAAS;IACxE;AACA;;;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EApiControllerGetListQueryPaginationMode } from '../../../../../enum/decorator/api';
|
|
2
|
+
import { IApiBaseEntity } from '../../../../../interface/api-base-entity.interface';
|
|
3
|
+
import { IApiControllerGetListQueryAst, IApiControllerGetListQueryPlanOrderEntry } from '../../../../../interface/class/api/controller/get-list/query';
|
|
4
|
+
import { IApiGetListCursorResponseResult } from '../../../../../interface/decorator/api';
|
|
5
|
+
import { TApiControllerGetListQueryCompiledPlan } from '../../../../../type/class/api/controller/get-list/compiled/plan.type';
|
|
6
|
+
import { TApiControllerGetListCursorExecutionOptions } from '../../../../../type/class/api/controller/get-list/cursor/execution-options.type';
|
|
7
|
+
export declare class ApiControllerGetListCursorRuntime {
|
|
8
|
+
static assertItemsInvariant(items: ReadonlyArray<IApiBaseEntity>, fields: ReadonlyArray<string>, signature: string): void;
|
|
9
|
+
static assertResponseInvariant(response: unknown, fields: ReadonlyArray<string>, signature: string): void;
|
|
10
|
+
static createContextHash(route: string, parameters: Partial<IApiBaseEntity> | undefined, plan: TApiControllerGetListQueryCompiledPlan<EApiControllerGetListQueryPaginationMode.CURSOR>, ast: IApiControllerGetListQueryAst, order: ReadonlyArray<IApiControllerGetListQueryPlanOrderEntry>, readPlanSignature?: string): string;
|
|
11
|
+
static createItemsInvariantSignature(items: ReadonlyArray<IApiBaseEntity>, fields: ReadonlyArray<string>): string;
|
|
12
|
+
static createResponseInvariantSignature(response: unknown, fields: ReadonlyArray<string>): string;
|
|
13
|
+
static execute<E extends IApiBaseEntity>(options: TApiControllerGetListCursorExecutionOptions<E>): Promise<IApiGetListCursorResponseResult<E>>;
|
|
14
|
+
static isolateItems<E extends IApiBaseEntity>(items: ReadonlyArray<E>, fields: ReadonlyArray<string>): Array<E>;
|
|
15
|
+
private static canonicalize;
|
|
16
|
+
private static canonicalStringify;
|
|
17
|
+
private static compareStrings;
|
|
18
|
+
private static createWindowWhere;
|
|
19
|
+
private static decode;
|
|
20
|
+
private static decodeValue;
|
|
21
|
+
private static encode;
|
|
22
|
+
private static executeWithinContract;
|
|
23
|
+
private static extractValues;
|
|
24
|
+
private static getOrderField;
|
|
25
|
+
private static readProtectedItemValue;
|
|
26
|
+
private static reverseOrder;
|
|
27
|
+
private static toTypeOrmOrder;
|
|
28
|
+
}
|