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
@@ -3,7 +3,7 @@ import { LoadHint } from "../loading/loadHints.mjs";
3
3
  import { EntityMetadata } from "../EntityMetadata.mjs";
4
4
  import { EntityManager } from "../EntityManager.mjs";
5
5
  //#region src/batchloaders/loadBatchLoader.d.ts
6
- declare const loadOperation = "load";
6
+ export declare const loadOperation = "load";
7
7
  /**
8
8
  * Batches em.load-style fetches, writing to identity map (via hydrate) instead of returning values.
9
9
  * After the batch resolves, callers retrieve their entity from `em.findExistingInstance`.
@@ -11,10 +11,9 @@ declare const loadOperation = "load";
11
11
  * Accepts tuples of `{ taggedId, hint }` so the preloader can inject join-based
12
12
  * preloading into the same SELECT that fetches the entities.
13
13
  */
14
- declare function loadBatchLoader(em: EntityManager, meta: EntityMetadata, overwriteExisting?: boolean): BatchLoader<{
14
+ export declare function loadBatchLoader(em: EntityManager, meta: EntityMetadata, overwriteExisting?: boolean): BatchLoader<{
15
15
  taggedId: string;
16
16
  hint: LoadHint<any> | undefined;
17
17
  }>;
18
18
  //#endregion
19
- export { loadBatchLoader, loadOperation };
20
19
  //# sourceMappingURL=loadBatchLoader.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"loadBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/loadBatchLoader.ts"],"mappings":";;;;;cAWa;;;;;;;;iBASG,gBACd,IAAI,eACJ,MAAM,gBACN,8BACC;EAAc;EAAkB,MAAM"}
1
+ {"version":3,"file":"loadBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/loadBatchLoader.ts"],"mappings":";;;;;qBAWa;;;;;;;;wBASG,gBACd,IAAI,eACJ,MAAM,gBACN,8BACC;EAAc;EAAkB,MAAM"}
@@ -3,9 +3,8 @@ import { ManyToManyLike } from "../flush/JoinRows.cjs";
3
3
  import "../index.cjs";
4
4
  import { EntityManager } from "../EntityManager.cjs";
5
5
  //#region src/batchloaders/manyToManyBatchLoader.d.ts
6
- declare const manyToManyLoadOperation = "m2m-load";
6
+ export declare const manyToManyLoadOperation = "m2m-load";
7
7
  /** Batches m2m.packages/core/src/relations/ReactiveManyToMany.tsload calls via BatchLoader. */
8
- declare function manyToManyBatchLoader(em: EntityManager, collection: ManyToManyLike): BatchLoader<string>;
8
+ export declare function manyToManyBatchLoader(em: EntityManager, collection: ManyToManyLike): BatchLoader<string>;
9
9
  //#endregion
10
- export { manyToManyBatchLoader, manyToManyLoadOperation };
11
10
  //# sourceMappingURL=manyToManyBatchLoader.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"manyToManyBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/manyToManyBatchLoader.ts"],"mappings":";;;;;cAMa;;iBAGG,sBAAsB,IAAI,eAAe,YAAY,iBAAiB"}
1
+ {"version":3,"file":"manyToManyBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/manyToManyBatchLoader.ts"],"mappings":";;;;;qBAMa;;wBAGG,sBAAsB,IAAI,eAAe,YAAY,iBAAiB"}
@@ -3,9 +3,8 @@ import { ManyToManyLike } from "../flush/JoinRows.mjs";
3
3
  import "../index.mjs";
4
4
  import { EntityManager } from "../EntityManager.mjs";
5
5
  //#region src/batchloaders/manyToManyBatchLoader.d.ts
6
- declare const manyToManyLoadOperation = "m2m-load";
6
+ export declare const manyToManyLoadOperation = "m2m-load";
7
7
  /** Batches m2m.packages/core/src/relations/ReactiveManyToMany.tsload calls via BatchLoader. */
8
- declare function manyToManyBatchLoader(em: EntityManager, collection: ManyToManyLike): BatchLoader<string>;
8
+ export declare function manyToManyBatchLoader(em: EntityManager, collection: ManyToManyLike): BatchLoader<string>;
9
9
  //#endregion
10
- export { manyToManyBatchLoader, manyToManyLoadOperation };
11
10
  //# sourceMappingURL=manyToManyBatchLoader.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"manyToManyBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/manyToManyBatchLoader.ts"],"mappings":";;;;;cAMa;;iBAGG,sBAAsB,IAAI,eAAe,YAAY,iBAAiB"}
1
+ {"version":3,"file":"manyToManyBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/manyToManyBatchLoader.ts"],"mappings":";;;;;qBAMa;;wBAGG,sBAAsB,IAAI,eAAe,YAAY,iBAAiB"}
@@ -4,8 +4,7 @@ import "../index.cjs";
4
4
  import { EntityManager } from "../EntityManager.cjs";
5
5
  import { Entity } from "../Entity.cjs";
6
6
  //#region src/batchloaders/oneToManyBatchLoader.d.ts
7
- declare const oneToManyLoadOperation = "o2m-load";
8
- declare function oneToManyBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: OneToManyCollection<T, U>): BatchLoader<string>;
7
+ export declare const oneToManyLoadOperation = "o2m-load";
8
+ export declare function oneToManyBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: OneToManyCollection<T, U>): BatchLoader<string>;
9
9
  //#endregion
10
- export { oneToManyBatchLoader, oneToManyLoadOperation };
11
10
  //# sourceMappingURL=oneToManyBatchLoader.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oneToManyBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/oneToManyBatchLoader.ts"],"mappings":";;;;;;cAea;iBAEG,qBAAqB,UAAU,QAAQ,UAAU,QAC/D,IAAI,eACJ,YAAY,oBAAoB,GAAG,KAClC"}
1
+ {"version":3,"file":"oneToManyBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/oneToManyBatchLoader.ts"],"mappings":";;;;;;qBAea;wBAEG,qBAAqB,UAAU,QAAQ,UAAU,QAC/D,IAAI,eACJ,YAAY,oBAAoB,GAAG,KAClC"}
@@ -4,8 +4,7 @@ import "../index.mjs";
4
4
  import { EntityManager } from "../EntityManager.mjs";
5
5
  import { Entity } from "../Entity.mjs";
6
6
  //#region src/batchloaders/oneToManyBatchLoader.d.ts
7
- declare const oneToManyLoadOperation = "o2m-load";
8
- declare function oneToManyBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: OneToManyCollection<T, U>): BatchLoader<string>;
7
+ export declare const oneToManyLoadOperation = "o2m-load";
8
+ export declare function oneToManyBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: OneToManyCollection<T, U>): BatchLoader<string>;
9
9
  //#endregion
10
- export { oneToManyBatchLoader, oneToManyLoadOperation };
11
10
  //# sourceMappingURL=oneToManyBatchLoader.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oneToManyBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/oneToManyBatchLoader.ts"],"mappings":";;;;;;cAea;iBAEG,qBAAqB,UAAU,QAAQ,UAAU,QAC/D,IAAI,eACJ,YAAY,oBAAoB,GAAG,KAClC"}
1
+ {"version":3,"file":"oneToManyBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/oneToManyBatchLoader.ts"],"mappings":";;;;;;qBAea;wBAEG,qBAAqB,UAAU,QAAQ,UAAU,QAC/D,IAAI,eACJ,YAAY,oBAAoB,GAAG,KAClC"}
@@ -3,8 +3,7 @@ import { OneToOneReferenceImpl } from "../relations/OneToOneReference.cjs";
3
3
  import { EntityManager } from "../EntityManager.cjs";
4
4
  import { Entity } from "../Entity.cjs";
5
5
  //#region src/batchloaders/oneToOneBatchLoader.d.ts
6
- declare const oneToOneLoadOperation = "o2o-load";
7
- declare function oneToOneBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, reference: OneToOneReferenceImpl<T, U>): BatchLoader<string>;
6
+ export declare const oneToOneLoadOperation = "o2o-load";
7
+ export declare function oneToOneBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, reference: OneToOneReferenceImpl<T, U>): BatchLoader<string>;
8
8
  //#endregion
9
- export { oneToOneBatchLoader, oneToOneLoadOperation };
10
9
  //# sourceMappingURL=oneToOneBatchLoader.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oneToOneBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/oneToOneBatchLoader.ts"],"mappings":";;;;;cAea;iBAEG,oBAAoB,UAAU,QAAQ,UAAU,QAC9D,IAAI,eACJ,WAAW,sBAAsB,GAAG,KACnC"}
1
+ {"version":3,"file":"oneToOneBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/oneToOneBatchLoader.ts"],"mappings":";;;;;qBAea;wBAEG,oBAAoB,UAAU,QAAQ,UAAU,QAC9D,IAAI,eACJ,WAAW,sBAAsB,GAAG,KACnC"}
@@ -3,8 +3,7 @@ import { OneToOneReferenceImpl } from "../relations/OneToOneReference.mjs";
3
3
  import { EntityManager } from "../EntityManager.mjs";
4
4
  import { Entity } from "../Entity.mjs";
5
5
  //#region src/batchloaders/oneToOneBatchLoader.d.ts
6
- declare const oneToOneLoadOperation = "o2o-load";
7
- declare function oneToOneBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, reference: OneToOneReferenceImpl<T, U>): BatchLoader<string>;
6
+ export declare const oneToOneLoadOperation = "o2o-load";
7
+ export declare function oneToOneBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, reference: OneToOneReferenceImpl<T, U>): BatchLoader<string>;
8
8
  //#endregion
9
- export { oneToOneBatchLoader, oneToOneLoadOperation };
10
9
  //# sourceMappingURL=oneToOneBatchLoader.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oneToOneBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/oneToOneBatchLoader.ts"],"mappings":";;;;;cAea;iBAEG,oBAAoB,UAAU,QAAQ,UAAU,QAC9D,IAAI,eACJ,WAAW,sBAAsB,GAAG,KACnC"}
1
+ {"version":3,"file":"oneToOneBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/oneToOneBatchLoader.ts"],"mappings":";;;;;qBAea;wBAEG,oBAAoB,UAAU,QAAQ,UAAU,QAC9D,IAAI,eACJ,WAAW,sBAAsB,GAAG,KACnC"}
@@ -5,13 +5,12 @@ import "../index.cjs";
5
5
  import { EntityManager } from "../EntityManager.cjs";
6
6
  import { Entity } from "../Entity.cjs";
7
7
  //#region src/batchloaders/populateBatchLoader.d.ts
8
- declare const populateOperation = "populate";
9
- declare function populateBatchLoader(em: EntityManager, meta: EntityMetadata, hint: LoadHint<any>, mode: "preload" | "intermixed", opts?: {
8
+ export declare const populateOperation = "populate";
9
+ export declare function populateBatchLoader(em: EntityManager, meta: EntityMetadata, hint: LoadHint<any>, mode: "preload" | "intermixed", opts?: {
10
10
  forceReload?: boolean;
11
11
  }): BatchLoader<{
12
12
  entity: Entity;
13
13
  hint: LoadHint<any>;
14
14
  }>;
15
15
  //#endregion
16
- export { populateBatchLoader, populateOperation };
17
16
  //# sourceMappingURL=populateBatchLoader.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"populateBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/populateBatchLoader.ts"],"mappings":";;;;;;;cAwBa;iBAEG,oBACd,IAAI,eACJ,MAAM,gBACN,MAAM,eACN,gCACA;EAAQ;IACP;EAAc,QAAQ;EAAQ,MAAM"}
1
+ {"version":3,"file":"populateBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/populateBatchLoader.ts"],"mappings":";;;;;;;qBAwBa;wBAEG,oBACd,IAAI,eACJ,MAAM,gBACN,MAAM,eACN,gCACA;EAAQ;IACP;EAAc,QAAQ;EAAQ,MAAM"}
@@ -5,13 +5,12 @@ import "../index.mjs";
5
5
  import { EntityManager } from "../EntityManager.mjs";
6
6
  import { Entity } from "../Entity.mjs";
7
7
  //#region src/batchloaders/populateBatchLoader.d.ts
8
- declare const populateOperation = "populate";
9
- declare function populateBatchLoader(em: EntityManager, meta: EntityMetadata, hint: LoadHint<any>, mode: "preload" | "intermixed", opts?: {
8
+ export declare const populateOperation = "populate";
9
+ export declare function populateBatchLoader(em: EntityManager, meta: EntityMetadata, hint: LoadHint<any>, mode: "preload" | "intermixed", opts?: {
10
10
  forceReload?: boolean;
11
11
  }): BatchLoader<{
12
12
  entity: Entity;
13
13
  hint: LoadHint<any>;
14
14
  }>;
15
15
  //#endregion
16
- export { populateBatchLoader, populateOperation };
17
16
  //# sourceMappingURL=populateBatchLoader.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"populateBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/populateBatchLoader.ts"],"mappings":";;;;;;;cAwBa;iBAEG,oBACd,IAAI,eACJ,MAAM,gBACN,MAAM,eACN,gCACA;EAAQ;IACP;EAAc,QAAQ;EAAQ,MAAM"}
1
+ {"version":3,"file":"populateBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/populateBatchLoader.ts"],"mappings":";;;;;;;qBAwBa;wBAEG,oBACd,IAAI,eACJ,MAAM,gBACN,MAAM,eACN,gCACA;EAAQ;IACP;EAAc,QAAQ;EAAQ,MAAM"}
@@ -3,8 +3,7 @@ import { RecursiveChildrenCollectionImpl } from "../relations/RecursiveCollectio
3
3
  import { EntityManager } from "../EntityManager.cjs";
4
4
  import { Entity } from "../Entity.cjs";
5
5
  //#region src/batchloaders/recursiveChildrenBatchLoader.d.ts
6
- declare const recursiveChildrenOperation = "o2m-recursive";
7
- declare function recursiveChildrenBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: RecursiveChildrenCollectionImpl<T, U>): BatchLoader<Entity>;
6
+ export declare const recursiveChildrenOperation = "o2m-recursive";
7
+ export declare function recursiveChildrenBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: RecursiveChildrenCollectionImpl<T, U>): BatchLoader<Entity>;
8
8
  //#endregion
9
- export { recursiveChildrenBatchLoader, recursiveChildrenOperation };
10
9
  //# sourceMappingURL=recursiveChildrenBatchLoader.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recursiveChildrenBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/recursiveChildrenBatchLoader.ts"],"mappings":";;;;;cAoBa;iBAEG,6BAA6B,UAAU,QAAQ,UAAU,QACvE,IAAI,eACJ,YAAY,gCAAgC,GAAG,KAC9C,YAAY"}
1
+ {"version":3,"file":"recursiveChildrenBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/recursiveChildrenBatchLoader.ts"],"mappings":";;;;;qBAoBa;wBAEG,6BAA6B,UAAU,QAAQ,UAAU,QACvE,IAAI,eACJ,YAAY,gCAAgC,GAAG,KAC9C,YAAY"}
@@ -3,8 +3,7 @@ import { RecursiveChildrenCollectionImpl } from "../relations/RecursiveCollectio
3
3
  import { EntityManager } from "../EntityManager.mjs";
4
4
  import { Entity } from "../Entity.mjs";
5
5
  //#region src/batchloaders/recursiveChildrenBatchLoader.d.ts
6
- declare const recursiveChildrenOperation = "o2m-recursive";
7
- declare function recursiveChildrenBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: RecursiveChildrenCollectionImpl<T, U>): BatchLoader<Entity>;
6
+ export declare const recursiveChildrenOperation = "o2m-recursive";
7
+ export declare function recursiveChildrenBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: RecursiveChildrenCollectionImpl<T, U>): BatchLoader<Entity>;
8
8
  //#endregion
9
- export { recursiveChildrenBatchLoader, recursiveChildrenOperation };
10
9
  //# sourceMappingURL=recursiveChildrenBatchLoader.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recursiveChildrenBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/recursiveChildrenBatchLoader.ts"],"mappings":";;;;;cAoBa;iBAEG,6BAA6B,UAAU,QAAQ,UAAU,QACvE,IAAI,eACJ,YAAY,gCAAgC,GAAG,KAC9C,YAAY"}
1
+ {"version":3,"file":"recursiveChildrenBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/recursiveChildrenBatchLoader.ts"],"mappings":";;;;;qBAoBa;wBAEG,6BAA6B,UAAU,QAAQ,UAAU,QACvE,IAAI,eACJ,YAAY,gCAAgC,GAAG,KAC9C,YAAY"}
@@ -3,8 +3,7 @@ import { RecursiveM2mCollectionImpl } from "../relations/RecursiveCollection.cjs
3
3
  import { EntityManager } from "../EntityManager.cjs";
4
4
  import { Entity } from "../Entity.cjs";
5
5
  //#region src/batchloaders/recursiveM2mBatchLoader.d.ts
6
- declare const recursiveM2mOperation = "m2m-recursive";
7
- declare function recursiveM2mBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: RecursiveM2mCollectionImpl<T, U>): BatchLoader<Entity>;
6
+ export declare const recursiveM2mOperation = "m2m-recursive";
7
+ export declare function recursiveM2mBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: RecursiveM2mCollectionImpl<T, U>): BatchLoader<Entity>;
8
8
  //#endregion
9
- export { recursiveM2mBatchLoader, recursiveM2mOperation };
10
9
  //# sourceMappingURL=recursiveM2mBatchLoader.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recursiveM2mBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/recursiveM2mBatchLoader.ts"],"mappings":";;;;;cAiBa;iBAEG,wBAAwB,UAAU,QAAQ,UAAU,QAClE,IAAI,eACJ,YAAY,2BAA2B,GAAG,KACzC,YAAY"}
1
+ {"version":3,"file":"recursiveM2mBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/recursiveM2mBatchLoader.ts"],"mappings":";;;;;qBAiBa;wBAEG,wBAAwB,UAAU,QAAQ,UAAU,QAClE,IAAI,eACJ,YAAY,2BAA2B,GAAG,KACzC,YAAY"}
@@ -3,8 +3,7 @@ import { RecursiveM2mCollectionImpl } from "../relations/RecursiveCollection.mjs
3
3
  import { EntityManager } from "../EntityManager.mjs";
4
4
  import { Entity } from "../Entity.mjs";
5
5
  //#region src/batchloaders/recursiveM2mBatchLoader.d.ts
6
- declare const recursiveM2mOperation = "m2m-recursive";
7
- declare function recursiveM2mBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: RecursiveM2mCollectionImpl<T, U>): BatchLoader<Entity>;
6
+ export declare const recursiveM2mOperation = "m2m-recursive";
7
+ export declare function recursiveM2mBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: RecursiveM2mCollectionImpl<T, U>): BatchLoader<Entity>;
8
8
  //#endregion
9
- export { recursiveM2mBatchLoader, recursiveM2mOperation };
10
9
  //# sourceMappingURL=recursiveM2mBatchLoader.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recursiveM2mBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/recursiveM2mBatchLoader.ts"],"mappings":";;;;;cAiBa;iBAEG,wBAAwB,UAAU,QAAQ,UAAU,QAClE,IAAI,eACJ,YAAY,2BAA2B,GAAG,KACzC,YAAY"}
1
+ {"version":3,"file":"recursiveM2mBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/recursiveM2mBatchLoader.ts"],"mappings":";;;;;qBAiBa;wBAEG,wBAAwB,UAAU,QAAQ,UAAU,QAClE,IAAI,eACJ,YAAY,2BAA2B,GAAG,KACzC,YAAY"}
@@ -3,8 +3,7 @@ import { RecursiveParentsCollectionImpl } from "../relations/RecursiveCollection
3
3
  import { EntityManager } from "../EntityManager.cjs";
4
4
  import { Entity } from "../Entity.cjs";
5
5
  //#region src/batchloaders/recursiveParentsBatchLoader.d.ts
6
- declare const recursiveParentsOperation = "m2o-recursive";
7
- declare function recursiveParentsBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: RecursiveParentsCollectionImpl<T, U>): BatchLoader<Entity>;
6
+ export declare const recursiveParentsOperation = "m2o-recursive";
7
+ export declare function recursiveParentsBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: RecursiveParentsCollectionImpl<T, U>): BatchLoader<Entity>;
8
8
  //#endregion
9
- export { recursiveParentsBatchLoader, recursiveParentsOperation };
10
9
  //# sourceMappingURL=recursiveParentsBatchLoader.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recursiveParentsBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/recursiveParentsBatchLoader.ts"],"mappings":";;;;;cAea;iBAEG,4BAA4B,UAAU,QAAQ,UAAU,QACtE,IAAI,eACJ,YAAY,+BAA+B,GAAG,KAC7C,YAAY"}
1
+ {"version":3,"file":"recursiveParentsBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/recursiveParentsBatchLoader.ts"],"mappings":";;;;;qBAea;wBAEG,4BAA4B,UAAU,QAAQ,UAAU,QACtE,IAAI,eACJ,YAAY,+BAA+B,GAAG,KAC7C,YAAY"}
@@ -3,8 +3,7 @@ import { RecursiveParentsCollectionImpl } from "../relations/RecursiveCollection
3
3
  import { EntityManager } from "../EntityManager.mjs";
4
4
  import { Entity } from "../Entity.mjs";
5
5
  //#region src/batchloaders/recursiveParentsBatchLoader.d.ts
6
- declare const recursiveParentsOperation = "m2o-recursive";
7
- declare function recursiveParentsBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: RecursiveParentsCollectionImpl<T, U>): BatchLoader<Entity>;
6
+ export declare const recursiveParentsOperation = "m2o-recursive";
7
+ export declare function recursiveParentsBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: RecursiveParentsCollectionImpl<T, U>): BatchLoader<Entity>;
8
8
  //#endregion
9
- export { recursiveParentsBatchLoader, recursiveParentsOperation };
10
9
  //# sourceMappingURL=recursiveParentsBatchLoader.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recursiveParentsBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/recursiveParentsBatchLoader.ts"],"mappings":";;;;;cAea;iBAEG,4BAA4B,UAAU,QAAQ,UAAU,QACtE,IAAI,eACJ,YAAY,+BAA+B,GAAG,KAC7C,YAAY"}
1
+ {"version":3,"file":"recursiveParentsBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/recursiveParentsBatchLoader.ts"],"mappings":";;;;;qBAea;wBAEG,4BAA4B,UAAU,QAAQ,UAAU,QACtE,IAAI,eACJ,YAAY,+BAA+B,GAAG,KAC7C,YAAY"}
@@ -1 +1 @@
1
- {"version":3,"file":"changes.cjs","names":["getInstanceData","getField","notLoadedValue","isEntity","isId","#entity","#m2m","#joinRows","getEmInternalApi","#added","#removed","#collection","#toCodes","#o2m","getMetadata","isChangeableField","assertNever"],"sources":["../src/changes.ts"],"sourcesContent":["import { getInstanceData } from \"src/BaseEntity.ts\";\nimport { type Entity } from \"src/Entity.ts\";\nimport { type IdOf } from \"src/EntityManager.ts\";\nimport { getField, isChangeableField } from \"src/fields.ts\";\nimport type { JoinColumnValue, JoinRows } from \"src/flush/JoinRows.ts\";\nimport {\n type Field,\n type ManyToManyCollection,\n type OneToManyCollection,\n type RelationsOf,\n assertNever,\n getEmInternalApi,\n getMetadata,\n isEntity,\n isId,\n} from \"src/index.ts\";\nimport { type EnumCollectionImpl } from \"src/relations/EnumCollection.ts\";\nimport { notLoadedValue } from \"src/relations/LazyField.ts\";\nimport { type FieldsOf, type OptsOf } from \"src/typeMap.ts\";\n\n/** Exposes a field's changed/original value in each entity's `this.changes` property. */\nexport interface FieldStatus<T> {\n /** True if the field has been changed on either create or update. */\n hasChanged: boolean;\n /** True only if the field has been updated i.e. not on the initial create. */\n hasUpdated: boolean;\n /** The original value, will be `undefined` if the entity new. */\n originalValue?: T;\n}\n\n/**\n * Provides a base class for field/primitive & m2o status impls.\n *\n * We use a separate base class so that the primitive & m2o subtypes can have their own\n * `kind: ...` consts, that if the m2o just subtyped the primitive directly, wouldn't be\n * allowed.\n */\nabstract class BaseFieldStatusImpl<T> {\n entity: Entity;\n fieldName: string;\n\n constructor(entity: Entity, fieldName: string) {\n this.entity = entity;\n this.fieldName = fieldName;\n }\n\n get originalValue(): T | undefined {\n const { originalData, data } = getInstanceData(this.entity);\n // If `p` is in originalData, always respect that, even if it's undefined\n const value =\n this.fieldName in originalData ? originalData[this.fieldName] : getField(this.entity, this.fieldName as any);\n // An unloaded lazy column's original value is unknown\n return value === notLoadedValue ? undefined : value;\n }\n\n get hasChanged(): boolean {\n const { originalData, data } = getInstanceData(this.entity);\n // Use `__orm.data[p] !== undefined` instead of `p in entity.__orm.data` because if a new (or cloned) entity\n // sets-then-unsets a value, it will return to `undefined` but still be present in `__orm.data`.\n return this.entity.isNewEntity ? data[this.fieldName] !== undefined : this.fieldName in originalData;\n }\n\n get hasUpdated(): boolean {\n const { originalData } = getInstanceData(this.entity);\n return !this.entity.isNewEntity && this.fieldName in originalData;\n }\n}\n\n/** Field status for primitive, enum, & primary key columns. */\nexport interface PrimitiveFieldStatus<T> extends FieldStatus<T> {\n kind: \"field\";\n}\n\n/** Implements the primitive field status, by extend base & just adding our `kind` const. */\nclass PrimitiveFieldStatusImpl<T> extends BaseFieldStatusImpl<T> implements PrimitiveFieldStatus<T> {\n kind = \"field\" as const;\n}\n\n/** Implements the m2o field status, by extend base, & adding `originalEntity`. */\nclass ManyToOneFieldStatusImpl<T extends Entity>\n extends BaseFieldStatusImpl<IdOf<T>>\n implements ManyToOneFieldStatus<T>\n{\n kind = \"m2o\" as const;\n\n /**\n * Returns our original entity's `id`.\n *\n * We can know `originalValue` has an `id` available (i.e. is not new), b/c original values defacto\n * came from the database.\n *\n * We also return the id so that `entity.changes.m2oField.originalValue` has a consistent API,\n * regardless of whether the `entity.m2oField` itself is loaded or unloaded.\n */\n get originalValue() {\n const originalValue = super.originalValue;\n return isEntity(originalValue) ? (originalValue.id as IdOf<T>) : originalValue;\n }\n\n /** Returns the original entity instance, which may not be loaded into memory yet, or undefined. */\n get originalEntity(): Promise<T | undefined> {\n const originalValue = this.originalValue;\n if (isId(originalValue)) {\n return this.entity.em.load(originalValue) as Promise<T>;\n } else {\n return Promise.resolve(undefined);\n }\n }\n}\n\n/** Provides a m2o/reference field's changed/original value in the entity's `this.changes` property. */\nexport interface ManyToOneFieldStatus<T extends Entity> extends FieldStatus<IdOf<T>> {\n kind: \"m2o\";\n /** The original entity, will be `undefined` if the entity new or the m2o was `null`. */\n originalEntity: Promise<T | undefined>;\n}\n\n/** Provides a m2m relation's added/removed/changed/original values. */\nexport interface ManyToManyFieldStatus<U extends Entity> {\n kind: \"m2m\";\n added: U[];\n removed: U[];\n changed: U[];\n hasChanged: boolean;\n hasUpdated: boolean;\n originalEntities: Promise<readonly U[]>;\n}\n\nclass ManyToManyFieldStatusImpl<T extends Entity, U extends Entity> implements ManyToManyFieldStatus<U> {\n readonly kind = \"m2m\";\n readonly #entity: T;\n readonly #m2m: ManyToManyCollection<T, any>;\n readonly #joinRows: JoinRows;\n\n constructor(entity: T, fieldName: keyof T) {\n this.#entity = entity;\n this.#m2m = entity[fieldName] as ManyToManyCollection<T, any>;\n this.#joinRows = getEmInternalApi(entity.em).joinRows(this.#m2m);\n }\n\n // Similar to the o2m.added/removed methods, these don't have to be async because currently\n // any m2m mutation requires having both entities in-memory anyway, i.e. we can't do id-only/unloaded\n // mutation of m2m relations.\n get added(): U[] {\n return this.#added.sort(entityCompare);\n }\n\n get removed(): U[] {\n return this.#removed.sort(entityCompare);\n }\n\n get changed(): U[] {\n return [...this.#added, ...this.#removed].sort(entityCompare);\n }\n\n get hasChanged(): boolean {\n // Calculating `changed: U[]` can be expensive if we sort, so just look at added/removed\n return this.#added.length > 0 || this.#removed.length > 0;\n }\n\n get hasUpdated(): boolean {\n return !this.#entity.isNewEntity && this.hasChanged;\n }\n\n get originalEntities(): Promise<readonly U[]> {\n return this.#m2m.load().then((list) => {\n const set = new Set(this.added);\n const copy = list.filter((e) => !set.has(e));\n copy.push(...this.removed);\n return copy.sort(entityCompare);\n });\n }\n\n get #added(): U[] {\n return this.#joinRows.addedFor(this.#m2m, this.#entity) as U[];\n }\n\n get #removed(): U[] {\n return this.#joinRows.removedFor(this.#m2m, this.#entity) as U[];\n }\n}\n\n/** Provides an enum m2m's added/removed/changed/original codes (e.g. `Publisher.logoColors`). */\nexport interface EnumCollectionFieldStatus<E> {\n kind: \"m2mEnum\";\n added: E[];\n removed: E[];\n changed: E[];\n hasChanged: boolean;\n hasUpdated: boolean;\n originalValues: Promise<readonly E[]>;\n}\n\nclass EnumCollectionFieldStatusImpl<T extends Entity, E> implements EnumCollectionFieldStatus<E> {\n readonly kind = \"m2mEnum\";\n readonly #entity: T;\n readonly #collection: EnumCollectionImpl<T, E>;\n readonly #joinRows: JoinRows;\n\n constructor(entity: T, fieldName: keyof T) {\n this.#entity = entity;\n this.#collection = entity[fieldName] as EnumCollectionImpl<T, E>;\n this.#joinRows = getEmInternalApi(entity.em).joinRows(this.#collection);\n }\n\n get added(): E[] {\n return this.#toCodes(this.#joinRows.addedFor(this.#collection, this.#entity));\n }\n\n get removed(): E[] {\n return this.#toCodes(this.#joinRows.removedFor(this.#collection, this.#entity));\n }\n\n get changed(): E[] {\n return [...this.added, ...this.removed];\n }\n\n get hasChanged(): boolean {\n return this.added.length > 0 || this.removed.length > 0;\n }\n\n get hasUpdated(): boolean {\n return !this.#entity.isNewEntity && this.hasChanged;\n }\n\n get originalValues(): Promise<readonly E[]> {\n // `load()` ensures the persisted (db) rows are in memory, then diff out our pending changes.\n return this.#collection.load().then((codes) => {\n const added = new Set(this.added);\n const enumDetail = this.#collection.otherEnum;\n return [...codes.filter((c) => !added.has(c)), ...this.removed].sort(\n (a, b) => enumDetail.getByCode(a).id - enumDetail.getByCode(b).id,\n );\n });\n }\n\n /** Maps the join rows' enum ids to codes, sorted by enum id for a stable order. */\n #toCodes(ids: JoinColumnValue[]): E[] {\n const enumDetail = this.#collection.otherEnum;\n return (ids as number[]).sort((a, b) => a - b).map((id) => enumDetail.findById(id)!.code as E);\n }\n}\n\nexport interface OneToManyFieldStatus<U extends Entity> {\n kind: \"o2m\";\n added: U[];\n removed: U[];\n changed: U[];\n hasChanged: boolean;\n hasUpdated: boolean;\n originalEntities: Promise<readonly U[]>;\n}\n\n/** Provides access to an o2m relation's added/removed/changed entities. */\nclass OneToManyFieldStatusImpl<T extends Entity, U extends Entity> implements OneToManyFieldStatus<U> {\n readonly kind = \"o2m\";\n readonly #entity: T;\n readonly #o2m: OneToManyCollection<T, U>;\n\n constructor(entity: T, fieldName: keyof T) {\n this.#entity = entity;\n this.#o2m = entity[fieldName] as OneToManyCollection<T, U>;\n }\n\n // This doesn't have to be a promise, b/c even if o2m is unloaded, to mutate\n // the o2m (calling `add(other)` or `remove(other)` or `other.otherField = me`), all\n // require having the \"other entity\" in memory.\n get added(): U[] {\n return this.#added.sort(entityCompare);\n }\n\n get removed(): U[] {\n return this.#removed.sort(entityCompare);\n }\n\n get changed(): U[] {\n return [...this.added, ...this.removed].sort(entityCompare);\n }\n\n get hasChanged(): boolean {\n // Calculating `changed: U[]` can be expensive if we sort, so just look at added/removed\n return this.#added.length > 0 || this.#removed.length > 0;\n }\n\n get hasUpdated(): boolean {\n return !this.#entity.isNewEntity && this.hasChanged;\n }\n\n get originalEntities(): Promise<readonly U[]> {\n return this.#o2m.load().then((list) => {\n const set = new Set(this.added);\n const copy = list.filter((e) => !set.has(e));\n copy.push(...this.removed);\n return copy.sort(entityCompare);\n });\n }\n\n // This doesn't have to be a promise, b/c even if o2m is unloaded, to mutate\n // the o2m (calling `add(other)` or `remove(other)` or `other.otherField = me`), all\n // require having the \"other entity\" in memory.\n get #added(): U[] {\n return [\n ...this.#o2m.added(),\n ...(this.#entity.isNewEntity\n ? []\n : ((getEmInternalApi(this.#entity.em).pendingPercolate.get(this.#entity.idTagged)?.get(this.#o2m.fieldName)\n ?.adds as U[]) ?? [])),\n ];\n }\n\n get #removed(): U[] {\n return [\n ...this.#o2m.removed(),\n ...(this.#entity.isNewEntity\n ? []\n : ((getEmInternalApi(this.#entity.em).pendingPercolate.get(this.#entity.idTagged)?.get(this.#o2m.fieldName)\n ?.removes as U[]) ?? [])),\n ];\n }\n}\n\n/**\n * Creates the `this.changes.firstName` changes API for a given entity `T`.\n *\n * We use `FieldsOf` because that already excludes collection, and then also\n * convert reference fields to `ManyToOneFieldStatus` to be the id type\n * because the reference may not be loaded.\n *\n * @typeParam K The fields of the entity, or potentially the union of the entity and its subtypes,\n * i.e. `Publisher.changes` is typed as `Changes<Publisher, keyof Publisher | keyof SmallPub | keyof LargePub>`\n * @typeParam R An optional list of restrictions, i.e for `Reacted` for to provide `changes` to its subset of fields.\n */\nexport type Changes<T extends Entity, K = keyof (FieldsOf<T> & RelationsOf<T>), R = K> = {\n /** Array of changed field names. */\n fields: NonNullable<K>[];\n /** Array of changed field names w/o o2m & m2m relations (which can be expensive). */\n fieldsWithoutRelations: NonNullable<K>[];\n} & {\n // The o2o branch is `never`: the FK lives on the other entity, so changes never track o2o fields.\n // (The exclusion must stay in the value position: a conditional in the `[P in ...]` clause defers on\n // a generic `T` and collapses `keyof Changes<T>` at inference time, i.e. in `cannotBeUpdated` calls.)\n [P in keyof FieldsOf<T> & R]: FieldsOf<T>[P] extends { kind: \"m2m\"; type: infer U extends Entity }\n ? ManyToManyFieldStatus<U>\n : FieldsOf<T>[P] extends { kind: \"m2mEnum\"; type: infer E }\n ? EnumCollectionFieldStatus<E>\n : FieldsOf<T>[P] extends { kind: \"o2m\"; type: infer U extends Entity }\n ? OneToManyFieldStatus<U>\n : FieldsOf<T>[P] extends { kind: \"o2o\" }\n ? never\n : FieldsOf<T>[P] extends { type: (infer U) | undefined }\n ? U extends Entity\n ? ManyToOneFieldStatus<U>\n : PrimitiveFieldStatus<U>\n : never;\n};\n\n// type A1 = never extends string ? 1 : 2;\n// type A2 = Book extends Entity | undefined ? 1 : 2;\n// type A2a = string extends Entity | string | undefined ? 1 : 2;\n// type A3 = Book | undefined extends Entity ? 1 : 2;\n// type A4 = Book | undefined | null extends (infer E extends Entity) | undefined | null ? E : 2;\n\n/**\n * A strongly-typed Entity with its changes field.\n *\n * Ideally this would live on `Entity` directly, but results in circular type issues.\n */\nexport interface EntityChanges<T extends Entity> {\n changes: Changes<T>;\n}\n\nexport function newChangesProxy<T extends Entity>(entity: T): Changes<T> {\n return new Proxy(entity, {\n get(\n target,\n p: PropertyKey & string,\n ):\n | FieldStatus<any>\n | ManyToOneFieldStatus<any>\n | ManyToManyFieldStatus<any>\n | OneToManyFieldStatus<any>\n | (keyof OptsOf<T>)[] {\n if (p === \"fields\") {\n return getChangedFieldNames(entity, true);\n } else if (p === \"fieldsWithoutRelations\") {\n return getChangedFieldNames(entity, false);\n } else if (typeof p === \"symbol\") {\n throw new Error(`Unsupported call to ${String(p)}`);\n }\n const kind = getMetadata(entity).allFields[p]?.kind;\n if (kind === \"m2m\") {\n return new ManyToManyFieldStatusImpl(entity, p as keyof T);\n } else if (kind === \"m2mEnum\") {\n return new EnumCollectionFieldStatusImpl(entity, p as keyof T);\n } else if (kind === \"o2m\") {\n return new OneToManyFieldStatusImpl(entity, p as keyof T);\n } else if (!isChangeableField(entity, p as any)) {\n throw new Error(`Invalid changes field ${p}`);\n } else if (kind === \"m2o\" || kind === \"poly\") {\n return new ManyToOneFieldStatusImpl(entity, p);\n } else if (kind === \"enum\" || kind === \"primitive\" || kind === \"primaryKey\") {\n return new PrimitiveFieldStatusImpl(entity, p);\n } else if (kind === \"lo2m\" || kind === \"o2o\") {\n throw new Error(`changes are not supported for ${kind} ${p}`);\n } else {\n return assertNever(kind);\n }\n },\n }) as any;\n}\n\nconst addOriginalEntity: Record<Field[\"kind\"], boolean> = {\n m2o: true,\n poly: true,\n m2mEnum: false,\n enum: false,\n lo2m: false,\n m2m: false,\n o2m: false,\n o2o: false,\n primaryKey: false,\n primitive: false,\n};\n\n/** Scans `entity` for changes primitive + m2m/o2m fields. */\nfunction getChangedFieldNames<T extends Entity>(entity: T, includeRelations: boolean): (keyof OptsOf<T>)[] {\n const fieldsChanged = entity.isNewEntity\n ? // Cloning sometimes leaves unset keys in data as undefined, so drop them\n Object.entries(getInstanceData(entity).data)\n .filter(([, value]) => value !== undefined)\n .map(([key]) => key)\n : Object.keys(getInstanceData(entity).originalData);\n\n // Calling `hasChanged` on these can be expensive, and we call this in a loop during em.flush\n if (includeRelations) {\n for (const field of Object.values(getMetadata(entity).allFields)) {\n if (field.kind === \"m2m\") {\n const status = new ManyToManyFieldStatusImpl(entity, field.fieldName as keyof T);\n if (status.hasChanged) {\n fieldsChanged.push(field.fieldName);\n }\n } else if (field.kind === \"o2m\") {\n const status = new OneToManyFieldStatusImpl(entity, field.fieldName as keyof T);\n if (status.hasChanged) {\n fieldsChanged.push(field.fieldName);\n }\n } else if (field.kind === \"m2mEnum\") {\n const status = new EnumCollectionFieldStatusImpl(entity, field.fieldName as keyof T);\n if (status.hasChanged) {\n fieldsChanged.push(field.fieldName);\n }\n }\n }\n }\n\n return fieldsChanged as any;\n}\n\nconst entityCompare: (a: Entity, b: Entity) => number = (a, b) => {\n return a.toString().localeCompare(b.toString());\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAqCA,IAAe,sBAAf,MAAsC;CACpC;CACA;CAEA,YAAY,QAAgB,WAAmB;EAC7C,KAAK,SAAS;EACd,KAAK,YAAY;CACnB;CAEA,IAAI,gBAA+B;EACjC,MAAM,EAAE,cAAc,SAASA,mBAAAA,gBAAgB,KAAK,MAAM;EAE1D,MAAM,QACJ,KAAK,aAAa,eAAe,aAAa,KAAK,aAAaC,eAAAA,SAAS,KAAK,QAAQ,KAAK,SAAgB;EAE7G,OAAO,UAAUC,4BAAAA,iBAAiB,KAAA,IAAY;CAChD;CAEA,IAAI,aAAsB;EACxB,MAAM,EAAE,cAAc,SAASF,mBAAAA,gBAAgB,KAAK,MAAM;EAG1D,OAAO,KAAK,OAAO,cAAc,KAAK,KAAK,eAAe,KAAA,IAAY,KAAK,aAAa;CAC1F;CAEA,IAAI,aAAsB;EACxB,MAAM,EAAE,iBAAiBA,mBAAAA,gBAAgB,KAAK,MAAM;EACpD,OAAO,CAAC,KAAK,OAAO,eAAe,KAAK,aAAa;CACvD;AACF;;AAQA,IAAM,2BAAN,cAA0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AC,CACzC,QAAQ,GAAG,WAAW,UAAU,KAAA,CAAS,CAAC,CAC1C,KAAK,CAAC,SAAS,GAAG,IACrB,OAAO,KAAKA,mBAAAA,gBAAgB,MAAM,CAAC,CAAC,YAAY;CAGpD,IAAI,kBACG;OAAA,MAAM,SAAS,OAAO,OAAOc,uBAAAA,YAAY,MAAM,CAAC,CAAC,SAAS,GAC7D,IAAI,MAAM,SAAS,OAEb;OAAA,IADe,0BAA0B,QAAQ,MAAM,SAClD,CAAC,CAAC,YACT,cAAc,KAAK,MAAM,SAAS;EAAA,OAE/B,IAAI,MAAM,SAAS,OAEpB;OAAA,IADe,yBAAyB,QAAQ,MAAM,SACjD,CAAC,CAAC,YACT,cAAc,KAAK,MAAM,SAAS;EAAA,OAE/B,IAAI,MAAM,SAAS,WAEpB;OAAA,IADe,8BAA8B,QAAQ,MAAM,SACtD,CAAC,CAAC,YACT,cAAc,KAAK,MAAM,SAAS;EAAA;CACpC;CAKN,OAAO;AACT;AAEA,MAAM,iBAAmD,GAAG,MAAM;CAChE,OAAO,EAAE,SAAS,CAAC,CAAC,cAAc,EAAE,SAAS,CAAC;AAChD"}
1
+ {"version":3,"file":"changes.cjs","names":["getInstanceData","getField","notLoadedValue","isEntity","isId","getEmInternalApi","getMetadata","isChangeableField","assertNever"],"sources":["../src/changes.ts"],"sourcesContent":["import { getInstanceData } from \"src/BaseEntity.ts\";\nimport { type Entity } from \"src/Entity.ts\";\nimport { type IdOf } from \"src/EntityManager.ts\";\nimport { getField, isChangeableField } from \"src/fields.ts\";\nimport type { JoinColumnValue, JoinRows } from \"src/flush/JoinRows.ts\";\nimport {\n type Field,\n type ManyToManyCollection,\n type OneToManyCollection,\n type RelationsOf,\n assertNever,\n getEmInternalApi,\n getMetadata,\n isEntity,\n isId,\n} from \"src/index.ts\";\nimport { type EnumCollectionImpl } from \"src/relations/EnumCollection.ts\";\nimport { notLoadedValue } from \"src/relations/LazyField.ts\";\nimport { type FieldsOf, type OptsOf } from \"src/typeMap.ts\";\n\n/** Exposes a field's changed/original value in each entity's `this.changes` property. */\nexport interface FieldStatus<T> {\n /** True if the field has been changed on either create or update. */\n hasChanged: boolean;\n /** True only if the field has been updated i.e. not on the initial create. */\n hasUpdated: boolean;\n /** The original value, will be `undefined` if the entity new. */\n originalValue?: T;\n}\n\n/**\n * Provides a base class for field/primitive & m2o status impls.\n *\n * We use a separate base class so that the primitive & m2o subtypes can have their own\n * `kind: ...` consts, that if the m2o just subtyped the primitive directly, wouldn't be\n * allowed.\n */\nabstract class BaseFieldStatusImpl<T> {\n entity: Entity;\n fieldName: string;\n\n constructor(entity: Entity, fieldName: string) {\n this.entity = entity;\n this.fieldName = fieldName;\n }\n\n get originalValue(): T | undefined {\n const { originalData, data } = getInstanceData(this.entity);\n // If `p` is in originalData, always respect that, even if it's undefined\n const value =\n this.fieldName in originalData ? originalData[this.fieldName] : getField(this.entity, this.fieldName as any);\n // An unloaded lazy column's original value is unknown\n return value === notLoadedValue ? undefined : value;\n }\n\n get hasChanged(): boolean {\n const { originalData, data } = getInstanceData(this.entity);\n // Use `__orm.data[p] !== undefined` instead of `p in entity.__orm.data` because if a new (or cloned) entity\n // sets-then-unsets a value, it will return to `undefined` but still be present in `__orm.data`.\n return this.entity.isNewEntity ? data[this.fieldName] !== undefined : this.fieldName in originalData;\n }\n\n get hasUpdated(): boolean {\n const { originalData } = getInstanceData(this.entity);\n return !this.entity.isNewEntity && this.fieldName in originalData;\n }\n}\n\n/** Field status for primitive, enum, & primary key columns. */\nexport interface PrimitiveFieldStatus<T> extends FieldStatus<T> {\n kind: \"field\";\n}\n\n/** Implements the primitive field status, by extend base & just adding our `kind` const. */\nclass PrimitiveFieldStatusImpl<T> extends BaseFieldStatusImpl<T> implements PrimitiveFieldStatus<T> {\n kind = \"field\" as const;\n}\n\n/** Implements the m2o field status, by extend base, & adding `originalEntity`. */\nclass ManyToOneFieldStatusImpl<T extends Entity>\n extends BaseFieldStatusImpl<IdOf<T>>\n implements ManyToOneFieldStatus<T>\n{\n kind = \"m2o\" as const;\n\n /**\n * Returns our original entity's `id`.\n *\n * We can know `originalValue` has an `id` available (i.e. is not new), b/c original values defacto\n * came from the database.\n *\n * We also return the id so that `entity.changes.m2oField.originalValue` has a consistent API,\n * regardless of whether the `entity.m2oField` itself is loaded or unloaded.\n */\n get originalValue() {\n const originalValue = super.originalValue;\n return isEntity(originalValue) ? (originalValue.id as IdOf<T>) : originalValue;\n }\n\n /** Returns the original entity instance, which may not be loaded into memory yet, or undefined. */\n get originalEntity(): Promise<T | undefined> {\n const originalValue = this.originalValue;\n if (isId(originalValue)) {\n return this.entity.em.load(originalValue) as Promise<T>;\n } else {\n return Promise.resolve(undefined);\n }\n }\n}\n\n/** Provides a m2o/reference field's changed/original value in the entity's `this.changes` property. */\nexport interface ManyToOneFieldStatus<T extends Entity> extends FieldStatus<IdOf<T>> {\n kind: \"m2o\";\n /** The original entity, will be `undefined` if the entity new or the m2o was `null`. */\n originalEntity: Promise<T | undefined>;\n}\n\n/** Provides a m2m relation's added/removed/changed/original values. */\nexport interface ManyToManyFieldStatus<U extends Entity> {\n kind: \"m2m\";\n added: U[];\n removed: U[];\n changed: U[];\n hasChanged: boolean;\n hasUpdated: boolean;\n originalEntities: Promise<readonly U[]>;\n}\n\nclass ManyToManyFieldStatusImpl<T extends Entity, U extends Entity> implements ManyToManyFieldStatus<U> {\n readonly kind = \"m2m\";\n readonly #entity: T;\n readonly #m2m: ManyToManyCollection<T, any>;\n readonly #joinRows: JoinRows;\n\n constructor(entity: T, fieldName: keyof T) {\n this.#entity = entity;\n this.#m2m = entity[fieldName] as ManyToManyCollection<T, any>;\n this.#joinRows = getEmInternalApi(entity.em).joinRows(this.#m2m);\n }\n\n // Similar to the o2m.added/removed methods, these don't have to be async because currently\n // any m2m mutation requires having both entities in-memory anyway, i.e. we can't do id-only/unloaded\n // mutation of m2m relations.\n get added(): U[] {\n return this.#added.sort(entityCompare);\n }\n\n get removed(): U[] {\n return this.#removed.sort(entityCompare);\n }\n\n get changed(): U[] {\n return [...this.#added, ...this.#removed].sort(entityCompare);\n }\n\n get hasChanged(): boolean {\n // Calculating `changed: U[]` can be expensive if we sort, so just look at added/removed\n return this.#added.length > 0 || this.#removed.length > 0;\n }\n\n get hasUpdated(): boolean {\n return !this.#entity.isNewEntity && this.hasChanged;\n }\n\n get originalEntities(): Promise<readonly U[]> {\n return this.#m2m.load().then((list) => {\n const set = new Set(this.added);\n const copy = list.filter((e) => !set.has(e));\n copy.push(...this.removed);\n return copy.sort(entityCompare);\n });\n }\n\n get #added(): U[] {\n return this.#joinRows.addedFor(this.#m2m, this.#entity) as U[];\n }\n\n get #removed(): U[] {\n return this.#joinRows.removedFor(this.#m2m, this.#entity) as U[];\n }\n}\n\n/** Provides an enum m2m's added/removed/changed/original codes (e.g. `Publisher.logoColors`). */\nexport interface EnumCollectionFieldStatus<E> {\n kind: \"m2mEnum\";\n added: E[];\n removed: E[];\n changed: E[];\n hasChanged: boolean;\n hasUpdated: boolean;\n originalValues: Promise<readonly E[]>;\n}\n\nclass EnumCollectionFieldStatusImpl<T extends Entity, E> implements EnumCollectionFieldStatus<E> {\n readonly kind = \"m2mEnum\";\n readonly #entity: T;\n readonly #collection: EnumCollectionImpl<T, E>;\n readonly #joinRows: JoinRows;\n\n constructor(entity: T, fieldName: keyof T) {\n this.#entity = entity;\n this.#collection = entity[fieldName] as EnumCollectionImpl<T, E>;\n this.#joinRows = getEmInternalApi(entity.em).joinRows(this.#collection);\n }\n\n get added(): E[] {\n return this.#toCodes(this.#joinRows.addedFor(this.#collection, this.#entity));\n }\n\n get removed(): E[] {\n return this.#toCodes(this.#joinRows.removedFor(this.#collection, this.#entity));\n }\n\n get changed(): E[] {\n return [...this.added, ...this.removed];\n }\n\n get hasChanged(): boolean {\n return this.added.length > 0 || this.removed.length > 0;\n }\n\n get hasUpdated(): boolean {\n return !this.#entity.isNewEntity && this.hasChanged;\n }\n\n get originalValues(): Promise<readonly E[]> {\n // `load()` ensures the persisted (db) rows are in memory, then diff out our pending changes.\n return this.#collection.load().then((codes) => {\n const added = new Set(this.added);\n const enumDetail = this.#collection.otherEnum;\n return [...codes.filter((c) => !added.has(c)), ...this.removed].sort(\n (a, b) => enumDetail.getByCode(a).id - enumDetail.getByCode(b).id,\n );\n });\n }\n\n /** Maps the join rows' enum ids to codes, sorted by enum id for a stable order. */\n #toCodes(ids: JoinColumnValue[]): E[] {\n const enumDetail = this.#collection.otherEnum;\n return (ids as number[]).sort((a, b) => a - b).map((id) => enumDetail.findById(id)!.code as E);\n }\n}\n\nexport interface OneToManyFieldStatus<U extends Entity> {\n kind: \"o2m\";\n added: U[];\n removed: U[];\n changed: U[];\n hasChanged: boolean;\n hasUpdated: boolean;\n originalEntities: Promise<readonly U[]>;\n}\n\n/** Provides access to an o2m relation's added/removed/changed entities. */\nclass OneToManyFieldStatusImpl<T extends Entity, U extends Entity> implements OneToManyFieldStatus<U> {\n readonly kind = \"o2m\";\n readonly #entity: T;\n readonly #o2m: OneToManyCollection<T, U>;\n\n constructor(entity: T, fieldName: keyof T) {\n this.#entity = entity;\n this.#o2m = entity[fieldName] as OneToManyCollection<T, U>;\n }\n\n // This doesn't have to be a promise, b/c even if o2m is unloaded, to mutate\n // the o2m (calling `add(other)` or `remove(other)` or `other.otherField = me`), all\n // require having the \"other entity\" in memory.\n get added(): U[] {\n return this.#added.sort(entityCompare);\n }\n\n get removed(): U[] {\n return this.#removed.sort(entityCompare);\n }\n\n get changed(): U[] {\n return [...this.added, ...this.removed].sort(entityCompare);\n }\n\n get hasChanged(): boolean {\n // Calculating `changed: U[]` can be expensive if we sort, so just look at added/removed\n return this.#added.length > 0 || this.#removed.length > 0;\n }\n\n get hasUpdated(): boolean {\n return !this.#entity.isNewEntity && this.hasChanged;\n }\n\n get originalEntities(): Promise<readonly U[]> {\n return this.#o2m.load().then((list) => {\n const set = new Set(this.added);\n const copy = list.filter((e) => !set.has(e));\n copy.push(...this.removed);\n return copy.sort(entityCompare);\n });\n }\n\n // This doesn't have to be a promise, b/c even if o2m is unloaded, to mutate\n // the o2m (calling `add(other)` or `remove(other)` or `other.otherField = me`), all\n // require having the \"other entity\" in memory.\n get #added(): U[] {\n return [\n ...this.#o2m.added(),\n ...(this.#entity.isNewEntity\n ? []\n : ((getEmInternalApi(this.#entity.em).pendingPercolate.get(this.#entity.idTagged)?.get(this.#o2m.fieldName)\n ?.adds as U[]) ?? [])),\n ];\n }\n\n get #removed(): U[] {\n return [\n ...this.#o2m.removed(),\n ...(this.#entity.isNewEntity\n ? []\n : ((getEmInternalApi(this.#entity.em).pendingPercolate.get(this.#entity.idTagged)?.get(this.#o2m.fieldName)\n ?.removes as U[]) ?? [])),\n ];\n }\n}\n\n/**\n * Creates the `this.changes.firstName` changes API for a given entity `T`.\n *\n * We use `FieldsOf` because that already excludes collection, and then also\n * convert reference fields to `ManyToOneFieldStatus` to be the id type\n * because the reference may not be loaded.\n *\n * @typeParam K The fields of the entity, or potentially the union of the entity and its subtypes,\n * i.e. `Publisher.changes` is typed as `Changes<Publisher, keyof Publisher | keyof SmallPub | keyof LargePub>`\n * @typeParam R An optional list of restrictions, i.e for `Reacted` for to provide `changes` to its subset of fields.\n */\nexport type Changes<T extends Entity, K = keyof (FieldsOf<T> & RelationsOf<T>), R = K> = {\n /** Array of changed field names. */\n fields: NonNullable<K>[];\n /** Array of changed field names w/o o2m & m2m relations (which can be expensive). */\n fieldsWithoutRelations: NonNullable<K>[];\n} & {\n // The o2o branch is `never`: the FK lives on the other entity, so changes never track o2o fields.\n // (The exclusion must stay in the value position: a conditional in the `[P in ...]` clause defers on\n // a generic `T` and collapses `keyof Changes<T>` at inference time, i.e. in `cannotBeUpdated` calls.)\n [P in keyof FieldsOf<T> & R]: FieldsOf<T>[P] extends { kind: \"m2m\"; type: infer U extends Entity }\n ? ManyToManyFieldStatus<U>\n : FieldsOf<T>[P] extends { kind: \"m2mEnum\"; type: infer E }\n ? EnumCollectionFieldStatus<E>\n : FieldsOf<T>[P] extends { kind: \"o2m\"; type: infer U extends Entity }\n ? OneToManyFieldStatus<U>\n : FieldsOf<T>[P] extends { kind: \"o2o\" }\n ? never\n : FieldsOf<T>[P] extends { type: (infer U) | undefined }\n ? U extends Entity\n ? ManyToOneFieldStatus<U>\n : PrimitiveFieldStatus<U>\n : never;\n};\n\n// type A1 = never extends string ? 1 : 2;\n// type A2 = Book extends Entity | undefined ? 1 : 2;\n// type A2a = string extends Entity | string | undefined ? 1 : 2;\n// type A3 = Book | undefined extends Entity ? 1 : 2;\n// type A4 = Book | undefined | null extends (infer E extends Entity) | undefined | null ? E : 2;\n\n/**\n * A strongly-typed Entity with its changes field.\n *\n * Ideally this would live on `Entity` directly, but results in circular type issues.\n */\nexport interface EntityChanges<T extends Entity> {\n changes: Changes<T>;\n}\n\nexport function newChangesProxy<T extends Entity>(entity: T): Changes<T> {\n return new Proxy(entity, {\n get(\n target,\n p: PropertyKey & string,\n ):\n | FieldStatus<any>\n | ManyToOneFieldStatus<any>\n | ManyToManyFieldStatus<any>\n | OneToManyFieldStatus<any>\n | (keyof OptsOf<T>)[] {\n if (p === \"fields\") {\n return getChangedFieldNames(entity, true);\n } else if (p === \"fieldsWithoutRelations\") {\n return getChangedFieldNames(entity, false);\n } else if (typeof p === \"symbol\") {\n throw new Error(`Unsupported call to ${String(p)}`);\n }\n const kind = getMetadata(entity).allFields[p]?.kind;\n if (kind === \"m2m\") {\n return new ManyToManyFieldStatusImpl(entity, p as keyof T);\n } else if (kind === \"m2mEnum\") {\n return new EnumCollectionFieldStatusImpl(entity, p as keyof T);\n } else if (kind === \"o2m\") {\n return new OneToManyFieldStatusImpl(entity, p as keyof T);\n } else if (!isChangeableField(entity, p as any)) {\n throw new Error(`Invalid changes field ${p}`);\n } else if (kind === \"m2o\" || kind === \"poly\") {\n return new ManyToOneFieldStatusImpl(entity, p);\n } else if (kind === \"enum\" || kind === \"primitive\" || kind === \"primaryKey\") {\n return new PrimitiveFieldStatusImpl(entity, p);\n } else if (kind === \"lo2m\" || kind === \"o2o\") {\n throw new Error(`changes are not supported for ${kind} ${p}`);\n } else {\n return assertNever(kind);\n }\n },\n }) as any;\n}\n\nconst addOriginalEntity: Record<Field[\"kind\"], boolean> = {\n m2o: true,\n poly: true,\n m2mEnum: false,\n enum: false,\n lo2m: false,\n m2m: false,\n o2m: false,\n o2o: false,\n primaryKey: false,\n primitive: false,\n};\n\n/** Scans `entity` for changes primitive + m2m/o2m fields. */\nfunction getChangedFieldNames<T extends Entity>(entity: T, includeRelations: boolean): (keyof OptsOf<T>)[] {\n const fieldsChanged = entity.isNewEntity\n ? // Cloning sometimes leaves unset keys in data as undefined, so drop them\n Object.entries(getInstanceData(entity).data)\n .filter(([, value]) => value !== undefined)\n .map(([key]) => key)\n : Object.keys(getInstanceData(entity).originalData);\n\n // Calling `hasChanged` on these can be expensive, and we call this in a loop during em.flush\n if (includeRelations) {\n for (const field of Object.values(getMetadata(entity).allFields)) {\n if (field.kind === \"m2m\") {\n const status = new ManyToManyFieldStatusImpl(entity, field.fieldName as keyof T);\n if (status.hasChanged) {\n fieldsChanged.push(field.fieldName);\n }\n } else if (field.kind === \"o2m\") {\n const status = new OneToManyFieldStatusImpl(entity, field.fieldName as keyof T);\n if (status.hasChanged) {\n fieldsChanged.push(field.fieldName);\n }\n } else if (field.kind === \"m2mEnum\") {\n const status = new EnumCollectionFieldStatusImpl(entity, field.fieldName as keyof T);\n if (status.hasChanged) {\n fieldsChanged.push(field.fieldName);\n }\n }\n }\n }\n\n return fieldsChanged as any;\n}\n\nconst entityCompare: (a: Entity, b: Entity) => number = (a, b) => {\n return a.toString().localeCompare(b.toString());\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAqCA,IAAe,sBAAf,MAAsC;CACpC;CACA;CAEA,YAAY,QAAgB,WAAmB;EAC7C,KAAK,SAAS;EACd,KAAK,YAAY;CACnB;CAEA,IAAI,gBAA+B;EACjC,MAAM,EAAE,cAAc,SAASA,mBAAAA,gBAAgB,KAAK,MAAM;EAE1D,MAAM,QACJ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IAAI,yBAAyB,QAAQ,CAAC;OACxC,IAAI,SAAS,UAAU,SAAS,eAAe,SAAS,cAC7D,OAAO,IAAI,yBAAyB,QAAQ,CAAC;OACxC,IAAI,SAAS,UAAU,SAAS,OACrC,MAAM,IAAI,MAAM,iCAAiC,KAAK,GAAG,GAAG;OAE5D,OAAOC,cAAAA,YAAY,IAAI;CAE3B,EACF,CAAC;AACH;;AAgBA,SAAS,qBAAuC,QAAW,kBAAgD;CACzG,MAAM,gBAAgB,OAAO,cAEzB,OAAO,QAAQR,mBAAAA,gBAAgB,MAAM,CAAC,CAAC,IAAI,CAAC,CACzC,QAAQ,GAAG,WAAW,UAAU,KAAA,CAAS,CAAC,CAC1C,KAAK,CAAC,SAAS,GAAG,IACrB,OAAO,KAAKA,mBAAAA,gBAAgB,MAAM,CAAC,CAAC,YAAY;CAGpD,IAAI,kBACG;OAAA,MAAM,SAAS,OAAO,OAAOM,uBAAAA,YAAY,MAAM,CAAC,CAAC,SAAS,GAC7D,IAAI,MAAM,SAAS,OAEb;OAAA,IADe,0BAA0B,QAAQ,MAAM,SAClD,CAAC,CAAC,YACT,cAAc,KAAK,MAAM,SAAS;EAAA,OAE/B,IAAI,MAAM,SAAS,OAEpB;OAAA,IADe,yBAAyB,QAAQ,MAAM,SACjD,CAAC,CAAC,YACT,cAAc,KAAK,MAAM,SAAS;EAAA,OAE/B,IAAI,MAAM,SAAS,WAEpB;OAAA,IADe,8BAA8B,QAAQ,MAAM,SACtD,CAAC,CAAC,YACT,cAAc,KAAK,MAAM,SAAS;EAAA;CACpC;CAKN,OAAO;AACT;AAEA,MAAM,iBAAmD,GAAG,MAAM;CAChE,OAAO,EAAE,SAAS,CAAC,CAAC,cAAc,EAAE,SAAS,CAAC;AAChD"}
@@ -4,7 +4,7 @@ import { IdOf } from "./EntityManager.cjs";
4
4
  import { Entity } from "./Entity.cjs";
5
5
  //#region src/changes.d.ts
6
6
  /** Exposes a field's changed/original value in each entity's `this.changes` property. */
7
- interface FieldStatus<T> {
7
+ export interface FieldStatus<T> {
8
8
  /** True if the field has been changed on either create or update. */
9
9
  hasChanged: boolean;
10
10
  /** True only if the field has been updated i.e. not on the initial create. */
@@ -13,17 +13,17 @@ interface FieldStatus<T> {
13
13
  originalValue?: T;
14
14
  }
15
15
  /** Field status for primitive, enum, & primary key columns. */
16
- interface PrimitiveFieldStatus<T> extends FieldStatus<T> {
16
+ export interface PrimitiveFieldStatus<T> extends FieldStatus<T> {
17
17
  kind: "field";
18
18
  }
19
19
  /** Provides a m2o/reference field's changed/original value in the entity's `this.changes` property. */
20
- interface ManyToOneFieldStatus<T extends Entity> extends FieldStatus<IdOf<T>> {
20
+ export interface ManyToOneFieldStatus<T extends Entity> extends FieldStatus<IdOf<T>> {
21
21
  kind: "m2o";
22
22
  /** The original entity, will be `undefined` if the entity new or the m2o was `null`. */
23
23
  originalEntity: Promise<T | undefined>;
24
24
  }
25
25
  /** Provides a m2m relation's added/removed/changed/original values. */
26
- interface ManyToManyFieldStatus<U extends Entity> {
26
+ export interface ManyToManyFieldStatus<U extends Entity> {
27
27
  kind: "m2m";
28
28
  added: U[];
29
29
  removed: U[];
@@ -33,7 +33,7 @@ interface ManyToManyFieldStatus<U extends Entity> {
33
33
  originalEntities: Promise<readonly U[]>;
34
34
  }
35
35
  /** Provides an enum m2m's added/removed/changed/original codes (e.g. `Publisher.logoColors`). */
36
- interface EnumCollectionFieldStatus<E> {
36
+ export interface EnumCollectionFieldStatus<E> {
37
37
  kind: "m2mEnum";
38
38
  added: E[];
39
39
  removed: E[];
@@ -42,7 +42,7 @@ interface EnumCollectionFieldStatus<E> {
42
42
  hasUpdated: boolean;
43
43
  originalValues: Promise<readonly E[]>;
44
44
  }
45
- interface OneToManyFieldStatus<U extends Entity> {
45
+ export interface OneToManyFieldStatus<U extends Entity> {
46
46
  kind: "o2m";
47
47
  added: U[];
48
48
  removed: U[];
@@ -62,7 +62,7 @@ interface OneToManyFieldStatus<U extends Entity> {
62
62
  * i.e. `Publisher.changes` is typed as `Changes<Publisher, keyof Publisher | keyof SmallPub | keyof LargePub>`
63
63
  * @typeParam R An optional list of restrictions, i.e for `Reacted` for to provide `changes` to its subset of fields.
64
64
  */
65
- type Changes<T extends Entity, K = keyof (FieldsOf<T> & RelationsOf<T>), R = K> = {
65
+ export type Changes<T extends Entity, K = keyof (FieldsOf<T> & RelationsOf<T>), R = K> = {
66
66
  /** Array of changed field names. */
67
67
  fields: NonNullable<K>[];
68
68
  /** Array of changed field names w/o o2m & m2m relations (which can be expensive). */
@@ -86,10 +86,9 @@ type Changes<T extends Entity, K = keyof (FieldsOf<T> & RelationsOf<T>), R = K>
86
86
  *
87
87
  * Ideally this would live on `Entity` directly, but results in circular type issues.
88
88
  */
89
- interface EntityChanges<T extends Entity> {
89
+ export interface EntityChanges<T extends Entity> {
90
90
  changes: Changes<T>;
91
91
  }
92
- declare function newChangesProxy<T extends Entity>(entity: T): Changes<T>;
92
+ export declare function newChangesProxy<T extends Entity>(entity: T): Changes<T>;
93
93
  //#endregion
94
- export { Changes, EntityChanges, EnumCollectionFieldStatus, FieldStatus, ManyToManyFieldStatus, ManyToOneFieldStatus, OneToManyFieldStatus, PrimitiveFieldStatus, newChangesProxy };
95
94
  //# sourceMappingURL=changes.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"changes.d.cts","names":[],"sources":["../src/changes.ts"],"mappings":";;;;;;UAqBiB,YAAY;;EAE3B;;EAEA;;EAEA,gBAAgB;;;UA0CD,qBAAqB,WAAW,YAAY;EAC3D;;;UAyCe,qBAAqB,UAAU,gBAAgB,YAAY,KAAK;EAC/E;;EAEA,gBAAgB,QAAQ;;;UAIT,sBAAsB,UAAU;EAC/C;EACA,OAAO;EACP,SAAS;EACT,SAAS;EACT;EACA;EACA,kBAAkB,iBAAiB;;;UA0DpB,0BAA0B;EACzC;EACA,OAAO;EACP,SAAS;EACT,SAAS;EACT;EACA;EACA,gBAAgB,iBAAiB;;UAqDlB,qBAAqB,UAAU;EAC9C;EACA,O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AG;EAAa;EAAa,YAAY,UAAU;IACtF,sBAAsB,KACtB,SAAS,GAAG;EAAa;EAAiB,YAAY;IACpD,0BAA0B,KAC1B,SAAS,GAAG;EAAa;EAAa,YAAY,UAAU;IAC1D,qBAAqB,KACrB,SAAS,GAAG;EAAa;YAEvB,SAAS,GAAG;EAAa,aAAa;IACpC,UAAU,SACR,qBAAqB,KACrB,qBAAqB;;;;;;iBAepB,cAAc,UAAU;EACvC,SAAS,QAAQ;;wBAGH,gBAAgB,UAAU,QAAQ,QAAQ,IAAI,QAAQ"}
@@ -4,7 +4,7 @@ import { IdOf } from "./EntityManager.mjs";
4
4
  import { Entity } from "./Entity.mjs";
5
5
  //#region src/changes.d.ts
6
6
  /** Exposes a field's changed/original value in each entity's `this.changes` property. */
7
- interface FieldStatus<T> {
7
+ export interface FieldStatus<T> {
8
8
  /** True if the field has been changed on either create or update. */
9
9
  hasChanged: boolean;
10
10
  /** True only if the field has been updated i.e. not on the initial create. */
@@ -13,17 +13,17 @@ interface FieldStatus<T> {
13
13
  originalValue?: T;
14
14
  }
15
15
  /** Field status for primitive, enum, & primary key columns. */
16
- interface PrimitiveFieldStatus<T> extends FieldStatus<T> {
16
+ export interface PrimitiveFieldStatus<T> extends FieldStatus<T> {
17
17
  kind: "field";
18
18
  }
19
19
  /** Provides a m2o/reference field's changed/original value in the entity's `this.changes` property. */
20
- interface ManyToOneFieldStatus<T extends Entity> extends FieldStatus<IdOf<T>> {
20
+ export interface ManyToOneFieldStatus<T extends Entity> extends FieldStatus<IdOf<T>> {
21
21
  kind: "m2o";
22
22
  /** The original entity, will be `undefined` if the entity new or the m2o was `null`. */
23
23
  originalEntity: Promise<T | undefined>;
24
24
  }
25
25
  /** Provides a m2m relation's added/removed/changed/original values. */
26
- interface ManyToManyFieldStatus<U extends Entity> {
26
+ export interface ManyToManyFieldStatus<U extends Entity> {
27
27
  kind: "m2m";
28
28
  added: U[];
29
29
  removed: U[];
@@ -33,7 +33,7 @@ interface ManyToManyFieldStatus<U extends Entity> {
33
33
  originalEntities: Promise<readonly U[]>;
34
34
  }
35
35
  /** Provides an enum m2m's added/removed/changed/original codes (e.g. `Publisher.logoColors`). */
36
- interface EnumCollectionFieldStatus<E> {
36
+ export interface EnumCollectionFieldStatus<E> {
37
37
  kind: "m2mEnum";
38
38
  added: E[];
39
39
  removed: E[];
@@ -42,7 +42,7 @@ interface EnumCollectionFieldStatus<E> {
42
42
  hasUpdated: boolean;
43
43
  originalValues: Promise<readonly E[]>;
44
44
  }
45
- interface OneToManyFieldStatus<U extends Entity> {
45
+ export interface OneToManyFieldStatus<U extends Entity> {
46
46
  kind: "o2m";
47
47
  added: U[];
48
48
  removed: U[];
@@ -62,7 +62,7 @@ interface OneToManyFieldStatus<U extends Entity> {
62
62
  * i.e. `Publisher.changes` is typed as `Changes<Publisher, keyof Publisher | keyof SmallPub | keyof LargePub>`
63
63
  * @typeParam R An optional list of restrictions, i.e for `Reacted` for to provide `changes` to its subset of fields.
64
64
  */
65
- type Changes<T extends Entity, K = keyof (FieldsOf<T> & RelationsOf<T>), R = K> = {
65
+ export type Changes<T extends Entity, K = keyof (FieldsOf<T> & RelationsOf<T>), R = K> = {
66
66
  /** Array of changed field names. */
67
67
  fields: NonNullable<K>[];
68
68
  /** Array of changed field names w/o o2m & m2m relations (which can be expensive). */
@@ -86,10 +86,9 @@ type Changes<T extends Entity, K = keyof (FieldsOf<T> & RelationsOf<T>), R = K>
86
86
  *
87
87
  * Ideally this would live on `Entity` directly, but results in circular type issues.
88
88
  */
89
- interface EntityChanges<T extends Entity> {
89
+ export interface EntityChanges<T extends Entity> {
90
90
  changes: Changes<T>;
91
91
  }
92
- declare function newChangesProxy<T extends Entity>(entity: T): Changes<T>;
92
+ export declare function newChangesProxy<T extends Entity>(entity: T): Changes<T>;
93
93
  //#endregion
94
- export { Changes, EntityChanges, EnumCollectionFieldStatus, FieldStatus, ManyToManyFieldStatus, ManyToOneFieldStatus, OneToManyFieldStatus, PrimitiveFieldStatus, newChangesProxy };
95
94
  //# sourceMappingURL=changes.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"changes.d.mts","names":[],"sources":["../src/changes.ts"],"mappings":";;;;;;UAqBiB,YAAY;;EAE3B;;EAEA;;EAEA,gBAAgB;;;UA0CD,qBAAqB,WAAW,YAAY;EAC3D;;;UAyCe,qBAAqB,UAAU,gBAAgB,YAAY,KAAK;EAC/E;;EAEA,gBAAgB,QAAQ;;;UAIT,sBAAsB,UAAU;EAC/C;EACA,OAAO;EACP,SAAS;EACT,SAAS;EACT;EACA;EACA,kBAAkB,iBAAiB;;;UA0DpB,0BAA0B;EACzC;EACA,OAAO;EACP,SAAS;EACT,SAAS;EACT;EACA;EACA,gBAAgB,iBAAiB;;UAqDlB,qBAAqB,UAAU;EAC9C;EACA,OAAO;EACP,SAAS;EACT,SAAS;EACT;EACA;EACA,kBAAkB,iBAAiB;;;;;;;;;;;;;KAkFzB,QAAQ,UAAU,QAAQ,WAAW,SAAS,KAAK,YAAY,KAAK,IAAI;;EAElF,QAAQ,YAAY;;EAEpB,wBAAwB,YAAY;OAKnC,WAAW,SAAS,KAAK,IAAI,SAAS,GAAG;EAAa;EAAa,YAAY,UAAU;IACtF,sBAAsB,KACtB,SAAS,GAAG;EAAa;EAAiB,YAAY;IACpD,0BAA0B,KAC1B,SAAS,GAAG;EAAa;EAAa,YAAY,UAAU;IAC1D,qBAAqB,KACrB,SAAS,GAAG;EAAa;YAEvB,SAAS,GAAG;EAAa,aAAa;IACpC,UAAU,SACR,qBAAqB,KACrB,qBAAqB;;;;;;UAepB,cAAc,UAAU;EACvC,SAAS,QAAQ;;iBAGH,gBAAgB,UAAU,QAAQ,QAAQ,IAAI,QAAQ"}
1
+ {"version":3,"file":"changes.d.mts","names":[],"sources":["../src/changes.ts"],"mappings":";;;;;;iBAqBiB,YAAY;;EAE3B;;EAEA;;EAEA,gBAAgB;;;iBA0CD,qBAAqB,WAAW,YAAY;EAC3D;;;iBAyCe,qBAAqB,UAAU,gB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