@contember/engine-content-api 2.1.0-alpha.37 → 2.1.0-alpha.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/development/index.cjs +141 -0
- package/dist/development/index.cjs.map +1 -0
- package/dist/development/index.js +138 -0
- package/dist/development/index.js.map +1 -0
- package/dist/development/src/ExecutionContainer.cjs +166 -0
- package/dist/development/src/ExecutionContainer.cjs.map +1 -0
- package/dist/development/src/ExecutionContainer.js +166 -0
- package/dist/development/src/ExecutionContainer.js.map +1 -0
- package/dist/development/src/acl/Authorizator.cjs +54 -0
- package/dist/development/src/acl/Authorizator.cjs.map +1 -0
- package/dist/development/src/acl/Authorizator.js +54 -0
- package/dist/development/src/acl/Authorizator.js.map +1 -0
- package/dist/development/src/acl/EvaluatedPredicateReplacer.cjs +27 -0
- package/dist/development/src/acl/EvaluatedPredicateReplacer.cjs.map +1 -0
- package/dist/development/src/acl/EvaluatedPredicateReplacer.js +27 -0
- package/dist/development/src/acl/EvaluatedPredicateReplacer.js.map +1 -0
- package/dist/development/src/acl/PermissionFactory.cjs +243 -0
- package/dist/development/src/acl/PermissionFactory.cjs.map +1 -0
- package/dist/development/src/acl/PermissionFactory.js +243 -0
- package/dist/development/src/acl/PermissionFactory.js.map +1 -0
- package/dist/development/src/acl/PredicateFactory.cjs +109 -0
- package/dist/development/src/acl/PredicateFactory.cjs.map +1 -0
- package/dist/development/src/acl/PredicateFactory.js +109 -0
- package/dist/development/src/acl/PredicateFactory.js.map +1 -0
- package/dist/development/src/acl/PredicatesInjector.cjs +147 -0
- package/dist/development/src/acl/PredicatesInjector.cjs.map +1 -0
- package/dist/development/src/acl/PredicatesInjector.js +147 -0
- package/dist/development/src/acl/PredicatesInjector.js.map +1 -0
- package/dist/development/src/acl/VariableInjector.cjs +38 -0
- package/dist/development/src/acl/VariableInjector.cjs.map +1 -0
- package/dist/development/src/acl/VariableInjector.js +38 -0
- package/dist/development/src/acl/VariableInjector.js.map +1 -0
- package/dist/development/src/acl/VariableUtils.cjs +20 -0
- package/dist/development/src/acl/VariableUtils.cjs.map +1 -0
- package/dist/development/src/acl/VariableUtils.js +20 -0
- package/dist/development/src/acl/VariableUtils.js.map +1 -0
- package/dist/development/src/exception.cjs +20 -0
- package/dist/development/src/exception.cjs.map +1 -0
- package/dist/development/src/exception.js +20 -0
- package/dist/development/src/exception.js.map +1 -0
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.cjs +28 -0
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.cjs.map +1 -0
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.js +28 -0
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.js.map +1 -0
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.cjs +50 -0
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.cjs.map +1 -0
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.js +50 -0
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.js.map +1 -0
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.cjs +111 -0
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.cjs.map +1 -0
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.js +111 -0
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.js.map +1 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.cjs +58 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.cjs.map +1 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.js +58 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.js.map +1 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.cjs +44 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.cjs.map +1 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.js +44 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.js.map +1 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.cjs +24 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.cjs.map +1 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.js +24 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.js.map +1 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.cjs +54 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.cjs.map +1 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.js +54 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.js.map +1 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.cjs +58 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.cjs.map +1 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.js +58 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.js.map +1 -0
- package/dist/development/src/input-validation/ColumnValueResolver.cjs +23 -0
- package/dist/development/src/input-validation/ColumnValueResolver.cjs.map +1 -0
- package/dist/development/src/input-validation/ColumnValueResolver.js +23 -0
- package/dist/development/src/input-validation/ColumnValueResolver.js.map +1 -0
- package/dist/development/src/input-validation/EntityRulesResolver.cjs +77 -0
- package/dist/development/src/input-validation/EntityRulesResolver.cjs.map +1 -0
- package/dist/development/src/input-validation/EntityRulesResolver.js +77 -0
- package/dist/development/src/input-validation/EntityRulesResolver.js.map +1 -0
- package/dist/development/src/input-validation/QueryAstFactory.cjs +47 -0
- package/dist/development/src/input-validation/QueryAstFactory.cjs.map +1 -0
- package/dist/development/src/input-validation/QueryAstFactory.js +47 -0
- package/dist/development/src/input-validation/QueryAstFactory.js.map +1 -0
- package/dist/development/src/input-validation/ValidationContext.cjs +102 -0
- package/dist/development/src/input-validation/ValidationContext.cjs.map +1 -0
- package/dist/development/src/input-validation/ValidationContext.js +103 -0
- package/dist/development/src/input-validation/ValidationContext.js.map +1 -0
- package/dist/development/src/input-validation/ValidationDataSelector.cjs +24 -0
- package/dist/development/src/input-validation/ValidationDataSelector.cjs.map +1 -0
- package/dist/development/src/input-validation/ValidationDataSelector.js +24 -0
- package/dist/development/src/input-validation/ValidationDataSelector.js.map +1 -0
- package/dist/development/src/input-validation/ValidationEvaluation.cjs +200 -0
- package/dist/development/src/input-validation/ValidationEvaluation.cjs.map +1 -0
- package/dist/development/src/input-validation/ValidationEvaluation.js +200 -0
- package/dist/development/src/input-validation/ValidationEvaluation.js.map +1 -0
- package/dist/development/src/input-validation/ValidationPath.cjs +11 -0
- package/dist/development/src/input-validation/ValidationPath.cjs.map +1 -0
- package/dist/development/src/input-validation/ValidationPath.js +11 -0
- package/dist/development/src/input-validation/ValidationPath.js.map +1 -0
- package/dist/development/src/input-validation/dependencies/DependencyCollector.cjs +48 -0
- package/dist/development/src/input-validation/dependencies/DependencyCollector.cjs.map +1 -0
- package/dist/development/src/input-validation/dependencies/DependencyCollector.js +48 -0
- package/dist/development/src/input-validation/dependencies/DependencyCollector.js.map +1 -0
- package/dist/development/src/input-validation/dependencies/DependencyMerger.cjs +11 -0
- package/dist/development/src/input-validation/dependencies/DependencyMerger.cjs.map +1 -0
- package/dist/development/src/input-validation/dependencies/DependencyMerger.js +11 -0
- package/dist/development/src/input-validation/dependencies/DependencyMerger.js.map +1 -0
- package/dist/development/src/input-validation/exceptions.cjs +6 -0
- package/dist/development/src/input-validation/exceptions.cjs.map +1 -0
- package/dist/development/src/input-validation/exceptions.js +6 -0
- package/dist/development/src/input-validation/exceptions.js.map +1 -0
- package/dist/development/src/input-validation/preValidation/CreateInputPreValidationProcessor.cjs +59 -0
- package/dist/development/src/input-validation/preValidation/CreateInputPreValidationProcessor.cjs.map +1 -0
- package/dist/development/src/input-validation/preValidation/CreateInputPreValidationProcessor.js +59 -0
- package/dist/development/src/input-validation/preValidation/CreateInputPreValidationProcessor.js.map +1 -0
- package/dist/development/src/input-validation/preValidation/InputPreValidator.cjs +130 -0
- package/dist/development/src/input-validation/preValidation/InputPreValidator.cjs.map +1 -0
- package/dist/development/src/input-validation/preValidation/InputPreValidator.js +130 -0
- package/dist/development/src/input-validation/preValidation/InputPreValidator.js.map +1 -0
- package/dist/development/src/input-validation/preValidation/UpdateInputPreValidationProcessor.cjs +114 -0
- package/dist/development/src/input-validation/preValidation/UpdateInputPreValidationProcessor.cjs.map +1 -0
- package/dist/development/src/input-validation/preValidation/UpdateInputPreValidationProcessor.js +114 -0
- package/dist/development/src/input-validation/preValidation/UpdateInputPreValidationProcessor.js.map +1 -0
- package/dist/development/src/inputProcessing/CreateInputVisitor.cjs +121 -0
- package/dist/development/src/inputProcessing/CreateInputVisitor.cjs.map +1 -0
- package/dist/development/src/inputProcessing/CreateInputVisitor.js +121 -0
- package/dist/development/src/inputProcessing/CreateInputVisitor.js.map +1 -0
- package/dist/development/src/inputProcessing/FieldNode.cjs +11 -0
- package/dist/development/src/inputProcessing/FieldNode.cjs.map +1 -0
- package/dist/development/src/inputProcessing/FieldNode.js +11 -0
- package/dist/development/src/inputProcessing/FieldNode.js.map +1 -0
- package/dist/development/src/inputProcessing/ObjectNode.cjs +43 -0
- package/dist/development/src/inputProcessing/ObjectNode.cjs.map +1 -0
- package/dist/development/src/inputProcessing/ObjectNode.js +43 -0
- package/dist/development/src/inputProcessing/ObjectNode.js.map +1 -0
- package/dist/development/src/inputProcessing/UniqueWhereExpander.cjs +59 -0
- package/dist/development/src/inputProcessing/UniqueWhereExpander.cjs.map +1 -0
- package/dist/development/src/inputProcessing/UniqueWhereExpander.js +59 -0
- package/dist/development/src/inputProcessing/UniqueWhereExpander.js.map +1 -0
- package/dist/development/src/inputProcessing/UpdateInputVisitor.cjs +153 -0
- package/dist/development/src/inputProcessing/UpdateInputVisitor.cjs.map +1 -0
- package/dist/development/src/inputProcessing/UpdateInputVisitor.js +153 -0
- package/dist/development/src/inputProcessing/UpdateInputVisitor.js.map +1 -0
- package/dist/development/src/introspection/IntrospectionSchemaDefinitionFactory.cjs +19 -0
- package/dist/development/src/introspection/IntrospectionSchemaDefinitionFactory.cjs.map +1 -0
- package/dist/development/src/introspection/IntrospectionSchemaDefinitionFactory.js +19 -0
- package/dist/development/src/introspection/IntrospectionSchemaDefinitionFactory.js.map +1 -0
- package/dist/development/src/introspection/IntrospectionSchemaFactory.cjs +157 -0
- package/dist/development/src/introspection/IntrospectionSchemaFactory.cjs.map +1 -0
- package/dist/development/src/introspection/IntrospectionSchemaFactory.js +157 -0
- package/dist/development/src/introspection/IntrospectionSchemaFactory.js.map +1 -0
- package/dist/development/src/introspection/content-schema.types.cjs +22 -0
- package/dist/development/src/introspection/content-schema.types.cjs.map +1 -0
- package/dist/development/src/introspection/content-schema.types.js +22 -0
- package/dist/development/src/introspection/content-schema.types.js.map +1 -0
- package/dist/development/src/introspection/introspection.schema.cjs +163 -0
- package/dist/development/src/introspection/introspection.schema.cjs.map +1 -0
- package/dist/development/src/introspection/introspection.schema.js +163 -0
- package/dist/development/src/introspection/introspection.schema.js.map +1 -0
- package/dist/development/src/mapper/CheckedPrimary.cjs +9 -0
- package/dist/development/src/mapper/CheckedPrimary.cjs.map +1 -0
- package/dist/development/src/mapper/CheckedPrimary.js +9 -0
- package/dist/development/src/mapper/CheckedPrimary.js.map +1 -0
- package/dist/development/src/mapper/ColumnValue.cjs +15 -0
- package/dist/development/src/mapper/ColumnValue.cjs.map +1 -0
- package/dist/development/src/mapper/ColumnValue.js +15 -0
- package/dist/development/src/mapper/ColumnValue.js.map +1 -0
- package/dist/development/src/mapper/ErrorUtils.cjs +130 -0
- package/dist/development/src/mapper/ErrorUtils.cjs.map +1 -0
- package/dist/development/src/mapper/ErrorUtils.js +113 -0
- package/dist/development/src/mapper/ErrorUtils.js.map +1 -0
- package/dist/development/src/mapper/EventManager.cjs +116 -0
- package/dist/development/src/mapper/EventManager.cjs.map +1 -0
- package/dist/development/src/mapper/EventManager.js +116 -0
- package/dist/development/src/mapper/EventManager.js.map +1 -0
- package/dist/development/src/mapper/JunctionTableManager.cjs +187 -0
- package/dist/development/src/mapper/JunctionTableManager.cjs.map +1 -0
- package/dist/development/src/mapper/JunctionTableManager.js +187 -0
- package/dist/development/src/mapper/JunctionTableManager.js.map +1 -0
- package/dist/development/src/mapper/Mapper.cjs +227 -0
- package/dist/development/src/mapper/Mapper.cjs.map +1 -0
- package/dist/development/src/mapper/Mapper.js +227 -0
- package/dist/development/src/mapper/Mapper.js.map +1 -0
- package/dist/development/src/mapper/MapperFactory.cjs +58 -0
- package/dist/development/src/mapper/MapperFactory.cjs.map +1 -0
- package/dist/development/src/mapper/MapperFactory.js +58 -0
- package/dist/development/src/mapper/MapperFactory.js.map +1 -0
- package/dist/development/src/mapper/MutationProcessorHelper.cjs +28 -0
- package/dist/development/src/mapper/MutationProcessorHelper.cjs.map +1 -0
- package/dist/development/src/mapper/MutationProcessorHelper.js +28 -0
- package/dist/development/src/mapper/MutationProcessorHelper.js.map +1 -0
- package/dist/development/src/mapper/Result.cjs +242 -0
- package/dist/development/src/mapper/Result.cjs.map +1 -0
- package/dist/development/src/mapper/Result.js +242 -0
- package/dist/development/src/mapper/Result.js.map +1 -0
- package/dist/development/src/mapper/delete/DeleteExecutor.cjs +210 -0
- package/dist/development/src/mapper/delete/DeleteExecutor.cjs.map +1 -0
- package/dist/development/src/mapper/delete/DeleteExecutor.js +210 -0
- package/dist/development/src/mapper/delete/DeleteExecutor.js.map +1 -0
- package/dist/development/src/mapper/delete/DeleteState.cjs +70 -0
- package/dist/development/src/mapper/delete/DeleteState.cjs.map +1 -0
- package/dist/development/src/mapper/delete/DeleteState.js +70 -0
- package/dist/development/src/mapper/delete/DeleteState.js.map +1 -0
- package/dist/development/src/mapper/delete/DeletedEntitiesStorage.cjs +26 -0
- package/dist/development/src/mapper/delete/DeletedEntitiesStorage.cjs.map +1 -0
- package/dist/development/src/mapper/delete/DeletedEntitiesStorage.js +26 -0
- package/dist/development/src/mapper/delete/DeletedEntitiesStorage.js.map +1 -0
- package/dist/development/src/mapper/delete/helpers.cjs +49 -0
- package/dist/development/src/mapper/delete/helpers.cjs.map +1 -0
- package/dist/development/src/mapper/delete/helpers.js +49 -0
- package/dist/development/src/mapper/delete/helpers.js.map +1 -0
- package/dist/development/src/mapper/insert/InsertBuilder.cjs +68 -0
- package/dist/development/src/mapper/insert/InsertBuilder.cjs.map +1 -0
- package/dist/development/src/mapper/insert/InsertBuilder.js +68 -0
- package/dist/development/src/mapper/insert/InsertBuilder.js.map +1 -0
- package/dist/development/src/mapper/insert/InsertBuilderFactory.cjs +16 -0
- package/dist/development/src/mapper/insert/InsertBuilderFactory.cjs.map +1 -0
- package/dist/development/src/mapper/insert/InsertBuilderFactory.js +16 -0
- package/dist/development/src/mapper/insert/InsertBuilderFactory.js.map +1 -0
- package/dist/development/src/mapper/insert/Inserter.cjs +73 -0
- package/dist/development/src/mapper/insert/Inserter.cjs.map +1 -0
- package/dist/development/src/mapper/insert/Inserter.js +73 -0
- package/dist/development/src/mapper/insert/Inserter.js.map +1 -0
- package/dist/development/src/mapper/insert/SqlCreateInputProcessor.cjs +77 -0
- package/dist/development/src/mapper/insert/SqlCreateInputProcessor.cjs.map +1 -0
- package/dist/development/src/mapper/insert/SqlCreateInputProcessor.js +77 -0
- package/dist/development/src/mapper/insert/SqlCreateInputProcessor.js.map +1 -0
- package/dist/development/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.cjs +43 -0
- package/dist/development/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.cjs.map +1 -0
- package/dist/development/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.js +43 -0
- package/dist/development/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.js.map +1 -0
- package/dist/development/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.cjs +40 -0
- package/dist/development/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.cjs.map +1 -0
- package/dist/development/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.js +40 -0
- package/dist/development/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.js.map +1 -0
- package/dist/development/src/mapper/insert/relations/OneHasManyCreateInputProcessor.cjs +38 -0
- package/dist/development/src/mapper/insert/relations/OneHasManyCreateInputProcessor.cjs.map +1 -0
- package/dist/development/src/mapper/insert/relations/OneHasManyCreateInputProcessor.js +38 -0
- package/dist/development/src/mapper/insert/relations/OneHasManyCreateInputProcessor.js.map +1 -0
- package/dist/development/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.cjs +63 -0
- package/dist/development/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.cjs.map +1 -0
- package/dist/development/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.js +63 -0
- package/dist/development/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.js.map +1 -0
- package/dist/development/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.cjs +65 -0
- package/dist/development/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.cjs.map +1 -0
- package/dist/development/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.js +65 -0
- package/dist/development/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.js.map +1 -0
- package/dist/development/src/mapper/select/ConditionBuilder.cjs +59 -0
- package/dist/development/src/mapper/select/ConditionBuilder.cjs.map +1 -0
- package/dist/development/src/mapper/select/ConditionBuilder.js +59 -0
- package/dist/development/src/mapper/select/ConditionBuilder.js.map +1 -0
- package/dist/development/src/mapper/select/JoinBuilder.cjs +31 -0
- package/dist/development/src/mapper/select/JoinBuilder.cjs.map +1 -0
- package/dist/development/src/mapper/select/JoinBuilder.js +31 -0
- package/dist/development/src/mapper/select/JoinBuilder.js.map +1 -0
- package/dist/development/src/mapper/select/JoinVisitor.cjs +90 -0
- package/dist/development/src/mapper/select/JoinVisitor.cjs.map +1 -0
- package/dist/development/src/mapper/select/JoinVisitor.js +90 -0
- package/dist/development/src/mapper/select/JoinVisitor.js.map +1 -0
- package/dist/development/src/mapper/select/OrderByBuilder.cjs +64 -0
- package/dist/development/src/mapper/select/OrderByBuilder.cjs.map +1 -0
- package/dist/development/src/mapper/select/OrderByBuilder.js +64 -0
- package/dist/development/src/mapper/select/OrderByBuilder.js.map +1 -0
- package/dist/development/src/mapper/select/OrderByHelper.cjs +37 -0
- package/dist/development/src/mapper/select/OrderByHelper.cjs.map +1 -0
- package/dist/development/src/mapper/select/OrderByHelper.js +37 -0
- package/dist/development/src/mapper/select/OrderByHelper.js.map +1 -0
- package/dist/development/src/mapper/select/Path.cjs +60 -0
- package/dist/development/src/mapper/select/Path.cjs.map +1 -0
- package/dist/development/src/mapper/select/Path.js +60 -0
- package/dist/development/src/mapper/select/Path.js.map +1 -0
- package/dist/development/src/mapper/select/RelationFetcher.cjs +188 -0
- package/dist/development/src/mapper/select/RelationFetcher.cjs.map +1 -0
- package/dist/development/src/mapper/select/RelationFetcher.js +188 -0
- package/dist/development/src/mapper/select/RelationFetcher.js.map +1 -0
- package/dist/development/src/mapper/select/SelectBuilder.cjs +178 -0
- package/dist/development/src/mapper/select/SelectBuilder.cjs.map +1 -0
- package/dist/development/src/mapper/select/SelectBuilder.js +178 -0
- package/dist/development/src/mapper/select/SelectBuilder.js.map +1 -0
- package/dist/development/src/mapper/select/SelectHydrator.cjs +90 -0
- package/dist/development/src/mapper/select/SelectHydrator.cjs.map +1 -0
- package/dist/development/src/mapper/select/SelectHydrator.js +90 -0
- package/dist/development/src/mapper/select/SelectHydrator.js.map +1 -0
- package/dist/development/src/mapper/select/WhereBuilder.cjs +297 -0
- package/dist/development/src/mapper/select/WhereBuilder.cjs.map +1 -0
- package/dist/development/src/mapper/select/WhereBuilder.js +297 -0
- package/dist/development/src/mapper/select/WhereBuilder.js.map +1 -0
- package/dist/development/src/mapper/select/handlers/FieldsVisitor.cjs +203 -0
- package/dist/development/src/mapper/select/handlers/FieldsVisitor.cjs.map +1 -0
- package/dist/development/src/mapper/select/handlers/FieldsVisitor.js +203 -0
- package/dist/development/src/mapper/select/handlers/FieldsVisitor.js.map +1 -0
- package/dist/development/src/mapper/select/handlers/FieldsVisitorFactory.cjs +26 -0
- package/dist/development/src/mapper/select/handlers/FieldsVisitorFactory.cjs.map +1 -0
- package/dist/development/src/mapper/select/handlers/FieldsVisitorFactory.js +26 -0
- package/dist/development/src/mapper/select/handlers/FieldsVisitorFactory.js.map +1 -0
- package/dist/development/src/mapper/select/handlers/MetaHandler.cjs +39 -0
- package/dist/development/src/mapper/select/handlers/MetaHandler.cjs.map +1 -0
- package/dist/development/src/mapper/select/handlers/MetaHandler.js +39 -0
- package/dist/development/src/mapper/select/handlers/MetaHandler.js.map +1 -0
- package/dist/development/src/mapper/select/optimizer/ConditionOptimizer.cjs +33 -0
- package/dist/development/src/mapper/select/optimizer/ConditionOptimizer.cjs.map +1 -0
- package/dist/development/src/mapper/select/optimizer/ConditionOptimizer.js +33 -0
- package/dist/development/src/mapper/select/optimizer/ConditionOptimizer.js.map +1 -0
- package/dist/development/src/mapper/select/optimizer/WhereOptimizer.cjs +171 -0
- package/dist/development/src/mapper/select/optimizer/WhereOptimizer.cjs.map +1 -0
- package/dist/development/src/mapper/select/optimizer/WhereOptimizer.js +171 -0
- package/dist/development/src/mapper/select/optimizer/WhereOptimizer.js.map +1 -0
- package/dist/development/src/mapper/select/optimizer/WhereReplacer.cjs +63 -0
- package/dist/development/src/mapper/select/optimizer/WhereReplacer.cjs.map +1 -0
- package/dist/development/src/mapper/select/optimizer/WhereReplacer.js +63 -0
- package/dist/development/src/mapper/select/optimizer/WhereReplacer.js.map +1 -0
- package/dist/development/src/mapper/select/optimizer/helpers.cjs +59 -0
- package/dist/development/src/mapper/select/optimizer/helpers.cjs.map +1 -0
- package/dist/development/src/mapper/select/optimizer/helpers.js +59 -0
- package/dist/development/src/mapper/select/optimizer/helpers.js.map +1 -0
- package/dist/development/src/mapper/update/SqlUpdateInputProcessor.cjs +91 -0
- package/dist/development/src/mapper/update/SqlUpdateInputProcessor.cjs.map +1 -0
- package/dist/development/src/mapper/update/SqlUpdateInputProcessor.js +91 -0
- package/dist/development/src/mapper/update/SqlUpdateInputProcessor.js.map +1 -0
- package/dist/development/src/mapper/update/UpdateBuilder.cjs +113 -0
- package/dist/development/src/mapper/update/UpdateBuilder.cjs.map +1 -0
- package/dist/development/src/mapper/update/UpdateBuilder.js +113 -0
- package/dist/development/src/mapper/update/UpdateBuilder.js.map +1 -0
- package/dist/development/src/mapper/update/UpdateBuilderFactory.cjs +23 -0
- package/dist/development/src/mapper/update/UpdateBuilderFactory.cjs.map +1 -0
- package/dist/development/src/mapper/update/UpdateBuilderFactory.js +23 -0
- package/dist/development/src/mapper/update/UpdateBuilderFactory.js.map +1 -0
- package/dist/development/src/mapper/update/Updater.cjs +96 -0
- package/dist/development/src/mapper/update/Updater.cjs.map +1 -0
- package/dist/development/src/mapper/update/Updater.js +96 -0
- package/dist/development/src/mapper/update/Updater.js.map +1 -0
- package/dist/development/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.cjs +84 -0
- package/dist/development/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.cjs.map +1 -0
- package/dist/development/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.js +84 -0
- package/dist/development/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.js.map +1 -0
- package/dist/development/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.cjs +88 -0
- package/dist/development/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.cjs.map +1 -0
- package/dist/development/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.js +88 -0
- package/dist/development/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.js.map +1 -0
- package/dist/development/src/mapper/update/relations/OneHasManyUpdateInputProcessor.cjs +87 -0
- package/dist/development/src/mapper/update/relations/OneHasManyUpdateInputProcessor.cjs.map +1 -0
- package/dist/development/src/mapper/update/relations/OneHasManyUpdateInputProcessor.js +87 -0
- package/dist/development/src/mapper/update/relations/OneHasManyUpdateInputProcessor.js.map +1 -0
- package/dist/development/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.cjs +147 -0
- package/dist/development/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.cjs.map +1 -0
- package/dist/development/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.js +147 -0
- package/dist/development/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.js.map +1 -0
- package/dist/development/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.cjs +183 -0
- package/dist/development/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.cjs.map +1 -0
- package/dist/development/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.js +183 -0
- package/dist/development/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.js.map +1 -0
- package/dist/development/src/resolvers/GraphQlQueryAstFactory.cjs +115 -0
- package/dist/development/src/resolvers/GraphQlQueryAstFactory.cjs.map +1 -0
- package/dist/development/src/resolvers/GraphQlQueryAstFactory.js +115 -0
- package/dist/development/src/resolvers/GraphQlQueryAstFactory.js.map +1 -0
- package/dist/development/src/resolvers/MutationResolver.cjs +508 -0
- package/dist/development/src/resolvers/MutationResolver.cjs.map +1 -0
- package/dist/development/src/resolvers/MutationResolver.js +508 -0
- package/dist/development/src/resolvers/MutationResolver.js.map +1 -0
- package/dist/development/src/resolvers/ReadHelpers.cjs +50 -0
- package/dist/development/src/resolvers/ReadHelpers.cjs.map +1 -0
- package/dist/development/src/resolvers/ReadHelpers.js +50 -0
- package/dist/development/src/resolvers/ReadHelpers.js.map +1 -0
- package/dist/development/src/resolvers/ReadResolver.cjs +38 -0
- package/dist/development/src/resolvers/ReadResolver.cjs.map +1 -0
- package/dist/development/src/resolvers/ReadResolver.js +38 -0
- package/dist/development/src/resolvers/ReadResolver.js.map +1 -0
- package/dist/development/src/resolvers/RefreshViewResolver.cjs +21 -0
- package/dist/development/src/resolvers/RefreshViewResolver.cjs.map +1 -0
- package/dist/development/src/resolvers/RefreshViewResolver.js +21 -0
- package/dist/development/src/resolvers/RefreshViewResolver.js.map +1 -0
- package/dist/development/src/resolvers/ValidationResolver.cjs +63 -0
- package/dist/development/src/resolvers/ValidationResolver.cjs.map +1 -0
- package/dist/development/src/resolvers/ValidationResolver.js +63 -0
- package/dist/development/src/resolvers/ValidationResolver.js.map +1 -0
- package/dist/development/src/schema/ColumnTypeResolver.cjs +92 -0
- package/dist/development/src/schema/ColumnTypeResolver.cjs.map +1 -0
- package/dist/development/src/schema/ColumnTypeResolver.js +92 -0
- package/dist/development/src/schema/ColumnTypeResolver.js.map +1 -0
- package/dist/development/src/schema/ConditionTypeProvider.cjs +72 -0
- package/dist/development/src/schema/ConditionTypeProvider.cjs.map +1 -0
- package/dist/development/src/schema/ConditionTypeProvider.js +72 -0
- package/dist/development/src/schema/ConditionTypeProvider.js.map +1 -0
- package/dist/development/src/schema/CustomTypesProvider.cjs +61 -0
- package/dist/development/src/schema/CustomTypesProvider.cjs.map +1 -0
- package/dist/development/src/schema/CustomTypesProvider.js +61 -0
- package/dist/development/src/schema/CustomTypesProvider.js.map +1 -0
- package/dist/development/src/schema/EntityTypeProvider.cjs +130 -0
- package/dist/development/src/schema/EntityTypeProvider.cjs.map +1 -0
- package/dist/development/src/schema/EntityTypeProvider.js +130 -0
- package/dist/development/src/schema/EntityTypeProvider.js.map +1 -0
- package/dist/development/src/schema/EnumsProvider.cjs +34 -0
- package/dist/development/src/schema/EnumsProvider.cjs.map +1 -0
- package/dist/development/src/schema/EnumsProvider.js +34 -0
- package/dist/development/src/schema/EnumsProvider.js.map +1 -0
- package/dist/development/src/schema/FieldAccessVisitor.cjs +16 -0
- package/dist/development/src/schema/FieldAccessVisitor.cjs.map +1 -0
- package/dist/development/src/schema/FieldAccessVisitor.js +16 -0
- package/dist/development/src/schema/FieldAccessVisitor.js.map +1 -0
- package/dist/development/src/schema/GraphQlSchemaBuilder.cjs +122 -0
- package/dist/development/src/schema/GraphQlSchemaBuilder.cjs.map +1 -0
- package/dist/development/src/schema/GraphQlSchemaBuilder.js +122 -0
- package/dist/development/src/schema/GraphQlSchemaBuilder.js.map +1 -0
- package/dist/development/src/schema/GraphQlSchemaBuilderFactory.cjs +153 -0
- package/dist/development/src/schema/GraphQlSchemaBuilderFactory.cjs.map +1 -0
- package/dist/development/src/schema/GraphQlSchemaBuilderFactory.js +153 -0
- package/dist/development/src/schema/GraphQlSchemaBuilderFactory.js.map +1 -0
- package/dist/development/src/schema/MutationProvider.cjs +189 -0
- package/dist/development/src/schema/MutationProvider.cjs.map +1 -0
- package/dist/development/src/schema/MutationProvider.js +189 -0
- package/dist/development/src/schema/MutationProvider.js.map +1 -0
- package/dist/development/src/schema/OperationExtension.cjs +35 -0
- package/dist/development/src/schema/OperationExtension.cjs.map +1 -0
- package/dist/development/src/schema/OperationExtension.js +35 -0
- package/dist/development/src/schema/OperationExtension.js.map +1 -0
- package/dist/development/src/schema/OrderByTypeProvider.cjs +68 -0
- package/dist/development/src/schema/OrderByTypeProvider.cjs.map +1 -0
- package/dist/development/src/schema/OrderByTypeProvider.js +68 -0
- package/dist/development/src/schema/OrderByTypeProvider.js.map +1 -0
- package/dist/development/src/schema/PaginatedFieldConfigFactory.cjs +26 -0
- package/dist/development/src/schema/PaginatedFieldConfigFactory.cjs.map +1 -0
- package/dist/development/src/schema/PaginatedFieldConfigFactory.js +26 -0
- package/dist/development/src/schema/PaginatedFieldConfigFactory.js.map +1 -0
- package/dist/development/src/schema/QueryProvider.cjs +102 -0
- package/dist/development/src/schema/QueryProvider.cjs.map +1 -0
- package/dist/development/src/schema/QueryProvider.js +102 -0
- package/dist/development/src/schema/QueryProvider.js.map +1 -0
- package/dist/development/src/schema/RefreshViewMutationProvider.cjs +42 -0
- package/dist/development/src/schema/RefreshViewMutationProvider.cjs.map +1 -0
- package/dist/development/src/schema/RefreshViewMutationProvider.js +42 -0
- package/dist/development/src/schema/RefreshViewMutationProvider.js.map +1 -0
- package/dist/development/src/schema/ResultSchemaTypeProvider.cjs +90 -0
- package/dist/development/src/schema/ResultSchemaTypeProvider.cjs.map +1 -0
- package/dist/development/src/schema/ResultSchemaTypeProvider.js +90 -0
- package/dist/development/src/schema/ResultSchemaTypeProvider.js.map +1 -0
- package/dist/development/src/schema/ValidationQueriesProvider.cjs +57 -0
- package/dist/development/src/schema/ValidationQueriesProvider.cjs.map +1 -0
- package/dist/development/src/schema/ValidationQueriesProvider.js +57 -0
- package/dist/development/src/schema/ValidationQueriesProvider.js.map +1 -0
- package/dist/development/src/schema/WhereTypeProvider.cjs +103 -0
- package/dist/development/src/schema/WhereTypeProvider.cjs.map +1 -0
- package/dist/development/src/schema/WhereTypeProvider.js +103 -0
- package/dist/development/src/schema/WhereTypeProvider.js.map +1 -0
- package/dist/development/src/schema/entities/FieldArgsVisitor.cjs +37 -0
- package/dist/development/src/schema/entities/FieldArgsVisitor.cjs.map +1 -0
- package/dist/development/src/schema/entities/FieldArgsVisitor.js +37 -0
- package/dist/development/src/schema/entities/FieldArgsVisitor.js.map +1 -0
- package/dist/development/src/schema/entities/FieldTypeVisitor.cjs +33 -0
- package/dist/development/src/schema/entities/FieldTypeVisitor.cjs.map +1 -0
- package/dist/development/src/schema/entities/FieldTypeVisitor.js +33 -0
- package/dist/development/src/schema/entities/FieldTypeVisitor.js.map +1 -0
- package/dist/development/src/schema/mutations/ConnectOrCreateRelationInputProvider.cjs +45 -0
- package/dist/development/src/schema/mutations/ConnectOrCreateRelationInputProvider.cjs.map +1 -0
- package/dist/development/src/schema/mutations/ConnectOrCreateRelationInputProvider.js +45 -0
- package/dist/development/src/schema/mutations/ConnectOrCreateRelationInputProvider.js.map +1 -0
- package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.cjs +40 -0
- package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.cjs.map +1 -0
- package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.js +40 -0
- package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.js.map +1 -0
- package/dist/development/src/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.cjs +56 -0
- package/dist/development/src/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.cjs.map +1 -0
- package/dist/development/src/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.js +56 -0
- package/dist/development/src/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.js.map +1 -0
- package/dist/development/src/schema/mutations/CreateEntityRelationInputFieldVisitor.cjs +67 -0
- package/dist/development/src/schema/mutations/CreateEntityRelationInputFieldVisitor.cjs.map +1 -0
- package/dist/development/src/schema/mutations/CreateEntityRelationInputFieldVisitor.js +67 -0
- package/dist/development/src/schema/mutations/CreateEntityRelationInputFieldVisitor.js.map +1 -0
- package/dist/development/src/schema/mutations/CreateEntityRelationInputProvider.cjs +22 -0
- package/dist/development/src/schema/mutations/CreateEntityRelationInputProvider.cjs.map +1 -0
- package/dist/development/src/schema/mutations/CreateEntityRelationInputProvider.js +22 -0
- package/dist/development/src/schema/mutations/CreateEntityRelationInputProvider.js.map +1 -0
- package/dist/development/src/schema/mutations/EntityInputProvider.cjs +67 -0
- package/dist/development/src/schema/mutations/EntityInputProvider.cjs.map +1 -0
- package/dist/development/src/schema/mutations/EntityInputProvider.js +67 -0
- package/dist/development/src/schema/mutations/EntityInputProvider.js.map +1 -0
- package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs +39 -0
- package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs.map +1 -0
- package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.js +39 -0
- package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.js.map +1 -0
- package/dist/development/src/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.cjs +79 -0
- package/dist/development/src/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.cjs.map +1 -0
- package/dist/development/src/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.js +79 -0
- package/dist/development/src/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.js.map +1 -0
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.cjs +133 -0
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.cjs.map +1 -0
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.js +133 -0
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.js.map +1 -0
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputProvider.cjs +22 -0
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputProvider.cjs.map +1 -0
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputProvider.js +22 -0
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputProvider.js.map +1 -0
- package/dist/development/src/schema/utils.cjs +18 -0
- package/dist/development/src/schema/utils.cjs.map +1 -0
- package/dist/development/src/schema/utils.js +18 -0
- package/dist/development/src/schema/utils.js.map +1 -0
- package/dist/development/src/utils/Mutex.cjs +36 -0
- package/dist/development/src/utils/Mutex.cjs.map +1 -0
- package/dist/development/src/utils/Mutex.js +36 -0
- package/dist/development/src/utils/Mutex.js.map +1 -0
- package/dist/development/src/utils/ResolveInfoUtils.cjs +30 -0
- package/dist/development/src/utils/ResolveInfoUtils.cjs.map +1 -0
- package/dist/development/src/utils/ResolveInfoUtils.js +30 -0
- package/dist/development/src/utils/ResolveInfoUtils.js.map +1 -0
- package/dist/development/src/utils/accessor.cjs +22 -0
- package/dist/development/src/utils/accessor.cjs.map +1 -0
- package/dist/development/src/utils/accessor.js +22 -0
- package/dist/development/src/utils/accessor.js.map +1 -0
- package/dist/development/src/utils/assertNever.cjs +7 -0
- package/dist/development/src/utils/assertNever.cjs.map +1 -0
- package/dist/development/src/utils/assertNever.js +7 -0
- package/dist/development/src/utils/assertNever.js.map +1 -0
- package/dist/development/src/utils/isIt.cjs +10 -0
- package/dist/development/src/utils/isIt.cjs.map +1 -0
- package/dist/development/src/utils/isIt.js +10 -0
- package/dist/development/src/utils/isIt.js.map +1 -0
- package/dist/development/src/utils/object.cjs +15 -0
- package/dist/development/src/utils/object.cjs.map +1 -0
- package/dist/development/src/utils/object.js +15 -0
- package/dist/development/src/utils/object.js.map +1 -0
- package/dist/development/src/utils/paginationUtils.cjs +50 -0
- package/dist/development/src/utils/paginationUtils.cjs.map +1 -0
- package/dist/development/src/utils/paginationUtils.js +50 -0
- package/dist/development/src/utils/paginationUtils.js.map +1 -0
- package/dist/development/src/utils/promises.cjs +11 -0
- package/dist/development/src/utils/promises.cjs.map +1 -0
- package/dist/development/src/utils/promises.js +11 -0
- package/dist/development/src/utils/promises.js.map +1 -0
- package/dist/development/src/utils/singletonFactory.cjs +26 -0
- package/dist/development/src/utils/singletonFactory.cjs.map +1 -0
- package/dist/development/src/utils/singletonFactory.js +26 -0
- package/dist/development/src/utils/singletonFactory.js.map +1 -0
- package/dist/development/src/utils/strings.cjs +7 -0
- package/dist/development/src/utils/strings.cjs.map +1 -0
- package/dist/development/src/utils/strings.js +7 -0
- package/dist/development/src/utils/strings.js.map +1 -0
- package/dist/development/src/utils/tuple.cjs +5 -0
- package/dist/development/src/utils/tuple.cjs.map +1 -0
- package/dist/development/src/utils/tuple.js +5 -0
- package/dist/development/src/utils/tuple.js.map +1 -0
- package/dist/development/src/utils/uniqueWhereFields.cjs +19 -0
- package/dist/development/src/utils/uniqueWhereFields.cjs.map +1 -0
- package/dist/development/src/utils/uniqueWhereFields.js +19 -0
- package/dist/development/src/utils/uniqueWhereFields.js.map +1 -0
- package/dist/development/src/utils/viewComputedId.cjs +16 -0
- package/dist/development/src/utils/viewComputedId.cjs.map +1 -0
- package/dist/development/src/utils/viewComputedId.js +16 -0
- package/dist/development/src/utils/viewComputedId.js.map +1 -0
- package/dist/production/index.cjs +141 -0
- package/dist/production/index.cjs.map +1 -0
- package/dist/production/index.js +138 -0
- package/dist/production/index.js.map +1 -0
- package/dist/production/src/ExecutionContainer.cjs +166 -0
- package/dist/production/src/ExecutionContainer.cjs.map +1 -0
- package/dist/production/src/ExecutionContainer.js +166 -0
- package/dist/production/src/ExecutionContainer.js.map +1 -0
- package/dist/production/src/acl/Authorizator.cjs +54 -0
- package/dist/production/src/acl/Authorizator.cjs.map +1 -0
- package/dist/production/src/acl/Authorizator.js +54 -0
- package/dist/production/src/acl/Authorizator.js.map +1 -0
- package/dist/production/src/acl/EvaluatedPredicateReplacer.cjs +27 -0
- package/dist/production/src/acl/EvaluatedPredicateReplacer.cjs.map +1 -0
- package/dist/production/src/acl/EvaluatedPredicateReplacer.js +27 -0
- package/dist/production/src/acl/EvaluatedPredicateReplacer.js.map +1 -0
- package/dist/production/src/acl/PermissionFactory.cjs +243 -0
- package/dist/production/src/acl/PermissionFactory.cjs.map +1 -0
- package/dist/production/src/acl/PermissionFactory.js +243 -0
- package/dist/production/src/acl/PermissionFactory.js.map +1 -0
- package/dist/production/src/acl/PredicateFactory.cjs +109 -0
- package/dist/production/src/acl/PredicateFactory.cjs.map +1 -0
- package/dist/production/src/acl/PredicateFactory.js +109 -0
- package/dist/production/src/acl/PredicateFactory.js.map +1 -0
- package/dist/production/src/acl/PredicatesInjector.cjs +147 -0
- package/dist/production/src/acl/PredicatesInjector.cjs.map +1 -0
- package/dist/production/src/acl/PredicatesInjector.js +147 -0
- package/dist/production/src/acl/PredicatesInjector.js.map +1 -0
- package/dist/production/src/acl/VariableInjector.cjs +38 -0
- package/dist/production/src/acl/VariableInjector.cjs.map +1 -0
- package/dist/production/src/acl/VariableInjector.js +38 -0
- package/dist/production/src/acl/VariableInjector.js.map +1 -0
- package/dist/production/src/acl/VariableUtils.cjs +20 -0
- package/dist/production/src/acl/VariableUtils.cjs.map +1 -0
- package/dist/production/src/acl/VariableUtils.js +20 -0
- package/dist/production/src/acl/VariableUtils.js.map +1 -0
- package/dist/production/src/exception.cjs +20 -0
- package/dist/production/src/exception.cjs.map +1 -0
- package/dist/production/src/exception.js +20 -0
- package/dist/production/src/exception.js.map +1 -0
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.cjs +28 -0
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.cjs.map +1 -0
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.js +28 -0
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.js.map +1 -0
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.cjs +50 -0
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.cjs.map +1 -0
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.js +50 -0
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.js.map +1 -0
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.cjs +111 -0
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.cjs.map +1 -0
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.js +111 -0
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.js.map +1 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.cjs +58 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.cjs.map +1 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.js +58 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.js.map +1 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.cjs +44 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.cjs.map +1 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.js +44 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.js.map +1 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.cjs +24 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.cjs.map +1 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.js +24 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.js.map +1 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.cjs +54 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.cjs.map +1 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.js +54 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.js.map +1 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.cjs +58 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.cjs.map +1 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.js +58 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.js.map +1 -0
- package/dist/production/src/input-validation/ColumnValueResolver.cjs +23 -0
- package/dist/production/src/input-validation/ColumnValueResolver.cjs.map +1 -0
- package/dist/production/src/input-validation/ColumnValueResolver.js +23 -0
- package/dist/production/src/input-validation/ColumnValueResolver.js.map +1 -0
- package/dist/production/src/input-validation/EntityRulesResolver.cjs +77 -0
- package/dist/production/src/input-validation/EntityRulesResolver.cjs.map +1 -0
- package/dist/production/src/input-validation/EntityRulesResolver.js +77 -0
- package/dist/production/src/input-validation/EntityRulesResolver.js.map +1 -0
- package/dist/production/src/input-validation/QueryAstFactory.cjs +47 -0
- package/dist/production/src/input-validation/QueryAstFactory.cjs.map +1 -0
- package/dist/production/src/input-validation/QueryAstFactory.js +47 -0
- package/dist/production/src/input-validation/QueryAstFactory.js.map +1 -0
- package/dist/production/src/input-validation/ValidationContext.cjs +102 -0
- package/dist/production/src/input-validation/ValidationContext.cjs.map +1 -0
- package/dist/production/src/input-validation/ValidationContext.js +103 -0
- package/dist/production/src/input-validation/ValidationContext.js.map +1 -0
- package/dist/production/src/input-validation/ValidationDataSelector.cjs +24 -0
- package/dist/production/src/input-validation/ValidationDataSelector.cjs.map +1 -0
- package/dist/production/src/input-validation/ValidationDataSelector.js +24 -0
- package/dist/production/src/input-validation/ValidationDataSelector.js.map +1 -0
- package/dist/production/src/input-validation/ValidationEvaluation.cjs +200 -0
- package/dist/production/src/input-validation/ValidationEvaluation.cjs.map +1 -0
- package/dist/production/src/input-validation/ValidationEvaluation.js +200 -0
- package/dist/production/src/input-validation/ValidationEvaluation.js.map +1 -0
- package/dist/production/src/input-validation/ValidationPath.cjs +11 -0
- package/dist/production/src/input-validation/ValidationPath.cjs.map +1 -0
- package/dist/production/src/input-validation/ValidationPath.js +11 -0
- package/dist/production/src/input-validation/ValidationPath.js.map +1 -0
- package/dist/production/src/input-validation/dependencies/DependencyCollector.cjs +48 -0
- package/dist/production/src/input-validation/dependencies/DependencyCollector.cjs.map +1 -0
- package/dist/production/src/input-validation/dependencies/DependencyCollector.js +48 -0
- package/dist/production/src/input-validation/dependencies/DependencyCollector.js.map +1 -0
- package/dist/production/src/input-validation/dependencies/DependencyMerger.cjs +11 -0
- package/dist/production/src/input-validation/dependencies/DependencyMerger.cjs.map +1 -0
- package/dist/production/src/input-validation/dependencies/DependencyMerger.js +11 -0
- package/dist/production/src/input-validation/dependencies/DependencyMerger.js.map +1 -0
- package/dist/production/src/input-validation/exceptions.cjs +6 -0
- package/dist/production/src/input-validation/exceptions.cjs.map +1 -0
- package/dist/production/src/input-validation/exceptions.js +6 -0
- package/dist/production/src/input-validation/exceptions.js.map +1 -0
- package/dist/production/src/input-validation/preValidation/CreateInputPreValidationProcessor.cjs +59 -0
- package/dist/production/src/input-validation/preValidation/CreateInputPreValidationProcessor.cjs.map +1 -0
- package/dist/production/src/input-validation/preValidation/CreateInputPreValidationProcessor.js +59 -0
- package/dist/production/src/input-validation/preValidation/CreateInputPreValidationProcessor.js.map +1 -0
- package/dist/production/src/input-validation/preValidation/InputPreValidator.cjs +130 -0
- package/dist/production/src/input-validation/preValidation/InputPreValidator.cjs.map +1 -0
- package/dist/production/src/input-validation/preValidation/InputPreValidator.js +130 -0
- package/dist/production/src/input-validation/preValidation/InputPreValidator.js.map +1 -0
- package/dist/production/src/input-validation/preValidation/UpdateInputPreValidationProcessor.cjs +114 -0
- package/dist/production/src/input-validation/preValidation/UpdateInputPreValidationProcessor.cjs.map +1 -0
- package/dist/production/src/input-validation/preValidation/UpdateInputPreValidationProcessor.js +114 -0
- package/dist/production/src/input-validation/preValidation/UpdateInputPreValidationProcessor.js.map +1 -0
- package/dist/production/src/inputProcessing/CreateInputVisitor.cjs +121 -0
- package/dist/production/src/inputProcessing/CreateInputVisitor.cjs.map +1 -0
- package/dist/production/src/inputProcessing/CreateInputVisitor.js +121 -0
- package/dist/production/src/inputProcessing/CreateInputVisitor.js.map +1 -0
- package/dist/production/src/inputProcessing/FieldNode.cjs +11 -0
- package/dist/production/src/inputProcessing/FieldNode.cjs.map +1 -0
- package/dist/production/src/inputProcessing/FieldNode.js +11 -0
- package/dist/production/src/inputProcessing/FieldNode.js.map +1 -0
- package/dist/production/src/inputProcessing/ObjectNode.cjs +43 -0
- package/dist/production/src/inputProcessing/ObjectNode.cjs.map +1 -0
- package/dist/production/src/inputProcessing/ObjectNode.js +43 -0
- package/dist/production/src/inputProcessing/ObjectNode.js.map +1 -0
- package/dist/production/src/inputProcessing/UniqueWhereExpander.cjs +59 -0
- package/dist/production/src/inputProcessing/UniqueWhereExpander.cjs.map +1 -0
- package/dist/production/src/inputProcessing/UniqueWhereExpander.js +59 -0
- package/dist/production/src/inputProcessing/UniqueWhereExpander.js.map +1 -0
- package/dist/production/src/inputProcessing/UpdateInputVisitor.cjs +153 -0
- package/dist/production/src/inputProcessing/UpdateInputVisitor.cjs.map +1 -0
- package/dist/production/src/inputProcessing/UpdateInputVisitor.js +153 -0
- package/dist/production/src/inputProcessing/UpdateInputVisitor.js.map +1 -0
- package/dist/production/src/introspection/IntrospectionSchemaDefinitionFactory.cjs +19 -0
- package/dist/production/src/introspection/IntrospectionSchemaDefinitionFactory.cjs.map +1 -0
- package/dist/production/src/introspection/IntrospectionSchemaDefinitionFactory.js +19 -0
- package/dist/production/src/introspection/IntrospectionSchemaDefinitionFactory.js.map +1 -0
- package/dist/production/src/introspection/IntrospectionSchemaFactory.cjs +157 -0
- package/dist/production/src/introspection/IntrospectionSchemaFactory.cjs.map +1 -0
- package/dist/production/src/introspection/IntrospectionSchemaFactory.js +157 -0
- package/dist/production/src/introspection/IntrospectionSchemaFactory.js.map +1 -0
- package/dist/production/src/introspection/content-schema.types.cjs +22 -0
- package/dist/production/src/introspection/content-schema.types.cjs.map +1 -0
- package/dist/production/src/introspection/content-schema.types.js +22 -0
- package/dist/production/src/introspection/content-schema.types.js.map +1 -0
- package/dist/production/src/introspection/introspection.schema.cjs +163 -0
- package/dist/production/src/introspection/introspection.schema.cjs.map +1 -0
- package/dist/production/src/introspection/introspection.schema.js +163 -0
- package/dist/production/src/introspection/introspection.schema.js.map +1 -0
- package/dist/production/src/mapper/CheckedPrimary.cjs +9 -0
- package/dist/production/src/mapper/CheckedPrimary.cjs.map +1 -0
- package/dist/production/src/mapper/CheckedPrimary.js +9 -0
- package/dist/production/src/mapper/CheckedPrimary.js.map +1 -0
- package/dist/production/src/mapper/ColumnValue.cjs +15 -0
- package/dist/production/src/mapper/ColumnValue.cjs.map +1 -0
- package/dist/production/src/mapper/ColumnValue.js +15 -0
- package/dist/production/src/mapper/ColumnValue.js.map +1 -0
- package/dist/production/src/mapper/ErrorUtils.cjs +130 -0
- package/dist/production/src/mapper/ErrorUtils.cjs.map +1 -0
- package/dist/production/src/mapper/ErrorUtils.js +113 -0
- package/dist/production/src/mapper/ErrorUtils.js.map +1 -0
- package/dist/production/src/mapper/EventManager.cjs +116 -0
- package/dist/production/src/mapper/EventManager.cjs.map +1 -0
- package/dist/production/src/mapper/EventManager.js +116 -0
- package/dist/production/src/mapper/EventManager.js.map +1 -0
- package/dist/production/src/mapper/JunctionTableManager.cjs +187 -0
- package/dist/production/src/mapper/JunctionTableManager.cjs.map +1 -0
- package/dist/production/src/mapper/JunctionTableManager.js +187 -0
- package/dist/production/src/mapper/JunctionTableManager.js.map +1 -0
- package/dist/production/src/mapper/Mapper.cjs +227 -0
- package/dist/production/src/mapper/Mapper.cjs.map +1 -0
- package/dist/production/src/mapper/Mapper.js +227 -0
- package/dist/production/src/mapper/Mapper.js.map +1 -0
- package/dist/production/src/mapper/MapperFactory.cjs +58 -0
- package/dist/production/src/mapper/MapperFactory.cjs.map +1 -0
- package/dist/production/src/mapper/MapperFactory.js +58 -0
- package/dist/production/src/mapper/MapperFactory.js.map +1 -0
- package/dist/production/src/mapper/MutationProcessorHelper.cjs +28 -0
- package/dist/production/src/mapper/MutationProcessorHelper.cjs.map +1 -0
- package/dist/production/src/mapper/MutationProcessorHelper.js +28 -0
- package/dist/production/src/mapper/MutationProcessorHelper.js.map +1 -0
- package/dist/production/src/mapper/Result.cjs +242 -0
- package/dist/production/src/mapper/Result.cjs.map +1 -0
- package/dist/production/src/mapper/Result.js +242 -0
- package/dist/production/src/mapper/Result.js.map +1 -0
- package/dist/production/src/mapper/delete/DeleteExecutor.cjs +210 -0
- package/dist/production/src/mapper/delete/DeleteExecutor.cjs.map +1 -0
- package/dist/production/src/mapper/delete/DeleteExecutor.js +210 -0
- package/dist/production/src/mapper/delete/DeleteExecutor.js.map +1 -0
- package/dist/production/src/mapper/delete/DeleteState.cjs +70 -0
- package/dist/production/src/mapper/delete/DeleteState.cjs.map +1 -0
- package/dist/production/src/mapper/delete/DeleteState.js +70 -0
- package/dist/production/src/mapper/delete/DeleteState.js.map +1 -0
- package/dist/production/src/mapper/delete/DeletedEntitiesStorage.cjs +26 -0
- package/dist/production/src/mapper/delete/DeletedEntitiesStorage.cjs.map +1 -0
- package/dist/production/src/mapper/delete/DeletedEntitiesStorage.js +26 -0
- package/dist/production/src/mapper/delete/DeletedEntitiesStorage.js.map +1 -0
- package/dist/production/src/mapper/delete/helpers.cjs +49 -0
- package/dist/production/src/mapper/delete/helpers.cjs.map +1 -0
- package/dist/production/src/mapper/delete/helpers.js +49 -0
- package/dist/production/src/mapper/delete/helpers.js.map +1 -0
- package/dist/production/src/mapper/insert/InsertBuilder.cjs +68 -0
- package/dist/production/src/mapper/insert/InsertBuilder.cjs.map +1 -0
- package/dist/production/src/mapper/insert/InsertBuilder.js +68 -0
- package/dist/production/src/mapper/insert/InsertBuilder.js.map +1 -0
- package/dist/production/src/mapper/insert/InsertBuilderFactory.cjs +16 -0
- package/dist/production/src/mapper/insert/InsertBuilderFactory.cjs.map +1 -0
- package/dist/production/src/mapper/insert/InsertBuilderFactory.js +16 -0
- package/dist/production/src/mapper/insert/InsertBuilderFactory.js.map +1 -0
- package/dist/production/src/mapper/insert/Inserter.cjs +73 -0
- package/dist/production/src/mapper/insert/Inserter.cjs.map +1 -0
- package/dist/production/src/mapper/insert/Inserter.js +73 -0
- package/dist/production/src/mapper/insert/Inserter.js.map +1 -0
- package/dist/production/src/mapper/insert/SqlCreateInputProcessor.cjs +77 -0
- package/dist/production/src/mapper/insert/SqlCreateInputProcessor.cjs.map +1 -0
- package/dist/production/src/mapper/insert/SqlCreateInputProcessor.js +77 -0
- package/dist/production/src/mapper/insert/SqlCreateInputProcessor.js.map +1 -0
- package/dist/production/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.cjs +43 -0
- package/dist/production/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.cjs.map +1 -0
- package/dist/production/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.js +43 -0
- package/dist/production/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.js.map +1 -0
- package/dist/production/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.cjs +40 -0
- package/dist/production/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.cjs.map +1 -0
- package/dist/production/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.js +40 -0
- package/dist/production/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.js.map +1 -0
- package/dist/production/src/mapper/insert/relations/OneHasManyCreateInputProcessor.cjs +38 -0
- package/dist/production/src/mapper/insert/relations/OneHasManyCreateInputProcessor.cjs.map +1 -0
- package/dist/production/src/mapper/insert/relations/OneHasManyCreateInputProcessor.js +38 -0
- package/dist/production/src/mapper/insert/relations/OneHasManyCreateInputProcessor.js.map +1 -0
- package/dist/production/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.cjs +63 -0
- package/dist/production/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.cjs.map +1 -0
- package/dist/production/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.js +63 -0
- package/dist/production/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.js.map +1 -0
- package/dist/production/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.cjs +65 -0
- package/dist/production/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.cjs.map +1 -0
- package/dist/production/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.js +65 -0
- package/dist/production/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.js.map +1 -0
- package/dist/production/src/mapper/select/ConditionBuilder.cjs +59 -0
- package/dist/production/src/mapper/select/ConditionBuilder.cjs.map +1 -0
- package/dist/production/src/mapper/select/ConditionBuilder.js +59 -0
- package/dist/production/src/mapper/select/ConditionBuilder.js.map +1 -0
- package/dist/production/src/mapper/select/JoinBuilder.cjs +31 -0
- package/dist/production/src/mapper/select/JoinBuilder.cjs.map +1 -0
- package/dist/production/src/mapper/select/JoinBuilder.js +31 -0
- package/dist/production/src/mapper/select/JoinBuilder.js.map +1 -0
- package/dist/production/src/mapper/select/JoinVisitor.cjs +90 -0
- package/dist/production/src/mapper/select/JoinVisitor.cjs.map +1 -0
- package/dist/production/src/mapper/select/JoinVisitor.js +90 -0
- package/dist/production/src/mapper/select/JoinVisitor.js.map +1 -0
- package/dist/production/src/mapper/select/OrderByBuilder.cjs +64 -0
- package/dist/production/src/mapper/select/OrderByBuilder.cjs.map +1 -0
- package/dist/production/src/mapper/select/OrderByBuilder.js +64 -0
- package/dist/production/src/mapper/select/OrderByBuilder.js.map +1 -0
- package/dist/production/src/mapper/select/OrderByHelper.cjs +37 -0
- package/dist/production/src/mapper/select/OrderByHelper.cjs.map +1 -0
- package/dist/production/src/mapper/select/OrderByHelper.js +37 -0
- package/dist/production/src/mapper/select/OrderByHelper.js.map +1 -0
- package/dist/production/src/mapper/select/Path.cjs +60 -0
- package/dist/production/src/mapper/select/Path.cjs.map +1 -0
- package/dist/production/src/mapper/select/Path.js +60 -0
- package/dist/production/src/mapper/select/Path.js.map +1 -0
- package/dist/production/src/mapper/select/RelationFetcher.cjs +188 -0
- package/dist/production/src/mapper/select/RelationFetcher.cjs.map +1 -0
- package/dist/production/src/mapper/select/RelationFetcher.js +188 -0
- package/dist/production/src/mapper/select/RelationFetcher.js.map +1 -0
- package/dist/production/src/mapper/select/SelectBuilder.cjs +178 -0
- package/dist/production/src/mapper/select/SelectBuilder.cjs.map +1 -0
- package/dist/production/src/mapper/select/SelectBuilder.js +178 -0
- package/dist/production/src/mapper/select/SelectBuilder.js.map +1 -0
- package/dist/production/src/mapper/select/SelectHydrator.cjs +90 -0
- package/dist/production/src/mapper/select/SelectHydrator.cjs.map +1 -0
- package/dist/production/src/mapper/select/SelectHydrator.js +90 -0
- package/dist/production/src/mapper/select/SelectHydrator.js.map +1 -0
- package/dist/production/src/mapper/select/WhereBuilder.cjs +297 -0
- package/dist/production/src/mapper/select/WhereBuilder.cjs.map +1 -0
- package/dist/production/src/mapper/select/WhereBuilder.js +297 -0
- package/dist/production/src/mapper/select/WhereBuilder.js.map +1 -0
- package/dist/production/src/mapper/select/handlers/FieldsVisitor.cjs +203 -0
- package/dist/production/src/mapper/select/handlers/FieldsVisitor.cjs.map +1 -0
- package/dist/production/src/mapper/select/handlers/FieldsVisitor.js +203 -0
- package/dist/production/src/mapper/select/handlers/FieldsVisitor.js.map +1 -0
- package/dist/production/src/mapper/select/handlers/FieldsVisitorFactory.cjs +26 -0
- package/dist/production/src/mapper/select/handlers/FieldsVisitorFactory.cjs.map +1 -0
- package/dist/production/src/mapper/select/handlers/FieldsVisitorFactory.js +26 -0
- package/dist/production/src/mapper/select/handlers/FieldsVisitorFactory.js.map +1 -0
- package/dist/production/src/mapper/select/handlers/MetaHandler.cjs +39 -0
- package/dist/production/src/mapper/select/handlers/MetaHandler.cjs.map +1 -0
- package/dist/production/src/mapper/select/handlers/MetaHandler.js +39 -0
- package/dist/production/src/mapper/select/handlers/MetaHandler.js.map +1 -0
- package/dist/production/src/mapper/select/optimizer/ConditionOptimizer.cjs +33 -0
- package/dist/production/src/mapper/select/optimizer/ConditionOptimizer.cjs.map +1 -0
- package/dist/production/src/mapper/select/optimizer/ConditionOptimizer.js +33 -0
- package/dist/production/src/mapper/select/optimizer/ConditionOptimizer.js.map +1 -0
- package/dist/production/src/mapper/select/optimizer/WhereOptimizer.cjs +171 -0
- package/dist/production/src/mapper/select/optimizer/WhereOptimizer.cjs.map +1 -0
- package/dist/production/src/mapper/select/optimizer/WhereOptimizer.js +171 -0
- package/dist/production/src/mapper/select/optimizer/WhereOptimizer.js.map +1 -0
- package/dist/production/src/mapper/select/optimizer/WhereReplacer.cjs +63 -0
- package/dist/production/src/mapper/select/optimizer/WhereReplacer.cjs.map +1 -0
- package/dist/production/src/mapper/select/optimizer/WhereReplacer.js +63 -0
- package/dist/production/src/mapper/select/optimizer/WhereReplacer.js.map +1 -0
- package/dist/production/src/mapper/select/optimizer/helpers.cjs +59 -0
- package/dist/production/src/mapper/select/optimizer/helpers.cjs.map +1 -0
- package/dist/production/src/mapper/select/optimizer/helpers.js +59 -0
- package/dist/production/src/mapper/select/optimizer/helpers.js.map +1 -0
- package/dist/production/src/mapper/update/SqlUpdateInputProcessor.cjs +91 -0
- package/dist/production/src/mapper/update/SqlUpdateInputProcessor.cjs.map +1 -0
- package/dist/production/src/mapper/update/SqlUpdateInputProcessor.js +91 -0
- package/dist/production/src/mapper/update/SqlUpdateInputProcessor.js.map +1 -0
- package/dist/production/src/mapper/update/UpdateBuilder.cjs +113 -0
- package/dist/production/src/mapper/update/UpdateBuilder.cjs.map +1 -0
- package/dist/production/src/mapper/update/UpdateBuilder.js +113 -0
- package/dist/production/src/mapper/update/UpdateBuilder.js.map +1 -0
- package/dist/production/src/mapper/update/UpdateBuilderFactory.cjs +23 -0
- package/dist/production/src/mapper/update/UpdateBuilderFactory.cjs.map +1 -0
- package/dist/production/src/mapper/update/UpdateBuilderFactory.js +23 -0
- package/dist/production/src/mapper/update/UpdateBuilderFactory.js.map +1 -0
- package/dist/production/src/mapper/update/Updater.cjs +96 -0
- package/dist/production/src/mapper/update/Updater.cjs.map +1 -0
- package/dist/production/src/mapper/update/Updater.js +96 -0
- package/dist/production/src/mapper/update/Updater.js.map +1 -0
- package/dist/production/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.cjs +84 -0
- package/dist/production/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.cjs.map +1 -0
- package/dist/production/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.js +84 -0
- package/dist/production/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.js.map +1 -0
- package/dist/production/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.cjs +88 -0
- package/dist/production/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.cjs.map +1 -0
- package/dist/production/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.js +88 -0
- package/dist/production/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.js.map +1 -0
- package/dist/production/src/mapper/update/relations/OneHasManyUpdateInputProcessor.cjs +87 -0
- package/dist/production/src/mapper/update/relations/OneHasManyUpdateInputProcessor.cjs.map +1 -0
- package/dist/production/src/mapper/update/relations/OneHasManyUpdateInputProcessor.js +87 -0
- package/dist/production/src/mapper/update/relations/OneHasManyUpdateInputProcessor.js.map +1 -0
- package/dist/production/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.cjs +147 -0
- package/dist/production/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.cjs.map +1 -0
- package/dist/production/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.js +147 -0
- package/dist/production/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.js.map +1 -0
- package/dist/production/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.cjs +183 -0
- package/dist/production/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.cjs.map +1 -0
- package/dist/production/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.js +183 -0
- package/dist/production/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.js.map +1 -0
- package/dist/production/src/resolvers/GraphQlQueryAstFactory.cjs +115 -0
- package/dist/production/src/resolvers/GraphQlQueryAstFactory.cjs.map +1 -0
- package/dist/production/src/resolvers/GraphQlQueryAstFactory.js +115 -0
- package/dist/production/src/resolvers/GraphQlQueryAstFactory.js.map +1 -0
- package/dist/production/src/resolvers/MutationResolver.cjs +508 -0
- package/dist/production/src/resolvers/MutationResolver.cjs.map +1 -0
- package/dist/production/src/resolvers/MutationResolver.js +508 -0
- package/dist/production/src/resolvers/MutationResolver.js.map +1 -0
- package/dist/production/src/resolvers/ReadHelpers.cjs +50 -0
- package/dist/production/src/resolvers/ReadHelpers.cjs.map +1 -0
- package/dist/production/src/resolvers/ReadHelpers.js +50 -0
- package/dist/production/src/resolvers/ReadHelpers.js.map +1 -0
- package/dist/production/src/resolvers/ReadResolver.cjs +38 -0
- package/dist/production/src/resolvers/ReadResolver.cjs.map +1 -0
- package/dist/production/src/resolvers/ReadResolver.js +38 -0
- package/dist/production/src/resolvers/ReadResolver.js.map +1 -0
- package/dist/production/src/resolvers/RefreshViewResolver.cjs +21 -0
- package/dist/production/src/resolvers/RefreshViewResolver.cjs.map +1 -0
- package/dist/production/src/resolvers/RefreshViewResolver.js +21 -0
- package/dist/production/src/resolvers/RefreshViewResolver.js.map +1 -0
- package/dist/production/src/resolvers/ValidationResolver.cjs +63 -0
- package/dist/production/src/resolvers/ValidationResolver.cjs.map +1 -0
- package/dist/production/src/resolvers/ValidationResolver.js +63 -0
- package/dist/production/src/resolvers/ValidationResolver.js.map +1 -0
- package/dist/production/src/schema/ColumnTypeResolver.cjs +92 -0
- package/dist/production/src/schema/ColumnTypeResolver.cjs.map +1 -0
- package/dist/production/src/schema/ColumnTypeResolver.js +92 -0
- package/dist/production/src/schema/ColumnTypeResolver.js.map +1 -0
- package/dist/production/src/schema/ConditionTypeProvider.cjs +72 -0
- package/dist/production/src/schema/ConditionTypeProvider.cjs.map +1 -0
- package/dist/production/src/schema/ConditionTypeProvider.js +72 -0
- package/dist/production/src/schema/ConditionTypeProvider.js.map +1 -0
- package/dist/production/src/schema/CustomTypesProvider.cjs +61 -0
- package/dist/production/src/schema/CustomTypesProvider.cjs.map +1 -0
- package/dist/production/src/schema/CustomTypesProvider.js +61 -0
- package/dist/production/src/schema/CustomTypesProvider.js.map +1 -0
- package/dist/production/src/schema/EntityTypeProvider.cjs +130 -0
- package/dist/production/src/schema/EntityTypeProvider.cjs.map +1 -0
- package/dist/production/src/schema/EntityTypeProvider.js +130 -0
- package/dist/production/src/schema/EntityTypeProvider.js.map +1 -0
- package/dist/production/src/schema/EnumsProvider.cjs +34 -0
- package/dist/production/src/schema/EnumsProvider.cjs.map +1 -0
- package/dist/production/src/schema/EnumsProvider.js +34 -0
- package/dist/production/src/schema/EnumsProvider.js.map +1 -0
- package/dist/production/src/schema/FieldAccessVisitor.cjs +16 -0
- package/dist/production/src/schema/FieldAccessVisitor.cjs.map +1 -0
- package/dist/production/src/schema/FieldAccessVisitor.js +16 -0
- package/dist/production/src/schema/FieldAccessVisitor.js.map +1 -0
- package/dist/production/src/schema/GraphQlSchemaBuilder.cjs +122 -0
- package/dist/production/src/schema/GraphQlSchemaBuilder.cjs.map +1 -0
- package/dist/production/src/schema/GraphQlSchemaBuilder.js +122 -0
- package/dist/production/src/schema/GraphQlSchemaBuilder.js.map +1 -0
- package/dist/production/src/schema/GraphQlSchemaBuilderFactory.cjs +153 -0
- package/dist/production/src/schema/GraphQlSchemaBuilderFactory.cjs.map +1 -0
- package/dist/production/src/schema/GraphQlSchemaBuilderFactory.js +153 -0
- package/dist/production/src/schema/GraphQlSchemaBuilderFactory.js.map +1 -0
- package/dist/production/src/schema/MutationProvider.cjs +189 -0
- package/dist/production/src/schema/MutationProvider.cjs.map +1 -0
- package/dist/production/src/schema/MutationProvider.js +189 -0
- package/dist/production/src/schema/MutationProvider.js.map +1 -0
- package/dist/production/src/schema/OperationExtension.cjs +35 -0
- package/dist/production/src/schema/OperationExtension.cjs.map +1 -0
- package/dist/production/src/schema/OperationExtension.js +35 -0
- package/dist/production/src/schema/OperationExtension.js.map +1 -0
- package/dist/production/src/schema/OrderByTypeProvider.cjs +68 -0
- package/dist/production/src/schema/OrderByTypeProvider.cjs.map +1 -0
- package/dist/production/src/schema/OrderByTypeProvider.js +68 -0
- package/dist/production/src/schema/OrderByTypeProvider.js.map +1 -0
- package/dist/production/src/schema/PaginatedFieldConfigFactory.cjs +26 -0
- package/dist/production/src/schema/PaginatedFieldConfigFactory.cjs.map +1 -0
- package/dist/production/src/schema/PaginatedFieldConfigFactory.js +26 -0
- package/dist/production/src/schema/PaginatedFieldConfigFactory.js.map +1 -0
- package/dist/production/src/schema/QueryProvider.cjs +102 -0
- package/dist/production/src/schema/QueryProvider.cjs.map +1 -0
- package/dist/production/src/schema/QueryProvider.js +102 -0
- package/dist/production/src/schema/QueryProvider.js.map +1 -0
- package/dist/production/src/schema/RefreshViewMutationProvider.cjs +42 -0
- package/dist/production/src/schema/RefreshViewMutationProvider.cjs.map +1 -0
- package/dist/production/src/schema/RefreshViewMutationProvider.js +42 -0
- package/dist/production/src/schema/RefreshViewMutationProvider.js.map +1 -0
- package/dist/production/src/schema/ResultSchemaTypeProvider.cjs +90 -0
- package/dist/production/src/schema/ResultSchemaTypeProvider.cjs.map +1 -0
- package/dist/production/src/schema/ResultSchemaTypeProvider.js +90 -0
- package/dist/production/src/schema/ResultSchemaTypeProvider.js.map +1 -0
- package/dist/production/src/schema/ValidationQueriesProvider.cjs +57 -0
- package/dist/production/src/schema/ValidationQueriesProvider.cjs.map +1 -0
- package/dist/production/src/schema/ValidationQueriesProvider.js +57 -0
- package/dist/production/src/schema/ValidationQueriesProvider.js.map +1 -0
- package/dist/production/src/schema/WhereTypeProvider.cjs +103 -0
- package/dist/production/src/schema/WhereTypeProvider.cjs.map +1 -0
- package/dist/production/src/schema/WhereTypeProvider.js +103 -0
- package/dist/production/src/schema/WhereTypeProvider.js.map +1 -0
- package/dist/production/src/schema/entities/FieldArgsVisitor.cjs +37 -0
- package/dist/production/src/schema/entities/FieldArgsVisitor.cjs.map +1 -0
- package/dist/production/src/schema/entities/FieldArgsVisitor.js +37 -0
- package/dist/production/src/schema/entities/FieldArgsVisitor.js.map +1 -0
- package/dist/production/src/schema/entities/FieldTypeVisitor.cjs +33 -0
- package/dist/production/src/schema/entities/FieldTypeVisitor.cjs.map +1 -0
- package/dist/production/src/schema/entities/FieldTypeVisitor.js +33 -0
- package/dist/production/src/schema/entities/FieldTypeVisitor.js.map +1 -0
- package/dist/production/src/schema/mutations/ConnectOrCreateRelationInputProvider.cjs +45 -0
- package/dist/production/src/schema/mutations/ConnectOrCreateRelationInputProvider.cjs.map +1 -0
- package/dist/production/src/schema/mutations/ConnectOrCreateRelationInputProvider.js +45 -0
- package/dist/production/src/schema/mutations/ConnectOrCreateRelationInputProvider.js.map +1 -0
- package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.cjs +40 -0
- package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.cjs.map +1 -0
- package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.js +40 -0
- package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.js.map +1 -0
- package/dist/production/src/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.cjs +56 -0
- package/dist/production/src/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.cjs.map +1 -0
- package/dist/production/src/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.js +56 -0
- package/dist/production/src/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.js.map +1 -0
- package/dist/production/src/schema/mutations/CreateEntityRelationInputFieldVisitor.cjs +67 -0
- package/dist/production/src/schema/mutations/CreateEntityRelationInputFieldVisitor.cjs.map +1 -0
- package/dist/production/src/schema/mutations/CreateEntityRelationInputFieldVisitor.js +67 -0
- package/dist/production/src/schema/mutations/CreateEntityRelationInputFieldVisitor.js.map +1 -0
- package/dist/production/src/schema/mutations/CreateEntityRelationInputProvider.cjs +22 -0
- package/dist/production/src/schema/mutations/CreateEntityRelationInputProvider.cjs.map +1 -0
- package/dist/production/src/schema/mutations/CreateEntityRelationInputProvider.js +22 -0
- package/dist/production/src/schema/mutations/CreateEntityRelationInputProvider.js.map +1 -0
- package/dist/production/src/schema/mutations/EntityInputProvider.cjs +67 -0
- package/dist/production/src/schema/mutations/EntityInputProvider.cjs.map +1 -0
- package/dist/production/src/schema/mutations/EntityInputProvider.js +67 -0
- package/dist/production/src/schema/mutations/EntityInputProvider.js.map +1 -0
- package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs +39 -0
- package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs.map +1 -0
- package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.js +39 -0
- package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.js.map +1 -0
- package/dist/production/src/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.cjs +79 -0
- package/dist/production/src/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.cjs.map +1 -0
- package/dist/production/src/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.js +79 -0
- package/dist/production/src/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.js.map +1 -0
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.cjs +133 -0
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.cjs.map +1 -0
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.js +133 -0
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.js.map +1 -0
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputProvider.cjs +22 -0
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputProvider.cjs.map +1 -0
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputProvider.js +22 -0
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputProvider.js.map +1 -0
- package/dist/production/src/schema/utils.cjs +18 -0
- package/dist/production/src/schema/utils.cjs.map +1 -0
- package/dist/production/src/schema/utils.js +18 -0
- package/dist/production/src/schema/utils.js.map +1 -0
- package/dist/production/src/utils/Mutex.cjs +36 -0
- package/dist/production/src/utils/Mutex.cjs.map +1 -0
- package/dist/production/src/utils/Mutex.js +36 -0
- package/dist/production/src/utils/Mutex.js.map +1 -0
- package/dist/production/src/utils/ResolveInfoUtils.cjs +30 -0
- package/dist/production/src/utils/ResolveInfoUtils.cjs.map +1 -0
- package/dist/production/src/utils/ResolveInfoUtils.js +30 -0
- package/dist/production/src/utils/ResolveInfoUtils.js.map +1 -0
- package/dist/production/src/utils/accessor.cjs +22 -0
- package/dist/production/src/utils/accessor.cjs.map +1 -0
- package/dist/production/src/utils/accessor.js +22 -0
- package/dist/production/src/utils/accessor.js.map +1 -0
- package/dist/production/src/utils/assertNever.cjs +7 -0
- package/dist/production/src/utils/assertNever.cjs.map +1 -0
- package/dist/production/src/utils/assertNever.js +7 -0
- package/dist/production/src/utils/assertNever.js.map +1 -0
- package/dist/production/src/utils/isIt.cjs +10 -0
- package/dist/production/src/utils/isIt.cjs.map +1 -0
- package/dist/production/src/utils/isIt.js +10 -0
- package/dist/production/src/utils/isIt.js.map +1 -0
- package/dist/production/src/utils/object.cjs +15 -0
- package/dist/production/src/utils/object.cjs.map +1 -0
- package/dist/production/src/utils/object.js +15 -0
- package/dist/production/src/utils/object.js.map +1 -0
- package/dist/production/src/utils/paginationUtils.cjs +50 -0
- package/dist/production/src/utils/paginationUtils.cjs.map +1 -0
- package/dist/production/src/utils/paginationUtils.js +50 -0
- package/dist/production/src/utils/paginationUtils.js.map +1 -0
- package/dist/production/src/utils/promises.cjs +11 -0
- package/dist/production/src/utils/promises.cjs.map +1 -0
- package/dist/production/src/utils/promises.js +11 -0
- package/dist/production/src/utils/promises.js.map +1 -0
- package/dist/production/src/utils/singletonFactory.cjs +26 -0
- package/dist/production/src/utils/singletonFactory.cjs.map +1 -0
- package/dist/production/src/utils/singletonFactory.js +26 -0
- package/dist/production/src/utils/singletonFactory.js.map +1 -0
- package/dist/production/src/utils/strings.cjs +7 -0
- package/dist/production/src/utils/strings.cjs.map +1 -0
- package/dist/production/src/utils/strings.js +7 -0
- package/dist/production/src/utils/strings.js.map +1 -0
- package/dist/production/src/utils/tuple.cjs +5 -0
- package/dist/production/src/utils/tuple.cjs.map +1 -0
- package/dist/production/src/utils/tuple.js +5 -0
- package/dist/production/src/utils/tuple.js.map +1 -0
- package/dist/production/src/utils/uniqueWhereFields.cjs +19 -0
- package/dist/production/src/utils/uniqueWhereFields.cjs.map +1 -0
- package/dist/production/src/utils/uniqueWhereFields.js +19 -0
- package/dist/production/src/utils/uniqueWhereFields.js.map +1 -0
- package/dist/production/src/utils/viewComputedId.cjs +16 -0
- package/dist/production/src/utils/viewComputedId.cjs.map +1 -0
- package/dist/production/src/utils/viewComputedId.js +16 -0
- package/dist/production/src/utils/viewComputedId.js.map +1 -0
- package/dist/tests/cases/bugs/bug-filter-or.test.d.ts +2 -0
- package/dist/tests/cases/bugs/bug-filter-or.test.d.ts.map +1 -0
- package/dist/tests/cases/bugs/bug-update-by-nested-unique.test.d.ts +2 -0
- package/dist/tests/cases/bugs/bug-update-by-nested-unique.test.d.ts.map +1 -0
- package/dist/tests/cases/bugs/bug102.test.d.ts +2 -0
- package/dist/tests/cases/bugs/bug102.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/delete/aclDelete.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/delete/aclDelete.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/delete/additionalDeleteFilter.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/delete/additionalDeleteFilter.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/delete/cascadeDelete.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/delete/cascadeDelete.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/delete/deleteById.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/delete/deleteById.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/delete/orphanRemoval.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/delete/orphanRemoval.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/delete/restrictOnDelete.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/delete/restrictOnDelete.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/delete/setNullOnDelete.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/delete/setNullOnDelete.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/acl/setField.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/acl/setField.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/aclInsert.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/aclInsert.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/basicInsert.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/basicInsert.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/insertCustomId.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/insertCustomId.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/jsonInsert.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/jsonInsert.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/manyHasManyInverse/create.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/manyHasManyInverse/create.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/manyHasManyOwning/create.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/manyHasManyOwning/create.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/manyHasOne/connectOrCreate.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/manyHasOne/connectOrCreate.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/manyHasOne/create.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/manyHasOne/create.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/oneHasMany/connect.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/oneHasMany/connect.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/oneHasMany/create.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/oneHasMany/create.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/oneHasOneInverse/create.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/oneHasOneInverse/create.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/oneHasOneOwning/create.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/oneHasOneOwning/create.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/oneHasOneOwning/empty.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/oneHasOneOwning/empty.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/subOperationFail.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/subOperationFail.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/validation/toBeFixed.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/validation/toBeFixed.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/differentRowAndFieldPredicate.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/differentRowAndFieldPredicate.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/fieldRestrictedByLocale.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/fieldRestrictedByLocale.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/isNullAcl.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/isNullAcl.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/nestedPredicate.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/nestedPredicate.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/orPredicate.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/orPredicate.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/predicateElimination.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/predicateElimination.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/relationAcl.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/relationAcl.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/rowPredicateSubset.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/rowPredicateSubset.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/sameRowAndFieldPredicate.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/sameRowAndFieldPredicate.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/backReferencedFilter.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/backReferencedFilter.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/complexCondition.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/complexCondition.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/composedFilter.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/composedFilter.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/containsQuery.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/containsQuery.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/manyHasManyOwnerRelation.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/manyHasManyOwnerRelation.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/manyHasOneRelation.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/manyHasOneRelation.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/oneHasManyRelation.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/oneHasManyRelation.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/formatting/dateFormat.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/formatting/dateFormat.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/graphqlFeatures/alias.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/graphqlFeatures/alias.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/graphqlFeatures/fragments.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/graphqlFeatures/fragments.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/misc/aliasedType.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/misc/aliasedType.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/misc/longAliasHash.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/misc/longAliasHash.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/misc/reducedHasMany.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/misc/reducedHasMany.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/misc/transaction.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/misc/transaction.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/pagination/hasManyLimit.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/pagination/hasManyLimit.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/pagination/paginate.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/pagination/paginate.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/pagination/paginateAliased.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/pagination/paginateAliased.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/pagination/simpleLimit.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/pagination/simpleLimit.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/relations/advanced.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/relations/advanced.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/relations/manyHasManyInverse.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/relations/manyHasManyInverse.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/relations/manyHasManyOwning.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/relations/manyHasManyOwning.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/relations/manyHasOne.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/relations/manyHasOne.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/relations/oneHasMany.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/relations/oneHasMany.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/relations/oneHasOneInverse.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/relations/oneHasOneInverse.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/relations/oneHasOneOwner.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/relations/oneHasOneOwner.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/sorting/byRelations.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/sorting/byRelations.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/sorting/defaultOrdering.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/sorting/defaultOrdering.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/sorting/orderBy.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/sorting/orderBy.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/sorting/randomSort.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/sorting/randomSort.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/sorting/sortNulls.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/sorting/sortNulls.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/sorting/sortedHasMany.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/sorting/sortedHasMany.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/unique/basicQueryById.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/unique/basicQueryById.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/unique/composedUnique.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/unique/composedUnique.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/unique/oneHasManyUnique.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/unique/oneHasManyUnique.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/unique/uniqueWithFilter.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/unique/uniqueWithFilter.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/view/view.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/view/view.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/acl/aclUpdate.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/acl/aclUpdate.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/additionalFilter.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/additionalFilter.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/basic/columnUpdate.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/basic/columnUpdate.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/basic/schema.d.ts +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/basic/schema.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/connect.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/connect.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/create.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/create.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/delete.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/delete.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/disconnect.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/disconnect.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/schema.d.ts +3 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/schema.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/update.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/update.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/upsert.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/upsert.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/connect.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/connect.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/connectOrCreate.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/connectOrCreate.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/create.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/create.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/delete.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/delete.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/disconnect.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/disconnect.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/schema.d.ts +3 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/schema.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/update.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/update.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/upsert.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/upsert.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/connect.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/connect.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/create.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/create.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/delete.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/delete.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/disconnect.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/disconnect.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/schema.d.ts +4 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/schema.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/update.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/update.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/upsert.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/upsert.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/combination.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/combination.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/connect.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/connect.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/connectOrCreate.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/connectOrCreate.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/create.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/create.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/delete.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/delete.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/disconnect.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/disconnect.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/schema.d.ts +4 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/schema.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/update.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/update.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/upsert.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/upsert.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/connect.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/connect.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/create.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/create.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/delete.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/delete.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/disconnect.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/disconnect.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/schema.d.ts +4 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/schema.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/update.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/update.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/upsert.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/upsert.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/connect.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/connect.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/connectOrCreate.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/connectOrCreate.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/create.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/create.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/delete.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/delete.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/disconnect.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/disconnect.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/schema.d.ts +4 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/schema.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/update.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/update.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/upsert.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/upsert.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/queryPortal.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/queryPortal.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/transaction.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/transaction.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/validation/toBeFixed.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/validation/toBeFixed.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/upsert/basicUpsert.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/upsert/basicUpsert.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/conditions.test.d.ts +7 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/conditions.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/nestedValidation.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/nestedValidation.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/optionalAssert.test.d.ts +6 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/optionalAssert.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/required.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/required.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/requiredWhen.test.d.ts +7 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/requiredWhen.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/rules/andRule.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/rules/andRule.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/rules/lengthRangeRule.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/rules/lengthRangeRule.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/rules/maxLengthRule.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/rules/maxLengthRule.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/rules/minLength.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/rules/minLength.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/rules/notEmptyRule.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/rules/notEmptyRule.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/rules/notRule.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/rules/notRule.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/rules/orRule.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/rules/orRule.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/rules/patternRule.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/rules/patternRule.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/rules/rangeRule.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/rules/rangeRule.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/utils.d.ts +23 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/utils.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlSchema/graphQlSchemaBuilder.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlSchema/graphQlSchemaBuilder.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlSchema/model.d.ts +23 -0
- package/dist/tests/cases/integration/graphQlSchema/model.d.ts.map +1 -0
- package/dist/tests/cases/unit/aclVariablesFactory.test.d.ts +2 -0
- package/dist/tests/cases/unit/aclVariablesFactory.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/conditionOptimizer.test.d.ts +2 -0
- package/dist/tests/cases/unit/conditionOptimizer.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/inputPreValidator.test.d.ts +2 -0
- package/dist/tests/cases/unit/inputPreValidator.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/inputValidation.test.d.ts +2 -0
- package/dist/tests/cases/unit/inputValidation.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/orderbyHelper.test.d.ts +2 -0
- package/dist/tests/cases/unit/orderbyHelper.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/permissionMerger.test.d.ts +2 -0
- package/dist/tests/cases/unit/permissionMerger.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/predicatesFactory.test.d.ts +2 -0
- package/dist/tests/cases/unit/predicatesFactory.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/predicatesInjector.test.d.ts +2 -0
- package/dist/tests/cases/unit/predicatesInjector.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/uuidType.test.d.ts +2 -0
- package/dist/tests/cases/unit/uuidType.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/variableInjector.test.d.ts +2 -0
- package/dist/tests/cases/unit/variableInjector.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/whereBuilder.test.d.ts +2 -0
- package/dist/tests/cases/unit/whereBuilder.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/whereOptimizer.test.d.ts +2 -0
- package/dist/tests/cases/unit/whereOptimizer.test.d.ts.map +1 -0
- package/dist/tests/src/assert.d.ts +5 -0
- package/dist/tests/src/assert.d.ts.map +1 -0
- package/dist/tests/src/tags.d.ts +3 -0
- package/dist/tests/src/tags.d.ts.map +1 -0
- package/dist/tests/src/test.d.ts +21 -0
- package/dist/tests/src/test.d.ts.map +1 -0
- package/dist/tests/src/testGraphql.d.ts +10 -0
- package/dist/tests/src/testGraphql.d.ts.map +1 -0
- package/dist/tests/src/testUuid.d.ts +5 -0
- package/dist/tests/src/testUuid.d.ts.map +1 -0
- package/dist/tests/src/utils.d.ts +6 -0
- package/dist/tests/src/utils.d.ts.map +1 -0
- package/dist/tests/tsconfig.tsbuildinfo +1 -0
- package/dist/types/ExecutionContainer.d.ts +163 -0
- package/dist/types/ExecutionContainer.d.ts.map +1 -0
- package/dist/types/acl/Authorizator.d.ts +16 -0
- package/dist/types/acl/Authorizator.d.ts.map +1 -0
- package/dist/types/acl/EvaluatedPredicateReplacer.d.ts +9 -0
- package/dist/types/acl/EvaluatedPredicateReplacer.d.ts.map +1 -0
- package/dist/types/acl/PermissionFactory.d.ts +17 -0
- package/dist/types/acl/PermissionFactory.d.ts.map +1 -0
- package/dist/types/acl/PredicateFactory.d.ts +20 -0
- package/dist/types/acl/PredicateFactory.d.ts.map +1 -0
- package/dist/types/acl/PredicatesInjector.d.ts +25 -0
- package/dist/types/acl/PredicatesInjector.d.ts.map +1 -0
- package/dist/types/acl/VariableInjector.d.ts +9 -0
- package/dist/types/acl/VariableInjector.d.ts.map +1 -0
- package/dist/types/acl/VariableUtils.d.ts +5 -0
- package/dist/types/acl/VariableUtils.d.ts.map +1 -0
- package/dist/types/acl/index.d.ts +7 -0
- package/dist/types/acl/index.d.ts.map +1 -0
- package/dist/types/exception.d.ts +7 -0
- package/dist/types/exception.d.ts.map +1 -0
- package/dist/types/extensions/EntityFieldsProvider.d.ts +11 -0
- package/dist/types/extensions/EntityFieldsProvider.d.ts.map +1 -0
- package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.d.ts +14 -0
- package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.d.ts.map +1 -0
- package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.d.ts +11 -0
- package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.d.ts.map +1 -0
- package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.d.ts +27 -0
- package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.d.ts.map +1 -0
- package/dist/types/extensions/hasManyToHasOneReducer/index.d.ts +4 -0
- package/dist/types/extensions/hasManyToHasOneReducer/index.d.ts.map +1 -0
- package/dist/types/extensions/index.d.ts +3 -0
- package/dist/types/extensions/index.d.ts.map +1 -0
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.d.ts +19 -0
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.d.ts.map +1 -0
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.d.ts +10 -0
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.d.ts.map +1 -0
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.d.ts +14 -0
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.d.ts.map +1 -0
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.d.ts +24 -0
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.d.ts.map +1 -0
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.d.ts +19 -0
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.d.ts.map +1 -0
- package/dist/types/index.d.ts +13 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/input-validation/ColumnValueResolver.d.ts +10 -0
- package/dist/types/input-validation/ColumnValueResolver.d.ts.map +1 -0
- package/dist/types/input-validation/EntityRulesResolver.d.ts +9 -0
- package/dist/types/input-validation/EntityRulesResolver.d.ts.map +1 -0
- package/dist/types/input-validation/InputValidator.d.ts +8 -0
- package/dist/types/input-validation/InputValidator.d.ts.map +1 -0
- package/dist/types/input-validation/QueryAstFactory.d.ts +10 -0
- package/dist/types/input-validation/QueryAstFactory.d.ts.map +1 -0
- package/dist/types/input-validation/ValidationContext.d.ts +48 -0
- package/dist/types/input-validation/ValidationContext.d.ts.map +1 -0
- package/dist/types/input-validation/ValidationDataSelector.d.ts +12 -0
- package/dist/types/input-validation/ValidationDataSelector.d.ts.map +1 -0
- package/dist/types/input-validation/ValidationEvaluation.d.ts +4 -0
- package/dist/types/input-validation/ValidationEvaluation.d.ts.map +1 -0
- package/dist/types/input-validation/ValidationPath.d.ts +11 -0
- package/dist/types/input-validation/ValidationPath.d.ts.map +1 -0
- package/dist/types/input-validation/dependencies/DependencyCollector.d.ts +11 -0
- package/dist/types/input-validation/dependencies/DependencyCollector.d.ts.map +1 -0
- package/dist/types/input-validation/dependencies/DependencyMerger.d.ts +5 -0
- package/dist/types/input-validation/dependencies/DependencyMerger.d.ts.map +1 -0
- package/dist/types/input-validation/dependencies/index.d.ts +3 -0
- package/dist/types/input-validation/dependencies/index.d.ts.map +1 -0
- package/dist/types/input-validation/exceptions.d.ts +3 -0
- package/dist/types/input-validation/exceptions.d.ts.map +1 -0
- package/dist/types/input-validation/index.d.ts +12 -0
- package/dist/types/input-validation/index.d.ts.map +1 -0
- package/dist/types/input-validation/preValidation/CreateInputPreValidationProcessor.d.ts +29 -0
- package/dist/types/input-validation/preValidation/CreateInputPreValidationProcessor.d.ts.map +1 -0
- package/dist/types/input-validation/preValidation/InputPreValidator.d.ts +37 -0
- package/dist/types/input-validation/preValidation/InputPreValidator.d.ts.map +1 -0
- package/dist/types/input-validation/preValidation/UpdateInputPreValidationProcessor.d.ts +45 -0
- package/dist/types/input-validation/preValidation/UpdateInputPreValidationProcessor.d.ts.map +1 -0
- package/dist/types/input-validation/preValidation/index.d.ts +4 -0
- package/dist/types/input-validation/preValidation/index.d.ts.map +1 -0
- package/dist/types/inputProcessing/CreateInputProcessor.d.ts +52 -0
- package/dist/types/inputProcessing/CreateInputProcessor.d.ts.map +1 -0
- package/dist/types/inputProcessing/CreateInputVisitor.d.ts +20 -0
- package/dist/types/inputProcessing/CreateInputVisitor.d.ts.map +1 -0
- package/dist/types/inputProcessing/FieldNode.d.ts +7 -0
- package/dist/types/inputProcessing/FieldNode.d.ts.map +1 -0
- package/dist/types/inputProcessing/ObjectNode.d.ts +16 -0
- package/dist/types/inputProcessing/ObjectNode.d.ts.map +1 -0
- package/dist/types/inputProcessing/UniqueWhereExpander.d.ts +14 -0
- package/dist/types/inputProcessing/UniqueWhereExpander.d.ts.map +1 -0
- package/dist/types/inputProcessing/UpdateInputProcessor.d.ts +91 -0
- package/dist/types/inputProcessing/UpdateInputProcessor.d.ts.map +1 -0
- package/dist/types/inputProcessing/UpdateInputVisitor.d.ts +20 -0
- package/dist/types/inputProcessing/UpdateInputVisitor.d.ts.map +1 -0
- package/dist/types/inputProcessing/index.d.ts +8 -0
- package/dist/types/inputProcessing/index.d.ts.map +1 -0
- package/dist/types/introspection/IntrospectionSchemaDefinitionFactory.d.ts +9 -0
- package/dist/types/introspection/IntrospectionSchemaDefinitionFactory.d.ts.map +1 -0
- package/dist/types/introspection/IntrospectionSchemaFactory.d.ts +14 -0
- package/dist/types/introspection/IntrospectionSchemaFactory.d.ts.map +1 -0
- package/dist/types/introspection/content-schema.types.d.ts +125 -0
- package/dist/types/introspection/content-schema.types.d.ts.map +1 -0
- package/dist/types/introspection/index.d.ts +5 -0
- package/dist/types/introspection/index.d.ts.map +1 -0
- package/dist/types/introspection/introspection.schema.d.ts +5 -0
- package/dist/types/introspection/introspection.schema.d.ts.map +1 -0
- package/dist/types/mapper/CheckedPrimary.d.ts +6 -0
- package/dist/types/mapper/CheckedPrimary.d.ts.map +1 -0
- package/dist/types/mapper/ColumnValue.d.ts +10 -0
- package/dist/types/mapper/ColumnValue.d.ts.map +1 -0
- package/dist/types/mapper/Constraints.d.ts +28 -0
- package/dist/types/mapper/Constraints.d.ts.map +1 -0
- package/dist/types/mapper/ErrorUtils.d.ts +6 -0
- package/dist/types/mapper/ErrorUtils.d.ts.map +1 -0
- package/dist/types/mapper/EventManager.d.ts +86 -0
- package/dist/types/mapper/EventManager.d.ts.map +1 -0
- package/dist/types/mapper/JunctionTableManager.d.ts +47 -0
- package/dist/types/mapper/JunctionTableManager.d.ts.map +1 -0
- package/dist/types/mapper/Mapper.d.ts +55 -0
- package/dist/types/mapper/Mapper.d.ts.map +1 -0
- package/dist/types/mapper/MapperFactory.d.ts +34 -0
- package/dist/types/mapper/MapperFactory.d.ts.map +1 -0
- package/dist/types/mapper/MutationProcessorHelper.d.ts +11 -0
- package/dist/types/mapper/MutationProcessorHelper.d.ts.map +1 -0
- package/dist/types/mapper/Result.d.ts +158 -0
- package/dist/types/mapper/Result.d.ts.map +1 -0
- package/dist/types/mapper/delete/DeleteExecutor.d.ts +29 -0
- package/dist/types/mapper/delete/DeleteExecutor.d.ts.map +1 -0
- package/dist/types/mapper/delete/DeleteState.d.ts +22 -0
- package/dist/types/mapper/delete/DeleteState.d.ts.map +1 -0
- package/dist/types/mapper/delete/DeletedEntitiesStorage.d.ts +9 -0
- package/dist/types/mapper/delete/DeletedEntitiesStorage.d.ts.map +1 -0
- package/dist/types/mapper/delete/helpers.d.ts +11 -0
- package/dist/types/mapper/delete/helpers.d.ts.map +1 -0
- package/dist/types/mapper/delete/index.d.ts +3 -0
- package/dist/types/mapper/delete/index.d.ts.map +1 -0
- package/dist/types/mapper/index.d.ts +16 -0
- package/dist/types/mapper/index.d.ts.map +1 -0
- package/dist/types/mapper/insert/InsertBuilder.d.ts +25 -0
- package/dist/types/mapper/insert/InsertBuilder.d.ts.map +1 -0
- package/dist/types/mapper/insert/InsertBuilderFactory.d.ts +13 -0
- package/dist/types/mapper/insert/InsertBuilderFactory.d.ts.map +1 -0
- package/dist/types/mapper/insert/Inserter.d.ts +20 -0
- package/dist/types/mapper/insert/Inserter.d.ts.map +1 -0
- package/dist/types/mapper/insert/SqlCreateInputProcessor.d.ts +33 -0
- package/dist/types/mapper/insert/SqlCreateInputProcessor.d.ts.map +1 -0
- package/dist/types/mapper/insert/index.d.ts +5 -0
- package/dist/types/mapper/insert/index.d.ts.map +1 -0
- package/dist/types/mapper/insert/relations/ManyHasManyCreateInputProcessor.d.ts +26 -0
- package/dist/types/mapper/insert/relations/ManyHasManyCreateInputProcessor.d.ts.map +1 -0
- package/dist/types/mapper/insert/relations/ManyHasOneCreateInputProcessor.d.ts +25 -0
- package/dist/types/mapper/insert/relations/ManyHasOneCreateInputProcessor.d.ts.map +1 -0
- package/dist/types/mapper/insert/relations/OneHasManyCreateInputProcessor.d.ts +28 -0
- package/dist/types/mapper/insert/relations/OneHasManyCreateInputProcessor.d.ts.map +1 -0
- package/dist/types/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.d.ts +31 -0
- package/dist/types/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.d.ts.map +1 -0
- package/dist/types/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.d.ts +26 -0
- package/dist/types/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.d.ts.map +1 -0
- package/dist/types/mapper/select/ConditionBuilder.d.ts +6 -0
- package/dist/types/mapper/select/ConditionBuilder.d.ts.map +1 -0
- package/dist/types/mapper/select/JoinBuilder.d.ts +9 -0
- package/dist/types/mapper/select/JoinBuilder.d.ts.map +1 -0
- package/dist/types/mapper/select/JoinVisitor.d.ts +21 -0
- package/dist/types/mapper/select/JoinVisitor.d.ts.map +1 -0
- package/dist/types/mapper/select/OrderByBuilder.d.ts +12 -0
- package/dist/types/mapper/select/OrderByBuilder.d.ts.map +1 -0
- package/dist/types/mapper/select/OrderByHelper.d.ts +8 -0
- package/dist/types/mapper/select/OrderByHelper.d.ts.map +1 -0
- package/dist/types/mapper/select/Path.d.ts +20 -0
- package/dist/types/mapper/select/Path.d.ts.map +1 -0
- package/dist/types/mapper/select/RelationFetcher.d.ts +53 -0
- package/dist/types/mapper/select/RelationFetcher.d.ts.map +1 -0
- package/dist/types/mapper/select/SelectBuilder.d.ts +36 -0
- package/dist/types/mapper/select/SelectBuilder.d.ts.map +1 -0
- package/dist/types/mapper/select/SelectBuilderFactory.d.ts +8 -0
- package/dist/types/mapper/select/SelectBuilderFactory.d.ts.map +1 -0
- package/dist/types/mapper/select/SelectExecutionHandler.d.ts +36 -0
- package/dist/types/mapper/select/SelectExecutionHandler.d.ts.map +1 -0
- package/dist/types/mapper/select/SelectHydrator.d.ts +28 -0
- package/dist/types/mapper/select/SelectHydrator.d.ts.map +1 -0
- package/dist/types/mapper/select/WhereBuilder.d.ts +29 -0
- package/dist/types/mapper/select/WhereBuilder.d.ts.map +1 -0
- package/dist/types/mapper/select/handlers/FieldsVisitor.d.ts +26 -0
- package/dist/types/mapper/select/handlers/FieldsVisitor.d.ts.map +1 -0
- package/dist/types/mapper/select/handlers/FieldsVisitorFactory.d.ts +17 -0
- package/dist/types/mapper/select/handlers/FieldsVisitorFactory.d.ts.map +1 -0
- package/dist/types/mapper/select/handlers/MetaHandler.d.ts +11 -0
- package/dist/types/mapper/select/handlers/MetaHandler.d.ts.map +1 -0
- package/dist/types/mapper/select/handlers/index.d.ts +4 -0
- package/dist/types/mapper/select/handlers/index.d.ts.map +1 -0
- package/dist/types/mapper/select/index.d.ts +14 -0
- package/dist/types/mapper/select/index.d.ts.map +1 -0
- package/dist/types/mapper/select/optimizer/ConditionOptimizer.d.ts +5 -0
- package/dist/types/mapper/select/optimizer/ConditionOptimizer.d.ts.map +1 -0
- package/dist/types/mapper/select/optimizer/WhereOptimizer.d.ts +24 -0
- package/dist/types/mapper/select/optimizer/WhereOptimizer.d.ts.map +1 -0
- package/dist/types/mapper/select/optimizer/WhereReplacer.d.ts +5 -0
- package/dist/types/mapper/select/optimizer/WhereReplacer.d.ts.map +1 -0
- package/dist/types/mapper/select/optimizer/helpers.d.ts +10 -0
- package/dist/types/mapper/select/optimizer/helpers.d.ts.map +1 -0
- package/dist/types/mapper/types.d.ts +89 -0
- package/dist/types/mapper/types.d.ts.map +1 -0
- package/dist/types/mapper/update/SqlUpdateInputProcessor.d.ts +29 -0
- package/dist/types/mapper/update/SqlUpdateInputProcessor.d.ts.map +1 -0
- package/dist/types/mapper/update/UpdateBuilder.d.ts +28 -0
- package/dist/types/mapper/update/UpdateBuilder.d.ts.map +1 -0
- package/dist/types/mapper/update/UpdateBuilderFactory.d.ts +13 -0
- package/dist/types/mapper/update/UpdateBuilderFactory.d.ts.map +1 -0
- package/dist/types/mapper/update/Updater.d.ts +14 -0
- package/dist/types/mapper/update/Updater.d.ts.map +1 -0
- package/dist/types/mapper/update/index.d.ts +5 -0
- package/dist/types/mapper/update/index.d.ts.map +1 -0
- package/dist/types/mapper/update/relations/ManyHasManyUpdateInputProcessor.d.ts +48 -0
- package/dist/types/mapper/update/relations/ManyHasManyUpdateInputProcessor.d.ts.map +1 -0
- package/dist/types/mapper/update/relations/ManyHasOneUpdateInputProcessor.d.ts +42 -0
- package/dist/types/mapper/update/relations/ManyHasOneUpdateInputProcessor.d.ts.map +1 -0
- package/dist/types/mapper/update/relations/OneHasManyUpdateInputProcessor.d.ts +48 -0
- package/dist/types/mapper/update/relations/OneHasManyUpdateInputProcessor.d.ts.map +1 -0
- package/dist/types/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.d.ts +38 -0
- package/dist/types/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.d.ts.map +1 -0
- package/dist/types/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.d.ts +42 -0
- package/dist/types/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.d.ts.map +1 -0
- package/dist/types/resolvers/GraphQlQueryAstFactory.d.ts +14 -0
- package/dist/types/resolvers/GraphQlQueryAstFactory.d.ts.map +1 -0
- package/dist/types/resolvers/MutationResolver.d.ts +43 -0
- package/dist/types/resolvers/MutationResolver.d.ts.map +1 -0
- package/dist/types/resolvers/ReadHelpers.d.ts +7 -0
- package/dist/types/resolvers/ReadHelpers.d.ts.map +1 -0
- package/dist/types/resolvers/ReadResolver.d.ts +15 -0
- package/dist/types/resolvers/ReadResolver.d.ts.map +1 -0
- package/dist/types/resolvers/RefreshViewResolver.d.ts +13 -0
- package/dist/types/resolvers/RefreshViewResolver.d.ts.map +1 -0
- package/dist/types/resolvers/ValidationResolver.d.ts +12 -0
- package/dist/types/resolvers/ValidationResolver.d.ts.map +1 -0
- package/dist/types/resolvers/index.d.ts +5 -0
- package/dist/types/resolvers/index.d.ts.map +1 -0
- package/dist/types/schema/ColumnTypeResolver.d.ts +18 -0
- package/dist/types/schema/ColumnTypeResolver.d.ts.map +1 -0
- package/dist/types/schema/ConditionTypeProvider.d.ts +12 -0
- package/dist/types/schema/ConditionTypeProvider.d.ts.map +1 -0
- package/dist/types/schema/CustomTypesProvider.d.ts +9 -0
- package/dist/types/schema/CustomTypesProvider.d.ts.map +1 -0
- package/dist/types/schema/EntityTypeProvider.d.ts +27 -0
- package/dist/types/schema/EntityTypeProvider.d.ts.map +1 -0
- package/dist/types/schema/EnumsProvider.d.ts +11 -0
- package/dist/types/schema/EnumsProvider.d.ts.map +1 -0
- package/dist/types/schema/FieldAccessVisitor.d.ts +10 -0
- package/dist/types/schema/FieldAccessVisitor.d.ts.map +1 -0
- package/dist/types/schema/GraphQlSchemaBuilder.d.ts +26 -0
- package/dist/types/schema/GraphQlSchemaBuilder.d.ts.map +1 -0
- package/dist/types/schema/GraphQlSchemaBuilderFactory.d.ts +103 -0
- package/dist/types/schema/GraphQlSchemaBuilderFactory.d.ts.map +1 -0
- package/dist/types/schema/MutationProvider.d.ts +28 -0
- package/dist/types/schema/MutationProvider.d.ts.map +1 -0
- package/dist/types/schema/OperationExtension.d.ts +18 -0
- package/dist/types/schema/OperationExtension.d.ts.map +1 -0
- package/dist/types/schema/OrderByTypeProvider.d.ts +14 -0
- package/dist/types/schema/OrderByTypeProvider.d.ts.map +1 -0
- package/dist/types/schema/PaginatedFieldConfigFactory.d.ts +13 -0
- package/dist/types/schema/PaginatedFieldConfigFactory.d.ts.map +1 -0
- package/dist/types/schema/QueryProvider.d.ts +23 -0
- package/dist/types/schema/QueryProvider.d.ts.map +1 -0
- package/dist/types/schema/RefreshViewMutationProvider.d.ts +11 -0
- package/dist/types/schema/RefreshViewMutationProvider.d.ts.map +1 -0
- package/dist/types/schema/ResultSchemaTypeProvider.d.ts +14 -0
- package/dist/types/schema/ResultSchemaTypeProvider.d.ts.map +1 -0
- package/dist/types/schema/ValidationQueriesProvider.d.ts +21 -0
- package/dist/types/schema/ValidationQueriesProvider.d.ts.map +1 -0
- package/dist/types/schema/WhereTypeProvider.d.ts +21 -0
- package/dist/types/schema/WhereTypeProvider.d.ts.map +1 -0
- package/dist/types/schema/entities/FieldArgsVisitor.d.ts +32 -0
- package/dist/types/schema/entities/FieldArgsVisitor.d.ts.map +1 -0
- package/dist/types/schema/entities/FieldTypeVisitor.d.ts +15 -0
- package/dist/types/schema/entities/FieldTypeVisitor.d.ts.map +1 -0
- package/dist/types/schema/entities/index.d.ts +3 -0
- package/dist/types/schema/entities/index.d.ts.map +1 -0
- package/dist/types/schema/index.d.ts +19 -0
- package/dist/types/schema/index.d.ts.map +1 -0
- package/dist/types/schema/mutations/ConnectOrCreateRelationInputProvider.d.ts +15 -0
- package/dist/types/schema/mutations/ConnectOrCreateRelationInputProvider.d.ts.map +1 -0
- package/dist/types/schema/mutations/CreateEntityInputFieldVisitor.d.ts +16 -0
- package/dist/types/schema/mutations/CreateEntityInputFieldVisitor.d.ts.map +1 -0
- package/dist/types/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.d.ts +15 -0
- package/dist/types/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.d.ts.map +1 -0
- package/dist/types/schema/mutations/CreateEntityRelationInputFieldVisitor.d.ts +20 -0
- package/dist/types/schema/mutations/CreateEntityRelationInputFieldVisitor.d.ts.map +1 -0
- package/dist/types/schema/mutations/CreateEntityRelationInputProvider.d.ts +12 -0
- package/dist/types/schema/mutations/CreateEntityRelationInputProvider.d.ts.map +1 -0
- package/dist/types/schema/mutations/EntityInputProvider.d.ts +19 -0
- package/dist/types/schema/mutations/EntityInputProvider.d.ts.map +1 -0
- package/dist/types/schema/mutations/UpdateEntityInputFieldVisitor.d.ts +21 -0
- package/dist/types/schema/mutations/UpdateEntityInputFieldVisitor.d.ts.map +1 -0
- package/dist/types/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.d.ts +15 -0
- package/dist/types/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.d.ts.map +1 -0
- package/dist/types/schema/mutations/UpdateEntityRelationInputFieldVisitor.d.ts +24 -0
- package/dist/types/schema/mutations/UpdateEntityRelationInputFieldVisitor.d.ts.map +1 -0
- package/dist/types/schema/mutations/UpdateEntityRelationInputProvider.d.ts +12 -0
- package/dist/types/schema/mutations/UpdateEntityRelationInputProvider.d.ts.map +1 -0
- package/dist/types/schema/mutations/index.d.ts +10 -0
- package/dist/types/schema/mutations/index.d.ts.map +1 -0
- package/dist/types/schema/utils.d.ts +4 -0
- package/dist/types/schema/utils.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/dist/types/types.d.ts +10 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/utils/Interface.d.ts +4 -0
- package/dist/types/utils/Interface.d.ts.map +1 -0
- package/dist/types/utils/Mutex.d.ts +8 -0
- package/dist/types/utils/Mutex.d.ts.map +1 -0
- package/dist/types/utils/ResolveInfoUtils.d.ts +6 -0
- package/dist/types/utils/ResolveInfoUtils.d.ts.map +1 -0
- package/dist/types/utils/accessor.d.ts +7 -0
- package/dist/types/utils/accessor.d.ts.map +1 -0
- package/dist/types/utils/assertNever.d.ts +2 -0
- package/dist/types/utils/assertNever.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +14 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/types/utils/isIt.d.ts +2 -0
- package/dist/types/utils/isIt.d.ts.map +1 -0
- package/dist/types/utils/object.d.ts +14 -0
- package/dist/types/utils/object.d.ts.map +1 -0
- package/dist/types/utils/paginationUtils.d.ts +12 -0
- package/dist/types/utils/paginationUtils.d.ts.map +1 -0
- package/dist/types/utils/promises.d.ts +3 -0
- package/dist/types/utils/promises.d.ts.map +1 -0
- package/dist/types/utils/singletonFactory.d.ts +2 -0
- package/dist/types/utils/singletonFactory.d.ts.map +1 -0
- package/dist/types/utils/strings.d.ts +3 -0
- package/dist/types/utils/strings.d.ts.map +1 -0
- package/dist/types/utils/tuple.d.ts +2 -0
- package/dist/types/utils/tuple.d.ts.map +1 -0
- package/dist/types/utils/uniqueWhereFields.d.ts +5 -0
- package/dist/types/utils/uniqueWhereFields.d.ts.map +1 -0
- package/dist/types/utils/viewComputedId.d.ts +2 -0
- package/dist/types/utils/viewComputedId.d.ts.map +1 -0
- package/package.json +16 -16
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const schema = require("@contember/schema");
|
|
4
|
+
const schemaUtils = require("@contember/schema-utils");
|
|
5
|
+
class PredicatesInjector {
|
|
6
|
+
constructor(schema2, predicateFactory) {
|
|
7
|
+
this.schema = schema2;
|
|
8
|
+
this.predicateFactory = predicateFactory;
|
|
9
|
+
}
|
|
10
|
+
inject(entity, where, relationContext, ancestorPath) {
|
|
11
|
+
const restrictedWhere = this.injectToWhere(where, entity, true, relationContext, false, ancestorPath ?? []);
|
|
12
|
+
return this.createWhere(entity, void 0, restrictedWhere, relationContext, false, ancestorPath ?? []);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Finds an ancestor in the path that matches the given relation as a back-reference.
|
|
16
|
+
* A match occurs when:
|
|
17
|
+
* 1. The relation we're traversing has the same name as the inverse (targetRelation) of a relation in the ancestor path
|
|
18
|
+
* 2. AND the entity where our relation is defined matches the targetEntity in the path
|
|
19
|
+
* (to prevent false positives when different entities have relations with the same name)
|
|
20
|
+
*/
|
|
21
|
+
findBackReferencedAncestor(ancestorPath, relationName, relationSourceEntityName) {
|
|
22
|
+
return ancestorPath.find(
|
|
23
|
+
(ctx) => ctx.targetRelation?.name === relationName && ctx.targetEntity.name === relationSourceEntityName
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
createWhere(entity, fieldNames, where, relationContext, isBackReferenceContext, ancestorPath) {
|
|
27
|
+
const shouldSimplify = isBackReferenceContext === true && ancestorPath !== void 0 && relationContext !== void 0 && this.findBackReferencedAncestor(ancestorPath, relationContext.relation.name, relationContext.entity.name) !== void 0;
|
|
28
|
+
let predicatesWhere;
|
|
29
|
+
if (shouldSimplify) {
|
|
30
|
+
predicatesWhere = { [entity.primary]: { always: true } };
|
|
31
|
+
} else {
|
|
32
|
+
const rawPredicate = this.predicateFactory.create(entity, schema.Acl.Operation.read, fieldNames, relationContext);
|
|
33
|
+
predicatesWhere = this.injectPredicatesToPredicate(
|
|
34
|
+
rawPredicate,
|
|
35
|
+
entity,
|
|
36
|
+
isBackReferenceContext ?? false,
|
|
37
|
+
ancestorPath ?? []
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
const and = [where, predicatesWhere].filter((it) => Object.keys(it).length > 0);
|
|
41
|
+
if (and.length === 0) {
|
|
42
|
+
return {};
|
|
43
|
+
}
|
|
44
|
+
if (and.length === 1) {
|
|
45
|
+
return and[0];
|
|
46
|
+
}
|
|
47
|
+
return { and };
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Processes a predicate and injects nested entity predicates for any relation traversals.
|
|
51
|
+
* This ensures that when a predicate like { department: { company: { name: 'Acme' } } }
|
|
52
|
+
* is used, the predicates of Department and Company are also applied.
|
|
53
|
+
*/
|
|
54
|
+
injectPredicatesToPredicate(where, entity, isBackReferenceContext, ancestorPath) {
|
|
55
|
+
const resultWhere = {};
|
|
56
|
+
if (where.and) {
|
|
57
|
+
resultWhere.and = where.and.filter((it) => !!it).map((it) => this.injectPredicatesToPredicate(it, entity, isBackReferenceContext, ancestorPath));
|
|
58
|
+
}
|
|
59
|
+
if (where.or) {
|
|
60
|
+
resultWhere.or = where.or.filter((it) => !!it).map((it) => this.injectPredicatesToPredicate(it, entity, isBackReferenceContext, ancestorPath));
|
|
61
|
+
}
|
|
62
|
+
if (where.not) {
|
|
63
|
+
resultWhere.not = this.injectPredicatesToPredicate(where.not, entity, isBackReferenceContext, ancestorPath);
|
|
64
|
+
}
|
|
65
|
+
const fields = Object.keys(where).filter((it) => !["and", "or", "not"].includes(it));
|
|
66
|
+
for (const field of fields) {
|
|
67
|
+
resultWhere[field] = schemaUtils.acceptFieldVisitor(this.schema, entity, field, {
|
|
68
|
+
visitColumn: () => where[field],
|
|
69
|
+
visitRelation: (context) => {
|
|
70
|
+
const relationWhere = where[field];
|
|
71
|
+
if (relationWhere === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
const isBackReference = this.findBackReferencedAncestor(
|
|
75
|
+
ancestorPath,
|
|
76
|
+
context.relation.name,
|
|
77
|
+
context.entity.name
|
|
78
|
+
) !== void 0;
|
|
79
|
+
const nestedIsBackReferenceContext = isBackReference || isBackReferenceContext;
|
|
80
|
+
const nestedAncestorPath = [...ancestorPath, context];
|
|
81
|
+
const processedNestedWhere = this.injectPredicatesToPredicate(
|
|
82
|
+
relationWhere,
|
|
83
|
+
context.targetEntity,
|
|
84
|
+
nestedIsBackReferenceContext,
|
|
85
|
+
nestedAncestorPath
|
|
86
|
+
);
|
|
87
|
+
const shouldSimplifyNested = nestedIsBackReferenceContext && this.findBackReferencedAncestor(nestedAncestorPath, context.relation.name, context.entity.name) !== void 0;
|
|
88
|
+
const targetPredicate = shouldSimplifyNested ? { [context.targetEntity.primary]: { always: true } } : this.predicateFactory.create(context.targetEntity, schema.Acl.Operation.read, void 0, context);
|
|
89
|
+
const primaryKey = context.targetEntity.primary;
|
|
90
|
+
const nestedIsAlwaysTrue = Object.keys(processedNestedWhere).length === 1 && processedNestedWhere[primaryKey] !== void 0 && processedNestedWhere[primaryKey]?.always === true;
|
|
91
|
+
const targetIsAlwaysTrue = Object.keys(targetPredicate).length === 1 && targetPredicate[primaryKey] !== void 0 && targetPredicate[primaryKey]?.always === true;
|
|
92
|
+
if (nestedIsAlwaysTrue && targetIsAlwaysTrue) {
|
|
93
|
+
return processedNestedWhere;
|
|
94
|
+
}
|
|
95
|
+
const parts = [processedNestedWhere, targetPredicate].filter((it) => Object.keys(it).length > 0);
|
|
96
|
+
if (parts.length === 0) {
|
|
97
|
+
return {};
|
|
98
|
+
}
|
|
99
|
+
if (parts.length === 1) {
|
|
100
|
+
return parts[0];
|
|
101
|
+
}
|
|
102
|
+
return { and: parts };
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
return resultWhere;
|
|
107
|
+
}
|
|
108
|
+
injectToWhere(where, entity, isRoot, relationContext, isBackReferenceContext, ancestorPath) {
|
|
109
|
+
const resultWhere = {};
|
|
110
|
+
if (where.and) {
|
|
111
|
+
resultWhere.and = where.and.filter((it) => !!it).map(
|
|
112
|
+
(it) => this.injectToWhere(it, entity, isRoot, relationContext, isBackReferenceContext, ancestorPath)
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
if (where.or) {
|
|
116
|
+
resultWhere.or = where.or.filter((it) => !!it).map(
|
|
117
|
+
(it) => this.injectToWhere(it, entity, isRoot, relationContext, isBackReferenceContext, ancestorPath)
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
if (where.not) {
|
|
121
|
+
resultWhere.not = this.injectToWhere(where.not, entity, isRoot, relationContext, isBackReferenceContext, ancestorPath);
|
|
122
|
+
}
|
|
123
|
+
const fields = Object.keys(where).filter((it) => !["and", "or", "not"].includes(it));
|
|
124
|
+
if (fields.length === 0) {
|
|
125
|
+
return resultWhere;
|
|
126
|
+
}
|
|
127
|
+
for (let field of fields) {
|
|
128
|
+
resultWhere[field] = schemaUtils.acceptFieldVisitor(this.schema, entity, field, {
|
|
129
|
+
visitColumn: () => where[field],
|
|
130
|
+
visitRelation: (context) => {
|
|
131
|
+
const relationWhere = where[field];
|
|
132
|
+
if (relationWhere === null) {
|
|
133
|
+
return null;
|
|
134
|
+
}
|
|
135
|
+
const isBackReference = this.findBackReferencedAncestor(ancestorPath, context.relation.name, context.entity.name) !== void 0;
|
|
136
|
+
const nestedIsBackReferenceContext = isBackReference || isBackReferenceContext;
|
|
137
|
+
const nestedAncestorPath = [...ancestorPath, context];
|
|
138
|
+
return this.injectToWhere(relationWhere, context.targetEntity, false, context, nestedIsBackReferenceContext, nestedAncestorPath);
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
const fieldsForPredicate = !isRoot ? fields : fields.filter((it) => this.predicateFactory.shouldApplyCellLevelPredicate(entity, schema.Acl.Operation.read, it));
|
|
143
|
+
return this.createWhere(entity, fieldsForPredicate, resultWhere, relationContext, isBackReferenceContext, ancestorPath);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
exports.PredicatesInjector = PredicatesInjector;
|
|
147
|
+
//# sourceMappingURL=PredicatesInjector.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PredicatesInjector.cjs","sources":["../../../../../packages/engine-content-api/src/acl/PredicatesInjector.ts"],"sourcesContent":["import { Acl, Input, Model, Writable } from '@contember/schema'\nimport { acceptFieldVisitor } from '@contember/schema-utils'\nimport { PredicateFactory } from './PredicateFactory'\n\nexport class PredicatesInjector {\n\tconstructor(private readonly schema: Model.Schema, private readonly predicateFactory: PredicateFactory) {}\n\n\tpublic inject(\n\t\tentity: Model.Entity,\n\t\twhere: Input.OptionalWhere,\n\t\trelationContext?: Model.AnyRelationContext,\n\t\tancestorPath?: readonly Model.AnyRelationContext[],\n\t): Input.OptionalWhere {\n\t\tconst restrictedWhere = this.injectToWhere(where, entity, true, relationContext, false, ancestorPath ?? [])\n\t\treturn this.createWhere(entity, undefined, restrictedWhere, relationContext, false, ancestorPath ?? [])\n\t}\n\n\t/**\n\t * Finds an ancestor in the path that matches the given relation as a back-reference.\n\t * A match occurs when:\n\t * 1. The relation we're traversing has the same name as the inverse (targetRelation) of a relation in the ancestor path\n\t * 2. AND the entity where our relation is defined matches the targetEntity in the path\n\t * (to prevent false positives when different entities have relations with the same name)\n\t */\n\tprivate findBackReferencedAncestor(\n\t\tancestorPath: readonly Model.AnyRelationContext[],\n\t\trelationName: string,\n\t\trelationSourceEntityName: string,\n\t): Model.AnyRelationContext | undefined {\n\t\treturn ancestorPath.find(ctx =>\n\t\t\tctx.targetRelation?.name === relationName\n\t\t\t&& ctx.targetEntity.name === relationSourceEntityName\n\t\t)\n\t}\n\n\tprivate createWhere(\n\t\tentity: Model.Entity,\n\t\tfieldNames: string[] | undefined,\n\t\twhere: Input.OptionalWhere,\n\t\trelationContext?: Model.AnyRelationContext,\n\t\tisBackReferenceContext?: boolean,\n\t\tancestorPath?: readonly Model.AnyRelationContext[],\n\t): Input.OptionalWhere {\n\t\t// Simplify predicates when:\n\t\t// 1. We're in a back-reference context (inside a filter that traverses back)\n\t\t// 2. AND the relation we traversed to get here corresponds to a relation in our query path\n\t\t// This ensures we only simplify when the traversed relation actually corresponds\n\t\t// to a relation in our query path (not just any relation to the same entity type)\n\t\tconst shouldSimplify = isBackReferenceContext === true\n\t\t\t&& ancestorPath !== undefined\n\t\t\t&& relationContext !== undefined\n\t\t\t&& this.findBackReferencedAncestor(ancestorPath, relationContext.relation.name, relationContext.entity.name) !== undefined\n\n\t\tlet predicatesWhere: Input.OptionalWhere\n\t\tif (shouldSimplify) {\n\t\t\tpredicatesWhere = { [entity.primary]: { always: true } }\n\t\t} else {\n\t\t\tconst rawPredicate = this.predicateFactory.create(entity, Acl.Operation.read, fieldNames, relationContext)\n\t\t\t// Process the predicate to inject nested entity predicates\n\t\t\tpredicatesWhere = this.injectPredicatesToPredicate(\n\t\t\t\trawPredicate,\n\t\t\t\tentity,\n\t\t\t\tisBackReferenceContext ?? false,\n\t\t\t\tancestorPath ?? [],\n\t\t\t)\n\t\t}\n\n\t\tconst and = [where, predicatesWhere].filter(it => Object.keys(it).length > 0)\n\t\tif (and.length === 0) {\n\t\t\treturn {}\n\t\t}\n\t\tif (and.length === 1) {\n\t\t\treturn and[0]\n\t\t}\n\t\treturn { and: and }\n\t}\n\n\t/**\n\t * Processes a predicate and injects nested entity predicates for any relation traversals.\n\t * This ensures that when a predicate like { department: { company: { name: 'Acme' } } }\n\t * is used, the predicates of Department and Company are also applied.\n\t */\n\tprivate injectPredicatesToPredicate(\n\t\twhere: Input.OptionalWhere,\n\t\tentity: Model.Entity,\n\t\tisBackReferenceContext: boolean,\n\t\tancestorPath: readonly Model.AnyRelationContext[],\n\t): Input.OptionalWhere {\n\t\tconst resultWhere: Writable<Input.OptionalWhere> = {}\n\n\t\tif (where.and) {\n\t\t\tresultWhere.and = where.and\n\t\t\t\t.filter((it): it is Input.Where => !!it)\n\t\t\t\t.map(it => this.injectPredicatesToPredicate(it, entity, isBackReferenceContext, ancestorPath))\n\t\t}\n\t\tif (where.or) {\n\t\t\tresultWhere.or = where.or\n\t\t\t\t.filter((it): it is Input.Where => !!it)\n\t\t\t\t.map(it => this.injectPredicatesToPredicate(it, entity, isBackReferenceContext, ancestorPath))\n\t\t}\n\t\tif (where.not) {\n\t\t\tresultWhere.not = this.injectPredicatesToPredicate(where.not, entity, isBackReferenceContext, ancestorPath)\n\t\t}\n\n\t\tconst fields = Object.keys(where).filter(it => !['and', 'or', 'not'].includes(it))\n\n\t\tfor (const field of fields) {\n\t\t\tresultWhere[field] = acceptFieldVisitor(this.schema, entity, field, {\n\t\t\t\tvisitColumn: () => where[field],\n\t\t\t\tvisitRelation: context => {\n\t\t\t\t\tconst relationWhere = where[field] as Input.OptionalWhere | null\n\t\t\t\t\tif (relationWhere === null) {\n\t\t\t\t\t\treturn null\n\t\t\t\t\t}\n\n\t\t\t\t\t// Check if this relation is a back-reference to somewhere in our ancestor path\n\t\t\t\t\tconst isBackReference = this.findBackReferencedAncestor(\n\t\t\t\t\t\tancestorPath,\n\t\t\t\t\t\tcontext.relation.name,\n\t\t\t\t\t\tcontext.entity.name,\n\t\t\t\t\t) !== undefined\n\t\t\t\t\tconst nestedIsBackReferenceContext = isBackReference || isBackReferenceContext\n\t\t\t\t\tconst nestedAncestorPath: readonly Model.AnyRelationContext[] = [...ancestorPath, context]\n\n\t\t\t\t\t// Recursively process the nested where (always do this to handle deeper nesting)\n\t\t\t\t\tconst processedNestedWhere = this.injectPredicatesToPredicate(\n\t\t\t\t\t\trelationWhere,\n\t\t\t\t\t\tcontext.targetEntity,\n\t\t\t\t\t\tnestedIsBackReferenceContext,\n\t\t\t\t\t\tnestedAncestorPath,\n\t\t\t\t\t)\n\n\t\t\t\t\t// Check if we should simplify the target entity's predicate\n\t\t\t\t\tconst shouldSimplifyNested = nestedIsBackReferenceContext\n\t\t\t\t\t\t&& this.findBackReferencedAncestor(nestedAncestorPath, context.relation.name, context.entity.name) !== undefined\n\n\t\t\t\t\t// Get target entity's predicate (simplified if back-reference)\n\t\t\t\t\tconst targetPredicate = shouldSimplifyNested\n\t\t\t\t\t\t? { [context.targetEntity.primary]: { always: true } }\n\t\t\t\t\t\t: this.predicateFactory.create(context.targetEntity, Acl.Operation.read, undefined, context)\n\n\t\t\t\t\t// Optimization: avoid duplicate { id: always } when both are simplified\n\t\t\t\t\tconst primaryKey = context.targetEntity.primary\n\t\t\t\t\tconst nestedIsAlwaysTrue = Object.keys(processedNestedWhere).length === 1\n\t\t\t\t\t\t&& (processedNestedWhere as Record<string, unknown>)[primaryKey] !== undefined\n\t\t\t\t\t\t&& (processedNestedWhere as Record<string, Record<string, unknown>>)[primaryKey]?.always === true\n\t\t\t\t\tconst targetIsAlwaysTrue = Object.keys(targetPredicate).length === 1\n\t\t\t\t\t\t&& (targetPredicate as Record<string, unknown>)[primaryKey] !== undefined\n\t\t\t\t\t\t&& (targetPredicate as Record<string, Record<string, unknown>>)[primaryKey]?.always === true\n\n\t\t\t\t\tif (nestedIsAlwaysTrue && targetIsAlwaysTrue) {\n\t\t\t\t\t\treturn processedNestedWhere\n\t\t\t\t\t}\n\n\t\t\t\t\t// Combine the processed nested where with target entity's predicate\n\t\t\t\t\tconst parts = [processedNestedWhere, targetPredicate].filter(it => Object.keys(it).length > 0)\n\t\t\t\t\tif (parts.length === 0) {\n\t\t\t\t\t\treturn {}\n\t\t\t\t\t}\n\t\t\t\t\tif (parts.length === 1) {\n\t\t\t\t\t\treturn parts[0]\n\t\t\t\t\t}\n\t\t\t\t\treturn { and: parts }\n\t\t\t\t},\n\t\t\t})\n\t\t}\n\n\t\treturn resultWhere\n\t}\n\n\tprivate injectToWhere(\n\t\twhere: Input.OptionalWhere,\n\t\tentity: Model.Entity,\n\t\tisRoot: boolean,\n\t\trelationContext: Model.AnyRelationContext | undefined,\n\t\tisBackReferenceContext: boolean,\n\t\tancestorPath: readonly Model.AnyRelationContext[],\n\t): Input.OptionalWhere {\n\t\tconst resultWhere: Writable<Input.OptionalWhere> = {}\n\t\tif (where.and) {\n\t\t\tresultWhere.and = where.and.filter((it): it is Input.Where => !!it).map(it =>\n\t\t\t\tthis.injectToWhere(it, entity, isRoot, relationContext, isBackReferenceContext, ancestorPath)\n\t\t\t)\n\t\t}\n\t\tif (where.or) {\n\t\t\tresultWhere.or = where.or.filter((it): it is Input.Where => !!it).map(it =>\n\t\t\t\tthis.injectToWhere(it, entity, isRoot, relationContext, isBackReferenceContext, ancestorPath)\n\t\t\t)\n\t\t}\n\t\tif (where.not) {\n\t\t\tresultWhere.not = this.injectToWhere(where.not, entity, isRoot, relationContext, isBackReferenceContext, ancestorPath)\n\t\t}\n\n\t\tconst fields = Object.keys(where).filter(it => !['and', 'or', 'not'].includes(it))\n\n\t\tif (fields.length === 0) {\n\t\t\treturn resultWhere\n\t\t}\n\t\tfor (let field of fields) {\n\t\t\tresultWhere[field] = acceptFieldVisitor(this.schema, entity, field, {\n\t\t\t\tvisitColumn: () => where[field],\n\t\t\t\tvisitRelation: context => {\n\t\t\t\t\tconst relationWhere = where[field] as Input.OptionalWhere | null\n\t\t\t\t\tif (relationWhere === null) {\n\t\t\t\t\t\treturn null\n\t\t\t\t\t}\n\t\t\t\t\t// Check if this relation is a back-reference to somewhere in our ancestor path\n\t\t\t\t\tconst isBackReference = this.findBackReferencedAncestor(ancestorPath, context.relation.name, context.entity.name) !== undefined\n\t\t\t\t\t// Once we enter a back-reference context, stay in it for nested relations\n\t\t\t\t\tconst nestedIsBackReferenceContext = isBackReference || isBackReferenceContext\n\t\t\t\t\t// Build extended ancestor path for nested traversal\n\t\t\t\t\tconst nestedAncestorPath: Model.AnyRelationContext[] = [...ancestorPath, context]\n\t\t\t\t\treturn this.injectToWhere(relationWhere, context.targetEntity, false, context, nestedIsBackReferenceContext, nestedAncestorPath)\n\t\t\t\t},\n\t\t\t})\n\t\t}\n\t\tconst fieldsForPredicate = !isRoot\n\t\t\t? fields\n\t\t\t: fields.filter(it => this.predicateFactory.shouldApplyCellLevelPredicate(entity, Acl.Operation.read, it))\n\n\t\treturn this.createWhere(entity, fieldsForPredicate, resultWhere, relationContext, isBackReferenceContext, ancestorPath)\n\t}\n}\n"],"names":["schema","Acl","acceptFieldVisitor"],"mappings":";;;;AAIO,MAAM,mBAAmB;AAAA,EAC/B,YAA6BA,SAAuC,kBAAoC;AAA3E,SAAA,SAAAA;AAAuC,SAAA,mBAAA;AAAA,EAAqC;AAAA,EAElG,OACN,QACA,OACA,iBACA,cACsB;AACtB,UAAM,kBAAkB,KAAK,cAAc,OAAO,QAAQ,MAAM,iBAAiB,OAAO,gBAAgB,EAAE;AAC1G,WAAO,KAAK,YAAY,QAAQ,QAAW,iBAAiB,iBAAiB,OAAO,gBAAgB,EAAE;AAAA,EACvG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASQ,2BACP,cACA,cACA,0BACuC;AACvC,WAAO,aAAa;AAAA,MAAK,SACxB,IAAI,gBAAgB,SAAS,gBAC1B,IAAI,aAAa,SAAS;AAAA,IAAA;AAAA,EAE/B;AAAA,EAEQ,YACP,QACA,YACA,OACA,iBACA,wBACA,cACsB;AAMtB,UAAM,iBAAiB,2BAA2B,QAC9C,iBAAiB,UACjB,oBAAoB,UACpB,KAAK,2BAA2B,cAAc,gBAAgB,SAAS,MAAM,gBAAgB,OAAO,IAAI,MAAM;AAElH,QAAI;AACJ,QAAI,gBAAgB;AACnB,wBAAkB,EAAE,CAAC,OAAO,OAAO,GAAG,EAAE,QAAQ,OAAK;AAAA,IACtD,OAAO;AACN,YAAM,eAAe,KAAK,iBAAiB,OAAO,QAAQC,OAAAA,IAAI,UAAU,MAAM,YAAY,eAAe;AAEzG,wBAAkB,KAAK;AAAA,QACtB;AAAA,QACA;AAAA,QACA,0BAA0B;AAAA,QAC1B,gBAAgB,CAAA;AAAA,MAAC;AAAA,IAEnB;AAEA,UAAM,MAAM,CAAC,OAAO,eAAe,EAAE,OAAO,CAAA,OAAM,OAAO,KAAK,EAAE,EAAE,SAAS,CAAC;AAC5E,QAAI,IAAI,WAAW,GAAG;AACrB,aAAO,CAAA;AAAA,IACR;AACA,QAAI,IAAI,WAAW,GAAG;AACrB,aAAO,IAAI,CAAC;AAAA,IACb;AACA,WAAO,EAAE,IAAA;AAAA,EACV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOQ,4BACP,OACA,QACA,wBACA,cACsB;AACtB,UAAM,cAA6C,CAAA;AAEnD,QAAI,MAAM,KAAK;AACd,kBAAY,MAAM,MAAM,IACtB,OAAO,CAAC,OAA0B,CAAC,CAAC,EAAE,EACtC,IAAI,QAAM,KAAK,4BAA4B,IAAI,QAAQ,wBAAwB,YAAY,CAAC;AAAA,IAC/F;AACA,QAAI,MAAM,IAAI;AACb,kBAAY,KAAK,MAAM,GACrB,OAAO,CAAC,OAA0B,CAAC,CAAC,EAAE,EACtC,IAAI,QAAM,KAAK,4BAA4B,IAAI,QAAQ,wBAAwB,YAAY,CAAC;AAAA,IAC/F;AACA,QAAI,MAAM,KAAK;AACd,kBAAY,MAAM,KAAK,4BAA4B,MAAM,KAAK,QAAQ,wBAAwB,YAAY;AAAA,IAC3G;AAEA,UAAM,SAAS,OAAO,KAAK,KAAK,EAAE,OAAO,CAAA,OAAM,CAAC,CAAC,OAAO,MAAM,KAAK,EAAE,SAAS,EAAE,CAAC;AAEjF,eAAW,SAAS,QAAQ;AAC3B,kBAAY,KAAK,IAAIC,YAAAA,mBAAmB,KAAK,QAAQ,QAAQ,OAAO;AAAA,QACnE,aAAa,MAAM,MAAM,KAAK;AAAA,QAC9B,eAAe,CAAA,YAAW;AACzB,gBAAM,gBAAgB,MAAM,KAAK;AACjC,cAAI,kBAAkB,MAAM;AAC3B,mBAAO;AAAA,UACR;AAGA,gBAAM,kBAAkB,KAAK;AAAA,YAC5B;AAAA,YACA,QAAQ,SAAS;AAAA,YACjB,QAAQ,OAAO;AAAA,UAAA,MACV;AACN,gBAAM,+BAA+B,mBAAmB;AACxD,gBAAM,qBAA0D,CAAC,GAAG,cAAc,OAAO;AAGzF,gBAAM,uBAAuB,KAAK;AAAA,YACjC;AAAA,YACA,QAAQ;AAAA,YACR;AAAA,YACA;AAAA,UAAA;AAID,gBAAM,uBAAuB,gCACzB,KAAK,2BAA2B,oBAAoB,QAAQ,SAAS,MAAM,QAAQ,OAAO,IAAI,MAAM;AAGxG,gBAAM,kBAAkB,uBACrB,EAAE,CAAC,QAAQ,aAAa,OAAO,GAAG,EAAE,QAAQ,KAAA,MAC5C,KAAK,iBAAiB,OAAO,QAAQ,cAAcD,OAAAA,IAAI,UAAU,MAAM,QAAW,OAAO;AAG5F,gBAAM,aAAa,QAAQ,aAAa;AACxC,gBAAM,qBAAqB,OAAO,KAAK,oBAAoB,EAAE,WAAW,KACnE,qBAAiD,UAAU,MAAM,UACjE,qBAAiE,UAAU,GAAG,WAAW;AAC9F,gBAAM,qBAAqB,OAAO,KAAK,eAAe,EAAE,WAAW,KAC9D,gBAA4C,UAAU,MAAM,UAC5D,gBAA4D,UAAU,GAAG,WAAW;AAEzF,cAAI,sBAAsB,oBAAoB;AAC7C,mBAAO;AAAA,UACR;AAGA,gBAAM,QAAQ,CAAC,sBAAsB,eAAe,EAAE,OAAO,CAAA,OAAM,OAAO,KAAK,EAAE,EAAE,SAAS,CAAC;AAC7F,cAAI,MAAM,WAAW,GAAG;AACvB,mBAAO,CAAA;AAAA,UACR;AACA,cAAI,MAAM,WAAW,GAAG;AACvB,mBAAO,MAAM,CAAC;AAAA,UACf;AACA,iBAAO,EAAE,KAAK,MAAA;AAAA,QACf;AAAA,MAAA,CACA;AAAA,IACF;AAEA,WAAO;AAAA,EACR;AAAA,EAEQ,cACP,OACA,QACA,QACA,iBACA,wBACA,cACsB;AACtB,UAAM,cAA6C,CAAA;AACnD,QAAI,MAAM,KAAK;AACd,kBAAY,MAAM,MAAM,IAAI,OAAO,CAAC,OAA0B,CAAC,CAAC,EAAE,EAAE;AAAA,QAAI,CAAA,OACvE,KAAK,cAAc,IAAI,QAAQ,QAAQ,iBAAiB,wBAAwB,YAAY;AAAA,MAAA;AAAA,IAE9F;AACA,QAAI,MAAM,IAAI;AACb,kBAAY,KAAK,MAAM,GAAG,OAAO,CAAC,OAA0B,CAAC,CAAC,EAAE,EAAE;AAAA,QAAI,CAAA,OACrE,KAAK,cAAc,IAAI,QAAQ,QAAQ,iBAAiB,wBAAwB,YAAY;AAAA,MAAA;AAAA,IAE9F;AACA,QAAI,MAAM,KAAK;AACd,kBAAY,MAAM,KAAK,cAAc,MAAM,KAAK,QAAQ,QAAQ,iBAAiB,wBAAwB,YAAY;AAAA,IACtH;AAEA,UAAM,SAAS,OAAO,KAAK,KAAK,EAAE,OAAO,CAAA,OAAM,CAAC,CAAC,OAAO,MAAM,KAAK,EAAE,SAAS,EAAE,CAAC;AAEjF,QAAI,OAAO,WAAW,GAAG;AACxB,aAAO;AAAA,IACR;AACA,aAAS,SAAS,QAAQ;AACzB,kBAAY,KAAK,IAAIC,YAAAA,mBAAmB,KAAK,QAAQ,QAAQ,OAAO;AAAA,QACnE,aAAa,MAAM,MAAM,KAAK;AAAA,QAC9B,eAAe,CAAA,YAAW;AACzB,gBAAM,gBAAgB,MAAM,KAAK;AACjC,cAAI,kBAAkB,MAAM;AAC3B,mBAAO;AAAA,UACR;AAEA,gBAAM,kBAAkB,KAAK,2BAA2B,cAAc,QAAQ,SAAS,MAAM,QAAQ,OAAO,IAAI,MAAM;AAEtH,gBAAM,+BAA+B,mBAAmB;AAExD,gBAAM,qBAAiD,CAAC,GAAG,cAAc,OAAO;AAChF,iBAAO,KAAK,cAAc,eAAe,QAAQ,cAAc,OAAO,SAAS,8BAA8B,kBAAkB;AAAA,QAChI;AAAA,MAAA,CACA;AAAA,IACF;AACA,UAAM,qBAAqB,CAAC,SACzB,SACA,OAAO,OAAO,CAAA,OAAM,KAAK,iBAAiB,8BAA8B,QAAQD,OAAAA,IAAI,UAAU,MAAM,EAAE,CAAC;AAE1G,WAAO,KAAK,YAAY,QAAQ,oBAAoB,aAAa,iBAAiB,wBAAwB,YAAY;AAAA,EACvH;AACD;;"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { Acl } from "@contember/schema";
|
|
2
|
+
import { acceptFieldVisitor } from "@contember/schema-utils";
|
|
3
|
+
class PredicatesInjector {
|
|
4
|
+
constructor(schema, predicateFactory) {
|
|
5
|
+
this.schema = schema;
|
|
6
|
+
this.predicateFactory = predicateFactory;
|
|
7
|
+
}
|
|
8
|
+
inject(entity, where, relationContext, ancestorPath) {
|
|
9
|
+
const restrictedWhere = this.injectToWhere(where, entity, true, relationContext, false, ancestorPath ?? []);
|
|
10
|
+
return this.createWhere(entity, void 0, restrictedWhere, relationContext, false, ancestorPath ?? []);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Finds an ancestor in the path that matches the given relation as a back-reference.
|
|
14
|
+
* A match occurs when:
|
|
15
|
+
* 1. The relation we're traversing has the same name as the inverse (targetRelation) of a relation in the ancestor path
|
|
16
|
+
* 2. AND the entity where our relation is defined matches the targetEntity in the path
|
|
17
|
+
* (to prevent false positives when different entities have relations with the same name)
|
|
18
|
+
*/
|
|
19
|
+
findBackReferencedAncestor(ancestorPath, relationName, relationSourceEntityName) {
|
|
20
|
+
return ancestorPath.find(
|
|
21
|
+
(ctx) => ctx.targetRelation?.name === relationName && ctx.targetEntity.name === relationSourceEntityName
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
createWhere(entity, fieldNames, where, relationContext, isBackReferenceContext, ancestorPath) {
|
|
25
|
+
const shouldSimplify = isBackReferenceContext === true && ancestorPath !== void 0 && relationContext !== void 0 && this.findBackReferencedAncestor(ancestorPath, relationContext.relation.name, relationContext.entity.name) !== void 0;
|
|
26
|
+
let predicatesWhere;
|
|
27
|
+
if (shouldSimplify) {
|
|
28
|
+
predicatesWhere = { [entity.primary]: { always: true } };
|
|
29
|
+
} else {
|
|
30
|
+
const rawPredicate = this.predicateFactory.create(entity, Acl.Operation.read, fieldNames, relationContext);
|
|
31
|
+
predicatesWhere = this.injectPredicatesToPredicate(
|
|
32
|
+
rawPredicate,
|
|
33
|
+
entity,
|
|
34
|
+
isBackReferenceContext ?? false,
|
|
35
|
+
ancestorPath ?? []
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
const and = [where, predicatesWhere].filter((it) => Object.keys(it).length > 0);
|
|
39
|
+
if (and.length === 0) {
|
|
40
|
+
return {};
|
|
41
|
+
}
|
|
42
|
+
if (and.length === 1) {
|
|
43
|
+
return and[0];
|
|
44
|
+
}
|
|
45
|
+
return { and };
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Processes a predicate and injects nested entity predicates for any relation traversals.
|
|
49
|
+
* This ensures that when a predicate like { department: { company: { name: 'Acme' } } }
|
|
50
|
+
* is used, the predicates of Department and Company are also applied.
|
|
51
|
+
*/
|
|
52
|
+
injectPredicatesToPredicate(where, entity, isBackReferenceContext, ancestorPath) {
|
|
53
|
+
const resultWhere = {};
|
|
54
|
+
if (where.and) {
|
|
55
|
+
resultWhere.and = where.and.filter((it) => !!it).map((it) => this.injectPredicatesToPredicate(it, entity, isBackReferenceContext, ancestorPath));
|
|
56
|
+
}
|
|
57
|
+
if (where.or) {
|
|
58
|
+
resultWhere.or = where.or.filter((it) => !!it).map((it) => this.injectPredicatesToPredicate(it, entity, isBackReferenceContext, ancestorPath));
|
|
59
|
+
}
|
|
60
|
+
if (where.not) {
|
|
61
|
+
resultWhere.not = this.injectPredicatesToPredicate(where.not, entity, isBackReferenceContext, ancestorPath);
|
|
62
|
+
}
|
|
63
|
+
const fields = Object.keys(where).filter((it) => !["and", "or", "not"].includes(it));
|
|
64
|
+
for (const field of fields) {
|
|
65
|
+
resultWhere[field] = acceptFieldVisitor(this.schema, entity, field, {
|
|
66
|
+
visitColumn: () => where[field],
|
|
67
|
+
visitRelation: (context) => {
|
|
68
|
+
const relationWhere = where[field];
|
|
69
|
+
if (relationWhere === null) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
const isBackReference = this.findBackReferencedAncestor(
|
|
73
|
+
ancestorPath,
|
|
74
|
+
context.relation.name,
|
|
75
|
+
context.entity.name
|
|
76
|
+
) !== void 0;
|
|
77
|
+
const nestedIsBackReferenceContext = isBackReference || isBackReferenceContext;
|
|
78
|
+
const nestedAncestorPath = [...ancestorPath, context];
|
|
79
|
+
const processedNestedWhere = this.injectPredicatesToPredicate(
|
|
80
|
+
relationWhere,
|
|
81
|
+
context.targetEntity,
|
|
82
|
+
nestedIsBackReferenceContext,
|
|
83
|
+
nestedAncestorPath
|
|
84
|
+
);
|
|
85
|
+
const shouldSimplifyNested = nestedIsBackReferenceContext && this.findBackReferencedAncestor(nestedAncestorPath, context.relation.name, context.entity.name) !== void 0;
|
|
86
|
+
const targetPredicate = shouldSimplifyNested ? { [context.targetEntity.primary]: { always: true } } : this.predicateFactory.create(context.targetEntity, Acl.Operation.read, void 0, context);
|
|
87
|
+
const primaryKey = context.targetEntity.primary;
|
|
88
|
+
const nestedIsAlwaysTrue = Object.keys(processedNestedWhere).length === 1 && processedNestedWhere[primaryKey] !== void 0 && processedNestedWhere[primaryKey]?.always === true;
|
|
89
|
+
const targetIsAlwaysTrue = Object.keys(targetPredicate).length === 1 && targetPredicate[primaryKey] !== void 0 && targetPredicate[primaryKey]?.always === true;
|
|
90
|
+
if (nestedIsAlwaysTrue && targetIsAlwaysTrue) {
|
|
91
|
+
return processedNestedWhere;
|
|
92
|
+
}
|
|
93
|
+
const parts = [processedNestedWhere, targetPredicate].filter((it) => Object.keys(it).length > 0);
|
|
94
|
+
if (parts.length === 0) {
|
|
95
|
+
return {};
|
|
96
|
+
}
|
|
97
|
+
if (parts.length === 1) {
|
|
98
|
+
return parts[0];
|
|
99
|
+
}
|
|
100
|
+
return { and: parts };
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
return resultWhere;
|
|
105
|
+
}
|
|
106
|
+
injectToWhere(where, entity, isRoot, relationContext, isBackReferenceContext, ancestorPath) {
|
|
107
|
+
const resultWhere = {};
|
|
108
|
+
if (where.and) {
|
|
109
|
+
resultWhere.and = where.and.filter((it) => !!it).map(
|
|
110
|
+
(it) => this.injectToWhere(it, entity, isRoot, relationContext, isBackReferenceContext, ancestorPath)
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
if (where.or) {
|
|
114
|
+
resultWhere.or = where.or.filter((it) => !!it).map(
|
|
115
|
+
(it) => this.injectToWhere(it, entity, isRoot, relationContext, isBackReferenceContext, ancestorPath)
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
if (where.not) {
|
|
119
|
+
resultWhere.not = this.injectToWhere(where.not, entity, isRoot, relationContext, isBackReferenceContext, ancestorPath);
|
|
120
|
+
}
|
|
121
|
+
const fields = Object.keys(where).filter((it) => !["and", "or", "not"].includes(it));
|
|
122
|
+
if (fields.length === 0) {
|
|
123
|
+
return resultWhere;
|
|
124
|
+
}
|
|
125
|
+
for (let field of fields) {
|
|
126
|
+
resultWhere[field] = acceptFieldVisitor(this.schema, entity, field, {
|
|
127
|
+
visitColumn: () => where[field],
|
|
128
|
+
visitRelation: (context) => {
|
|
129
|
+
const relationWhere = where[field];
|
|
130
|
+
if (relationWhere === null) {
|
|
131
|
+
return null;
|
|
132
|
+
}
|
|
133
|
+
const isBackReference = this.findBackReferencedAncestor(ancestorPath, context.relation.name, context.entity.name) !== void 0;
|
|
134
|
+
const nestedIsBackReferenceContext = isBackReference || isBackReferenceContext;
|
|
135
|
+
const nestedAncestorPath = [...ancestorPath, context];
|
|
136
|
+
return this.injectToWhere(relationWhere, context.targetEntity, false, context, nestedIsBackReferenceContext, nestedAncestorPath);
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
const fieldsForPredicate = !isRoot ? fields : fields.filter((it) => this.predicateFactory.shouldApplyCellLevelPredicate(entity, Acl.Operation.read, it));
|
|
141
|
+
return this.createWhere(entity, fieldsForPredicate, resultWhere, relationContext, isBackReferenceContext, ancestorPath);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
export {
|
|
145
|
+
PredicatesInjector
|
|
146
|
+
};
|
|
147
|
+
//# sourceMappingURL=PredicatesInjector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PredicatesInjector.js","sources":["../../../../../packages/engine-content-api/src/acl/PredicatesInjector.ts"],"sourcesContent":["import { Acl, Input, Model, Writable } from '@contember/schema'\nimport { acceptFieldVisitor } from '@contember/schema-utils'\nimport { PredicateFactory } from './PredicateFactory'\n\nexport class PredicatesInjector {\n\tconstructor(private readonly schema: Model.Schema, private readonly predicateFactory: PredicateFactory) {}\n\n\tpublic inject(\n\t\tentity: Model.Entity,\n\t\twhere: Input.OptionalWhere,\n\t\trelationContext?: Model.AnyRelationContext,\n\t\tancestorPath?: readonly Model.AnyRelationContext[],\n\t): Input.OptionalWhere {\n\t\tconst restrictedWhere = this.injectToWhere(where, entity, true, relationContext, false, ancestorPath ?? [])\n\t\treturn this.createWhere(entity, undefined, restrictedWhere, relationContext, false, ancestorPath ?? [])\n\t}\n\n\t/**\n\t * Finds an ancestor in the path that matches the given relation as a back-reference.\n\t * A match occurs when:\n\t * 1. The relation we're traversing has the same name as the inverse (targetRelation) of a relation in the ancestor path\n\t * 2. AND the entity where our relation is defined matches the targetEntity in the path\n\t * (to prevent false positives when different entities have relations with the same name)\n\t */\n\tprivate findBackReferencedAncestor(\n\t\tancestorPath: readonly Model.AnyRelationContext[],\n\t\trelationName: string,\n\t\trelationSourceEntityName: string,\n\t): Model.AnyRelationContext | undefined {\n\t\treturn ancestorPath.find(ctx =>\n\t\t\tctx.targetRelation?.name === relationName\n\t\t\t&& ctx.targetEntity.name === relationSourceEntityName\n\t\t)\n\t}\n\n\tprivate createWhere(\n\t\tentity: Model.Entity,\n\t\tfieldNames: string[] | undefined,\n\t\twhere: Input.OptionalWhere,\n\t\trelationContext?: Model.AnyRelationContext,\n\t\tisBackReferenceContext?: boolean,\n\t\tancestorPath?: readonly Model.AnyRelationContext[],\n\t): Input.OptionalWhere {\n\t\t// Simplify predicates when:\n\t\t// 1. We're in a back-reference context (inside a filter that traverses back)\n\t\t// 2. AND the relation we traversed to get here corresponds to a relation in our query path\n\t\t// This ensures we only simplify when the traversed relation actually corresponds\n\t\t// to a relation in our query path (not just any relation to the same entity type)\n\t\tconst shouldSimplify = isBackReferenceContext === true\n\t\t\t&& ancestorPath !== undefined\n\t\t\t&& relationContext !== undefined\n\t\t\t&& this.findBackReferencedAncestor(ancestorPath, relationContext.relation.name, relationContext.entity.name) !== undefined\n\n\t\tlet predicatesWhere: Input.OptionalWhere\n\t\tif (shouldSimplify) {\n\t\t\tpredicatesWhere = { [entity.primary]: { always: true } }\n\t\t} else {\n\t\t\tconst rawPredicate = this.predicateFactory.create(entity, Acl.Operation.read, fieldNames, relationContext)\n\t\t\t// Process the predicate to inject nested entity predicates\n\t\t\tpredicatesWhere = this.injectPredicatesToPredicate(\n\t\t\t\trawPredicate,\n\t\t\t\tentity,\n\t\t\t\tisBackReferenceContext ?? false,\n\t\t\t\tancestorPath ?? [],\n\t\t\t)\n\t\t}\n\n\t\tconst and = [where, predicatesWhere].filter(it => Object.keys(it).length > 0)\n\t\tif (and.length === 0) {\n\t\t\treturn {}\n\t\t}\n\t\tif (and.length === 1) {\n\t\t\treturn and[0]\n\t\t}\n\t\treturn { and: and }\n\t}\n\n\t/**\n\t * Processes a predicate and injects nested entity predicates for any relation traversals.\n\t * This ensures that when a predicate like { department: { company: { name: 'Acme' } } }\n\t * is used, the predicates of Department and Company are also applied.\n\t */\n\tprivate injectPredicatesToPredicate(\n\t\twhere: Input.OptionalWhere,\n\t\tentity: Model.Entity,\n\t\tisBackReferenceContext: boolean,\n\t\tancestorPath: readonly Model.AnyRelationContext[],\n\t): Input.OptionalWhere {\n\t\tconst resultWhere: Writable<Input.OptionalWhere> = {}\n\n\t\tif (where.and) {\n\t\t\tresultWhere.and = where.and\n\t\t\t\t.filter((it): it is Input.Where => !!it)\n\t\t\t\t.map(it => this.injectPredicatesToPredicate(it, entity, isBackReferenceContext, ancestorPath))\n\t\t}\n\t\tif (where.or) {\n\t\t\tresultWhere.or = where.or\n\t\t\t\t.filter((it): it is Input.Where => !!it)\n\t\t\t\t.map(it => this.injectPredicatesToPredicate(it, entity, isBackReferenceContext, ancestorPath))\n\t\t}\n\t\tif (where.not) {\n\t\t\tresultWhere.not = this.injectPredicatesToPredicate(where.not, entity, isBackReferenceContext, ancestorPath)\n\t\t}\n\n\t\tconst fields = Object.keys(where).filter(it => !['and', 'or', 'not'].includes(it))\n\n\t\tfor (const field of fields) {\n\t\t\tresultWhere[field] = acceptFieldVisitor(this.schema, entity, field, {\n\t\t\t\tvisitColumn: () => where[field],\n\t\t\t\tvisitRelation: context => {\n\t\t\t\t\tconst relationWhere = where[field] as Input.OptionalWhere | null\n\t\t\t\t\tif (relationWhere === null) {\n\t\t\t\t\t\treturn null\n\t\t\t\t\t}\n\n\t\t\t\t\t// Check if this relation is a back-reference to somewhere in our ancestor path\n\t\t\t\t\tconst isBackReference = this.findBackReferencedAncestor(\n\t\t\t\t\t\tancestorPath,\n\t\t\t\t\t\tcontext.relation.name,\n\t\t\t\t\t\tcontext.entity.name,\n\t\t\t\t\t) !== undefined\n\t\t\t\t\tconst nestedIsBackReferenceContext = isBackReference || isBackReferenceContext\n\t\t\t\t\tconst nestedAncestorPath: readonly Model.AnyRelationContext[] = [...ancestorPath, context]\n\n\t\t\t\t\t// Recursively process the nested where (always do this to handle deeper nesting)\n\t\t\t\t\tconst processedNestedWhere = this.injectPredicatesToPredicate(\n\t\t\t\t\t\trelationWhere,\n\t\t\t\t\t\tcontext.targetEntity,\n\t\t\t\t\t\tnestedIsBackReferenceContext,\n\t\t\t\t\t\tnestedAncestorPath,\n\t\t\t\t\t)\n\n\t\t\t\t\t// Check if we should simplify the target entity's predicate\n\t\t\t\t\tconst shouldSimplifyNested = nestedIsBackReferenceContext\n\t\t\t\t\t\t&& this.findBackReferencedAncestor(nestedAncestorPath, context.relation.name, context.entity.name) !== undefined\n\n\t\t\t\t\t// Get target entity's predicate (simplified if back-reference)\n\t\t\t\t\tconst targetPredicate = shouldSimplifyNested\n\t\t\t\t\t\t? { [context.targetEntity.primary]: { always: true } }\n\t\t\t\t\t\t: this.predicateFactory.create(context.targetEntity, Acl.Operation.read, undefined, context)\n\n\t\t\t\t\t// Optimization: avoid duplicate { id: always } when both are simplified\n\t\t\t\t\tconst primaryKey = context.targetEntity.primary\n\t\t\t\t\tconst nestedIsAlwaysTrue = Object.keys(processedNestedWhere).length === 1\n\t\t\t\t\t\t&& (processedNestedWhere as Record<string, unknown>)[primaryKey] !== undefined\n\t\t\t\t\t\t&& (processedNestedWhere as Record<string, Record<string, unknown>>)[primaryKey]?.always === true\n\t\t\t\t\tconst targetIsAlwaysTrue = Object.keys(targetPredicate).length === 1\n\t\t\t\t\t\t&& (targetPredicate as Record<string, unknown>)[primaryKey] !== undefined\n\t\t\t\t\t\t&& (targetPredicate as Record<string, Record<string, unknown>>)[primaryKey]?.always === true\n\n\t\t\t\t\tif (nestedIsAlwaysTrue && targetIsAlwaysTrue) {\n\t\t\t\t\t\treturn processedNestedWhere\n\t\t\t\t\t}\n\n\t\t\t\t\t// Combine the processed nested where with target entity's predicate\n\t\t\t\t\tconst parts = [processedNestedWhere, targetPredicate].filter(it => Object.keys(it).length > 0)\n\t\t\t\t\tif (parts.length === 0) {\n\t\t\t\t\t\treturn {}\n\t\t\t\t\t}\n\t\t\t\t\tif (parts.length === 1) {\n\t\t\t\t\t\treturn parts[0]\n\t\t\t\t\t}\n\t\t\t\t\treturn { and: parts }\n\t\t\t\t},\n\t\t\t})\n\t\t}\n\n\t\treturn resultWhere\n\t}\n\n\tprivate injectToWhere(\n\t\twhere: Input.OptionalWhere,\n\t\tentity: Model.Entity,\n\t\tisRoot: boolean,\n\t\trelationContext: Model.AnyRelationContext | undefined,\n\t\tisBackReferenceContext: boolean,\n\t\tancestorPath: readonly Model.AnyRelationContext[],\n\t): Input.OptionalWhere {\n\t\tconst resultWhere: Writable<Input.OptionalWhere> = {}\n\t\tif (where.and) {\n\t\t\tresultWhere.and = where.and.filter((it): it is Input.Where => !!it).map(it =>\n\t\t\t\tthis.injectToWhere(it, entity, isRoot, relationContext, isBackReferenceContext, ancestorPath)\n\t\t\t)\n\t\t}\n\t\tif (where.or) {\n\t\t\tresultWhere.or = where.or.filter((it): it is Input.Where => !!it).map(it =>\n\t\t\t\tthis.injectToWhere(it, entity, isRoot, relationContext, isBackReferenceContext, ancestorPath)\n\t\t\t)\n\t\t}\n\t\tif (where.not) {\n\t\t\tresultWhere.not = this.injectToWhere(where.not, entity, isRoot, relationContext, isBackReferenceContext, ancestorPath)\n\t\t}\n\n\t\tconst fields = Object.keys(where).filter(it => !['and', 'or', 'not'].includes(it))\n\n\t\tif (fields.length === 0) {\n\t\t\treturn resultWhere\n\t\t}\n\t\tfor (let field of fields) {\n\t\t\tresultWhere[field] = acceptFieldVisitor(this.schema, entity, field, {\n\t\t\t\tvisitColumn: () => where[field],\n\t\t\t\tvisitRelation: context => {\n\t\t\t\t\tconst relationWhere = where[field] as Input.OptionalWhere | null\n\t\t\t\t\tif (relationWhere === null) {\n\t\t\t\t\t\treturn null\n\t\t\t\t\t}\n\t\t\t\t\t// Check if this relation is a back-reference to somewhere in our ancestor path\n\t\t\t\t\tconst isBackReference = this.findBackReferencedAncestor(ancestorPath, context.relation.name, context.entity.name) !== undefined\n\t\t\t\t\t// Once we enter a back-reference context, stay in it for nested relations\n\t\t\t\t\tconst nestedIsBackReferenceContext = isBackReference || isBackReferenceContext\n\t\t\t\t\t// Build extended ancestor path for nested traversal\n\t\t\t\t\tconst nestedAncestorPath: Model.AnyRelationContext[] = [...ancestorPath, context]\n\t\t\t\t\treturn this.injectToWhere(relationWhere, context.targetEntity, false, context, nestedIsBackReferenceContext, nestedAncestorPath)\n\t\t\t\t},\n\t\t\t})\n\t\t}\n\t\tconst fieldsForPredicate = !isRoot\n\t\t\t? fields\n\t\t\t: fields.filter(it => this.predicateFactory.shouldApplyCellLevelPredicate(entity, Acl.Operation.read, it))\n\n\t\treturn this.createWhere(entity, fieldsForPredicate, resultWhere, relationContext, isBackReferenceContext, ancestorPath)\n\t}\n}\n"],"names":[],"mappings":";;AAIO,MAAM,mBAAmB;AAAA,EAC/B,YAA6B,QAAuC,kBAAoC;AAA3E,SAAA,SAAA;AAAuC,SAAA,mBAAA;AAAA,EAAqC;AAAA,EAElG,OACN,QACA,OACA,iBACA,cACsB;AACtB,UAAM,kBAAkB,KAAK,cAAc,OAAO,QAAQ,MAAM,iBAAiB,OAAO,gBAAgB,EAAE;AAC1G,WAAO,KAAK,YAAY,QAAQ,QAAW,iBAAiB,iBAAiB,OAAO,gBAAgB,EAAE;AAAA,EACvG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASQ,2BACP,cACA,cACA,0BACuC;AACvC,WAAO,aAAa;AAAA,MAAK,SACxB,IAAI,gBAAgB,SAAS,gBAC1B,IAAI,aAAa,SAAS;AAAA,IAAA;AAAA,EAE/B;AAAA,EAEQ,YACP,QACA,YACA,OACA,iBACA,wBACA,cACsB;AAMtB,UAAM,iBAAiB,2BAA2B,QAC9C,iBAAiB,UACjB,oBAAoB,UACpB,KAAK,2BAA2B,cAAc,gBAAgB,SAAS,MAAM,gBAAgB,OAAO,IAAI,MAAM;AAElH,QAAI;AACJ,QAAI,gBAAgB;AACnB,wBAAkB,EAAE,CAAC,OAAO,OAAO,GAAG,EAAE,QAAQ,OAAK;AAAA,IACtD,OAAO;AACN,YAAM,eAAe,KAAK,iBAAiB,OAAO,QAAQ,IAAI,UAAU,MAAM,YAAY,eAAe;AAEzG,wBAAkB,KAAK;AAAA,QACtB;AAAA,QACA;AAAA,QACA,0BAA0B;AAAA,QAC1B,gBAAgB,CAAA;AAAA,MAAC;AAAA,IAEnB;AAEA,UAAM,MAAM,CAAC,OAAO,eAAe,EAAE,OAAO,CAAA,OAAM,OAAO,KAAK,EAAE,EAAE,SAAS,CAAC;AAC5E,QAAI,IAAI,WAAW,GAAG;AACrB,aAAO,CAAA;AAAA,IACR;AACA,QAAI,IAAI,WAAW,GAAG;AACrB,aAAO,IAAI,CAAC;AAAA,IACb;AACA,WAAO,EAAE,IAAA;AAAA,EACV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOQ,4BACP,OACA,QACA,wBACA,cACsB;AACtB,UAAM,cAA6C,CAAA;AAEnD,QAAI,MAAM,KAAK;AACd,kBAAY,MAAM,MAAM,IACtB,OAAO,CAAC,OAA0B,CAAC,CAAC,EAAE,EACtC,IAAI,QAAM,KAAK,4BAA4B,IAAI,QAAQ,wBAAwB,YAAY,CAAC;AAAA,IAC/F;AACA,QAAI,MAAM,IAAI;AACb,kBAAY,KAAK,MAAM,GACrB,OAAO,CAAC,OAA0B,CAAC,CAAC,EAAE,EACtC,IAAI,QAAM,KAAK,4BAA4B,IAAI,QAAQ,wBAAwB,YAAY,CAAC;AAAA,IAC/F;AACA,QAAI,MAAM,KAAK;AACd,kBAAY,MAAM,KAAK,4BAA4B,MAAM,KAAK,QAAQ,wBAAwB,YAAY;AAAA,IAC3G;AAEA,UAAM,SAAS,OAAO,KAAK,KAAK,EAAE,OAAO,CAAA,OAAM,CAAC,CAAC,OAAO,MAAM,KAAK,EAAE,SAAS,EAAE,CAAC;AAEjF,eAAW,SAAS,QAAQ;AAC3B,kBAAY,KAAK,IAAI,mBAAmB,KAAK,QAAQ,QAAQ,OAAO;AAAA,QACnE,aAAa,MAAM,MAAM,KAAK;AAAA,QAC9B,eAAe,CAAA,YAAW;AACzB,gBAAM,gBAAgB,MAAM,KAAK;AACjC,cAAI,kBAAkB,MAAM;AAC3B,mBAAO;AAAA,UACR;AAGA,gBAAM,kBAAkB,KAAK;AAAA,YAC5B;AAAA,YACA,QAAQ,SAAS;AAAA,YACjB,QAAQ,OAAO;AAAA,UAAA,MACV;AACN,gBAAM,+BAA+B,mBAAmB;AACxD,gBAAM,qBAA0D,CAAC,GAAG,cAAc,OAAO;AAGzF,gBAAM,uBAAuB,KAAK;AAAA,YACjC;AAAA,YACA,QAAQ;AAAA,YACR;AAAA,YACA;AAAA,UAAA;AAID,gBAAM,uBAAuB,gCACzB,KAAK,2BAA2B,oBAAoB,QAAQ,SAAS,MAAM,QAAQ,OAAO,IAAI,MAAM;AAGxG,gBAAM,kBAAkB,uBACrB,EAAE,CAAC,QAAQ,aAAa,OAAO,GAAG,EAAE,QAAQ,KAAA,MAC5C,KAAK,iBAAiB,OAAO,QAAQ,cAAc,IAAI,UAAU,MAAM,QAAW,OAAO;AAG5F,gBAAM,aAAa,QAAQ,aAAa;AACxC,gBAAM,qBAAqB,OAAO,KAAK,oBAAoB,EAAE,WAAW,KACnE,qBAAiD,UAAU,MAAM,UACjE,qBAAiE,UAAU,GAAG,WAAW;AAC9F,gBAAM,qBAAqB,OAAO,KAAK,eAAe,EAAE,WAAW,KAC9D,gBAA4C,UAAU,MAAM,UAC5D,gBAA4D,UAAU,GAAG,WAAW;AAEzF,cAAI,sBAAsB,oBAAoB;AAC7C,mBAAO;AAAA,UACR;AAGA,gBAAM,QAAQ,CAAC,sBAAsB,eAAe,EAAE,OAAO,CAAA,OAAM,OAAO,KAAK,EAAE,EAAE,SAAS,CAAC;AAC7F,cAAI,MAAM,WAAW,GAAG;AACvB,mBAAO,CAAA;AAAA,UACR;AACA,cAAI,MAAM,WAAW,GAAG;AACvB,mBAAO,MAAM,CAAC;AAAA,UACf;AACA,iBAAO,EAAE,KAAK,MAAA;AAAA,QACf;AAAA,MAAA,CACA;AAAA,IACF;AAEA,WAAO;AAAA,EACR;AAAA,EAEQ,cACP,OACA,QACA,QACA,iBACA,wBACA,cACsB;AACtB,UAAM,cAA6C,CAAA;AACnD,QAAI,MAAM,KAAK;AACd,kBAAY,MAAM,MAAM,IAAI,OAAO,CAAC,OAA0B,CAAC,CAAC,EAAE,EAAE;AAAA,QAAI,CAAA,OACvE,KAAK,cAAc,IAAI,QAAQ,QAAQ,iBAAiB,wBAAwB,YAAY;AAAA,MAAA;AAAA,IAE9F;AACA,QAAI,MAAM,IAAI;AACb,kBAAY,KAAK,MAAM,GAAG,OAAO,CAAC,OAA0B,CAAC,CAAC,EAAE,EAAE;AAAA,QAAI,CAAA,OACrE,KAAK,cAAc,IAAI,QAAQ,QAAQ,iBAAiB,wBAAwB,YAAY;AAAA,MAAA;AAAA,IAE9F;AACA,QAAI,MAAM,KAAK;AACd,kBAAY,MAAM,KAAK,cAAc,MAAM,KAAK,QAAQ,QAAQ,iBAAiB,wBAAwB,YAAY;AAAA,IACtH;AAEA,UAAM,SAAS,OAAO,KAAK,KAAK,EAAE,OAAO,CAAA,OAAM,CAAC,CAAC,OAAO,MAAM,KAAK,EAAE,SAAS,EAAE,CAAC;AAEjF,QAAI,OAAO,WAAW,GAAG;AACxB,aAAO;AAAA,IACR;AACA,aAAS,SAAS,QAAQ;AACzB,kBAAY,KAAK,IAAI,mBAAmB,KAAK,QAAQ,QAAQ,OAAO;AAAA,QACnE,aAAa,MAAM,MAAM,KAAK;AAAA,QAC9B,eAAe,CAAA,YAAW;AACzB,gBAAM,gBAAgB,MAAM,KAAK;AACjC,cAAI,kBAAkB,MAAM;AAC3B,mBAAO;AAAA,UACR;AAEA,gBAAM,kBAAkB,KAAK,2BAA2B,cAAc,QAAQ,SAAS,MAAM,QAAQ,OAAO,IAAI,MAAM;AAEtH,gBAAM,+BAA+B,mBAAmB;AAExD,gBAAM,qBAAiD,CAAC,GAAG,cAAc,OAAO;AAChF,iBAAO,KAAK,cAAc,eAAe,QAAQ,cAAc,OAAO,SAAS,8BAA8B,kBAAkB;AAAA,QAChI;AAAA,MAAA,CACA;AAAA,IACF;AACA,UAAM,qBAAqB,CAAC,SACzB,SACA,OAAO,OAAO,CAAA,OAAM,KAAK,iBAAiB,8BAA8B,QAAQ,IAAI,UAAU,MAAM,EAAE,CAAC;AAE1G,WAAO,KAAK,YAAY,QAAQ,oBAAoB,aAAa,iBAAiB,wBAAwB,YAAY;AAAA,EACvH;AACD;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const schemaUtils = require("@contember/schema-utils");
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "", value);
|
|
7
|
+
class VariableInjector {
|
|
8
|
+
constructor(schema, variables) {
|
|
9
|
+
this.schema = schema;
|
|
10
|
+
this.variables = variables;
|
|
11
|
+
__publicField(this, "injectorCache", /* @__PURE__ */ new WeakMap());
|
|
12
|
+
}
|
|
13
|
+
inject(entity, where) {
|
|
14
|
+
const cacheEntry = this.injectorCache.get(where);
|
|
15
|
+
if (cacheEntry !== void 0) {
|
|
16
|
+
return cacheEntry;
|
|
17
|
+
}
|
|
18
|
+
const predicateDefinitionProcessor = new schemaUtils.PredicateDefinitionProcessor(this.schema);
|
|
19
|
+
const resultWhere = predicateDefinitionProcessor.process(entity, where, {
|
|
20
|
+
handleColumn: ({ value }) => {
|
|
21
|
+
if (typeof value === "string") {
|
|
22
|
+
return this.variables[value] ?? { never: true };
|
|
23
|
+
}
|
|
24
|
+
return value;
|
|
25
|
+
},
|
|
26
|
+
handleRelation: ({ value, targetEntity }) => {
|
|
27
|
+
if (typeof value === "string") {
|
|
28
|
+
return { [targetEntity.primary]: this.variables[value] ?? { never: true } };
|
|
29
|
+
}
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
this.injectorCache.set(where, resultWhere);
|
|
34
|
+
return resultWhere;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.VariableInjector = VariableInjector;
|
|
38
|
+
//# sourceMappingURL=VariableInjector.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VariableInjector.cjs","sources":["../../../../../packages/engine-content-api/src/acl/VariableInjector.ts"],"sourcesContent":["import { Acl, Input, Model } from '@contember/schema'\nimport { PredicateDefinitionProcessor } from '@contember/schema-utils'\n\nexport class VariableInjector {\n\tprivate injectorCache = new WeakMap<Acl.PredicateDefinition, Input.Where>()\n\n\tconstructor(private readonly schema: Model.Schema, private readonly variables: Acl.VariablesMap) {}\n\n\tpublic inject(entity: Model.Entity, where: Acl.PredicateDefinition): Input.Where {\n\t\tconst cacheEntry = this.injectorCache.get(where)\n\t\tif (cacheEntry !== undefined) {\n\t\t\treturn cacheEntry\n\t\t}\n\t\tconst predicateDefinitionProcessor = new PredicateDefinitionProcessor(this.schema)\n\n\t\tconst resultWhere = predicateDefinitionProcessor.process(entity, where, {\n\t\t\thandleColumn: ({ value }) => {\n\t\t\t\tif (typeof value === 'string') {\n\t\t\t\t\treturn this.variables[value] ?? { never: true }\n\t\t\t\t}\n\t\t\t\treturn value as Input.Condition\n\t\t\t},\n\t\t\thandleRelation: ({ value, targetEntity }) => {\n\t\t\t\tif (typeof value === 'string') {\n\t\t\t\t\treturn { [targetEntity.primary]: this.variables[value] ?? { never: true } }\n\t\t\t\t}\n\t\t\t\treturn value\n\t\t\t},\n\t\t})\n\t\tthis.injectorCache.set(where, resultWhere)\n\t\treturn resultWhere\n\t}\n}\n"],"names":["PredicateDefinitionProcessor"],"mappings":";;;;;;AAGO,MAAM,iBAAiB;AAAA,EAG7B,YAA6B,QAAuC,WAA6B;AAApE,SAAA,SAAA;AAAuC,SAAA,YAAA;AAFpE,kBAAA,MAAQ,qCAAoB,QAAA,CAA8C;AAAA,EAEwB;AAAA,EAE3F,OAAO,QAAsB,OAA6C;AAChF,UAAM,aAAa,KAAK,cAAc,IAAI,KAAK;AAC/C,QAAI,eAAe,QAAW;AAC7B,aAAO;AAAA,IACR;AACA,UAAM,+BAA+B,IAAIA,yCAA6B,KAAK,MAAM;AAEjF,UAAM,cAAc,6BAA6B,QAAQ,QAAQ,OAAO;AAAA,MACvE,cAAc,CAAC,EAAE,YAAY;AAC5B,YAAI,OAAO,UAAU,UAAU;AAC9B,iBAAO,KAAK,UAAU,KAAK,KAAK,EAAE,OAAO,KAAA;AAAA,QAC1C;AACA,eAAO;AAAA,MACR;AAAA,MACA,gBAAgB,CAAC,EAAE,OAAO,mBAAmB;AAC5C,YAAI,OAAO,UAAU,UAAU;AAC9B,iBAAO,EAAE,CAAC,aAAa,OAAO,GAAG,KAAK,UAAU,KAAK,KAAK,EAAE,OAAO,OAAK;AAAA,QACzE;AACA,eAAO;AAAA,MACR;AAAA,IAAA,CACA;AACD,SAAK,cAAc,IAAI,OAAO,WAAW;AACzC,WAAO;AAAA,EACR;AACD;;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PredicateDefinitionProcessor } from "@contember/schema-utils";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "", value);
|
|
5
|
+
class VariableInjector {
|
|
6
|
+
constructor(schema, variables) {
|
|
7
|
+
this.schema = schema;
|
|
8
|
+
this.variables = variables;
|
|
9
|
+
__publicField(this, "injectorCache", /* @__PURE__ */ new WeakMap());
|
|
10
|
+
}
|
|
11
|
+
inject(entity, where) {
|
|
12
|
+
const cacheEntry = this.injectorCache.get(where);
|
|
13
|
+
if (cacheEntry !== void 0) {
|
|
14
|
+
return cacheEntry;
|
|
15
|
+
}
|
|
16
|
+
const predicateDefinitionProcessor = new PredicateDefinitionProcessor(this.schema);
|
|
17
|
+
const resultWhere = predicateDefinitionProcessor.process(entity, where, {
|
|
18
|
+
handleColumn: ({ value }) => {
|
|
19
|
+
if (typeof value === "string") {
|
|
20
|
+
return this.variables[value] ?? { never: true };
|
|
21
|
+
}
|
|
22
|
+
return value;
|
|
23
|
+
},
|
|
24
|
+
handleRelation: ({ value, targetEntity }) => {
|
|
25
|
+
if (typeof value === "string") {
|
|
26
|
+
return { [targetEntity.primary]: this.variables[value] ?? { never: true } };
|
|
27
|
+
}
|
|
28
|
+
return value;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
this.injectorCache.set(where, resultWhere);
|
|
32
|
+
return resultWhere;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
VariableInjector
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=VariableInjector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VariableInjector.js","sources":["../../../../../packages/engine-content-api/src/acl/VariableInjector.ts"],"sourcesContent":["import { Acl, Input, Model } from '@contember/schema'\nimport { PredicateDefinitionProcessor } from '@contember/schema-utils'\n\nexport class VariableInjector {\n\tprivate injectorCache = new WeakMap<Acl.PredicateDefinition, Input.Where>()\n\n\tconstructor(private readonly schema: Model.Schema, private readonly variables: Acl.VariablesMap) {}\n\n\tpublic inject(entity: Model.Entity, where: Acl.PredicateDefinition): Input.Where {\n\t\tconst cacheEntry = this.injectorCache.get(where)\n\t\tif (cacheEntry !== undefined) {\n\t\t\treturn cacheEntry\n\t\t}\n\t\tconst predicateDefinitionProcessor = new PredicateDefinitionProcessor(this.schema)\n\n\t\tconst resultWhere = predicateDefinitionProcessor.process(entity, where, {\n\t\t\thandleColumn: ({ value }) => {\n\t\t\t\tif (typeof value === 'string') {\n\t\t\t\t\treturn this.variables[value] ?? { never: true }\n\t\t\t\t}\n\t\t\t\treturn value as Input.Condition\n\t\t\t},\n\t\t\thandleRelation: ({ value, targetEntity }) => {\n\t\t\t\tif (typeof value === 'string') {\n\t\t\t\t\treturn { [targetEntity.primary]: this.variables[value] ?? { never: true } }\n\t\t\t\t}\n\t\t\t\treturn value\n\t\t\t},\n\t\t})\n\t\tthis.injectorCache.set(where, resultWhere)\n\t\treturn resultWhere\n\t}\n}\n"],"names":[],"mappings":";;;;AAGO,MAAM,iBAAiB;AAAA,EAG7B,YAA6B,QAAuC,WAA6B;AAApE,SAAA,SAAA;AAAuC,SAAA,YAAA;AAFpE,kBAAA,MAAQ,qCAAoB,QAAA,CAA8C;AAAA,EAEwB;AAAA,EAE3F,OAAO,QAAsB,OAA6C;AAChF,UAAM,aAAa,KAAK,cAAc,IAAI,KAAK;AAC/C,QAAI,eAAe,QAAW;AAC7B,aAAO;AAAA,IACR;AACA,UAAM,+BAA+B,IAAI,6BAA6B,KAAK,MAAM;AAEjF,UAAM,cAAc,6BAA6B,QAAQ,QAAQ,OAAO;AAAA,MACvE,cAAc,CAAC,EAAE,YAAY;AAC5B,YAAI,OAAO,UAAU,UAAU;AAC9B,iBAAO,KAAK,UAAU,KAAK,KAAK,EAAE,OAAO,KAAA;AAAA,QAC1C;AACA,eAAO;AAAA,MACR;AAAA,MACA,gBAAgB,CAAC,EAAE,OAAO,mBAAmB;AAC5C,YAAI,OAAO,UAAU,UAAU;AAC9B,iBAAO,EAAE,CAAC,aAAa,OAAO,GAAG,KAAK,UAAU,KAAK,KAAK,EAAE,OAAO,OAAK;AAAA,QACzE;AACA,eAAO;AAAA,MACR;AAAA,IAAA,CACA;AACD,SAAK,cAAc,IAAI,OAAO,WAAW;AACzC,WAAO;AAAA,EACR;AACD;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const schemaUtils = require("@contember/schema-utils");
|
|
4
|
+
const createAclVariables = (aclSchema, memberships) => {
|
|
5
|
+
const variablesEntries = memberships.flatMap(
|
|
6
|
+
(membership) => {
|
|
7
|
+
const roleVariables = schemaUtils.getRoleVariables(membership.role, aclSchema);
|
|
8
|
+
const membershipVariablesMap = Object.fromEntries(membership.variables.map((it) => [it.name, it.condition]));
|
|
9
|
+
return Object.keys(roleVariables).map((name) => {
|
|
10
|
+
const prefixed = prefixVariable(membership.role, name);
|
|
11
|
+
return [prefixed, membershipVariablesMap[name] ?? { never: true }];
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
return Object.fromEntries(variablesEntries);
|
|
16
|
+
};
|
|
17
|
+
const prefixVariable = (role, variableName) => `${role}__${variableName}`;
|
|
18
|
+
exports.createAclVariables = createAclVariables;
|
|
19
|
+
exports.prefixVariable = prefixVariable;
|
|
20
|
+
//# sourceMappingURL=VariableUtils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VariableUtils.cjs","sources":["../../../../../packages/engine-content-api/src/acl/VariableUtils.ts"],"sourcesContent":["import { Acl, Input } from '@contember/schema'\nimport { getRoleVariables, ParsedMembership } from '@contember/schema-utils'\n\nexport const createAclVariables = (\n\taclSchema: Acl.Schema,\n\tmemberships: readonly ParsedMembership[],\n): Acl.VariablesMap => {\n\tconst variablesEntries = memberships.flatMap(\n\t\tmembership => {\n\t\t\tconst roleVariables = getRoleVariables(membership.role, aclSchema)\n\t\t\tconst membershipVariablesMap = Object.fromEntries(membership.variables.map(it => [it.name, it.condition]))\n\n\t\t\treturn Object.keys(roleVariables).map((name): [string, Input.Condition] => {\n\t\t\t\tconst prefixed = prefixVariable(membership.role, name)\n\t\t\t\treturn [prefixed, membershipVariablesMap[name] ?? { never: true }]\n\t\t\t})\n\t\t},\n\t)\n\n\treturn Object.fromEntries(variablesEntries)\n}\n\nexport const prefixVariable = (role: string, variableName: string) => `${role}__${variableName}`\n"],"names":["getRoleVariables"],"mappings":";;;AAGO,MAAM,qBAAqB,CACjC,WACA,gBACsB;AACtB,QAAM,mBAAmB,YAAY;AAAA,IACpC,CAAA,eAAc;AACb,YAAM,gBAAgBA,YAAAA,iBAAiB,WAAW,MAAM,SAAS;AACjE,YAAM,yBAAyB,OAAO,YAAY,WAAW,UAAU,IAAI,CAAA,OAAM,CAAC,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;AAEzG,aAAO,OAAO,KAAK,aAAa,EAAE,IAAI,CAAC,SAAoC;AAC1E,cAAM,WAAW,eAAe,WAAW,MAAM,IAAI;AACrD,eAAO,CAAC,UAAU,uBAAuB,IAAI,KAAK,EAAE,OAAO,MAAM;AAAA,MAClE,CAAC;AAAA,IACF;AAAA,EAAA;AAGD,SAAO,OAAO,YAAY,gBAAgB;AAC3C;AAEO,MAAM,iBAAiB,CAAC,MAAc,iBAAyB,GAAG,IAAI,KAAK,YAAY;;;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { getRoleVariables } from "@contember/schema-utils";
|
|
2
|
+
const createAclVariables = (aclSchema, memberships) => {
|
|
3
|
+
const variablesEntries = memberships.flatMap(
|
|
4
|
+
(membership) => {
|
|
5
|
+
const roleVariables = getRoleVariables(membership.role, aclSchema);
|
|
6
|
+
const membershipVariablesMap = Object.fromEntries(membership.variables.map((it) => [it.name, it.condition]));
|
|
7
|
+
return Object.keys(roleVariables).map((name) => {
|
|
8
|
+
const prefixed = prefixVariable(membership.role, name);
|
|
9
|
+
return [prefixed, membershipVariablesMap[name] ?? { never: true }];
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
return Object.fromEntries(variablesEntries);
|
|
14
|
+
};
|
|
15
|
+
const prefixVariable = (role, variableName) => `${role}__${variableName}`;
|
|
16
|
+
export {
|
|
17
|
+
createAclVariables,
|
|
18
|
+
prefixVariable
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=VariableUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VariableUtils.js","sources":["../../../../../packages/engine-content-api/src/acl/VariableUtils.ts"],"sourcesContent":["import { Acl, Input } from '@contember/schema'\nimport { getRoleVariables, ParsedMembership } from '@contember/schema-utils'\n\nexport const createAclVariables = (\n\taclSchema: Acl.Schema,\n\tmemberships: readonly ParsedMembership[],\n): Acl.VariablesMap => {\n\tconst variablesEntries = memberships.flatMap(\n\t\tmembership => {\n\t\t\tconst roleVariables = getRoleVariables(membership.role, aclSchema)\n\t\t\tconst membershipVariablesMap = Object.fromEntries(membership.variables.map(it => [it.name, it.condition]))\n\n\t\t\treturn Object.keys(roleVariables).map((name): [string, Input.Condition] => {\n\t\t\t\tconst prefixed = prefixVariable(membership.role, name)\n\t\t\t\treturn [prefixed, membershipVariablesMap[name] ?? { never: true }]\n\t\t\t})\n\t\t},\n\t)\n\n\treturn Object.fromEntries(variablesEntries)\n}\n\nexport const prefixVariable = (role: string, variableName: string) => `${role}__${variableName}`\n"],"names":[],"mappings":";AAGO,MAAM,qBAAqB,CACjC,WACA,gBACsB;AACtB,QAAM,mBAAmB,YAAY;AAAA,IACpC,CAAA,eAAc;AACb,YAAM,gBAAgB,iBAAiB,WAAW,MAAM,SAAS;AACjE,YAAM,yBAAyB,OAAO,YAAY,WAAW,UAAU,IAAI,CAAA,OAAM,CAAC,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;AAEzG,aAAO,OAAO,KAAK,aAAa,EAAE,IAAI,CAAC,SAAoC;AAC1E,cAAM,WAAW,eAAe,WAAW,MAAM,IAAI;AACrD,eAAO,CAAC,UAAU,uBAAuB,IAAI,KAAK,EAAE,OAAO,MAAM;AAAA,MAClE,CAAC;AAAA,IACF;AAAA,EAAA;AAGD,SAAO,OAAO,YAAY,gBAAgB;AAC3C;AAEO,MAAM,iBAAiB,CAAC,MAAc,iBAAyB,GAAG,IAAI,KAAK,YAAY;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "", value);
|
|
6
|
+
class ImplementationException extends Error {
|
|
7
|
+
constructor(message = "") {
|
|
8
|
+
super(message);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
class UserError extends Error {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
__publicField(this, "path", []);
|
|
15
|
+
}
|
|
16
|
+
// otherwise graphql converts it to GraphqlError
|
|
17
|
+
}
|
|
18
|
+
exports.ImplementationException = ImplementationException;
|
|
19
|
+
exports.UserError = UserError;
|
|
20
|
+
//# sourceMappingURL=exception.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exception.cjs","sources":["../../../../packages/engine-content-api/src/exception.ts"],"sourcesContent":["export class ImplementationException extends Error {\n\tconstructor(message: string = '') {\n\t\tsuper(message)\n\t}\n}\n\nexport class UserError extends Error {\n\tpublic path = [] // otherwise graphql converts it to GraphqlError\n}\n"],"names":[],"mappings":";;;;;AAAO,MAAM,gCAAgC,MAAM;AAAA,EAClD,YAAY,UAAkB,IAAI;AACjC,UAAM,OAAO;AAAA,EACd;AACD;AAEO,MAAM,kBAAkB,MAAM;AAAA,EAA9B,cAAA;AAAA,UAAA,GAAA,SAAA;AACN,kBAAA,MAAO,QAAO,EAAC;AAAA,EAAA;AAAA;AAChB;;;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "", value);
|
|
4
|
+
class ImplementationException extends Error {
|
|
5
|
+
constructor(message = "") {
|
|
6
|
+
super(message);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
class UserError extends Error {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
__publicField(this, "path", []);
|
|
13
|
+
}
|
|
14
|
+
// otherwise graphql converts it to GraphqlError
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
ImplementationException,
|
|
18
|
+
UserError
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exception.js","sources":["../../../../packages/engine-content-api/src/exception.ts"],"sourcesContent":["export class ImplementationException extends Error {\n\tconstructor(message: string = '') {\n\t\tsuper(message)\n\t}\n}\n\nexport class UserError extends Error {\n\tpublic path = [] // otherwise graphql converts it to GraphqlError\n}\n"],"names":[],"mappings":";;;AAAO,MAAM,gCAAgC,MAAM;AAAA,EAClD,YAAY,UAAkB,IAAI;AACjC,UAAM,OAAO;AAAA,EACd;AACD;AAEO,MAAM,kBAAkB,MAAM;AAAA,EAA9B,cAAA;AAAA,UAAA,GAAA,SAAA;AACN,kBAAA,MAAO,QAAO,EAAC;AAAA,EAAA;AAAA;AAChB;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const schemaUtils = require("@contember/schema-utils");
|
|
4
|
+
const schema = require("@contember/schema");
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "", value);
|
|
8
|
+
class HasManyToHasOneReducer {
|
|
9
|
+
constructor(schema2, visitor) {
|
|
10
|
+
this.schema = schema2;
|
|
11
|
+
this.visitor = visitor;
|
|
12
|
+
}
|
|
13
|
+
getFields(entity, accessibleFields) {
|
|
14
|
+
const fieldMap = {};
|
|
15
|
+
for (const field of accessibleFields) {
|
|
16
|
+
if (field.type !== schema.Model.RelationType.OneHasMany) {
|
|
17
|
+
continue;
|
|
18
|
+
}
|
|
19
|
+
for (const [name, resultField] of schemaUtils.acceptFieldVisitor(this.schema, entity, field, this.visitor)) {
|
|
20
|
+
fieldMap[name] = resultField;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return fieldMap;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
__publicField(HasManyToHasOneReducer, "extensionName", "HasManyToHasOneReducer");
|
|
27
|
+
exports.HasManyToHasOneReducer = HasManyToHasOneReducer;
|
|
28
|
+
//# sourceMappingURL=HasManyToHasOneReducer.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HasManyToHasOneReducer.cjs","sources":["../../../../../../packages/engine-content-api/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.ts"],"sourcesContent":["import { EntityFieldsProvider, FieldMap } from '../EntityFieldsProvider'\nimport { acceptFieldVisitor } from '@contember/schema-utils'\nimport { Model } from '@contember/schema'\nimport { HasManyToHasOneRelationReducerFieldVisitor } from './HasManyToHasOneRelationReducerVisitor'\n\nexport class HasManyToHasOneReducer implements EntityFieldsProvider<HasManyToHasOneReducerExtension> {\n\tstatic extensionName: string = 'HasManyToHasOneReducer'\n\n\tconstructor(\n\t\tprivate readonly schema: Model.Schema,\n\t\tprivate readonly visitor: HasManyToHasOneRelationReducerFieldVisitor,\n\t) {}\n\n\tgetFields(entity: Model.Entity, accessibleFields: Model.AnyField[]): FieldMap<HasManyToHasOneReducerExtension> {\n\t\tconst fieldMap: FieldMap<HasManyToHasOneReducerExtension> = {}\n\t\tfor (const field of accessibleFields) {\n\t\t\tif (field.type !== Model.RelationType.OneHasMany) {\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\tfor (const [name, resultField] of acceptFieldVisitor(this.schema, entity, field, this.visitor)) {\n\t\t\t\tfieldMap[name] = resultField\n\t\t\t}\n\t\t}\n\t\treturn fieldMap\n\t}\n}\n\nexport interface HasManyToHasOneReducerExtension {\n\trelationName: string\n}\n"],"names":["schema","Model","acceptFieldVisitor"],"mappings":";;;;;;;AAKO,MAAM,uBAAwF;AAAA,EAGpG,YACkBA,SACA,SAChB;AAFgB,SAAA,SAAAA;AACA,SAAA,UAAA;AAAA,EACf;AAAA,EAEH,UAAU,QAAsB,kBAA+E;AAC9G,UAAM,WAAsD,CAAA;AAC5D,eAAW,SAAS,kBAAkB;AACrC,UAAI,MAAM,SAASC,aAAM,aAAa,YAAY;AACjD;AAAA,MACD;AAEA,iBAAW,CAAC,MAAM,WAAW,KAAKC,YAAAA,mBAAmB,KAAK,QAAQ,QAAQ,OAAO,KAAK,OAAO,GAAG;AAC/F,iBAAS,IAAI,IAAI;AAAA,MAClB;AAAA,IACD;AACA,WAAO;AAAA,EACR;AACD;AApBC,cADY,wBACL,iBAAwB,wBAAA;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { acceptFieldVisitor } from "@contember/schema-utils";
|
|
2
|
+
import { Model } from "@contember/schema";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "", value);
|
|
6
|
+
class HasManyToHasOneReducer {
|
|
7
|
+
constructor(schema, visitor) {
|
|
8
|
+
this.schema = schema;
|
|
9
|
+
this.visitor = visitor;
|
|
10
|
+
}
|
|
11
|
+
getFields(entity, accessibleFields) {
|
|
12
|
+
const fieldMap = {};
|
|
13
|
+
for (const field of accessibleFields) {
|
|
14
|
+
if (field.type !== Model.RelationType.OneHasMany) {
|
|
15
|
+
continue;
|
|
16
|
+
}
|
|
17
|
+
for (const [name, resultField] of acceptFieldVisitor(this.schema, entity, field, this.visitor)) {
|
|
18
|
+
fieldMap[name] = resultField;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return fieldMap;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
__publicField(HasManyToHasOneReducer, "extensionName", "HasManyToHasOneReducer");
|
|
25
|
+
export {
|
|
26
|
+
HasManyToHasOneReducer
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=HasManyToHasOneReducer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HasManyToHasOneReducer.js","sources":["../../../../../../packages/engine-content-api/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.ts"],"sourcesContent":["import { EntityFieldsProvider, FieldMap } from '../EntityFieldsProvider'\nimport { acceptFieldVisitor } from '@contember/schema-utils'\nimport { Model } from '@contember/schema'\nimport { HasManyToHasOneRelationReducerFieldVisitor } from './HasManyToHasOneRelationReducerVisitor'\n\nexport class HasManyToHasOneReducer implements EntityFieldsProvider<HasManyToHasOneReducerExtension> {\n\tstatic extensionName: string = 'HasManyToHasOneReducer'\n\n\tconstructor(\n\t\tprivate readonly schema: Model.Schema,\n\t\tprivate readonly visitor: HasManyToHasOneRelationReducerFieldVisitor,\n\t) {}\n\n\tgetFields(entity: Model.Entity, accessibleFields: Model.AnyField[]): FieldMap<HasManyToHasOneReducerExtension> {\n\t\tconst fieldMap: FieldMap<HasManyToHasOneReducerExtension> = {}\n\t\tfor (const field of accessibleFields) {\n\t\t\tif (field.type !== Model.RelationType.OneHasMany) {\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\tfor (const [name, resultField] of acceptFieldVisitor(this.schema, entity, field, this.visitor)) {\n\t\t\t\tfieldMap[name] = resultField\n\t\t\t}\n\t\t}\n\t\treturn fieldMap\n\t}\n}\n\nexport interface HasManyToHasOneReducerExtension {\n\trelationName: string\n}\n"],"names":[],"mappings":";;;;;AAKO,MAAM,uBAAwF;AAAA,EAGpG,YACkB,QACA,SAChB;AAFgB,SAAA,SAAA;AACA,SAAA,UAAA;AAAA,EACf;AAAA,EAEH,UAAU,QAAsB,kBAA+E;AAC9G,UAAM,WAAsD,CAAA;AAC5D,eAAW,SAAS,kBAAkB;AACrC,UAAI,MAAM,SAAS,MAAM,aAAa,YAAY;AACjD;AAAA,MACD;AAEA,iBAAW,CAAC,MAAM,WAAW,KAAK,mBAAmB,KAAK,QAAQ,QAAQ,OAAO,KAAK,OAAO,GAAG;AAC/F,iBAAS,IAAI,IAAI;AAAA,MAClB;AAAA,IACD;AACA,WAAO;AAAA,EACR;AACD;AApBC,cADY,wBACL,iBAAwB,wBAAA;"}
|