@cratis/chronicle 6.59.0 → 6.61.0

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 (525) hide show
  1. package/ChronicleClient.ts +1 -1
  2. package/ChronicleOptions.ts +11 -0
  3. package/EventStore.ts +9 -1
  4. package/IEventStore.ts +7 -0
  5. package/README.md +1 -1
  6. package/artifacts/DefaultClientArtifactsProvider.ts +13 -1
  7. package/artifacts/IClientArtifactsProvider.ts +6 -0
  8. package/dist/ChronicleClient.js +1 -1
  9. package/dist/ChronicleClient.js.map +1 -1
  10. package/dist/ChronicleOptions.d.ts +7 -0
  11. package/dist/ChronicleOptions.d.ts.map +1 -1
  12. package/dist/ChronicleOptions.js +8 -0
  13. package/dist/ChronicleOptions.js.map +1 -1
  14. package/dist/EventStore.d.ts +3 -1
  15. package/dist/EventStore.d.ts.map +1 -1
  16. package/dist/EventStore.js +7 -1
  17. package/dist/EventStore.js.map +1 -1
  18. package/dist/IEventStore.d.ts +6 -0
  19. package/dist/IEventStore.d.ts.map +1 -1
  20. package/dist/artifacts/DefaultClientArtifactsProvider.d.ts +4 -0
  21. package/dist/artifacts/DefaultClientArtifactsProvider.d.ts.map +1 -1
  22. package/dist/artifacts/DefaultClientArtifactsProvider.js +11 -1
  23. package/dist/artifacts/DefaultClientArtifactsProvider.js.map +1 -1
  24. package/dist/artifacts/IClientArtifactsProvider.d.ts +4 -0
  25. package/dist/artifacts/IClientArtifactsProvider.d.ts.map +1 -1
  26. package/dist/projections/ChildrenOrderingNotSupportedByContracts.d.ts +15 -0
  27. package/dist/projections/ChildrenOrderingNotSupportedByContracts.d.ts.map +1 -0
  28. package/dist/projections/ChildrenOrderingNotSupportedByContracts.js +22 -0
  29. package/dist/projections/ChildrenOrderingNotSupportedByContracts.js.map +1 -0
  30. package/dist/projections/InvalidCausedByProperty.d.ts +10 -0
  31. package/dist/projections/InvalidCausedByProperty.d.ts.map +1 -0
  32. package/dist/projections/InvalidCausedByProperty.js +16 -0
  33. package/dist/projections/InvalidCausedByProperty.js.map +1 -0
  34. package/dist/projections/Projections.d.ts.map +1 -1
  35. package/dist/projections/Projections.js +7 -30
  36. package/dist/projections/Projections.js.map +1 -1
  37. package/dist/projections/causedBy.d.ts +15 -0
  38. package/dist/projections/causedBy.d.ts.map +1 -0
  39. package/dist/projections/causedBy.js +24 -0
  40. package/dist/projections/causedBy.js.map +1 -0
  41. package/dist/projections/childrenOrdering.d.ts +38 -0
  42. package/dist/projections/childrenOrdering.d.ts.map +1 -0
  43. package/dist/projections/childrenOrdering.js +37 -0
  44. package/dist/projections/childrenOrdering.js.map +1 -0
  45. package/dist/projections/childrenOrderingSupport.d.ts +14 -0
  46. package/dist/projections/childrenOrderingSupport.d.ts.map +1 -0
  47. package/dist/projections/childrenOrderingSupport.js +37 -0
  48. package/dist/projections/childrenOrderingSupport.js.map +1 -0
  49. package/dist/projections/declarative/AllSetBuilder.d.ts +3 -0
  50. package/dist/projections/declarative/AllSetBuilder.d.ts.map +1 -1
  51. package/dist/projections/declarative/AllSetBuilder.js +6 -0
  52. package/dist/projections/declarative/AllSetBuilder.js.map +1 -1
  53. package/dist/projections/declarative/ChildrenBuilder.d.ts +9 -0
  54. package/dist/projections/declarative/ChildrenBuilder.d.ts.map +1 -1
  55. package/dist/projections/declarative/ChildrenBuilder.js +29 -1
  56. package/dist/projections/declarative/ChildrenBuilder.js.map +1 -1
  57. package/dist/projections/declarative/ChildrenOrderingAlreadyDefined.d.ts +6 -0
  58. package/dist/projections/declarative/ChildrenOrderingAlreadyDefined.d.ts.map +1 -0
  59. package/dist/projections/declarative/ChildrenOrderingAlreadyDefined.js +11 -0
  60. package/dist/projections/declarative/ChildrenOrderingAlreadyDefined.js.map +1 -0
  61. package/dist/projections/declarative/DictionaryKey.d.ts +48 -0
  62. package/dist/projections/declarative/DictionaryKey.d.ts.map +1 -0
  63. package/dist/projections/declarative/DictionaryKey.js +82 -0
  64. package/dist/projections/declarative/DictionaryKey.js.map +1 -0
  65. package/dist/projections/declarative/FromAllBuilder.d.ts +2 -0
  66. package/dist/projections/declarative/FromAllBuilder.d.ts.map +1 -1
  67. package/dist/projections/declarative/FromAllBuilder.js +5 -0
  68. package/dist/projections/declarative/FromAllBuilder.js.map +1 -1
  69. package/dist/projections/declarative/FromBuilder.d.ts +18 -6
  70. package/dist/projections/declarative/FromBuilder.d.ts.map +1 -1
  71. package/dist/projections/declarative/FromBuilder.js +34 -31
  72. package/dist/projections/declarative/FromBuilder.js.map +1 -1
  73. package/dist/projections/declarative/FromEveryBuilder.d.ts +2 -0
  74. package/dist/projections/declarative/FromEveryBuilder.d.ts.map +1 -1
  75. package/dist/projections/declarative/FromEveryBuilder.js +7 -0
  76. package/dist/projections/declarative/FromEveryBuilder.js.map +1 -1
  77. package/dist/projections/declarative/IAllSetBuilder.d.ts +7 -0
  78. package/dist/projections/declarative/IAllSetBuilder.d.ts.map +1 -1
  79. package/dist/projections/declarative/IChildrenBuilder.d.ts +19 -0
  80. package/dist/projections/declarative/IChildrenBuilder.d.ts.map +1 -1
  81. package/dist/projections/declarative/IFromAllBuilder.d.ts +6 -0
  82. package/dist/projections/declarative/IFromAllBuilder.d.ts.map +1 -1
  83. package/dist/projections/declarative/IFromEveryBuilder.d.ts +6 -0
  84. package/dist/projections/declarative/IFromEveryBuilder.d.ts.map +1 -1
  85. package/dist/projections/declarative/IReadModelPropertiesBuilder.d.ts +37 -6
  86. package/dist/projections/declarative/IReadModelPropertiesBuilder.d.ts.map +1 -1
  87. package/dist/projections/declarative/ISetBuilder.d.ts +7 -0
  88. package/dist/projections/declarative/ISetBuilder.d.ts.map +1 -1
  89. package/dist/projections/declarative/InvalidDictionaryKey.d.ts +10 -0
  90. package/dist/projections/declarative/InvalidDictionaryKey.d.ts.map +1 -0
  91. package/dist/projections/declarative/InvalidDictionaryKey.js +16 -0
  92. package/dist/projections/declarative/InvalidDictionaryKey.js.map +1 -0
  93. package/dist/projections/declarative/JoinBuilder.d.ts +18 -6
  94. package/dist/projections/declarative/JoinBuilder.d.ts.map +1 -1
  95. package/dist/projections/declarative/JoinBuilder.js +34 -31
  96. package/dist/projections/declarative/JoinBuilder.js.map +1 -1
  97. package/dist/projections/declarative/ProjectionBuilderCore.d.ts +2 -0
  98. package/dist/projections/declarative/ProjectionBuilderCore.d.ts.map +1 -1
  99. package/dist/projections/declarative/ProjectionBuilderCore.js.map +1 -1
  100. package/dist/projections/declarative/SetBuilder.d.ts +3 -0
  101. package/dist/projections/declarative/SetBuilder.d.ts.map +1 -1
  102. package/dist/projections/declarative/SetBuilder.js +6 -0
  103. package/dist/projections/declarative/SetBuilder.js.map +1 -1
  104. package/dist/projections/declarative/index.d.ts +4 -0
  105. package/dist/projections/declarative/index.d.ts.map +1 -1
  106. package/dist/projections/declarative/index.js +3 -0
  107. package/dist/projections/declarative/index.js.map +1 -1
  108. package/dist/projections/for_Graphs/given/a_discovered_graph.d.ts +29 -0
  109. package/dist/projections/for_Graphs/given/a_discovered_graph.d.ts.map +1 -0
  110. package/dist/projections/for_Graphs/given/a_discovered_graph.js +19 -0
  111. package/dist/projections/for_Graphs/given/a_discovered_graph.js.map +1 -0
  112. package/dist/projections/for_Graphs/given/a_fake_connection.d.ts +24 -0
  113. package/dist/projections/for_Graphs/given/a_fake_connection.d.ts.map +1 -0
  114. package/dist/projections/for_Graphs/given/a_fake_connection.js +17 -0
  115. package/dist/projections/for_Graphs/given/a_fake_connection.js.map +1 -0
  116. package/dist/projections/for_Graphs/given/organization.d.ts +43 -0
  117. package/dist/projections/for_Graphs/given/organization.d.ts.map +1 -0
  118. package/dist/projections/for_Graphs/given/organization.js +84 -0
  119. package/dist/projections/for_Graphs/given/organization.js.map +1 -0
  120. package/dist/projections/graphs/EdgeCanHaveOnlyOneIdentifyingKey.d.ts +11 -0
  121. package/dist/projections/graphs/EdgeCanHaveOnlyOneIdentifyingKey.d.ts.map +1 -0
  122. package/dist/projections/graphs/EdgeCanHaveOnlyOneIdentifyingKey.js +16 -0
  123. package/dist/projections/graphs/EdgeCanHaveOnlyOneIdentifyingKey.js.map +1 -0
  124. package/dist/projections/graphs/EdgeMustHaveOneSourceAndOneTarget.d.ts +11 -0
  125. package/dist/projections/graphs/EdgeMustHaveOneSourceAndOneTarget.d.ts.map +1 -0
  126. package/dist/projections/graphs/EdgeMustHaveOneSourceAndOneTarget.js +16 -0
  127. package/dist/projections/graphs/EdgeMustHaveOneSourceAndOneTarget.js.map +1 -0
  128. package/dist/projections/graphs/GraphDeclaredMoreThanOnce.d.ts +11 -0
  129. package/dist/projections/graphs/GraphDeclaredMoreThanOnce.d.ts.map +1 -0
  130. package/dist/projections/graphs/GraphDeclaredMoreThanOnce.js +16 -0
  131. package/dist/projections/graphs/GraphDeclaredMoreThanOnce.js.map +1 -0
  132. package/dist/projections/graphs/GraphDefinitionBuilder.d.ts +24 -0
  133. package/dist/projections/graphs/GraphDefinitionBuilder.d.ts.map +1 -0
  134. package/dist/projections/graphs/GraphDefinitionBuilder.js +148 -0
  135. package/dist/projections/graphs/GraphDefinitionBuilder.js.map +1 -0
  136. package/dist/projections/graphs/GraphEdgeBuilder.d.ts +41 -0
  137. package/dist/projections/graphs/GraphEdgeBuilder.d.ts.map +1 -0
  138. package/dist/projections/graphs/GraphEdgeBuilder.js +94 -0
  139. package/dist/projections/graphs/GraphEdgeBuilder.js.map +1 -0
  140. package/dist/projections/graphs/GraphEdgeFromBuilder.d.ts +25 -0
  141. package/dist/projections/graphs/GraphEdgeFromBuilder.d.ts.map +1 -0
  142. package/dist/projections/graphs/GraphEdgeFromBuilder.js +37 -0
  143. package/dist/projections/graphs/GraphEdgeFromBuilder.js.map +1 -0
  144. package/dist/projections/graphs/GraphEdgeFromModel.d.ts +16 -0
  145. package/dist/projections/graphs/GraphEdgeFromModel.d.ts.map +1 -0
  146. package/dist/projections/graphs/GraphEdgeFromModel.js +4 -0
  147. package/dist/projections/graphs/GraphEdgeFromModel.js.map +1 -0
  148. package/dist/projections/graphs/GraphEdgeModel.d.ts +24 -0
  149. package/dist/projections/graphs/GraphEdgeModel.d.ts.map +1 -0
  150. package/dist/projections/graphs/GraphEdgeModel.js +4 -0
  151. package/dist/projections/graphs/GraphEdgeModel.js.map +1 -0
  152. package/dist/projections/graphs/GraphEdgeRemovedWithBuilder.d.ts +21 -0
  153. package/dist/projections/graphs/GraphEdgeRemovedWithBuilder.d.ts.map +1 -0
  154. package/dist/projections/graphs/GraphEdgeRemovedWithBuilder.js +31 -0
  155. package/dist/projections/graphs/GraphEdgeRemovedWithBuilder.js.map +1 -0
  156. package/dist/projections/graphs/GraphEdgeRemovedWithModel.d.ts +14 -0
  157. package/dist/projections/graphs/GraphEdgeRemovedWithModel.d.ts.map +1 -0
  158. package/dist/projections/graphs/GraphEdgeRemovedWithModel.js +4 -0
  159. package/dist/projections/graphs/GraphEdgeRemovedWithModel.js.map +1 -0
  160. package/dist/projections/graphs/GraphElementCannotBeReadModel.d.ts +11 -0
  161. package/dist/projections/graphs/GraphElementCannotBeReadModel.d.ts.map +1 -0
  162. package/dist/projections/graphs/GraphElementCannotBeReadModel.js +16 -0
  163. package/dist/projections/graphs/GraphElementCannotBeReadModel.js.map +1 -0
  164. package/dist/projections/graphs/GraphHasDuplicateElement.d.ts +13 -0
  165. package/dist/projections/graphs/GraphHasDuplicateElement.d.ts.map +1 -0
  166. package/dist/projections/graphs/GraphHasDuplicateElement.js +18 -0
  167. package/dist/projections/graphs/GraphHasDuplicateElement.js.map +1 -0
  168. package/dist/projections/graphs/GraphKeyPropertyNotFound.d.ts +12 -0
  169. package/dist/projections/graphs/GraphKeyPropertyNotFound.d.ts.map +1 -0
  170. package/dist/projections/graphs/GraphKeyPropertyNotFound.js +17 -0
  171. package/dist/projections/graphs/GraphKeyPropertyNotFound.js.map +1 -0
  172. package/dist/projections/graphs/GraphMappingBuilder.d.ts +32 -0
  173. package/dist/projections/graphs/GraphMappingBuilder.d.ts.map +1 -0
  174. package/dist/projections/graphs/GraphMappingBuilder.js +48 -0
  175. package/dist/projections/graphs/GraphMappingBuilder.js.map +1 -0
  176. package/dist/projections/graphs/GraphMemberMappings.d.ts +9 -0
  177. package/dist/projections/graphs/GraphMemberMappings.d.ts.map +1 -0
  178. package/dist/projections/graphs/GraphMemberMappings.js +59 -0
  179. package/dist/projections/graphs/GraphMemberMappings.js.map +1 -0
  180. package/dist/projections/graphs/GraphModel.d.ts +15 -0
  181. package/dist/projections/graphs/GraphModel.d.ts.map +1 -0
  182. package/dist/projections/graphs/GraphModel.js +4 -0
  183. package/dist/projections/graphs/GraphModel.js.map +1 -0
  184. package/dist/projections/graphs/GraphNameRequired.d.ts +11 -0
  185. package/dist/projections/graphs/GraphNameRequired.d.ts.map +1 -0
  186. package/dist/projections/graphs/GraphNameRequired.js +16 -0
  187. package/dist/projections/graphs/GraphNameRequired.js.map +1 -0
  188. package/dist/projections/graphs/GraphNodeBuilder.d.ts +34 -0
  189. package/dist/projections/graphs/GraphNodeBuilder.d.ts.map +1 -0
  190. package/dist/projections/graphs/GraphNodeBuilder.js +66 -0
  191. package/dist/projections/graphs/GraphNodeBuilder.js.map +1 -0
  192. package/dist/projections/graphs/GraphNodeFromBuilder.d.ts +21 -0
  193. package/dist/projections/graphs/GraphNodeFromBuilder.d.ts.map +1 -0
  194. package/dist/projections/graphs/GraphNodeFromBuilder.js +30 -0
  195. package/dist/projections/graphs/GraphNodeFromBuilder.js.map +1 -0
  196. package/dist/projections/graphs/GraphNodeFromModel.d.ts +14 -0
  197. package/dist/projections/graphs/GraphNodeFromModel.d.ts.map +1 -0
  198. package/dist/projections/graphs/GraphNodeFromModel.js +4 -0
  199. package/dist/projections/graphs/GraphNodeFromModel.js.map +1 -0
  200. package/dist/projections/graphs/GraphNodeModel.d.ts +18 -0
  201. package/dist/projections/graphs/GraphNodeModel.d.ts.map +1 -0
  202. package/dist/projections/graphs/GraphNodeModel.js +4 -0
  203. package/dist/projections/graphs/GraphNodeModel.js.map +1 -0
  204. package/dist/projections/graphs/GraphNodeRemovedWithBuilder.d.ts +17 -0
  205. package/dist/projections/graphs/GraphNodeRemovedWithBuilder.d.ts.map +1 -0
  206. package/dist/projections/graphs/GraphNodeRemovedWithBuilder.js +24 -0
  207. package/dist/projections/graphs/GraphNodeRemovedWithBuilder.js.map +1 -0
  208. package/dist/projections/graphs/GraphNodeRemovedWithModel.d.ts +12 -0
  209. package/dist/projections/graphs/GraphNodeRemovedWithModel.d.ts.map +1 -0
  210. package/dist/projections/graphs/GraphNodeRemovedWithModel.js +4 -0
  211. package/dist/projections/graphs/GraphNodeRemovedWithModel.js.map +1 -0
  212. package/dist/projections/graphs/GraphProjectionBuilder.d.ts +25 -0
  213. package/dist/projections/graphs/GraphProjectionBuilder.d.ts.map +1 -0
  214. package/dist/projections/graphs/GraphProjectionBuilder.js +36 -0
  215. package/dist/projections/graphs/GraphProjectionBuilder.js.map +1 -0
  216. package/dist/projections/graphs/GraphRegistration.d.ts +14 -0
  217. package/dist/projections/graphs/GraphRegistration.d.ts.map +1 -0
  218. package/dist/projections/graphs/GraphRegistration.js +4 -0
  219. package/dist/projections/graphs/GraphRegistration.js.map +1 -0
  220. package/dist/projections/graphs/GraphSchemaWriter.d.ts +28 -0
  221. package/dist/projections/graphs/GraphSchemaWriter.d.ts.map +1 -0
  222. package/dist/projections/graphs/GraphSchemaWriter.js +76 -0
  223. package/dist/projections/graphs/GraphSchemaWriter.js.map +1 -0
  224. package/dist/projections/graphs/Graphs.d.ts +39 -0
  225. package/dist/projections/graphs/Graphs.d.ts.map +1 -0
  226. package/dist/projections/graphs/Graphs.js +144 -0
  227. package/dist/projections/graphs/Graphs.js.map +1 -0
  228. package/dist/projections/graphs/IGraphEdgeBuilder.d.ts +37 -0
  229. package/dist/projections/graphs/IGraphEdgeBuilder.d.ts.map +1 -0
  230. package/dist/projections/graphs/IGraphEdgeBuilder.js +4 -0
  231. package/dist/projections/graphs/IGraphEdgeBuilder.js.map +1 -0
  232. package/dist/projections/graphs/IGraphEdgeFromBuilder.d.ts +29 -0
  233. package/dist/projections/graphs/IGraphEdgeFromBuilder.d.ts.map +1 -0
  234. package/dist/projections/graphs/IGraphEdgeFromBuilder.js +4 -0
  235. package/dist/projections/graphs/IGraphEdgeFromBuilder.js.map +1 -0
  236. package/dist/projections/graphs/IGraphEdgeRemovedWithBuilder.d.ts +27 -0
  237. package/dist/projections/graphs/IGraphEdgeRemovedWithBuilder.d.ts.map +1 -0
  238. package/dist/projections/graphs/IGraphEdgeRemovedWithBuilder.js +4 -0
  239. package/dist/projections/graphs/IGraphEdgeRemovedWithBuilder.js.map +1 -0
  240. package/dist/projections/graphs/IGraphMappingBuilder.d.ts +49 -0
  241. package/dist/projections/graphs/IGraphMappingBuilder.d.ts.map +1 -0
  242. package/dist/projections/graphs/IGraphMappingBuilder.js +4 -0
  243. package/dist/projections/graphs/IGraphMappingBuilder.js.map +1 -0
  244. package/dist/projections/graphs/IGraphNodeBuilder.d.ts +32 -0
  245. package/dist/projections/graphs/IGraphNodeBuilder.d.ts.map +1 -0
  246. package/dist/projections/graphs/IGraphNodeBuilder.js +4 -0
  247. package/dist/projections/graphs/IGraphNodeBuilder.js.map +1 -0
  248. package/dist/projections/graphs/IGraphNodeFromBuilder.d.ts +21 -0
  249. package/dist/projections/graphs/IGraphNodeFromBuilder.d.ts.map +1 -0
  250. package/dist/projections/graphs/IGraphNodeFromBuilder.js +4 -0
  251. package/dist/projections/graphs/IGraphNodeFromBuilder.js.map +1 -0
  252. package/dist/projections/graphs/IGraphNodeRemovedWithBuilder.d.ts +19 -0
  253. package/dist/projections/graphs/IGraphNodeRemovedWithBuilder.d.ts.map +1 -0
  254. package/dist/projections/graphs/IGraphNodeRemovedWithBuilder.js +4 -0
  255. package/dist/projections/graphs/IGraphNodeRemovedWithBuilder.js.map +1 -0
  256. package/dist/projections/graphs/IGraphProjection.d.ts +13 -0
  257. package/dist/projections/graphs/IGraphProjection.d.ts.map +1 -0
  258. package/dist/projections/graphs/IGraphProjection.js +4 -0
  259. package/dist/projections/graphs/IGraphProjection.js.map +1 -0
  260. package/dist/projections/graphs/IGraphProjectionBuilder.d.ts +26 -0
  261. package/dist/projections/graphs/IGraphProjectionBuilder.d.ts.map +1 -0
  262. package/dist/projections/graphs/IGraphProjectionBuilder.js +4 -0
  263. package/dist/projections/graphs/IGraphProjectionBuilder.js.map +1 -0
  264. package/dist/projections/graphs/IGraphs.d.ts +27 -0
  265. package/dist/projections/graphs/IGraphs.d.ts.map +1 -0
  266. package/dist/projections/graphs/IGraphs.js +4 -0
  267. package/dist/projections/graphs/IGraphs.js.map +1 -0
  268. package/dist/projections/graphs/ModelBoundGraphReader.d.ts +30 -0
  269. package/dist/projections/graphs/ModelBoundGraphReader.d.ts.map +1 -0
  270. package/dist/projections/graphs/ModelBoundGraphReader.js +112 -0
  271. package/dist/projections/graphs/ModelBoundGraphReader.js.map +1 -0
  272. package/dist/projections/graphs/NestedObjectInGraph.d.ts +12 -0
  273. package/dist/projections/graphs/NestedObjectInGraph.d.ts.map +1 -0
  274. package/dist/projections/graphs/NestedObjectInGraph.js +17 -0
  275. package/dist/projections/graphs/NestedObjectInGraph.js.map +1 -0
  276. package/dist/projections/graphs/NodeMustHaveExactlyOneKey.d.ts +12 -0
  277. package/dist/projections/graphs/NodeMustHaveExactlyOneKey.d.ts.map +1 -0
  278. package/dist/projections/graphs/NodeMustHaveExactlyOneKey.js +17 -0
  279. package/dist/projections/graphs/NodeMustHaveExactlyOneKey.js.map +1 -0
  280. package/dist/projections/graphs/SetOnceNotSupportedInGraph.d.ts +13 -0
  281. package/dist/projections/graphs/SetOnceNotSupportedInGraph.d.ts.map +1 -0
  282. package/dist/projections/graphs/SetOnceNotSupportedInGraph.js +18 -0
  283. package/dist/projections/graphs/SetOnceNotSupportedInGraph.js.map +1 -0
  284. package/dist/projections/graphs/UnknownGraphEventProperty.d.ts +13 -0
  285. package/dist/projections/graphs/UnknownGraphEventProperty.d.ts.map +1 -0
  286. package/dist/projections/graphs/UnknownGraphEventProperty.js +18 -0
  287. package/dist/projections/graphs/UnknownGraphEventProperty.js.map +1 -0
  288. package/dist/projections/graphs/UnknownGraphNode.d.ts +12 -0
  289. package/dist/projections/graphs/UnknownGraphNode.d.ts.map +1 -0
  290. package/dist/projections/graphs/UnknownGraphNode.js +17 -0
  291. package/dist/projections/graphs/UnknownGraphNode.js.map +1 -0
  292. package/dist/projections/graphs/edge.d.ts +23 -0
  293. package/dist/projections/graphs/edge.d.ts.map +1 -0
  294. package/dist/projections/graphs/edge.js +29 -0
  295. package/dist/projections/graphs/edge.js.map +1 -0
  296. package/dist/projections/graphs/edgeFrom.d.ts +31 -0
  297. package/dist/projections/graphs/edgeFrom.d.ts.map +1 -0
  298. package/dist/projections/graphs/edgeFrom.js +26 -0
  299. package/dist/projections/graphs/edgeFrom.js.map +1 -0
  300. package/dist/projections/graphs/edgeRemovedWith.d.ts +22 -0
  301. package/dist/projections/graphs/edgeRemovedWith.d.ts.map +1 -0
  302. package/dist/projections/graphs/edgeRemovedWith.js +25 -0
  303. package/dist/projections/graphs/edgeRemovedWith.js.map +1 -0
  304. package/dist/projections/graphs/edgeSource.d.ts +22 -0
  305. package/dist/projections/graphs/edgeSource.d.ts.map +1 -0
  306. package/dist/projections/graphs/edgeSource.js +30 -0
  307. package/dist/projections/graphs/edgeSource.js.map +1 -0
  308. package/dist/projections/graphs/edgeTarget.d.ts +22 -0
  309. package/dist/projections/graphs/edgeTarget.d.ts.map +1 -0
  310. package/dist/projections/graphs/edgeTarget.js +30 -0
  311. package/dist/projections/graphs/edgeTarget.js.map +1 -0
  312. package/dist/projections/graphs/graph.d.ts +16 -0
  313. package/dist/projections/graphs/graph.d.ts.map +1 -0
  314. package/dist/projections/graphs/graph.js +24 -0
  315. package/dist/projections/graphs/graph.js.map +1 -0
  316. package/dist/projections/graphs/graphKey.d.ts +16 -0
  317. package/dist/projections/graphs/graphKey.d.ts.map +1 -0
  318. package/dist/projections/graphs/graphKey.js +28 -0
  319. package/dist/projections/graphs/graphKey.js.map +1 -0
  320. package/dist/projections/graphs/graphProjection.d.ts +21 -0
  321. package/dist/projections/graphs/graphProjection.d.ts.map +1 -0
  322. package/dist/projections/graphs/graphProjection.js +28 -0
  323. package/dist/projections/graphs/graphProjection.js.map +1 -0
  324. package/dist/projections/graphs/index.d.ts +49 -0
  325. package/dist/projections/graphs/index.d.ts.map +1 -0
  326. package/dist/projections/graphs/index.js +28 -0
  327. package/dist/projections/graphs/index.js.map +1 -0
  328. package/dist/projections/graphs/isGraphElement.d.ts +7 -0
  329. package/dist/projections/graphs/isGraphElement.d.ts.map +1 -0
  330. package/dist/projections/graphs/isGraphElement.js +13 -0
  331. package/dist/projections/graphs/isGraphElement.js.map +1 -0
  332. package/dist/projections/graphs/node.d.ts +22 -0
  333. package/dist/projections/graphs/node.d.ts.map +1 -0
  334. package/dist/projections/graphs/node.js +29 -0
  335. package/dist/projections/graphs/node.js.map +1 -0
  336. package/dist/projections/graphs/nodeFrom.d.ts +31 -0
  337. package/dist/projections/graphs/nodeFrom.d.ts.map +1 -0
  338. package/dist/projections/graphs/nodeFrom.js +26 -0
  339. package/dist/projections/graphs/nodeFrom.js.map +1 -0
  340. package/dist/projections/graphs/nodeRemovedWith.d.ts +28 -0
  341. package/dist/projections/graphs/nodeRemovedWith.d.ts.map +1 -0
  342. package/dist/projections/graphs/nodeRemovedWith.js +25 -0
  343. package/dist/projections/graphs/nodeRemovedWith.js.map +1 -0
  344. package/dist/projections/graphs/propertyPathOf.d.ts +8 -0
  345. package/dist/projections/graphs/propertyPathOf.d.ts.map +1 -0
  346. package/dist/projections/graphs/propertyPathOf.js +14 -0
  347. package/dist/projections/graphs/propertyPathOf.js.map +1 -0
  348. package/dist/projections/index.d.ts +6 -0
  349. package/dist/projections/index.d.ts.map +1 -1
  350. package/dist/projections/index.js +4 -0
  351. package/dist/projections/index.js.map +1 -1
  352. package/dist/projections/modelBound/ConflictingChildrenOrdering.d.ts +10 -0
  353. package/dist/projections/modelBound/ConflictingChildrenOrdering.d.ts.map +1 -0
  354. package/dist/projections/modelBound/ConflictingChildrenOrdering.js +16 -0
  355. package/dist/projections/modelBound/ConflictingChildrenOrdering.js.map +1 -0
  356. package/dist/projections/modelBound/childrenAndNestedBuilder.d.ts +2 -0
  357. package/dist/projections/modelBound/childrenAndNestedBuilder.d.ts.map +1 -1
  358. package/dist/projections/modelBound/childrenAndNestedBuilder.js +9 -5
  359. package/dist/projections/modelBound/childrenAndNestedBuilder.js.map +1 -1
  360. package/dist/projections/modelBound/childrenFrom.d.ts +39 -1
  361. package/dist/projections/modelBound/childrenFrom.d.ts.map +1 -1
  362. package/dist/projections/modelBound/childrenFrom.js +30 -1
  363. package/dist/projections/modelBound/childrenFrom.js.map +1 -1
  364. package/dist/projections/modelBound/index.d.ts +3 -2
  365. package/dist/projections/modelBound/index.d.ts.map +1 -1
  366. package/dist/projections/modelBound/index.js +1 -0
  367. package/dist/projections/modelBound/index.js.map +1 -1
  368. package/dist/projections/modelBound/setFrom.d.ts +26 -0
  369. package/dist/projections/modelBound/setFrom.d.ts.map +1 -1
  370. package/dist/projections/modelBound/setFrom.js +15 -8
  371. package/dist/projections/modelBound/setFrom.js.map +1 -1
  372. package/dist/projections/modelBound/setFromContext.d.ts +23 -1
  373. package/dist/projections/modelBound/setFromContext.d.ts.map +1 -1
  374. package/dist/projections/modelBound/setFromContext.js +20 -2
  375. package/dist/projections/modelBound/setFromContext.js.map +1 -1
  376. package/dist/projections/propertyExpressions.d.ts +9 -0
  377. package/dist/projections/propertyExpressions.d.ts.map +1 -0
  378. package/dist/projections/propertyExpressions.js +13 -0
  379. package/dist/projections/propertyExpressions.js.map +1 -0
  380. package/dist/projections/registerProjectionWithRetry.d.ts +15 -0
  381. package/dist/projections/registerProjectionWithRetry.d.ts.map +1 -0
  382. package/dist/projections/registerProjectionWithRetry.js +44 -0
  383. package/dist/projections/registerProjectionWithRetry.js.map +1 -0
  384. package/dist/readModels/rootReadModelTypes.d.ts.map +1 -1
  385. package/dist/readModels/rootReadModelTypes.js +3 -1
  386. package/dist/readModels/rootReadModelTypes.js.map +1 -1
  387. package/dist/reducers/Reducers.d.ts.map +1 -1
  388. package/dist/reducers/Reducers.js +2 -1
  389. package/dist/reducers/Reducers.js.map +1 -1
  390. package/dist/sinks/WellKnownSinks.d.ts +4 -0
  391. package/dist/sinks/WellKnownSinks.d.ts.map +1 -1
  392. package/dist/sinks/WellKnownSinks.js +5 -1
  393. package/dist/sinks/WellKnownSinks.js.map +1 -1
  394. package/dist/testing/projections/ProjectionCapabilities.d.ts.map +1 -1
  395. package/dist/testing/projections/ProjectionCapabilities.js +2 -0
  396. package/dist/testing/projections/ProjectionCapabilities.js.map +1 -1
  397. package/dist/testing/projections/ProjectionChildrenCapabilities.d.ts.map +1 -1
  398. package/dist/testing/projections/ProjectionChildrenCapabilities.js +2 -0
  399. package/dist/testing/projections/ProjectionChildrenCapabilities.js.map +1 -1
  400. package/dist/tsconfig.tsbuildinfo +1 -1
  401. package/dist/types/DecoratorType.d.ts +5 -1
  402. package/dist/types/DecoratorType.d.ts.map +1 -1
  403. package/dist/types/DecoratorType.js +4 -0
  404. package/dist/types/DecoratorType.js.map +1 -1
  405. package/for_ChronicleOptions/when_configuring_the_graph_sink/with_graph_sink_type.spec.ts +22 -0
  406. package/package.json +3 -3
  407. package/projections/ChildrenOrderingNotSupportedByContracts.ts +18 -0
  408. package/projections/InvalidCausedByProperty.ts +14 -0
  409. package/projections/Projections.ts +8 -29
  410. package/projections/causedBy.ts +30 -0
  411. package/projections/childrenOrdering.ts +53 -0
  412. package/projections/childrenOrderingSupport.ts +40 -0
  413. package/projections/declarative/AllSetBuilder.ts +7 -0
  414. package/projections/declarative/ChildrenBuilder.ts +34 -1
  415. package/projections/declarative/ChildrenOrderingAlreadyDefined.ts +11 -0
  416. package/projections/declarative/DictionaryKey.ts +88 -0
  417. package/projections/declarative/FromAllBuilder.ts +10 -0
  418. package/projections/declarative/FromBuilder.ts +42 -32
  419. package/projections/declarative/FromEveryBuilder.ts +12 -0
  420. package/projections/declarative/IAllSetBuilder.ts +8 -0
  421. package/projections/declarative/IChildrenBuilder.ts +22 -0
  422. package/projections/declarative/IFromAllBuilder.ts +7 -0
  423. package/projections/declarative/IFromEveryBuilder.ts +7 -0
  424. package/projections/declarative/IReadModelPropertiesBuilder.ts +39 -6
  425. package/projections/declarative/ISetBuilder.ts +8 -0
  426. package/projections/declarative/InvalidDictionaryKey.ts +14 -0
  427. package/projections/declarative/JoinBuilder.ts +41 -32
  428. package/projections/declarative/ProjectionBuilderCore.ts +2 -0
  429. package/projections/declarative/SetBuilder.ts +7 -0
  430. package/projections/declarative/for_ChildrenBuilder/when_ordering_children.spec.ts +52 -0
  431. package/projections/declarative/for_FromAllBuilder/when_setting_once.spec.ts +29 -0
  432. package/projections/declarative/for_FromBuilder/when_setting_once.spec.ts +39 -0
  433. package/projections/declarative/for_FromBuilder/when_targeting_dictionary_entries.spec.ts +99 -0
  434. package/projections/declarative/for_JoinBuilder/when_setting_once_and_targeting_dictionary_entries.spec.ts +36 -0
  435. package/projections/declarative/for_SetBuilder/when_setting_to_the_causing_identity.spec.ts +37 -0
  436. package/projections/declarative/index.ts +4 -0
  437. package/projections/for_Graphs/given/a_discovered_graph.ts +21 -0
  438. package/projections/for_Graphs/given/a_fake_connection.ts +19 -0
  439. package/projections/for_Graphs/given/organization.ts +96 -0
  440. package/projections/for_Graphs/when_building_a_fluent_graph.spec.ts +112 -0
  441. package/projections/for_Graphs/when_building_a_model_bound_graph.spec.ts +92 -0
  442. package/projections/for_Graphs/when_declaring_an_edge_with_an_identity.spec.ts +137 -0
  443. package/projections/for_Graphs/when_declaring_an_invalid_graph.spec.ts +227 -0
  444. package/projections/for_Graphs/when_declaring_with_standard_decorators.standard.spec.ts +92 -0
  445. package/projections/for_Graphs/when_discovering_graph_elements.spec.ts +32 -0
  446. package/projections/for_Graphs/when_mapping_properties.spec.ts +159 -0
  447. package/projections/for_Graphs/when_registering_graphs.spec.ts +56 -0
  448. package/projections/for_Projections/when_registering_ordered_children.spec.ts +66 -0
  449. package/projections/for_childrenOrderingSupport/when_detecting_support_in_the_pinned_contracts.spec.ts +22 -0
  450. package/projections/for_childrenOrderingSupport/when_ensuring_children_ordering_is_supported.spec.ts +35 -0
  451. package/projections/graphs/EdgeCanHaveOnlyOneIdentifyingKey.ts +16 -0
  452. package/projections/graphs/EdgeMustHaveOneSourceAndOneTarget.ts +16 -0
  453. package/projections/graphs/GraphDeclaredMoreThanOnce.ts +16 -0
  454. package/projections/graphs/GraphDefinitionBuilder.ts +169 -0
  455. package/projections/graphs/GraphEdgeBuilder.ts +107 -0
  456. package/projections/graphs/GraphEdgeFromBuilder.ts +47 -0
  457. package/projections/graphs/GraphEdgeFromModel.ts +22 -0
  458. package/projections/graphs/GraphEdgeModel.ts +34 -0
  459. package/projections/graphs/GraphEdgeRemovedWithBuilder.ts +39 -0
  460. package/projections/graphs/GraphEdgeRemovedWithModel.ts +19 -0
  461. package/projections/graphs/GraphElementCannotBeReadModel.ts +16 -0
  462. package/projections/graphs/GraphHasDuplicateElement.ts +18 -0
  463. package/projections/graphs/GraphKeyPropertyNotFound.ts +17 -0
  464. package/projections/graphs/GraphMappingBuilder.ts +65 -0
  465. package/projections/graphs/GraphMemberMappings.ts +60 -0
  466. package/projections/graphs/GraphModel.ts +20 -0
  467. package/projections/graphs/GraphNameRequired.ts +16 -0
  468. package/projections/graphs/GraphNodeBuilder.ts +76 -0
  469. package/projections/graphs/GraphNodeFromBuilder.ts +38 -0
  470. package/projections/graphs/GraphNodeFromModel.ts +19 -0
  471. package/projections/graphs/GraphNodeModel.ts +25 -0
  472. package/projections/graphs/GraphNodeRemovedWithBuilder.ts +30 -0
  473. package/projections/graphs/GraphNodeRemovedWithModel.ts +16 -0
  474. package/projections/graphs/GraphProjectionBuilder.ts +52 -0
  475. package/projections/graphs/GraphRegistration.ts +19 -0
  476. package/projections/graphs/GraphSchemaWriter.ts +80 -0
  477. package/projections/graphs/Graphs.ts +165 -0
  478. package/projections/graphs/IGraphEdgeBuilder.ts +43 -0
  479. package/projections/graphs/IGraphEdgeFromBuilder.ts +34 -0
  480. package/projections/graphs/IGraphEdgeRemovedWithBuilder.ts +32 -0
  481. package/projections/graphs/IGraphMappingBuilder.ts +57 -0
  482. package/projections/graphs/IGraphNodeBuilder.ts +37 -0
  483. package/projections/graphs/IGraphNodeFromBuilder.ts +25 -0
  484. package/projections/graphs/IGraphNodeRemovedWithBuilder.ts +23 -0
  485. package/projections/graphs/IGraphProjection.ts +16 -0
  486. package/projections/graphs/IGraphProjectionBuilder.ts +34 -0
  487. package/projections/graphs/IGraphs.ts +33 -0
  488. package/projections/graphs/ModelBoundGraphReader.ts +119 -0
  489. package/projections/graphs/NestedObjectInGraph.ts +17 -0
  490. package/projections/graphs/NodeMustHaveExactlyOneKey.ts +17 -0
  491. package/projections/graphs/SetOnceNotSupportedInGraph.ts +18 -0
  492. package/projections/graphs/UnknownGraphEventProperty.ts +18 -0
  493. package/projections/graphs/UnknownGraphNode.ts +17 -0
  494. package/projections/graphs/edge.ts +40 -0
  495. package/projections/graphs/edgeFrom.ts +48 -0
  496. package/projections/graphs/edgeRemovedWith.ts +36 -0
  497. package/projections/graphs/edgeSource.ts +39 -0
  498. package/projections/graphs/edgeTarget.ts +39 -0
  499. package/projections/graphs/graph.ts +28 -0
  500. package/projections/graphs/graphKey.ts +31 -0
  501. package/projections/graphs/graphProjection.ts +39 -0
  502. package/projections/graphs/index.ts +51 -0
  503. package/projections/graphs/isGraphElement.ts +14 -0
  504. package/projections/graphs/node.ts +40 -0
  505. package/projections/graphs/nodeFrom.ts +48 -0
  506. package/projections/graphs/nodeRemovedWith.ts +44 -0
  507. package/projections/graphs/propertyPathOf.ts +15 -0
  508. package/projections/index.ts +6 -0
  509. package/projections/modelBound/ConflictingChildrenOrdering.ts +14 -0
  510. package/projections/modelBound/childrenAndNestedBuilder.ts +11 -5
  511. package/projections/modelBound/childrenFrom.ts +62 -2
  512. package/projections/modelBound/for_childrenFrom/when_ordering_children.spec.ts +91 -0
  513. package/projections/modelBound/for_setFrom/when_setting_once.spec.ts +52 -0
  514. package/projections/modelBound/index.ts +3 -2
  515. package/projections/modelBound/setFrom.ts +37 -2
  516. package/projections/modelBound/setFromContext.ts +38 -3
  517. package/projections/propertyExpressions.ts +14 -0
  518. package/projections/registerProjectionWithRetry.ts +53 -0
  519. package/readModels/rootReadModelTypes.ts +3 -1
  520. package/reducers/Reducers.ts +2 -1
  521. package/sinks/WellKnownSinks.ts +7 -1
  522. package/testing/projections/ProjectionCapabilities.ts +1 -0
  523. package/testing/projections/ProjectionChildrenCapabilities.ts +1 -0
  524. package/testing/projections/for_ProjectionCapabilities/when_rejecting_set_once_dictionary_entries_and_ordered_children.spec.ts +52 -0
  525. package/types/DecoratorType.ts +7 -1
@@ -1,5 +1,6 @@
1
1
  import { PropertyAccessor } from '@cratis/fundamentals';
2
2
  import { ICompositeKeyBuilder } from './ICompositeKeyBuilder.js';
3
+ import type { DictionaryKeySource } from './DictionaryKey.js';
3
4
  import { IAddBuilder } from './IAddBuilder.js';
4
5
  import { IAddChildBuilder } from './IAddChildBuilder.js';
5
6
  import { ISetBuilder } from './ISetBuilder.js';
@@ -62,33 +63,43 @@ export interface IReadModelPropertiesBuilder<TReadModel, TEvent, TBuilder> {
62
63
  /**
63
64
  * Increments the specified read model property by one when this event occurs.
64
65
  * @param readModelPropertyAccessor - Accessor for the read model property to increment.
66
+ * @param key - Optional dictionary key. When given, the property is a dictionary and the operation targets the entry with this key:
67
+ * an accessor on the event, or a {@link DictionaryKey} for keys from the event context or the identity that caused the event.
65
68
  * @returns This builder for fluent chaining.
66
69
  */
67
- increment(readModelPropertyAccessor: PropertyAccessor<TReadModel>): TBuilder;
70
+ increment(readModelPropertyAccessor: PropertyAccessor<TReadModel>, key?: DictionaryKeySource<TEvent>): TBuilder;
68
71
  /**
69
72
  * Decrements the specified read model property by one when this event occurs.
70
73
  * @param readModelPropertyAccessor - Accessor for the read model property to decrement.
74
+ * @param key - Optional dictionary key. When given, the property is a dictionary and the operation targets the entry with this key:
75
+ * an accessor on the event, or a {@link DictionaryKey} for keys from the event context or the identity that caused the event.
71
76
  * @returns This builder for fluent chaining.
72
77
  */
73
- decrement(readModelPropertyAccessor: PropertyAccessor<TReadModel>): TBuilder;
78
+ decrement(readModelPropertyAccessor: PropertyAccessor<TReadModel>, key?: DictionaryKeySource<TEvent>): TBuilder;
74
79
  /**
75
80
  * Begins an add operation on the specified read model property.
76
81
  * @param readModelPropertyAccessor - Accessor for the read model property to add to.
82
+ * @param key - Optional dictionary key. When given, the property is a dictionary and the operation targets the entry with this key:
83
+ * an accessor on the event, or a {@link DictionaryKey} for keys from the event context or the identity that caused the event.
77
84
  * @returns An add builder for specifying the event property value.
78
85
  */
79
- add(readModelPropertyAccessor: PropertyAccessor<TReadModel>): IAddBuilder<TEvent, TBuilder>;
86
+ add(readModelPropertyAccessor: PropertyAccessor<TReadModel>, key?: DictionaryKeySource<TEvent>): IAddBuilder<TEvent, TBuilder>;
80
87
  /**
81
88
  * Begins a subtract operation on the specified read model property.
82
89
  * @param readModelPropertyAccessor - Accessor for the read model property to subtract from.
90
+ * @param key - Optional dictionary key. When given, the property is a dictionary and the operation targets the entry with this key:
91
+ * an accessor on the event, or a {@link DictionaryKey} for keys from the event context or the identity that caused the event.
83
92
  * @returns A subtract builder for specifying the event property value.
84
93
  */
85
- subtract(readModelPropertyAccessor: PropertyAccessor<TReadModel>): ISubtractBuilder<TEvent, TBuilder>;
94
+ subtract(readModelPropertyAccessor: PropertyAccessor<TReadModel>, key?: DictionaryKeySource<TEvent>): ISubtractBuilder<TEvent, TBuilder>;
86
95
  /**
87
96
  * Counts the number of matching events into the specified read model property.
88
97
  * @param readModelPropertyAccessor - Accessor for the read model property to store the count in.
98
+ * @param key - Optional dictionary key. When given, the property is a dictionary and the operation targets the entry with this key:
99
+ * an accessor on the event, or a {@link DictionaryKey} for keys from the event context or the identity that caused the event.
89
100
  * @returns This builder for fluent chaining.
90
101
  */
91
- count(readModelPropertyAccessor: PropertyAccessor<TReadModel>): TBuilder;
102
+ count(readModelPropertyAccessor: PropertyAccessor<TReadModel>, key?: DictionaryKeySource<TEvent>): TBuilder;
92
103
  /**
93
104
  * Adds a child model configured through a child builder to a collection on the read model.
94
105
  * Event members remain available while TypeScript resolves the two function-shaped overloads.
@@ -114,9 +125,29 @@ export interface IReadModelPropertiesBuilder<TReadModel, TEvent, TBuilder> {
114
125
  /**
115
126
  * Begins a set operation to map an event property to the specified read model property.
116
127
  * @param readModelPropertyAccessor - Accessor for the read model property to set.
128
+ * @param key - Optional dictionary key. When given, the property is a dictionary and the operation targets the entry with this key:
129
+ * an accessor on the event, or a {@link DictionaryKey} for keys from the event context or the identity that caused the event.
117
130
  * @returns A set builder for specifying the event property value.
118
131
  */
119
- set(readModelPropertyAccessor: PropertyAccessor<TReadModel>): ISetBuilder<TEvent, TBuilder>;
132
+ set(readModelPropertyAccessor: PropertyAccessor<TReadModel>, key?: DictionaryKeySource<TEvent>): ISetBuilder<TEvent, TBuilder>;
133
+ /**
134
+ * Begins a set operation that only assigns the read model property while it has no value yet. The first event that
135
+ * carries a value wins; later events leave the property as it is. Use it to capture a first occurrence - for instance
136
+ * `setOnce(m => m.firstSeen).toEventContextProperty('occurred')` - without a dedicated creation event.
137
+ * @param readModelPropertyAccessor - Accessor for the read model property to set once.
138
+ * @param key - Optional dictionary key. When given, the property is a dictionary and the operation targets the entry with this key:
139
+ * an accessor on the event, or a {@link DictionaryKey} for keys from the event context or the identity that caused the event.
140
+ * @returns A set builder for specifying the value.
141
+ */
142
+ setOnce(readModelPropertyAccessor: PropertyAccessor<TReadModel>, key?: DictionaryKeySource<TEvent>): ISetBuilder<TEvent, TBuilder>;
143
+ /**
144
+ * Removes an entry from a dictionary-typed read model property when this event occurs. Removing a key that is not
145
+ * present leaves the dictionary as it is.
146
+ * @param readModelPropertyAccessor - Accessor for the dictionary-typed read model property.
147
+ * @param key - The key of the entry to remove: an accessor on the event, or a {@link DictionaryKey}.
148
+ * @returns This builder for fluent chaining.
149
+ */
150
+ removeKey(readModelPropertyAccessor: PropertyAccessor<TReadModel>, key: DictionaryKeySource<TEvent>): TBuilder;
120
151
  /**
121
152
  * Begins a set operation that maps the entire event value to a read model property.
122
153
  * @returns A set builder for specifying the target read model property.
@@ -1 +1 @@
1
- {"version":3,"file":"IReadModelPropertiesBuilder.d.ts","sourceRoot":"","sources":["../../../projections/declarative/IReadModelPropertiesBuilder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,WAAW,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ;IACrE;;;;OAIG;IACH,QAAQ,CAAC,WAAW,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC;IAE1D;;;;OAIG;IACH,mBAAmB,CAAC,mBAAmB,EAAE,MAAM,GAAG,QAAQ,CAAC;IAE3D;;;;OAIG;IACH,cAAc,CAAC,WAAW,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC;IAEhE;;;;OAIG;IACH,yBAAyB,CAAC,mBAAmB,EAAE,MAAM,GAAG,QAAQ,CAAC;IAEjE;;;;OAIG;IACH,iBAAiB,CAAC,QAAQ,EAAE,eAAe,EAAE,CAAC,OAAO,EAAE,oBAAoB,CAAC,QAAQ,EAAE,MAAM,CAAC,KAAK,IAAI,GAAG,QAAQ,CAAC;IAElH;;;;OAIG;IACH,uBAAuB,CAAC,QAAQ,EAAE,eAAe,EAAE,CAAC,OAAO,EAAE,oBAAoB,C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AAE,mBAAmB,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC;IAE/G;;;OAGG;IACH,YAAY,IAAI,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CACjD"}
@@ -1,4 +1,5 @@
1
1
  import { PropertyAccessor } from '@cratis/fundamentals';
2
+ import type { CausedByProperty } from '../causedBy.js';
2
3
  /**
3
4
  * Defines a builder for configuring a set operation on a read model property.
4
5
  * @template TEvent - The event type.
@@ -28,5 +29,11 @@ export interface ISetBuilder<TEvent, TParentBuilder> {
28
29
  * @returns The parent builder for fluent chaining.
29
30
  */
30
31
  toEventSourceId(): TParentBuilder;
32
+ /**
33
+ * Maps the read model property from the identity that caused the event, or one of its members.
34
+ * @param property - Optional identity member: `subject`, `name` or `userName`. Omit it for the whole identity.
35
+ * @returns The parent builder for fluent chaining.
36
+ */
37
+ toCausedBy(property?: CausedByProperty): TParentBuilder;
31
38
  }
32
39
  //# sourceMappingURL=ISetBuilder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ISetBuilder.d.ts","sourceRoot":"","sources":["../../../projections/declarative/ISetBuilder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;GAIG;AACH,MAAM,WAAW,WAAW,CAAC,MAAM,EAAE,cAAc;IAC/C;;;;OAIG;IACH,EAAE,CAAC,qBAAqB,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG,cAAc,CAAC;IAEpE;;;;OAIG;IACH,OAAO,CAAC,SAAS,EAAE,KAAK,EAAE,SAAS,GAAG,cAAc,CAAC;IAErD;;;;OAIG;IACH,sBAAsB,CAAC,mBAAmB,EAAE,MAAM,GAAG,cAAc,CAAC;IAEpE;;;OAGG;IACH,eAAe,IAAI,cAAc,CAAC;CACrC"}
1
+ {"version":3,"file":"ISetBuilder.d.ts","sourceRoot":"","sources":["../../../projections/declarative/ISetBuilder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,WAAW,CAAC,MAAM,EAAE,cAAc;IAC/C;;;;OAIG;IACH,EAAE,CAAC,qBAAqB,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG,cAAc,CAAC;IAEpE;;;;OAIG;IACH,OAAO,CAAC,SAAS,EAAE,KAAK,EAAE,SAAS,GAAG,cAAc,CAAC;IAErD;;;;OAIG;IACH,sBAAsB,CAAC,mBAAmB,EAAE,MAAM,GAAG,cAAc,CAAC;IAEpE;;;OAGG;IACH,eAAe,IAAI,cAAc,CAAC;IAElC;;;;OAIG;IACH,UAAU,CAAC,QAAQ,CAAC,EAAE,gBAAgB,GAAG,cAAc,CAAC;CAC3D"}
@@ -0,0 +1,10 @@
1
+ /** Error thrown when a dictionary key does not resolve to a property path on the event. */
2
+ export declare class InvalidDictionaryKey extends Error {
3
+ readonly path: string;
4
+ /**
5
+ * Creates an error for an unusable dictionary key path.
6
+ * @param path - The path the key accessor resolved to.
7
+ */
8
+ constructor(path: string);
9
+ }
10
+ //# sourceMappingURL=InvalidDictionaryKey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvalidDictionaryKey.d.ts","sourceRoot":"","sources":["../../../projections/declarative/InvalidDictionaryKey.ts"],"names":[],"mappings":"AAGA,2FAA2F;AAC3F,qBAAa,oBAAqB,SAAQ,KAAK;IAK/B,QAAQ,CAAC,IAAI,EAAE,MAAM;IAJjC;;;OAGG;IACH,YAAqB,IAAI,EAAE,MAAM,EAGhC;CACJ"}
@@ -0,0 +1,16 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+ /** Error thrown when a dictionary key does not resolve to a property path on the event. */
4
+ export class InvalidDictionaryKey extends Error {
5
+ path;
6
+ /**
7
+ * Creates an error for an unusable dictionary key path.
8
+ * @param path - The path the key accessor resolved to.
9
+ */
10
+ constructor(path) {
11
+ super(`Invalid dictionary key '${path}'. The key accessor has to select a property on the event, for example 'e => e.category'.`);
12
+ this.path = path;
13
+ this.name = 'InvalidDictionaryKey';
14
+ }
15
+ }
16
+ //# sourceMappingURL=InvalidDictionaryKey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvalidDictionaryKey.js","sourceRoot":"","sources":["../../../projections/declarative/InvalidDictionaryKey.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,2FAA2F;AAC3F,MAAM,OAAO,oBAAqB,SAAQ,KAAK;IAKtB,IAAI;IAJzB;;;OAGG;IACH,YAAqB,IAAY;QAC7B,KAAK,CAAC,2BAA2B,IAAI,2FAA2F,CAAC,CAAC;oBADjH,IAAI;QAErB,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;IACvC,CAAC;CACJ"}
@@ -1,5 +1,6 @@
1
1
  import { PropertyAccessor } from '@cratis/fundamentals';
2
2
  import { ChildAdditionEntry } from './AddChildBuilder.js';
3
+ import { DictionaryKeySource } from './DictionaryKey.js';
3
4
  import { IAddBuilder } from './IAddBuilder.js';
4
5
  import { IAddChildBuilder } from './IAddChildBuilder.js';
5
6
  import { ICompositeKeyBuilder } from './ICompositeKeyBuilder.js';
@@ -25,7 +26,11 @@ export declare class JoinBuilder<TReadModel, TEvent> implements IJoinBuilder<TRe
25
26
  /** @inheritdoc */
26
27
  on(readModelPropertyAccessor: PropertyAccessor<TReadModel>): this;
27
28
  /** @inheritdoc */
28
- set(readModelPropertyAccessor: PropertyAccessor<TReadModel>): ISetBuilder<TEvent, IJoinBuilder<TReadModel, TEvent>>;
29
+ set(readModelPropertyAccessor: PropertyAccessor<TReadModel>, key?: DictionaryKeySource<TEvent>): ISetBuilder<TEvent, IJoinBuilder<TReadModel, TEvent>>;
30
+ /** @inheritdoc */
31
+ setOnce(readModelPropertyAccessor: PropertyAccessor<TReadModel>, key?: DictionaryKeySource<TEvent>): ISetBuilder<TEvent, IJoinBuilder<TReadModel, TEvent>>;
32
+ /** @inheritdoc */
33
+ removeKey(readModelPropertyAccessor: PropertyAccessor<TReadModel>, key: DictionaryKeySource<TEvent>): this;
29
34
  /** @inheritdoc */
30
35
  usingKey(keyAccessor: PropertyAccessor<TEvent>): this;
31
36
  /** @inheritdoc */
@@ -43,15 +48,15 @@ export declare class JoinBuilder<TReadModel, TEvent> implements IJoinBuilder<TRe
43
48
  /** @inheritdoc */
44
49
  usingConstantParentKey(_value: string): this;
45
50
  /** @inheritdoc */
46
- increment(readModelPropertyAccessor: PropertyAccessor<TReadModel>): this;
51
+ increment(readModelPropertyAccessor: PropertyAccessor<TReadModel>, key?: DictionaryKeySource<TEvent>): this;
47
52
  /** @inheritdoc */
48
- decrement(readModelPropertyAccessor: PropertyAccessor<TReadModel>): this;
53
+ decrement(readModelPropertyAccessor: PropertyAccessor<TReadModel>, key?: DictionaryKeySource<TEvent>): this;
49
54
  /** @inheritdoc */
50
- add(readModelPropertyAccessor: PropertyAccessor<TReadModel>): IAddBuilder<TEvent, this>;
55
+ add(readModelPropertyAccessor: PropertyAccessor<TReadModel>, key?: DictionaryKeySource<TEvent>): IAddBuilder<TEvent, this>;
51
56
  /** @inheritdoc */
52
- subtract(readModelPropertyAccessor: PropertyAccessor<TReadModel>): ISubtractBuilder<TEvent, this>;
57
+ subtract(readModelPropertyAccessor: PropertyAccessor<TReadModel>, key?: DictionaryKeySource<TEvent>): ISubtractBuilder<TEvent, this>;
53
58
  /** @inheritdoc */
54
- count(readModelPropertyAccessor: PropertyAccessor<TReadModel>): this;
59
+ count(readModelPropertyAccessor: PropertyAccessor<TReadModel>, key?: DictionaryKeySource<TEvent>): this;
55
60
  /** @inheritdoc */
56
61
  addChild<TChildModel>(targetPropertyAccessor: (model: TReadModel) => readonly TChildModel[] | null | undefined, builderCallback: (builder: IAddChildBuilder<TChildModel, TEvent> & TEvent) => void): this;
57
62
  /** @inheritdoc */
@@ -60,5 +65,12 @@ export declare class JoinBuilder<TReadModel, TEvent> implements IJoinBuilder<TRe
60
65
  addChild<TChildModel>(targetPropertyAccessor: PropertyAccessor<TReadModel>, eventPropertyAccessorOrBuilderCallback: PropertyAccessor<TEvent> | ((builder: IAddChildBuilder<TChildModel, TEvent>) => void)): this;
61
66
  /** @inheritdoc */
62
67
  setThisValue(): ISetBuilder<TEvent, this>;
68
+ /**
69
+ * Resolves the target property path: the property itself, or the entry of a dictionary-typed property.
70
+ * @param readModelPropertyAccessor - Accessor for the read model property.
71
+ * @param key - Optional dictionary key.
72
+ * @returns The target property path.
73
+ */
74
+ private targetOf;
63
75
  }
64
76
  //# sourceMappingURL=JoinBuilder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"JoinBuilder.d.ts","sourceRoot":"","sources":["../../../projections/declarative/JoinBuilder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAoC,MAAM,sBAAsB,CAAC;AAI1F,OAAO,EAAmB,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE3E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAIzD;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,kBAAkB,EAAE,CAAC;CAClC;AAED;;;;GAIG;AACH,qBAAa,WAAW,CAAC,UAAU,EAAE,MA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9H,IAAI,CAAC;IAmBR,kBAAkB;IAClB,YAAY,IAAI,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,CAMxC;IAED;;;;;OAKG;IACH,OAAO,CAAC,QAAQ;CAKnB"}
@@ -3,9 +3,11 @@
3
3
  import { PropertyPathResolverProxyHandler } from '@cratis/fundamentals';
4
4
  import { constantValueExpression } from '../constantValueExpression.js';
5
5
  import { eventContextPropertyExpression } from '../eventContextPropertyExpression.js';
6
+ import { removeExpression, setOnceExpression } from '../propertyExpressions.js';
6
7
  import { AddBuilder } from './AddBuilder.js';
7
8
  import { AddChildBuilder } from './AddChildBuilder.js';
8
9
  import { CompositeKeyBuilder } from './CompositeKeyBuilder.js';
10
+ import { dictionaryEntryPath } from './DictionaryKey.js';
9
11
  import { SetBuilder } from './SetBuilder.js';
10
12
  import { SubtractBuilder } from './SubtractBuilder.js';
11
13
  /**
@@ -29,12 +31,17 @@ export class JoinBuilder {
29
31
  return this;
30
32
  }
31
33
  /** @inheritdoc */
32
- set(readModelPropertyAccessor) {
33
- const handler = new PropertyPathResolverProxyHandler();
34
- const proxy = new Proxy({}, handler);
35
- readModelPropertyAccessor(proxy);
36
- const readModelProperty = handler.property;
37
- return new SetBuilder(readModelProperty, (property, expression) => { this.entry.properties[property] = expression; }, this);
34
+ set(readModelPropertyAccessor, key) {
35
+ return new SetBuilder(this.targetOf(readModelPropertyAccessor, key), (property, expression) => { this.entry.properties[property] = expression; }, this);
36
+ }
37
+ /** @inheritdoc */
38
+ setOnce(readModelPropertyAccessor, key) {
39
+ return new SetBuilder(this.targetOf(readModelPropertyAccessor, key), (property, expression) => { this.entry.properties[property] = setOnceExpression(expression); }, this);
40
+ }
41
+ /** @inheritdoc */
42
+ removeKey(readModelPropertyAccessor, key) {
43
+ this.entry.properties[this.targetOf(readModelPropertyAccessor, key)] = removeExpression;
44
+ return this;
38
45
  }
39
46
  /** @inheritdoc */
40
47
  usingKey(keyAccessor) {
@@ -85,41 +92,26 @@ export class JoinBuilder {
85
92
  return this;
86
93
  }
87
94
  /** @inheritdoc */
88
- increment(readModelPropertyAccessor) {
89
- const handler = new PropertyPathResolverProxyHandler();
90
- const proxy = new Proxy({}, handler);
91
- readModelPropertyAccessor(proxy);
92
- this.entry.properties[handler.property] = '$increment';
95
+ increment(readModelPropertyAccessor, key) {
96
+ this.entry.properties[this.targetOf(readModelPropertyAccessor, key)] = '$increment';
93
97
  return this;
94
98
  }
95
99
  /** @inheritdoc */
96
- decrement(readModelPropertyAccessor) {
97
- const handler = new PropertyPathResolverProxyHandler();
98
- const proxy = new Proxy({}, handler);
99
- readModelPropertyAccessor(proxy);
100
- this.entry.properties[handler.property] = '$decrement';
100
+ decrement(readModelPropertyAccessor, key) {
101
+ this.entry.properties[this.targetOf(readModelPropertyAccessor, key)] = '$decrement';
101
102
  return this;
102
103
  }
103
104
  /** @inheritdoc */
104
- add(readModelPropertyAccessor) {
105
- const handler = new PropertyPathResolverProxyHandler();
106
- const proxy = new Proxy({}, handler);
107
- readModelPropertyAccessor(proxy);
108
- return new AddBuilder(handler.property, (property, expression) => { this.entry.properties[property] = expression; }, this);
105
+ add(readModelPropertyAccessor, key) {
106
+ return new AddBuilder(this.targetOf(readModelPropertyAccessor, key), (property, expression) => { this.entry.properties[property] = expression; }, this);
109
107
  }
110
108
  /** @inheritdoc */
111
- subtract(readModelPropertyAccessor) {
112
- const handler = new PropertyPathResolverProxyHandler();
113
- const proxy = new Proxy({}, handler);
114
- readModelPropertyAccessor(proxy);
115
- return new SubtractBuilder(handler.property, (property, expression) => { this.entry.properties[property] = expression; }, this);
109
+ subtract(readModelPropertyAccessor, key) {
110
+ return new SubtractBuilder(this.targetOf(readModelPropertyAccessor, key), (property, expression) => { this.entry.properties[property] = expression; }, this);
116
111
  }
117
112
  /** @inheritdoc */
118
- count(readModelPropertyAccessor) {
119
- const handler = new PropertyPathResolverProxyHandler();
120
- const proxy = new Proxy({}, handler);
121
- readModelPropertyAccessor(proxy);
122
- this.entry.properties[handler.property] = '$count';
113
+ count(readModelPropertyAccessor, key) {
114
+ this.entry.properties[this.targetOf(readModelPropertyAccessor, key)] = '$count';
123
115
  return this;
124
116
  }
125
117
  addChild(targetPropertyAccessor, eventPropertyAccessorOrBuilderCallback) {
@@ -138,5 +130,16 @@ export class JoinBuilder {
138
130
  setThisValue() {
139
131
  return new SetBuilder('$this', (rp, expr) => { this.entry.properties[rp] = expr; }, this);
140
132
  }
133
+ /**
134
+ * Resolves the target property path: the property itself, or the entry of a dictionary-typed property.
135
+ * @param readModelPropertyAccessor - Accessor for the read model property.
136
+ * @param key - Optional dictionary key.
137
+ * @returns The target property path.
138
+ */
139
+ targetOf(readModelPropertyAccessor, key) {
140
+ const handler = new PropertyPathResolverProxyHandler();
141
+ readModelPropertyAccessor(new Proxy({}, handler));
142
+ return key === undefined ? handler.property : dictionaryEntryPath(handler.property, key);
143
+ }
141
144
  }
142
145
  //# sourceMappingURL=JoinBuilder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"JoinBuilder.js","sourceRoot":"","sources":["../../../projections/declarative/JoinBuilder.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAoB,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAsB,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAO/D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAYvD;;;;GAIG;AACH,MAAM,OAAO,WAAW;IACX,KAAK,GAAc;QACxB,EAAE,EAAE,EAAE;QACN,UAAU,EAAE,EA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QAAQ,EAAE,YAAY,EAAE,KAAK,CAAC,oBAAoB,EAAE,QAAQ,EAAE,KAAK,CAAC,gBAAgB,EAAE,cAAc,EAAE,KAAK,CAAC,sBAAsB,EAAE;YACtK,CAAC,CAAC,EAAE,cAAc,EAAE,aAAa,CAAC,QAAQ,EAAE,iBAAiB,EAAE,KAAK,CAAC,qBAAqB,EAAE,CAAC,CAAC;QAClG,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,kBAAkB;IAClB,YAAY;QACR,OAAO,IAAI,UAAU,CACjB,OAAO,EACP,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,EACnD,IAAI,CACP,CAAC;IACN,CAAC;IAED;;;;;OAKG;IACK,QAAQ,CAAC,yBAAuD,EAAE,GAAiC;QACvG,MAAM,OAAO,GAAG,IAAI,gCAAgC,EAAE,CAAC;QACvD,yBAAyB,CAAC,IAAI,KAAK,CAAC,EAAE,EAAE,OAAO,CAAe,CAAC,CAAC;QAChE,OAAO,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IAC7F,CAAC;CACJ"}
@@ -1,4 +1,5 @@
1
1
  import { AutoMap } from '@cratis/chronicle.contracts';
2
+ import type { ChildrenOrderingDefinitionLike } from '../childrenOrdering.js';
2
3
  import { IFromBuilder } from './IFromBuilder.js';
3
4
  import { IFromEveryBuilder } from './IFromEveryBuilder.js';
4
5
  import { IJoinBuilder } from './IJoinBuilder.js';
@@ -65,6 +66,7 @@ export interface ChildrenDefinitionLike {
65
66
  RemovedWithJoin: RemovedWithJoinRecord[];
66
67
  AutoMap: AutoMap;
67
68
  Nested: Record<string, ChildrenDefinitionLike>;
69
+ Ordering?: ChildrenOrderingDefinitionLike;
68
70
  }
69
71
  /**
70
72
  * Base accumulator shared by every projection-shaped builder (the top-level
@@ -1 +1 @@
1
- {"version":3,"file":"ProjectionBuilderCore.d.ts","sourceRoot":"","sources":["../../../projections/declarative/ProjectionBuilderCore.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAGtD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AASvE,yFAAyF;AACzF,MAAM,MAAM,iBAAiB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,CAAC;AAEvF,sDAAsD;AACtD,MAAM,WAAW,UAAU;IACvB,GAAG,EAAE,iBAAiB,CAAC;IACvB,KAAK,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;CACjF;AAED,sDAAsD;AACtD,MAAM,WAAW,UAAU;IACvB,GAAG,EAAE,iBAAiB,CAAC;IACvB,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CAC1E;AAED,4DAA4D;AAC5D,MAAM,WAAW,iBAAiB;IAC9B,GAAG,EAAE,iBAAiB,CAAC;IACvB,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE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E,kBAAkB,EAAE,KAAK,CAAC,iBAAiB,EAAE,CAAC;YAC1G,CAAC;YAED,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC;gBACtB,GAAG,EAAE,SAAS;gBACd,KAAK,EAAE;oBACH,GAAG,EAAE,KAAK,CAAC,QAAQ,IAAI,gBAAgB;oBACvC,SAAS,EAAE,KAAK,CAAC,cAAc,IAAI,gBAAgB;oBACnD,UAAU,EAAE,EAAE;iBACjB;aACJ,CAAC,CAAC;QACP,CAAC;IACL,CAAC;IAED;;;;OAIG;IACO,mBAAmB,CAAC,oBAA8B;QACxD,MAAM,SAAS,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;QACxD,IAAI,SAAS,CAAC,EAAE,CAAC,KAAK,KAAK,EAAE,EAAE,CAAC;YAC5B,MAAM,IAAI,KAAK,CAAC,eAAe,oBAAoB,CAAC,IAAI,uCAAuC,CAAC,CAAC;QACrG,CAAC;QACD,OAAO;YACH,EAAE,EAAE,SAAS,CAAC,EAAE,CAAC,KAAK;YACtB,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC,KAAK;YACtC,SAAS,EAAE,KAAK;SACnB,CAAC;IACN,CAAC;CACJ"}
@@ -1,5 +1,6 @@
1
1
  import { PropertyAccessor } from '@cratis/fundamentals';
2
2
  import { ISetBuilder } from './ISetBuilder.js';
3
+ import { CausedByProperty } from '../causedBy.js';
3
4
  /**
4
5
  * Concrete implementation of {@link ISetBuilder} that records the property mapping
5
6
  * into the owning from/join builder.
@@ -19,5 +20,7 @@ export declare class SetBuilder<TEvent, TParentBuilder> implements ISetBuilder<T
19
20
  toEventContextProperty(contextPropertyName: string): TParentBuilder;
20
21
  /** @inheritdoc */
21
22
  toEventSourceId(): TParentBuilder;
23
+ /** @inheritdoc */
24
+ toCausedBy(property?: CausedByProperty): TParentBuilder;
22
25
  }
23
26
  //# sourceMappingURL=SetBuilder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SetBuilder.d.ts","sourceRoot":"","sources":["../../../projections/declarative/SetBuilder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAoC,MAAM,sBAAsB,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAI/C;;;;;GAKG;AACH,qBAAa,UAAU,CAAC,MAAM,EAAE,cAAc,CAAE,YAAW,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC;IAEtF,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,OAAO;IAH5B,YACqB,kBAAkB,EAAE,MAAM,EAC1B,YAAY,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,EACjE,OAAO,EAAE,cAAc,EACxC;IAEJ,kBAAkB;IAClB,EAAE,CAAC,qBAAqB,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG,cAAc,CAMlE;IAED,kBAAkB;IAClB,OAAO,CAAC,SAAS,EAAE,KAAK,EAAE,SAAS,GAAG,cAAc,CAGnD;IAED,kBAAkB;IAClB,sBAAsB,CAAC,mBAAmB,EAAE,MAAM,GAAG,cAAc,CAGlE;IAED,kBAAkB;IAClB,eAAe,IAAI,cAAc,CAGhC;CACJ"}
1
+ {"version":3,"file":"SetBuilder.d.ts","sourceRoot":"","sources":["../../../projections/declarative/SetBuilder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAoC,MAAM,sBAAsB,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,gBAAgB,EAAsB,MAAM,gBAAgB,CAAC;AAGtE;;;;;GAKG;AACH,qBAAa,UAAU,CAAC,MAAM,EAAE,cAAc,CAAE,YAAW,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC;IAEtF,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,OAAO;IAH5B,YACqB,kBAAkB,EAAE,MAAM,EAC1B,YAAY,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,EACjE,OAAO,EAAE,cAAc,EACxC;IAEJ,kBAAkB;IAClB,EAAE,CAAC,qBAAqB,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG,cAAc,CAMlE;IAED,kBAAkB;IAClB,OAAO,CAAC,SAAS,EAAE,KAAK,EAAE,SAAS,GAAG,cAAc,CAGnD;IAED,kBAAkB;IAClB,sBAAsB,CAAC,mBAAmB,EAAE,MAAM,GAAG,cAAc,CAGlE;IAED,kBAAkB;IAClB,eAAe,IAAI,cAAc,CAGhC;IAED,kBAAkB;IAClB,UAAU,CAAC,QAAQ,CAAC,EAAE,gBAAgB,GAAG,cAAc,CAGtD;CACJ"}
@@ -2,6 +2,7 @@
2
2
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
3
  import { PropertyPathResolverProxyHandler } from '@cratis/fundamentals';
4
4
  import { constantValueExpression } from '../constantValueExpression.js';
5
+ import { causedByExpression } from '../causedBy.js';
5
6
  import { eventContextPropertyExpression } from '../eventContextPropertyExpression.js';
6
7
  /**
7
8
  * Concrete implementation of {@link ISetBuilder} that records the property mapping
@@ -41,5 +42,10 @@ export class SetBuilder {
41
42
  this._setProperty(this._readModelProperty, '$eventSourceId');
42
43
  return this._parent;
43
44
  }
45
+ /** @inheritdoc */
46
+ toCausedBy(property) {
47
+ this._setProperty(this._readModelProperty, causedByExpression(property));
48
+ return this._parent;
49
+ }
44
50
  }
45
51
  //# sourceMappingURL=SetBuilder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SetBuilder.js","sourceRoot":"","sources":["../../../projections/declarative/SetBuilder.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAoB,gCAAgC,EAAE,MAAM,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,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,CAAC;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,kBAAkB;IAClB,UAAU,CAAC,QAA2B;QAClC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;CACJ"}
@@ -3,6 +3,10 @@ export type { ProjectionMetadata } from './projection.js';
3
3
  export { ProjectionBuilderFor } from './ProjectionBuilderFor.js';
4
4
  export { ProjectionBuilderCore } from './ProjectionBuilderCore.js';
5
5
  export { ChildrenBuilder } from './ChildrenBuilder.js';
6
+ export { ChildrenOrderingAlreadyDefined } from './ChildrenOrderingAlreadyDefined.js';
7
+ export { DictionaryKey } from './DictionaryKey.js';
8
+ export type { DictionaryKeySource } from './DictionaryKey.js';
9
+ export { InvalidDictionaryKey } from './InvalidDictionaryKey.js';
6
10
  export { NestedBuilder } from './NestedBuilder.js';
7
11
  export { AddChildBuilder } from './AddChildBuilder.js';
8
12
  export type { ChildAdditionEntry } from './AddChildBuilder.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../projections/declarative/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAClF,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,YAAY,EAAE,kBAAkB,E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iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,YAAY,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,YAAY,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,YAAY,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AACpF,YAAY,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,YAAY,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,YAAY,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,YAAY,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,YAAY,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,YAAY,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -4,6 +4,9 @@ export { projection, getProjectionMetadata, isProjection } from './projection.js
4
4
  export { ProjectionBuilderFor } from './ProjectionBuilderFor.js';
5
5
  export { ProjectionBuilderCore } from './ProjectionBuilderCore.js';
6
6
  export { ChildrenBuilder } from './ChildrenBuilder.js';
7
+ export { ChildrenOrderingAlreadyDefined } from './ChildrenOrderingAlreadyDefined.js';
8
+ export { DictionaryKey } from './DictionaryKey.js';
9
+ export { InvalidDictionaryKey } from './InvalidDictionaryKey.js';
7
10
  export { NestedBuilder } from './NestedBuilder.js';
8
11
  export { AddChildBuilder } from './AddChildBuilder.js';
9
12
  export { CompositeKeyBuilder } from './CompositeKeyBuilder.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../projections/declarative/index.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAElF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../projections/declarative/index.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAElF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { Constructor } from '@cratis/fundamentals';
2
+ import { Graphs } from '../../graphs/Graphs.js';
3
+ /**
4
+ * Discovers the graphs of the given nodes, edges and fluent graph projections.
5
+ * @param graphElements - The nodes and edges.
6
+ * @param graphProjections - The fluent graph projections.
7
+ * @param sinkTypeId - The sink type of the graphs.
8
+ * @returns The graphs, once discovered, and what is needed to look at what they registered.
9
+ */
10
+ export declare function discoverGraphs(graphElements: Constructor[], graphProjections?: Constructor[], sinkTypeId?: string): Promise<{
11
+ connection: import("../../../connection/ChronicleConnection.js").ChronicleConnection;
12
+ readModelRequests: {
13
+ EventStore: string;
14
+ Owner: number;
15
+ ReadModels: Array<{
16
+ Type: {
17
+ Identifier: string;
18
+ };
19
+ }>;
20
+ Source: number;
21
+ }[];
22
+ projectionRequests: {
23
+ EventStore: string;
24
+ Owner: number;
25
+ Projections: any[];
26
+ }[];
27
+ graphs: Graphs;
28
+ }>;
29
+ //# sourceMappingURL=a_discovered_graph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"a_discovered_graph.d.ts","sourceRoot":"","sources":["../../../../projections/for_Graphs/given/a_discovered_graph.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAIhD;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,aAAa,EAAE,WAAW,EAAE,EAAE,gBAAgB,GAAE,WAAW,EAAO,EAAE,UAAU,SAAU;;;;;;;;;;;;;;;;;;GAK5H"}
@@ -0,0 +1,19 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+ import { Graphs } from '../../graphs/Graphs.js';
4
+ import { aFakeConnection } from './a_fake_connection.js';
5
+ import { artifactsWith } from './organization.js';
6
+ /**
7
+ * Discovers the graphs of the given nodes, edges and fluent graph projections.
8
+ * @param graphElements - The nodes and edges.
9
+ * @param graphProjections - The fluent graph projections.
10
+ * @param sinkTypeId - The sink type of the graphs.
11
+ * @returns The graphs, once discovered, and what is needed to look at what they registered.
12
+ */
13
+ export async function discoverGraphs(graphElements, graphProjections = [], sinkTypeId = 'Neo4j') {
14
+ const fake = aFakeConnection();
15
+ const graphs = new Graphs('the-store', fake.connection, artifactsWith(graphElements, graphProjections), sinkTypeId);
16
+ await graphs.discover();
17
+ return { graphs, ...fake };
18
+ }
19
+ //# sourceMappingURL=a_discovered_graph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"a_discovered_graph.js","sourceRoot":"","sources":["../../../../projections/for_Graphs/given/a_discovered_graph.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAGrG,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,aAA4B,EAAE,gBAAgB,GAAkB,EAAE,EAAE,UAAU,GAAG,OAAO;IACzH,MAAM,IAAI,GAAG,eAAe,EAAE,CAAC;IAC/B,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,WAAW,EAAE,IAAI,CAAC,UAAU,EAAE,aAAa,CAAC,aAAa,EAAE,gBAAgB,CAAC,EAAE,UAAU,CAAC,CAAC;IACpH,MAAM,MAAM,CAAC,QAAQ,EAAE,CAAC;IACxB,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,CAAC;AAC/B,CAAC"}