@contember/engine-content-api 2.1.0-beta.1 → 2.2.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1068) hide show
  1. package/dist/development/index.cjs +1 -0
  2. package/dist/development/index.cjs.map +1 -1
  3. package/dist/development/index.js +2 -1
  4. package/dist/development/src/ExecutionContainer.cjs +40 -4
  5. package/dist/development/src/ExecutionContainer.cjs.map +1 -1
  6. package/dist/development/src/ExecutionContainer.js +41 -5
  7. package/dist/development/src/ExecutionContainer.js.map +1 -1
  8. package/dist/development/src/acl/EvaluatedPredicateReplacer.cjs.map +1 -1
  9. package/dist/development/src/acl/EvaluatedPredicateReplacer.js.map +1 -1
  10. package/dist/development/src/acl/PermissionFactory.cjs +29 -15
  11. package/dist/development/src/acl/PermissionFactory.cjs.map +1 -1
  12. package/dist/development/src/acl/PermissionFactory.js +29 -15
  13. package/dist/development/src/acl/PermissionFactory.js.map +1 -1
  14. package/dist/development/src/acl/PredicateFactory.cjs +33 -13
  15. package/dist/development/src/acl/PredicateFactory.cjs.map +1 -1
  16. package/dist/development/src/acl/PredicateFactory.js +33 -13
  17. package/dist/development/src/acl/PredicateFactory.js.map +1 -1
  18. package/dist/development/src/acl/PredicatesInjector.cjs +21 -18
  19. package/dist/development/src/acl/PredicatesInjector.cjs.map +1 -1
  20. package/dist/development/src/acl/PredicatesInjector.js +21 -18
  21. package/dist/development/src/acl/PredicatesInjector.js.map +1 -1
  22. package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.cjs.map +1 -1
  23. package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.js.map +1 -1
  24. package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.cjs.map +1 -1
  25. package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.js.map +1 -1
  26. package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.cjs.map +1 -1
  27. package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.js.map +1 -1
  28. package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.cjs.map +1 -1
  29. package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.js.map +1 -1
  30. package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.cjs.map +1 -1
  31. package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.js.map +1 -1
  32. package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.cjs.map +1 -1
  33. package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.js.map +1 -1
  34. package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.cjs.map +1 -1
  35. package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.js.map +1 -1
  36. package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.cjs.map +1 -1
  37. package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.js.map +1 -1
  38. package/dist/development/src/input-validation/EntityRulesResolver.cjs.map +1 -1
  39. package/dist/development/src/input-validation/EntityRulesResolver.js.map +1 -1
  40. package/dist/development/src/input-validation/JsonSchemaValidator.cjs +208 -0
  41. package/dist/development/src/input-validation/JsonSchemaValidator.cjs.map +1 -0
  42. package/dist/development/src/input-validation/JsonSchemaValidator.js +208 -0
  43. package/dist/development/src/input-validation/JsonSchemaValidator.js.map +1 -0
  44. package/dist/development/src/input-validation/QueryAstFactory.cjs.map +1 -1
  45. package/dist/development/src/input-validation/QueryAstFactory.js.map +1 -1
  46. package/dist/development/src/input-validation/ValidationContext.cjs.map +1 -1
  47. package/dist/development/src/input-validation/ValidationContext.js.map +1 -1
  48. package/dist/development/src/input-validation/ValidationDataSelector.cjs.map +1 -1
  49. package/dist/development/src/input-validation/ValidationDataSelector.js.map +1 -1
  50. package/dist/development/src/input-validation/ValidationEvaluation.cjs.map +1 -1
  51. package/dist/development/src/input-validation/ValidationEvaluation.js.map +1 -1
  52. package/dist/development/src/input-validation/dependencies/DependencyCollector.cjs.map +1 -1
  53. package/dist/development/src/input-validation/dependencies/DependencyCollector.js.map +1 -1
  54. package/dist/development/src/input-validation/dependencies/DependencyMerger.cjs.map +1 -1
  55. package/dist/development/src/input-validation/dependencies/DependencyMerger.js.map +1 -1
  56. package/dist/development/src/input-validation/preValidation/CreateInputPreValidationProcessor.cjs.map +1 -1
  57. package/dist/development/src/input-validation/preValidation/CreateInputPreValidationProcessor.js.map +1 -1
  58. package/dist/development/src/input-validation/preValidation/InputPreValidator.cjs +38 -2
  59. package/dist/development/src/input-validation/preValidation/InputPreValidator.cjs.map +1 -1
  60. package/dist/development/src/input-validation/preValidation/InputPreValidator.js +38 -2
  61. package/dist/development/src/input-validation/preValidation/InputPreValidator.js.map +1 -1
  62. package/dist/development/src/input-validation/preValidation/UpdateInputPreValidationProcessor.cjs.map +1 -1
  63. package/dist/development/src/input-validation/preValidation/UpdateInputPreValidationProcessor.js.map +1 -1
  64. package/dist/development/src/inputProcessing/CreateInputVisitor.cjs.map +1 -1
  65. package/dist/development/src/inputProcessing/CreateInputVisitor.js.map +1 -1
  66. package/dist/development/src/inputProcessing/ObjectNode.cjs.map +1 -1
  67. package/dist/development/src/inputProcessing/ObjectNode.js.map +1 -1
  68. package/dist/development/src/inputProcessing/UniqueWhereExpander.cjs.map +1 -1
  69. package/dist/development/src/inputProcessing/UniqueWhereExpander.js.map +1 -1
  70. package/dist/development/src/inputProcessing/UpdateInputVisitor.cjs.map +1 -1
  71. package/dist/development/src/inputProcessing/UpdateInputVisitor.js.map +1 -1
  72. package/dist/development/src/introspection/IntrospectionSchemaDefinitionFactory.cjs.map +1 -1
  73. package/dist/development/src/introspection/IntrospectionSchemaDefinitionFactory.js.map +1 -1
  74. package/dist/development/src/introspection/IntrospectionSchemaFactory.cjs.map +1 -1
  75. package/dist/development/src/introspection/IntrospectionSchemaFactory.js.map +1 -1
  76. package/dist/development/src/mapper/ErrorUtils.cjs.map +1 -1
  77. package/dist/development/src/mapper/ErrorUtils.js.map +1 -1
  78. package/dist/development/src/mapper/EventManager.cjs.map +1 -1
  79. package/dist/development/src/mapper/EventManager.js.map +1 -1
  80. package/dist/development/src/mapper/JunctionTableManager.cjs.map +1 -1
  81. package/dist/development/src/mapper/JunctionTableManager.js.map +1 -1
  82. package/dist/development/src/mapper/Mapper.cjs.map +1 -1
  83. package/dist/development/src/mapper/Mapper.js.map +1 -1
  84. package/dist/development/src/mapper/MapperFactory.cjs.map +1 -1
  85. package/dist/development/src/mapper/MapperFactory.js.map +1 -1
  86. package/dist/development/src/mapper/MutationProcessorHelper.cjs.map +1 -1
  87. package/dist/development/src/mapper/MutationProcessorHelper.js.map +1 -1
  88. package/dist/development/src/mapper/Result.cjs.map +1 -1
  89. package/dist/development/src/mapper/Result.js.map +1 -1
  90. package/dist/development/src/mapper/delete/DeleteExecutor.cjs.map +1 -1
  91. package/dist/development/src/mapper/delete/DeleteExecutor.js.map +1 -1
  92. package/dist/development/src/mapper/delete/DeleteState.cjs.map +1 -1
  93. package/dist/development/src/mapper/delete/DeleteState.js.map +1 -1
  94. package/dist/development/src/mapper/insert/InsertBuilder.cjs.map +1 -1
  95. package/dist/development/src/mapper/insert/InsertBuilder.js.map +1 -1
  96. package/dist/development/src/mapper/insert/InsertBuilderFactory.cjs.map +1 -1
  97. package/dist/development/src/mapper/insert/InsertBuilderFactory.js.map +1 -1
  98. package/dist/development/src/mapper/insert/Inserter.cjs.map +1 -1
  99. package/dist/development/src/mapper/insert/Inserter.js.map +1 -1
  100. package/dist/development/src/mapper/insert/SqlCreateInputProcessor.cjs.map +1 -1
  101. package/dist/development/src/mapper/insert/SqlCreateInputProcessor.js.map +1 -1
  102. package/dist/development/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.cjs.map +1 -1
  103. package/dist/development/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.js.map +1 -1
  104. package/dist/development/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.cjs.map +1 -1
  105. package/dist/development/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.js.map +1 -1
  106. package/dist/development/src/mapper/insert/relations/OneHasManyCreateInputProcessor.cjs.map +1 -1
  107. package/dist/development/src/mapper/insert/relations/OneHasManyCreateInputProcessor.js.map +1 -1
  108. package/dist/development/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.cjs.map +1 -1
  109. package/dist/development/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.js.map +1 -1
  110. package/dist/development/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.cjs.map +1 -1
  111. package/dist/development/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.js.map +1 -1
  112. package/dist/development/src/mapper/select/ConditionBuilder.cjs +2 -0
  113. package/dist/development/src/mapper/select/ConditionBuilder.cjs.map +1 -1
  114. package/dist/development/src/mapper/select/ConditionBuilder.js +2 -0
  115. package/dist/development/src/mapper/select/ConditionBuilder.js.map +1 -1
  116. package/dist/development/src/mapper/select/JoinBuilder.cjs.map +1 -1
  117. package/dist/development/src/mapper/select/JoinBuilder.js.map +1 -1
  118. package/dist/development/src/mapper/select/JoinVisitor.cjs.map +1 -1
  119. package/dist/development/src/mapper/select/JoinVisitor.js.map +1 -1
  120. package/dist/development/src/mapper/select/OrderByBuilder.cjs.map +1 -1
  121. package/dist/development/src/mapper/select/OrderByBuilder.js.map +1 -1
  122. package/dist/development/src/mapper/select/OrderByHelper.cjs.map +1 -1
  123. package/dist/development/src/mapper/select/OrderByHelper.js.map +1 -1
  124. package/dist/development/src/mapper/select/RelationFetcher.cjs.map +1 -1
  125. package/dist/development/src/mapper/select/RelationFetcher.js.map +1 -1
  126. package/dist/development/src/mapper/select/SelectBuilder.cjs.map +1 -1
  127. package/dist/development/src/mapper/select/SelectBuilder.js.map +1 -1
  128. package/dist/development/src/mapper/select/SelectHydrator.cjs.map +1 -1
  129. package/dist/development/src/mapper/select/SelectHydrator.js.map +1 -1
  130. package/dist/development/src/mapper/select/WhereBuilder.cjs.map +1 -1
  131. package/dist/development/src/mapper/select/WhereBuilder.js.map +1 -1
  132. package/dist/development/src/mapper/select/handlers/FieldsVisitor.cjs +11 -2
  133. package/dist/development/src/mapper/select/handlers/FieldsVisitor.cjs.map +1 -1
  134. package/dist/development/src/mapper/select/handlers/FieldsVisitor.js +11 -2
  135. package/dist/development/src/mapper/select/handlers/FieldsVisitor.js.map +1 -1
  136. package/dist/development/src/mapper/select/handlers/FieldsVisitorFactory.cjs.map +1 -1
  137. package/dist/development/src/mapper/select/handlers/FieldsVisitorFactory.js.map +1 -1
  138. package/dist/development/src/mapper/select/handlers/MetaHandler.cjs.map +1 -1
  139. package/dist/development/src/mapper/select/handlers/MetaHandler.js.map +1 -1
  140. package/dist/development/src/mapper/select/optimizer/ConditionOptimizer.cjs.map +1 -1
  141. package/dist/development/src/mapper/select/optimizer/ConditionOptimizer.js.map +1 -1
  142. package/dist/development/src/mapper/select/optimizer/WhereOptimizer.cjs.map +1 -1
  143. package/dist/development/src/mapper/select/optimizer/WhereOptimizer.js.map +1 -1
  144. package/dist/development/src/mapper/update/SqlUpdateInputProcessor.cjs.map +1 -1
  145. package/dist/development/src/mapper/update/SqlUpdateInputProcessor.js.map +1 -1
  146. package/dist/development/src/mapper/update/UpdateBuilder.cjs.map +1 -1
  147. package/dist/development/src/mapper/update/UpdateBuilder.js.map +1 -1
  148. package/dist/development/src/mapper/update/UpdateBuilderFactory.cjs.map +1 -1
  149. package/dist/development/src/mapper/update/UpdateBuilderFactory.js.map +1 -1
  150. package/dist/development/src/mapper/update/Updater.cjs.map +1 -1
  151. package/dist/development/src/mapper/update/Updater.js.map +1 -1
  152. package/dist/development/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.cjs.map +1 -1
  153. package/dist/development/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.js.map +1 -1
  154. package/dist/development/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.cjs.map +1 -1
  155. package/dist/development/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.js.map +1 -1
  156. package/dist/development/src/mapper/update/relations/OneHasManyUpdateInputProcessor.cjs.map +1 -1
  157. package/dist/development/src/mapper/update/relations/OneHasManyUpdateInputProcessor.js.map +1 -1
  158. package/dist/development/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.cjs.map +1 -1
  159. package/dist/development/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.js.map +1 -1
  160. package/dist/development/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.cjs.map +1 -1
  161. package/dist/development/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.js.map +1 -1
  162. package/dist/development/src/resolvers/GraphQlQueryAstFactory.cjs.map +1 -1
  163. package/dist/development/src/resolvers/GraphQlQueryAstFactory.js.map +1 -1
  164. package/dist/development/src/resolvers/MutationResolver.cjs.map +1 -1
  165. package/dist/development/src/resolvers/MutationResolver.js.map +1 -1
  166. package/dist/development/src/resolvers/ReadHelpers.cjs.map +1 -1
  167. package/dist/development/src/resolvers/ReadHelpers.js.map +1 -1
  168. package/dist/development/src/resolvers/ReadResolver.cjs.map +1 -1
  169. package/dist/development/src/resolvers/ReadResolver.js.map +1 -1
  170. package/dist/development/src/resolvers/RefreshViewResolver.cjs.map +1 -1
  171. package/dist/development/src/resolvers/RefreshViewResolver.js.map +1 -1
  172. package/dist/development/src/resolvers/ValidationResolver.cjs.map +1 -1
  173. package/dist/development/src/resolvers/ValidationResolver.js.map +1 -1
  174. package/dist/development/src/schema/ColumnTypeResolver.cjs +2 -0
  175. package/dist/development/src/schema/ColumnTypeResolver.cjs.map +1 -1
  176. package/dist/development/src/schema/ColumnTypeResolver.js +2 -0
  177. package/dist/development/src/schema/ColumnTypeResolver.js.map +1 -1
  178. package/dist/development/src/schema/ConditionTypeProvider.cjs +2 -0
  179. package/dist/development/src/schema/ConditionTypeProvider.cjs.map +1 -1
  180. package/dist/development/src/schema/ConditionTypeProvider.js +2 -0
  181. package/dist/development/src/schema/ConditionTypeProvider.js.map +1 -1
  182. package/dist/development/src/schema/CustomTypesProvider.cjs +32 -0
  183. package/dist/development/src/schema/CustomTypesProvider.cjs.map +1 -1
  184. package/dist/development/src/schema/CustomTypesProvider.js +32 -0
  185. package/dist/development/src/schema/CustomTypesProvider.js.map +1 -1
  186. package/dist/development/src/schema/EntityTypeProvider.cjs.map +1 -1
  187. package/dist/development/src/schema/EntityTypeProvider.js.map +1 -1
  188. package/dist/development/src/schema/EnumsProvider.cjs.map +1 -1
  189. package/dist/development/src/schema/EnumsProvider.js.map +1 -1
  190. package/dist/development/src/schema/FieldAccessVisitor.cjs.map +1 -1
  191. package/dist/development/src/schema/FieldAccessVisitor.js.map +1 -1
  192. package/dist/development/src/schema/GraphQlSchemaBuilder.cjs.map +1 -1
  193. package/dist/development/src/schema/GraphQlSchemaBuilder.js.map +1 -1
  194. package/dist/development/src/schema/GraphQlSchemaBuilderFactory.cjs.map +1 -1
  195. package/dist/development/src/schema/GraphQlSchemaBuilderFactory.js.map +1 -1
  196. package/dist/development/src/schema/MutationProvider.cjs.map +1 -1
  197. package/dist/development/src/schema/MutationProvider.js.map +1 -1
  198. package/dist/development/src/schema/OperationExtension.cjs.map +1 -1
  199. package/dist/development/src/schema/OperationExtension.js.map +1 -1
  200. package/dist/development/src/schema/OrderByTypeProvider.cjs.map +1 -1
  201. package/dist/development/src/schema/OrderByTypeProvider.js.map +1 -1
  202. package/dist/development/src/schema/PaginatedFieldConfigFactory.cjs.map +1 -1
  203. package/dist/development/src/schema/PaginatedFieldConfigFactory.js.map +1 -1
  204. package/dist/development/src/schema/QueryProvider.cjs.map +1 -1
  205. package/dist/development/src/schema/QueryProvider.js.map +1 -1
  206. package/dist/development/src/schema/RefreshViewMutationProvider.cjs.map +1 -1
  207. package/dist/development/src/schema/RefreshViewMutationProvider.js.map +1 -1
  208. package/dist/development/src/schema/ValidationQueriesProvider.cjs.map +1 -1
  209. package/dist/development/src/schema/ValidationQueriesProvider.js.map +1 -1
  210. package/dist/development/src/schema/WhereTypeProvider.cjs.map +1 -1
  211. package/dist/development/src/schema/WhereTypeProvider.js.map +1 -1
  212. package/dist/development/src/schema/entities/FieldArgsVisitor.cjs.map +1 -1
  213. package/dist/development/src/schema/entities/FieldArgsVisitor.js.map +1 -1
  214. package/dist/development/src/schema/entities/FieldTypeVisitor.cjs.map +1 -1
  215. package/dist/development/src/schema/entities/FieldTypeVisitor.js.map +1 -1
  216. package/dist/development/src/schema/mutations/ConnectOrCreateRelationInputProvider.cjs.map +1 -1
  217. package/dist/development/src/schema/mutations/ConnectOrCreateRelationInputProvider.js.map +1 -1
  218. package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.cjs.map +1 -1
  219. package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.js.map +1 -1
  220. package/dist/development/src/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.cjs.map +1 -1
  221. package/dist/development/src/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.js.map +1 -1
  222. package/dist/development/src/schema/mutations/CreateEntityRelationInputFieldVisitor.cjs.map +1 -1
  223. package/dist/development/src/schema/mutations/CreateEntityRelationInputFieldVisitor.js.map +1 -1
  224. package/dist/development/src/schema/mutations/CreateEntityRelationInputProvider.cjs.map +1 -1
  225. package/dist/development/src/schema/mutations/CreateEntityRelationInputProvider.js.map +1 -1
  226. package/dist/development/src/schema/mutations/EntityInputProvider.cjs.map +1 -1
  227. package/dist/development/src/schema/mutations/EntityInputProvider.js.map +1 -1
  228. package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs.map +1 -1
  229. package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.js.map +1 -1
  230. package/dist/development/src/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.cjs.map +1 -1
  231. package/dist/development/src/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.js.map +1 -1
  232. package/dist/development/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.cjs.map +1 -1
  233. package/dist/development/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.js.map +1 -1
  234. package/dist/development/src/schema/mutations/UpdateEntityRelationInputProvider.cjs.map +1 -1
  235. package/dist/development/src/schema/mutations/UpdateEntityRelationInputProvider.js.map +1 -1
  236. package/dist/development/src/schema/utils.cjs.map +1 -1
  237. package/dist/development/src/schema/utils.js.map +1 -1
  238. package/dist/development/src/utils/accessor.cjs.map +1 -1
  239. package/dist/development/src/utils/accessor.js.map +1 -1
  240. package/dist/development/src/utils/paginationUtils.cjs.map +1 -1
  241. package/dist/development/src/utils/paginationUtils.js.map +1 -1
  242. package/dist/development/src/utils/singletonFactory.cjs.map +1 -1
  243. package/dist/development/src/utils/singletonFactory.js.map +1 -1
  244. package/dist/production/index.cjs +1 -0
  245. package/dist/production/index.cjs.map +1 -1
  246. package/dist/production/index.js +2 -1
  247. package/dist/production/src/ExecutionContainer.cjs +40 -4
  248. package/dist/production/src/ExecutionContainer.cjs.map +1 -1
  249. package/dist/production/src/ExecutionContainer.js +41 -5
  250. package/dist/production/src/ExecutionContainer.js.map +1 -1
  251. package/dist/production/src/acl/EvaluatedPredicateReplacer.cjs.map +1 -1
  252. package/dist/production/src/acl/EvaluatedPredicateReplacer.js.map +1 -1
  253. package/dist/production/src/acl/PermissionFactory.cjs +29 -15
  254. package/dist/production/src/acl/PermissionFactory.cjs.map +1 -1
  255. package/dist/production/src/acl/PermissionFactory.js +29 -15
  256. package/dist/production/src/acl/PermissionFactory.js.map +1 -1
  257. package/dist/production/src/acl/PredicateFactory.cjs +33 -13
  258. package/dist/production/src/acl/PredicateFactory.cjs.map +1 -1
  259. package/dist/production/src/acl/PredicateFactory.js +33 -13
  260. package/dist/production/src/acl/PredicateFactory.js.map +1 -1
  261. package/dist/production/src/acl/PredicatesInjector.cjs +21 -18
  262. package/dist/production/src/acl/PredicatesInjector.cjs.map +1 -1
  263. package/dist/production/src/acl/PredicatesInjector.js +21 -18
  264. package/dist/production/src/acl/PredicatesInjector.js.map +1 -1
  265. package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.cjs.map +1 -1
  266. package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.js.map +1 -1
  267. package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.cjs.map +1 -1
  268. package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.js.map +1 -1
  269. package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.cjs.map +1 -1
  270. package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.js.map +1 -1
  271. package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.cjs.map +1 -1
  272. package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.js.map +1 -1
  273. package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.cjs.map +1 -1
  274. package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.js.map +1 -1
  275. package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.cjs.map +1 -1
  276. package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.js.map +1 -1
  277. package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.cjs.map +1 -1
  278. package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.js.map +1 -1
  279. package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.cjs.map +1 -1
  280. package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.js.map +1 -1
  281. package/dist/production/src/input-validation/EntityRulesResolver.cjs.map +1 -1
  282. package/dist/production/src/input-validation/EntityRulesResolver.js.map +1 -1
  283. package/dist/production/src/input-validation/JsonSchemaValidator.cjs +208 -0
  284. package/dist/production/src/input-validation/JsonSchemaValidator.cjs.map +1 -0
  285. package/dist/production/src/input-validation/JsonSchemaValidator.js +208 -0
  286. package/dist/production/src/input-validation/JsonSchemaValidator.js.map +1 -0
  287. package/dist/production/src/input-validation/QueryAstFactory.cjs.map +1 -1
  288. package/dist/production/src/input-validation/QueryAstFactory.js.map +1 -1
  289. package/dist/production/src/input-validation/ValidationContext.cjs.map +1 -1
  290. package/dist/production/src/input-validation/ValidationContext.js.map +1 -1
  291. package/dist/production/src/input-validation/ValidationDataSelector.cjs.map +1 -1
  292. package/dist/production/src/input-validation/ValidationDataSelector.js.map +1 -1
  293. package/dist/production/src/input-validation/ValidationEvaluation.cjs.map +1 -1
  294. package/dist/production/src/input-validation/ValidationEvaluation.js.map +1 -1
  295. package/dist/production/src/input-validation/dependencies/DependencyCollector.cjs.map +1 -1
  296. package/dist/production/src/input-validation/dependencies/DependencyCollector.js.map +1 -1
  297. package/dist/production/src/input-validation/dependencies/DependencyMerger.cjs.map +1 -1
  298. package/dist/production/src/input-validation/dependencies/DependencyMerger.js.map +1 -1
  299. package/dist/production/src/input-validation/preValidation/CreateInputPreValidationProcessor.cjs.map +1 -1
  300. package/dist/production/src/input-validation/preValidation/CreateInputPreValidationProcessor.js.map +1 -1
  301. package/dist/production/src/input-validation/preValidation/InputPreValidator.cjs +38 -2
  302. package/dist/production/src/input-validation/preValidation/InputPreValidator.cjs.map +1 -1
  303. package/dist/production/src/input-validation/preValidation/InputPreValidator.js +38 -2
  304. package/dist/production/src/input-validation/preValidation/InputPreValidator.js.map +1 -1
  305. package/dist/production/src/input-validation/preValidation/UpdateInputPreValidationProcessor.cjs.map +1 -1
  306. package/dist/production/src/input-validation/preValidation/UpdateInputPreValidationProcessor.js.map +1 -1
  307. package/dist/production/src/inputProcessing/CreateInputVisitor.cjs.map +1 -1
  308. package/dist/production/src/inputProcessing/CreateInputVisitor.js.map +1 -1
  309. package/dist/production/src/inputProcessing/ObjectNode.cjs.map +1 -1
  310. package/dist/production/src/inputProcessing/ObjectNode.js.map +1 -1
  311. package/dist/production/src/inputProcessing/UniqueWhereExpander.cjs.map +1 -1
  312. package/dist/production/src/inputProcessing/UniqueWhereExpander.js.map +1 -1
  313. package/dist/production/src/inputProcessing/UpdateInputVisitor.cjs.map +1 -1
  314. package/dist/production/src/inputProcessing/UpdateInputVisitor.js.map +1 -1
  315. package/dist/production/src/introspection/IntrospectionSchemaDefinitionFactory.cjs.map +1 -1
  316. package/dist/production/src/introspection/IntrospectionSchemaDefinitionFactory.js.map +1 -1
  317. package/dist/production/src/introspection/IntrospectionSchemaFactory.cjs.map +1 -1
  318. package/dist/production/src/introspection/IntrospectionSchemaFactory.js.map +1 -1
  319. package/dist/production/src/mapper/ErrorUtils.cjs.map +1 -1
  320. package/dist/production/src/mapper/ErrorUtils.js.map +1 -1
  321. package/dist/production/src/mapper/EventManager.cjs.map +1 -1
  322. package/dist/production/src/mapper/EventManager.js.map +1 -1
  323. package/dist/production/src/mapper/JunctionTableManager.cjs.map +1 -1
  324. package/dist/production/src/mapper/JunctionTableManager.js.map +1 -1
  325. package/dist/production/src/mapper/Mapper.cjs.map +1 -1
  326. package/dist/production/src/mapper/Mapper.js.map +1 -1
  327. package/dist/production/src/mapper/MapperFactory.cjs.map +1 -1
  328. package/dist/production/src/mapper/MapperFactory.js.map +1 -1
  329. package/dist/production/src/mapper/MutationProcessorHelper.cjs.map +1 -1
  330. package/dist/production/src/mapper/MutationProcessorHelper.js.map +1 -1
  331. package/dist/production/src/mapper/Result.cjs.map +1 -1
  332. package/dist/production/src/mapper/Result.js.map +1 -1
  333. package/dist/production/src/mapper/delete/DeleteExecutor.cjs.map +1 -1
  334. package/dist/production/src/mapper/delete/DeleteExecutor.js.map +1 -1
  335. package/dist/production/src/mapper/delete/DeleteState.cjs.map +1 -1
  336. package/dist/production/src/mapper/delete/DeleteState.js.map +1 -1
  337. package/dist/production/src/mapper/insert/InsertBuilder.cjs.map +1 -1
  338. package/dist/production/src/mapper/insert/InsertBuilder.js.map +1 -1
  339. package/dist/production/src/mapper/insert/InsertBuilderFactory.cjs.map +1 -1
  340. package/dist/production/src/mapper/insert/InsertBuilderFactory.js.map +1 -1
  341. package/dist/production/src/mapper/insert/Inserter.cjs.map +1 -1
  342. package/dist/production/src/mapper/insert/Inserter.js.map +1 -1
  343. package/dist/production/src/mapper/insert/SqlCreateInputProcessor.cjs.map +1 -1
  344. package/dist/production/src/mapper/insert/SqlCreateInputProcessor.js.map +1 -1
  345. package/dist/production/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.cjs.map +1 -1
  346. package/dist/production/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.js.map +1 -1
  347. package/dist/production/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.cjs.map +1 -1
  348. package/dist/production/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.js.map +1 -1
  349. package/dist/production/src/mapper/insert/relations/OneHasManyCreateInputProcessor.cjs.map +1 -1
  350. package/dist/production/src/mapper/insert/relations/OneHasManyCreateInputProcessor.js.map +1 -1
  351. package/dist/production/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.cjs.map +1 -1
  352. package/dist/production/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.js.map +1 -1
  353. package/dist/production/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.cjs.map +1 -1
  354. package/dist/production/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.js.map +1 -1
  355. package/dist/production/src/mapper/select/ConditionBuilder.cjs +2 -0
  356. package/dist/production/src/mapper/select/ConditionBuilder.cjs.map +1 -1
  357. package/dist/production/src/mapper/select/ConditionBuilder.js +2 -0
  358. package/dist/production/src/mapper/select/ConditionBuilder.js.map +1 -1
  359. package/dist/production/src/mapper/select/JoinBuilder.cjs.map +1 -1
  360. package/dist/production/src/mapper/select/JoinBuilder.js.map +1 -1
  361. package/dist/production/src/mapper/select/JoinVisitor.cjs.map +1 -1
  362. package/dist/production/src/mapper/select/JoinVisitor.js.map +1 -1
  363. package/dist/production/src/mapper/select/OrderByBuilder.cjs.map +1 -1
  364. package/dist/production/src/mapper/select/OrderByBuilder.js.map +1 -1
  365. package/dist/production/src/mapper/select/OrderByHelper.cjs.map +1 -1
  366. package/dist/production/src/mapper/select/OrderByHelper.js.map +1 -1
  367. package/dist/production/src/mapper/select/RelationFetcher.cjs.map +1 -1
  368. package/dist/production/src/mapper/select/RelationFetcher.js.map +1 -1
  369. package/dist/production/src/mapper/select/SelectBuilder.cjs.map +1 -1
  370. package/dist/production/src/mapper/select/SelectBuilder.js.map +1 -1
  371. package/dist/production/src/mapper/select/SelectHydrator.cjs.map +1 -1
  372. package/dist/production/src/mapper/select/SelectHydrator.js.map +1 -1
  373. package/dist/production/src/mapper/select/WhereBuilder.cjs.map +1 -1
  374. package/dist/production/src/mapper/select/WhereBuilder.js.map +1 -1
  375. package/dist/production/src/mapper/select/handlers/FieldsVisitor.cjs +11 -2
  376. package/dist/production/src/mapper/select/handlers/FieldsVisitor.cjs.map +1 -1
  377. package/dist/production/src/mapper/select/handlers/FieldsVisitor.js +11 -2
  378. package/dist/production/src/mapper/select/handlers/FieldsVisitor.js.map +1 -1
  379. package/dist/production/src/mapper/select/handlers/FieldsVisitorFactory.cjs.map +1 -1
  380. package/dist/production/src/mapper/select/handlers/FieldsVisitorFactory.js.map +1 -1
  381. package/dist/production/src/mapper/select/handlers/MetaHandler.cjs.map +1 -1
  382. package/dist/production/src/mapper/select/handlers/MetaHandler.js.map +1 -1
  383. package/dist/production/src/mapper/select/optimizer/ConditionOptimizer.cjs.map +1 -1
  384. package/dist/production/src/mapper/select/optimizer/ConditionOptimizer.js.map +1 -1
  385. package/dist/production/src/mapper/select/optimizer/WhereOptimizer.cjs.map +1 -1
  386. package/dist/production/src/mapper/select/optimizer/WhereOptimizer.js.map +1 -1
  387. package/dist/production/src/mapper/update/SqlUpdateInputProcessor.cjs.map +1 -1
  388. package/dist/production/src/mapper/update/SqlUpdateInputProcessor.js.map +1 -1
  389. package/dist/production/src/mapper/update/UpdateBuilder.cjs.map +1 -1
  390. package/dist/production/src/mapper/update/UpdateBuilder.js.map +1 -1
  391. package/dist/production/src/mapper/update/UpdateBuilderFactory.cjs.map +1 -1
  392. package/dist/production/src/mapper/update/UpdateBuilderFactory.js.map +1 -1
  393. package/dist/production/src/mapper/update/Updater.cjs.map +1 -1
  394. package/dist/production/src/mapper/update/Updater.js.map +1 -1
  395. package/dist/production/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.cjs.map +1 -1
  396. package/dist/production/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.js.map +1 -1
  397. package/dist/production/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.cjs.map +1 -1
  398. package/dist/production/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.js.map +1 -1
  399. package/dist/production/src/mapper/update/relations/OneHasManyUpdateInputProcessor.cjs.map +1 -1
  400. package/dist/production/src/mapper/update/relations/OneHasManyUpdateInputProcessor.js.map +1 -1
  401. package/dist/production/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.cjs.map +1 -1
  402. package/dist/production/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.js.map +1 -1
  403. package/dist/production/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.cjs.map +1 -1
  404. package/dist/production/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.js.map +1 -1
  405. package/dist/production/src/resolvers/GraphQlQueryAstFactory.cjs.map +1 -1
  406. package/dist/production/src/resolvers/GraphQlQueryAstFactory.js.map +1 -1
  407. package/dist/production/src/resolvers/MutationResolver.cjs.map +1 -1
  408. package/dist/production/src/resolvers/MutationResolver.js.map +1 -1
  409. package/dist/production/src/resolvers/ReadHelpers.cjs.map +1 -1
  410. package/dist/production/src/resolvers/ReadHelpers.js.map +1 -1
  411. package/dist/production/src/resolvers/ReadResolver.cjs.map +1 -1
  412. package/dist/production/src/resolvers/ReadResolver.js.map +1 -1
  413. package/dist/production/src/resolvers/RefreshViewResolver.cjs.map +1 -1
  414. package/dist/production/src/resolvers/RefreshViewResolver.js.map +1 -1
  415. package/dist/production/src/resolvers/ValidationResolver.cjs.map +1 -1
  416. package/dist/production/src/resolvers/ValidationResolver.js.map +1 -1
  417. package/dist/production/src/schema/ColumnTypeResolver.cjs +2 -0
  418. package/dist/production/src/schema/ColumnTypeResolver.cjs.map +1 -1
  419. package/dist/production/src/schema/ColumnTypeResolver.js +2 -0
  420. package/dist/production/src/schema/ColumnTypeResolver.js.map +1 -1
  421. package/dist/production/src/schema/ConditionTypeProvider.cjs +2 -0
  422. package/dist/production/src/schema/ConditionTypeProvider.cjs.map +1 -1
  423. package/dist/production/src/schema/ConditionTypeProvider.js +2 -0
  424. package/dist/production/src/schema/ConditionTypeProvider.js.map +1 -1
  425. package/dist/production/src/schema/CustomTypesProvider.cjs +32 -0
  426. package/dist/production/src/schema/CustomTypesProvider.cjs.map +1 -1
  427. package/dist/production/src/schema/CustomTypesProvider.js +32 -0
  428. package/dist/production/src/schema/CustomTypesProvider.js.map +1 -1
  429. package/dist/production/src/schema/EntityTypeProvider.cjs.map +1 -1
  430. package/dist/production/src/schema/EntityTypeProvider.js.map +1 -1
  431. package/dist/production/src/schema/EnumsProvider.cjs.map +1 -1
  432. package/dist/production/src/schema/EnumsProvider.js.map +1 -1
  433. package/dist/production/src/schema/FieldAccessVisitor.cjs.map +1 -1
  434. package/dist/production/src/schema/FieldAccessVisitor.js.map +1 -1
  435. package/dist/production/src/schema/GraphQlSchemaBuilder.cjs.map +1 -1
  436. package/dist/production/src/schema/GraphQlSchemaBuilder.js.map +1 -1
  437. package/dist/production/src/schema/GraphQlSchemaBuilderFactory.cjs.map +1 -1
  438. package/dist/production/src/schema/GraphQlSchemaBuilderFactory.js.map +1 -1
  439. package/dist/production/src/schema/MutationProvider.cjs.map +1 -1
  440. package/dist/production/src/schema/MutationProvider.js.map +1 -1
  441. package/dist/production/src/schema/OperationExtension.cjs.map +1 -1
  442. package/dist/production/src/schema/OperationExtension.js.map +1 -1
  443. package/dist/production/src/schema/OrderByTypeProvider.cjs.map +1 -1
  444. package/dist/production/src/schema/OrderByTypeProvider.js.map +1 -1
  445. package/dist/production/src/schema/PaginatedFieldConfigFactory.cjs.map +1 -1
  446. package/dist/production/src/schema/PaginatedFieldConfigFactory.js.map +1 -1
  447. package/dist/production/src/schema/QueryProvider.cjs.map +1 -1
  448. package/dist/production/src/schema/QueryProvider.js.map +1 -1
  449. package/dist/production/src/schema/RefreshViewMutationProvider.cjs.map +1 -1
  450. package/dist/production/src/schema/RefreshViewMutationProvider.js.map +1 -1
  451. package/dist/production/src/schema/ValidationQueriesProvider.cjs.map +1 -1
  452. package/dist/production/src/schema/ValidationQueriesProvider.js.map +1 -1
  453. package/dist/production/src/schema/WhereTypeProvider.cjs.map +1 -1
  454. package/dist/production/src/schema/WhereTypeProvider.js.map +1 -1
  455. package/dist/production/src/schema/entities/FieldArgsVisitor.cjs.map +1 -1
  456. package/dist/production/src/schema/entities/FieldArgsVisitor.js.map +1 -1
  457. package/dist/production/src/schema/entities/FieldTypeVisitor.cjs.map +1 -1
  458. package/dist/production/src/schema/entities/FieldTypeVisitor.js.map +1 -1
  459. package/dist/production/src/schema/mutations/ConnectOrCreateRelationInputProvider.cjs.map +1 -1
  460. package/dist/production/src/schema/mutations/ConnectOrCreateRelationInputProvider.js.map +1 -1
  461. package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.cjs.map +1 -1
  462. package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.js.map +1 -1
  463. package/dist/production/src/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.cjs.map +1 -1
  464. package/dist/production/src/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.js.map +1 -1
  465. package/dist/production/src/schema/mutations/CreateEntityRelationInputFieldVisitor.cjs.map +1 -1
  466. package/dist/production/src/schema/mutations/CreateEntityRelationInputFieldVisitor.js.map +1 -1
  467. package/dist/production/src/schema/mutations/CreateEntityRelationInputProvider.cjs.map +1 -1
  468. package/dist/production/src/schema/mutations/CreateEntityRelationInputProvider.js.map +1 -1
  469. package/dist/production/src/schema/mutations/EntityInputProvider.cjs.map +1 -1
  470. package/dist/production/src/schema/mutations/EntityInputProvider.js.map +1 -1
  471. package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs.map +1 -1
  472. package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.js.map +1 -1
  473. package/dist/production/src/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.cjs.map +1 -1
  474. package/dist/production/src/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.js.map +1 -1
  475. package/dist/production/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.cjs.map +1 -1
  476. package/dist/production/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.js.map +1 -1
  477. package/dist/production/src/schema/mutations/UpdateEntityRelationInputProvider.cjs.map +1 -1
  478. package/dist/production/src/schema/mutations/UpdateEntityRelationInputProvider.js.map +1 -1
  479. package/dist/production/src/schema/utils.cjs.map +1 -1
  480. package/dist/production/src/schema/utils.js.map +1 -1
  481. package/dist/production/src/utils/accessor.cjs.map +1 -1
  482. package/dist/production/src/utils/accessor.js.map +1 -1
  483. package/dist/production/src/utils/paginationUtils.cjs.map +1 -1
  484. package/dist/production/src/utils/paginationUtils.js.map +1 -1
  485. package/dist/production/src/utils/singletonFactory.cjs.map +1 -1
  486. package/dist/production/src/utils/singletonFactory.js.map +1 -1
  487. package/dist/tests/cases/integration/graphQlRequests/insert/numericColumn.test.d.ts +2 -0
  488. package/dist/tests/cases/integration/graphQlRequests/insert/numericColumn.test.d.ts.map +1 -0
  489. package/dist/tests/cases/integration/graphQlRequests/query/filter/numericFilter.test.d.ts +2 -0
  490. package/dist/tests/cases/integration/graphQlRequests/query/filter/numericFilter.test.d.ts.map +1 -0
  491. package/dist/tests/cases/integration/graphQlRequests/query/filter/similarQuery.test.d.ts +2 -0
  492. package/dist/tests/cases/integration/graphQlRequests/query/filter/similarQuery.test.d.ts.map +1 -0
  493. package/dist/tests/cases/integration/graphQlRequests/query/formatting/numericFormat.test.d.ts +2 -0
  494. package/dist/tests/cases/integration/graphQlRequests/query/formatting/numericFormat.test.d.ts.map +1 -0
  495. package/dist/tests/cases/integration/graphQlRequests/query/formatting/numericList.test.d.ts +2 -0
  496. package/dist/tests/cases/integration/graphQlRequests/query/formatting/numericList.test.d.ts.map +1 -0
  497. package/dist/tests/cases/integration/graphQlRequests/validation/utils.d.ts +1 -1
  498. package/dist/tests/cases/integration/graphQlRequests/validation/utils.d.ts.map +1 -1
  499. package/dist/tests/cases/unit/decimalType.test.d.ts +2 -0
  500. package/dist/tests/cases/unit/decimalType.test.d.ts.map +1 -0
  501. package/dist/tests/cases/unit/jsonSchemaValidator.test.d.ts +2 -0
  502. package/dist/tests/cases/unit/jsonSchemaValidator.test.d.ts.map +1 -0
  503. package/dist/tests/src/test.d.ts +2 -1
  504. package/dist/tests/src/test.d.ts.map +1 -1
  505. package/dist/tests/tsconfig.tsbuildinfo +1 -1
  506. package/dist/types/ExecutionContainer.d.ts +31 -12
  507. package/dist/types/ExecutionContainer.d.ts.map +1 -1
  508. package/dist/types/acl/PermissionFactory.d.ts +6 -0
  509. package/dist/types/acl/PermissionFactory.d.ts.map +1 -1
  510. package/dist/types/acl/PredicateFactory.d.ts +18 -7
  511. package/dist/types/acl/PredicateFactory.d.ts.map +1 -1
  512. package/dist/types/acl/PredicatesInjector.d.ts +1 -1
  513. package/dist/types/acl/PredicatesInjector.d.ts.map +1 -1
  514. package/dist/types/acl/index.d.ts +6 -6
  515. package/dist/types/acl/index.d.ts.map +1 -1
  516. package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.d.ts +2 -2
  517. package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.d.ts.map +1 -1
  518. package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.d.ts +3 -3
  519. package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.d.ts.map +1 -1
  520. package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.d.ts +3 -3
  521. package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.d.ts.map +1 -1
  522. package/dist/types/extensions/hasManyToHasOneReducer/index.d.ts +3 -3
  523. package/dist/types/extensions/hasManyToHasOneReducer/index.d.ts.map +1 -1
  524. package/dist/types/extensions/index.d.ts +2 -2
  525. package/dist/types/extensions/index.d.ts.map +1 -1
  526. package/dist/types/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.d.ts +2 -2
  527. package/dist/types/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.d.ts.map +1 -1
  528. package/dist/types/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.d.ts +2 -2
  529. package/dist/types/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.d.ts.map +1 -1
  530. package/dist/types/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.d.ts +2 -2
  531. package/dist/types/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.d.ts.map +1 -1
  532. package/dist/types/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.d.ts +2 -2
  533. package/dist/types/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.d.ts.map +1 -1
  534. package/dist/types/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.d.ts +2 -2
  535. package/dist/types/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.d.ts.map +1 -1
  536. package/dist/types/index.d.ts +11 -11
  537. package/dist/types/index.d.ts.map +1 -1
  538. package/dist/types/input-validation/InputValidator.d.ts +1 -1
  539. package/dist/types/input-validation/InputValidator.d.ts.map +1 -1
  540. package/dist/types/input-validation/JsonSchemaValidator.d.ts +25 -0
  541. package/dist/types/input-validation/JsonSchemaValidator.d.ts.map +1 -0
  542. package/dist/types/input-validation/QueryAstFactory.d.ts +2 -2
  543. package/dist/types/input-validation/QueryAstFactory.d.ts.map +1 -1
  544. package/dist/types/input-validation/ValidationDataSelector.d.ts +4 -4
  545. package/dist/types/input-validation/ValidationDataSelector.d.ts.map +1 -1
  546. package/dist/types/input-validation/ValidationEvaluation.d.ts +1 -1
  547. package/dist/types/input-validation/ValidationEvaluation.d.ts.map +1 -1
  548. package/dist/types/input-validation/dependencies/DependencyMerger.d.ts +1 -1
  549. package/dist/types/input-validation/dependencies/DependencyMerger.d.ts.map +1 -1
  550. package/dist/types/input-validation/dependencies/index.d.ts +2 -2
  551. package/dist/types/input-validation/dependencies/index.d.ts.map +1 -1
  552. package/dist/types/input-validation/index.d.ts +12 -11
  553. package/dist/types/input-validation/index.d.ts.map +1 -1
  554. package/dist/types/input-validation/preValidation/CreateInputPreValidationProcessor.d.ts +5 -5
  555. package/dist/types/input-validation/preValidation/CreateInputPreValidationProcessor.d.ts.map +1 -1
  556. package/dist/types/input-validation/preValidation/InputPreValidator.d.ts +11 -6
  557. package/dist/types/input-validation/preValidation/InputPreValidator.d.ts.map +1 -1
  558. package/dist/types/input-validation/preValidation/UpdateInputPreValidationProcessor.d.ts +7 -7
  559. package/dist/types/input-validation/preValidation/UpdateInputPreValidationProcessor.d.ts.map +1 -1
  560. package/dist/types/input-validation/preValidation/index.d.ts +3 -3
  561. package/dist/types/input-validation/preValidation/index.d.ts.map +1 -1
  562. package/dist/types/inputProcessing/CreateInputProcessor.d.ts +2 -2
  563. package/dist/types/inputProcessing/CreateInputProcessor.d.ts.map +1 -1
  564. package/dist/types/inputProcessing/CreateInputVisitor.d.ts +2 -2
  565. package/dist/types/inputProcessing/CreateInputVisitor.d.ts.map +1 -1
  566. package/dist/types/inputProcessing/ObjectNode.d.ts +1 -1
  567. package/dist/types/inputProcessing/ObjectNode.d.ts.map +1 -1
  568. package/dist/types/inputProcessing/UniqueWhereExpander.d.ts +2 -2
  569. package/dist/types/inputProcessing/UniqueWhereExpander.d.ts.map +1 -1
  570. package/dist/types/inputProcessing/UpdateInputProcessor.d.ts +2 -2
  571. package/dist/types/inputProcessing/UpdateInputProcessor.d.ts.map +1 -1
  572. package/dist/types/inputProcessing/UpdateInputVisitor.d.ts +2 -2
  573. package/dist/types/inputProcessing/UpdateInputVisitor.d.ts.map +1 -1
  574. package/dist/types/inputProcessing/index.d.ts +7 -7
  575. package/dist/types/inputProcessing/index.d.ts.map +1 -1
  576. package/dist/types/introspection/IntrospectionSchemaDefinitionFactory.d.ts +1 -1
  577. package/dist/types/introspection/IntrospectionSchemaDefinitionFactory.d.ts.map +1 -1
  578. package/dist/types/introspection/IntrospectionSchemaFactory.d.ts +3 -3
  579. package/dist/types/introspection/IntrospectionSchemaFactory.d.ts.map +1 -1
  580. package/dist/types/introspection/index.d.ts +4 -4
  581. package/dist/types/introspection/index.d.ts.map +1 -1
  582. package/dist/types/mapper/ErrorUtils.d.ts +1 -1
  583. package/dist/types/mapper/ErrorUtils.d.ts.map +1 -1
  584. package/dist/types/mapper/EventManager.d.ts +2 -2
  585. package/dist/types/mapper/EventManager.d.ts.map +1 -1
  586. package/dist/types/mapper/JunctionTableManager.d.ts +4 -4
  587. package/dist/types/mapper/JunctionTableManager.d.ts.map +1 -1
  588. package/dist/types/mapper/Mapper.d.ts +12 -12
  589. package/dist/types/mapper/Mapper.d.ts.map +1 -1
  590. package/dist/types/mapper/MapperFactory.d.ts +8 -8
  591. package/dist/types/mapper/MapperFactory.d.ts.map +1 -1
  592. package/dist/types/mapper/MutationProcessorHelper.d.ts +1 -1
  593. package/dist/types/mapper/MutationProcessorHelper.d.ts.map +1 -1
  594. package/dist/types/mapper/Result.d.ts +1 -1
  595. package/dist/types/mapper/Result.d.ts.map +1 -1
  596. package/dist/types/mapper/delete/DeleteExecutor.d.ts +6 -6
  597. package/dist/types/mapper/delete/DeleteExecutor.d.ts.map +1 -1
  598. package/dist/types/mapper/delete/DeleteState.d.ts +2 -2
  599. package/dist/types/mapper/delete/DeleteState.d.ts.map +1 -1
  600. package/dist/types/mapper/delete/index.d.ts +2 -2
  601. package/dist/types/mapper/delete/index.d.ts.map +1 -1
  602. package/dist/types/mapper/index.d.ts +15 -15
  603. package/dist/types/mapper/index.d.ts.map +1 -1
  604. package/dist/types/mapper/insert/InsertBuilder.d.ts +4 -4
  605. package/dist/types/mapper/insert/InsertBuilder.d.ts.map +1 -1
  606. package/dist/types/mapper/insert/InsertBuilderFactory.d.ts +3 -3
  607. package/dist/types/mapper/insert/InsertBuilderFactory.d.ts.map +1 -1
  608. package/dist/types/mapper/insert/Inserter.d.ts +5 -5
  609. package/dist/types/mapper/insert/Inserter.d.ts.map +1 -1
  610. package/dist/types/mapper/insert/SqlCreateInputProcessor.d.ts +4 -4
  611. package/dist/types/mapper/insert/SqlCreateInputProcessor.d.ts.map +1 -1
  612. package/dist/types/mapper/insert/index.d.ts +4 -4
  613. package/dist/types/mapper/insert/index.d.ts.map +1 -1
  614. package/dist/types/mapper/insert/relations/ManyHasManyCreateInputProcessor.d.ts +7 -7
  615. package/dist/types/mapper/insert/relations/ManyHasManyCreateInputProcessor.d.ts.map +1 -1
  616. package/dist/types/mapper/insert/relations/ManyHasOneCreateInputProcessor.d.ts +9 -9
  617. package/dist/types/mapper/insert/relations/ManyHasOneCreateInputProcessor.d.ts.map +1 -1
  618. package/dist/types/mapper/insert/relations/OneHasManyCreateInputProcessor.d.ts +8 -8
  619. package/dist/types/mapper/insert/relations/OneHasManyCreateInputProcessor.d.ts.map +1 -1
  620. package/dist/types/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.d.ts +7 -7
  621. package/dist/types/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.d.ts.map +1 -1
  622. package/dist/types/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.d.ts +7 -7
  623. package/dist/types/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.d.ts.map +1 -1
  624. package/dist/types/mapper/select/ConditionBuilder.d.ts.map +1 -1
  625. package/dist/types/mapper/select/JoinBuilder.d.ts +1 -1
  626. package/dist/types/mapper/select/JoinBuilder.d.ts.map +1 -1
  627. package/dist/types/mapper/select/JoinVisitor.d.ts +1 -1
  628. package/dist/types/mapper/select/JoinVisitor.d.ts.map +1 -1
  629. package/dist/types/mapper/select/OrderByBuilder.d.ts +2 -2
  630. package/dist/types/mapper/select/OrderByBuilder.d.ts.map +1 -1
  631. package/dist/types/mapper/select/OrderByHelper.d.ts +1 -1
  632. package/dist/types/mapper/select/OrderByHelper.d.ts.map +1 -1
  633. package/dist/types/mapper/select/RelationFetcher.d.ts +7 -7
  634. package/dist/types/mapper/select/RelationFetcher.d.ts.map +1 -1
  635. package/dist/types/mapper/select/SelectBuilder.d.ts +10 -10
  636. package/dist/types/mapper/select/SelectBuilder.d.ts.map +1 -1
  637. package/dist/types/mapper/select/SelectBuilderFactory.d.ts +2 -2
  638. package/dist/types/mapper/select/SelectBuilderFactory.d.ts.map +1 -1
  639. package/dist/types/mapper/select/SelectExecutionHandler.d.ts +4 -4
  640. package/dist/types/mapper/select/SelectExecutionHandler.d.ts.map +1 -1
  641. package/dist/types/mapper/select/SelectHydrator.d.ts +1 -1
  642. package/dist/types/mapper/select/SelectHydrator.d.ts.map +1 -1
  643. package/dist/types/mapper/select/WhereBuilder.d.ts +4 -4
  644. package/dist/types/mapper/select/WhereBuilder.d.ts.map +1 -1
  645. package/dist/types/mapper/select/handlers/FieldsVisitor.d.ts +4 -4
  646. package/dist/types/mapper/select/handlers/FieldsVisitor.d.ts.map +1 -1
  647. package/dist/types/mapper/select/handlers/FieldsVisitorFactory.d.ts +5 -5
  648. package/dist/types/mapper/select/handlers/FieldsVisitorFactory.d.ts.map +1 -1
  649. package/dist/types/mapper/select/handlers/MetaHandler.d.ts +3 -3
  650. package/dist/types/mapper/select/handlers/MetaHandler.d.ts.map +1 -1
  651. package/dist/types/mapper/select/handlers/index.d.ts +3 -3
  652. package/dist/types/mapper/select/handlers/index.d.ts.map +1 -1
  653. package/dist/types/mapper/select/index.d.ts +13 -13
  654. package/dist/types/mapper/select/index.d.ts.map +1 -1
  655. package/dist/types/mapper/select/optimizer/WhereOptimizer.d.ts +1 -1
  656. package/dist/types/mapper/select/optimizer/WhereOptimizer.d.ts.map +1 -1
  657. package/dist/types/mapper/types.d.ts +1 -1
  658. package/dist/types/mapper/types.d.ts.map +1 -1
  659. package/dist/types/mapper/update/SqlUpdateInputProcessor.d.ts +5 -5
  660. package/dist/types/mapper/update/SqlUpdateInputProcessor.d.ts.map +1 -1
  661. package/dist/types/mapper/update/UpdateBuilder.d.ts +4 -4
  662. package/dist/types/mapper/update/UpdateBuilder.d.ts.map +1 -1
  663. package/dist/types/mapper/update/UpdateBuilderFactory.d.ts +3 -3
  664. package/dist/types/mapper/update/UpdateBuilderFactory.d.ts.map +1 -1
  665. package/dist/types/mapper/update/Updater.d.ts +5 -5
  666. package/dist/types/mapper/update/Updater.d.ts.map +1 -1
  667. package/dist/types/mapper/update/index.d.ts +4 -4
  668. package/dist/types/mapper/update/index.d.ts.map +1 -1
  669. package/dist/types/mapper/update/relations/ManyHasManyUpdateInputProcessor.d.ts +12 -12
  670. package/dist/types/mapper/update/relations/ManyHasManyUpdateInputProcessor.d.ts.map +1 -1
  671. package/dist/types/mapper/update/relations/ManyHasOneUpdateInputProcessor.d.ts +12 -12
  672. package/dist/types/mapper/update/relations/ManyHasOneUpdateInputProcessor.d.ts.map +1 -1
  673. package/dist/types/mapper/update/relations/OneHasManyUpdateInputProcessor.d.ts +12 -12
  674. package/dist/types/mapper/update/relations/OneHasManyUpdateInputProcessor.d.ts.map +1 -1
  675. package/dist/types/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.d.ts +6 -6
  676. package/dist/types/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.d.ts.map +1 -1
  677. package/dist/types/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.d.ts +10 -10
  678. package/dist/types/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.d.ts.map +1 -1
  679. package/dist/types/resolvers/GraphQlQueryAstFactory.d.ts +1 -1
  680. package/dist/types/resolvers/GraphQlQueryAstFactory.d.ts.map +1 -1
  681. package/dist/types/resolvers/MutationResolver.d.ts +3 -3
  682. package/dist/types/resolvers/MutationResolver.d.ts.map +1 -1
  683. package/dist/types/resolvers/ReadHelpers.d.ts +2 -2
  684. package/dist/types/resolvers/ReadHelpers.d.ts.map +1 -1
  685. package/dist/types/resolvers/ReadResolver.d.ts +4 -4
  686. package/dist/types/resolvers/ReadResolver.d.ts.map +1 -1
  687. package/dist/types/resolvers/RefreshViewResolver.d.ts +1 -1
  688. package/dist/types/resolvers/RefreshViewResolver.d.ts.map +1 -1
  689. package/dist/types/resolvers/ValidationResolver.d.ts +2 -2
  690. package/dist/types/resolvers/ValidationResolver.d.ts.map +1 -1
  691. package/dist/types/resolvers/index.d.ts +4 -4
  692. package/dist/types/resolvers/index.d.ts.map +1 -1
  693. package/dist/types/schema/ColumnTypeResolver.d.ts +2 -2
  694. package/dist/types/schema/ColumnTypeResolver.d.ts.map +1 -1
  695. package/dist/types/schema/ConditionTypeProvider.d.ts +1 -1
  696. package/dist/types/schema/ConditionTypeProvider.d.ts.map +1 -1
  697. package/dist/types/schema/CustomTypesProvider.d.ts +1 -0
  698. package/dist/types/schema/CustomTypesProvider.d.ts.map +1 -1
  699. package/dist/types/schema/EntityTypeProvider.d.ts +5 -5
  700. package/dist/types/schema/EntityTypeProvider.d.ts.map +1 -1
  701. package/dist/types/schema/FieldAccessVisitor.d.ts +1 -1
  702. package/dist/types/schema/FieldAccessVisitor.d.ts.map +1 -1
  703. package/dist/types/schema/GraphQlSchemaBuilder.d.ts +6 -6
  704. package/dist/types/schema/GraphQlSchemaBuilder.d.ts.map +1 -1
  705. package/dist/types/schema/GraphQlSchemaBuilderFactory.d.ts +30 -30
  706. package/dist/types/schema/GraphQlSchemaBuilderFactory.d.ts.map +1 -1
  707. package/dist/types/schema/MutationProvider.d.ts +6 -6
  708. package/dist/types/schema/MutationProvider.d.ts.map +1 -1
  709. package/dist/types/schema/OrderByTypeProvider.d.ts +1 -1
  710. package/dist/types/schema/OrderByTypeProvider.d.ts.map +1 -1
  711. package/dist/types/schema/PaginatedFieldConfigFactory.d.ts +3 -3
  712. package/dist/types/schema/PaginatedFieldConfigFactory.d.ts.map +1 -1
  713. package/dist/types/schema/QueryProvider.d.ts +6 -6
  714. package/dist/types/schema/QueryProvider.d.ts.map +1 -1
  715. package/dist/types/schema/RefreshViewMutationProvider.d.ts +2 -2
  716. package/dist/types/schema/RefreshViewMutationProvider.d.ts.map +1 -1
  717. package/dist/types/schema/ValidationQueriesProvider.d.ts +4 -4
  718. package/dist/types/schema/ValidationQueriesProvider.d.ts.map +1 -1
  719. package/dist/types/schema/WhereTypeProvider.d.ts +3 -3
  720. package/dist/types/schema/WhereTypeProvider.d.ts.map +1 -1
  721. package/dist/types/schema/entities/FieldArgsVisitor.d.ts +2 -2
  722. package/dist/types/schema/entities/FieldArgsVisitor.d.ts.map +1 -1
  723. package/dist/types/schema/entities/FieldTypeVisitor.d.ts +3 -3
  724. package/dist/types/schema/entities/FieldTypeVisitor.d.ts.map +1 -1
  725. package/dist/types/schema/entities/index.d.ts +2 -2
  726. package/dist/types/schema/entities/index.d.ts.map +1 -1
  727. package/dist/types/schema/index.d.ts +18 -18
  728. package/dist/types/schema/index.d.ts.map +1 -1
  729. package/dist/types/schema/mutations/ConnectOrCreateRelationInputProvider.d.ts +3 -3
  730. package/dist/types/schema/mutations/ConnectOrCreateRelationInputProvider.d.ts.map +1 -1
  731. package/dist/types/schema/mutations/CreateEntityInputFieldVisitor.d.ts +3 -3
  732. package/dist/types/schema/mutations/CreateEntityInputFieldVisitor.d.ts.map +1 -1
  733. package/dist/types/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.d.ts +1 -1
  734. package/dist/types/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.d.ts.map +1 -1
  735. package/dist/types/schema/mutations/CreateEntityRelationInputFieldVisitor.d.ts +5 -5
  736. package/dist/types/schema/mutations/CreateEntityRelationInputFieldVisitor.d.ts.map +1 -1
  737. package/dist/types/schema/mutations/CreateEntityRelationInputProvider.d.ts +1 -1
  738. package/dist/types/schema/mutations/CreateEntityRelationInputProvider.d.ts.map +1 -1
  739. package/dist/types/schema/mutations/EntityInputProvider.d.ts +1 -1
  740. package/dist/types/schema/mutations/EntityInputProvider.d.ts.map +1 -1
  741. package/dist/types/schema/mutations/UpdateEntityInputFieldVisitor.d.ts +4 -4
  742. package/dist/types/schema/mutations/UpdateEntityInputFieldVisitor.d.ts.map +1 -1
  743. package/dist/types/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.d.ts +1 -1
  744. package/dist/types/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.d.ts.map +1 -1
  745. package/dist/types/schema/mutations/UpdateEntityRelationInputFieldVisitor.d.ts +6 -6
  746. package/dist/types/schema/mutations/UpdateEntityRelationInputFieldVisitor.d.ts.map +1 -1
  747. package/dist/types/schema/mutations/UpdateEntityRelationInputProvider.d.ts +1 -1
  748. package/dist/types/schema/mutations/UpdateEntityRelationInputProvider.d.ts.map +1 -1
  749. package/dist/types/schema/mutations/index.d.ts +9 -9
  750. package/dist/types/schema/mutations/index.d.ts.map +1 -1
  751. package/dist/types/tsconfig.tsbuildinfo +1 -1
  752. package/dist/types/types.d.ts +1 -1
  753. package/dist/types/types.d.ts.map +1 -1
  754. package/dist/types/utils/accessor.d.ts +1 -1
  755. package/dist/types/utils/accessor.d.ts.map +1 -1
  756. package/dist/types/utils/index.d.ts +13 -13
  757. package/dist/types/utils/index.d.ts.map +1 -1
  758. package/dist/types/utils/paginationUtils.d.ts +1 -1
  759. package/dist/types/utils/paginationUtils.d.ts.map +1 -1
  760. package/package.json +9 -10
  761. package/src/ExecutionContainer.ts +77 -16
  762. package/src/acl/EvaluatedPredicateReplacer.ts +1 -1
  763. package/src/acl/PermissionFactory.ts +50 -17
  764. package/src/acl/PredicateFactory.ts +40 -11
  765. package/src/acl/PredicatesInjector.ts +20 -14
  766. package/src/acl/index.ts +6 -6
  767. package/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.ts +2 -2
  768. package/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.ts +5 -5
  769. package/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.ts +4 -4
  770. package/src/extensions/hasManyToHasOneReducer/index.ts +3 -3
  771. package/src/extensions/index.ts +2 -2
  772. package/src/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.ts +2 -2
  773. package/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.ts +5 -5
  774. package/src/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.ts +2 -2
  775. package/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.ts +4 -4
  776. package/src/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.ts +2 -2
  777. package/src/index.ts +11 -11
  778. package/src/input-validation/EntityRulesResolver.ts +3 -3
  779. package/src/input-validation/InputValidator.ts +1 -1
  780. package/src/input-validation/JsonSchemaValidator.ts +257 -0
  781. package/src/input-validation/QueryAstFactory.ts +2 -2
  782. package/src/input-validation/ValidationContext.ts +1 -1
  783. package/src/input-validation/ValidationDataSelector.ts +3 -3
  784. package/src/input-validation/ValidationEvaluation.ts +1 -1
  785. package/src/input-validation/dependencies/DependencyCollector.ts +1 -1
  786. package/src/input-validation/dependencies/DependencyMerger.ts +2 -2
  787. package/src/input-validation/dependencies/index.ts +2 -2
  788. package/src/input-validation/index.ts +12 -11
  789. package/src/input-validation/preValidation/CreateInputPreValidationProcessor.ts +4 -4
  790. package/src/input-validation/preValidation/InputPreValidator.ts +60 -17
  791. package/src/input-validation/preValidation/UpdateInputPreValidationProcessor.ts +4 -4
  792. package/src/input-validation/preValidation/index.ts +3 -3
  793. package/src/inputProcessing/CreateInputProcessor.ts +2 -2
  794. package/src/inputProcessing/CreateInputVisitor.ts +4 -4
  795. package/src/inputProcessing/ObjectNode.ts +1 -1
  796. package/src/inputProcessing/UniqueWhereExpander.ts +3 -3
  797. package/src/inputProcessing/UpdateInputProcessor.ts +2 -2
  798. package/src/inputProcessing/UpdateInputVisitor.ts +4 -4
  799. package/src/inputProcessing/index.ts +7 -7
  800. package/src/introspection/IntrospectionSchemaDefinitionFactory.ts +3 -3
  801. package/src/introspection/IntrospectionSchemaFactory.ts +4 -4
  802. package/src/introspection/index.ts +4 -4
  803. package/src/mapper/ErrorUtils.ts +2 -2
  804. package/src/mapper/EventManager.ts +2 -2
  805. package/src/mapper/JunctionTableManager.ts +6 -6
  806. package/src/mapper/Mapper.ts +14 -14
  807. package/src/mapper/MapperFactory.ts +8 -8
  808. package/src/mapper/MutationProcessorHelper.ts +1 -1
  809. package/src/mapper/Result.ts +1 -1
  810. package/src/mapper/delete/DeleteExecutor.ts +11 -11
  811. package/src/mapper/delete/DeleteState.ts +3 -3
  812. package/src/mapper/delete/index.ts +2 -2
  813. package/src/mapper/index.ts +15 -15
  814. package/src/mapper/insert/InsertBuilder.ts +5 -5
  815. package/src/mapper/insert/InsertBuilderFactory.ts +3 -3
  816. package/src/mapper/insert/Inserter.ts +8 -8
  817. package/src/mapper/insert/SqlCreateInputProcessor.ts +10 -10
  818. package/src/mapper/insert/index.ts +4 -4
  819. package/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.ts +6 -6
  820. package/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.ts +7 -7
  821. package/src/mapper/insert/relations/OneHasManyCreateInputProcessor.ts +5 -5
  822. package/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.ts +6 -6
  823. package/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.ts +7 -7
  824. package/src/mapper/select/ConditionBuilder.ts +3 -1
  825. package/src/mapper/select/JoinBuilder.ts +2 -2
  826. package/src/mapper/select/JoinVisitor.ts +1 -1
  827. package/src/mapper/select/OrderByBuilder.ts +3 -3
  828. package/src/mapper/select/OrderByHelper.ts +1 -1
  829. package/src/mapper/select/RelationFetcher.ts +9 -9
  830. package/src/mapper/select/SelectBuilder.ts +11 -11
  831. package/src/mapper/select/SelectBuilderFactory.ts +2 -2
  832. package/src/mapper/select/SelectExecutionHandler.ts +4 -4
  833. package/src/mapper/select/SelectHydrator.ts +2 -2
  834. package/src/mapper/select/WhereBuilder.ts +5 -5
  835. package/src/mapper/select/handlers/FieldsVisitor.ts +24 -8
  836. package/src/mapper/select/handlers/FieldsVisitorFactory.ts +5 -5
  837. package/src/mapper/select/handlers/MetaHandler.ts +5 -5
  838. package/src/mapper/select/handlers/index.ts +3 -3
  839. package/src/mapper/select/index.ts +13 -13
  840. package/src/mapper/select/optimizer/ConditionOptimizer.ts +1 -1
  841. package/src/mapper/select/optimizer/WhereOptimizer.ts +3 -3
  842. package/src/mapper/types.ts +1 -1
  843. package/src/mapper/update/SqlUpdateInputProcessor.ts +11 -11
  844. package/src/mapper/update/UpdateBuilder.ts +6 -6
  845. package/src/mapper/update/UpdateBuilderFactory.ts +3 -3
  846. package/src/mapper/update/Updater.ts +8 -8
  847. package/src/mapper/update/index.ts +4 -4
  848. package/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.ts +6 -6
  849. package/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.ts +7 -7
  850. package/src/mapper/update/relations/OneHasManyUpdateInputProcessor.ts +6 -6
  851. package/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.ts +6 -6
  852. package/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.ts +7 -7
  853. package/src/resolvers/GraphQlQueryAstFactory.ts +2 -2
  854. package/src/resolvers/MutationResolver.ts +9 -9
  855. package/src/resolvers/ReadHelpers.ts +5 -5
  856. package/src/resolvers/ReadResolver.ts +4 -4
  857. package/src/resolvers/RefreshViewResolver.ts +1 -1
  858. package/src/resolvers/ValidationResolver.ts +3 -3
  859. package/src/resolvers/index.ts +4 -4
  860. package/src/schema/ColumnTypeResolver.ts +6 -4
  861. package/src/schema/ConditionTypeProvider.ts +7 -4
  862. package/src/schema/CustomTypesProvider.ts +37 -0
  863. package/src/schema/EntityTypeProvider.ts +10 -10
  864. package/src/schema/EnumsProvider.ts +1 -1
  865. package/src/schema/FieldAccessVisitor.ts +1 -1
  866. package/src/schema/GraphQlSchemaBuilder.ts +6 -6
  867. package/src/schema/GraphQlSchemaBuilderFactory.ts +30 -30
  868. package/src/schema/MutationProvider.ts +9 -9
  869. package/src/schema/OperationExtension.ts +1 -1
  870. package/src/schema/OrderByTypeProvider.ts +4 -4
  871. package/src/schema/PaginatedFieldConfigFactory.ts +3 -3
  872. package/src/schema/QueryProvider.ts +8 -8
  873. package/src/schema/RefreshViewMutationProvider.ts +2 -2
  874. package/src/schema/ValidationQueriesProvider.ts +5 -5
  875. package/src/schema/WhereTypeProvider.ts +7 -7
  876. package/src/schema/entities/FieldArgsVisitor.ts +2 -2
  877. package/src/schema/entities/FieldTypeVisitor.ts +4 -4
  878. package/src/schema/entities/index.ts +2 -2
  879. package/src/schema/index.ts +18 -18
  880. package/src/schema/mutations/ConnectOrCreateRelationInputProvider.ts +5 -5
  881. package/src/schema/mutations/CreateEntityInputFieldVisitor.ts +3 -3
  882. package/src/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.ts +2 -2
  883. package/src/schema/mutations/CreateEntityRelationInputFieldVisitor.ts +7 -7
  884. package/src/schema/mutations/CreateEntityRelationInputProvider.ts +2 -2
  885. package/src/schema/mutations/EntityInputProvider.ts +4 -4
  886. package/src/schema/mutations/UpdateEntityInputFieldVisitor.ts +3 -3
  887. package/src/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.ts +1 -1
  888. package/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.ts +8 -8
  889. package/src/schema/mutations/UpdateEntityRelationInputProvider.ts +2 -2
  890. package/src/schema/mutations/index.ts +9 -9
  891. package/src/schema/utils.ts +1 -1
  892. package/src/types.ts +1 -1
  893. package/src/utils/accessor.ts +2 -2
  894. package/src/utils/index.ts +13 -13
  895. package/src/utils/paginationUtils.ts +1 -1
  896. package/src/utils/singletonFactory.ts +1 -1
  897. package/tests/cases/bugs/bug-filter-or.test.ts +3 -3
  898. package/tests/cases/bugs/bug-update-by-nested-unique.test.ts +3 -3
  899. package/tests/cases/bugs/bug102.test.ts +3 -3
  900. package/tests/cases/integration/graphQlRequests/delete/aclDelete.test.ts +3 -3
  901. package/tests/cases/integration/graphQlRequests/delete/additionalDeleteFilter.test.ts +3 -3
  902. package/tests/cases/integration/graphQlRequests/delete/cascadeDelete.test.ts +3 -3
  903. package/tests/cases/integration/graphQlRequests/delete/deleteById.test.ts +3 -3
  904. package/tests/cases/integration/graphQlRequests/delete/orphanRemoval.test.ts +3 -3
  905. package/tests/cases/integration/graphQlRequests/delete/restrictOnDelete.test.ts +3 -3
  906. package/tests/cases/integration/graphQlRequests/delete/setNullOnDelete.test.ts +3 -3
  907. package/tests/cases/integration/graphQlRequests/insert/acl/setField.test.ts +3 -3
  908. package/tests/cases/integration/graphQlRequests/insert/aclInsert.test.ts +3 -3
  909. package/tests/cases/integration/graphQlRequests/insert/basicInsert.test.ts +3 -3
  910. package/tests/cases/integration/graphQlRequests/insert/insertCustomId.test.ts +3 -3
  911. package/tests/cases/integration/graphQlRequests/insert/jsonInsert.test.ts +3 -3
  912. package/tests/cases/integration/graphQlRequests/insert/manyHasManyInverse/create.test.ts +3 -3
  913. package/tests/cases/integration/graphQlRequests/insert/manyHasManyOwning/create.test.ts +3 -3
  914. package/tests/cases/integration/graphQlRequests/insert/manyHasOne/connectOrCreate.test.ts +3 -3
  915. package/tests/cases/integration/graphQlRequests/insert/manyHasOne/create.test.ts +3 -3
  916. package/tests/cases/integration/graphQlRequests/insert/numericColumn.test.ts +110 -0
  917. package/tests/cases/integration/graphQlRequests/insert/oneHasMany/connect.test.ts +3 -3
  918. package/tests/cases/integration/graphQlRequests/insert/oneHasMany/create.test.ts +3 -3
  919. package/tests/cases/integration/graphQlRequests/insert/oneHasOneInverse/create.test.ts +3 -3
  920. package/tests/cases/integration/graphQlRequests/insert/oneHasOneOwning/create.test.ts +3 -3
  921. package/tests/cases/integration/graphQlRequests/insert/oneHasOneOwning/empty.test.ts +3 -3
  922. package/tests/cases/integration/graphQlRequests/insert/subOperationFail.test.ts +3 -3
  923. package/tests/cases/integration/graphQlRequests/insert/validation/toBeFixed.test.ts +3 -3
  924. package/tests/cases/integration/graphQlRequests/query/acl/differentRowAndFieldPredicate.test.ts +3 -3
  925. package/tests/cases/integration/graphQlRequests/query/acl/fieldRestrictedByLocale.test.ts +3 -3
  926. package/tests/cases/integration/graphQlRequests/query/acl/isNullAcl.test.ts +4 -4
  927. package/tests/cases/integration/graphQlRequests/query/acl/nestedPredicate.test.ts +3 -3
  928. package/tests/cases/integration/graphQlRequests/query/acl/orPredicate.test.ts +3 -3
  929. package/tests/cases/integration/graphQlRequests/query/acl/predicateElimination.test.ts +4 -4
  930. package/tests/cases/integration/graphQlRequests/query/acl/relationAcl.test.ts +4 -4
  931. package/tests/cases/integration/graphQlRequests/query/acl/rowPredicateSubset.test.ts +4 -4
  932. package/tests/cases/integration/graphQlRequests/query/acl/sameRowAndFieldPredicate.test.ts +3 -3
  933. package/tests/cases/integration/graphQlRequests/query/filter/backReferencedFilter.test.ts +3 -3
  934. package/tests/cases/integration/graphQlRequests/query/filter/complexCondition.test.ts +3 -3
  935. package/tests/cases/integration/graphQlRequests/query/filter/composedFilter.test.ts +3 -3
  936. package/tests/cases/integration/graphQlRequests/query/filter/containsQuery.test.ts +3 -3
  937. package/tests/cases/integration/graphQlRequests/query/filter/manyHasManyOwnerRelation.test.ts +3 -3
  938. package/tests/cases/integration/graphQlRequests/query/filter/manyHasOneRelation.test.ts +3 -3
  939. package/tests/cases/integration/graphQlRequests/query/filter/numericFilter.test.ts +92 -0
  940. package/tests/cases/integration/graphQlRequests/query/filter/oneHasManyRelation.test.ts +3 -3
  941. package/tests/cases/integration/graphQlRequests/query/filter/similarQuery.test.ts +72 -0
  942. package/tests/cases/integration/graphQlRequests/query/formatting/dateFormat.test.ts +135 -4
  943. package/tests/cases/integration/graphQlRequests/query/formatting/numericFormat.test.ts +68 -0
  944. package/tests/cases/integration/graphQlRequests/query/formatting/numericList.test.ts +41 -0
  945. package/tests/cases/integration/graphQlRequests/query/graphqlFeatures/alias.test.ts +3 -3
  946. package/tests/cases/integration/graphQlRequests/query/graphqlFeatures/fragments.test.ts +3 -3
  947. package/tests/cases/integration/graphQlRequests/query/misc/aliasedType.test.ts +3 -3
  948. package/tests/cases/integration/graphQlRequests/query/misc/longAliasHash.test.ts +3 -3
  949. package/tests/cases/integration/graphQlRequests/query/misc/reducedHasMany.test.ts +3 -3
  950. package/tests/cases/integration/graphQlRequests/query/misc/transaction.test.ts +3 -3
  951. package/tests/cases/integration/graphQlRequests/query/pagination/hasManyLimit.test.ts +3 -3
  952. package/tests/cases/integration/graphQlRequests/query/pagination/paginate.test.ts +3 -3
  953. package/tests/cases/integration/graphQlRequests/query/pagination/paginateAliased.test.ts +3 -3
  954. package/tests/cases/integration/graphQlRequests/query/pagination/simpleLimit.test.ts +3 -3
  955. package/tests/cases/integration/graphQlRequests/query/relations/advanced.test.ts +3 -3
  956. package/tests/cases/integration/graphQlRequests/query/relations/manyHasManyInverse.test.ts +3 -3
  957. package/tests/cases/integration/graphQlRequests/query/relations/manyHasManyOwning.test.ts +3 -3
  958. package/tests/cases/integration/graphQlRequests/query/relations/manyHasOne.test.ts +3 -3
  959. package/tests/cases/integration/graphQlRequests/query/relations/oneHasMany.test.ts +3 -3
  960. package/tests/cases/integration/graphQlRequests/query/relations/oneHasOneInverse.test.ts +3 -3
  961. package/tests/cases/integration/graphQlRequests/query/relations/oneHasOneOwner.test.ts +3 -3
  962. package/tests/cases/integration/graphQlRequests/query/sorting/byRelations.test.ts +3 -3
  963. package/tests/cases/integration/graphQlRequests/query/sorting/defaultOrdering.test.ts +3 -3
  964. package/tests/cases/integration/graphQlRequests/query/sorting/orderBy.test.ts +3 -3
  965. package/tests/cases/integration/graphQlRequests/query/sorting/randomSort.test.ts +3 -3
  966. package/tests/cases/integration/graphQlRequests/query/sorting/sortNulls.test.ts +2 -2
  967. package/tests/cases/integration/graphQlRequests/query/sorting/sortedHasMany.test.ts +3 -3
  968. package/tests/cases/integration/graphQlRequests/query/unique/basicQueryById.test.ts +3 -3
  969. package/tests/cases/integration/graphQlRequests/query/unique/composedUnique.test.ts +3 -3
  970. package/tests/cases/integration/graphQlRequests/query/unique/oneHasManyUnique.test.ts +3 -3
  971. package/tests/cases/integration/graphQlRequests/query/unique/uniqueWithFilter.test.ts +3 -3
  972. package/tests/cases/integration/graphQlRequests/query/view/view.test.ts +3 -3
  973. package/tests/cases/integration/graphQlRequests/update/acl/aclUpdate.test.ts +3 -3
  974. package/tests/cases/integration/graphQlRequests/update/additionalFilter.test.ts +3 -3
  975. package/tests/cases/integration/graphQlRequests/update/basic/columnUpdate.test.ts +3 -3
  976. package/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/connect.test.ts +4 -4
  977. package/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/create.test.ts +4 -4
  978. package/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/delete.test.ts +4 -4
  979. package/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/disconnect.test.ts +4 -4
  980. package/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/update.test.ts +4 -4
  981. package/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/upsert.test.ts +4 -4
  982. package/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/connect.test.ts +4 -4
  983. package/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/connectOrCreate.test.ts +4 -4
  984. package/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/create.test.ts +4 -4
  985. package/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/delete.test.ts +4 -4
  986. package/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/disconnect.test.ts +4 -4
  987. package/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/update.test.ts +4 -4
  988. package/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/upsert.test.ts +4 -4
  989. package/tests/cases/integration/graphQlRequests/update/manyHasOne/connect.test.ts +4 -4
  990. package/tests/cases/integration/graphQlRequests/update/manyHasOne/create.test.ts +4 -4
  991. package/tests/cases/integration/graphQlRequests/update/manyHasOne/delete.test.ts +4 -4
  992. package/tests/cases/integration/graphQlRequests/update/manyHasOne/disconnect.test.ts +4 -4
  993. package/tests/cases/integration/graphQlRequests/update/manyHasOne/update.test.ts +4 -4
  994. package/tests/cases/integration/graphQlRequests/update/manyHasOne/upsert.test.ts +4 -4
  995. package/tests/cases/integration/graphQlRequests/update/oneHasMany/combination.test.ts +4 -4
  996. package/tests/cases/integration/graphQlRequests/update/oneHasMany/connect.test.ts +4 -4
  997. package/tests/cases/integration/graphQlRequests/update/oneHasMany/connectOrCreate.test.ts +4 -4
  998. package/tests/cases/integration/graphQlRequests/update/oneHasMany/create.test.ts +4 -4
  999. package/tests/cases/integration/graphQlRequests/update/oneHasMany/delete.test.ts +4 -4
  1000. package/tests/cases/integration/graphQlRequests/update/oneHasMany/disconnect.test.ts +4 -4
  1001. package/tests/cases/integration/graphQlRequests/update/oneHasMany/update.test.ts +4 -4
  1002. package/tests/cases/integration/graphQlRequests/update/oneHasMany/upsert.test.ts +4 -4
  1003. package/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/connect.test.ts +4 -4
  1004. package/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/create.test.ts +4 -4
  1005. package/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/delete.test.ts +4 -4
  1006. package/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/disconnect.test.ts +4 -4
  1007. package/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/update.test.ts +4 -4
  1008. package/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/upsert.test.ts +4 -4
  1009. package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/connect.test.ts +4 -4
  1010. package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/connectOrCreate.test.ts +4 -4
  1011. package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/create.test.ts +4 -4
  1012. package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/delete.test.ts +4 -4
  1013. package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/disconnect.test.ts +4 -4
  1014. package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/update.test.ts +4 -4
  1015. package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/upsert.test.ts +4 -4
  1016. package/tests/cases/integration/graphQlRequests/update/queryPortal.test.ts +3 -3
  1017. package/tests/cases/integration/graphQlRequests/update/transaction.test.ts +3 -3
  1018. package/tests/cases/integration/graphQlRequests/update/validation/toBeFixed.test.ts +3 -3
  1019. package/tests/cases/integration/graphQlRequests/upsert/basicUpsert.test.ts +3 -3
  1020. package/tests/cases/integration/graphQlRequests/validation/conditions.test.ts +1 -1
  1021. package/tests/cases/integration/graphQlRequests/validation/nestedValidation.test.ts +2 -2
  1022. package/tests/cases/integration/graphQlRequests/validation/optionalAssert.test.ts +2 -2
  1023. package/tests/cases/integration/graphQlRequests/validation/required.test.ts +2 -2
  1024. package/tests/cases/integration/graphQlRequests/validation/requiredWhen.test.ts +2 -2
  1025. package/tests/cases/integration/graphQlRequests/validation/rules/andRule.test.ts +1 -1
  1026. package/tests/cases/integration/graphQlRequests/validation/rules/lengthRangeRule.test.ts +1 -1
  1027. package/tests/cases/integration/graphQlRequests/validation/rules/maxLengthRule.test.ts +1 -1
  1028. package/tests/cases/integration/graphQlRequests/validation/rules/minLength.test.ts +1 -1
  1029. package/tests/cases/integration/graphQlRequests/validation/rules/notEmptyRule.test.ts +1 -1
  1030. package/tests/cases/integration/graphQlRequests/validation/rules/notRule.test.ts +1 -1
  1031. package/tests/cases/integration/graphQlRequests/validation/rules/orRule.test.ts +1 -1
  1032. package/tests/cases/integration/graphQlRequests/validation/rules/patternRule.test.ts +1 -1
  1033. package/tests/cases/integration/graphQlRequests/validation/rules/rangeRule.test.ts +1 -1
  1034. package/tests/cases/integration/graphQlRequests/validation/utils.ts +2 -2
  1035. package/tests/cases/integration/graphQlSchema/graphQlSchemaBuilder.test.ts +2 -2
  1036. package/tests/cases/integration/graphQlSchema/schema-acl-allowed.gql +2 -0
  1037. package/tests/cases/integration/graphQlSchema/schema-acl-predicate.gql +2 -0
  1038. package/tests/cases/integration/graphQlSchema/schema-acl-predicate2.gql +2 -0
  1039. package/tests/cases/integration/graphQlSchema/schema-acl-restricted-create.gql +2 -0
  1040. package/tests/cases/integration/graphQlSchema/schema-acl-restricted-delete.gql +2 -0
  1041. package/tests/cases/integration/graphQlSchema/schema-acl-restricted-update.gql +2 -0
  1042. package/tests/cases/integration/graphQlSchema/schema-acl.gql +2 -0
  1043. package/tests/cases/integration/graphQlSchema/schema-aliased-type.gql +2 -0
  1044. package/tests/cases/integration/graphQlSchema/schema-basic.gql +2 -0
  1045. package/tests/cases/integration/graphQlSchema/schema-bug-66.gql +2 -0
  1046. package/tests/cases/integration/graphQlSchema/schema-column-types.gql +2 -0
  1047. package/tests/cases/integration/graphQlSchema/schema-custom-primary.gql +2 -0
  1048. package/tests/cases/integration/graphQlSchema/schema-has-many-reduction.gql +2 -0
  1049. package/tests/cases/integration/graphQlSchema/schema-new-builder.gql +2 -0
  1050. package/tests/cases/integration/graphQlSchema/schema-no-root-ops.gql +2 -0
  1051. package/tests/cases/integration/graphQlSchema/schema-read-only.gql +2 -0
  1052. package/tests/cases/integration/graphQlSchema/schema-view-entity.gql +2 -0
  1053. package/tests/cases/unit/aclVariablesFactory.test.ts +2 -2
  1054. package/tests/cases/unit/conditionOptimizer.test.ts +1 -1
  1055. package/tests/cases/unit/decimalType.test.ts +65 -0
  1056. package/tests/cases/unit/inputPreValidator.test.ts +101 -6
  1057. package/tests/cases/unit/inputValidation.test.ts +3 -3
  1058. package/tests/cases/unit/jsonSchemaValidator.test.ts +115 -0
  1059. package/tests/cases/unit/orderbyHelper.test.ts +3 -3
  1060. package/tests/cases/unit/permissionMerger.test.ts +164 -2
  1061. package/tests/cases/unit/predicatesFactory.test.ts +77 -2
  1062. package/tests/cases/unit/predicatesInjector.test.ts +5 -5
  1063. package/tests/cases/unit/uuidType.test.ts +1 -1
  1064. package/tests/cases/unit/variableInjector.test.ts +2 -2
  1065. package/tests/cases/unit/whereBuilder.test.ts +4 -4
  1066. package/tests/cases/unit/whereOptimizer.test.ts +3 -3
  1067. package/tests/src/test.ts +6 -5
  1068. package/vitest.config.ts +0 -3
@@ -1,11 +1,12 @@
1
- export * from './dependencies'
2
- export * from './preValidation'
3
- export * from './ColumnValueResolver'
4
- export * from './EntityRulesResolver'
5
- export * from './exceptions'
6
- export * from './InputValidator'
7
- export * from './QueryAstFactory'
8
- export * from './ValidationContext'
9
- export * from './ValidationDataSelector'
10
- export * from './ValidationEvaluation'
11
- export * from './ValidationPath'
1
+ export * from './dependencies/index.js'
2
+ export * from './preValidation/index.js'
3
+ export * from './ColumnValueResolver.js'
4
+ export * from './EntityRulesResolver.js'
5
+ export * from './exceptions.js'
6
+ export * from './InputValidator.js'
7
+ export * from './JsonSchemaValidator.js'
8
+ export * from './QueryAstFactory.js'
9
+ export * from './ValidationContext.js'
10
+ export * from './ValidationDataSelector.js'
11
+ export * from './ValidationEvaluation.js'
12
+ export * from './ValidationPath.js'
@@ -1,8 +1,8 @@
1
- import { CreateInputProcessor } from '../../inputProcessing'
1
+ import { CreateInputProcessor } from '../../inputProcessing/index.js'
2
2
  import { Input, Model } from '@contember/schema'
3
- import { appendRelationToPath, ValidationPath } from '../ValidationPath'
4
- import { Mapper, MapperInput } from '../../mapper'
5
- import { InputPreValidator } from './InputPreValidator'
3
+ import { appendRelationToPath, ValidationPath } from '../ValidationPath.js'
4
+ import { Mapper, MapperInput } from '../../mapper/index.js'
5
+ import { InputPreValidator } from './InputPreValidator.js'
6
6
 
7
7
  type Result = any
8
8
  const NoResult = () => Promise.resolve([])
@@ -1,21 +1,22 @@
1
1
  import { acceptEveryFieldVisitor } from '@contember/schema-utils'
2
- import { isIt, tuple } from '../../utils'
2
+ import { isIt, tuple } from '../../utils/index.js'
3
3
  import { Input, Model, Validation, Value } from '@contember/schema'
4
4
  import { InputValidation } from '@contember/schema-definition'
5
- import { CreateInputVisitor, UpdateInputVisitor } from '../../inputProcessing'
6
- import { CreateInputPreValidationProcessor } from './CreateInputPreValidationProcessor'
7
- import { ValidationContext } from '../ValidationContext'
8
- import { evaluateValidation } from '../ValidationEvaluation'
9
- import { ValidationPath } from '../ValidationPath'
10
- import { EntityRulesResolver } from '../EntityRulesResolver'
11
- import { FieldValidationResult, ValidationResult } from '../InputValidator'
12
- import { UpdateInputPreValidationProcessor } from './UpdateInputPreValidationProcessor'
13
- import { ColumnValueResolver } from '../ColumnValueResolver'
14
- import { Mapper, MapperInput } from '../../mapper'
15
- import { Dependencies, DependencyCollector } from '../dependencies'
16
- import { DependencyMerger } from '../dependencies'
17
- import { NotSupportedError } from '../exceptions'
18
- import { ValidationDataSelector } from '../ValidationDataSelector'
5
+ import { CreateInputVisitor, UpdateInputVisitor } from '../../inputProcessing/index.js'
6
+ import { CreateInputPreValidationProcessor } from './CreateInputPreValidationProcessor.js'
7
+ import { ValidationContext } from '../ValidationContext.js'
8
+ import { evaluateValidation } from '../ValidationEvaluation.js'
9
+ import { ValidationPath } from '../ValidationPath.js'
10
+ import { EntityRulesResolver } from '../EntityRulesResolver.js'
11
+ import { FieldValidationResult, ValidationResult } from '../InputValidator.js'
12
+ import { UpdateInputPreValidationProcessor } from './UpdateInputPreValidationProcessor.js'
13
+ import { ColumnValueResolver } from '../ColumnValueResolver.js'
14
+ import { Mapper, MapperInput } from '../../mapper/index.js'
15
+ import { Dependencies, DependencyCollector } from '../dependencies/index.js'
16
+ import { DependencyMerger } from '../dependencies/index.js'
17
+ import { NotSupportedError } from '../exceptions.js'
18
+ import { ValidationDataSelector } from '../ValidationDataSelector.js'
19
+ import { validateJsonSchema } from '../JsonSchemaValidator.js'
19
20
 
20
21
  export interface CreateValidationArgs {
21
22
  mapper: Mapper
@@ -54,11 +55,13 @@ export class InputPreValidator {
54
55
 
55
56
  const fieldsResult = this.validateFields(rules, context, path)
56
57
 
58
+ const jsonSchemaResult = this.validateJsonSchemaColumns(entity, data, path)
59
+
57
60
  const processor = new CreateInputPreValidationProcessor(this, path, mapper)
58
61
  const visitor = new CreateInputVisitor(processor, this.model, data)
59
62
  const relationResult = await this.validateRelations(entity, visitor)
60
63
 
61
- return [...fieldsResult, ...relationResult]
64
+ return [...fieldsResult, ...jsonSchemaResult, ...relationResult]
62
65
  }
63
66
 
64
67
  async validateUpdate({ entity, data, path, mapper, where }: UpdateValidationArgs): Promise<ValidationResult> {
@@ -69,11 +72,51 @@ export class InputPreValidator {
69
72
  const context = await this.createContextForUpdate(mapper, entity, where, data, dependencies)
70
73
  const fieldsResult: ValidationResult = this.validateFields(rules, context, path)
71
74
 
75
+ const jsonSchemaResult = this.validateJsonSchemaColumns(entity, data, path)
76
+
72
77
  const processor = new UpdateInputPreValidationProcessor(this, path, mapper)
73
78
  const visitor = new UpdateInputVisitor(processor, this.model, data)
74
79
  const relationResult = await this.validateRelations(entity, visitor)
75
80
 
76
- return [...fieldsResult, ...relationResult]
81
+ return [...fieldsResult, ...jsonSchemaResult, ...relationResult]
82
+ }
83
+
84
+ /**
85
+ * Validates JSON columns that have a JSON Schema attached. Only fields present in the input
86
+ * are validated; `null` values are skipped (use `notNull()` to forbid them).
87
+ */
88
+ private validateJsonSchemaColumns(
89
+ entity: Model.Entity,
90
+ data: MapperInput.CreateDataInput | MapperInput.UpdateDataInput,
91
+ path: ValidationPath,
92
+ ): ValidationResult {
93
+ const result: ValidationResult = []
94
+ for (const field of Object.values(entity.fields)) {
95
+ if (field.type !== Model.ColumnType.Json) {
96
+ continue
97
+ }
98
+ const schema = (field as Model.AnyColumn).schema
99
+ if (schema === undefined) {
100
+ continue
101
+ }
102
+ if (!(field.name in data)) {
103
+ continue
104
+ }
105
+ const value = data[field.name] as Input.ColumnValue
106
+ if (value === null || value === undefined) {
107
+ continue
108
+ }
109
+ const errors = validateJsonSchema(schema, value)
110
+ for (const error of errors) {
111
+ result.push({
112
+ path: [...path, { field: field.name }],
113
+ message: {
114
+ text: error.path ? `${error.path}: ${error.message}` : error.message,
115
+ },
116
+ })
117
+ }
118
+ }
119
+ return result
77
120
  }
78
121
 
79
122
  private createContextForCreate(entity: Model.Entity, data: MapperInput.CreateDataInput): ValidationContext.NodeContext {
@@ -1,8 +1,8 @@
1
- import { UpdateInputProcessor } from '../../inputProcessing'
1
+ import { UpdateInputProcessor } from '../../inputProcessing/index.js'
2
2
  import { Input, Model } from '@contember/schema'
3
- import { appendRelationToPath, ValidationPath } from '../ValidationPath'
4
- import { Mapper, MapperInput } from '../../mapper'
5
- import { InputPreValidator } from './InputPreValidator'
3
+ import { appendRelationToPath, ValidationPath } from '../ValidationPath.js'
4
+ import { Mapper, MapperInput } from '../../mapper/index.js'
5
+ import { InputPreValidator } from './InputPreValidator.js'
6
6
 
7
7
  type Result = any
8
8
 
@@ -1,3 +1,3 @@
1
- export * from './CreateInputPreValidationProcessor'
2
- export * from './InputPreValidator'
3
- export * from './UpdateInputPreValidationProcessor'
1
+ export * from './CreateInputPreValidationProcessor.js'
2
+ export * from './InputPreValidator.js'
3
+ export * from './UpdateInputPreValidationProcessor.js'
@@ -1,6 +1,6 @@
1
1
  import { Input, Model } from '@contember/schema'
2
- import { CheckedPrimary } from '../mapper/CheckedPrimary'
3
- import { MapperInput } from '../mapper'
2
+ import { CheckedPrimary } from '../mapper/CheckedPrimary.js'
3
+ import { MapperInput } from '../mapper/index.js'
4
4
 
5
5
  interface CreateInputProcessor<Result = void> {
6
6
  column(context: Model.ColumnContext & { input: Input.ColumnValue | undefined }): Promise<Result>
@@ -1,8 +1,8 @@
1
- import { filterObject } from '../utils'
1
+ import { filterObject } from '../utils/index.js'
2
2
  import { Input, Model } from '@contember/schema'
3
- import { CreateInputProcessor } from './CreateInputProcessor'
4
- import { ImplementationException, UserError } from '../exception'
5
- import { MapperInput } from '../mapper'
3
+ import { CreateInputProcessor } from './CreateInputProcessor.js'
4
+ import { ImplementationException, UserError } from '../exception.js'
5
+ import { MapperInput } from '../mapper/index.js'
6
6
 
7
7
  export class CreateInputVisitor<Result> implements Model.ColumnVisitor<Promise<Result[]>>, Model.RelationByTypeVisitor<Promise<Result[]>> {
8
8
  constructor(
@@ -1,4 +1,4 @@
1
- import { FieldNode } from './FieldNode'
1
+ import { FieldNode } from './FieldNode.js'
2
2
 
3
3
  export class ObjectNode<Args = any, Extensions extends Record<string, any> = Record<string, any>> {
4
4
  constructor(
@@ -1,8 +1,8 @@
1
1
  import { Input, Model, Writable } from '@contember/schema'
2
2
  import { getTargetEntity } from '@contember/schema-utils'
3
- import { UserError } from '../exception'
4
- import { getFieldsForUniqueWhere } from '../utils'
5
- import { CheckedPrimary } from '../mapper/CheckedPrimary'
3
+ import { UserError } from '../exception.js'
4
+ import { getFieldsForUniqueWhere } from '../utils/index.js'
5
+ import { CheckedPrimary } from '../mapper/CheckedPrimary.js'
6
6
 
7
7
  type ExtendedUniqueWhere = Input.UniqueWhere<Input.PrimaryValue[]>
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { Input, Model } from '@contember/schema'
2
- import { CheckedPrimary } from '../mapper/CheckedPrimary'
3
- import { MapperInput } from '../mapper'
2
+ import { CheckedPrimary } from '../mapper/CheckedPrimary.js'
3
+ import { MapperInput } from '../mapper/index.js'
4
4
 
5
5
  interface UpdateInputProcessor<Result = void> {
6
6
  column(context: Model.ColumnContext & { input: Input.ColumnValue | undefined }): Promise<Result>
@@ -1,8 +1,8 @@
1
1
  import { Input, Model } from '@contember/schema'
2
- import { filterObject } from '../utils'
3
- import { UpdateInputProcessor } from './UpdateInputProcessor'
4
- import { ImplementationException, UserError } from '../exception'
5
- import { MapperInput } from '../mapper'
2
+ import { filterObject } from '../utils/index.js'
3
+ import { UpdateInputProcessor } from './UpdateInputProcessor.js'
4
+ import { ImplementationException, UserError } from '../exception.js'
5
+ import { MapperInput } from '../mapper/index.js'
6
6
 
7
7
  export class UpdateInputVisitor<Result> implements Model.ColumnVisitor<Promise<Result[]>>, Model.RelationByTypeVisitor<Promise<Result[]>> {
8
8
  constructor(
@@ -1,7 +1,7 @@
1
- export * from './CreateInputProcessor'
2
- export * from './CreateInputVisitor'
3
- export * from './FieldNode'
4
- export * from './ObjectNode'
5
- export * from './UniqueWhereExpander'
6
- export * from './UpdateInputProcessor'
7
- export * from './UpdateInputVisitor'
1
+ export * from './CreateInputProcessor.js'
2
+ export * from './CreateInputVisitor.js'
3
+ export * from './FieldNode.js'
4
+ export * from './ObjectNode.js'
5
+ export * from './UniqueWhereExpander.js'
6
+ export * from './UpdateInputProcessor.js'
7
+ export * from './UpdateInputVisitor.js'
@@ -1,7 +1,7 @@
1
1
  import { GraphQLSchema, GraphQLSchemaConfig } from 'graphql'
2
- import * as ContentSchema from './content-schema.types'
3
- import { IntrospectionSchemaFactory } from './IntrospectionSchemaFactory'
4
- import { createSchemaConfig } from './introspection.schema'
2
+ import * as ContentSchema from './content-schema.types.js'
3
+ import { IntrospectionSchemaFactory } from './IntrospectionSchemaFactory.js'
4
+ import { createSchemaConfig } from './introspection.schema.js'
5
5
 
6
6
  export class IntrospectionSchemaDefinitionFactory {
7
7
  constructor(private readonly introspectionSchemaFactory: IntrospectionSchemaFactory) {}
@@ -1,8 +1,8 @@
1
1
  import { Acl, Model, Validation } from '@contember/schema'
2
- import { EntityRulesResolver } from '../input-validation'
3
- import { Authorizator } from '../acl'
4
- import * as ContentSchema from './content-schema.types'
5
- import { assertNever } from '../utils'
2
+ import { EntityRulesResolver } from '../input-validation/index.js'
3
+ import { Authorizator } from '../acl/index.js'
4
+ import * as ContentSchema from './content-schema.types.js'
5
+ import { assertNever } from '../utils/index.js'
6
6
  import { acceptEveryFieldVisitor, getEntity } from '@contember/schema-utils'
7
7
 
8
8
  type AdditionalFieldInfo =
@@ -1,4 +1,4 @@
1
- export * as ContentSchemaTypes from './content-schema.types'
2
- export { IntrospectionSchemaDefinitionFactory } from './IntrospectionSchemaDefinitionFactory'
3
- export { default as ContentSchema } from './introspection.schema'
4
- export * from './IntrospectionSchemaFactory'
1
+ export * as ContentSchemaTypes from './content-schema.types.js'
2
+ export { IntrospectionSchemaDefinitionFactory } from './IntrospectionSchemaDefinitionFactory.js'
3
+ export { default as ContentSchema } from './introspection.schema.js'
4
+ export * from './IntrospectionSchemaFactory.js'
@@ -7,9 +7,9 @@ import {
7
7
  MutationResultHint,
8
8
  MutationResultList,
9
9
  MutationSqlError,
10
- } from './Result'
10
+ } from './Result.js'
11
11
  import * as Database from '@contember/database'
12
- import { UniqueWhereError } from '../inputProcessing'
12
+ import { UniqueWhereError } from '../inputProcessing/index.js'
13
13
  import { Model } from '@contember/schema'
14
14
  import { acceptFieldVisitor, tryGetColumnName } from '@contember/schema-utils'
15
15
  import { logger } from '@contember/logger'
@@ -1,6 +1,6 @@
1
1
  import { Input, Model, Value } from '@contember/schema'
2
- import { Mapper } from './Mapper'
3
- import { ColumnValue } from './ColumnValue'
2
+ import { Mapper } from './Mapper.js'
3
+ import { ColumnValue } from './ColumnValue.js'
4
4
 
5
5
  export class BeforeInsertEvent {
6
6
  public type = 'BeforeInsertEvent' as const
@@ -1,6 +1,6 @@
1
1
  import { getEntity } from '@contember/schema-utils'
2
- import { PathFactory, WhereBuilder } from './select'
3
- import { PredicateFactory } from '../acl'
2
+ import { PathFactory, WhereBuilder } from './select/index.js'
3
+ import { PredicateFactory } from '../acl/index.js'
4
4
  import { Client, ConflictActionType, DeleteBuilder, InsertBuilder, Literal, Operator, SelectBuilder } from '@contember/database'
5
5
  import { Acl, Input, Model } from '@contember/schema'
6
6
  import {
@@ -10,10 +10,10 @@ import {
10
10
  MutationResultList,
11
11
  MutationResultType,
12
12
  NothingToDoReason,
13
- } from './Result'
14
- import { ImplementationException } from '../exception'
15
- import { AfterJunctionUpdateEvent, BeforeJunctionUpdateEvent } from './EventManager'
16
- import { Mapper } from './Mapper'
13
+ } from './Result.js'
14
+ import { ImplementationException } from '../exception.js'
15
+ import { AfterJunctionUpdateEvent, BeforeJunctionUpdateEvent } from './EventManager.js'
16
+ import { Mapper } from './Mapper.js'
17
17
 
18
18
  type OkResultFactory = () => MutationJunctionUpdateOk
19
19
 
@@ -9,21 +9,21 @@ import {
9
9
  SelectIndexedResultObjects,
10
10
  SelectResultObject,
11
11
  WhereBuilder,
12
- } from './select'
12
+ } from './select/index.js'
13
13
  import { Client, Connection, ConstraintHelper, DatabaseMetadata, SelectBuilder } from '@contember/database'
14
- import { PredicatesInjector } from '../acl'
15
- import { JunctionTableManager } from './JunctionTableManager'
16
- import { DeletedEntitiesStorage, DeleteExecutor } from './delete'
17
- import { MutationEntryNotFoundError, MutationResultList } from './Result'
18
- import { UpdateBuilder, Updater } from './update'
19
- import { InsertBuilder, Inserter } from './insert'
20
- import { tryMutation } from './ErrorUtils'
21
- import { ObjectNode, UniqueWhereExpander } from '../inputProcessing'
22
- import { Mutex } from '../utils'
23
- import { CheckedPrimary } from './CheckedPrimary'
24
- import { ImplementationException } from '../exception'
25
- import { EventManager } from './EventManager'
26
- import { MapperInput } from './types'
14
+ import { PredicatesInjector } from '../acl/index.js'
15
+ import { JunctionTableManager } from './JunctionTableManager.js'
16
+ import { DeletedEntitiesStorage, DeleteExecutor } from './delete/index.js'
17
+ import { MutationEntryNotFoundError, MutationResultList } from './Result.js'
18
+ import { UpdateBuilder, Updater } from './update/index.js'
19
+ import { InsertBuilder, Inserter } from './insert/index.js'
20
+ import { tryMutation } from './ErrorUtils.js'
21
+ import { ObjectNode, UniqueWhereExpander } from '../inputProcessing/index.js'
22
+ import { Mutex } from '../utils/index.js'
23
+ import { CheckedPrimary } from './CheckedPrimary.js'
24
+ import { ImplementationException } from '../exception.js'
25
+ import { EventManager } from './EventManager.js'
26
+ import { MapperInput } from './types.js'
27
27
 
28
28
  export class Mapper<ConnectionType extends Connection.ConnectionLike = Connection.ConnectionLike> {
29
29
  private systemVariablesSetupDone: Promise<void> | undefined
@@ -1,13 +1,13 @@
1
- import { PredicatesInjector } from '../acl'
2
- import { PathFactory, SelectBuilderFactory, WhereBuilder } from './select'
3
- import { UniqueWhereExpander } from '../inputProcessing'
4
- import { JunctionTableManager } from './JunctionTableManager'
5
- import { DeleteExecutor } from './delete'
6
- import { Updater } from './update'
7
- import { Inserter } from './insert'
1
+ import { PredicatesInjector } from '../acl/index.js'
2
+ import { PathFactory, SelectBuilderFactory, WhereBuilder } from './select/index.js'
3
+ import { UniqueWhereExpander } from '../inputProcessing/index.js'
4
+ import { JunctionTableManager } from './JunctionTableManager.js'
5
+ import { DeleteExecutor } from './delete/index.js'
6
+ import { Updater } from './update/index.js'
7
+ import { Inserter } from './insert/index.js'
8
8
  import { Model } from '@contember/schema'
9
9
  import { Client, Connection, DatabaseMetadata } from '@contember/database'
10
- import { Mapper } from './Mapper'
10
+ import { Mapper } from './Mapper.js'
11
11
  import { Providers } from '@contember/schema-utils'
12
12
 
13
13
  export type MapperFactoryHook = (mapper: Mapper) => void
@@ -1,4 +1,4 @@
1
- import { MutationResultList, prependPath } from './Result'
1
+ import { MutationResultList, prependPath } from './Result.js'
2
2
  import { Model } from '@contember/schema'
3
3
 
4
4
  export const hasManyProcessor = <Context extends { relation: Model.AnyRelation; index: number; alias?: string }, Args>(
@@ -1,5 +1,5 @@
1
1
  import { Input, Model, Value } from '@contember/schema'
2
- import { MapperInput } from './types'
2
+ import { MapperInput } from './types.js'
3
3
 
4
4
  export enum MutationResultType {
5
5
  ok = 'ok',
@@ -1,9 +1,9 @@
1
1
  import { Acl, Input, Model } from '@contember/schema'
2
- import { assertNever } from '../../utils'
2
+ import { assertNever } from '../../utils/index.js'
3
3
  import { Client, DeleteBuilder, Literal, SelectBuilder } from '@contember/database'
4
- import { PathFactory, WhereBuilder } from '../select'
5
- import { PredicateFactory } from '../../acl'
6
- import { UpdateBuilderFactory } from '../update'
4
+ import { PathFactory, WhereBuilder } from '../select/index.js'
5
+ import { PredicateFactory } from '../../acl/index.js'
6
+ import { UpdateBuilderFactory } from '../update/index.js'
7
7
  import {
8
8
  ConstraintType,
9
9
  MutationConstraintViolationError,
@@ -14,20 +14,20 @@ import {
14
14
  MutationResultList,
15
15
  MutationUpdateOk,
16
16
  NothingToDoReason,
17
- } from '../Result'
18
- import { Mapper } from '../Mapper'
19
- import { CheckedPrimary } from '../CheckedPrimary'
20
- import { DeleteState } from './DeleteState'
17
+ } from '../Result.js'
18
+ import { Mapper } from '../Mapper.js'
19
+ import { CheckedPrimary } from '../CheckedPrimary.js'
20
+ import { DeleteState } from './DeleteState.js'
21
21
  import {
22
22
  EntityReferenceRow,
23
23
  findOwningRelations,
24
24
  findRelationsWithOrphanRemoval,
25
25
  formatConstraintViolationMessage,
26
26
  OneHasOneOwningRelationTuple,
27
- } from './helpers'
27
+ } from './helpers.js'
28
28
  import { getEntity } from '@contember/schema-utils'
29
- import { AfterUpdateEvent, BeforeDeleteEvent, BeforeUpdateEvent, EventManager } from '../EventManager'
30
- import { ImplementationException } from '../../exception'
29
+ import { AfterUpdateEvent, BeforeDeleteEvent, BeforeUpdateEvent, EventManager } from '../EventManager.js'
30
+ import { ImplementationException } from '../../exception.js'
31
31
 
32
32
  type DeleteQueue = [entity: Model.Entity, ids: Input.PrimaryValue[]][]
33
33
 
@@ -1,7 +1,7 @@
1
- import { DeletedEntitiesStorage } from './DeletedEntitiesStorage'
1
+ import { DeletedEntitiesStorage } from './DeletedEntitiesStorage.js'
2
2
  import { Input } from '@contember/schema'
3
- import { ImplementationException } from '../../exception'
4
- import { MutationResult, MutationResultList } from '../Result'
3
+ import { ImplementationException } from '../../exception.js'
4
+ import { MutationResult, MutationResultList } from '../Result.js'
5
5
 
6
6
  export class DeleteState {
7
7
  private plannedDelete = new DeletedEntitiesStorage()
@@ -1,2 +1,2 @@
1
- export * from './DeletedEntitiesStorage'
2
- export * from './DeleteExecutor'
1
+ export * from './DeletedEntitiesStorage.js'
2
+ export * from './DeleteExecutor.js'
@@ -1,15 +1,15 @@
1
- export * from './delete'
2
- export * from './insert'
3
- export * from './select'
4
- export * from './update'
5
- export * from './ColumnValue'
6
- export * from './Constraints'
7
- export * from './ErrorUtils'
8
- export * from './EventManager'
9
- export * from './JunctionTableManager'
10
- export * from './Mapper'
11
- export * from '../ExecutionContainer'
12
- export * from './MapperFactory'
13
- export * from './MutationProcessorHelper'
14
- export * from './Result'
15
- export * from './types'
1
+ export * from './delete/index.js'
2
+ export * from './insert/index.js'
3
+ export * from './select/index.js'
4
+ export * from './update/index.js'
5
+ export * from './ColumnValue.js'
6
+ export * from './Constraints.js'
7
+ export * from './ErrorUtils.js'
8
+ export * from './EventManager.js'
9
+ export * from './JunctionTableManager.js'
10
+ export * from './Mapper.js'
11
+ export * from '../ExecutionContainer.js'
12
+ export * from './MapperFactory.js'
13
+ export * from './MutationProcessorHelper.js'
14
+ export * from './Result.js'
15
+ export * from './types.js'
@@ -1,11 +1,11 @@
1
1
  import { Acl, Input, Model, Value } from '@contember/schema'
2
2
  import { InsertBuilder as DbInsertBuilder, QueryBuilder, Value as DbValue } from '@contember/database'
3
- import { PathFactory, WhereBuilder } from '../select'
3
+ import { PathFactory, WhereBuilder } from '../select/index.js'
4
4
  import { getColumnName, getColumnType } from '@contember/schema-utils'
5
- import { ColumnValue, normalizeDbValue } from '../ColumnValue'
6
- import { PredicateFactory } from '../../acl'
7
- import { AfterInsertEvent, BeforeInsertEvent } from '../EventManager'
8
- import { Mapper } from '../Mapper'
5
+ import { ColumnValue, normalizeDbValue } from '../ColumnValue.js'
6
+ import { PredicateFactory } from '../../acl/index.js'
7
+ import { AfterInsertEvent, BeforeInsertEvent } from '../EventManager.js'
8
+ import { Mapper } from '../Mapper.js'
9
9
 
10
10
  export interface InsertResult {
11
11
  values: ColumnValue[]
@@ -1,7 +1,7 @@
1
- import { PathFactory, WhereBuilder } from '../select'
1
+ import { PathFactory, WhereBuilder } from '../select/index.js'
2
2
  import { Model } from '@contember/schema'
3
- import { InsertBuilder } from './InsertBuilder'
4
- import { PredicateFactory } from '../../acl'
3
+ import { InsertBuilder } from './InsertBuilder.js'
4
+ import { PredicateFactory } from '../../acl/index.js'
5
5
 
6
6
  export class InsertBuilderFactory {
7
7
  constructor(
@@ -1,14 +1,14 @@
1
- import { MutationCreateOk, MutationNoResultError, MutationResultList } from '../Result'
2
- import { CreateInputVisitor } from '../../inputProcessing'
3
- import { SqlCreateInputProcessor, SqlCreateInputProcessorResult } from './SqlCreateInputProcessor'
4
- import { Mapper } from '../Mapper'
1
+ import { MutationCreateOk, MutationNoResultError, MutationResultList } from '../Result.js'
2
+ import { CreateInputVisitor } from '../../inputProcessing/index.js'
3
+ import { SqlCreateInputProcessor, SqlCreateInputProcessorResult } from './SqlCreateInputProcessor.js'
4
+ import { Mapper } from '../Mapper.js'
5
5
  import { Model } from '@contember/schema'
6
6
  import { acceptFieldVisitor, Providers } from '@contember/schema-utils'
7
- import { InsertBuilderFactory } from './InsertBuilderFactory'
8
- import { InsertBuilder } from './InsertBuilder'
9
- import { rowDataToFieldValues } from '../ColumnValue'
7
+ import { InsertBuilderFactory } from './InsertBuilderFactory.js'
8
+ import { InsertBuilder } from './InsertBuilder.js'
9
+ import { rowDataToFieldValues } from '../ColumnValue.js'
10
10
  import { DatabaseMetadata } from '@contember/database'
11
- import { MapperInput } from '../types'
11
+ import { MapperInput } from '../types.js'
12
12
 
13
13
  export class Inserter {
14
14
  constructor(
@@ -1,15 +1,15 @@
1
1
  import { Input, Model, Value } from '@contember/schema'
2
- import { Mapper } from '../Mapper'
3
- import { InsertBuilder } from './InsertBuilder'
2
+ import { Mapper } from '../Mapper.js'
3
+ import { InsertBuilder } from './InsertBuilder.js'
4
4
  import { Providers, resolveColumnValue } from '@contember/schema-utils'
5
- import { CreateInputProcessor } from '../../inputProcessing'
6
- import { MutationResultList } from '../Result'
7
- import { hasManyProcessor, hasOneProcessor } from '../MutationProcessorHelper'
8
- import { OneHasOneInverseCreateInputProcessor } from './relations/OneHasOneInverseCreateInputProcessor'
9
- import { OneHasOneOwningCreateInputProcessor } from './relations/OneHasOneOwningCreateInputProcessor'
10
- import { OneHasManyCreateInputProcessor } from './relations/OneHasManyCreateInputProcessor'
11
- import { ManyHasOneCreateInputProcessor } from './relations/ManyHasOneCreateInputProcessor'
12
- import { ManyHasManyCreateInputProcessor } from './relations/ManyHasManyCreateInputProcessor'
5
+ import { CreateInputProcessor } from '../../inputProcessing/index.js'
6
+ import { MutationResultList } from '../Result.js'
7
+ import { hasManyProcessor, hasOneProcessor } from '../MutationProcessorHelper.js'
8
+ import { OneHasOneInverseCreateInputProcessor } from './relations/OneHasOneInverseCreateInputProcessor.js'
9
+ import { OneHasOneOwningCreateInputProcessor } from './relations/OneHasOneOwningCreateInputProcessor.js'
10
+ import { OneHasManyCreateInputProcessor } from './relations/OneHasManyCreateInputProcessor.js'
11
+ import { ManyHasOneCreateInputProcessor } from './relations/ManyHasOneCreateInputProcessor.js'
12
+ import { ManyHasManyCreateInputProcessor } from './relations/ManyHasManyCreateInputProcessor.js'
13
13
 
14
14
  export type SqlCreateInputProcessorResult = MutationResultList | ((ctx: { primary: Input.PrimaryValue }) => Promise<MutationResultList>)
15
15
  export class SqlCreateInputProcessor implements CreateInputProcessor<SqlCreateInputProcessorResult> {
@@ -1,4 +1,4 @@
1
- export * from './InsertBuilder'
2
- export * from './InsertBuilderFactory'
3
- export * from './Inserter'
4
- export * from './SqlCreateInputProcessor'
1
+ export * from './InsertBuilder.js'
2
+ export * from './InsertBuilderFactory.js'
3
+ export * from './Inserter.js'
4
+ export * from './SqlCreateInputProcessor.js'
@@ -1,10 +1,10 @@
1
1
  import { Input, Model } from '@contember/schema'
2
- import { getInsertPrimary, MutationEntryNotFoundError } from '../../Result'
3
- import { Mapper } from '../../Mapper'
4
- import { CreateInputProcessor } from '../../../inputProcessing'
5
- import { SqlCreateInputProcessorResult } from '../SqlCreateInputProcessor'
6
- import { CheckedPrimary } from '../../CheckedPrimary'
7
- import { MapperInput } from '../../types'
2
+ import { getInsertPrimary, MutationEntryNotFoundError } from '../../Result.js'
3
+ import { Mapper } from '../../Mapper.js'
4
+ import { CreateInputProcessor } from '../../../inputProcessing/index.js'
5
+ import { SqlCreateInputProcessorResult } from '../SqlCreateInputProcessor.js'
6
+ import { CheckedPrimary } from '../../CheckedPrimary.js'
7
+ import { MapperInput } from '../../types.js'
8
8
 
9
9
  type Context = Model.ManyHasManyOwningContext | Model.ManyHasManyInverseContext
10
10