joist-core 2.4.0-next.37 → 2.4.0-next.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (691) hide show
  1. package/build/BaseEntity.d.cts +3 -4
  2. package/build/BaseEntity.d.cts.map +1 -1
  3. package/build/BaseEntity.d.mts +3 -4
  4. package/build/BaseEntity.d.mts.map +1 -1
  5. package/build/Entity.d.cts +3 -4
  6. package/build/Entity.d.cts.map +1 -1
  7. package/build/Entity.d.mts +3 -4
  8. package/build/Entity.d.mts.map +1 -1
  9. package/build/EntityFields.d.cts +3 -4
  10. package/build/EntityFields.d.cts.map +1 -1
  11. package/build/EntityFields.d.mts +3 -4
  12. package/build/EntityFields.d.mts.map +1 -1
  13. package/build/EntityManager.cjs +11 -3
  14. package/build/EntityManager.cjs.map +1 -1
  15. package/build/EntityManager.d.cts +47 -41
  16. package/build/EntityManager.d.cts.map +1 -1
  17. package/build/EntityManager.d.mts +47 -41
  18. package/build/EntityManager.d.mts.map +1 -1
  19. package/build/EntityManager.js +11 -3
  20. package/build/EntityManager.js.map +1 -1
  21. package/build/EntityMetadata.d.cts +31 -32
  22. package/build/EntityMetadata.d.cts.map +1 -1
  23. package/build/EntityMetadata.d.mts +31 -32
  24. package/build/EntityMetadata.d.mts.map +1 -1
  25. package/build/EnumMetadata.d.cts +1 -2
  26. package/build/EnumMetadata.d.cts.map +1 -1
  27. package/build/EnumMetadata.d.mts +1 -2
  28. package/build/EnumMetadata.d.mts.map +1 -1
  29. package/build/IndexManager.cjs.map +1 -1
  30. package/build/IndexManager.d.cts +2 -3
  31. package/build/IndexManager.d.cts.map +1 -1
  32. package/build/IndexManager.d.mts +2 -3
  33. package/build/IndexManager.d.mts.map +1 -1
  34. package/build/IndexManager.js.map +1 -1
  35. package/build/InstanceData.cjs.map +1 -1
  36. package/build/InstanceData.d.cts +1 -2
  37. package/build/InstanceData.d.cts.map +1 -1
  38. package/build/InstanceData.d.mts +1 -2
  39. package/build/InstanceData.d.mts.map +1 -1
  40. package/build/InstanceData.js.map +1 -1
  41. package/build/PluginManager.cjs.map +1 -1
  42. package/build/PluginManager.d.cts +4 -4
  43. package/build/PluginManager.d.cts.map +1 -1
  44. package/build/PluginManager.d.mts +4 -4
  45. package/build/PluginManager.d.mts.map +1 -1
  46. package/build/PluginManager.js.map +1 -1
  47. package/build/RowData.d.cts +3 -4
  48. package/build/RowData.d.cts.map +1 -1
  49. package/build/RowData.d.mts +3 -4
  50. package/build/RowData.d.mts.map +1 -1
  51. package/build/batchloaders/BatchLoader.cjs.map +1 -1
  52. package/build/batchloaders/BatchLoader.d.cts +1 -2
  53. package/build/batchloaders/BatchLoader.d.cts.map +1 -1
  54. package/build/batchloaders/BatchLoader.d.mts +1 -2
  55. package/build/batchloaders/BatchLoader.d.mts.map +1 -1
  56. package/build/batchloaders/BatchLoader.js.map +1 -1
  57. package/build/batchloaders/enumCollectionBatchLoader.d.cts +2 -3
  58. package/build/batchloaders/enumCollectionBatchLoader.d.cts.map +1 -1
  59. package/build/batchloaders/enumCollectionBatchLoader.d.mts +2 -3
  60. package/build/batchloaders/enumCollectionBatchLoader.d.mts.map +1 -1
  61. package/build/batchloaders/loadBatchLoader.d.cts +2 -3
  62. package/build/batchloaders/loadBatchLoader.d.cts.map +1 -1
  63. package/build/batchloaders/loadBatchLoader.d.mts +2 -3
  64. package/build/batchloaders/loadBatchLoader.d.mts.map +1 -1
  65. package/build/batchloaders/manyToManyBatchLoader.d.cts +2 -3
  66. package/build/batchloaders/manyToManyBatchLoader.d.cts.map +1 -1
  67. package/build/batchloaders/manyToManyBatchLoader.d.mts +2 -3
  68. package/build/batchloaders/manyToManyBatchLoader.d.mts.map +1 -1
  69. package/build/batchloaders/oneToManyBatchLoader.d.cts +2 -3
  70. package/build/batchloaders/oneToManyBatchLoader.d.cts.map +1 -1
  71. package/build/batchloaders/oneToManyBatchLoader.d.mts +2 -3
  72. package/build/batchloaders/oneToManyBatchLoader.d.mts.map +1 -1
  73. package/build/batchloaders/oneToOneBatchLoader.d.cts +2 -3
  74. package/build/batchloaders/oneToOneBatchLoader.d.cts.map +1 -1
  75. package/build/batchloaders/oneToOneBatchLoader.d.mts +2 -3
  76. package/build/batchloaders/oneToOneBatchLoader.d.mts.map +1 -1
  77. package/build/batchloaders/populateBatchLoader.d.cts +2 -3
  78. package/build/batchloaders/populateBatchLoader.d.cts.map +1 -1
  79. package/build/batchloaders/populateBatchLoader.d.mts +2 -3
  80. package/build/batchloaders/populateBatchLoader.d.mts.map +1 -1
  81. package/build/batchloaders/recursiveChildrenBatchLoader.d.cts +2 -3
  82. package/build/batchloaders/recursiveChildrenBatchLoader.d.cts.map +1 -1
  83. package/build/batchloaders/recursiveChildrenBatchLoader.d.mts +2 -3
  84. package/build/batchloaders/recursiveChildrenBatchLoader.d.mts.map +1 -1
  85. package/build/batchloaders/recursiveM2mBatchLoader.d.cts +2 -3
  86. package/build/batchloaders/recursiveM2mBatchLoader.d.cts.map +1 -1
  87. package/build/batchloaders/recursiveM2mBatchLoader.d.mts +2 -3
  88. package/build/batchloaders/recursiveM2mBatchLoader.d.mts.map +1 -1
  89. package/build/batchloaders/recursiveParentsBatchLoader.d.cts +2 -3
  90. package/build/batchloaders/recursiveParentsBatchLoader.d.cts.map +1 -1
  91. package/build/batchloaders/recursiveParentsBatchLoader.d.mts +2 -3
  92. package/build/batchloaders/recursiveParentsBatchLoader.d.mts.map +1 -1
  93. package/build/changes.cjs.map +1 -1
  94. package/build/changes.d.cts +9 -10
  95. package/build/changes.d.cts.map +1 -1
  96. package/build/changes.d.mts +9 -10
  97. package/build/changes.d.mts.map +1 -1
  98. package/build/changes.js.map +1 -1
  99. package/build/config.d.cts +17 -17
  100. package/build/config.d.cts.map +1 -1
  101. package/build/config.d.mts +17 -17
  102. package/build/config.d.mts.map +1 -1
  103. package/build/configure.d.cts +8 -9
  104. package/build/configure.d.cts.map +1 -1
  105. package/build/configure.d.mts +8 -9
  106. package/build/configure.d.mts.map +1 -1
  107. package/build/dataloaders/fastWhereFilterHash.d.cts +1 -2
  108. package/build/dataloaders/fastWhereFilterHash.d.cts.map +1 -1
  109. package/build/dataloaders/fastWhereFilterHash.d.mts +1 -2
  110. package/build/dataloaders/fastWhereFilterHash.d.mts.map +1 -1
  111. package/build/dataloaders/findByUniqueDataLoader.d.cts +2 -3
  112. package/build/dataloaders/findByUniqueDataLoader.d.cts.map +1 -1
  113. package/build/dataloaders/findByUniqueDataLoader.d.mts +2 -3
  114. package/build/dataloaders/findByUniqueDataLoader.d.mts.map +1 -1
  115. package/build/dataloaders/findCountDataLoader.d.cts +4 -5
  116. package/build/dataloaders/findCountDataLoader.d.cts.map +1 -1
  117. package/build/dataloaders/findCountDataLoader.d.mts +4 -5
  118. package/build/dataloaders/findCountDataLoader.d.mts.map +1 -1
  119. package/build/dataloaders/findDataLoader.d.cts +11 -12
  120. package/build/dataloaders/findDataLoader.d.cts.map +1 -1
  121. package/build/dataloaders/findDataLoader.d.mts +11 -12
  122. package/build/dataloaders/findDataLoader.d.mts.map +1 -1
  123. package/build/dataloaders/findIdsDataLoader.d.cts +2 -3
  124. package/build/dataloaders/findIdsDataLoader.d.cts.map +1 -1
  125. package/build/dataloaders/findIdsDataLoader.d.mts +2 -3
  126. package/build/dataloaders/findIdsDataLoader.d.mts.map +1 -1
  127. package/build/dataloaders/findOrCreateDataLoader.d.cts +3 -3
  128. package/build/dataloaders/findOrCreateDataLoader.d.cts.map +1 -1
  129. package/build/dataloaders/findOrCreateDataLoader.d.mts +3 -3
  130. package/build/dataloaders/findOrCreateDataLoader.d.mts.map +1 -1
  131. package/build/dataloaders/findPaginatedDataLoader.d.cts +1 -2
  132. package/build/dataloaders/findPaginatedDataLoader.d.cts.map +1 -1
  133. package/build/dataloaders/findPaginatedDataLoader.d.mts +1 -2
  134. package/build/dataloaders/findPaginatedDataLoader.d.mts.map +1 -1
  135. package/build/dataloaders/lensDataLoader.d.cts +2 -3
  136. package/build/dataloaders/lensDataLoader.d.cts.map +1 -1
  137. package/build/dataloaders/lensDataLoader.d.mts +2 -3
  138. package/build/dataloaders/lensDataLoader.d.mts.map +1 -1
  139. package/build/dataloaders/manyToManyFindDataLoader.d.cts +2 -3
  140. package/build/dataloaders/manyToManyFindDataLoader.d.cts.map +1 -1
  141. package/build/dataloaders/manyToManyFindDataLoader.d.mts +2 -3
  142. package/build/dataloaders/manyToManyFindDataLoader.d.mts.map +1 -1
  143. package/build/dataloaders/oneToManyFindDataLoader.d.cts +2 -3
  144. package/build/dataloaders/oneToManyFindDataLoader.d.cts.map +1 -1
  145. package/build/dataloaders/oneToManyFindDataLoader.d.mts +2 -3
  146. package/build/dataloaders/oneToManyFindDataLoader.d.mts.map +1 -1
  147. package/build/defaults.cjs.map +1 -1
  148. package/build/defaults.d.cts +7 -7
  149. package/build/defaults.d.cts.map +1 -1
  150. package/build/defaults.d.mts +7 -7
  151. package/build/defaults.d.mts.map +1 -1
  152. package/build/defaults.js.map +1 -1
  153. package/build/drivers/Driver.d.cts +2 -3
  154. package/build/drivers/Driver.d.cts.map +1 -1
  155. package/build/drivers/Driver.d.mts +2 -3
  156. package/build/drivers/Driver.d.mts.map +1 -1
  157. package/build/drivers/EntityWriter.d.cts +7 -7
  158. package/build/drivers/EntityWriter.d.cts.map +1 -1
  159. package/build/drivers/EntityWriter.d.mts +7 -7
  160. package/build/drivers/EntityWriter.d.mts.map +1 -1
  161. package/build/drivers/IdAssigner.cjs.map +1 -1
  162. package/build/drivers/IdAssigner.d.cts +5 -5
  163. package/build/drivers/IdAssigner.d.cts.map +1 -1
  164. package/build/drivers/IdAssigner.d.mts +5 -5
  165. package/build/drivers/IdAssigner.d.mts.map +1 -1
  166. package/build/drivers/IdAssigner.js.map +1 -1
  167. package/build/drivers/driverApi.d.cts +2 -3
  168. package/build/drivers/driverApi.d.cts.map +1 -1
  169. package/build/drivers/driverApi.d.mts +2 -3
  170. package/build/drivers/driverApi.d.mts.map +1 -1
  171. package/build/fields.d.cts +6 -7
  172. package/build/fields.d.cts.map +1 -1
  173. package/build/fields.d.mts +6 -7
  174. package/build/fields.d.mts.map +1 -1
  175. package/build/flush/FlushLock.cjs.map +1 -1
  176. package/build/flush/FlushLock.d.cts +1 -2
  177. package/build/flush/FlushLock.d.cts.map +1 -1
  178. package/build/flush/FlushLock.d.mts +1 -2
  179. package/build/flush/FlushLock.d.mts.map +1 -1
  180. package/build/flush/FlushLock.js.map +1 -1
  181. package/build/flush/JoinRows.cjs.map +1 -1
  182. package/build/flush/JoinRows.d.cts +5 -6
  183. package/build/flush/JoinRows.d.cts.map +1 -1
  184. package/build/flush/JoinRows.d.mts +5 -6
  185. package/build/flush/JoinRows.d.mts.map +1 -1
  186. package/build/flush/JoinRows.js.map +1 -1
  187. package/build/flush/PendingChanges.d.cts +5 -6
  188. package/build/flush/PendingChanges.d.cts.map +1 -1
  189. package/build/flush/PendingChanges.d.mts +5 -6
  190. package/build/flush/PendingChanges.d.mts.map +1 -1
  191. package/build/flush/Todo.d.cts +5 -6
  192. package/build/flush/Todo.d.cts.map +1 -1
  193. package/build/flush/Todo.d.mts +5 -6
  194. package/build/flush/Todo.d.mts.map +1 -1
  195. package/build/getProperties.d.cts +3 -4
  196. package/build/getProperties.d.cts.map +1 -1
  197. package/build/getProperties.d.mts +3 -4
  198. package/build/getProperties.d.mts.map +1 -1
  199. package/build/index.d.cts +17 -17
  200. package/build/index.d.cts.map +1 -1
  201. package/build/index.d.mts +17 -17
  202. package/build/index.d.mts.map +1 -1
  203. package/build/json.d.cts +11 -11
  204. package/build/json.d.cts.map +1 -1
  205. package/build/json.d.mts +11 -11
  206. package/build/json.d.mts.map +1 -1
  207. package/build/keys.d.cts +27 -27
  208. package/build/keys.d.cts.map +1 -1
  209. package/build/keys.d.mts +27 -27
  210. package/build/keys.d.mts.map +1 -1
  211. package/build/loading/HintTree.d.cts +3 -4
  212. package/build/loading/HintTree.d.cts.map +1 -1
  213. package/build/loading/HintTree.d.mts +3 -4
  214. package/build/loading/HintTree.d.mts.map +1 -1
  215. package/build/loading/IsLoadedCache.cjs.map +1 -1
  216. package/build/loading/IsLoadedCache.d.cts +2 -3
  217. package/build/loading/IsLoadedCache.d.cts.map +1 -1
  218. package/build/loading/IsLoadedCache.d.mts +2 -3
  219. package/build/loading/IsLoadedCache.d.mts.map +1 -1
  220. package/build/loading/IsLoadedCache.js.map +1 -1
  221. package/build/loading/loadHints.d.cts +17 -17
  222. package/build/loading/loadHints.d.cts.map +1 -1
  223. package/build/loading/loadHints.d.mts +17 -17
  224. package/build/loading/loadHints.d.mts.map +1 -1
  225. package/build/loading/loadLens.d.cts +13 -13
  226. package/build/loading/loadLens.d.cts.map +1 -1
  227. package/build/loading/loadLens.d.mts +13 -13
  228. package/build/loading/loadLens.d.mts.map +1 -1
  229. package/build/loading/withLoaded.d.cts +5 -6
  230. package/build/loading/withLoaded.d.cts.map +1 -1
  231. package/build/loading/withLoaded.d.mts +5 -6
  232. package/build/loading/withLoaded.d.mts.map +1 -1
  233. package/build/logging/FactoryLogger.d.cts +3 -4
  234. package/build/logging/FactoryLogger.d.cts.map +1 -1
  235. package/build/logging/FactoryLogger.d.mts +3 -4
  236. package/build/logging/FactoryLogger.d.mts.map +1 -1
  237. package/build/logging/FieldLogger.cjs.map +1 -1
  238. package/build/logging/FieldLogger.d.cts +4 -5
  239. package/build/logging/FieldLogger.d.cts.map +1 -1
  240. package/build/logging/FieldLogger.d.mts +4 -5
  241. package/build/logging/FieldLogger.d.mts.map +1 -1
  242. package/build/logging/FieldLogger.js.map +1 -1
  243. package/build/logging/ReactionLogger.d.cts +7 -7
  244. package/build/logging/ReactionLogger.d.cts.map +1 -1
  245. package/build/logging/ReactionLogger.d.mts +7 -7
  246. package/build/logging/ReactionLogger.d.mts.map +1 -1
  247. package/build/newEntity.cjs.map +1 -1
  248. package/build/newEntity.d.cts +4 -5
  249. package/build/newEntity.d.cts.map +1 -1
  250. package/build/newEntity.d.mts +4 -5
  251. package/build/newEntity.d.mts.map +1 -1
  252. package/build/newEntity.js.map +1 -1
  253. package/build/newTestInstance.d.cts +21 -21
  254. package/build/newTestInstance.d.cts.map +1 -1
  255. package/build/newTestInstance.d.mts +21 -21
  256. package/build/newTestInstance.d.mts.map +1 -1
  257. package/build/normalizeHints.d.cts +7 -8
  258. package/build/normalizeHints.d.cts.map +1 -1
  259. package/build/normalizeHints.d.mts +7 -8
  260. package/build/normalizeHints.d.mts.map +1 -1
  261. package/build/nowUTC.d.cts +4 -5
  262. package/build/nowUTC.d.cts.map +1 -1
  263. package/build/nowUTC.d.mts +4 -5
  264. package/build/nowUTC.d.mts.map +1 -1
  265. package/build/plugins/ImmutableEntitiesPlugin.d.cts +1 -2
  266. package/build/plugins/ImmutableEntitiesPlugin.d.cts.map +1 -1
  267. package/build/plugins/ImmutableEntitiesPlugin.d.mts +1 -2
  268. package/build/plugins/ImmutableEntitiesPlugin.d.mts.map +1 -1
  269. package/build/plugins/PreloadPlugin.d.cts +3 -4
  270. package/build/plugins/PreloadPlugin.d.cts.map +1 -1
  271. package/build/plugins/PreloadPlugin.d.mts +3 -4
  272. package/build/plugins/PreloadPlugin.d.mts.map +1 -1
  273. package/build/preloading/JsonAggregatePreloader.d.cts +1 -2
  274. package/build/preloading/JsonAggregatePreloader.d.cts.map +1 -1
  275. package/build/preloading/JsonAggregatePreloader.d.mts +1 -2
  276. package/build/preloading/JsonAggregatePreloader.d.mts.map +1 -1
  277. package/build/preloading/canPreload.d.cts +1 -2
  278. package/build/preloading/canPreload.d.cts.map +1 -1
  279. package/build/preloading/canPreload.d.mts +1 -2
  280. package/build/preloading/canPreload.d.mts.map +1 -1
  281. package/build/preloading/partitionHint.d.cts +1 -2
  282. package/build/preloading/partitionHint.d.cts.map +1 -1
  283. package/build/preloading/partitionHint.d.mts +1 -2
  284. package/build/preloading/partitionHint.d.mts.map +1 -1
  285. package/build/queries/ConditionBuilder.d.cts +2 -2
  286. package/build/queries/ConditionBuilder.d.cts.map +1 -1
  287. package/build/queries/ConditionBuilder.d.mts +2 -2
  288. package/build/queries/ConditionBuilder.d.mts.map +1 -1
  289. package/build/queries/conditions.d.cts +11 -12
  290. package/build/queries/conditions.d.cts.map +1 -1
  291. package/build/queries/conditions.d.mts +11 -12
  292. package/build/queries/conditions.d.mts.map +1 -1
  293. package/build/queries/entityQueryUtils.d.cts +4 -5
  294. package/build/queries/entityQueryUtils.d.cts.map +1 -1
  295. package/build/queries/entityQueryUtils.d.mts +4 -5
  296. package/build/queries/entityQueryUtils.d.mts.map +1 -1
  297. package/build/queries/find/Aliases.d.cts +16 -16
  298. package/build/queries/find/Aliases.d.cts.map +1 -1
  299. package/build/queries/find/Aliases.d.mts +16 -16
  300. package/build/queries/find/Aliases.d.mts.map +1 -1
  301. package/build/queries/find/DeferredAlias.d.cts +5 -6
  302. package/build/queries/find/DeferredAlias.d.cts.map +1 -1
  303. package/build/queries/find/DeferredAlias.d.mts +5 -6
  304. package/build/queries/find/DeferredAlias.d.mts.map +1 -1
  305. package/build/queries/find/EntityFilter.d.cts +12 -13
  306. package/build/queries/find/EntityFilter.d.cts.map +1 -1
  307. package/build/queries/find/EntityFilter.d.mts +12 -13
  308. package/build/queries/find/EntityFilter.d.mts.map +1 -1
  309. package/build/queries/find/EntityGraphQLFilter.d.cts +8 -9
  310. package/build/queries/find/EntityGraphQLFilter.d.cts.map +1 -1
  311. package/build/queries/find/EntityGraphQLFilter.d.mts +8 -9
  312. package/build/queries/find/EntityGraphQLFilter.d.mts.map +1 -1
  313. package/build/queries/find/QueryParser.collectionJoins.d.cts +1 -2
  314. package/build/queries/find/QueryParser.collectionJoins.d.cts.map +1 -1
  315. package/build/queries/find/QueryParser.collectionJoins.d.mts +1 -2
  316. package/build/queries/find/QueryParser.collectionJoins.d.mts.map +1 -1
  317. package/build/queries/find/QueryParser.d.cts +18 -18
  318. package/build/queries/find/QueryParser.d.cts.map +1 -1
  319. package/build/queries/find/QueryParser.d.mts +18 -18
  320. package/build/queries/find/QueryParser.d.mts.map +1 -1
  321. package/build/queries/find/QueryParser.pruning.d.cts +2 -3
  322. package/build/queries/find/QueryParser.pruning.d.cts.map +1 -1
  323. package/build/queries/find/QueryParser.pruning.d.mts +2 -3
  324. package/build/queries/find/QueryParser.pruning.d.mts.map +1 -1
  325. package/build/queries/find/QueryVisitor.d.cts +4 -4
  326. package/build/queries/find/QueryVisitor.d.cts.map +1 -1
  327. package/build/queries/find/QueryVisitor.d.mts +4 -4
  328. package/build/queries/find/QueryVisitor.d.mts.map +1 -1
  329. package/build/queries/find/buildFindQuery.d.cts +3 -3
  330. package/build/queries/find/buildFindQuery.d.cts.map +1 -1
  331. package/build/queries/find/buildFindQuery.d.mts +3 -3
  332. package/build/queries/find/buildFindQuery.d.mts.map +1 -1
  333. package/build/queries/find/scopes.cjs.map +1 -1
  334. package/build/queries/find/scopes.d.cts +12 -13
  335. package/build/queries/find/scopes.d.cts.map +1 -1
  336. package/build/queries/find/scopes.d.mts +12 -13
  337. package/build/queries/find/scopes.d.mts.map +1 -1
  338. package/build/queries/find/scopes.js.map +1 -1
  339. package/build/queries/parsedConditions.d.cts +7 -8
  340. package/build/queries/parsedConditions.d.cts.map +1 -1
  341. package/build/queries/parsedConditions.d.mts +7 -8
  342. package/build/queries/parsedConditions.d.mts.map +1 -1
  343. package/build/queries/renderConditions.d.cts +3 -4
  344. package/build/queries/renderConditions.d.cts.map +1 -1
  345. package/build/queries/renderConditions.d.mts +3 -4
  346. package/build/queries/renderConditions.d.mts.map +1 -1
  347. package/build/queries/skipCondition.d.cts +1 -2
  348. package/build/queries/skipCondition.d.cts.map +1 -1
  349. package/build/queries/skipCondition.d.mts +1 -2
  350. package/build/queries/skipCondition.d.mts.map +1 -1
  351. package/build/queries/sql/AliasAssigner.cjs.map +1 -1
  352. package/build/queries/sql/AliasAssigner.d.cts +1 -2
  353. package/build/queries/sql/AliasAssigner.d.cts.map +1 -1
  354. package/build/queries/sql/AliasAssigner.d.mts +1 -2
  355. package/build/queries/sql/AliasAssigner.d.mts.map +1 -1
  356. package/build/queries/sql/AliasAssigner.js.map +1 -1
  357. package/build/queries/sql/Expr.d.cts +26 -27
  358. package/build/queries/sql/Expr.d.cts.map +1 -1
  359. package/build/queries/sql/Expr.d.mts +26 -27
  360. package/build/queries/sql/Expr.d.mts.map +1 -1
  361. package/build/queries/sql/JoinTree.d.cts +5 -5
  362. package/build/queries/sql/JoinTree.d.cts.map +1 -1
  363. package/build/queries/sql/JoinTree.d.mts +5 -5
  364. package/build/queries/sql/JoinTree.d.mts.map +1 -1
  365. package/build/queries/sql/Tables.d.cts +39 -39
  366. package/build/queries/sql/Tables.d.cts.map +1 -1
  367. package/build/queries/sql/Tables.d.mts +39 -39
  368. package/build/queries/sql/Tables.d.mts.map +1 -1
  369. package/build/queries/sql/custom.d.cts +14 -14
  370. package/build/queries/sql/custom.d.cts.map +1 -1
  371. package/build/queries/sql/custom.d.mts +14 -14
  372. package/build/queries/sql/custom.d.mts.map +1 -1
  373. package/build/queries/sql/execute.d.cts +15 -15
  374. package/build/queries/sql/execute.d.cts.map +1 -1
  375. package/build/queries/sql/execute.d.mts +15 -15
  376. package/build/queries/sql/execute.d.mts.map +1 -1
  377. package/build/queries/sql/expressions/arrayAgg.d.cts +5 -6
  378. package/build/queries/sql/expressions/arrayAgg.d.cts.map +1 -1
  379. package/build/queries/sql/expressions/arrayAgg.d.mts +5 -6
  380. package/build/queries/sql/expressions/arrayAgg.d.mts.map +1 -1
  381. package/build/queries/sql/expressions/case.d.cts +10 -10
  382. package/build/queries/sql/expressions/case.d.cts.map +1 -1
  383. package/build/queries/sql/expressions/case.d.mts +10 -10
  384. package/build/queries/sql/expressions/case.d.mts.map +1 -1
  385. package/build/queries/sql/expressions/coalesce.d.cts +5 -6
  386. package/build/queries/sql/expressions/coalesce.d.cts.map +1 -1
  387. package/build/queries/sql/expressions/coalesce.d.mts +5 -6
  388. package/build/queries/sql/expressions/coalesce.d.mts.map +1 -1
  389. package/build/queries/sql/expressions/codecs.d.cts +1 -2
  390. package/build/queries/sql/expressions/codecs.d.cts.map +1 -1
  391. package/build/queries/sql/expressions/codecs.d.mts +1 -2
  392. package/build/queries/sql/expressions/codecs.d.mts.map +1 -1
  393. package/build/queries/sql/expressions/expression.d.cts +6 -6
  394. package/build/queries/sql/expressions/expression.d.cts.map +1 -1
  395. package/build/queries/sql/expressions/expression.d.mts +6 -6
  396. package/build/queries/sql/expressions/expression.d.mts.map +1 -1
  397. package/build/queries/sql/expressions/greatest.d.cts +5 -6
  398. package/build/queries/sql/expressions/greatest.d.cts.map +1 -1
  399. package/build/queries/sql/expressions/greatest.d.mts +5 -6
  400. package/build/queries/sql/expressions/greatest.d.mts.map +1 -1
  401. package/build/queries/sql/expressions/least.d.cts +5 -6
  402. package/build/queries/sql/expressions/least.d.cts.map +1 -1
  403. package/build/queries/sql/expressions/least.d.mts +5 -6
  404. package/build/queries/sql/expressions/least.d.mts.map +1 -1
  405. package/build/queries/sql/expressions/nullIf.d.cts +5 -6
  406. package/build/queries/sql/expressions/nullIf.d.cts.map +1 -1
  407. package/build/queries/sql/expressions/nullIf.d.mts +5 -6
  408. package/build/queries/sql/expressions/nullIf.d.mts.map +1 -1
  409. package/build/queries/sql/expressions/parseExpression.d.cts +5 -6
  410. package/build/queries/sql/expressions/parseExpression.d.cts.map +1 -1
  411. package/build/queries/sql/expressions/parseExpression.d.mts +5 -6
  412. package/build/queries/sql/expressions/parseExpression.d.mts.map +1 -1
  413. package/build/queries/sql/expressions/types.d.cts +11 -11
  414. package/build/queries/sql/expressions/types.d.cts.map +1 -1
  415. package/build/queries/sql/expressions/types.d.mts +11 -11
  416. package/build/queries/sql/expressions/types.d.mts.map +1 -1
  417. package/build/queries/sql/keywords.d.cts +4 -5
  418. package/build/queries/sql/keywords.d.cts.map +1 -1
  419. package/build/queries/sql/keywords.d.mts +4 -5
  420. package/build/queries/sql/keywords.d.mts.map +1 -1
  421. package/build/queries/sql/query.cjs.map +1 -1
  422. package/build/queries/sql/query.d.cts +67 -67
  423. package/build/queries/sql/query.d.cts.map +1 -1
  424. package/build/queries/sql/query.d.mts +67 -67
  425. package/build/queries/sql/query.d.mts.map +1 -1
  426. package/build/queries/sql/query.js.map +1 -1
  427. package/build/queries/unnest.d.cts +2 -3
  428. package/build/queries/unnest.d.cts.map +1 -1
  429. package/build/queries/unnest.d.mts +2 -3
  430. package/build/queries/unnest.d.mts.map +1 -1
  431. package/build/queries/valueFilters.d.cts +5 -6
  432. package/build/queries/valueFilters.d.cts.map +1 -1
  433. package/build/queries/valueFilters.d.mts +5 -6
  434. package/build/queries/valueFilters.d.mts.map +1 -1
  435. package/build/reactivity/ReactionsManager.cjs.map +1 -1
  436. package/build/reactivity/ReactionsManager.d.cts +2 -3
  437. package/build/reactivity/ReactionsManager.d.cts.map +1 -1
  438. package/build/reactivity/ReactionsManager.d.mts +2 -3
  439. package/build/reactivity/ReactionsManager.d.mts.map +1 -1
  440. package/build/reactivity/ReactionsManager.js.map +1 -1
  441. package/build/reactivity/reactiveHints.d.cts +18 -18
  442. package/build/reactivity/reactiveHints.d.cts.map +1 -1
  443. package/build/reactivity/reactiveHints.d.mts +18 -18
  444. package/build/reactivity/reactiveHints.d.mts.map +1 -1
  445. package/build/relations/AbstractPropertyImpl.cjs.map +1 -1
  446. package/build/relations/AbstractPropertyImpl.d.cts +1 -2
  447. package/build/relations/AbstractPropertyImpl.d.cts.map +1 -1
  448. package/build/relations/AbstractPropertyImpl.d.mts +1 -2
  449. package/build/relations/AbstractPropertyImpl.d.mts.map +1 -1
  450. package/build/relations/AbstractPropertyImpl.js.map +1 -1
  451. package/build/relations/AbstractRelationImpl.d.cts +1 -2
  452. package/build/relations/AbstractRelationImpl.d.cts.map +1 -1
  453. package/build/relations/AbstractRelationImpl.d.mts +1 -2
  454. package/build/relations/AbstractRelationImpl.d.mts.map +1 -1
  455. package/build/relations/AsyncProperty.cjs.map +1 -1
  456. package/build/relations/AsyncProperty.d.cts +5 -6
  457. package/build/relations/AsyncProperty.d.cts.map +1 -1
  458. package/build/relations/AsyncProperty.d.mts +5 -6
  459. package/build/relations/AsyncProperty.d.mts.map +1 -1
  460. package/build/relations/AsyncProperty.js.map +1 -1
  461. package/build/relations/AsyncReactiveField.cjs.map +1 -1
  462. package/build/relations/AsyncReactiveField.d.cts +4 -5
  463. package/build/relations/AsyncReactiveField.d.cts.map +1 -1
  464. package/build/relations/AsyncReactiveField.d.mts +4 -5
  465. package/build/relations/AsyncReactiveField.d.mts.map +1 -1
  466. package/build/relations/AsyncReactiveField.js.map +1 -1
  467. package/build/relations/Collection.d.cts +4 -5
  468. package/build/relations/Collection.d.cts.map +1 -1
  469. package/build/relations/Collection.d.mts +4 -5
  470. package/build/relations/Collection.d.mts.map +1 -1
  471. package/build/relations/CustomCollection.cjs.map +1 -1
  472. package/build/relations/CustomCollection.d.cts +3 -4
  473. package/build/relations/CustomCollection.d.cts.map +1 -1
  474. package/build/relations/CustomCollection.d.mts +3 -4
  475. package/build/relations/CustomCollection.d.mts.map +1 -1
  476. package/build/relations/CustomCollection.js.map +1 -1
  477. package/build/relations/CustomReference.cjs.map +1 -1
  478. package/build/relations/CustomReference.d.cts +3 -4
  479. package/build/relations/CustomReference.d.cts.map +1 -1
  480. package/build/relations/CustomReference.d.mts +3 -4
  481. package/build/relations/CustomReference.d.mts.map +1 -1
  482. package/build/relations/CustomReference.js.map +1 -1
  483. package/build/relations/EnumCollection.cjs.map +1 -1
  484. package/build/relations/EnumCollection.d.cts +5 -5
  485. package/build/relations/EnumCollection.d.cts.map +1 -1
  486. package/build/relations/EnumCollection.d.mts +5 -5
  487. package/build/relations/EnumCollection.d.mts.map +1 -1
  488. package/build/relations/EnumCollection.js.map +1 -1
  489. package/build/relations/LargeCollection.d.cts +1 -2
  490. package/build/relations/LargeCollection.d.cts.map +1 -1
  491. package/build/relations/LargeCollection.d.mts +1 -2
  492. package/build/relations/LargeCollection.d.mts.map +1 -1
  493. package/build/relations/LazyField.cjs.map +1 -1
  494. package/build/relations/LazyField.d.cts +7 -8
  495. package/build/relations/LazyField.d.cts.map +1 -1
  496. package/build/relations/LazyField.d.mts +7 -8
  497. package/build/relations/LazyField.d.mts.map +1 -1
  498. package/build/relations/LazyField.js.map +1 -1
  499. package/build/relations/ManyToManyCollection.cjs.map +1 -1
  500. package/build/relations/ManyToManyCollection.d.cts +2 -3
  501. package/build/relations/ManyToManyCollection.d.cts.map +1 -1
  502. package/build/relations/ManyToManyCollection.d.mts +2 -3
  503. package/build/relations/ManyToManyCollection.d.mts.map +1 -1
  504. package/build/relations/ManyToManyCollection.js.map +1 -1
  505. package/build/relations/ManyToManyLargeCollection.d.cts +2 -3
  506. package/build/relations/ManyToManyLargeCollection.d.cts.map +1 -1
  507. package/build/relations/ManyToManyLargeCollection.d.mts +2 -3
  508. package/build/relations/ManyToManyLargeCollection.d.mts.map +1 -1
  509. package/build/relations/ManyToOneReference.cjs.map +1 -1
  510. package/build/relations/ManyToOneReference.d.cts +6 -7
  511. package/build/relations/ManyToOneReference.d.cts.map +1 -1
  512. package/build/relations/ManyToOneReference.d.mts +6 -7
  513. package/build/relations/ManyToOneReference.d.mts.map +1 -1
  514. package/build/relations/ManyToOneReference.js.map +1 -1
  515. package/build/relations/OneToManyCollection.cjs.map +1 -1
  516. package/build/relations/OneToManyCollection.d.cts +2 -3
  517. package/build/relations/OneToManyCollection.d.cts.map +1 -1
  518. package/build/relations/OneToManyCollection.d.mts +2 -3
  519. package/build/relations/OneToManyCollection.d.mts.map +1 -1
  520. package/build/relations/OneToManyCollection.js.map +1 -1
  521. package/build/relations/OneToManyLargeCollection.cjs.map +1 -1
  522. package/build/relations/OneToManyLargeCollection.d.cts +2 -3
  523. package/build/relations/OneToManyLargeCollection.d.cts.map +1 -1
  524. package/build/relations/OneToManyLargeCollection.d.mts +2 -3
  525. package/build/relations/OneToManyLargeCollection.d.mts.map +1 -1
  526. package/build/relations/OneToManyLargeCollection.js.map +1 -1
  527. package/build/relations/OneToOneReference.cjs.map +1 -1
  528. package/build/relations/OneToOneReference.d.cts +7 -7
  529. package/build/relations/OneToOneReference.d.cts.map +1 -1
  530. package/build/relations/OneToOneReference.d.mts +7 -7
  531. package/build/relations/OneToOneReference.d.mts.map +1 -1
  532. package/build/relations/OneToOneReference.js.map +1 -1
  533. package/build/relations/PolymorphicReference.cjs.map +1 -1
  534. package/build/relations/PolymorphicReference.d.cts +4 -5
  535. package/build/relations/PolymorphicReference.d.cts.map +1 -1
  536. package/build/relations/PolymorphicReference.d.mts +4 -5
  537. package/build/relations/PolymorphicReference.d.mts.map +1 -1
  538. package/build/relations/PolymorphicReference.js.map +1 -1
  539. package/build/relations/PropertySymbols.d.cts +1 -2
  540. package/build/relations/PropertySymbols.d.cts.map +1 -1
  541. package/build/relations/PropertySymbols.d.mts +1 -2
  542. package/build/relations/PropertySymbols.d.mts.map +1 -1
  543. package/build/relations/ReactiveField.cjs.map +1 -1
  544. package/build/relations/ReactiveField.d.cts +4 -5
  545. package/build/relations/ReactiveField.d.cts.map +1 -1
  546. package/build/relations/ReactiveField.d.mts +4 -5
  547. package/build/relations/ReactiveField.d.mts.map +1 -1
  548. package/build/relations/ReactiveField.js.map +1 -1
  549. package/build/relations/ReactiveGetter.cjs.map +1 -1
  550. package/build/relations/ReactiveGetter.d.cts +4 -5
  551. package/build/relations/ReactiveGetter.d.cts.map +1 -1
  552. package/build/relations/ReactiveGetter.d.mts +4 -5
  553. package/build/relations/ReactiveGetter.d.mts.map +1 -1
  554. package/build/relations/ReactiveGetter.js.map +1 -1
  555. package/build/relations/ReactiveManyToMany.cjs.map +1 -1
  556. package/build/relations/ReactiveManyToMany.d.cts +4 -5
  557. package/build/relations/ReactiveManyToMany.d.cts.map +1 -1
  558. package/build/relations/ReactiveManyToMany.d.mts +4 -5
  559. package/build/relations/ReactiveManyToMany.d.mts.map +1 -1
  560. package/build/relations/ReactiveManyToMany.js.map +1 -1
  561. package/build/relations/ReactiveManyToManyOtherSide.cjs.map +1 -1
  562. package/build/relations/ReactiveManyToManyOtherSide.d.cts +4 -5
  563. package/build/relations/ReactiveManyToManyOtherSide.d.cts.map +1 -1
  564. package/build/relations/ReactiveManyToManyOtherSide.d.mts +4 -5
  565. package/build/relations/ReactiveManyToManyOtherSide.d.mts.map +1 -1
  566. package/build/relations/ReactiveManyToManyOtherSide.js.map +1 -1
  567. package/build/relations/ReactiveReference.cjs.map +1 -1
  568. package/build/relations/ReactiveReference.d.cts +5 -6
  569. package/build/relations/ReactiveReference.d.cts.map +1 -1
  570. package/build/relations/ReactiveReference.d.mts +5 -6
  571. package/build/relations/ReactiveReference.d.mts.map +1 -1
  572. package/build/relations/ReactiveReference.js.map +1 -1
  573. package/build/relations/ReadOnlyCollection.d.cts +4 -5
  574. package/build/relations/ReadOnlyCollection.d.cts.map +1 -1
  575. package/build/relations/ReadOnlyCollection.d.mts +4 -5
  576. package/build/relations/ReadOnlyCollection.d.mts.map +1 -1
  577. package/build/relations/RecursiveCollection.cjs.map +1 -1
  578. package/build/relations/RecursiveCollection.d.cts +10 -10
  579. package/build/relations/RecursiveCollection.d.cts.map +1 -1
  580. package/build/relations/RecursiveCollection.d.mts +10 -10
  581. package/build/relations/RecursiveCollection.d.mts.map +1 -1
  582. package/build/relations/RecursiveCollection.js.map +1 -1
  583. package/build/relations/RecursiveCycleError.d.cts +2 -2
  584. package/build/relations/RecursiveCycleError.d.cts.map +1 -1
  585. package/build/relations/RecursiveCycleError.d.mts +2 -2
  586. package/build/relations/RecursiveCycleError.d.mts.map +1 -1
  587. package/build/relations/Reference.d.cts +5 -5
  588. package/build/relations/Reference.d.cts.map +1 -1
  589. package/build/relations/Reference.d.mts +5 -5
  590. package/build/relations/Reference.d.mts.map +1 -1
  591. package/build/relations/ReferenceSymbols.d.cts +1 -2
  592. package/build/relations/ReferenceSymbols.d.cts.map +1 -1
  593. package/build/relations/ReferenceSymbols.d.mts +1 -2
  594. package/build/relations/ReferenceSymbols.d.mts.map +1 -1
  595. package/build/relations/Relation.d.cts +3 -3
  596. package/build/relations/Relation.d.cts.map +1 -1
  597. package/build/relations/Relation.d.mts +3 -3
  598. package/build/relations/Relation.d.mts.map +1 -1
  599. package/build/relations/RelationSymbols.d.cts +2 -3
  600. package/build/relations/RelationSymbols.d.cts.map +1 -1
  601. package/build/relations/RelationSymbols.d.mts +2 -3
  602. package/build/relations/RelationSymbols.d.mts.map +1 -1
  603. package/build/relations/hasAsyncMethod.cjs.map +1 -1
  604. package/build/relations/hasAsyncMethod.d.cts +6 -6
  605. package/build/relations/hasAsyncMethod.d.cts.map +1 -1
  606. package/build/relations/hasAsyncMethod.d.mts +6 -6
  607. package/build/relations/hasAsyncMethod.d.mts.map +1 -1
  608. package/build/relations/hasAsyncMethod.js.map +1 -1
  609. package/build/relations/hasManyDerived.d.cts +2 -2
  610. package/build/relations/hasManyDerived.d.cts.map +1 -1
  611. package/build/relations/hasManyDerived.d.mts +2 -2
  612. package/build/relations/hasManyDerived.d.mts.map +1 -1
  613. package/build/relations/hasManyThrough.d.cts +1 -2
  614. package/build/relations/hasManyThrough.d.cts.map +1 -1
  615. package/build/relations/hasManyThrough.d.mts +1 -2
  616. package/build/relations/hasManyThrough.d.mts.map +1 -1
  617. package/build/relations/hasOneDerived.d.cts +1 -2
  618. package/build/relations/hasOneDerived.d.cts.map +1 -1
  619. package/build/relations/hasOneDerived.d.mts +1 -2
  620. package/build/relations/hasOneDerived.d.mts.map +1 -1
  621. package/build/relations/hasOneThrough.d.cts +1 -2
  622. package/build/relations/hasOneThrough.d.cts.map +1 -1
  623. package/build/relations/hasOneThrough.d.mts +1 -2
  624. package/build/relations/hasOneThrough.d.mts.map +1 -1
  625. package/build/relations/hasProperty.cjs.map +1 -1
  626. package/build/relations/hasProperty.d.cts +8 -8
  627. package/build/relations/hasProperty.d.cts.map +1 -1
  628. package/build/relations/hasProperty.d.mts +8 -8
  629. package/build/relations/hasProperty.d.mts.map +1 -1
  630. package/build/relations/hasProperty.js.map +1 -1
  631. package/build/relations/isCascadeDelete.d.cts +1 -2
  632. package/build/relations/isCascadeDelete.d.cts.map +1 -1
  633. package/build/relations/isCascadeDelete.d.mts +1 -2
  634. package/build/relations/isCascadeDelete.d.mts.map +1 -1
  635. package/build/resurrection.d.cts +3 -4
  636. package/build/resurrection.d.cts.map +1 -1
  637. package/build/resurrection.d.mts +3 -4
  638. package/build/resurrection.d.mts.map +1 -1
  639. package/build/rules.d.cts +20 -20
  640. package/build/rules.d.cts.map +1 -1
  641. package/build/rules.d.mts +20 -20
  642. package/build/rules.d.mts.map +1 -1
  643. package/build/runtimeConfig.d.cts +4 -5
  644. package/build/runtimeConfig.d.cts.map +1 -1
  645. package/build/runtimeConfig.d.mts +4 -5
  646. package/build/runtimeConfig.d.mts.map +1 -1
  647. package/build/serde/TypeInfo.d.cts +3 -4
  648. package/build/serde/TypeInfo.d.cts.map +1 -1
  649. package/build/serde/TypeInfo.d.mts +3 -4
  650. package/build/serde/TypeInfo.d.mts.map +1 -1
  651. package/build/serde/columns.d.cts +2 -3
  652. package/build/serde/columns.d.cts.map +1 -1
  653. package/build/serde/columns.d.mts +2 -3
  654. package/build/serde/columns.d.mts.map +1 -1
  655. package/build/serde/fieldSerde.d.cts +9 -9
  656. package/build/serde/fieldSerde.d.cts.map +1 -1
  657. package/build/serde/fieldSerde.d.mts +9 -9
  658. package/build/serde/fieldSerde.d.mts.map +1 -1
  659. package/build/serde/serde.d.cts +18 -19
  660. package/build/serde/serde.d.cts.map +1 -1
  661. package/build/serde/serde.d.mts +18 -19
  662. package/build/serde/serde.d.mts.map +1 -1
  663. package/build/serde/temporal.d.cts +5 -5
  664. package/build/serde/temporal.d.cts.map +1 -1
  665. package/build/serde/temporal.d.mts +5 -5
  666. package/build/serde/temporal.d.mts.map +1 -1
  667. package/build/serde/temporalMappers.d.cts +4 -5
  668. package/build/serde/temporalMappers.d.cts.map +1 -1
  669. package/build/serde/temporalMappers.d.mts +4 -5
  670. package/build/serde/temporalMappers.d.mts.map +1 -1
  671. package/build/transitions.d.cts +17 -18
  672. package/build/transitions.d.cts.map +1 -1
  673. package/build/transitions.d.mts +17 -18
  674. package/build/transitions.d.mts.map +1 -1
  675. package/build/trusted.d.cts +2 -3
  676. package/build/trusted.d.cts.map +1 -1
  677. package/build/trusted.d.mts +2 -3
  678. package/build/trusted.d.mts.map +1 -1
  679. package/build/typeMap.d.cts +17 -17
  680. package/build/typeMap.d.cts.map +1 -1
  681. package/build/typeMap.d.mts +17 -17
  682. package/build/typeMap.d.mts.map +1 -1
  683. package/build/upsert.d.cts +4 -4
  684. package/build/upsert.d.cts.map +1 -1
  685. package/build/upsert.d.mts +4 -4
  686. package/build/upsert.d.mts.map +1 -1
  687. package/build/utils.d.cts +27 -28
  688. package/build/utils.d.cts.map +1 -1
  689. package/build/utils.d.mts +27 -28
  690. package/build/utils.d.mts.map +1 -1
  691. package/package.json +4 -4
@@ -1,14 +1,14 @@
1
1
  import { ParsedFindQuery } from "./find/QueryParser.mjs";
2
2
  //#region src/queries/parsedConditions.d.ts
3
3
  /** A tree of ANDs/ORs with conditions or nested conditions. */
4
- interface ParsedExpressionFilter {
4
+ export interface ParsedExpressionFilter {
5
5
  kind: "exp";
6
6
  op: "and" | "or";
7
7
  conditions: ParsedExpressionCondition[];
8
8
  }
9
9
  /** A condition or nested condition in a `ParsedExpressionFilter`. */
10
- type ParsedExpressionCondition = ParsedExpressionFilter | ColumnCondition | RawCondition | ExistsCondition;
11
- interface ColumnCondition {
10
+ export type ParsedExpressionCondition = ParsedExpressionFilter | ColumnCondition | RawCondition | ExistsCondition;
11
+ export interface ColumnCondition {
12
12
  kind: "column";
13
13
  alias: string;
14
14
  column: string;
@@ -21,7 +21,7 @@ interface ColumnCondition {
21
21
  pruneable?: boolean;
22
22
  }
23
23
  /** A user-provided condition like `SUM(${alias}.amount) > 1000` or `a1.last_name = b1.title`. */
24
- interface RawCondition {
24
+ export interface RawCondition {
25
25
  kind: "raw";
26
26
  /** The aliases, i.e. `[a, b]`, used within the condition, to ensure we don't prune them. */
27
27
  aliases: string[];
@@ -33,7 +33,7 @@ interface RawCondition {
33
33
  pruneable: boolean;
34
34
  }
35
35
  /** An EXISTS or NOT EXISTS subquery condition. */
36
- interface ExistsCondition {
36
+ export interface ExistsCondition {
37
37
  kind: "exists";
38
38
  /** When true, renders as NOT EXISTS. */
39
39
  negate: boolean;
@@ -43,7 +43,7 @@ interface ExistsCondition {
43
43
  outerAliases: string[];
44
44
  }
45
45
  /** An ADT version of `ValueFilter`. */
46
- type ParsedValueFilter<V> = {
46
+ export type ParsedValueFilter<V> = {
47
47
  kind: "eq";
48
48
  value: V;
49
49
  } | {
@@ -121,7 +121,6 @@ type ParsedValueFilter<V> = {
121
121
  value: string;
122
122
  };
123
123
  /** Pulls out a flat list of all `ColumnCondition`s from a `ParsedExpressionFilter` tree. */
124
- declare function deepFindConditions(condition: ParsedExpressionFilter | undefined, filterPruneable: boolean): (ColumnCondition | RawCondition | ExistsCondition)[];
124
+ export declare function deepFindConditions(condition: ParsedExpressionFilter | undefined, filterPruneable: boolean): (ColumnCondition | RawCondition | ExistsCondition)[];
125
125
  //#endregion
126
- export { ColumnCondition, ExistsCondition, ParsedExpressionCondition, ParsedExpressionFilter, ParsedValueFilter, RawCondition, deepFindConditions };
127
126
  //# sourceMappingURL=parsedConditions.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parsedConditions.d.mts","names":[],"sources":["../../src/queries/parsedConditions.ts"],"mappings":";;;UAIiB;EACf;EACA;EACA,YAAY;;;KAIF,4BAA4B,yBAAyB,kBAAkB,eAAe;UAEjF;EACf;EACA;EACA;EACA;EACA,MAAM;;;;;EAKN;;;UAIe;EACf;;EAEA;;EAEA;;EAEA;;EAEA;;;UAIe;EACf;;EAEA;;EAEA,UAAU;;EAEV;;;KAIU,kBAAkB;EACxB;EAAY,OAAO;;EACnB;EAAY,gBAAgB;;EAC5B;EAAa,gBAAgB;;EAC7B;EAAY,OAAO;;EACnB;EAAa,OAAO;;EACpB;EAAY,OAAO;;EACnB;;EACA;;EACA;EAAY,OAAO;;EACnB;EAAa,OAAO;;EACpB;EAAc,OAAO;;EACrB;EAAe,OAAO;;EACtB;EAAe,OAAO;;EACtB;EAAgB,OAAO;;EACvB;EAAe,OAAO;;EACtB;EAAgB,OAAO;;EACvB;EAAgB,OAAO;;EACvB;EAAiB,OAAO;;EACxB;EAAkB,gBAAgB;;EAClC;EAAmB,gBAAgB;;EACnC;EAAkB,gBAAgB;;EAClC;EAAmB,gBAAgB;;EACnC;EAAqB,gBAAgB;;EACrC;EAAiB,QAAQ,GAAG;;EAC5B;EAAwB;;EACxB;EAA2B;;;iBAGjB,mBACd,WAAW,oCACX,4BACE,kBAAkB,eAAe"}
1
+ {"version":3,"file":"parsedConditions.d.mts","names":[],"sources":["../../src/queries/parsedConditions.ts"],"mappings":";;;iBAIiB;EACf;EACA;EACA,YAAY;;;YAIF,4BAA4B,yBAAyB,kBAAkB,eAAe;iBAEjF;EACf;EACA;EACA;EACA;EACA,MAAM;;;;;EAKN;;;iBAIe;EACf;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;EACf;;EAEA;;EAEA,UAAU;;EAEV;;;YAIU,kBAAkB;EACxB;EAAY,OAAO;;EACnB;EAAY,gBAAgB;;EAC5B;EAAa,gBAAgB;;EAC7B;EAAY,OAAO;;EACnB;EAAa,OAAO;;EACpB;EAAY,OAAO;;EACnB;;EACA;;EACA;EAAY,OAAO;;EACnB;EAAa,OAAO;;EACpB;EAAc,OAAO;;EACrB;EAAe,OAAO;;EACtB;EAAe,OAAO;;EACtB;EAAgB,OAAO;;EACvB;EAAe,OAAO;;EACtB;EAAgB,OAAO;;EACvB;EAAgB,OAAO;;EACvB;EAAiB,OAAO;;EACxB;EAAkB,gBAAgB;;EAClC;EAAmB,gBAAgB;;EACnC;EAAkB,gBAAgB;;EAClC;EAAmB,gBAAgB;;EACnC;EAAqB,gBAAgB;;EACrC;EAAiB,QAAQ,GAAG;;EAC5B;EAAwB;;EACxB;EAA2B;;;wBAGjB,mBACd,WAAW,oCACX,4BACE,kBAAkB,eAAe"}
@@ -2,14 +2,13 @@ import { ParsedFindQuery } from "./find/QueryParser.cjs";
2
2
  import { ParsedExpressionFilter, ParsedValueFilter } from "./parsedConditions.cjs";
3
3
  //#region src/queries/renderConditions.d.ts
4
4
  /** Renders a ParsedFindQuery subquery to SQL — passed in to avoid circular imports with buildFindQuery. */
5
- type SubqueryRenderer = (q: ParsedFindQuery) => {
5
+ export type SubqueryRenderer = (q: ParsedFindQuery) => {
6
6
  sql: string;
7
7
  bindings: readonly any[];
8
8
  };
9
9
  /** Returns a tuple of `["cond AND (cond OR cond)", bindings]`. */
10
- declare function buildWhereClause(exp: ParsedExpressionFilter, topLevel?: boolean, renderSubquery?: SubqueryRenderer): [string, any[]] | undefined;
10
+ export declare function buildWhereClause(exp: ParsedExpressionFilter, topLevel?: boolean, renderSubquery?: SubqueryRenderer): [string, any[]] | undefined;
11
11
  /** Renders an encoded value filter against a SQL column expression. */
12
- declare function buildValueCondition(columnName: string, cond: ParsedValueFilter<unknown>): [string, any[]];
12
+ export declare function buildValueCondition(columnName: string, cond: ParsedValueFilter<unknown>): [string, any[]];
13
13
  //#endregion
14
- export { SubqueryRenderer, buildValueCondition, buildWhereClause };
15
14
  //# sourceMappingURL=renderConditions.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderConditions.d.cts","names":[],"sources":["../../src/queries/renderConditions.ts"],"mappings":";;;;KAcY,oBAAoB,GAAG;EAAsB;EAAa;;;iBAGtD,iBACd,KAAK,wBACL,oBACA,iBAAiB;;iBAkCH,oBAAoB,oBAAoB,MAAM"}
1
+ {"version":3,"file":"renderConditions.d.cts","names":[],"sources":["../../src/queries/renderConditions.ts"],"mappings":";;;;YAcY,oBAAoB,GAAG;EAAsB;EAAa;;;wBAGtD,iBACd,KAAK,wBACL,oBACA,iBAAiB;;wBAkCH,oBAAoB,oBAAoB,MAAM"}
@@ -2,14 +2,13 @@ import { ParsedFindQuery } from "./find/QueryParser.mjs";
2
2
  import { ParsedExpressionFilter, ParsedValueFilter } from "./parsedConditions.mjs";
3
3
  //#region src/queries/renderConditions.d.ts
4
4
  /** Renders a ParsedFindQuery subquery to SQL — passed in to avoid circular imports with buildFindQuery. */
5
- type SubqueryRenderer = (q: ParsedFindQuery) => {
5
+ export type SubqueryRenderer = (q: ParsedFindQuery) => {
6
6
  sql: string;
7
7
  bindings: readonly any[];
8
8
  };
9
9
  /** Returns a tuple of `["cond AND (cond OR cond)", bindings]`. */
10
- declare function buildWhereClause(exp: ParsedExpressionFilter, topLevel?: boolean, renderSubquery?: SubqueryRenderer): [string, any[]] | undefined;
10
+ export declare function buildWhereClause(exp: ParsedExpressionFilter, topLevel?: boolean, renderSubquery?: SubqueryRenderer): [string, any[]] | undefined;
11
11
  /** Renders an encoded value filter against a SQL column expression. */
12
- declare function buildValueCondition(columnName: string, cond: ParsedValueFilter<unknown>): [string, any[]];
12
+ export declare function buildValueCondition(columnName: string, cond: ParsedValueFilter<unknown>): [string, any[]];
13
13
  //#endregion
14
- export { SubqueryRenderer, buildValueCondition, buildWhereClause };
15
14
  //# sourceMappingURL=renderConditions.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderConditions.d.mts","names":[],"sources":["../../src/queries/renderConditions.ts"],"mappings":";;;;KAcY,oBAAoB,GAAG;EAAsB;EAAa;;;iBAGtD,iBACd,KAAK,wBACL,oBACA,iBAAiB;;iBAkCH,oBAAoB,oBAAoB,MAAM"}
1
+ {"version":3,"file":"renderConditions.d.mts","names":[],"sources":["../../src/queries/renderConditions.ts"],"mappings":";;;;YAcY,oBAAoB,GAAG;EAAsB;EAAa;;;wBAGtD,iBACd,KAAK,wBACL,oBACA,iBAAiB;;wBAkCH,oBAAoB,oBAAoB,MAAM"}
@@ -1,7 +1,6 @@
1
1
  import { ColumnCondition } from "./parsedConditions.cjs";
2
2
  //#region src/queries/skipCondition.d.ts
3
3
  /** An undefined predicate is pruned by either query parser. */
4
- declare const skipCondition: ColumnCondition;
4
+ export declare const skipCondition: ColumnCondition;
5
5
  //#endregion
6
- export { skipCondition };
7
6
  //# sourceMappingURL=skipCondition.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"skipCondition.d.cts","names":[],"sources":["../../src/queries/skipCondition.ts"],"mappings":";;;cAGa,eAAe"}
1
+ {"version":3,"file":"skipCondition.d.cts","names":[],"sources":["../../src/queries/skipCondition.ts"],"mappings":";;;qBAGa,eAAe"}
@@ -1,7 +1,6 @@
1
1
  import { ColumnCondition } from "./parsedConditions.mjs";
2
2
  //#region src/queries/skipCondition.d.ts
3
3
  /** An undefined predicate is pruned by either query parser. */
4
- declare const skipCondition: ColumnCondition;
4
+ export declare const skipCondition: ColumnCondition;
5
5
  //#endregion
6
- export { skipCondition };
7
6
  //# sourceMappingURL=skipCondition.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"skipCondition.d.mts","names":[],"sources":["../../src/queries/skipCondition.ts"],"mappings":";;;cAGa,eAAe"}
1
+ {"version":3,"file":"skipCondition.d.mts","names":[],"sources":["../../src/queries/skipCondition.ts"],"mappings":";;;qBAGa,eAAe"}
@@ -1 +1 @@
1
- {"version":3,"file":"AliasAssigner.cjs","names":["abbreviation","#aliases","#nextAlias"],"sources":["../../../src/queries/sql/AliasAssigner.ts"],"sourcesContent":["import type { ParsedFindQuery } from \"src/queries/find/QueryParser.ts\";\nimport { abbreviation } from \"src/utils.ts\";\n\nexport class AliasAssigner {\n #aliases: Record<string, number> = {};\n\n constructor(query?: ParsedFindQuery) {\n this.getAlias = this.getAlias.bind(this);\n this.getLiteralAlias = this.getLiteralAlias.bind(this);\n // If we're assigning aliases into an existing query, get the current assignments\n if (query) {\n for (const table of query.tables) {\n // Ignore CTI base/sub aliases\n if (table.alias.includes(\"_\")) continue;\n const abbrev = abbreviation(table.table);\n const i = this.#aliases[abbrev] || 0;\n const j = Number(table.alias.replace(abbrev, \"\")) + 1;\n this.#aliases[abbrev] = Math.max(i, j);\n }\n }\n }\n\n /** Returns an abbreviated alias for a table name, e.g. `\"books\"` → `\"b\"`, `\"book_reviews\"` → `\"br\"`. */\n getAlias(tableName: string): string {\n const abbrev = abbreviation(tableName);\n return this.#nextAlias(abbrev);\n }\n\n /** Returns an alias using the name as-is (no abbreviation), e.g. `\"prequel\"` → `\"prequel\"`. */\n getLiteralAlias(name: string): string {\n return this.#nextAlias(name);\n }\n\n #nextAlias(key: string): string {\n const i = this.#aliases[key] || 0;\n this.#aliases[key] = i + 1;\n return i === 0 ? key : `${key}${i}`;\n }\n}\n"],"mappings":";;;AAGA,IAAa,gBAAb,MAA2B;CACzB,WAAmC,CAAC;CAEpC,YAAY,OAAyB;EACnC,KAAK,WAAW,KAAK,SAAS,KAAK,IAAI;EACvC,KAAK,kBAAkB,KAAK,gBAAgB,KAAK,IAAI;EAErD,IAAI,OACF,KAAK,MAAM,SAAS,MAAM,QAAQ;GAEhC,IAAI,MAAM,MAAM,SAAS,GAAG,GAAG;GAC/B,MAAM,SAASA,cAAAA,aAAa,MAAM,KAAK;GACvC,MAAM,IAAI,KAAKC,SAAS,WAAW;GACnC,MAAM,IAAI,OAAO,MAAM,MAAM,QAAQ,QAAQ,EAAE,CAAC,IAAI;GACpD,KAAKA,SAAS,UAAU,KAAK,IAAI,GAAG,CAAC;EACvC;CAEJ;;CAGA,SAAS,WAA2B;EAClC,MAAM,SAASD,cAAAA,aAAa,SAAS;EACrC,OAAO,KAAKE,WAAW,MAAM;CAC/B;;CAGA,gBAAgB,MAAsB;EACpC,OAAO,KAAKA,WAAW,IAAI;CAC7B;CAEA,WAAW,KAAqB;EAC9B,MAAM,IAAI,KAAKD,SAAS,QAAQ;EAChC,KAAKA,SAAS,OAAO,IAAI;EACzB,OAAO,MAAM,IAAI,MAAM,GAAG,MAAM;CAClC;AACF"}
1
+ {"version":3,"file":"AliasAssigner.cjs","names":["abbreviation"],"sources":["../../../src/queries/sql/AliasAssigner.ts"],"sourcesContent":["import type { ParsedFindQuery } from \"src/queries/find/QueryParser.ts\";\nimport { abbreviation } from \"src/utils.ts\";\n\nexport class AliasAssigner {\n #aliases: Record<string, number> = {};\n\n constructor(query?: ParsedFindQuery) {\n this.getAlias = this.getAlias.bind(this);\n this.getLiteralAlias = this.getLiteralAlias.bind(this);\n // If we're assigning aliases into an existing query, get the current assignments\n if (query) {\n for (const table of query.tables) {\n // Ignore CTI base/sub aliases\n if (table.alias.includes(\"_\")) continue;\n const abbrev = abbreviation(table.table);\n const i = this.#aliases[abbrev] || 0;\n const j = Number(table.alias.replace(abbrev, \"\")) + 1;\n this.#aliases[abbrev] = Math.max(i, j);\n }\n }\n }\n\n /** Returns an abbreviated alias for a table name, e.g. `\"books\"` → `\"b\"`, `\"book_reviews\"` → `\"br\"`. */\n getAlias(tableName: string): string {\n const abbrev = abbreviation(tableName);\n return this.#nextAlias(abbrev);\n }\n\n /** Returns an alias using the name as-is (no abbreviation), e.g. `\"prequel\"` → `\"prequel\"`. */\n getLiteralAlias(name: string): string {\n return this.#nextAlias(name);\n }\n\n #nextAlias(key: string): string {\n const i = this.#aliases[key] || 0;\n this.#aliases[key] = i + 1;\n return i === 0 ? key : `${key}${i}`;\n }\n}\n"],"mappings":";;;AAGA,IAAa,gBAAb,MAA2B;CACzB,WAAmC,CAAC;CAEpC,YAAY,OAAyB;EACnC,KAAK,WAAW,KAAK,SAAS,KAAK,IAAI;EACvC,KAAK,kBAAkB,KAAK,gBAAgB,KAAK,IAAI;EAErD,IAAI,OACF,KAAK,MAAM,SAAS,MAAM,QAAQ;GAEhC,IAAI,MAAM,MAAM,SAAS,GAAG,GAAG;GAC/B,MAAM,SAASA,cAAAA,aAAa,MAAM,KAAK;GACvC,MAAM,IAAI,KAAK,SAAS,WAAW;GACnC,MAAM,IAAI,OAAO,MAAM,MAAM,QAAQ,QAAQ,EAAE,CAAC,IAAI;GACpD,KAAK,SAAS,UAAU,KAAK,IAAI,GAAG,CAAC;EACvC;CAEJ;;CAGA,SAAS,WAA2B;EAClC,MAAM,SAASA,cAAAA,aAAa,SAAS;EACrC,OAAO,KAAK,WAAW,MAAM;CAC/B;;CAGA,gBAAgB,MAAsB;EACpC,OAAO,KAAK,WAAW,IAAI;CAC7B;CAEA,WAAW,KAAqB;EAC9B,MAAM,IAAI,KAAK,SAAS,QAAQ;EAChC,KAAK,SAAS,OAAO,IAAI;EACzB,OAAO,MAAM,IAAI,MAAM,GAAG,MAAM;CAClC;AACF"}
@@ -1,6 +1,6 @@
1
1
  import { ParsedFindQuery } from "../find/QueryParser.cjs";
2
2
  //#region src/queries/sql/AliasAssigner.d.ts
3
- declare class AliasAssigner {
3
+ export declare class AliasAssigner {
4
4
  #private;
5
5
  constructor(query?: ParsedFindQuery);
6
6
  /** Returns an abbreviated alias for a table name, e.g. `"books"` → `"b"`, `"book_reviews"` → `"br"`. */
@@ -9,5 +9,4 @@ declare class AliasAssigner {
9
9
  getLiteralAlias(name: string): string;
10
10
  }
11
11
  //#endregion
12
- export { AliasAssigner };
13
12
  //# sourceMappingURL=AliasAssigner.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AliasAssigner.d.cts","names":[],"sources":["../../../src/queries/sql/AliasAssigner.ts"],"mappings":";;cAGa;;EAGX,YAAY,QAAQ;;EAiBpB,SAAS;;EAMT,gBAAgB"}
1
+ {"version":3,"file":"AliasAssigner.d.cts","names":[],"sources":["../../../src/queries/sql/AliasAssigner.ts"],"mappings":";;qBAGa;;EAGX,YAAY,QAAQ;;EAiBpB,SAAS;;EAMT,gBAAgB"}
@@ -1,6 +1,6 @@
1
1
  import { ParsedFindQuery } from "../find/QueryParser.mjs";
2
2
  //#region src/queries/sql/AliasAssigner.d.ts
3
- declare class AliasAssigner {
3
+ export declare class AliasAssigner {
4
4
  #private;
5
5
  constructor(query?: ParsedFindQuery);
6
6
  /** Returns an abbreviated alias for a table name, e.g. `"books"` → `"b"`, `"book_reviews"` → `"br"`. */
@@ -9,5 +9,4 @@ declare class AliasAssigner {
9
9
  getLiteralAlias(name: string): string;
10
10
  }
11
11
  //#endregion
12
- export { AliasAssigner };
13
12
  //# sourceMappingURL=AliasAssigner.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AliasAssigner.d.mts","names":[],"sources":["../../../src/queries/sql/AliasAssigner.ts"],"mappings":";;cAGa;;EAGX,YAAY,QAAQ;;EAiBpB,SAAS;;EAMT,gBAAgB"}
1
+ {"version":3,"file":"AliasAssigner.d.mts","names":[],"sources":["../../../src/queries/sql/AliasAssigner.ts"],"mappings":";;qBAGa;;EAGX,YAAY,QAAQ;;EAiBpB,SAAS;;EAMT,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"AliasAssigner.js","names":["#aliases","#nextAlias"],"sources":["../../../src/queries/sql/AliasAssigner.ts"],"sourcesContent":["import type { ParsedFindQuery } from \"src/queries/find/QueryParser.ts\";\nimport { abbreviation } from \"src/utils.ts\";\n\nexport class AliasAssigner {\n #aliases: Record<string, number> = {};\n\n constructor(query?: ParsedFindQuery) {\n this.getAlias = this.getAlias.bind(this);\n this.getLiteralAlias = this.getLiteralAlias.bind(this);\n // If we're assigning aliases into an existing query, get the current assignments\n if (query) {\n for (const table of query.tables) {\n // Ignore CTI base/sub aliases\n if (table.alias.includes(\"_\")) continue;\n const abbrev = abbreviation(table.table);\n const i = this.#aliases[abbrev] || 0;\n const j = Number(table.alias.replace(abbrev, \"\")) + 1;\n this.#aliases[abbrev] = Math.max(i, j);\n }\n }\n }\n\n /** Returns an abbreviated alias for a table name, e.g. `\"books\"` → `\"b\"`, `\"book_reviews\"` → `\"br\"`. */\n getAlias(tableName: string): string {\n const abbrev = abbreviation(tableName);\n return this.#nextAlias(abbrev);\n }\n\n /** Returns an alias using the name as-is (no abbreviation), e.g. `\"prequel\"` → `\"prequel\"`. */\n getLiteralAlias(name: string): string {\n return this.#nextAlias(name);\n }\n\n #nextAlias(key: string): string {\n const i = this.#aliases[key] || 0;\n this.#aliases[key] = i + 1;\n return i === 0 ? key : `${key}${i}`;\n }\n}\n"],"mappings":";;AAGA,IAAa,gBAAb,MAA2B;CACzB,WAAmC,CAAC;CAEpC,YAAY,OAAyB;EACnC,KAAK,WAAW,KAAK,SAAS,KAAK,IAAI;EACvC,KAAK,kBAAkB,KAAK,gBAAgB,KAAK,IAAI;EAErD,IAAI,OACF,KAAK,MAAM,SAAS,MAAM,QAAQ;GAEhC,IAAI,MAAM,MAAM,SAAS,GAAG,GAAG;GAC/B,MAAM,SAAS,aAAa,MAAM,KAAK;GACvC,MAAM,IAAI,KAAKA,SAAS,WAAW;GACnC,MAAM,IAAI,OAAO,MAAM,MAAM,QAAQ,QAAQ,EAAE,CAAC,IAAI;GACpD,KAAKA,SAAS,UAAU,KAAK,IAAI,GAAG,CAAC;EACvC;CAEJ;;CAGA,SAAS,WAA2B;EAClC,MAAM,SAAS,aAAa,SAAS;EACrC,OAAO,KAAKC,WAAW,MAAM;CAC/B;;CAGA,gBAAgB,MAAsB;EACpC,OAAO,KAAKA,WAAW,IAAI;CAC7B;CAEA,WAAW,KAAqB;EAC9B,MAAM,IAAI,KAAKD,SAAS,QAAQ;EAChC,KAAKA,SAAS,OAAO,IAAI;EACzB,OAAO,MAAM,IAAI,MAAM,GAAG,MAAM;CAClC;AACF"}
1
+ {"version":3,"file":"AliasAssigner.js","names":[],"sources":["../../../src/queries/sql/AliasAssigner.ts"],"sourcesContent":["import type { ParsedFindQuery } from \"src/queries/find/QueryParser.ts\";\nimport { abbreviation } from \"src/utils.ts\";\n\nexport class AliasAssigner {\n #aliases: Record<string, number> = {};\n\n constructor(query?: ParsedFindQuery) {\n this.getAlias = this.getAlias.bind(this);\n this.getLiteralAlias = this.getLiteralAlias.bind(this);\n // If we're assigning aliases into an existing query, get the current assignments\n if (query) {\n for (const table of query.tables) {\n // Ignore CTI base/sub aliases\n if (table.alias.includes(\"_\")) continue;\n const abbrev = abbreviation(table.table);\n const i = this.#aliases[abbrev] || 0;\n const j = Number(table.alias.replace(abbrev, \"\")) + 1;\n this.#aliases[abbrev] = Math.max(i, j);\n }\n }\n }\n\n /** Returns an abbreviated alias for a table name, e.g. `\"books\"` → `\"b\"`, `\"book_reviews\"` → `\"br\"`. */\n getAlias(tableName: string): string {\n const abbrev = abbreviation(tableName);\n return this.#nextAlias(abbrev);\n }\n\n /** Returns an alias using the name as-is (no abbreviation), e.g. `\"prequel\"` → `\"prequel\"`. */\n getLiteralAlias(name: string): string {\n return this.#nextAlias(name);\n }\n\n #nextAlias(key: string): string {\n const i = this.#aliases[key] || 0;\n this.#aliases[key] = i + 1;\n return i === 0 ? key : `${key}${i}`;\n }\n}\n"],"mappings":";;AAGA,IAAa,gBAAb,MAA2B;CACzB,WAAmC,CAAC;CAEpC,YAAY,OAAyB;EACnC,KAAK,WAAW,KAAK,SAAS,KAAK,IAAI;EACvC,KAAK,kBAAkB,KAAK,gBAAgB,KAAK,IAAI;EAErD,IAAI,OACF,KAAK,MAAM,SAAS,MAAM,QAAQ;GAEhC,IAAI,MAAM,MAAM,SAAS,GAAG,GAAG;GAC/B,MAAM,SAAS,aAAa,MAAM,KAAK;GACvC,MAAM,IAAI,KAAK,SAAS,WAAW;GACnC,MAAM,IAAI,OAAO,MAAM,MAAM,QAAQ,QAAQ,EAAE,CAAC,IAAI;GACpD,KAAK,SAAS,UAAU,KAAK,IAAI,GAAG,CAAC;EACvC;CAEJ;;CAGA,SAAS,WAA2B;EAClC,MAAM,SAAS,aAAa,SAAS;EACrC,OAAO,KAAK,WAAW,MAAM;CAC/B;;CAGA,gBAAgB,MAAsB;EACpC,OAAO,KAAK,WAAW,IAAI;CAC7B;CAEA,WAAW,KAAqB;EAC9B,MAAM,IAAI,KAAK,SAAS,QAAQ;EAChC,KAAK,SAAS,OAAO,IAAI;EACzB,OAAO,MAAM,IAAI,MAAM,GAAG,MAAM;CAClC;AACF"}
@@ -14,9 +14,9 @@ import { ExpressionOrderBy, QueryCondition } from "./query.cjs";
14
14
  * import (at runtime) a module that leads back to `Tables.ts`. Anything that needs metadata, alias
15
15
  * binding, or SQL generation for conditions is reached through the `ExprContext` the query parser passes in.
16
16
  */
17
- declare const exprBrand: unique symbol;
17
+ export declare const exprBrand: unique symbol;
18
18
  /** Carries a column's table property name so array selects can infer and decode named result rows. */
19
- declare const selectKeyBrand: unique symbol;
19
+ export declare const selectKeyBrand: unique symbol;
20
20
  /**
21
21
  * Phantom type information carried by every `Expr`.
22
22
  *
@@ -37,7 +37,7 @@ declare const selectKeyBrand: unique symbol;
37
37
  * - `Expr<number, never>` reads from nothing that can be left-joined away, i.e. `b.id.count()`
38
38
  * - `Expr<number, string>` (the default) is untracked, i.e. a table whose entity type is not statically known
39
39
  */
40
- interface ExprBrand<R, Src extends string> {
40
+ export interface ExprBrand<R, Src extends string> {
41
41
  readonly __result: R;
42
42
  readonly __source: Src;
43
43
  }
@@ -49,11 +49,11 @@ interface ExprBrand<R, Src extends string> {
49
49
  * method's parameter list (which would make `Expr` invariant, and break `select: b.author_id` dispatch and
50
50
  * polymorphic joins).
51
51
  */
52
- type ExprLike<R> = {
52
+ export type ExprLike<R> = {
53
53
  readonly [exprBrand]: ExprBrand<R, any>;
54
54
  };
55
55
  /** Controls which values enter an array aggregate and their order within the array. */
56
- interface ArrayAggOptions {
56
+ export interface ArrayAggOptions {
57
57
  distinct?: boolean;
58
58
  /** With DISTINCT, PostgreSQL requires ordering expressions to match the aggregate argument. */
59
59
  orderBy?: readonly (ExpressionOrderBy | undefined)[];
@@ -68,7 +68,7 @@ interface ArrayAggOptions {
68
68
  * when `x`'s table is left-joined away; `coalesce` drops `Src` on purpose, since its whole job is to
69
69
  * remove the nullability a left join adds.
70
70
  */
71
- interface Expr<R, Src extends string = string> {
71
+ export interface Expr<R, Src extends string = string> {
72
72
  readonly [exprBrand]: ExprBrand<R, Src>;
73
73
  eq(value: R | ExprLike<R> | undefined): SqlCondition;
74
74
  ne(value: R | ExprLike<R> | undefined): SqlCondition;
@@ -107,20 +107,20 @@ interface Expr<R, Src extends string = string> {
107
107
  * Declared here (not `query.ts`) so the relation join factories in `Tables.ts` (i.e. `a.books.as(b)`) can
108
108
  * return them without importing `query.ts`; `query.ts` re-constrains `A` to its `QuerySource`.
109
109
  */
110
- interface InnerJoin<A, C = SqlCondition> {
110
+ export interface InnerJoin<A, C = SqlCondition> {
111
111
  readonly inner: A;
112
112
  readonly left?: never;
113
113
  readonly on: C;
114
114
  readonly keep?: boolean;
115
115
  }
116
- interface LeftJoin<A, C = SqlCondition> {
116
+ export interface LeftJoin<A, C = SqlCondition> {
117
117
  readonly left: A;
118
118
  readonly inner?: never;
119
119
  readonly on: C;
120
120
  readonly keep?: boolean;
121
121
  }
122
122
  /** SQL plus its `?` bindings plus the SQL aliases it references, i.e. for join pruning. */
123
- interface SqlFragment {
123
+ export interface SqlFragment {
124
124
  sql: string;
125
125
  bindings: any[];
126
126
  refs: string[];
@@ -129,16 +129,16 @@ interface SqlFragment {
129
129
  * What an expression needs from the query it is generating SQL for: the SQL alias assigned to each
130
130
  * source, and a way to turn nested conditions into SQL (which needs `ConditionBuilder`, so it lives in `query.ts`).
131
131
  */
132
- interface ExprContext {
132
+ export interface ExprContext {
133
133
  /** Returns the SQL alias for a table's `TableMgmt` or a subquery handle, searching enclosing queries. */
134
134
  aliasFor(handle: object): string;
135
135
  /** Turns a user-facing condition into SQL; `undefined` if it pruned away entirely. */
136
136
  conditionToSql(cond: QueryCondition): SqlFragment | undefined;
137
137
  }
138
- declare function isExpr(value: unknown): value is ExprLike<any>;
138
+ export declare function isExpr(value: unknown): value is ExprLike<any>;
139
139
  /** Every `Expr` is a `BaseExpr` at runtime; this cast keeps `isExpr` a plain type guard so unions narrow. */
140
- declare function asNode(expr: ExprLike<any>): BaseExpr;
141
- declare const deferredSym: unique symbol;
140
+ export declare function asNode(expr: ExprLike<any>): BaseExpr;
141
+ export declare const deferredSym: unique symbol;
142
142
  /**
143
143
  * A condition whose SQL depends on aliases that are only known once the query is parsed, i.e.
144
144
  * `bookStats.bookCount.gt(1)` or `bs.authorId.eq(a.id)`.
@@ -147,26 +147,26 @@ declare const deferredSym: unique symbol;
147
147
  * snapshots `condition`, `bindings`, and `aliases` before the filter is parsed. Domain alias conditions
148
148
  * use a separate protocol in the `em.find` parser.
149
149
  */
150
- interface DeferredCondition extends RawCondition, PredicateBrand<"sql"> {
150
+ export interface DeferredCondition extends RawCondition, PredicateBrand<"sql"> {
151
151
  [deferredSym]: (ctx: ExprContext) => RawCondition;
152
152
  }
153
- declare function isDeferredCondition(cond: unknown): cond is DeferredCondition;
153
+ export declare function isDeferredCondition(cond: unknown): cond is DeferredCondition;
154
154
  /** Creates a `DeferredCondition` that generates its SQL with `fn` once the query's aliases are known. */
155
- declare function deferredCondition(fn: (ctx: ExprContext) => SqlFragment): DeferredCondition;
155
+ export declare function deferredCondition(fn: (ctx: ExprContext) => SqlFragment): DeferredCondition;
156
156
  /**
157
157
  * Resolve each condition occurrence and snapshot it before resolving the next one. A nested subquery
158
158
  * may reuse the same condition under another alias; it must not overwrite this occurrence's SQL.
159
159
  */
160
- declare function resolveDeferredConditions(cond: ConditionInput | undefined, ctx: ExprContext): ConditionInput | undefined;
160
+ export declare function resolveDeferredConditions(cond: ConditionInput | undefined, ctx: ExprContext): ConditionInput | undefined;
161
161
  /** Concatenates SQL fragments with `sep`, keeping bindings and refs in order. */
162
- declare function joinFragments(parts: SqlFragment[], sep: string): SqlFragment;
162
+ export declare function joinFragments(parts: SqlFragment[], sep: string): SqlFragment;
163
163
  /**
164
164
  * The methods every expression shares. Subclasses provide `toSql`, and usually `decode`/`encode`.
165
165
  *
166
166
  * Table columns can override comparisons to apply column-specific conversions. Domain aliases do not
167
167
  * implement this protocol.
168
168
  */
169
- declare abstract class BaseExpr {
169
+ export declare abstract class BaseExpr {
170
170
  readonly [exprBrand]: any;
171
171
  /** Produces this expression's SQL so it can be embedded in a larger expression, i.e. a subquery gets parens. */
172
172
  abstract toSql(ctx: ExprContext): SqlFragment;
@@ -219,7 +219,7 @@ declare abstract class BaseExpr {
219
219
  * a decoder and output type when needed (`max(a.id)` is still an id); numeric aggregates supply their
220
220
  * own decoder/encoder, since `count(a.id)` is a number, not an id. Unknown functions have no output type.
221
221
  */
222
- declare class FnExpr extends BaseExpr {
222
+ export declare class FnExpr extends BaseExpr {
223
223
  private name;
224
224
  private args;
225
225
  private opts;
@@ -242,14 +242,14 @@ declare class FnExpr extends BaseExpr {
242
242
  encode(value: unknown): unknown;
243
243
  }
244
244
  /** A bound literal, i.e. the `?` in `coalesce(x, ?)`. */
245
- declare class BindingExpr extends BaseExpr {
245
+ export declare class BindingExpr extends BaseExpr {
246
246
  private value;
247
247
  constructor(value: unknown);
248
248
  get sqlNullable(): boolean;
249
249
  toSql(): SqlFragment;
250
250
  }
251
251
  /** An unmodeled column on a known source, i.e. `a.column("ts_search")`. */
252
- declare class RefExpr extends BaseExpr {
252
+ export declare class RefExpr extends BaseExpr {
253
253
  private handle;
254
254
  private column;
255
255
  constructor(handle: object, column: string);
@@ -267,18 +267,17 @@ declare class RefExpr extends BaseExpr {
267
267
  * sql`${"Alice"}` // Value: ?, bindings ["Alice"]
268
268
  * ```
269
269
  */
270
- declare class TemplateExpr extends BaseExpr {
270
+ export declare class TemplateExpr extends BaseExpr {
271
271
  private strings;
272
272
  private values;
273
273
  constructor(strings: TemplateStringsArray, values: unknown[]);
274
274
  toSql(ctx: ExprContext): SqlFragment;
275
275
  }
276
276
  /** Turns one `${...}` of a `sql` template into SQL: an expression, a condition, or a bound value. */
277
- declare function interpolationToSql(value: unknown, ctx: ExprContext): SqlFragment;
277
+ export declare function interpolationToSql(value: unknown, ctx: ExprContext): SqlFragment;
278
278
  /** True for the user-facing condition shapes: `{ and }`, `{ or }`, `ColumnCondition`, `RawCondition`. */
279
- declare function isConditionLike(value: unknown): boolean;
279
+ export declare function isConditionLike(value: unknown): boolean;
280
280
  /** Renders an expression order for either a query or an aggregate, or prunes an undefined order. */
281
- declare function orderByToSql(o: ExpressionOrderBy, ctx: ExprContext): SqlFragment | undefined;
281
+ export declare function orderByToSql(o: ExpressionOrderBy, ctx: ExprContext): SqlFragment | undefined;
282
282
  //#endregion
283
- export { ArrayAggOptions, BaseExpr, BindingExpr, DeferredCondition, Expr, ExprBrand, ExprContext, ExprLike, FnExpr, InnerJoin, LeftJoin, RefExpr, SqlFragment, TemplateExpr, asNode, deferredCondition, deferredSym, exprBrand, interpolationToSql, isConditionLike, isDeferredCondition, isExpr, joinFragments, orderByToSql, resolveDeferredConditions, selectKeyBrand };
284
283
  //# sourceMappingURL=Expr.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Expr.d.cts","names":[],"sources":["../../../src/queries/sql/Expr.ts"],"mappings":";;;;;;;;;;;;;;;;cAoBa;;cAEA;;;;;;;;;;;;;;;;;;;;;UAsBI,UAAU,GAAG;WACnB,UAAU;WACV,UAAU;;;;;;;;;;KAWT,SAAS;YAAiB,YAAY,UAAU;;;UAG3C;EACf;;EAEA,oBAAoB;;EAEpB,SAAS;;;;;;;;;;UAWM,KAAK,GAAG;YACb,YAAY,UAAU,GAAG;EACnC,GAAG,OAAO,IAAI,SAAS,iBAAiB;EACxC,GAAG,OAAO,IAAI,SAAS,iBAAiB;EACxC,GAAG,OAAO,IAAI,SAAS,iBAAiB;EACxC,IAAI,OAAO,IAAI,SAAS,iBAAiB;EACzC,GAAG,OAAO,IAAI,SAAS,iBAAiB;EACxC,IAAI,OAAO,IAAI,SAAS,iBAAiB;EAEzC,GAAG,iBAAiB,MAAM,SAAS,wBAAwB;EAC3D,IAAI,iBAAiB,MAAM,SAAS,wBAAwB;;EAG5D,GAAG,SAAS,yBAAyB,oBAAoB;;EAGzD,OAAO;;EAEP,QAAQ;;EAGR,SAAS;EACT,iBAAiB;EACjB,IAAI,MAAM,oBAAoB,OAAO,oBAAoB;EACzD,IAAI,MAAM,oBAAoB,OAAO,oBAAoB;EACzD,OAAO,KAAK,UAAU;EACtB,OAAO,KAAK,UAAU;;EAEtB,SAAS,UAAU,kBAAkB,KAAK,YAAY;EACtD,UAAU,MAAM,oBAAoB,MAAM,oBAAoB,oBAAoB;EAClF,SAAS,UAAU,YAAY,KAAK,KAAK,YAAY;;;;;;;;;;;;;UActC,UAAU,GAAG,IAAI;WACv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ACA,UAAU;IACV,UAAU;IACV,aAAa;IACb,YAAY;;MAMZ,cAAc;MAId;;;;;EAuBJ,MAAM,KAAK,cAAc;EAsBzB,OAAO;EAKP,OAAO;;;qBAMI,oBAAoB;UACX;EAApB,YAAoB;MAIhB;EAIJ,SAAS;;;qBAME,gBAAgB;UAEjB;UACA;EAFV,YACU,gBACA;MAKN;EAIJ,MAAM,KAAK,cAAc;;;;;;;;;;;;;qBAkBd,qBAAqB;UAEtB;UACA;EAFV,YACU,SAAS,sBACT;EAKV,MAAM,KAAK,cAAc;;;wBAWX,mBAAmB,gBAAgB,KAAK,cAAc;;wBAWtD,gBAAgB;;wBA+DhB,aAAa,GAAG,mBAAmB,KAAK,cAAc"}
@@ -14,9 +14,9 @@ import { ExpressionOrderBy, QueryCondition } from "./query.mjs";
14
14
  * import (at runtime) a module that leads back to `Tables.ts`. Anything that needs metadata, alias
15
15
  * binding, or SQL generation for conditions is reached through the `ExprContext` the query parser passes in.
16
16
  */
17
- declare const exprBrand: unique symbol;
17
+ export declare const exprBrand: unique symbol;
18
18
  /** Carries a column's table property name so array selects can infer and decode named result rows. */
19
- declare const selectKeyBrand: unique symbol;
19
+ export declare const selectKeyBrand: unique symbol;
20
20
  /**
21
21
  * Phantom type information carried by every `Expr`.
22
22
  *
@@ -37,7 +37,7 @@ declare const selectKeyBrand: unique symbol;
37
37
  * - `Expr<number, never>` reads from nothing that can be left-joined away, i.e. `b.id.count()`
38
38
  * - `Expr<number, string>` (the default) is untracked, i.e. a table whose entity type is not statically known
39
39
  */
40
- interface ExprBrand<R, Src extends string> {
40
+ export interface ExprBrand<R, Src extends string> {
41
41
  readonly __result: R;
42
42
  readonly __source: Src;
43
43
  }
@@ -49,11 +49,11 @@ interface ExprBrand<R, Src extends string> {
49
49
  * method's parameter list (which would make `Expr` invariant, and break `select: b.author_id` dispatch and
50
50
  * polymorphic joins).
51
51
  */
52
- type ExprLike<R> = {
52
+ export type ExprLike<R> = {
53
53
  readonly [exprBrand]: ExprBrand<R, any>;
54
54
  };
55
55
  /** Controls which values enter an array aggregate and their order within the array. */
56
- interface ArrayAggOptions {
56
+ export interface ArrayAggOptions {
57
57
  distinct?: boolean;
58
58
  /** With DISTINCT, PostgreSQL requires ordering expressions to match the aggregate argument. */
59
59
  orderBy?: readonly (ExpressionOrderBy | undefined)[];
@@ -68,7 +68,7 @@ interface ArrayAggOptions {
68
68
  * when `x`'s table is left-joined away; `coalesce` drops `Src` on purpose, since its whole job is to
69
69
  * remove the nullability a left join adds.
70
70
  */
71
- interface Expr<R, Src extends string = string> {
71
+ export interface Expr<R, Src extends string = string> {
72
72
  readonly [exprBrand]: ExprBrand<R, Src>;
73
73
  eq(value: R | ExprLike<R> | undefined): SqlCondition;
74
74
  ne(value: R | ExprLike<R> | undefined): SqlCondition;
@@ -107,20 +107,20 @@ interface Expr<R, Src extends string = string> {
107
107
  * Declared here (not `query.ts`) so the relation join factories in `Tables.ts` (i.e. `a.books.as(b)`) can
108
108
  * return them without importing `query.ts`; `query.ts` re-constrains `A` to its `QuerySource`.
109
109
  */
110
- interface InnerJoin<A, C = SqlCondition> {
110
+ export interface InnerJoin<A, C = SqlCondition> {
111
111
  readonly inner: A;
112
112
  readonly left?: never;
113
113
  readonly on: C;
114
114
  readonly keep?: boolean;
115
115
  }
116
- interface LeftJoin<A, C = SqlCondition> {
116
+ export interface LeftJoin<A, C = SqlCondition> {
117
117
  readonly left: A;
118
118
  readonly inner?: never;
119
119
  readonly on: C;
120
120
  readonly keep?: boolean;
121
121
  }
122
122
  /** SQL plus its `?` bindings plus the SQL aliases it references, i.e. for join pruning. */
123
- interface SqlFragment {
123
+ export interface SqlFragment {
124
124
  sql: string;
125
125
  bindings: any[];
126
126
  refs: string[];
@@ -129,16 +129,16 @@ interface SqlFragment {
129
129
  * What an expression needs from the query it is generating SQL for: the SQL alias assigned to each
130
130
  * source, and a way to turn nested conditions into SQL (which needs `ConditionBuilder`, so it lives in `query.ts`).
131
131
  */
132
- interface ExprContext {
132
+ export interface ExprContext {
133
133
  /** Returns the SQL alias for a table's `TableMgmt` or a subquery handle, searching enclosing queries. */
134
134
  aliasFor(handle: object): string;
135
135
  /** Turns a user-facing condition into SQL; `undefined` if it pruned away entirely. */
136
136
  conditionToSql(cond: QueryCondition): SqlFragment | undefined;
137
137
  }
138
- declare function isExpr(value: unknown): value is ExprLike<any>;
138
+ export declare function isExpr(value: unknown): value is ExprLike<any>;
139
139
  /** Every `Expr` is a `BaseExpr` at runtime; this cast keeps `isExpr` a plain type guard so unions narrow. */
140
- declare function asNode(expr: ExprLike<any>): BaseExpr;
141
- declare const deferredSym: unique symbol;
140
+ export declare function asNode(expr: ExprLike<any>): BaseExpr;
141
+ export declare const deferredSym: unique symbol;
142
142
  /**
143
143
  * A condition whose SQL depends on aliases that are only known once the query is parsed, i.e.
144
144
  * `bookStats.bookCount.gt(1)` or `bs.authorId.eq(a.id)`.
@@ -147,26 +147,26 @@ declare const deferredSym: unique symbol;
147
147
  * snapshots `condition`, `bindings`, and `aliases` before the filter is parsed. Domain alias conditions
148
148
  * use a separate protocol in the `em.find` parser.
149
149
  */
150
- interface DeferredCondition extends RawCondition, PredicateBrand<"sql"> {
150
+ export interface DeferredCondition extends RawCondition, PredicateBrand<"sql"> {
151
151
  [deferredSym]: (ctx: ExprContext) => RawCondition;
152
152
  }
153
- declare function isDeferredCondition(cond: unknown): cond is DeferredCondition;
153
+ export declare function isDeferredCondition(cond: unknown): cond is DeferredCondition;
154
154
  /** Creates a `DeferredCondition` that generates its SQL with `fn` once the query's aliases are known. */
155
- declare function deferredCondition(fn: (ctx: ExprContext) => SqlFragment): DeferredCondition;
155
+ export declare function deferredCondition(fn: (ctx: ExprContext) => SqlFragment): DeferredCondition;
156
156
  /**
157
157
  * Resolve each condition occurrence and snapshot it before resolving the next one. A nested subquery
158
158
  * may reuse the same condition under another alias; it must not overwrite this occurrence's SQL.
159
159
  */
160
- declare function resolveDeferredConditions(cond: ConditionInput | undefined, ctx: ExprContext): ConditionInput | undefined;
160
+ export declare function resolveDeferredConditions(cond: ConditionInput | undefined, ctx: ExprContext): ConditionInput | undefined;
161
161
  /** Concatenates SQL fragments with `sep`, keeping bindings and refs in order. */
162
- declare function joinFragments(parts: SqlFragment[], sep: string): SqlFragment;
162
+ export declare function joinFragments(parts: SqlFragment[], sep: string): SqlFragment;
163
163
  /**
164
164
  * The methods every expression shares. Subclasses provide `toSql`, and usually `decode`/`encode`.
165
165
  *
166
166
  * Table columns can override comparisons to apply column-specific conversions. Domain aliases do not
167
167
  * implement this protocol.
168
168
  */
169
- declare abstract class BaseExpr {
169
+ export declare abstract class BaseExpr {
170
170
  readonly [exprBrand]: any;
171
171
  /** Produces this expression's SQL so it can be embedded in a larger expression, i.e. a subquery gets parens. */
172
172
  abstract toSql(ctx: ExprContext): SqlFragment;
@@ -219,7 +219,7 @@ declare abstract class BaseExpr {
219
219
  * a decoder and output type when needed (`max(a.id)` is still an id); numeric aggregates supply their
220
220
  * own decoder/encoder, since `count(a.id)` is a number, not an id. Unknown functions have no output type.
221
221
  */
222
- declare class FnExpr extends BaseExpr {
222
+ export declare class FnExpr extends BaseExpr {
223
223
  private name;
224
224
  private args;
225
225
  private opts;
@@ -242,14 +242,14 @@ declare class FnExpr extends BaseExpr {
242
242
  encode(value: unknown): unknown;
243
243
  }
244
244
  /** A bound literal, i.e. the `?` in `coalesce(x, ?)`. */
245
- declare class BindingExpr extends BaseExpr {
245
+ export declare class BindingExpr extends BaseExpr {
246
246
  private value;
247
247
  constructor(value: unknown);
248
248
  get sqlNullable(): boolean;
249
249
  toSql(): SqlFragment;
250
250
  }
251
251
  /** An unmodeled column on a known source, i.e. `a.column("ts_search")`. */
252
- declare class RefExpr extends BaseExpr {
252
+ export declare class RefExpr extends BaseExpr {
253
253
  private handle;
254
254
  private column;
255
255
  constructor(handle: object, column: string);
@@ -267,18 +267,17 @@ declare class RefExpr extends BaseExpr {
267
267
  * sql`${"Alice"}` // Value: ?, bindings ["Alice"]
268
268
  * ```
269
269
  */
270
- declare class TemplateExpr extends BaseExpr {
270
+ export declare class TemplateExpr extends BaseExpr {
271
271
  private strings;
272
272
  private values;
273
273
  constructor(strings: TemplateStringsArray, values: unknown[]);
274
274
  toSql(ctx: ExprContext): SqlFragment;
275
275
  }
276
276
  /** Turns one `${...}` of a `sql` template into SQL: an expression, a condition, or a bound value. */
277
- declare function interpolationToSql(value: unknown, ctx: ExprContext): SqlFragment;
277
+ export declare function interpolationToSql(value: unknown, ctx: ExprContext): SqlFragment;
278
278
  /** True for the user-facing condition shapes: `{ and }`, `{ or }`, `ColumnCondition`, `RawCondition`. */
279
- declare function isConditionLike(value: unknown): boolean;
279
+ export declare function isConditionLike(value: unknown): boolean;
280
280
  /** Renders an expression order for either a query or an aggregate, or prunes an undefined order. */
281
- declare function orderByToSql(o: ExpressionOrderBy, ctx: ExprContext): SqlFragment | undefined;
281
+ export declare function orderByToSql(o: ExpressionOrderBy, ctx: ExprContext): SqlFragment | undefined;
282
282
  //#endregion
283
- export { ArrayAggOptions, BaseExpr, BindingExpr, DeferredCondition, Expr, ExprBrand, ExprContext, ExprLike, FnExpr, InnerJoin, LeftJoin, RefExpr, SqlFragment, TemplateExpr, asNode, deferredCondition, deferredSym, exprBrand, interpolationToSql, isConditionLike, isDeferredCondition, isExpr, joinFragments, orderByToSql, resolveDeferredConditions, selectKeyBrand };
284
283
  //# sourceMappingURL=Expr.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Expr.d.mts","names":[],"sources":["../../../src/queries/sql/Expr.ts"],"mappings":";;;;;;;;;;;;;;;;cAoBa;;cAEA;;;;;;;;;;;;;;;;;;;;;UAsBI,UAAU,GAAG;WACnB,UAAU;WACV,UAAU;;;;;;;;;;KAWT,SAAS;YAAiB,YAAY,UAAU;;;UAG3C;EACf;;EAEA,oBAAoB;;EAEpB,SAAS;;;;;;;;;;UAWM,KAAK,GAAG;YACb,YAAY,UAAU,GAAG;EACnC,GAAG,OAAO,IAAI,SAAS,iBAAiB;EACxC,GAA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8BAc5C;YACV;;WAGD,MAAM,KAAK,cAAc;;MAG9B,kBAAkB;;MAKlB,cAAc;;MAKd;;MAKA;;EAKJ,UAAU,KAAK,cAAc;;EAK7B,OAAO;;EAKP,OAAO;EAIP,GAAG,iBAAiB;EAIpB,GAAG,iBAAiB;EAIpB,GAAG,iBAAiB;EAIpB,IAAI,iBAAiB;EAIrB,GAAG,iBAAiB;EAIpB,IAAI,iBAAiB;EAIrB,GAAG,kBAAkB;EAIrB,IAAI,kBAAkB;;EAKtB,GAAG,SAAS,yBAAyB,oBAAoB;;EAMzD,OAAO;;EAKP,QAAQ;EAIR,SAAS;EAST,iBAAiB;EAUjB,OAAO;EAQP,OAAO;EAQP,OAAO;EAOP,OAAO;EAOP,SAAS,UAAU,kBAAkB;EAYrC,UAAU,oBAAoB;EAO9B,SAAS,oBAAoB;;YAQnB,QAAQ,YAAY,iBAAiB;;YAmBrC,OAAO,qBAAqB,kBAAkB;;;;;;;;;qBA6B7C,eAAe;UAEhB;UACA;UACA;EAHV,YACU,cACA,MAAM,YACN;IACN;IACA;IACA,UAAU;IACV,UAAU;IACV,aAAa;IACb,YAAY;;MAMZ,cAAc;MAId;;;;;EAuBJ,MAAM,KAAK,cAAc;EAsBzB,OAAO;EAKP,OAAO;;;qBAMI,oBAAoB;UACX;EAApB,YAAoB;MAIhB;EAIJ,SAAS;;;qBAME,gBAAgB;UAEjB;UACA;EAFV,YACU,gBACA;MAKN;EAIJ,MAAM,KAAK,cAAc;;;;;;;;;;;;;qBAkBd,qBAAqB;UAEtB;UACA;EAFV,YACU,SAAS,sBACT;EAKV,MAAM,KAAK,cAAc;;;wBAWX,mBAAmB,gBAAgB,KAAK,cAAc;;wBAWtD,gBAAgB;;wBA+DhB,aAAa,GAAG,mBAAmB,KAAK,cAAc"}
@@ -6,7 +6,7 @@ import { IdOf } from "../../EntityManager.cjs";
6
6
  import { Entity } from "../../Entity.cjs";
7
7
  //#region src/queries/sql/JoinTree.d.ts
8
8
  /** Domain filters and optional table bindings for one node in a relationship tree. */
9
- type JoinTree<T extends Entity> = Omit<TableFilter<T>, RelationNames<T>> & {
9
+ export type JoinTree<T extends Entity> = Omit<TableFilter<T>, RelationNames<T>> & {
10
10
  readonly as?: TableFor<T>;
11
11
  } & { readonly [K in RelationNames<T>]?: FieldsOf<T>[K] extends {
12
12
  kind: "m2o" | "o2m" | "lo2m" | "m2m" | "o2o";
@@ -52,7 +52,7 @@ type RelationNames<T extends Entity> = { [K in keyof FieldsOf<T>]: FieldsOf<T>[K
52
52
  * - Validate `title` against `Book`, and
53
53
  * - Retain `typeof b` for result typing.
54
54
  */
55
- type CheckJoinInput<F, J> = QueryJoinInput extends J ? {
55
+ export type CheckJoinInput<F, J> = QueryJoinInput extends J ? {
56
56
  join?: "join was typed too generically; use `satisfies Query` instead of `: Query`";
57
57
  } : [J] extends [readonly unknown[]] ? unknown : F extends TableFor<infer T extends Entity> ? {
58
58
  join?: JoinTree<T> & CheckTree<T, J>;
@@ -66,7 +66,7 @@ type CheckJoinInput<F, J> = QueryJoinInput extends J ? {
66
66
  *
67
67
  * I.e. Author.books.author uses LEFT joins for both Book and its Author because an Author may have no Books.
68
68
  */
69
- type TreeEntries<T extends Entity, J, Nullable extends boolean = false> = string extends keyof J ? never : "as" extends keyof J ? JoinTree<T> extends J ? never : TreeEntriesImpl<T, J, Nullable> : TreeEntriesImpl<T, J, Nullable>;
69
+ export type TreeEntries<T extends Entity, J, Nullable extends boolean = false> = string extends keyof J ? never : "as" extends keyof J ? JoinTree<T> extends J ? never : TreeEntriesImpl<T, J, Nullable> : TreeEntriesImpl<T, J, Nullable>;
70
70
  /** Collects join entries from the relationship keys supplied in this tree node. */
71
71
  type TreeEntriesImpl<T extends Entity, J, Nullable extends boolean> = { [K in keyof J & keyof FieldsOf<T>]: FieldsOf<T>[K] extends {
72
72
  kind: "m2o" | "o2m" | "lo2m" | "m2m" | "o2o";
@@ -98,10 +98,10 @@ type CheckRelationTree<T extends Entity, J> = J extends object ? "ne" extends ke
98
98
  * Handles remain query-local; no SQL aliases or caller objects are changed.
99
99
  * I.e. Author.books.author emits Book before its Author, even if only the final Author has an as binding.
100
100
  */
101
- declare function compileJoinTree(from: unknown, tree: unknown): {
101
+ export declare function compileJoinTree(from: unknown, tree: unknown): {
102
102
  joins: QueryJoin[];
103
103
  condition: QueryCondition;
104
104
  };
105
105
  //#endregion
106
- export { CheckJoinInput, JoinTree, TreeEntries, compileJoinTree };
106
+ export {};
107
107
  //# sourceMappingURL=JoinTree.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"JoinTree.d.cts","names":[],"sources":["../../../src/queries/sql/JoinTree.ts"],"mappings":";;;;;;;;KAkBY,SAAS,UAAU,UAAU,KAAK,YAAY,IAAI,cAAc;WACjE,KAAK,SAAS;gBAEb,KAAK,cAAc,MAAM,SAAS,GAAG;EAC7C;EACA,YAAY,UAAU;IAEpB,SAAS,MAAM,gBAAgB,YAAY,KAAK,YAAY,GAAG,KAAK,mBAAmB;;;;;;;;;;;;KAexF,mBAAmB,UAAU,UAC9B,KAAK,KACL,cACU,KAAK,KAAK;EAGlB,IAAI,KAAK,KAAK;;KAEf,cAAc,UAAU,aAC1B,WAAW,SAAS,KAAK,SAAS,GAAG;EAAa;IAC/C,mBAEE,SAAS;;;;;;;;;;;;;;;;;;;;;;;;KAyBL,eAAe,GAAG,KAG5B,uBAAuB;EACjB;KAED,4CAEC,UAAU,eAAe,UAAU;EAE/B,OAAO,SAAS,KAAK,UAAU,GAAG;;EAElC;;;;;;;;;KASA,YAAY,UAAU,QAAQ,GAAG,yDAItB,+BAIE,IAGjB,SAAS,WAAW,YAElB,gBAAgB,GAAG,GAAG,YACxB,gBAAgB,GAAG,GAAG;;KAGzB,gBAAgB,UAAU,QAAQ,GAAG,+BACvC,WAAW,UAAU,SAAS,KAAK,SAAS,GAAG;EAC9C;EACA,YAAY,UAAU;IAEpB,cACE,GACA,QAAQ,EAAE,gBACV,+BAA+B,SAAS,GAAG;EAAa;EAAa;mCAG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