@contember/engine-content-api 2.2.0-alpha.2 → 2.2.0-alpha.21
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/CLAUDE.md +25 -7
- package/dist/development/index.cjs +36 -0
- package/dist/development/index.cjs.map +1 -1
- package/dist/development/index.js +40 -4
- package/dist/development/index.js.map +1 -1
- package/dist/development/src/ExecutionContainer.cjs +18 -10
- package/dist/development/src/ExecutionContainer.cjs.map +1 -1
- package/dist/development/src/ExecutionContainer.js +18 -10
- package/dist/development/src/ExecutionContainer.js.map +1 -1
- package/dist/development/src/acl/AclScope.cjs +7 -0
- package/dist/development/src/acl/AclScope.cjs.map +1 -0
- package/dist/development/src/acl/AclScope.js +7 -0
- package/dist/development/src/acl/AclScope.js.map +1 -0
- package/dist/development/src/acl/Authorizator.cjs +6 -4
- package/dist/development/src/acl/Authorizator.cjs.map +1 -1
- package/dist/development/src/acl/Authorizator.js +6 -4
- package/dist/development/src/acl/Authorizator.js.map +1 -1
- package/dist/development/src/acl/EvaluatedPredicateReplacer.cjs +4 -1
- package/dist/development/src/acl/EvaluatedPredicateReplacer.cjs.map +1 -1
- package/dist/development/src/acl/EvaluatedPredicateReplacer.js +4 -1
- package/dist/development/src/acl/EvaluatedPredicateReplacer.js.map +1 -1
- package/dist/development/src/acl/PermissionFactory.cjs +57 -68
- package/dist/development/src/acl/PermissionFactory.cjs.map +1 -1
- package/dist/development/src/acl/PermissionFactory.js +58 -69
- package/dist/development/src/acl/PermissionFactory.js.map +1 -1
- package/dist/development/src/acl/PredicateFactory.cjs +95 -26
- package/dist/development/src/acl/PredicateFactory.cjs.map +1 -1
- package/dist/development/src/acl/PredicateFactory.js +95 -26
- package/dist/development/src/acl/PredicateFactory.js.map +1 -1
- package/dist/development/src/acl/PredicatesInjector.cjs +97 -99
- package/dist/development/src/acl/PredicatesInjector.cjs.map +1 -1
- package/dist/development/src/acl/PredicatesInjector.js +99 -101
- package/dist/development/src/acl/PredicatesInjector.js.map +1 -1
- package/dist/development/src/acl/VariableInjector.cjs +7 -2
- package/dist/development/src/acl/VariableInjector.cjs.map +1 -1
- package/dist/development/src/acl/VariableInjector.js +7 -2
- package/dist/development/src/acl/VariableInjector.js.map +1 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.cjs +28 -2
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.cjs.map +1 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.js +29 -3
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.js.map +1 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.cjs +16 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.cjs.map +1 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.js +16 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.js.map +1 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.cjs +29 -3
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.cjs.map +1 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.js +29 -3
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.js.map +1 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.cjs +14 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.cjs.map +1 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.js +14 -0
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.js.map +1 -1
- package/dist/development/src/input-validation/ValidationDataSelector.cjs +2 -2
- package/dist/development/src/input-validation/ValidationDataSelector.cjs.map +1 -1
- package/dist/development/src/input-validation/ValidationDataSelector.js +2 -2
- package/dist/development/src/input-validation/ValidationDataSelector.js.map +1 -1
- package/dist/development/src/input-validation/preValidation/UpdateInputPreValidationProcessor.cjs +24 -3
- package/dist/development/src/input-validation/preValidation/UpdateInputPreValidationProcessor.cjs.map +1 -1
- package/dist/development/src/input-validation/preValidation/UpdateInputPreValidationProcessor.js +24 -3
- package/dist/development/src/input-validation/preValidation/UpdateInputPreValidationProcessor.js.map +1 -1
- package/dist/development/src/inputProcessing/UpdateInputVisitor.cjs +52 -2
- package/dist/development/src/inputProcessing/UpdateInputVisitor.cjs.map +1 -1
- package/dist/development/src/inputProcessing/UpdateInputVisitor.js +52 -2
- package/dist/development/src/inputProcessing/UpdateInputVisitor.js.map +1 -1
- package/dist/development/src/introspection/IntrospectionSchemaFactory.cjs +11 -6
- package/dist/development/src/introspection/IntrospectionSchemaFactory.cjs.map +1 -1
- package/dist/development/src/introspection/IntrospectionSchemaFactory.js +11 -6
- package/dist/development/src/introspection/IntrospectionSchemaFactory.js.map +1 -1
- package/dist/development/src/introspection/introspection.schema.cjs +2 -2
- package/dist/development/src/introspection/introspection.schema.cjs.map +1 -1
- package/dist/development/src/introspection/introspection.schema.js +2 -2
- package/dist/development/src/introspection/introspection.schema.js.map +1 -1
- package/dist/development/src/mapper/ErrorUtils.cjs +17 -1
- package/dist/development/src/mapper/ErrorUtils.cjs.map +1 -1
- package/dist/development/src/mapper/ErrorUtils.js +17 -1
- package/dist/development/src/mapper/ErrorUtils.js.map +1 -1
- package/dist/development/src/mapper/JunctionTableManager.cjs +18 -12
- package/dist/development/src/mapper/JunctionTableManager.cjs.map +1 -1
- package/dist/development/src/mapper/JunctionTableManager.js +19 -13
- package/dist/development/src/mapper/JunctionTableManager.js.map +1 -1
- package/dist/development/src/mapper/Mapper.cjs +111 -37
- package/dist/development/src/mapper/Mapper.cjs.map +1 -1
- package/dist/development/src/mapper/Mapper.js +112 -38
- package/dist/development/src/mapper/Mapper.js.map +1 -1
- package/dist/development/src/mapper/MapperFactory.cjs +7 -4
- package/dist/development/src/mapper/MapperFactory.cjs.map +1 -1
- package/dist/development/src/mapper/MapperFactory.js +7 -4
- package/dist/development/src/mapper/MapperFactory.js.map +1 -1
- package/dist/development/src/mapper/MutationProcessorHelper.cjs +12 -0
- package/dist/development/src/mapper/MutationProcessorHelper.cjs.map +1 -1
- package/dist/development/src/mapper/MutationProcessorHelper.js +13 -1
- package/dist/development/src/mapper/MutationProcessorHelper.js.map +1 -1
- package/dist/development/src/mapper/Result.cjs +1 -0
- package/dist/development/src/mapper/Result.cjs.map +1 -1
- package/dist/development/src/mapper/Result.js +1 -0
- package/dist/development/src/mapper/Result.js.map +1 -1
- package/dist/development/src/mapper/delete/DeleteExecutor.cjs +15 -8
- package/dist/development/src/mapper/delete/DeleteExecutor.cjs.map +1 -1
- package/dist/development/src/mapper/delete/DeleteExecutor.js +15 -8
- package/dist/development/src/mapper/delete/DeleteExecutor.js.map +1 -1
- package/dist/development/src/mapper/insert/InsertBuilder.cjs +3 -2
- package/dist/development/src/mapper/insert/InsertBuilder.cjs.map +1 -1
- package/dist/development/src/mapper/insert/InsertBuilder.js +3 -2
- package/dist/development/src/mapper/insert/InsertBuilder.js.map +1 -1
- package/dist/development/src/mapper/insert/InsertBuilderFactory.cjs +2 -2
- package/dist/development/src/mapper/insert/InsertBuilderFactory.cjs.map +1 -1
- package/dist/development/src/mapper/insert/InsertBuilderFactory.js +2 -2
- package/dist/development/src/mapper/insert/InsertBuilderFactory.js.map +1 -1
- package/dist/development/src/mapper/insert/Inserter.cjs +3 -3
- package/dist/development/src/mapper/insert/Inserter.cjs.map +1 -1
- package/dist/development/src/mapper/insert/Inserter.js +3 -3
- package/dist/development/src/mapper/insert/Inserter.js.map +1 -1
- package/dist/development/src/mapper/insert/SqlCreateInputProcessor.cjs +3 -2
- package/dist/development/src/mapper/insert/SqlCreateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/insert/SqlCreateInputProcessor.js +3 -2
- package/dist/development/src/mapper/insert/SqlCreateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.cjs +9 -8
- package/dist/development/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.js +9 -8
- package/dist/development/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.cjs +4 -4
- package/dist/development/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.js +4 -4
- package/dist/development/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/insert/relations/OneHasManyCreateInputProcessor.cjs +3 -3
- package/dist/development/src/mapper/insert/relations/OneHasManyCreateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/insert/relations/OneHasManyCreateInputProcessor.js +3 -3
- package/dist/development/src/mapper/insert/relations/OneHasManyCreateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.cjs +7 -7
- package/dist/development/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.js +7 -7
- package/dist/development/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.cjs +6 -6
- package/dist/development/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.js +6 -6
- package/dist/development/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/select/ConditionBuilder.cjs +8 -1
- package/dist/development/src/mapper/select/ConditionBuilder.cjs.map +1 -1
- package/dist/development/src/mapper/select/ConditionBuilder.js +8 -1
- package/dist/development/src/mapper/select/ConditionBuilder.js.map +1 -1
- package/dist/development/src/mapper/select/JoinBuilder.cjs +26 -4
- package/dist/development/src/mapper/select/JoinBuilder.cjs.map +1 -1
- package/dist/development/src/mapper/select/JoinBuilder.js +27 -5
- package/dist/development/src/mapper/select/JoinBuilder.js.map +1 -1
- package/dist/development/src/mapper/select/OrderByBuilder.cjs +84 -15
- package/dist/development/src/mapper/select/OrderByBuilder.cjs.map +1 -1
- package/dist/development/src/mapper/select/OrderByBuilder.js +86 -17
- package/dist/development/src/mapper/select/OrderByBuilder.js.map +1 -1
- package/dist/development/src/mapper/select/OrderByHelper.cjs +17 -7
- package/dist/development/src/mapper/select/OrderByHelper.cjs.map +1 -1
- package/dist/development/src/mapper/select/OrderByHelper.js +17 -7
- package/dist/development/src/mapper/select/OrderByHelper.js.map +1 -1
- package/dist/development/src/mapper/select/Path.cjs +25 -3
- package/dist/development/src/mapper/select/Path.cjs.map +1 -1
- package/dist/development/src/mapper/select/Path.js +26 -4
- package/dist/development/src/mapper/select/Path.js.map +1 -1
- package/dist/development/src/mapper/select/RelationFetcher.cjs +6 -5
- package/dist/development/src/mapper/select/RelationFetcher.cjs.map +1 -1
- package/dist/development/src/mapper/select/RelationFetcher.js +6 -5
- package/dist/development/src/mapper/select/RelationFetcher.js.map +1 -1
- package/dist/development/src/mapper/select/SelectBuilder.cjs +15 -21
- package/dist/development/src/mapper/select/SelectBuilder.cjs.map +1 -1
- package/dist/development/src/mapper/select/SelectBuilder.js +13 -19
- package/dist/development/src/mapper/select/SelectBuilder.js.map +1 -1
- package/dist/development/src/mapper/select/SelectHydrator.cjs +92 -31
- package/dist/development/src/mapper/select/SelectHydrator.cjs.map +1 -1
- package/dist/development/src/mapper/select/SelectHydrator.js +92 -31
- package/dist/development/src/mapper/select/SelectHydrator.js.map +1 -1
- package/dist/development/src/mapper/select/WhereBuilder.cjs +261 -47
- package/dist/development/src/mapper/select/WhereBuilder.cjs.map +1 -1
- package/dist/development/src/mapper/select/WhereBuilder.js +262 -48
- package/dist/development/src/mapper/select/WhereBuilder.js.map +1 -1
- package/dist/development/src/mapper/select/getFieldReadPredicate.cjs +8 -0
- package/dist/development/src/mapper/select/getFieldReadPredicate.cjs.map +1 -0
- package/dist/development/src/mapper/select/getFieldReadPredicate.js +8 -0
- package/dist/development/src/mapper/select/getFieldReadPredicate.js.map +1 -0
- package/dist/development/src/mapper/select/handlers/FieldsVisitor.cjs +9 -13
- package/dist/development/src/mapper/select/handlers/FieldsVisitor.cjs.map +1 -1
- package/dist/development/src/mapper/select/handlers/FieldsVisitor.js +10 -14
- package/dist/development/src/mapper/select/handlers/FieldsVisitor.js.map +1 -1
- package/dist/development/src/mapper/select/handlers/MetaHandler.cjs +6 -2
- package/dist/development/src/mapper/select/handlers/MetaHandler.cjs.map +1 -1
- package/dist/development/src/mapper/select/handlers/MetaHandler.js +6 -2
- package/dist/development/src/mapper/select/handlers/MetaHandler.js.map +1 -1
- package/dist/development/src/mapper/select/optimizer/WhereOptimizer.cjs +229 -3
- package/dist/development/src/mapper/select/optimizer/WhereOptimizer.cjs.map +1 -1
- package/dist/development/src/mapper/select/optimizer/WhereOptimizer.js +230 -4
- package/dist/development/src/mapper/select/optimizer/WhereOptimizer.js.map +1 -1
- package/dist/development/src/mapper/select/optimizer/WhereReplacer.cjs +3 -3
- package/dist/development/src/mapper/select/optimizer/WhereReplacer.cjs.map +1 -1
- package/dist/development/src/mapper/select/optimizer/WhereReplacer.js +1 -1
- package/dist/development/src/mapper/select/optimizer/WhereReplacer.js.map +1 -1
- package/dist/development/src/mapper/update/SqlUpdateInputProcessor.cjs +9 -5
- package/dist/development/src/mapper/update/SqlUpdateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/update/SqlUpdateInputProcessor.js +10 -6
- package/dist/development/src/mapper/update/SqlUpdateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/update/UpdateBuilder.cjs +35 -2
- package/dist/development/src/mapper/update/UpdateBuilder.cjs.map +1 -1
- package/dist/development/src/mapper/update/UpdateBuilder.js +36 -3
- package/dist/development/src/mapper/update/UpdateBuilder.js.map +1 -1
- package/dist/development/src/mapper/update/UpdateBuilderFactory.cjs +3 -2
- package/dist/development/src/mapper/update/UpdateBuilderFactory.cjs.map +1 -1
- package/dist/development/src/mapper/update/UpdateBuilderFactory.js +3 -2
- package/dist/development/src/mapper/update/UpdateBuilderFactory.js.map +1 -1
- package/dist/development/src/mapper/update/Updater.cjs +12 -6
- package/dist/development/src/mapper/update/Updater.cjs.map +1 -1
- package/dist/development/src/mapper/update/Updater.js +13 -7
- package/dist/development/src/mapper/update/Updater.js.map +1 -1
- package/dist/development/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.cjs +33 -19
- package/dist/development/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.js +33 -19
- package/dist/development/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.cjs +13 -11
- package/dist/development/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.js +13 -11
- package/dist/development/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/update/relations/OneHasManyUpdateInputProcessor.cjs +17 -8
- package/dist/development/src/mapper/update/relations/OneHasManyUpdateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/update/relations/OneHasManyUpdateInputProcessor.js +17 -8
- package/dist/development/src/mapper/update/relations/OneHasManyUpdateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.cjs +19 -16
- package/dist/development/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.js +19 -16
- package/dist/development/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.cjs +19 -16
- package/dist/development/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.js +19 -16
- package/dist/development/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/update/relations/SetManyRelationHelper.cjs +123 -0
- package/dist/development/src/mapper/update/relations/SetManyRelationHelper.cjs.map +1 -0
- package/dist/development/src/mapper/update/relations/SetManyRelationHelper.js +123 -0
- package/dist/development/src/mapper/update/relations/SetManyRelationHelper.js.map +1 -0
- package/dist/development/src/resolvers/GraphQlQueryAstFactory.cjs.map +1 -1
- package/dist/development/src/resolvers/GraphQlQueryAstFactory.js.map +1 -1
- package/dist/development/src/resolvers/MutationResolver.cjs +76 -79
- package/dist/development/src/resolvers/MutationResolver.cjs.map +1 -1
- package/dist/development/src/resolvers/MutationResolver.js +78 -81
- package/dist/development/src/resolvers/MutationResolver.js.map +1 -1
- package/dist/development/src/resolvers/ReadHelpers.cjs +17 -6
- package/dist/development/src/resolvers/ReadHelpers.cjs.map +1 -1
- package/dist/development/src/resolvers/ReadHelpers.js +17 -6
- package/dist/development/src/resolvers/ReadHelpers.js.map +1 -1
- package/dist/development/src/resolvers/ReadResolver.cjs +27 -22
- package/dist/development/src/resolvers/ReadResolver.cjs.map +1 -1
- package/dist/development/src/resolvers/ReadResolver.js +27 -22
- package/dist/development/src/resolvers/ReadResolver.js.map +1 -1
- package/dist/development/src/schema/CustomTypesProvider.cjs +35 -14
- package/dist/development/src/schema/CustomTypesProvider.cjs.map +1 -1
- package/dist/development/src/schema/CustomTypesProvider.js +36 -15
- package/dist/development/src/schema/CustomTypesProvider.js.map +1 -1
- package/dist/development/src/schema/EntityTypeProvider.cjs +11 -7
- package/dist/development/src/schema/EntityTypeProvider.cjs.map +1 -1
- package/dist/development/src/schema/EntityTypeProvider.js +11 -7
- package/dist/development/src/schema/EntityTypeProvider.js.map +1 -1
- package/dist/development/src/schema/GraphQlSchemaBuilder.cjs +16 -6
- package/dist/development/src/schema/GraphQlSchemaBuilder.cjs.map +1 -1
- package/dist/development/src/schema/GraphQlSchemaBuilder.js +16 -6
- package/dist/development/src/schema/GraphQlSchemaBuilder.js.map +1 -1
- package/dist/development/src/schema/GraphQlSchemaBuilderFactory.cjs +39 -11
- package/dist/development/src/schema/GraphQlSchemaBuilderFactory.cjs.map +1 -1
- package/dist/development/src/schema/GraphQlSchemaBuilderFactory.js +39 -11
- package/dist/development/src/schema/GraphQlSchemaBuilderFactory.js.map +1 -1
- package/dist/development/src/schema/MutationProvider.cjs +38 -16
- package/dist/development/src/schema/MutationProvider.cjs.map +1 -1
- package/dist/development/src/schema/MutationProvider.js +38 -16
- package/dist/development/src/schema/MutationProvider.js.map +1 -1
- package/dist/development/src/schema/OrderByTypeProvider.cjs +8 -2
- package/dist/development/src/schema/OrderByTypeProvider.cjs.map +1 -1
- package/dist/development/src/schema/OrderByTypeProvider.js +9 -3
- package/dist/development/src/schema/OrderByTypeProvider.js.map +1 -1
- package/dist/development/src/schema/QueryProvider.cjs +12 -11
- package/dist/development/src/schema/QueryProvider.cjs.map +1 -1
- package/dist/development/src/schema/QueryProvider.js +12 -11
- package/dist/development/src/schema/QueryProvider.js.map +1 -1
- package/dist/development/src/schema/ValidationQueriesProvider.cjs +2 -0
- package/dist/development/src/schema/ValidationQueriesProvider.cjs.map +1 -1
- package/dist/development/src/schema/ValidationQueriesProvider.js +2 -0
- package/dist/development/src/schema/ValidationQueriesProvider.js.map +1 -1
- package/dist/development/src/schema/WhereTypeProvider.cjs +17 -5
- package/dist/development/src/schema/WhereTypeProvider.cjs.map +1 -1
- package/dist/development/src/schema/WhereTypeProvider.js +18 -6
- package/dist/development/src/schema/WhereTypeProvider.js.map +1 -1
- package/dist/development/src/schema/calendarDate.cjs +21 -0
- package/dist/development/src/schema/calendarDate.cjs.map +1 -0
- package/dist/development/src/schema/calendarDate.js +21 -0
- package/dist/development/src/schema/calendarDate.js.map +1 -0
- package/dist/development/src/schema/entities/FieldTypeVisitor.cjs +15 -2
- package/dist/development/src/schema/entities/FieldTypeVisitor.cjs.map +1 -1
- package/dist/development/src/schema/entities/FieldTypeVisitor.js +15 -2
- package/dist/development/src/schema/entities/FieldTypeVisitor.js.map +1 -1
- package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.cjs +11 -3
- package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.cjs.map +1 -1
- package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.js +11 -3
- package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.js.map +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs +11 -3
- package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs.map +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.js +11 -3
- package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.js.map +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.cjs +39 -2
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.cjs.map +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.js +40 -3
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.js.map +1 -1
- package/dist/development/src/schema/utils.cjs +10 -0
- package/dist/development/src/schema/utils.cjs.map +1 -1
- package/dist/development/src/schema/utils.js +11 -1
- package/dist/development/src/schema/utils.js.map +1 -1
- package/dist/development/src/schema-json/GraphQLJsBridge.cjs +108 -0
- package/dist/development/src/schema-json/GraphQLJsBridge.cjs.map +1 -0
- package/dist/development/src/schema-json/GraphQLJsBridge.js +108 -0
- package/dist/development/src/schema-json/GraphQLJsBridge.js.map +1 -0
- package/dist/development/src/schema-json/JsonColumnTypes.cjs +102 -0
- package/dist/development/src/schema-json/JsonColumnTypes.cjs.map +1 -0
- package/dist/development/src/schema-json/JsonColumnTypes.js +102 -0
- package/dist/development/src/schema-json/JsonColumnTypes.js.map +1 -0
- package/dist/development/src/schema-json/JsonContentSchemaBuilder.cjs +418 -0
- package/dist/development/src/schema-json/JsonContentSchemaBuilder.cjs.map +1 -0
- package/dist/development/src/schema-json/JsonContentSchemaBuilder.js +418 -0
- package/dist/development/src/schema-json/JsonContentSchemaBuilder.js.map +1 -0
- package/dist/development/src/schema-json/JsonContentSchemaShared.cjs +18 -0
- package/dist/development/src/schema-json/JsonContentSchemaShared.cjs.map +1 -0
- package/dist/development/src/schema-json/JsonContentSchemaShared.js +18 -0
- package/dist/development/src/schema-json/JsonContentSchemaShared.js.map +1 -0
- package/dist/development/src/schema-json/JsonEntityTypes.cjs +206 -0
- package/dist/development/src/schema-json/JsonEntityTypes.cjs.map +1 -0
- package/dist/development/src/schema-json/JsonEntityTypes.js +206 -0
- package/dist/development/src/schema-json/JsonEntityTypes.js.map +1 -0
- package/dist/development/src/schema-json/JsonFilterTypes.cjs +152 -0
- package/dist/development/src/schema-json/JsonFilterTypes.cjs.map +1 -0
- package/dist/development/src/schema-json/JsonFilterTypes.js +152 -0
- package/dist/development/src/schema-json/JsonFilterTypes.js.map +1 -0
- package/dist/development/src/schema-json/JsonInputTypes.cjs +256 -0
- package/dist/development/src/schema-json/JsonInputTypes.cjs.map +1 -0
- package/dist/development/src/schema-json/JsonInputTypes.js +256 -0
- package/dist/development/src/schema-json/JsonInputTypes.js.map +1 -0
- package/dist/development/src/schema-json/JsonIntrospectionExtension.cjs +36 -0
- package/dist/development/src/schema-json/JsonIntrospectionExtension.cjs.map +1 -0
- package/dist/development/src/schema-json/JsonIntrospectionExtension.js +36 -0
- package/dist/development/src/schema-json/JsonIntrospectionExtension.js.map +1 -0
- package/dist/development/src/schema-json/JsonQueryAstFactory.cjs +107 -0
- package/dist/development/src/schema-json/JsonQueryAstFactory.cjs.map +1 -0
- package/dist/development/src/schema-json/JsonQueryAstFactory.js +107 -0
- package/dist/development/src/schema-json/JsonQueryAstFactory.js.map +1 -0
- package/dist/development/src/schema-json/JsonTypeRegistry.cjs +230 -0
- package/dist/development/src/schema-json/JsonTypeRegistry.cjs.map +1 -0
- package/dist/development/src/schema-json/JsonTypeRegistry.js +230 -0
- package/dist/development/src/schema-json/JsonTypeRegistry.js.map +1 -0
- package/dist/development/src/utils/ResolveInfoUtils.cjs.map +1 -1
- package/dist/development/src/utils/ResolveInfoUtils.js.map +1 -1
- package/dist/development/src/utils/uniqueWhereFields.cjs +10 -0
- package/dist/development/src/utils/uniqueWhereFields.cjs.map +1 -1
- package/dist/development/src/utils/uniqueWhereFields.js +10 -0
- package/dist/development/src/utils/uniqueWhereFields.js.map +1 -1
- package/dist/production/index.cjs +36 -0
- package/dist/production/index.cjs.map +1 -1
- package/dist/production/index.js +40 -4
- package/dist/production/index.js.map +1 -1
- package/dist/production/src/ExecutionContainer.cjs +18 -10
- package/dist/production/src/ExecutionContainer.cjs.map +1 -1
- package/dist/production/src/ExecutionContainer.js +18 -10
- package/dist/production/src/ExecutionContainer.js.map +1 -1
- package/dist/production/src/acl/AclScope.cjs +7 -0
- package/dist/production/src/acl/AclScope.cjs.map +1 -0
- package/dist/production/src/acl/AclScope.js +7 -0
- package/dist/production/src/acl/AclScope.js.map +1 -0
- package/dist/production/src/acl/Authorizator.cjs +6 -4
- package/dist/production/src/acl/Authorizator.cjs.map +1 -1
- package/dist/production/src/acl/Authorizator.js +6 -4
- package/dist/production/src/acl/Authorizator.js.map +1 -1
- package/dist/production/src/acl/EvaluatedPredicateReplacer.cjs +4 -1
- package/dist/production/src/acl/EvaluatedPredicateReplacer.cjs.map +1 -1
- package/dist/production/src/acl/EvaluatedPredicateReplacer.js +4 -1
- package/dist/production/src/acl/EvaluatedPredicateReplacer.js.map +1 -1
- package/dist/production/src/acl/PermissionFactory.cjs +57 -68
- package/dist/production/src/acl/PermissionFactory.cjs.map +1 -1
- package/dist/production/src/acl/PermissionFactory.js +58 -69
- package/dist/production/src/acl/PermissionFactory.js.map +1 -1
- package/dist/production/src/acl/PredicateFactory.cjs +95 -26
- package/dist/production/src/acl/PredicateFactory.cjs.map +1 -1
- package/dist/production/src/acl/PredicateFactory.js +95 -26
- package/dist/production/src/acl/PredicateFactory.js.map +1 -1
- package/dist/production/src/acl/PredicatesInjector.cjs +97 -99
- package/dist/production/src/acl/PredicatesInjector.cjs.map +1 -1
- package/dist/production/src/acl/PredicatesInjector.js +99 -101
- package/dist/production/src/acl/PredicatesInjector.js.map +1 -1
- package/dist/production/src/acl/VariableInjector.cjs +7 -2
- package/dist/production/src/acl/VariableInjector.cjs.map +1 -1
- package/dist/production/src/acl/VariableInjector.js +7 -2
- package/dist/production/src/acl/VariableInjector.js.map +1 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.cjs +28 -2
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.cjs.map +1 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.js +29 -3
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.js.map +1 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.cjs +16 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.cjs.map +1 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.js +16 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.js.map +1 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.cjs +29 -3
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.cjs.map +1 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.js +29 -3
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.js.map +1 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.cjs +14 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.cjs.map +1 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.js +14 -0
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.js.map +1 -1
- package/dist/production/src/input-validation/ValidationDataSelector.cjs +2 -2
- package/dist/production/src/input-validation/ValidationDataSelector.cjs.map +1 -1
- package/dist/production/src/input-validation/ValidationDataSelector.js +2 -2
- package/dist/production/src/input-validation/ValidationDataSelector.js.map +1 -1
- package/dist/production/src/input-validation/preValidation/UpdateInputPreValidationProcessor.cjs +24 -3
- package/dist/production/src/input-validation/preValidation/UpdateInputPreValidationProcessor.cjs.map +1 -1
- package/dist/production/src/input-validation/preValidation/UpdateInputPreValidationProcessor.js +24 -3
- package/dist/production/src/input-validation/preValidation/UpdateInputPreValidationProcessor.js.map +1 -1
- package/dist/production/src/inputProcessing/UpdateInputVisitor.cjs +52 -2
- package/dist/production/src/inputProcessing/UpdateInputVisitor.cjs.map +1 -1
- package/dist/production/src/inputProcessing/UpdateInputVisitor.js +52 -2
- package/dist/production/src/inputProcessing/UpdateInputVisitor.js.map +1 -1
- package/dist/production/src/introspection/IntrospectionSchemaFactory.cjs +11 -6
- package/dist/production/src/introspection/IntrospectionSchemaFactory.cjs.map +1 -1
- package/dist/production/src/introspection/IntrospectionSchemaFactory.js +11 -6
- package/dist/production/src/introspection/IntrospectionSchemaFactory.js.map +1 -1
- package/dist/production/src/introspection/introspection.schema.cjs +2 -2
- package/dist/production/src/introspection/introspection.schema.cjs.map +1 -1
- package/dist/production/src/introspection/introspection.schema.js +2 -2
- package/dist/production/src/introspection/introspection.schema.js.map +1 -1
- package/dist/production/src/mapper/ErrorUtils.cjs +17 -1
- package/dist/production/src/mapper/ErrorUtils.cjs.map +1 -1
- package/dist/production/src/mapper/ErrorUtils.js +17 -1
- package/dist/production/src/mapper/ErrorUtils.js.map +1 -1
- package/dist/production/src/mapper/JunctionTableManager.cjs +18 -12
- package/dist/production/src/mapper/JunctionTableManager.cjs.map +1 -1
- package/dist/production/src/mapper/JunctionTableManager.js +19 -13
- package/dist/production/src/mapper/JunctionTableManager.js.map +1 -1
- package/dist/production/src/mapper/Mapper.cjs +111 -37
- package/dist/production/src/mapper/Mapper.cjs.map +1 -1
- package/dist/production/src/mapper/Mapper.js +112 -38
- package/dist/production/src/mapper/Mapper.js.map +1 -1
- package/dist/production/src/mapper/MapperFactory.cjs +7 -4
- package/dist/production/src/mapper/MapperFactory.cjs.map +1 -1
- package/dist/production/src/mapper/MapperFactory.js +7 -4
- package/dist/production/src/mapper/MapperFactory.js.map +1 -1
- package/dist/production/src/mapper/MutationProcessorHelper.cjs +12 -0
- package/dist/production/src/mapper/MutationProcessorHelper.cjs.map +1 -1
- package/dist/production/src/mapper/MutationProcessorHelper.js +13 -1
- package/dist/production/src/mapper/MutationProcessorHelper.js.map +1 -1
- package/dist/production/src/mapper/Result.cjs +1 -0
- package/dist/production/src/mapper/Result.cjs.map +1 -1
- package/dist/production/src/mapper/Result.js +1 -0
- package/dist/production/src/mapper/Result.js.map +1 -1
- package/dist/production/src/mapper/delete/DeleteExecutor.cjs +15 -8
- package/dist/production/src/mapper/delete/DeleteExecutor.cjs.map +1 -1
- package/dist/production/src/mapper/delete/DeleteExecutor.js +15 -8
- package/dist/production/src/mapper/delete/DeleteExecutor.js.map +1 -1
- package/dist/production/src/mapper/insert/InsertBuilder.cjs +3 -2
- package/dist/production/src/mapper/insert/InsertBuilder.cjs.map +1 -1
- package/dist/production/src/mapper/insert/InsertBuilder.js +3 -2
- package/dist/production/src/mapper/insert/InsertBuilder.js.map +1 -1
- package/dist/production/src/mapper/insert/InsertBuilderFactory.cjs +2 -2
- package/dist/production/src/mapper/insert/InsertBuilderFactory.cjs.map +1 -1
- package/dist/production/src/mapper/insert/InsertBuilderFactory.js +2 -2
- package/dist/production/src/mapper/insert/InsertBuilderFactory.js.map +1 -1
- package/dist/production/src/mapper/insert/Inserter.cjs +3 -3
- package/dist/production/src/mapper/insert/Inserter.cjs.map +1 -1
- package/dist/production/src/mapper/insert/Inserter.js +3 -3
- package/dist/production/src/mapper/insert/Inserter.js.map +1 -1
- package/dist/production/src/mapper/insert/SqlCreateInputProcessor.cjs +3 -2
- package/dist/production/src/mapper/insert/SqlCreateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/insert/SqlCreateInputProcessor.js +3 -2
- package/dist/production/src/mapper/insert/SqlCreateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.cjs +9 -8
- package/dist/production/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.js +9 -8
- package/dist/production/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.cjs +4 -4
- package/dist/production/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.js +4 -4
- package/dist/production/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/insert/relations/OneHasManyCreateInputProcessor.cjs +3 -3
- package/dist/production/src/mapper/insert/relations/OneHasManyCreateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/insert/relations/OneHasManyCreateInputProcessor.js +3 -3
- package/dist/production/src/mapper/insert/relations/OneHasManyCreateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.cjs +7 -7
- package/dist/production/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.js +7 -7
- package/dist/production/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.cjs +6 -6
- package/dist/production/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.js +6 -6
- package/dist/production/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/select/ConditionBuilder.cjs +8 -1
- package/dist/production/src/mapper/select/ConditionBuilder.cjs.map +1 -1
- package/dist/production/src/mapper/select/ConditionBuilder.js +8 -1
- package/dist/production/src/mapper/select/ConditionBuilder.js.map +1 -1
- package/dist/production/src/mapper/select/JoinBuilder.cjs +26 -4
- package/dist/production/src/mapper/select/JoinBuilder.cjs.map +1 -1
- package/dist/production/src/mapper/select/JoinBuilder.js +27 -5
- package/dist/production/src/mapper/select/JoinBuilder.js.map +1 -1
- package/dist/production/src/mapper/select/OrderByBuilder.cjs +84 -15
- package/dist/production/src/mapper/select/OrderByBuilder.cjs.map +1 -1
- package/dist/production/src/mapper/select/OrderByBuilder.js +86 -17
- package/dist/production/src/mapper/select/OrderByBuilder.js.map +1 -1
- package/dist/production/src/mapper/select/OrderByHelper.cjs +17 -7
- package/dist/production/src/mapper/select/OrderByHelper.cjs.map +1 -1
- package/dist/production/src/mapper/select/OrderByHelper.js +17 -7
- package/dist/production/src/mapper/select/OrderByHelper.js.map +1 -1
- package/dist/production/src/mapper/select/Path.cjs +25 -3
- package/dist/production/src/mapper/select/Path.cjs.map +1 -1
- package/dist/production/src/mapper/select/Path.js +26 -4
- package/dist/production/src/mapper/select/Path.js.map +1 -1
- package/dist/production/src/mapper/select/RelationFetcher.cjs +6 -5
- package/dist/production/src/mapper/select/RelationFetcher.cjs.map +1 -1
- package/dist/production/src/mapper/select/RelationFetcher.js +6 -5
- package/dist/production/src/mapper/select/RelationFetcher.js.map +1 -1
- package/dist/production/src/mapper/select/SelectBuilder.cjs +15 -21
- package/dist/production/src/mapper/select/SelectBuilder.cjs.map +1 -1
- package/dist/production/src/mapper/select/SelectBuilder.js +13 -19
- package/dist/production/src/mapper/select/SelectBuilder.js.map +1 -1
- package/dist/production/src/mapper/select/SelectHydrator.cjs +92 -31
- package/dist/production/src/mapper/select/SelectHydrator.cjs.map +1 -1
- package/dist/production/src/mapper/select/SelectHydrator.js +92 -31
- package/dist/production/src/mapper/select/SelectHydrator.js.map +1 -1
- package/dist/production/src/mapper/select/WhereBuilder.cjs +261 -47
- package/dist/production/src/mapper/select/WhereBuilder.cjs.map +1 -1
- package/dist/production/src/mapper/select/WhereBuilder.js +262 -48
- package/dist/production/src/mapper/select/WhereBuilder.js.map +1 -1
- package/dist/production/src/mapper/select/getFieldReadPredicate.cjs +8 -0
- package/dist/production/src/mapper/select/getFieldReadPredicate.cjs.map +1 -0
- package/dist/production/src/mapper/select/getFieldReadPredicate.js +8 -0
- package/dist/production/src/mapper/select/getFieldReadPredicate.js.map +1 -0
- package/dist/production/src/mapper/select/handlers/FieldsVisitor.cjs +9 -13
- package/dist/production/src/mapper/select/handlers/FieldsVisitor.cjs.map +1 -1
- package/dist/production/src/mapper/select/handlers/FieldsVisitor.js +10 -14
- package/dist/production/src/mapper/select/handlers/FieldsVisitor.js.map +1 -1
- package/dist/production/src/mapper/select/handlers/MetaHandler.cjs +6 -2
- package/dist/production/src/mapper/select/handlers/MetaHandler.cjs.map +1 -1
- package/dist/production/src/mapper/select/handlers/MetaHandler.js +6 -2
- package/dist/production/src/mapper/select/handlers/MetaHandler.js.map +1 -1
- package/dist/production/src/mapper/select/optimizer/WhereOptimizer.cjs +229 -3
- package/dist/production/src/mapper/select/optimizer/WhereOptimizer.cjs.map +1 -1
- package/dist/production/src/mapper/select/optimizer/WhereOptimizer.js +230 -4
- package/dist/production/src/mapper/select/optimizer/WhereOptimizer.js.map +1 -1
- package/dist/production/src/mapper/select/optimizer/WhereReplacer.cjs +3 -3
- package/dist/production/src/mapper/select/optimizer/WhereReplacer.cjs.map +1 -1
- package/dist/production/src/mapper/select/optimizer/WhereReplacer.js +1 -1
- package/dist/production/src/mapper/select/optimizer/WhereReplacer.js.map +1 -1
- package/dist/production/src/mapper/update/SqlUpdateInputProcessor.cjs +9 -5
- package/dist/production/src/mapper/update/SqlUpdateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/update/SqlUpdateInputProcessor.js +10 -6
- package/dist/production/src/mapper/update/SqlUpdateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/update/UpdateBuilder.cjs +35 -2
- package/dist/production/src/mapper/update/UpdateBuilder.cjs.map +1 -1
- package/dist/production/src/mapper/update/UpdateBuilder.js +36 -3
- package/dist/production/src/mapper/update/UpdateBuilder.js.map +1 -1
- package/dist/production/src/mapper/update/UpdateBuilderFactory.cjs +3 -2
- package/dist/production/src/mapper/update/UpdateBuilderFactory.cjs.map +1 -1
- package/dist/production/src/mapper/update/UpdateBuilderFactory.js +3 -2
- package/dist/production/src/mapper/update/UpdateBuilderFactory.js.map +1 -1
- package/dist/production/src/mapper/update/Updater.cjs +12 -6
- package/dist/production/src/mapper/update/Updater.cjs.map +1 -1
- package/dist/production/src/mapper/update/Updater.js +13 -7
- package/dist/production/src/mapper/update/Updater.js.map +1 -1
- package/dist/production/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.cjs +33 -19
- package/dist/production/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.js +33 -19
- package/dist/production/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.cjs +13 -11
- package/dist/production/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.js +13 -11
- package/dist/production/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/update/relations/OneHasManyUpdateInputProcessor.cjs +17 -8
- package/dist/production/src/mapper/update/relations/OneHasManyUpdateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/update/relations/OneHasManyUpdateInputProcessor.js +17 -8
- package/dist/production/src/mapper/update/relations/OneHasManyUpdateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.cjs +19 -16
- package/dist/production/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.js +19 -16
- package/dist/production/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.cjs +19 -16
- package/dist/production/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.js +19 -16
- package/dist/production/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/update/relations/SetManyRelationHelper.cjs +123 -0
- package/dist/production/src/mapper/update/relations/SetManyRelationHelper.cjs.map +1 -0
- package/dist/production/src/mapper/update/relations/SetManyRelationHelper.js +123 -0
- package/dist/production/src/mapper/update/relations/SetManyRelationHelper.js.map +1 -0
- package/dist/production/src/resolvers/GraphQlQueryAstFactory.cjs.map +1 -1
- package/dist/production/src/resolvers/GraphQlQueryAstFactory.js.map +1 -1
- package/dist/production/src/resolvers/MutationResolver.cjs +76 -79
- package/dist/production/src/resolvers/MutationResolver.cjs.map +1 -1
- package/dist/production/src/resolvers/MutationResolver.js +78 -81
- package/dist/production/src/resolvers/MutationResolver.js.map +1 -1
- package/dist/production/src/resolvers/ReadHelpers.cjs +17 -6
- package/dist/production/src/resolvers/ReadHelpers.cjs.map +1 -1
- package/dist/production/src/resolvers/ReadHelpers.js +17 -6
- package/dist/production/src/resolvers/ReadHelpers.js.map +1 -1
- package/dist/production/src/resolvers/ReadResolver.cjs +27 -22
- package/dist/production/src/resolvers/ReadResolver.cjs.map +1 -1
- package/dist/production/src/resolvers/ReadResolver.js +27 -22
- package/dist/production/src/resolvers/ReadResolver.js.map +1 -1
- package/dist/production/src/schema/CustomTypesProvider.cjs +35 -14
- package/dist/production/src/schema/CustomTypesProvider.cjs.map +1 -1
- package/dist/production/src/schema/CustomTypesProvider.js +36 -15
- package/dist/production/src/schema/CustomTypesProvider.js.map +1 -1
- package/dist/production/src/schema/EntityTypeProvider.cjs +11 -7
- package/dist/production/src/schema/EntityTypeProvider.cjs.map +1 -1
- package/dist/production/src/schema/EntityTypeProvider.js +11 -7
- package/dist/production/src/schema/EntityTypeProvider.js.map +1 -1
- package/dist/production/src/schema/GraphQlSchemaBuilder.cjs +16 -6
- package/dist/production/src/schema/GraphQlSchemaBuilder.cjs.map +1 -1
- package/dist/production/src/schema/GraphQlSchemaBuilder.js +16 -6
- package/dist/production/src/schema/GraphQlSchemaBuilder.js.map +1 -1
- package/dist/production/src/schema/GraphQlSchemaBuilderFactory.cjs +39 -11
- package/dist/production/src/schema/GraphQlSchemaBuilderFactory.cjs.map +1 -1
- package/dist/production/src/schema/GraphQlSchemaBuilderFactory.js +39 -11
- package/dist/production/src/schema/GraphQlSchemaBuilderFactory.js.map +1 -1
- package/dist/production/src/schema/MutationProvider.cjs +38 -16
- package/dist/production/src/schema/MutationProvider.cjs.map +1 -1
- package/dist/production/src/schema/MutationProvider.js +38 -16
- package/dist/production/src/schema/MutationProvider.js.map +1 -1
- package/dist/production/src/schema/OrderByTypeProvider.cjs +8 -2
- package/dist/production/src/schema/OrderByTypeProvider.cjs.map +1 -1
- package/dist/production/src/schema/OrderByTypeProvider.js +9 -3
- package/dist/production/src/schema/OrderByTypeProvider.js.map +1 -1
- package/dist/production/src/schema/QueryProvider.cjs +12 -11
- package/dist/production/src/schema/QueryProvider.cjs.map +1 -1
- package/dist/production/src/schema/QueryProvider.js +12 -11
- package/dist/production/src/schema/QueryProvider.js.map +1 -1
- package/dist/production/src/schema/ValidationQueriesProvider.cjs +2 -0
- package/dist/production/src/schema/ValidationQueriesProvider.cjs.map +1 -1
- package/dist/production/src/schema/ValidationQueriesProvider.js +2 -0
- package/dist/production/src/schema/ValidationQueriesProvider.js.map +1 -1
- package/dist/production/src/schema/WhereTypeProvider.cjs +17 -5
- package/dist/production/src/schema/WhereTypeProvider.cjs.map +1 -1
- package/dist/production/src/schema/WhereTypeProvider.js +18 -6
- package/dist/production/src/schema/WhereTypeProvider.js.map +1 -1
- package/dist/production/src/schema/calendarDate.cjs +21 -0
- package/dist/production/src/schema/calendarDate.cjs.map +1 -0
- package/dist/production/src/schema/calendarDate.js +21 -0
- package/dist/production/src/schema/calendarDate.js.map +1 -0
- package/dist/production/src/schema/entities/FieldTypeVisitor.cjs +15 -2
- package/dist/production/src/schema/entities/FieldTypeVisitor.cjs.map +1 -1
- package/dist/production/src/schema/entities/FieldTypeVisitor.js +15 -2
- package/dist/production/src/schema/entities/FieldTypeVisitor.js.map +1 -1
- package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.cjs +11 -3
- package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.cjs.map +1 -1
- package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.js +11 -3
- package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.js.map +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs +11 -3
- package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs.map +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.js +11 -3
- package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.js.map +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.cjs +39 -2
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.cjs.map +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.js +40 -3
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.js.map +1 -1
- package/dist/production/src/schema/utils.cjs +10 -0
- package/dist/production/src/schema/utils.cjs.map +1 -1
- package/dist/production/src/schema/utils.js +11 -1
- package/dist/production/src/schema/utils.js.map +1 -1
- package/dist/production/src/schema-json/GraphQLJsBridge.cjs +108 -0
- package/dist/production/src/schema-json/GraphQLJsBridge.cjs.map +1 -0
- package/dist/production/src/schema-json/GraphQLJsBridge.js +108 -0
- package/dist/production/src/schema-json/GraphQLJsBridge.js.map +1 -0
- package/dist/production/src/schema-json/JsonColumnTypes.cjs +102 -0
- package/dist/production/src/schema-json/JsonColumnTypes.cjs.map +1 -0
- package/dist/production/src/schema-json/JsonColumnTypes.js +102 -0
- package/dist/production/src/schema-json/JsonColumnTypes.js.map +1 -0
- package/dist/production/src/schema-json/JsonContentSchemaBuilder.cjs +418 -0
- package/dist/production/src/schema-json/JsonContentSchemaBuilder.cjs.map +1 -0
- package/dist/production/src/schema-json/JsonContentSchemaBuilder.js +418 -0
- package/dist/production/src/schema-json/JsonContentSchemaBuilder.js.map +1 -0
- package/dist/production/src/schema-json/JsonContentSchemaShared.cjs +18 -0
- package/dist/production/src/schema-json/JsonContentSchemaShared.cjs.map +1 -0
- package/dist/production/src/schema-json/JsonContentSchemaShared.js +18 -0
- package/dist/production/src/schema-json/JsonContentSchemaShared.js.map +1 -0
- package/dist/production/src/schema-json/JsonEntityTypes.cjs +206 -0
- package/dist/production/src/schema-json/JsonEntityTypes.cjs.map +1 -0
- package/dist/production/src/schema-json/JsonEntityTypes.js +206 -0
- package/dist/production/src/schema-json/JsonEntityTypes.js.map +1 -0
- package/dist/production/src/schema-json/JsonFilterTypes.cjs +152 -0
- package/dist/production/src/schema-json/JsonFilterTypes.cjs.map +1 -0
- package/dist/production/src/schema-json/JsonFilterTypes.js +152 -0
- package/dist/production/src/schema-json/JsonFilterTypes.js.map +1 -0
- package/dist/production/src/schema-json/JsonInputTypes.cjs +256 -0
- package/dist/production/src/schema-json/JsonInputTypes.cjs.map +1 -0
- package/dist/production/src/schema-json/JsonInputTypes.js +256 -0
- package/dist/production/src/schema-json/JsonInputTypes.js.map +1 -0
- package/dist/production/src/schema-json/JsonIntrospectionExtension.cjs +36 -0
- package/dist/production/src/schema-json/JsonIntrospectionExtension.cjs.map +1 -0
- package/dist/production/src/schema-json/JsonIntrospectionExtension.js +36 -0
- package/dist/production/src/schema-json/JsonIntrospectionExtension.js.map +1 -0
- package/dist/production/src/schema-json/JsonQueryAstFactory.cjs +107 -0
- package/dist/production/src/schema-json/JsonQueryAstFactory.cjs.map +1 -0
- package/dist/production/src/schema-json/JsonQueryAstFactory.js +107 -0
- package/dist/production/src/schema-json/JsonQueryAstFactory.js.map +1 -0
- package/dist/production/src/schema-json/JsonTypeRegistry.cjs +230 -0
- package/dist/production/src/schema-json/JsonTypeRegistry.cjs.map +1 -0
- package/dist/production/src/schema-json/JsonTypeRegistry.js +230 -0
- package/dist/production/src/schema-json/JsonTypeRegistry.js.map +1 -0
- package/dist/production/src/utils/ResolveInfoUtils.cjs.map +1 -1
- package/dist/production/src/utils/ResolveInfoUtils.js.map +1 -1
- package/dist/production/src/utils/uniqueWhereFields.cjs +10 -0
- package/dist/production/src/utils/uniqueWhereFields.cjs.map +1 -1
- package/dist/production/src/utils/uniqueWhereFields.js +10 -0
- package/dist/production/src/utils/uniqueWhereFields.js.map +1 -1
- package/dist/tests/cases/integration/graphQlRequests/delete/acl/throughScope.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/delete/acl/throughScope.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/acl/throughScope.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/acl/throughScope.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/memoryBudget.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/memoryBudget.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/hasManyCellPredicate.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/hasManyCellPredicate.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/impliedReadGuard.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/impliedReadGuard.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/internalColumnAliases.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/internalColumnAliases.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/manyHasManyGuardedJoin.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/manyHasManyGuardedJoin.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/maskedRelationField.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/maskedRelationField.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/mergedRolePredicate.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/mergedRolePredicate.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/metaReadableThroughContext.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/metaReadableThroughContext.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/negationAcrossSubquery.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/negationAcrossSubquery.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/nonAdjacentBackReference.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/nonAdjacentBackReference.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/notOverGuardedHop.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/notOverGuardedHop.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/notOverOrCellPredicate.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/notOverOrCellPredicate.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/orderByCellPredicate.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/orderByCellPredicate.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/throughScope.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/throughScope.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/throughScopeFilter.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/throughScopeFilter.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/throughScopeNullability.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/acl/throughScopeNullability.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/hasOneDataViewFilter.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/hasOneDataViewFilter.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/acl/legacyNoRootRootWrites.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/acl/legacyNoRootRootWrites.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/acl/throughScope.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/acl/throughScope.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/acl/throughScopeJunction.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/acl/throughScopeJunction.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/acl/throughScopeLookup.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/acl/throughScopeLookup.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/acl/throughScopeRootWrites.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/acl/throughScopeRootWrites.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/acl/throughScopeUpdate.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/acl/throughScopeUpdate.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/set.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/set.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/set.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/set.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/set.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/set.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/upsert/acl/throughScope.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/upsert/acl/throughScope.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/utils.d.ts.map +1 -1
- package/dist/tests/cases/integration/graphQlSchema/model.d.ts +1 -1
- package/dist/tests/cases/unit/checkViolationError.test.d.ts +2 -0
- package/dist/tests/cases/unit/checkViolationError.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/dateType.test.d.ts +2 -0
- package/dist/tests/cases/unit/dateType.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/internalColumnAliases.test.d.ts +2 -0
- package/dist/tests/cases/unit/internalColumnAliases.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/introspectionAcl.test.d.ts +2 -0
- package/dist/tests/cases/unit/introspectionAcl.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/mutationSqlError.test.d.ts +2 -0
- package/dist/tests/cases/unit/mutationSqlError.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/pathAlias.test.d.ts +2 -0
- package/dist/tests/cases/unit/pathAlias.test.d.ts.map +1 -0
- package/dist/tests/src/assert.d.ts.map +1 -1
- package/dist/tests/src/tags.d.ts.map +1 -1
- package/dist/tests/src/test.d.ts +12 -0
- package/dist/tests/src/test.d.ts.map +1 -1
- package/dist/tests/src/testGraphql.d.ts +18 -5
- package/dist/tests/src/testGraphql.d.ts.map +1 -1
- package/dist/tests/src/testUuid.d.ts.map +1 -1
- package/dist/tests/tsconfig.tsbuildinfo +1 -1
- package/dist/types/ExecutionContainer.d.ts +4 -2
- package/dist/types/ExecutionContainer.d.ts.map +1 -1
- package/dist/types/acl/AclScope.d.ts +26 -0
- package/dist/types/acl/AclScope.d.ts.map +1 -0
- package/dist/types/acl/Authorizator.d.ts +0 -1
- package/dist/types/acl/Authorizator.d.ts.map +1 -1
- package/dist/types/acl/EvaluatedPredicateReplacer.d.ts +1 -0
- package/dist/types/acl/EvaluatedPredicateReplacer.d.ts.map +1 -1
- package/dist/types/acl/PermissionFactory.d.ts +19 -4
- package/dist/types/acl/PermissionFactory.d.ts.map +1 -1
- package/dist/types/acl/PredicateFactory.d.ts +31 -15
- package/dist/types/acl/PredicateFactory.d.ts.map +1 -1
- package/dist/types/acl/PredicatesInjector.d.ts +66 -12
- package/dist/types/acl/PredicatesInjector.d.ts.map +1 -1
- package/dist/types/acl/VariableInjector.d.ts.map +1 -1
- package/dist/types/acl/VariableUtils.d.ts.map +1 -1
- package/dist/types/acl/index.d.ts +1 -0
- package/dist/types/acl/index.d.ts.map +1 -1
- package/dist/types/exception.d.ts.map +1 -1
- package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.d.ts.map +1 -1
- package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.d.ts +3 -1
- package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.d.ts.map +1 -1
- package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.d.ts.map +1 -1
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.d.ts.map +1 -1
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.d.ts +3 -1
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.d.ts.map +1 -1
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.d.ts.map +1 -1
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.d.ts.map +1 -1
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/input-validation/ColumnValueResolver.d.ts.map +1 -1
- package/dist/types/input-validation/EntityRulesResolver.d.ts.map +1 -1
- package/dist/types/input-validation/JsonSchemaValidator.d.ts.map +1 -1
- package/dist/types/input-validation/QueryAstFactory.d.ts.map +1 -1
- package/dist/types/input-validation/ValidationContext.d.ts.map +1 -1
- package/dist/types/input-validation/ValidationDataSelector.d.ts +2 -1
- package/dist/types/input-validation/ValidationDataSelector.d.ts.map +1 -1
- package/dist/types/input-validation/ValidationEvaluation.d.ts.map +1 -1
- package/dist/types/input-validation/ValidationPath.d.ts.map +1 -1
- package/dist/types/input-validation/dependencies/DependencyCollector.d.ts.map +1 -1
- package/dist/types/input-validation/dependencies/DependencyMerger.d.ts.map +1 -1
- package/dist/types/input-validation/preValidation/CreateInputPreValidationProcessor.d.ts.map +1 -1
- package/dist/types/input-validation/preValidation/InputPreValidator.d.ts.map +1 -1
- package/dist/types/input-validation/preValidation/UpdateInputPreValidationProcessor.d.ts +6 -0
- package/dist/types/input-validation/preValidation/UpdateInputPreValidationProcessor.d.ts.map +1 -1
- package/dist/types/inputProcessing/CreateInputVisitor.d.ts.map +1 -1
- package/dist/types/inputProcessing/FieldNode.d.ts.map +1 -1
- package/dist/types/inputProcessing/ObjectNode.d.ts.map +1 -1
- package/dist/types/inputProcessing/UniqueWhereExpander.d.ts.map +1 -1
- package/dist/types/inputProcessing/UpdateInputProcessor.d.ts +7 -0
- package/dist/types/inputProcessing/UpdateInputProcessor.d.ts.map +1 -1
- package/dist/types/inputProcessing/UpdateInputVisitor.d.ts +2 -0
- package/dist/types/inputProcessing/UpdateInputVisitor.d.ts.map +1 -1
- package/dist/types/introspection/IntrospectionSchemaDefinitionFactory.d.ts.map +1 -1
- package/dist/types/introspection/IntrospectionSchemaFactory.d.ts.map +1 -1
- package/dist/types/introspection/introspection.schema.d.ts.map +1 -1
- package/dist/types/mapper/CheckedPrimary.d.ts.map +1 -1
- package/dist/types/mapper/ColumnValue.d.ts.map +1 -1
- package/dist/types/mapper/Constraints.d.ts.map +1 -1
- package/dist/types/mapper/ErrorUtils.d.ts.map +1 -1
- package/dist/types/mapper/EventManager.d.ts +9 -9
- package/dist/types/mapper/EventManager.d.ts.map +1 -1
- package/dist/types/mapper/JunctionTableManager.d.ts +17 -5
- package/dist/types/mapper/JunctionTableManager.d.ts.map +1 -1
- package/dist/types/mapper/Mapper.d.ts +26 -13
- package/dist/types/mapper/Mapper.d.ts.map +1 -1
- package/dist/types/mapper/MapperFactory.d.ts +3 -2
- package/dist/types/mapper/MapperFactory.d.ts.map +1 -1
- package/dist/types/mapper/MutationProcessorHelper.d.ts +3 -0
- package/dist/types/mapper/MutationProcessorHelper.d.ts.map +1 -1
- package/dist/types/mapper/Result.d.ts +2 -1
- package/dist/types/mapper/Result.d.ts.map +1 -1
- package/dist/types/mapper/delete/DeleteExecutor.d.ts +6 -2
- package/dist/types/mapper/delete/DeleteExecutor.d.ts.map +1 -1
- package/dist/types/mapper/delete/DeleteState.d.ts.map +1 -1
- package/dist/types/mapper/delete/DeletedEntitiesStorage.d.ts.map +1 -1
- package/dist/types/mapper/delete/helpers.d.ts +1 -1
- package/dist/types/mapper/delete/helpers.d.ts.map +1 -1
- package/dist/types/mapper/insert/InsertBuilder.d.ts +3 -2
- package/dist/types/mapper/insert/InsertBuilder.d.ts.map +1 -1
- package/dist/types/mapper/insert/InsertBuilderFactory.d.ts +2 -2
- package/dist/types/mapper/insert/InsertBuilderFactory.d.ts.map +1 -1
- package/dist/types/mapper/insert/Inserter.d.ts +2 -1
- package/dist/types/mapper/insert/Inserter.d.ts.map +1 -1
- package/dist/types/mapper/insert/SqlCreateInputProcessor.d.ts +6 -1
- package/dist/types/mapper/insert/SqlCreateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/insert/relations/ManyHasManyCreateInputProcessor.d.ts +7 -2
- package/dist/types/mapper/insert/relations/ManyHasManyCreateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/insert/relations/ManyHasOneCreateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/insert/relations/OneHasManyCreateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.d.ts +1 -1
- package/dist/types/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/select/ConditionBuilder.d.ts.map +1 -1
- package/dist/types/mapper/select/JoinBuilder.d.ts +8 -2
- package/dist/types/mapper/select/JoinBuilder.d.ts.map +1 -1
- package/dist/types/mapper/select/JoinVisitor.d.ts.map +1 -1
- package/dist/types/mapper/select/OrderByBuilder.d.ts +18 -2
- package/dist/types/mapper/select/OrderByBuilder.d.ts.map +1 -1
- package/dist/types/mapper/select/OrderByHelper.d.ts +2 -0
- package/dist/types/mapper/select/OrderByHelper.d.ts.map +1 -1
- package/dist/types/mapper/select/Path.d.ts +12 -0
- package/dist/types/mapper/select/Path.d.ts.map +1 -1
- package/dist/types/mapper/select/RelationFetcher.d.ts.map +1 -1
- package/dist/types/mapper/select/SelectBuilder.d.ts.map +1 -1
- package/dist/types/mapper/select/SelectExecutionHandler.d.ts +5 -0
- package/dist/types/mapper/select/SelectExecutionHandler.d.ts.map +1 -1
- package/dist/types/mapper/select/SelectHydrator.d.ts +10 -1
- package/dist/types/mapper/select/SelectHydrator.d.ts.map +1 -1
- package/dist/types/mapper/select/WhereBuilder.d.ts +33 -1
- package/dist/types/mapper/select/WhereBuilder.d.ts.map +1 -1
- package/dist/types/mapper/select/getFieldReadPredicate.d.ts +4 -0
- package/dist/types/mapper/select/getFieldReadPredicate.d.ts.map +1 -0
- package/dist/types/mapper/select/handlers/FieldsVisitor.d.ts +0 -1
- package/dist/types/mapper/select/handlers/FieldsVisitor.d.ts.map +1 -1
- package/dist/types/mapper/select/handlers/FieldsVisitorFactory.d.ts.map +1 -1
- package/dist/types/mapper/select/handlers/MetaHandler.d.ts.map +1 -1
- package/dist/types/mapper/select/index.d.ts +1 -0
- package/dist/types/mapper/select/index.d.ts.map +1 -1
- package/dist/types/mapper/select/optimizer/ConditionOptimizer.d.ts.map +1 -1
- package/dist/types/mapper/select/optimizer/WhereOptimizer.d.ts +36 -0
- package/dist/types/mapper/select/optimizer/WhereOptimizer.d.ts.map +1 -1
- package/dist/types/mapper/select/optimizer/WhereReplacer.d.ts.map +1 -1
- package/dist/types/mapper/select/optimizer/helpers.d.ts +1 -1
- package/dist/types/mapper/select/optimizer/helpers.d.ts.map +1 -1
- package/dist/types/mapper/types.d.ts +8 -1
- package/dist/types/mapper/types.d.ts.map +1 -1
- package/dist/types/mapper/update/SqlUpdateInputProcessor.d.ts +6 -1
- package/dist/types/mapper/update/SqlUpdateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/update/UpdateBuilder.d.ts +18 -2
- package/dist/types/mapper/update/UpdateBuilder.d.ts.map +1 -1
- package/dist/types/mapper/update/UpdateBuilderFactory.d.ts +2 -2
- package/dist/types/mapper/update/UpdateBuilderFactory.d.ts.map +1 -1
- package/dist/types/mapper/update/Updater.d.ts +3 -2
- package/dist/types/mapper/update/Updater.d.ts.map +1 -1
- package/dist/types/mapper/update/relations/ManyHasManyUpdateInputProcessor.d.ts +15 -3
- package/dist/types/mapper/update/relations/ManyHasManyUpdateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/update/relations/ManyHasOneUpdateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/update/relations/OneHasManyUpdateInputProcessor.d.ts +5 -0
- package/dist/types/mapper/update/relations/OneHasManyUpdateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/update/relations/SetManyRelationHelper.d.ts +67 -0
- package/dist/types/mapper/update/relations/SetManyRelationHelper.d.ts.map +1 -0
- package/dist/types/resolvers/GraphQlQueryAstFactory.d.ts +4 -3
- package/dist/types/resolvers/GraphQlQueryAstFactory.d.ts.map +1 -1
- package/dist/types/resolvers/MutationResolver.d.ts +14 -11
- package/dist/types/resolvers/MutationResolver.d.ts.map +1 -1
- package/dist/types/resolvers/ReadHelpers.d.ts +1 -2
- package/dist/types/resolvers/ReadHelpers.d.ts.map +1 -1
- package/dist/types/resolvers/ReadResolver.d.ts +8 -10
- package/dist/types/resolvers/ReadResolver.d.ts.map +1 -1
- package/dist/types/resolvers/RefreshViewResolver.d.ts.map +1 -1
- package/dist/types/resolvers/ValidationResolver.d.ts.map +1 -1
- package/dist/types/schema/ColumnTypeResolver.d.ts.map +1 -1
- package/dist/types/schema/ConditionTypeProvider.d.ts.map +1 -1
- package/dist/types/schema/CustomTypesProvider.d.ts.map +1 -1
- package/dist/types/schema/EntityTypeProvider.d.ts +2 -1
- package/dist/types/schema/EntityTypeProvider.d.ts.map +1 -1
- package/dist/types/schema/EnumsProvider.d.ts.map +1 -1
- package/dist/types/schema/FieldAccessVisitor.d.ts.map +1 -1
- package/dist/types/schema/GraphQlSchemaBuilder.d.ts.map +1 -1
- package/dist/types/schema/GraphQlSchemaBuilderFactory.d.ts +10 -2
- package/dist/types/schema/GraphQlSchemaBuilderFactory.d.ts.map +1 -1
- package/dist/types/schema/MutationProvider.d.ts +7 -1
- package/dist/types/schema/MutationProvider.d.ts.map +1 -1
- package/dist/types/schema/OperationExtension.d.ts.map +1 -1
- package/dist/types/schema/OrderByTypeProvider.d.ts.map +1 -1
- package/dist/types/schema/PaginatedFieldConfigFactory.d.ts.map +1 -1
- package/dist/types/schema/QueryProvider.d.ts +2 -1
- package/dist/types/schema/QueryProvider.d.ts.map +1 -1
- package/dist/types/schema/RefreshViewMutationProvider.d.ts.map +1 -1
- package/dist/types/schema/ValidationQueriesProvider.d.ts.map +1 -1
- package/dist/types/schema/WhereTypeProvider.d.ts.map +1 -1
- package/dist/types/schema/calendarDate.d.ts +6 -0
- package/dist/types/schema/calendarDate.d.ts.map +1 -0
- package/dist/types/schema/entities/FieldArgsVisitor.d.ts.map +1 -1
- package/dist/types/schema/entities/FieldTypeVisitor.d.ts +4 -1
- package/dist/types/schema/entities/FieldTypeVisitor.d.ts.map +1 -1
- package/dist/types/schema/index.d.ts +1 -0
- package/dist/types/schema/index.d.ts.map +1 -1
- package/dist/types/schema/mutations/ConnectOrCreateRelationInputProvider.d.ts.map +1 -1
- package/dist/types/schema/mutations/CreateEntityInputFieldVisitor.d.ts.map +1 -1
- package/dist/types/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.d.ts.map +1 -1
- package/dist/types/schema/mutations/CreateEntityRelationInputFieldVisitor.d.ts.map +1 -1
- package/dist/types/schema/mutations/CreateEntityRelationInputProvider.d.ts.map +1 -1
- package/dist/types/schema/mutations/EntityInputProvider.d.ts.map +1 -1
- package/dist/types/schema/mutations/UpdateEntityInputFieldVisitor.d.ts +3 -0
- package/dist/types/schema/mutations/UpdateEntityInputFieldVisitor.d.ts.map +1 -1
- package/dist/types/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.d.ts.map +1 -1
- package/dist/types/schema/mutations/UpdateEntityRelationInputFieldVisitor.d.ts +1 -0
- package/dist/types/schema/mutations/UpdateEntityRelationInputFieldVisitor.d.ts.map +1 -1
- package/dist/types/schema/mutations/UpdateEntityRelationInputProvider.d.ts.map +1 -1
- package/dist/types/schema/utils.d.ts +7 -0
- package/dist/types/schema/utils.d.ts.map +1 -1
- package/dist/types/schema-json/GraphQLJsBridge.d.ts +12 -0
- package/dist/types/schema-json/GraphQLJsBridge.d.ts.map +1 -0
- package/dist/types/schema-json/JsonColumnTypes.d.ts +23 -0
- package/dist/types/schema-json/JsonColumnTypes.d.ts.map +1 -0
- package/dist/types/schema-json/JsonContentSchemaBuilder.d.ts +56 -0
- package/dist/types/schema-json/JsonContentSchemaBuilder.d.ts.map +1 -0
- package/dist/types/schema-json/JsonContentSchemaShared.d.ts +19 -0
- package/dist/types/schema-json/JsonContentSchemaShared.d.ts.map +1 -0
- package/dist/types/schema-json/JsonEntityTypes.d.ts +29 -0
- package/dist/types/schema-json/JsonEntityTypes.d.ts.map +1 -0
- package/dist/types/schema-json/JsonFilterTypes.d.ts +21 -0
- package/dist/types/schema-json/JsonFilterTypes.d.ts.map +1 -0
- package/dist/types/schema-json/JsonInputTypes.d.ts +36 -0
- package/dist/types/schema-json/JsonInputTypes.d.ts.map +1 -0
- package/dist/types/schema-json/JsonIntrospectionExtension.d.ts +5 -0
- package/dist/types/schema-json/JsonIntrospectionExtension.d.ts.map +1 -0
- package/dist/types/schema-json/JsonQueryAstFactory.d.ts +18 -0
- package/dist/types/schema-json/JsonQueryAstFactory.d.ts.map +1 -0
- package/dist/types/schema-json/JsonTypeRegistry.d.ts +57 -0
- package/dist/types/schema-json/JsonTypeRegistry.d.ts.map +1 -0
- package/dist/types/schema-json/index.d.ts +7 -0
- package/dist/types/schema-json/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/types/utils/Mutex.d.ts.map +1 -1
- package/dist/types/utils/ResolveInfoUtils.d.ts +4 -2
- package/dist/types/utils/ResolveInfoUtils.d.ts.map +1 -1
- package/dist/types/utils/accessor.d.ts.map +1 -1
- package/dist/types/utils/isIt.d.ts.map +1 -1
- package/dist/types/utils/paginationUtils.d.ts.map +1 -1
- package/dist/types/utils/promises.d.ts.map +1 -1
- package/dist/types/utils/singletonFactory.d.ts.map +1 -1
- package/dist/types/utils/strings.d.ts.map +1 -1
- package/dist/types/utils/tuple.d.ts.map +1 -1
- package/dist/types/utils/uniqueWhereFields.d.ts.map +1 -1
- package/dist/types/utils/viewComputedId.d.ts.map +1 -1
- package/package.json +11 -10
- package/src/ExecutionContainer.ts +20 -8
- package/src/acl/AclScope.ts +29 -0
- package/src/acl/Authorizator.ts +7 -5
- package/src/acl/EvaluatedPredicateReplacer.ts +6 -2
- package/src/acl/PermissionFactory.ts +68 -104
- package/src/acl/PredicateFactory.ts +131 -28
- package/src/acl/PredicatesInjector.ts +135 -156
- package/src/acl/VariableInjector.ts +8 -3
- package/src/acl/index.ts +1 -0
- package/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.ts +14 -3
- package/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.ts +3 -0
- package/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.ts +10 -2
- package/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.ts +9 -7
- package/src/index.ts +1 -0
- package/src/input-validation/ValidationDataSelector.ts +3 -2
- package/src/input-validation/preValidation/UpdateInputPreValidationProcessor.ts +29 -0
- package/src/inputProcessing/UpdateInputProcessor.ts +6 -0
- package/src/inputProcessing/UpdateInputVisitor.ts +64 -2
- package/src/introspection/IntrospectionSchemaFactory.ts +13 -6
- package/src/mapper/ErrorUtils.ts +22 -1
- package/src/mapper/JunctionTableManager.ts +28 -6
- package/src/mapper/Mapper.ts +137 -29
- package/src/mapper/MapperFactory.ts +7 -3
- package/src/mapper/MutationProcessorHelper.ts +14 -0
- package/src/mapper/Result.ts +1 -0
- package/src/mapper/delete/DeleteExecutor.ts +13 -7
- package/src/mapper/insert/InsertBuilder.ts +3 -2
- package/src/mapper/insert/InsertBuilderFactory.ts +3 -3
- package/src/mapper/insert/Inserter.ts +4 -2
- package/src/mapper/insert/SqlCreateInputProcessor.ts +4 -1
- package/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.ts +10 -7
- package/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.ts +4 -4
- package/src/mapper/insert/relations/OneHasManyCreateInputProcessor.ts +3 -3
- package/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.ts +7 -7
- package/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.ts +6 -6
- package/src/mapper/select/ConditionBuilder.ts +12 -1
- package/src/mapper/select/JoinBuilder.ts +39 -6
- package/src/mapper/select/OrderByBuilder.ts +140 -19
- package/src/mapper/select/OrderByHelper.ts +19 -10
- package/src/mapper/select/Path.ts +36 -5
- package/src/mapper/select/RelationFetcher.ts +7 -9
- package/src/mapper/select/SelectBuilder.ts +12 -20
- package/src/mapper/select/SelectExecutionHandler.ts +5 -0
- package/src/mapper/select/SelectHydrator.ts +113 -31
- package/src/mapper/select/WhereBuilder.ts +322 -50
- package/src/mapper/select/getFieldReadPredicate.ts +12 -0
- package/src/mapper/select/handlers/FieldsVisitor.ts +10 -15
- package/src/mapper/select/handlers/MetaHandler.ts +5 -3
- package/src/mapper/select/index.ts +1 -0
- package/src/mapper/select/optimizer/WhereOptimizer.ts +279 -6
- package/src/mapper/select/optimizer/WhereReplacer.ts +1 -1
- package/src/mapper/types.ts +16 -1
- package/src/mapper/update/SqlUpdateInputProcessor.ts +8 -2
- package/src/mapper/update/UpdateBuilder.ts +41 -3
- package/src/mapper/update/UpdateBuilderFactory.ts +3 -2
- package/src/mapper/update/Updater.ts +11 -4
- package/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.ts +38 -18
- package/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.ts +11 -9
- package/src/mapper/update/relations/OneHasManyUpdateInputProcessor.ts +17 -5
- package/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.ts +16 -13
- package/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.ts +16 -13
- package/src/mapper/update/relations/SetManyRelationHelper.ts +199 -0
- package/src/resolvers/GraphQlQueryAstFactory.ts +2 -2
- package/src/resolvers/MutationResolver.ts +87 -85
- package/src/resolvers/ReadHelpers.ts +2 -5
- package/src/resolvers/ReadResolver.ts +29 -23
- package/src/schema/CustomTypesProvider.ts +40 -15
- package/src/schema/EntityTypeProvider.ts +10 -5
- package/src/schema/GraphQlSchemaBuilder.ts +18 -7
- package/src/schema/GraphQlSchemaBuilderFactory.ts +24 -8
- package/src/schema/MutationProvider.ts +41 -16
- package/src/schema/OrderByTypeProvider.ts +9 -3
- package/src/schema/QueryProvider.ts +13 -10
- package/src/schema/ValidationQueriesProvider.ts +2 -0
- package/src/schema/WhereTypeProvider.ts +18 -6
- package/src/schema/calendarDate.ts +26 -0
- package/src/schema/entities/FieldTypeVisitor.ts +17 -1
- package/src/schema/index.ts +1 -0
- package/src/schema/mutations/CreateEntityInputFieldVisitor.ts +10 -2
- package/src/schema/mutations/UpdateEntityInputFieldVisitor.ts +10 -2
- package/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.ts +66 -7
- package/src/schema/utils.ts +14 -0
- package/src/schema-json/GraphQLJsBridge.ts +142 -0
- package/src/schema-json/JsonColumnTypes.ts +116 -0
- package/src/schema-json/JsonContentSchemaBuilder.ts +501 -0
- package/src/schema-json/JsonContentSchemaShared.ts +19 -0
- package/src/schema-json/JsonEntityTypes.ts +237 -0
- package/src/schema-json/JsonFilterTypes.ts +159 -0
- package/src/schema-json/JsonInputTypes.ts +305 -0
- package/src/schema-json/JsonIntrospectionExtension.ts +37 -0
- package/src/schema-json/JsonQueryAstFactory.ts +128 -0
- package/src/schema-json/JsonTypeRegistry.ts +286 -0
- package/src/schema-json/index.ts +6 -0
- package/src/tsconfig.json +3 -1
- package/src/utils/ResolveInfoUtils.ts +2 -2
- package/src/utils/uniqueWhereFields.ts +14 -0
- package/tests/cases/bugs/bug102.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/delete/acl/throughScope.test.ts +320 -0
- package/tests/cases/integration/graphQlRequests/delete/deleteById.test.ts +4 -3
- package/tests/cases/integration/graphQlRequests/insert/acl/throughScope.test.ts +502 -0
- package/tests/cases/integration/graphQlRequests/insert/memoryBudget.test.ts +96 -0
- package/tests/cases/integration/graphQlRequests/query/acl/differentRowAndFieldPredicate.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/query/acl/fieldRestrictedByLocale.test.ts +12 -10
- package/tests/cases/integration/graphQlRequests/query/acl/hasManyCellPredicate.test.ts +54 -0
- package/tests/cases/integration/graphQlRequests/query/acl/impliedReadGuard.test.ts +142 -0
- package/tests/cases/integration/graphQlRequests/query/acl/internalColumnAliases.test.ts +326 -0
- package/tests/cases/integration/graphQlRequests/query/acl/isNullAcl.test.ts +7 -4
- package/tests/cases/integration/graphQlRequests/query/acl/manyHasManyGuardedJoin.test.ts +64 -0
- package/tests/cases/integration/graphQlRequests/query/acl/maskedRelationField.test.ts +124 -0
- package/tests/cases/integration/graphQlRequests/query/acl/mergedRolePredicate.test.ts +124 -0
- package/tests/cases/integration/graphQlRequests/query/acl/metaReadableThroughContext.test.ts +315 -0
- package/tests/cases/integration/graphQlRequests/query/acl/negationAcrossSubquery.test.ts +55 -0
- package/tests/cases/integration/graphQlRequests/query/acl/nestedPredicate.test.ts +7 -6
- package/tests/cases/integration/graphQlRequests/query/acl/nonAdjacentBackReference.test.ts +141 -0
- package/tests/cases/integration/graphQlRequests/query/acl/notOverGuardedHop.test.ts +320 -0
- package/tests/cases/integration/graphQlRequests/query/acl/notOverOrCellPredicate.test.ts +156 -0
- package/tests/cases/integration/graphQlRequests/query/acl/orderByCellPredicate.test.ts +513 -0
- package/tests/cases/integration/graphQlRequests/query/acl/predicateElimination.test.ts +25 -23
- package/tests/cases/integration/graphQlRequests/query/acl/relationAcl.test.ts +12 -9
- package/tests/cases/integration/graphQlRequests/query/acl/rowPredicateSubset.test.ts +6 -6
- package/tests/cases/integration/graphQlRequests/query/acl/throughScope.test.ts +350 -0
- package/tests/cases/integration/graphQlRequests/query/acl/throughScopeFilter.test.ts +203 -0
- package/tests/cases/integration/graphQlRequests/query/acl/throughScopeNullability.test.ts +127 -0
- package/tests/cases/integration/graphQlRequests/query/filter/backReferencedFilter.test.ts +3 -1
- package/tests/cases/integration/graphQlRequests/query/filter/hasOneDataViewFilter.test.ts +79 -0
- package/tests/cases/integration/graphQlRequests/query/graphqlFeatures/alias.test.ts +46 -3
- package/tests/cases/integration/graphQlRequests/query/graphqlFeatures/fragments.test.ts +8 -8
- package/tests/cases/integration/graphQlRequests/query/misc/reducedHasMany.test.ts +10 -10
- package/tests/cases/integration/graphQlRequests/query/pagination/hasManyLimit.test.ts +54 -8
- package/tests/cases/integration/graphQlRequests/query/pagination/paginate.test.ts +5 -4
- package/tests/cases/integration/graphQlRequests/query/pagination/paginateAliased.test.ts +5 -4
- package/tests/cases/integration/graphQlRequests/query/relations/advanced.test.ts +17 -8
- package/tests/cases/integration/graphQlRequests/query/relations/manyHasManyInverse.test.ts +6 -6
- package/tests/cases/integration/graphQlRequests/query/relations/manyHasManyOwning.test.ts +6 -6
- package/tests/cases/integration/graphQlRequests/query/relations/manyHasOne.test.ts +12 -9
- package/tests/cases/integration/graphQlRequests/query/relations/oneHasMany.test.ts +15 -15
- package/tests/cases/integration/graphQlRequests/query/relations/oneHasOneInverse.test.ts +6 -4
- package/tests/cases/integration/graphQlRequests/query/relations/oneHasOneOwner.test.ts +6 -4
- package/tests/cases/integration/graphQlRequests/query/sorting/defaultOrdering.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/query/sorting/randomSort.test.ts +108 -4
- package/tests/cases/integration/graphQlRequests/query/sorting/sortedHasMany.test.ts +2 -2
- package/tests/cases/integration/graphQlRequests/query/view/view.test.ts +6 -6
- package/tests/cases/integration/graphQlRequests/update/acl/legacyNoRootRootWrites.test.ts +127 -0
- package/tests/cases/integration/graphQlRequests/update/acl/throughScope.test.ts +89 -0
- package/tests/cases/integration/graphQlRequests/update/acl/throughScopeJunction.test.ts +296 -0
- package/tests/cases/integration/graphQlRequests/update/acl/throughScopeLookup.test.ts +265 -0
- package/tests/cases/integration/graphQlRequests/update/acl/throughScopeRootWrites.test.ts +441 -0
- package/tests/cases/integration/graphQlRequests/update/acl/throughScopeUpdate.test.ts +415 -0
- package/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/set.test.ts +219 -0
- package/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/set.test.ts +479 -0
- package/tests/cases/integration/graphQlRequests/update/oneHasMany/set.test.ts +948 -0
- package/tests/cases/integration/graphQlRequests/upsert/acl/throughScope.test.ts +134 -0
- package/tests/cases/integration/graphQlSchema/graphQlSchemaBuilder.test.ts +247 -26
- package/tests/cases/integration/graphQlSchema/schema-acl-allowed.gql +18 -0
- package/tests/cases/integration/graphQlSchema/schema-acl-create-only.gql +2 -0
- package/tests/cases/integration/graphQlSchema/schema-acl-restricted-create.gql +15 -0
- package/tests/cases/integration/graphQlSchema/schema-acl-restricted-delete.gql +12 -0
- package/tests/cases/integration/graphQlSchema/schema-acl-restricted-read.gql +254 -0
- package/tests/cases/integration/graphQlSchema/schema-acl-restricted-update.gql +2 -0
- package/tests/cases/integration/graphQlSchema/schema-acl.gql +2 -0
- package/tests/cases/integration/graphQlSchema/schema-aliased-type.gql +2 -0
- package/tests/cases/integration/graphQlSchema/schema-array.gql +2 -0
- package/tests/cases/integration/graphQlSchema/schema-basic.gql +51 -0
- package/tests/cases/integration/graphQlSchema/schema-bug-66.gql +18 -0
- package/tests/cases/integration/graphQlSchema/schema-column-types.gql +2 -0
- package/tests/cases/integration/graphQlSchema/schema-custom-primary.gql +51 -0
- package/tests/cases/integration/graphQlSchema/schema-deprecation.gql +962 -0
- package/tests/cases/integration/graphQlSchema/schema-description.gql +992 -0
- package/tests/cases/integration/graphQlSchema/schema-has-many-reduction.gql +18 -0
- package/tests/cases/integration/graphQlSchema/schema-mixed-root-through.gql +266 -0
- package/tests/cases/integration/graphQlSchema/schema-new-builder.gql +51 -0
- package/tests/cases/integration/graphQlSchema/schema-no-root-ops.gql +2 -0
- package/tests/cases/integration/graphQlSchema/schema-not-null-through.gql +201 -0
- package/tests/cases/unit/checkViolationError.test.ts +49 -0
- package/tests/cases/unit/dateType.test.ts +46 -0
- package/tests/cases/unit/decimalType.test.ts +2 -2
- package/tests/cases/unit/internalColumnAliases.test.ts +41 -0
- package/tests/cases/unit/introspectionAcl.test.ts +30 -0
- package/tests/cases/unit/mutationSqlError.test.ts +30 -0
- package/tests/cases/unit/pathAlias.test.ts +26 -0
- package/tests/cases/unit/permissionMerger.test.ts +947 -13
- package/tests/cases/unit/predicatesFactory.test.ts +7 -16
- package/tests/cases/unit/predicatesInjector.test.ts +1046 -183
- package/tests/cases/unit/variableInjector.test.ts +12 -0
- package/tests/cases/unit/whereOptimizer.test.ts +62 -0
- package/tests/src/test.ts +51 -9
- package/tests/src/testGraphql.ts +43 -20
- package/tests/tsconfig.json +1 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { test } from 'bun:test'
|
|
2
|
+
import { execute, failedTransaction } from '../../../../../src/test.js'
|
|
3
|
+
import { c, createSchema } from '@contember/schema-definition'
|
|
4
|
+
import { PermissionFactory } from '../../../../../../src/index.js'
|
|
5
|
+
import { GQL, SQL } from '../../../../../src/tags.js'
|
|
6
|
+
import { testUuid } from '../../../../../src/testUuid.js'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* `upsert` is a root entry point for both update and create, so a `through` grant on either half
|
|
10
|
+
* must not open it. `Article` misses the root create, `Tag` misses the root update.
|
|
11
|
+
*/
|
|
12
|
+
namespace UpsertRootGating {
|
|
13
|
+
export const editor = c.createRole('editor')
|
|
14
|
+
|
|
15
|
+
@c.Allow(editor, { read: ['id', 'title'], update: ['title'] })
|
|
16
|
+
@c.Allow(editor, { through: true, create: ['title'] })
|
|
17
|
+
export class Article {
|
|
18
|
+
title = c.stringColumn()
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@c.Allow(editor, { read: ['id', 'name'], create: ['name'] })
|
|
22
|
+
@c.Allow(editor, { through: true, update: ['name'] })
|
|
23
|
+
export class Tag {
|
|
24
|
+
name = c.stringColumn()
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
test('through-only create grant opens no root upsert mutation', async () => {
|
|
29
|
+
const schema = createSchema(UpsertRootGating)
|
|
30
|
+
const { root, all } = new PermissionFactory().createContextual(schema, ['editor'])
|
|
31
|
+
|
|
32
|
+
// `updateArticle` is in the same document on purpose - only `upsertArticle` may be reported missing.
|
|
33
|
+
await execute({
|
|
34
|
+
schema: schema.model,
|
|
35
|
+
permissions: root,
|
|
36
|
+
nestedPermissions: all,
|
|
37
|
+
query: GQL`mutation {
|
|
38
|
+
a: updateArticle(by: {id: "${testUuid(1)}"}, data: {title: "Hello"}) {
|
|
39
|
+
ok
|
|
40
|
+
}
|
|
41
|
+
b: upsertArticle(by: {id: "${testUuid(1)}"}, update: {title: "Hello"}, create: {title: "Hello"}) {
|
|
42
|
+
ok
|
|
43
|
+
}
|
|
44
|
+
}`,
|
|
45
|
+
executes: [],
|
|
46
|
+
return: {
|
|
47
|
+
errors: [{ message: 'Cannot query field "upsertArticle" on type "Mutation". Did you mean "updateArticle"?' }],
|
|
48
|
+
},
|
|
49
|
+
})
|
|
50
|
+
})
|
|
51
|
+
|
|
52
|
+
test('through-only update grant opens no root upsert mutation', async () => {
|
|
53
|
+
const schema = createSchema(UpsertRootGating)
|
|
54
|
+
const { root, all } = new PermissionFactory().createContextual(schema, ['editor'])
|
|
55
|
+
|
|
56
|
+
// `createTag` is in the same document on purpose - only `upsertTag` may be reported missing.
|
|
57
|
+
await execute({
|
|
58
|
+
schema: schema.model,
|
|
59
|
+
permissions: root,
|
|
60
|
+
nestedPermissions: all,
|
|
61
|
+
query: GQL`mutation {
|
|
62
|
+
a: createTag(data: {name: "Hello"}) {
|
|
63
|
+
ok
|
|
64
|
+
}
|
|
65
|
+
b: upsertTag(by: {id: "${testUuid(1)}"}, update: {name: "Hello"}, create: {name: "Hello"}) {
|
|
66
|
+
ok
|
|
67
|
+
}
|
|
68
|
+
}`,
|
|
69
|
+
executes: [],
|
|
70
|
+
return: {
|
|
71
|
+
errors: [{ message: 'Cannot query field "upsertTag" on type "Mutation".' }],
|
|
72
|
+
},
|
|
73
|
+
})
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
/** The root `upsert` exists, but its update branch still runs in the root scope. */
|
|
77
|
+
namespace UpsertRootScope {
|
|
78
|
+
export const editor = c.createRole('editor')
|
|
79
|
+
|
|
80
|
+
@c.Allow(editor, { read: ['id', 'slug', 'name'], create: ['slug', 'name'], update: ['name'] })
|
|
81
|
+
@c.Allow(editor, { through: true, update: ['secret'] })
|
|
82
|
+
export class Author {
|
|
83
|
+
name = c.stringColumn()
|
|
84
|
+
secret = c.stringColumn()
|
|
85
|
+
slug = c.stringColumn().unique()
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
test('root upsert denies a field granted only through a relation', async () => {
|
|
90
|
+
const schema = createSchema(UpsertRootScope)
|
|
91
|
+
const { root, all } = new PermissionFactory().createContextual(schema, ['editor'])
|
|
92
|
+
|
|
93
|
+
await execute({
|
|
94
|
+
schema: schema.model,
|
|
95
|
+
permissions: root,
|
|
96
|
+
nestedPermissions: all,
|
|
97
|
+
query: GQL`mutation {
|
|
98
|
+
upsertAuthor(
|
|
99
|
+
by: {slug: "john"},
|
|
100
|
+
update: {secret: "hidden"},
|
|
101
|
+
create: {slug: "john", name: "John"}
|
|
102
|
+
) {
|
|
103
|
+
ok
|
|
104
|
+
errors {
|
|
105
|
+
type
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}`,
|
|
109
|
+
executes: [
|
|
110
|
+
...failedTransaction([
|
|
111
|
+
{
|
|
112
|
+
sql: SQL`select "root_"."id" from "public"."author" as "root_" where "root_"."slug" = ?`,
|
|
113
|
+
parameters: ['john'],
|
|
114
|
+
response: { rows: [{ id: testUuid(2) }] },
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
sql:
|
|
118
|
+
SQL`with "newData_" as (select ? :: text as "secret", "root_"."secret" as "secret_old__", "root_"."id", "root_"."name", "root_"."slug" from "public"."author" as "root_" where false)
|
|
119
|
+
update "public"."author" set "secret" = "newData_"."secret" from "newData_" where "author"."id" = "newData_"."id" and false returning "secret_old__"`,
|
|
120
|
+
parameters: ['hidden'],
|
|
121
|
+
response: { rows: [] },
|
|
122
|
+
},
|
|
123
|
+
]),
|
|
124
|
+
],
|
|
125
|
+
return: {
|
|
126
|
+
data: {
|
|
127
|
+
upsertAuthor: {
|
|
128
|
+
ok: false,
|
|
129
|
+
errors: [{ type: 'NotFoundOrDenied' }],
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
})
|
|
134
|
+
})
|
|
@@ -1,45 +1,43 @@
|
|
|
1
|
-
import { graphql, printSchema } from 'graphql'
|
|
1
|
+
import { graphql, GraphQLSchema, printSchema, validateSchema } from 'graphql'
|
|
2
2
|
import { Acl, Model } from '@contember/schema'
|
|
3
3
|
import * as fs from 'node:fs/promises'
|
|
4
4
|
import * as path from 'node:path'
|
|
5
5
|
import { AllowAllPermissionFactory, c, createSchema, SchemaBuilder, SchemaDefinition, SchemaDefinition as def } from '@contember/schema-definition'
|
|
6
|
-
import { Authorizator, GraphQlSchemaBuilderFactory, PermissionFactory } from '../../../../src/index.js'
|
|
6
|
+
import { Authorizator, GraphQlSchemaBuilderFactory, JsonContentSchemaBuilder, PermissionFactory } from '../../../../src/index.js'
|
|
7
|
+
import { toGraphQLJsSchema } from '@contember/graphql-json'
|
|
7
8
|
import * as model from './model.js'
|
|
9
|
+
import { SchemaValidator } from '@contember/schema-utils'
|
|
8
10
|
import { describe, expect, it } from 'bun:test'
|
|
9
11
|
import { dirname } from 'node:path'
|
|
10
12
|
import { fileURLToPath } from 'node:url'
|
|
11
13
|
|
|
12
14
|
interface Test {
|
|
13
15
|
schema: (builder: SchemaBuilder) => SchemaBuilder | Model.Schema
|
|
16
|
+
/** Shapes the types - pass the nested set, the one that includes `through` grants. */
|
|
14
17
|
permissions: (schema: Model.Schema) => Acl.Permissions
|
|
18
|
+
/** Gates the root query and mutation fields. Defaults to `permissions` when the two coincide. */
|
|
19
|
+
rootPermissions?: (schema: Model.Schema) => Acl.Permissions
|
|
15
20
|
graphQlSchemaFile: string
|
|
16
21
|
}
|
|
17
22
|
|
|
18
23
|
const testSchema = async (test: Test) => {
|
|
19
24
|
const schemaResult = test.schema(new SchemaBuilder())
|
|
20
25
|
|
|
21
|
-
const schemaFactory = new GraphQlSchemaBuilderFactory()
|
|
22
26
|
const schema = schemaResult instanceof SchemaBuilder ? schemaResult.buildSchema() : schemaResult
|
|
23
27
|
const schemaWithAcl = { ...schema, acl: { roles: {}, variables: {} } }
|
|
24
28
|
const permissions = test.permissions(schemaWithAcl)
|
|
29
|
+
const rootPermissions = test.rootPermissions ? test.rootPermissions(schemaWithAcl) : permissions
|
|
25
30
|
const authorizator = new Authorizator(permissions, false, false)
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
_info {
|
|
34
|
-
description
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
`,
|
|
38
|
-
})
|
|
39
|
-
const errors = (result.errors || []).map(it => it.message)
|
|
40
|
-
expect(errors).toStrictEqual([])
|
|
31
|
+
const rootAuthorizator = new Authorizator(rootPermissions, false, false)
|
|
32
|
+
const graphQlJsSchema = new GraphQlSchemaBuilderFactory().create(schemaWithAcl, authorizator, rootAuthorizator).build()
|
|
33
|
+
const result = await graphql({ schema: graphQlJsSchema, source: '{ _info { description } }' })
|
|
34
|
+
expect((result.errors ?? []).map(it => it.message)).toStrictEqual([])
|
|
35
|
+
|
|
36
|
+
const jsonSchema = toGraphQLJsSchema(new JsonContentSchemaBuilder(schemaWithAcl, authorizator, rootAuthorizator).build().schema)
|
|
37
|
+
expect(validateSchema(jsonSchema).map(it => it.message)).toStrictEqual([])
|
|
41
38
|
|
|
42
|
-
|
|
39
|
+
// the files were recorded on main's graphql-js builder; clients see this exact SDL and order on both engines
|
|
40
|
+
const textSchema = printSchema(graphQlJsSchema) + '\n'
|
|
43
41
|
|
|
44
42
|
const filename = path.join(dirname(fileURLToPath(import.meta.url)), test.graphQlSchemaFile)
|
|
45
43
|
let expectedSchema: string
|
|
@@ -49,9 +47,8 @@ const testSchema = async (test: Test) => {
|
|
|
49
47
|
await fs.writeFile(filename, textSchema, { encoding: 'utf8' })
|
|
50
48
|
throw new Error(`Schema file ${filename} not found, creating with current schema`)
|
|
51
49
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
50
|
+
expect(textSchema).toStrictEqual(expectedSchema)
|
|
51
|
+
expect(printSchema(jsonSchema) + '\n').toStrictEqual(expectedSchema)
|
|
55
52
|
}
|
|
56
53
|
describe('GraphQL schema builder', () => {
|
|
57
54
|
it('column types', async () => {
|
|
@@ -239,6 +236,34 @@ describe('GraphQL schema builder', () => {
|
|
|
239
236
|
})
|
|
240
237
|
})
|
|
241
238
|
|
|
239
|
+
// `set` diffs the current members against the input, so a role that cannot read the target
|
|
240
|
+
// could only ever add to the collection - the operation is not offered at all.
|
|
241
|
+
it('ACL with relations - restricted read hides set', async () => {
|
|
242
|
+
await testSchema({
|
|
243
|
+
schema: oneHasManySchema,
|
|
244
|
+
permissions: () => ({
|
|
245
|
+
Root: {
|
|
246
|
+
predicates: {},
|
|
247
|
+
operations: {
|
|
248
|
+
create: { id: true },
|
|
249
|
+
update: { id: true },
|
|
250
|
+
read: { id: true },
|
|
251
|
+
delete: true,
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
OneHasManyEntity: {
|
|
255
|
+
predicates: {},
|
|
256
|
+
operations: {
|
|
257
|
+
create: { id: true, a: true, r2: true },
|
|
258
|
+
update: { id: true, a: true, r2: true },
|
|
259
|
+
delete: true,
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
}),
|
|
263
|
+
graphQlSchemaFile: 'schema-acl-restricted-read.gql',
|
|
264
|
+
})
|
|
265
|
+
})
|
|
266
|
+
|
|
242
267
|
it('ACL with relations - restricted update', async () => {
|
|
243
268
|
await testSchema({
|
|
244
269
|
schema: oneHasManySchema,
|
|
@@ -382,17 +407,57 @@ describe('GraphQL schema builder', () => {
|
|
|
382
407
|
|
|
383
408
|
it('no root ops', async () => {
|
|
384
409
|
const schema = createSchema(NoRootOperation)
|
|
410
|
+
const { root, all } = new PermissionFactory().createContextual(schema, ['editor'])
|
|
385
411
|
|
|
386
412
|
await testSchema({
|
|
387
413
|
schema: () => schema.model,
|
|
388
|
-
permissions: () =>
|
|
389
|
-
|
|
390
|
-
return factory.create(schema, ['editor'])
|
|
391
|
-
},
|
|
414
|
+
permissions: () => all,
|
|
415
|
+
rootPermissions: () => root,
|
|
392
416
|
graphQlSchemaFile: 'schema-no-root-ops.gql',
|
|
393
417
|
})
|
|
394
418
|
})
|
|
395
419
|
|
|
420
|
+
it('root and through grants on the same entity', async () => {
|
|
421
|
+
const schema = createSchema(MixedRootAndThrough)
|
|
422
|
+
const { root, all } = new PermissionFactory().createContextual(schema, ['editor'])
|
|
423
|
+
|
|
424
|
+
await testSchema({
|
|
425
|
+
schema: () => schema.model,
|
|
426
|
+
permissions: () => all,
|
|
427
|
+
rootPermissions: () => root,
|
|
428
|
+
graphQlSchemaFile: 'schema-mixed-root-through.gql',
|
|
429
|
+
})
|
|
430
|
+
})
|
|
431
|
+
|
|
432
|
+
it('not null columns with root and through grants', async () => {
|
|
433
|
+
const schema = createSchema(NotNullRootAndThrough)
|
|
434
|
+
const { root, all } = new PermissionFactory().createContextual(schema, ['editor'])
|
|
435
|
+
|
|
436
|
+
await testSchema({
|
|
437
|
+
schema: () => schema.model,
|
|
438
|
+
permissions: () => all,
|
|
439
|
+
rootPermissions: () => root,
|
|
440
|
+
graphQlSchemaFile: 'schema-not-null-through.gql',
|
|
441
|
+
})
|
|
442
|
+
})
|
|
443
|
+
|
|
444
|
+
it('root writes that locate a row need a read grant in the nested set', async () => {
|
|
445
|
+
const schema = createSchema(RootWriteLookupRead)
|
|
446
|
+
const { root, all } = new PermissionFactory().createContextual(schema, ['editor'])
|
|
447
|
+
const authorizator = new Authorizator(all, false, false)
|
|
448
|
+
const rootAuthorizator = new Authorizator(root, false, false)
|
|
449
|
+
const schemas: GraphQLSchema[] = [
|
|
450
|
+
new GraphQlSchemaBuilderFactory().create(schema.model, authorizator, rootAuthorizator).build(),
|
|
451
|
+
toGraphQLJsSchema(new JsonContentSchemaBuilder(schema.model, authorizator, rootAuthorizator).build().schema),
|
|
452
|
+
]
|
|
453
|
+
|
|
454
|
+
for (const graphQlSchema of schemas) {
|
|
455
|
+
const mutationNames = Object.keys(graphQlSchema.getMutationType()?.getFields() ?? {})
|
|
456
|
+
expect(mutationNames.filter(it => it.endsWith('Comment'))).toStrictEqual(['createComment', 'deleteComment', 'updateComment', 'upsertComment'])
|
|
457
|
+
expect(mutationNames.filter(it => it.endsWith('Note'))).toStrictEqual(['createNote'])
|
|
458
|
+
}
|
|
459
|
+
})
|
|
460
|
+
|
|
396
461
|
it('array', async () => {
|
|
397
462
|
const schema = createSchema({
|
|
398
463
|
Foo: class Foo {
|
|
@@ -408,6 +473,24 @@ describe('GraphQL schema builder', () => {
|
|
|
408
473
|
graphQlSchemaFile: 'schema-array.gql',
|
|
409
474
|
})
|
|
410
475
|
})
|
|
476
|
+
|
|
477
|
+
it('descriptions', async () => {
|
|
478
|
+
expect(SchemaValidator.validate(createSchema(ModelWithDescriptions))).toEqual([])
|
|
479
|
+
await testSchema({
|
|
480
|
+
schema: () => SchemaDefinition.createModel(ModelWithDescriptions),
|
|
481
|
+
permissions: schema => new AllowAllPermissionFactory().create(schema),
|
|
482
|
+
graphQlSchemaFile: 'schema-description.gql',
|
|
483
|
+
})
|
|
484
|
+
})
|
|
485
|
+
|
|
486
|
+
it('deprecation', async () => {
|
|
487
|
+
expect(SchemaValidator.validate(createSchema(ModelWithDeprecation))).toEqual([])
|
|
488
|
+
await testSchema({
|
|
489
|
+
schema: () => SchemaDefinition.createModel(ModelWithDeprecation),
|
|
490
|
+
permissions: schema => new AllowAllPermissionFactory().create(schema),
|
|
491
|
+
graphQlSchemaFile: 'schema-deprecation.gql',
|
|
492
|
+
})
|
|
493
|
+
})
|
|
411
494
|
})
|
|
412
495
|
|
|
413
496
|
namespace ViewEntity {
|
|
@@ -417,6 +500,90 @@ namespace ViewEntity {
|
|
|
417
500
|
}
|
|
418
501
|
}
|
|
419
502
|
|
|
503
|
+
/**
|
|
504
|
+
* `title` is readable at the root, `secret` only through a relation. Both belong to the same role,
|
|
505
|
+
* entity and operation - a combination the ACL factory used to reject outright.
|
|
506
|
+
*/
|
|
507
|
+
namespace MixedRootAndThrough {
|
|
508
|
+
export const editorRole = c.createRole('editor')
|
|
509
|
+
|
|
510
|
+
@c.Allow(editorRole, {
|
|
511
|
+
read: true,
|
|
512
|
+
update: true,
|
|
513
|
+
})
|
|
514
|
+
export class Article {
|
|
515
|
+
title = c.stringColumn()
|
|
516
|
+
author = c.manyHasOne(Author)
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
@c.Allow(editorRole, { read: ['name'] })
|
|
520
|
+
@c.Allow(editorRole, { through: true, read: ['secret'], update: ['secret'] })
|
|
521
|
+
export class Author {
|
|
522
|
+
name = c.stringColumn()
|
|
523
|
+
secret = c.stringColumn()
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Every column is `notNull`, so this pins down which of them may stay non-null. The type is shared
|
|
529
|
+
* by the root and the nested scope, so only a column the root scope always fills qualifies - unless
|
|
530
|
+
* the entity is unreachable at the root, in which case the root scope constrains nothing.
|
|
531
|
+
*/
|
|
532
|
+
namespace NotNullRootAndThrough {
|
|
533
|
+
export const editorRole = c.createRole('editor')
|
|
534
|
+
|
|
535
|
+
@c.Allow(editorRole, {
|
|
536
|
+
read: true,
|
|
537
|
+
})
|
|
538
|
+
export class Article {
|
|
539
|
+
title = c.stringColumn().notNull()
|
|
540
|
+
author = c.manyHasOne(Author).notNull()
|
|
541
|
+
image = c.manyHasOne(Image).notNull()
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
@c.Allow(editorRole, { read: ['name'] })
|
|
545
|
+
@c.Allow(editorRole, { through: true, read: ['secret'] })
|
|
546
|
+
@c.Allow(editorRole, { through: true, when: { disclosed: { eq: true } }, read: ['classified'] })
|
|
547
|
+
export class Author {
|
|
548
|
+
name = c.stringColumn().notNull()
|
|
549
|
+
secret = c.stringColumn().notNull()
|
|
550
|
+
classified = c.stringColumn().notNull()
|
|
551
|
+
disclosed = c.boolColumn().notNull()
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
@c.Allow(editorRole, { through: true, read: ['url'] })
|
|
555
|
+
export class Image {
|
|
556
|
+
url = c.stringColumn().notNull()
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Both entities carry root write grants. `Comment` is readable only through a relation, which is enough for the
|
|
562
|
+
* lookup of a root update, delete or upsert. `Note` is not readable at all, so only `createNote` is exposed.
|
|
563
|
+
*/
|
|
564
|
+
namespace RootWriteLookupRead {
|
|
565
|
+
export const editorRole = c.createRole('editor')
|
|
566
|
+
|
|
567
|
+
@c.Allow(editorRole, {
|
|
568
|
+
create: true,
|
|
569
|
+
update: true,
|
|
570
|
+
delete: true,
|
|
571
|
+
})
|
|
572
|
+
@c.Allow(editorRole, { through: true, read: true })
|
|
573
|
+
export class Comment {
|
|
574
|
+
text = c.stringColumn()
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
@c.Allow(editorRole, {
|
|
578
|
+
create: true,
|
|
579
|
+
update: true,
|
|
580
|
+
delete: true,
|
|
581
|
+
})
|
|
582
|
+
export class Note {
|
|
583
|
+
text = c.stringColumn()
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
|
|
420
587
|
namespace NoRootOperation {
|
|
421
588
|
export const editorRole = c.createRole('editor')
|
|
422
589
|
|
|
@@ -442,3 +609,57 @@ namespace NoRootOperation {
|
|
|
442
609
|
url = c.stringColumn()
|
|
443
610
|
}
|
|
444
611
|
}
|
|
612
|
+
|
|
613
|
+
namespace ModelWithDescriptions {
|
|
614
|
+
@c.Description('description of entity Article')
|
|
615
|
+
export class Article {
|
|
616
|
+
title = c.stringColumn().description('description of Article.title')
|
|
617
|
+
category = c.manyHasOne(Category, 'articles').description('description of Article.category')
|
|
618
|
+
tags = c.manyHasMany(Tag, 'articles').description('description of Article.tags')
|
|
619
|
+
stats = c.oneHasOne(ArticleStats, 'article').description('description of Article.stats')
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
@c.Description('description of entity ArticleStats')
|
|
623
|
+
export class ArticleStats {
|
|
624
|
+
article = c.oneHasOneInverse(Article, 'stats').description('description of ArticleStats.article')
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
@c.Description('description of entity Category')
|
|
628
|
+
export class Category {
|
|
629
|
+
name = c.stringColumn().description('description of Category.name')
|
|
630
|
+
articles = c.oneHasMany(Article, 'category').description('description of Category.articles')
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
@c.Description('description of entity Tag')
|
|
634
|
+
export class Tag {
|
|
635
|
+
name = c.stringColumn().description('description of Tag.name')
|
|
636
|
+
articles = c.manyHasManyInverse(Article, 'tags').description('description of Tag.articles')
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
namespace ModelWithDeprecation {
|
|
641
|
+
@c.Deprecated('deprecated entity Article')
|
|
642
|
+
export class Article {
|
|
643
|
+
title = c.stringColumn().deprecated('deprecated Article.title')
|
|
644
|
+
category = c.manyHasOne(Category, 'articles').deprecated('deprecated Article.category')
|
|
645
|
+
tags = c.manyHasMany(Tag, 'articles').deprecated('deprecated Article.tags')
|
|
646
|
+
stats = c.oneHasOne(ArticleStats, 'article').deprecated('deprecated Article.stats')
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
@c.Deprecated('deprecated entity ArticleStats')
|
|
650
|
+
export class ArticleStats {
|
|
651
|
+
article = c.oneHasOneInverse(Article, 'stats').deprecated('deprecated ArticleStats.article')
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
@c.Deprecated('deprecated entity Category')
|
|
655
|
+
export class Category {
|
|
656
|
+
name = c.stringColumn().notNull().deprecated('deprecated Category.name')
|
|
657
|
+
articles = c.oneHasMany(Article, 'category').deprecated('deprecated Category.articles')
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
@c.Deprecated()
|
|
661
|
+
export class Tag {
|
|
662
|
+
name = c.stringColumn().deprecated()
|
|
663
|
+
articles = c.manyHasManyInverse(Article, 'tags').deprecated()
|
|
664
|
+
}
|
|
665
|
+
}
|
|
@@ -273,6 +273,8 @@ input RootUpdateREntityRelationInput {
|
|
|
273
273
|
connectOrCreate: RootConnectOrCreateRRelationInput
|
|
274
274
|
disconnect: OneHasManyEntityUniqueWhere
|
|
275
275
|
delete: OneHasManyEntityUniqueWhere
|
|
276
|
+
set: [RootSetRItemRelationInput!]
|
|
277
|
+
orphanStrategy: OrphanRemovalStrategy
|
|
276
278
|
alias: String
|
|
277
279
|
}
|
|
278
280
|
|
|
@@ -292,6 +294,20 @@ input RootUpsertRRelationInput {
|
|
|
292
294
|
create: OneHasManyEntityWithoutR2CreateInput!
|
|
293
295
|
}
|
|
294
296
|
|
|
297
|
+
input RootSetRItemRelationInput {
|
|
298
|
+
create: OneHasManyEntityWithoutR2CreateInput
|
|
299
|
+
connect: OneHasManyEntityUniqueWhere
|
|
300
|
+
connectOrCreate: RootConnectOrCreateRRelationInput
|
|
301
|
+
update: RootUpdateRRelationInput
|
|
302
|
+
upsert: RootUpsertRRelationInput
|
|
303
|
+
alias: String
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
enum OrphanRemovalStrategy {
|
|
307
|
+
disconnect
|
|
308
|
+
delete
|
|
309
|
+
}
|
|
310
|
+
|
|
295
311
|
type QueryTransaction {
|
|
296
312
|
getOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere): OneHasManyEntity
|
|
297
313
|
listOneHasManyEntity(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], offset: Int, limit: Int): [OneHasManyEntity!]!
|
|
@@ -347,10 +363,12 @@ enum _MutationErrorType {
|
|
|
347
363
|
NotNullConstraintViolation
|
|
348
364
|
UniqueConstraintViolation
|
|
349
365
|
ForeignKeyConstraintViolation
|
|
366
|
+
CheckConstraintViolation
|
|
350
367
|
NotFoundOrDenied
|
|
351
368
|
NonUniqueWhereInput
|
|
352
369
|
InvalidDataInput
|
|
353
370
|
SqlError
|
|
371
|
+
ResourceExhausted
|
|
354
372
|
}
|
|
355
373
|
|
|
356
374
|
type OneHasManyEntityDeleteResult implements MutationResult {
|
|
@@ -185,10 +185,12 @@ enum _MutationErrorType {
|
|
|
185
185
|
NotNullConstraintViolation
|
|
186
186
|
UniqueConstraintViolation
|
|
187
187
|
ForeignKeyConstraintViolation
|
|
188
|
+
CheckConstraintViolation
|
|
188
189
|
NotFoundOrDenied
|
|
189
190
|
NonUniqueWhereInput
|
|
190
191
|
InvalidDataInput
|
|
191
192
|
SqlError
|
|
193
|
+
ResourceExhausted
|
|
192
194
|
}
|
|
193
195
|
|
|
194
196
|
type CategoryCreateResult implements MutationResult {
|
|
@@ -209,6 +209,8 @@ input RootUpdateREntityRelationInput {
|
|
|
209
209
|
connect: OneHasManyEntityUniqueWhere
|
|
210
210
|
disconnect: OneHasManyEntityUniqueWhere
|
|
211
211
|
delete: OneHasManyEntityUniqueWhere
|
|
212
|
+
set: [RootSetRItemRelationInput!]
|
|
213
|
+
orphanStrategy: OrphanRemovalStrategy
|
|
212
214
|
alias: String
|
|
213
215
|
}
|
|
214
216
|
|
|
@@ -222,6 +224,17 @@ input OneHasManyEntityWithoutR2UpdateInput {
|
|
|
222
224
|
_dummy_field_: Boolean
|
|
223
225
|
}
|
|
224
226
|
|
|
227
|
+
input RootSetRItemRelationInput {
|
|
228
|
+
connect: OneHasManyEntityUniqueWhere
|
|
229
|
+
update: RootUpdateRRelationInput
|
|
230
|
+
alias: String
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
enum OrphanRemovalStrategy {
|
|
234
|
+
disconnect
|
|
235
|
+
delete
|
|
236
|
+
}
|
|
237
|
+
|
|
225
238
|
type QueryTransaction {
|
|
226
239
|
getOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere): OneHasManyEntity
|
|
227
240
|
listOneHasManyEntity(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], offset: Int, limit: Int): [OneHasManyEntity!]!
|
|
@@ -270,10 +283,12 @@ enum _MutationErrorType {
|
|
|
270
283
|
NotNullConstraintViolation
|
|
271
284
|
UniqueConstraintViolation
|
|
272
285
|
ForeignKeyConstraintViolation
|
|
286
|
+
CheckConstraintViolation
|
|
273
287
|
NotFoundOrDenied
|
|
274
288
|
NonUniqueWhereInput
|
|
275
289
|
InvalidDataInput
|
|
276
290
|
SqlError
|
|
291
|
+
ResourceExhausted
|
|
277
292
|
}
|
|
278
293
|
|
|
279
294
|
type OneHasManyEntityUpdateResult implements MutationResult {
|
|
@@ -264,6 +264,7 @@ input RootUpdateREntityRelationInput {
|
|
|
264
264
|
connect: OneHasManyEntityUniqueWhere
|
|
265
265
|
connectOrCreate: RootConnectOrCreateRRelationInput
|
|
266
266
|
disconnect: OneHasManyEntityUniqueWhere
|
|
267
|
+
set: [RootSetRItemRelationInput!]
|
|
267
268
|
alias: String
|
|
268
269
|
}
|
|
269
270
|
|
|
@@ -283,6 +284,15 @@ input RootUpsertRRelationInput {
|
|
|
283
284
|
create: OneHasManyEntityWithoutR2CreateInput!
|
|
284
285
|
}
|
|
285
286
|
|
|
287
|
+
input RootSetRItemRelationInput {
|
|
288
|
+
create: OneHasManyEntityWithoutR2CreateInput
|
|
289
|
+
connect: OneHasManyEntityUniqueWhere
|
|
290
|
+
connectOrCreate: RootConnectOrCreateRRelationInput
|
|
291
|
+
update: RootUpdateRRelationInput
|
|
292
|
+
upsert: RootUpsertRRelationInput
|
|
293
|
+
alias: String
|
|
294
|
+
}
|
|
295
|
+
|
|
286
296
|
type QueryTransaction {
|
|
287
297
|
getOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere): OneHasManyEntity
|
|
288
298
|
listOneHasManyEntity(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], offset: Int, limit: Int): [OneHasManyEntity!]!
|
|
@@ -337,10 +347,12 @@ enum _MutationErrorType {
|
|
|
337
347
|
NotNullConstraintViolation
|
|
338
348
|
UniqueConstraintViolation
|
|
339
349
|
ForeignKeyConstraintViolation
|
|
350
|
+
CheckConstraintViolation
|
|
340
351
|
NotFoundOrDenied
|
|
341
352
|
NonUniqueWhereInput
|
|
342
353
|
InvalidDataInput
|
|
343
354
|
SqlError
|
|
355
|
+
ResourceExhausted
|
|
344
356
|
}
|
|
345
357
|
|
|
346
358
|
type OneHasManyEntityUpdateResult implements MutationResult {
|