@cratis/chronicle 6.63.0 → 6.64.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 (366) hide show
  1. package/artifacts/DefaultClientArtifactsProvider.ts +5 -0
  2. package/artifacts/IClientArtifactsProvider.ts +3 -0
  3. package/dist/artifacts/DefaultClientArtifactsProvider.d.ts +2 -0
  4. package/dist/artifacts/DefaultClientArtifactsProvider.d.ts.map +1 -1
  5. package/dist/artifacts/DefaultClientArtifactsProvider.js +4 -0
  6. package/dist/artifacts/DefaultClientArtifactsProvider.js.map +1 -1
  7. package/dist/artifacts/IClientArtifactsProvider.d.ts +2 -0
  8. package/dist/artifacts/IClientArtifactsProvider.d.ts.map +1 -1
  9. package/dist/projections/for_Graphs/given/a_discovered_graph.d.ts +2 -1
  10. package/dist/projections/for_Graphs/given/a_discovered_graph.d.ts.map +1 -1
  11. package/dist/projections/for_Graphs/given/a_discovered_graph.js +3 -2
  12. package/dist/projections/for_Graphs/given/a_discovered_graph.js.map +1 -1
  13. package/dist/projections/for_Graphs/given/a_graph_with_views.d.ts +40 -0
  14. package/dist/projections/for_Graphs/given/a_graph_with_views.d.ts.map +1 -0
  15. package/dist/projections/for_Graphs/given/a_graph_with_views.js +80 -0
  16. package/dist/projections/for_Graphs/given/a_graph_with_views.js.map +1 -0
  17. package/dist/projections/for_Graphs/given/organization.d.ts +2 -1
  18. package/dist/projections/for_Graphs/given/organization.d.ts.map +1 -1
  19. package/dist/projections/for_Graphs/given/organization.js +3 -2
  20. package/dist/projections/for_Graphs/given/organization.js.map +1 -1
  21. package/dist/projections/graphs/Graphs.d.ts +5 -0
  22. package/dist/projections/graphs/Graphs.d.ts.map +1 -1
  23. package/dist/projections/graphs/Graphs.js +43 -0
  24. package/dist/projections/graphs/Graphs.js.map +1 -1
  25. package/dist/projections/graphs/IGraphs.d.ts +9 -2
  26. package/dist/projections/graphs/IGraphs.d.ts.map +1 -1
  27. package/dist/projections/graphs/index.d.ts +1 -0
  28. package/dist/projections/graphs/index.d.ts.map +1 -1
  29. package/dist/projections/graphs/index.js +1 -0
  30. package/dist/projections/graphs/index.js.map +1 -1
  31. package/dist/projections/graphs/views/AmbiguousDirection.d.ts +16 -0
  32. package/dist/projections/graphs/views/AmbiguousDirection.d.ts.map +1 -0
  33. package/dist/projections/graphs/views/AmbiguousDirection.js +21 -0
  34. package/dist/projections/graphs/views/AmbiguousDirection.js.map +1 -0
  35. package/dist/projections/graphs/views/DuplicateViewName.d.ts +16 -0
  36. package/dist/projections/graphs/views/DuplicateViewName.d.ts.map +1 -0
  37. package/dist/projections/graphs/views/DuplicateViewName.js +21 -0
  38. package/dist/projections/graphs/views/DuplicateViewName.js.map +1 -0
  39. package/dist/projections/graphs/views/EdgeNotIncidentOnRoot.d.ts +17 -0
  40. package/dist/projections/graphs/views/EdgeNotIncidentOnRoot.d.ts.map +1 -0
  41. package/dist/projections/graphs/views/EdgeNotIncidentOnRoot.js +22 -0
  42. package/dist/projections/graphs/views/EdgeNotIncidentOnRoot.js.map +1 -0
  43. package/dist/projections/graphs/views/EdgePropertyViewNotUsedAsTarget.d.ts +14 -0
  44. package/dist/projections/graphs/views/EdgePropertyViewNotUsedAsTarget.d.ts.map +1 -0
  45. package/dist/projections/graphs/views/EdgePropertyViewNotUsedAsTarget.js +19 -0
  46. package/dist/projections/graphs/views/EdgePropertyViewNotUsedAsTarget.js.map +1 -0
  47. package/dist/projections/graphs/views/EdgePropertyViewSharedAcrossEdges.d.ts +15 -0
  48. package/dist/projections/graphs/views/EdgePropertyViewSharedAcrossEdges.d.ts.map +1 -0
  49. package/dist/projections/graphs/views/EdgePropertyViewSharedAcrossEdges.js +20 -0
  50. package/dist/projections/graphs/views/EdgePropertyViewSharedAcrossEdges.js.map +1 -0
  51. package/dist/projections/graphs/views/FollowsOptions.d.ts +16 -0
  52. package/dist/projections/graphs/views/FollowsOptions.d.ts.map +1 -0
  53. package/dist/projections/graphs/views/FollowsOptions.js +4 -0
  54. package/dist/projections/graphs/views/FollowsOptions.js.map +1 -0
  55. package/dist/projections/graphs/views/GraphEdgeDirection.d.ts +10 -0
  56. package/dist/projections/graphs/views/GraphEdgeDirection.d.ts.map +1 -0
  57. package/dist/projections/graphs/views/GraphEdgeDirection.js +13 -0
  58. package/dist/projections/graphs/views/GraphEdgeDirection.js.map +1 -0
  59. package/dist/projections/graphs/views/GraphView.d.ts +13 -0
  60. package/dist/projections/graphs/views/GraphView.d.ts.map +1 -0
  61. package/dist/projections/graphs/views/GraphView.js +4 -0
  62. package/dist/projections/graphs/views/GraphView.js.map +1 -0
  63. package/dist/projections/graphs/views/GraphViewBuildResult.d.ts +15 -0
  64. package/dist/projections/graphs/views/GraphViewBuildResult.d.ts.map +1 -0
  65. package/dist/projections/graphs/views/GraphViewBuildResult.js +4 -0
  66. package/dist/projections/graphs/views/GraphViewBuildResult.js.map +1 -0
  67. package/dist/projections/graphs/views/GraphViewCardinality.d.ts +10 -0
  68. package/dist/projections/graphs/views/GraphViewCardinality.d.ts.map +1 -0
  69. package/dist/projections/graphs/views/GraphViewCardinality.js +13 -0
  70. package/dist/projections/graphs/views/GraphViewCardinality.js.map +1 -0
  71. package/dist/projections/graphs/views/GraphViewDefinition.d.ts +15 -0
  72. package/dist/projections/graphs/views/GraphViewDefinition.d.ts.map +1 -0
  73. package/dist/projections/graphs/views/GraphViewDefinition.js +4 -0
  74. package/dist/projections/graphs/views/GraphViewDefinition.js.map +1 -0
  75. package/dist/projections/graphs/views/GraphViewDefinitionBuilder.d.ts +30 -0
  76. package/dist/projections/graphs/views/GraphViewDefinitionBuilder.d.ts.map +1 -0
  77. package/dist/projections/graphs/views/GraphViewDefinitionBuilder.js +259 -0
  78. package/dist/projections/graphs/views/GraphViewDefinitionBuilder.js.map +1 -0
  79. package/dist/projections/graphs/views/GraphViewDefinitionSerializer.d.ts +21 -0
  80. package/dist/projections/graphs/views/GraphViewDefinitionSerializer.d.ts.map +1 -0
  81. package/dist/projections/graphs/views/GraphViewDefinitionSerializer.js +77 -0
  82. package/dist/projections/graphs/views/GraphViewDefinitionSerializer.js.map +1 -0
  83. package/dist/projections/graphs/views/GraphViewEdgeReference.d.ts +6 -0
  84. package/dist/projections/graphs/views/GraphViewEdgeReference.d.ts.map +1 -0
  85. package/dist/projections/graphs/views/GraphViewEdgeReference.js +4 -0
  86. package/dist/projections/graphs/views/GraphViewEdgeReference.js.map +1 -0
  87. package/dist/projections/graphs/views/GraphViewMember.d.ts +8 -0
  88. package/dist/projections/graphs/views/GraphViewMember.d.ts.map +1 -0
  89. package/dist/projections/graphs/views/GraphViewMember.js +4 -0
  90. package/dist/projections/graphs/views/GraphViewMember.js.map +1 -0
  91. package/dist/projections/graphs/views/GraphViewMemberKind.d.ts +12 -0
  92. package/dist/projections/graphs/views/GraphViewMemberKind.d.ts.map +1 -0
  93. package/dist/projections/graphs/views/GraphViewMemberKind.js +15 -0
  94. package/dist/projections/graphs/views/GraphViewMemberKind.js.map +1 -0
  95. package/dist/projections/graphs/views/GraphViewMemberMetadata.d.ts +22 -0
  96. package/dist/projections/graphs/views/GraphViewMemberMetadata.d.ts.map +1 -0
  97. package/dist/projections/graphs/views/GraphViewMemberMetadata.js +4 -0
  98. package/dist/projections/graphs/views/GraphViewMemberMetadata.js.map +1 -0
  99. package/dist/projections/graphs/views/GraphViewPropertyMember.d.ts +13 -0
  100. package/dist/projections/graphs/views/GraphViewPropertyMember.d.ts.map +1 -0
  101. package/dist/projections/graphs/views/GraphViewPropertyMember.js +4 -0
  102. package/dist/projections/graphs/views/GraphViewPropertyMember.js.map +1 -0
  103. package/dist/projections/graphs/views/GraphViewReason.d.ts +33 -0
  104. package/dist/projections/graphs/views/GraphViewReason.d.ts.map +1 -0
  105. package/dist/projections/graphs/views/GraphViewReason.js +36 -0
  106. package/dist/projections/graphs/views/GraphViewReason.js.map +1 -0
  107. package/dist/projections/graphs/views/GraphViewRelationMember.d.ts +21 -0
  108. package/dist/projections/graphs/views/GraphViewRelationMember.d.ts.map +1 -0
  109. package/dist/projections/graphs/views/GraphViewRelationMember.js +4 -0
  110. package/dist/projections/graphs/views/GraphViewRelationMember.js.map +1 -0
  111. package/dist/projections/graphs/views/GraphViewSchema.d.ts +10 -0
  112. package/dist/projections/graphs/views/GraphViewSchema.d.ts.map +1 -0
  113. package/dist/projections/graphs/views/GraphViewSchema.js +4 -0
  114. package/dist/projections/graphs/views/GraphViewSchema.js.map +1 -0
  115. package/dist/projections/graphs/views/GraphViewSchemaEdge.d.ts +14 -0
  116. package/dist/projections/graphs/views/GraphViewSchemaEdge.d.ts.map +1 -0
  117. package/dist/projections/graphs/views/GraphViewSchemaEdge.js +4 -0
  118. package/dist/projections/graphs/views/GraphViewSchemaEdge.js.map +1 -0
  119. package/dist/projections/graphs/views/GraphViewSchemaNode.d.ts +10 -0
  120. package/dist/projections/graphs/views/GraphViewSchemaNode.d.ts.map +1 -0
  121. package/dist/projections/graphs/views/GraphViewSchemaNode.js +4 -0
  122. package/dist/projections/graphs/views/GraphViewSchemaNode.js.map +1 -0
  123. package/dist/projections/graphs/views/GraphViewSerializerOptions.d.ts +9 -0
  124. package/dist/projections/graphs/views/GraphViewSerializerOptions.d.ts.map +1 -0
  125. package/dist/projections/graphs/views/GraphViewSerializerOptions.js +4 -0
  126. package/dist/projections/graphs/views/GraphViewSerializerOptions.js.map +1 -0
  127. package/dist/projections/graphs/views/RecursiveView.d.ts +15 -0
  128. package/dist/projections/graphs/views/RecursiveView.d.ts.map +1 -0
  129. package/dist/projections/graphs/views/RecursiveView.js +20 -0
  130. package/dist/projections/graphs/views/RecursiveView.js.map +1 -0
  131. package/dist/projections/graphs/views/RelationTargetNotAView.d.ts +16 -0
  132. package/dist/projections/graphs/views/RelationTargetNotAView.d.ts.map +1 -0
  133. package/dist/projections/graphs/views/RelationTargetNotAView.js +21 -0
  134. package/dist/projections/graphs/views/RelationTargetNotAView.js.map +1 -0
  135. package/dist/projections/graphs/views/TargetLabelMismatch.d.ts +18 -0
  136. package/dist/projections/graphs/views/TargetLabelMismatch.d.ts.map +1 -0
  137. package/dist/projections/graphs/views/TargetLabelMismatch.js +23 -0
  138. package/dist/projections/graphs/views/TargetLabelMismatch.js.map +1 -0
  139. package/dist/projections/graphs/views/UnknownEdge.d.ts +16 -0
  140. package/dist/projections/graphs/views/UnknownEdge.d.ts.map +1 -0
  141. package/dist/projections/graphs/views/UnknownEdge.js +21 -0
  142. package/dist/projections/graphs/views/UnknownEdge.js.map +1 -0
  143. package/dist/projections/graphs/views/UnknownEdgeProperty.d.ts +17 -0
  144. package/dist/projections/graphs/views/UnknownEdgeProperty.d.ts.map +1 -0
  145. package/dist/projections/graphs/views/UnknownEdgeProperty.js +22 -0
  146. package/dist/projections/graphs/views/UnknownEdgeProperty.js.map +1 -0
  147. package/dist/projections/graphs/views/UnknownNodeProperty.d.ts +17 -0
  148. package/dist/projections/graphs/views/UnknownNodeProperty.d.ts.map +1 -0
  149. package/dist/projections/graphs/views/UnknownNodeProperty.js +22 -0
  150. package/dist/projections/graphs/views/UnknownNodeProperty.js.map +1 -0
  151. package/dist/projections/graphs/views/ViewIsAlsoSchema.d.ts +14 -0
  152. package/dist/projections/graphs/views/ViewIsAlsoSchema.d.ts.map +1 -0
  153. package/dist/projections/graphs/views/ViewIsAlsoSchema.js +19 -0
  154. package/dist/projections/graphs/views/ViewIsAlsoSchema.js.map +1 -0
  155. package/dist/projections/graphs/views/ViewOfMetadata.d.ts +8 -0
  156. package/dist/projections/graphs/views/ViewOfMetadata.d.ts.map +1 -0
  157. package/dist/projections/graphs/views/ViewOfMetadata.js +4 -0
  158. package/dist/projections/graphs/views/ViewOfMetadata.js.map +1 -0
  159. package/dist/projections/graphs/views/ViewOfOptions.d.ts +6 -0
  160. package/dist/projections/graphs/views/ViewOfOptions.d.ts.map +1 -0
  161. package/dist/projections/graphs/views/ViewOfOptions.js +4 -0
  162. package/dist/projections/graphs/views/ViewOfOptions.js.map +1 -0
  163. package/dist/projections/graphs/views/ViewRootNotANode.d.ts +16 -0
  164. package/dist/projections/graphs/views/ViewRootNotANode.d.ts.map +1 -0
  165. package/dist/projections/graphs/views/ViewRootNotANode.js +21 -0
  166. package/dist/projections/graphs/views/ViewRootNotANode.js.map +1 -0
  167. package/dist/projections/graphs/views/declareGraphViewMember.d.ts +17 -0
  168. package/dist/projections/graphs/views/declareGraphViewMember.d.ts.map +1 -0
  169. package/dist/projections/graphs/views/declareGraphViewMember.js +31 -0
  170. package/dist/projections/graphs/views/declareGraphViewMember.js.map +1 -0
  171. package/dist/projections/graphs/views/follows.d.ts +13 -0
  172. package/dist/projections/graphs/views/follows.d.ts.map +1 -0
  173. package/dist/projections/graphs/views/follows.js +24 -0
  174. package/dist/projections/graphs/views/follows.js.map +1 -0
  175. package/dist/projections/graphs/views/fromEdge.d.ts +10 -0
  176. package/dist/projections/graphs/views/fromEdge.d.ts.map +1 -0
  177. package/dist/projections/graphs/views/fromEdge.js +15 -0
  178. package/dist/projections/graphs/views/fromEdge.js.map +1 -0
  179. package/dist/projections/graphs/views/index.d.ts +41 -0
  180. package/dist/projections/graphs/views/index.d.ts.map +1 -0
  181. package/dist/projections/graphs/views/index.js +28 -0
  182. package/dist/projections/graphs/views/index.js.map +1 -0
  183. package/dist/projections/graphs/views/viewKey.d.ts +8 -0
  184. package/dist/projections/graphs/views/viewKey.d.ts.map +1 -0
  185. package/dist/projections/graphs/views/viewKey.js +13 -0
  186. package/dist/projections/graphs/views/viewKey.js.map +1 -0
  187. package/dist/projections/graphs/views/viewOf.d.ts +22 -0
  188. package/dist/projections/graphs/views/viewOf.d.ts.map +1 -0
  189. package/dist/projections/graphs/views/viewOf.js +41 -0
  190. package/dist/projections/graphs/views/viewOf.js.map +1 -0
  191. package/dist/projections/graphs/views/viewProperty.d.ts +9 -0
  192. package/dist/projections/graphs/views/viewProperty.d.ts.map +1 -0
  193. package/dist/projections/graphs/views/viewProperty.js +14 -0
  194. package/dist/projections/graphs/views/viewProperty.js.map +1 -0
  195. package/dist/testing/InProcessAppendMetadata.d.ts +30 -0
  196. package/dist/testing/InProcessAppendMetadata.d.ts.map +1 -0
  197. package/dist/testing/InProcessAppendMetadata.js +107 -0
  198. package/dist/testing/InProcessAppendMetadata.js.map +1 -0
  199. package/dist/testing/InProcessBatchAppend.d.ts +62 -0
  200. package/dist/testing/InProcessBatchAppend.d.ts.map +1 -0
  201. package/dist/testing/InProcessBatchAppend.js +131 -0
  202. package/dist/testing/InProcessBatchAppend.js.map +1 -0
  203. package/dist/testing/InProcessEventPayload.d.ts +23 -0
  204. package/dist/testing/InProcessEventPayload.d.ts.map +1 -0
  205. package/dist/testing/InProcessEventPayload.js +94 -0
  206. package/dist/testing/InProcessEventPayload.js.map +1 -0
  207. package/dist/testing/InProcessEventReadCriteria.d.ts +9 -0
  208. package/dist/testing/InProcessEventReadCriteria.d.ts.map +1 -0
  209. package/dist/testing/InProcessEventReadCriteria.js +4 -0
  210. package/dist/testing/InProcessEventReadCriteria.js.map +1 -0
  211. package/dist/testing/InProcessEventReadFilter.d.ts +14 -0
  212. package/dist/testing/InProcessEventReadFilter.d.ts.map +1 -0
  213. package/dist/testing/InProcessEventReadFilter.js +31 -0
  214. package/dist/testing/InProcessEventReadFilter.js.map +1 -0
  215. package/dist/testing/InProcessEventSequence.d.ts +8 -5
  216. package/dist/testing/InProcessEventSequence.d.ts.map +1 -1
  217. package/dist/testing/InProcessEventSequence.js +59 -275
  218. package/dist/testing/InProcessEventSequence.js.map +1 -1
  219. package/dist/testing/InProcessEventSequenceEnvironment.d.ts +13 -0
  220. package/dist/testing/InProcessEventSequenceEnvironment.d.ts.map +1 -0
  221. package/dist/testing/InProcessEventSequenceEnvironment.js +4 -0
  222. package/dist/testing/InProcessEventSequenceEnvironment.js.map +1 -0
  223. package/dist/testing/InProcessSingleAppend.d.ts +34 -0
  224. package/dist/testing/InProcessSingleAppend.d.ts.map +1 -0
  225. package/dist/testing/InProcessSingleAppend.js +95 -0
  226. package/dist/testing/InProcessSingleAppend.js.map +1 -0
  227. package/dist/testing/projections/ProjectionCapabilities.d.ts +0 -8
  228. package/dist/testing/projections/ProjectionCapabilities.d.ts.map +1 -1
  229. package/dist/testing/projections/ProjectionCapabilities.js +21 -312
  230. package/dist/testing/projections/ProjectionCapabilities.js.map +1 -1
  231. package/dist/testing/projections/ProjectionCapabilityReject.d.ts +3 -0
  232. package/dist/testing/projections/ProjectionCapabilityReject.d.ts.map +1 -0
  233. package/dist/testing/projections/ProjectionCapabilityReject.js +4 -0
  234. package/dist/testing/projections/ProjectionCapabilityReject.js.map +1 -0
  235. package/dist/testing/projections/ProjectionCapabilityReporter.d.ts +12 -0
  236. package/dist/testing/projections/ProjectionCapabilityReporter.d.ts.map +1 -0
  237. package/dist/testing/projections/ProjectionCapabilityReporter.js +33 -0
  238. package/dist/testing/projections/ProjectionCapabilityReporter.js.map +1 -0
  239. package/dist/testing/projections/ProjectionDefinitionCapabilities.d.ts +11 -0
  240. package/dist/testing/projections/ProjectionDefinitionCapabilities.d.ts.map +1 -0
  241. package/dist/testing/projections/ProjectionDefinitionCapabilities.js +45 -0
  242. package/dist/testing/projections/ProjectionDefinitionCapabilities.js.map +1 -0
  243. package/dist/testing/projections/ProjectionEventSchemaResolver.d.ts +13 -0
  244. package/dist/testing/projections/ProjectionEventSchemaResolver.d.ts.map +1 -0
  245. package/dist/testing/projections/ProjectionEventSchemaResolver.js +22 -0
  246. package/dist/testing/projections/ProjectionEventSchemaResolver.js.map +1 -0
  247. package/dist/testing/projections/ProjectionExpressionCapabilities.d.ts +19 -0
  248. package/dist/testing/projections/ProjectionExpressionCapabilities.d.ts.map +1 -0
  249. package/dist/testing/projections/ProjectionExpressionCapabilities.js +103 -0
  250. package/dist/testing/projections/ProjectionExpressionCapabilities.js.map +1 -0
  251. package/dist/testing/projections/ProjectionInitialValueCapabilities.d.ts +16 -0
  252. package/dist/testing/projections/ProjectionInitialValueCapabilities.d.ts.map +1 -0
  253. package/dist/testing/projections/ProjectionInitialValueCapabilities.js +72 -0
  254. package/dist/testing/projections/ProjectionInitialValueCapabilities.js.map +1 -0
  255. package/dist/testing/projections/ProjectionMappingCapabilities.d.ts +21 -0
  256. package/dist/testing/projections/ProjectionMappingCapabilities.d.ts.map +1 -0
  257. package/dist/testing/projections/ProjectionMappingCapabilities.js +86 -0
  258. package/dist/testing/projections/ProjectionMappingCapabilities.js.map +1 -0
  259. package/dist/testing/projections/ProjectionMappingValidation.d.ts +9 -0
  260. package/dist/testing/projections/ProjectionMappingValidation.d.ts.map +1 -0
  261. package/dist/testing/projections/ProjectionMappingValidation.js +4 -0
  262. package/dist/testing/projections/ProjectionMappingValidation.js.map +1 -0
  263. package/dist/testing/projections/ProjectionReadModelCapabilities.d.ts +11 -0
  264. package/dist/testing/projections/ProjectionReadModelCapabilities.d.ts.map +1 -0
  265. package/dist/testing/projections/ProjectionReadModelCapabilities.js +40 -0
  266. package/dist/testing/projections/ProjectionReadModelCapabilities.js.map +1 -0
  267. package/dist/testing/projections/ProjectionRootCapabilities.d.ts +20 -0
  268. package/dist/testing/projections/ProjectionRootCapabilities.d.ts.map +1 -0
  269. package/dist/testing/projections/ProjectionRootCapabilities.js +73 -0
  270. package/dist/testing/projections/ProjectionRootCapabilities.js.map +1 -0
  271. package/dist/testing/projections/ProjectionScalarConverter.d.ts +21 -0
  272. package/dist/testing/projections/ProjectionScalarConverter.d.ts.map +1 -0
  273. package/dist/testing/projections/ProjectionScalarConverter.js +105 -0
  274. package/dist/testing/projections/ProjectionScalarConverter.js.map +1 -0
  275. package/dist/testing/projections/ProjectionSchemaCapabilities.d.ts +26 -0
  276. package/dist/testing/projections/ProjectionSchemaCapabilities.d.ts.map +1 -0
  277. package/dist/testing/projections/ProjectionSchemaCapabilities.js +109 -0
  278. package/dist/testing/projections/ProjectionSchemaCapabilities.js.map +1 -0
  279. package/dist/testing/projections/ProjectionValueConverter.d.ts +5 -0
  280. package/dist/testing/projections/ProjectionValueConverter.d.ts.map +1 -1
  281. package/dist/testing/projections/ProjectionValueConverter.js +36 -84
  282. package/dist/testing/projections/ProjectionValueConverter.js.map +1 -1
  283. package/dist/tsconfig.tsbuildinfo +1 -1
  284. package/dist/types/DecoratorType.d.ts +3 -1
  285. package/dist/types/DecoratorType.d.ts.map +1 -1
  286. package/dist/types/DecoratorType.js +2 -0
  287. package/dist/types/DecoratorType.js.map +1 -1
  288. package/package.json +2 -2
  289. package/projections/for_Graphs/given/a_discovered_graph.ts +3 -2
  290. package/projections/for_Graphs/given/a_graph_with_views.ts +91 -0
  291. package/projections/for_Graphs/given/organization.ts +3 -2
  292. package/projections/for_Graphs/given/organization_with_views.fixture.ts +129 -0
  293. package/projections/for_Graphs/when_building_graph_views.spec.ts +218 -0
  294. package/projections/for_Graphs/when_declaring_an_invalid_graph_view.spec.ts +229 -0
  295. package/projections/for_Graphs/when_declaring_graph_views.standard.spec.ts +49 -0
  296. package/projections/for_Graphs/when_discovering_graph_views.spec.ts +58 -0
  297. package/projections/graphs/Graphs.ts +44 -0
  298. package/projections/graphs/IGraphs.ts +10 -2
  299. package/projections/graphs/index.ts +1 -0
  300. package/projections/graphs/views/AmbiguousDirection.ts +23 -0
  301. package/projections/graphs/views/DuplicateViewName.ts +23 -0
  302. package/projections/graphs/views/EdgeNotIncidentOnRoot.ts +24 -0
  303. package/projections/graphs/views/EdgePropertyViewNotUsedAsTarget.ts +21 -0
  304. package/projections/graphs/views/EdgePropertyViewSharedAcrossEdges.ts +22 -0
  305. package/projections/graphs/views/FollowsOptions.ts +20 -0
  306. package/projections/graphs/views/GraphEdgeDirection.ts +13 -0
  307. package/projections/graphs/views/GraphView.ts +18 -0
  308. package/projections/graphs/views/GraphViewBuildResult.ts +19 -0
  309. package/projections/graphs/views/GraphViewCardinality.ts +13 -0
  310. package/projections/graphs/views/GraphViewDefinition.ts +20 -0
  311. package/projections/graphs/views/GraphViewDefinitionBuilder.ts +322 -0
  312. package/projections/graphs/views/GraphViewDefinitionSerializer.ts +90 -0
  313. package/projections/graphs/views/GraphViewEdgeReference.ts +8 -0
  314. package/projections/graphs/views/GraphViewMember.ts +11 -0
  315. package/projections/graphs/views/GraphViewMemberKind.ts +16 -0
  316. package/projections/graphs/views/GraphViewMemberMetadata.ts +31 -0
  317. package/projections/graphs/views/GraphViewPropertyMember.ts +18 -0
  318. package/projections/graphs/views/GraphViewReason.ts +47 -0
  319. package/projections/graphs/views/GraphViewRelationMember.ts +29 -0
  320. package/projections/graphs/views/GraphViewSchema.ts +14 -0
  321. package/projections/graphs/views/GraphViewSchemaEdge.ts +20 -0
  322. package/projections/graphs/views/GraphViewSchemaNode.ts +14 -0
  323. package/projections/graphs/views/GraphViewSerializerOptions.ts +11 -0
  324. package/projections/graphs/views/RecursiveView.ts +22 -0
  325. package/projections/graphs/views/RelationTargetNotAView.ts +23 -0
  326. package/projections/graphs/views/TargetLabelMismatch.ts +25 -0
  327. package/projections/graphs/views/UnknownEdge.ts +23 -0
  328. package/projections/graphs/views/UnknownEdgeProperty.ts +24 -0
  329. package/projections/graphs/views/UnknownNodeProperty.ts +24 -0
  330. package/projections/graphs/views/ViewIsAlsoSchema.ts +21 -0
  331. package/projections/graphs/views/ViewOfMetadata.ts +11 -0
  332. package/projections/graphs/views/ViewOfOptions.ts +8 -0
  333. package/projections/graphs/views/ViewRootNotANode.ts +23 -0
  334. package/projections/graphs/views/declareGraphViewMember.ts +36 -0
  335. package/projections/graphs/views/follows.ts +28 -0
  336. package/projections/graphs/views/fromEdge.ts +17 -0
  337. package/projections/graphs/views/index.ts +43 -0
  338. package/projections/graphs/views/viewKey.ts +15 -0
  339. package/projections/graphs/views/viewOf.ts +50 -0
  340. package/projections/graphs/views/viewProperty.ts +16 -0
  341. package/testing/InProcessAppendMetadata.ts +119 -0
  342. package/testing/InProcessBatchAppend.ts +142 -0
  343. package/testing/InProcessEventPayload.ts +100 -0
  344. package/testing/InProcessEventReadCriteria.ts +11 -0
  345. package/testing/InProcessEventReadFilter.ts +37 -0
  346. package/testing/InProcessEventSequence.ts +63 -257
  347. package/testing/InProcessEventSequenceEnvironment.ts +16 -0
  348. package/testing/InProcessSingleAppend.ts +99 -0
  349. package/testing/for_InProcessEventSequence/when_preserving_validation_and_commit_order.spec.ts +95 -0
  350. package/testing/projections/ProjectionCapabilities.ts +23 -279
  351. package/testing/projections/ProjectionCapabilityReject.ts +5 -0
  352. package/testing/projections/ProjectionCapabilityReporter.ts +31 -0
  353. package/testing/projections/ProjectionDefinitionCapabilities.ts +45 -0
  354. package/testing/projections/ProjectionEventSchemaResolver.ts +23 -0
  355. package/testing/projections/ProjectionExpressionCapabilities.ts +101 -0
  356. package/testing/projections/ProjectionInitialValueCapabilities.ts +73 -0
  357. package/testing/projections/ProjectionMappingCapabilities.ts +85 -0
  358. package/testing/projections/ProjectionMappingValidation.ts +12 -0
  359. package/testing/projections/ProjectionReadModelCapabilities.ts +42 -0
  360. package/testing/projections/ProjectionRootCapabilities.ts +75 -0
  361. package/testing/projections/ProjectionScalarConverter.ts +106 -0
  362. package/testing/projections/ProjectionSchemaCapabilities.ts +112 -0
  363. package/testing/projections/ProjectionValueConverter.ts +37 -76
  364. package/testing/projections/for_ProjectionCapabilities/when_reporting_the_first_unsupported_operation.spec.ts +74 -0
  365. package/testing/projections/for_ProjectionValueConverter/when_converting_structured_and_scalar_values.spec.ts +64 -0
  366. package/types/DecoratorType.ts +4 -1
@@ -0,0 +1,21 @@
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 { GraphViewReason } from './GraphViewReason.js';
4
+ /**
5
+ * Error raised when two views of a graph have the same name.
6
+ */
7
+ export class DuplicateViewName extends Error {
8
+ /** The stable reason code of the rule that was broken. */
9
+ reason = GraphViewReason.DuplicateViewName;
10
+ /**
11
+ * Creates a new {@link DuplicateViewName}.
12
+ * @param view - The view type that repeats the name.
13
+ * @param graph - The name of the graph.
14
+ * @param name - The name of the view.
15
+ */
16
+ constructor(view, graph, name) {
17
+ super(`The view '${view.name}' repeats the view name '${name}' in the graph '${graph}'. Give it another name with viewOf.`);
18
+ this.name = 'DuplicateViewName';
19
+ }
20
+ }
21
+ //# sourceMappingURL=DuplicateViewName.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DuplicateViewName.js","sourceRoot":"","sources":["../../../../projections/graphs/views/DuplicateViewName.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IACxC,0DAA0D;IACjD,MAAM,GAAG,eAAe,CAAC,iBAAiB,CAAC;IAEpD;;;;;OAKG;IACH,YAAY,IAAc,EAAE,KAAa,EAAE,IAAY;QACnD,KAAK,CAAC,aAAa,IAAI,CAAC,IAAI,4BAA4B,IAAI,mBAAmB,KAAK,sCAAsC,CAAC,CAAC;QAC5H,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;IACpC,CAAC;CACJ"}
@@ -0,0 +1,17 @@
1
+ import { GraphViewReason } from './GraphViewReason.js';
2
+ /**
3
+ * Error raised when a relation follows an edge that does not start or end at the root of the view.
4
+ */
5
+ export declare class EdgeNotIncidentOnRoot extends Error {
6
+ /** The stable reason code of the rule that was broken. */
7
+ readonly reason = GraphViewReason.EdgeNotIncidentOnRoot;
8
+ /**
9
+ * Creates a new {@link EdgeNotIncidentOnRoot}.
10
+ * @param view - The view type.
11
+ * @param member - The name of the member.
12
+ * @param edge - The edge type.
13
+ * @param root - The label of the root of the view.
14
+ */
15
+ constructor(view: Function, member: string, edge: string, root: string);
16
+ }
17
+ //# sourceMappingURL=EdgeNotIncidentOnRoot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeNotIncidentOnRoot.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/EdgeNotIncidentOnRoot.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,KAAK;IAC5C,0DAA0D;IAC1D,QAAQ,CAAC,MAAM,yCAAyC;IAExD;;;;;;OAMG;IACH,YAAY,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAGrE;CACJ"}
@@ -0,0 +1,22 @@
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 { GraphViewReason } from './GraphViewReason.js';
4
+ /**
5
+ * Error raised when a relation follows an edge that does not start or end at the root of the view.
6
+ */
7
+ export class EdgeNotIncidentOnRoot extends Error {
8
+ /** The stable reason code of the rule that was broken. */
9
+ reason = GraphViewReason.EdgeNotIncidentOnRoot;
10
+ /**
11
+ * Creates a new {@link EdgeNotIncidentOnRoot}.
12
+ * @param view - The view type.
13
+ * @param member - The name of the member.
14
+ * @param edge - The edge type.
15
+ * @param root - The label of the root of the view.
16
+ */
17
+ constructor(view, member, edge, root) {
18
+ super(`The member '${member}' of the view '${view.name}' follows '${edge}' in a direction that does not start at '${root}', the root of the view.`);
19
+ this.name = 'EdgeNotIncidentOnRoot';
20
+ }
21
+ }
22
+ //# sourceMappingURL=EdgeNotIncidentOnRoot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeNotIncidentOnRoot.js","sourceRoot":"","sources":["../../../../projections/graphs/views/EdgeNotIncidentOnRoot.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,KAAK;IAC5C,0DAA0D;IACjD,MAAM,GAAG,eAAe,CAAC,qBAAqB,CAAC;IAExD;;;;;;OAMG;IACH,YAAY,IAAc,EAAE,MAAc,EAAE,IAAY,EAAE,IAAY;QAClE,KAAK,CAAC,eAAe,MAAM,kBAAkB,IAAI,CAAC,IAAI,cAAc,IAAI,4CAA4C,IAAI,0BAA0B,CAAC,CAAC;QACpJ,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC;IACxC,CAAC;CACJ"}
@@ -0,0 +1,14 @@
1
+ import { GraphViewReason } from './GraphViewReason.js';
2
+ /**
3
+ * Error raised when a view with edge property members is not the target of any relation.
4
+ */
5
+ export declare class EdgePropertyViewNotUsedAsTarget extends Error {
6
+ /** The stable reason code of the rule that was broken. */
7
+ readonly reason = GraphViewReason.EdgePropertyViewNotUsedAsTarget;
8
+ /**
9
+ * Creates a new {@link EdgePropertyViewNotUsedAsTarget}.
10
+ * @param view - The view type.
11
+ */
12
+ constructor(view: Function);
13
+ }
14
+ //# sourceMappingURL=EdgePropertyViewNotUsedAsTarget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgePropertyViewNotUsedAsTarget.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/EdgePropertyViewNotUsedAsTarget.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,qBAAa,+BAAgC,SAAQ,KAAK;IACtD,0DAA0D;IAC1D,QAAQ,CAAC,MAAM,mDAAmD;IAElE;;;OAGG;IACH,YAAY,IAAI,EAAE,QAAQ,EAGzB;CACJ"}
@@ -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 { GraphViewReason } from './GraphViewReason.js';
4
+ /**
5
+ * Error raised when a view with edge property members is not the target of any relation.
6
+ */
7
+ export class EdgePropertyViewNotUsedAsTarget extends Error {
8
+ /** The stable reason code of the rule that was broken. */
9
+ reason = GraphViewReason.EdgePropertyViewNotUsedAsTarget;
10
+ /**
11
+ * Creates a new {@link EdgePropertyViewNotUsedAsTarget}.
12
+ * @param view - The view type.
13
+ */
14
+ constructor(view) {
15
+ super(`The view '${view.name}' has members that read edge properties, but no relation yields it, so there is no edge to read them from.`);
16
+ this.name = 'EdgePropertyViewNotUsedAsTarget';
17
+ }
18
+ }
19
+ //# sourceMappingURL=EdgePropertyViewNotUsedAsTarget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgePropertyViewNotUsedAsTarget.js","sourceRoot":"","sources":["../../../../projections/graphs/views/EdgePropertyViewNotUsedAsTarget.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,OAAO,+BAAgC,SAAQ,KAAK;IACtD,0DAA0D;IACjD,MAAM,GAAG,eAAe,CAAC,+BAA+B,CAAC;IAElE;;;OAGG;IACH,YAAY,IAAc;QACtB,KAAK,CAAC,aAAa,IAAI,CAAC,IAAI,4GAA4G,CAAC,CAAC;QAC1I,IAAI,CAAC,IAAI,GAAG,iCAAiC,CAAC;IAClD,CAAC;CACJ"}
@@ -0,0 +1,15 @@
1
+ import { GraphViewReason } from './GraphViewReason.js';
2
+ /**
3
+ * Error raised when a view with edge property members is the target of relations of more than one edge type.
4
+ */
5
+ export declare class EdgePropertyViewSharedAcrossEdges extends Error {
6
+ /** The stable reason code of the rule that was broken. */
7
+ readonly reason = GraphViewReason.EdgePropertyViewSharedAcrossEdges;
8
+ /**
9
+ * Creates a new {@link EdgePropertyViewSharedAcrossEdges}.
10
+ * @param view - The view type.
11
+ * @param edges - The edge types of the relations that yield the view.
12
+ */
13
+ constructor(view: Function, edges: readonly string[]);
14
+ }
15
+ //# sourceMappingURL=EdgePropertyViewSharedAcrossEdges.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgePropertyViewSharedAcrossEdges.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/EdgePropertyViewSharedAcrossEdges.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,qBAAa,iCAAkC,SAAQ,KAAK;IACxD,0DAA0D;IAC1D,QAAQ,CAAC,MAAM,qDAAqD;IAEpE;;;;OAIG;IACH,YAAY,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,EAGnD;CACJ"}
@@ -0,0 +1,20 @@
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 { GraphViewReason } from './GraphViewReason.js';
4
+ /**
5
+ * Error raised when a view with edge property members is the target of relations of more than one edge type.
6
+ */
7
+ export class EdgePropertyViewSharedAcrossEdges extends Error {
8
+ /** The stable reason code of the rule that was broken. */
9
+ reason = GraphViewReason.EdgePropertyViewSharedAcrossEdges;
10
+ /**
11
+ * Creates a new {@link EdgePropertyViewSharedAcrossEdges}.
12
+ * @param view - The view type.
13
+ * @param edges - The edge types of the relations that yield the view.
14
+ */
15
+ constructor(view, edges) {
16
+ super(`The view '${view.name}' has members that read edge properties, but relations of more than one edge type yield it (${edges.join(', ')}). Use one view per edge type.`);
17
+ this.name = 'EdgePropertyViewSharedAcrossEdges';
18
+ }
19
+ }
20
+ //# sourceMappingURL=EdgePropertyViewSharedAcrossEdges.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgePropertyViewSharedAcrossEdges.js","sourceRoot":"","sources":["../../../../projections/graphs/views/EdgePropertyViewSharedAcrossEdges.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,OAAO,iCAAkC,SAAQ,KAAK;IACxD,0DAA0D;IACjD,MAAM,GAAG,eAAe,CAAC,iCAAiC,CAAC;IAEpE;;;;OAIG;IACH,YAAY,IAAc,EAAE,KAAwB;QAChD,KAAK,CAAC,aAAa,IAAI,CAAC,IAAI,+FAA+F,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;QAC7K,IAAI,CAAC,IAAI,GAAG,mCAAmC,CAAC;IACpD,CAAC;CACJ"}
@@ -0,0 +1,16 @@
1
+ import type { GraphEdgeDirection } from './GraphEdgeDirection.js';
2
+ import type { GraphViewCardinality } from './GraphViewCardinality.js';
3
+ /** Options of the follows decorator. */
4
+ export interface FollowsOptions {
5
+ /**
6
+ * Whether the relation yields a list or a single item. TypeScript erases generic arguments, so the type of the
7
+ * member cannot say which one it is. Defaults to {@link GraphViewCardinality.Many}.
8
+ */
9
+ readonly cardinality?: GraphViewCardinality;
10
+ /**
11
+ * The direction in which the edge is followed. It is derived from the labels of the edge, except for an edge
12
+ * that starts and ends at the same label, which needs it to be stated.
13
+ */
14
+ readonly direction?: GraphEdgeDirection;
15
+ }
16
+ //# sourceMappingURL=FollowsOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FollowsOptions.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/FollowsOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,wCAAwC;AACxC,MAAM,WAAW,cAAc;IAC3B;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,oBAAoB,CAAC;IAE5C;;;OAGG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,kBAAkB,CAAC;CAC3C"}
@@ -0,0 +1,4 @@
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
+ export {};
4
+ //# sourceMappingURL=FollowsOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FollowsOptions.js","sourceRoot":"","sources":["../../../../projections/graphs/views/FollowsOptions.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Represents the direction in which a relation follows an edge, seen from the root node of the view.
3
+ */
4
+ export declare enum GraphEdgeDirection {
5
+ /** The root node is the source of the edge. */
6
+ Outgoing = "outgoing",
7
+ /** The root node is the target of the edge. */
8
+ Incoming = "incoming"
9
+ }
10
+ //# sourceMappingURL=GraphEdgeDirection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GraphEdgeDirection.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphEdgeDirection.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,oBAAY,kBAAkB;IAC1B,+CAA+C;IAC/C,QAAQ,aAAa;IAErB,+CAA+C;IAC/C,QAAQ,aAAa;CACxB"}
@@ -0,0 +1,13 @@
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
+ /**
4
+ * Represents the direction in which a relation follows an edge, seen from the root node of the view.
5
+ */
6
+ export var GraphEdgeDirection;
7
+ (function (GraphEdgeDirection) {
8
+ /** The root node is the source of the edge. */
9
+ GraphEdgeDirection["Outgoing"] = "outgoing";
10
+ /** The root node is the target of the edge. */
11
+ GraphEdgeDirection["Incoming"] = "incoming";
12
+ })(GraphEdgeDirection || (GraphEdgeDirection = {}));
13
+ //# sourceMappingURL=GraphEdgeDirection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GraphEdgeDirection.js","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphEdgeDirection.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG;;GAEG;AACH,MAAM,CAAN,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC1B,+CAA+C;IAC/C,2CAAqB,CAAA;IAErB,+CAA+C;IAC/C,2CAAqB,CAAA;AACzB,CAAC,EANW,kBAAkB,KAAlB,kBAAkB,QAM7B"}
@@ -0,0 +1,13 @@
1
+ import type { GraphViewMember } from './GraphViewMember.js';
2
+ /**
3
+ * Represents a view over a graph as it is declared: anchored at one node label, with its members in declaration order.
4
+ */
5
+ export interface GraphView {
6
+ /** The name of the view, unique in its graph. */
7
+ readonly name: string;
8
+ /** The label of the node the view is anchored at. */
9
+ readonly root: string;
10
+ /** The members of the view, in the order they are declared. */
11
+ readonly members: readonly GraphViewMember[];
12
+ }
13
+ //# sourceMappingURL=GraphView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GraphView.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphView.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB,iDAAiD;IACjD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,qDAAqD;IACrD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,+DAA+D;IAC/D,QAAQ,CAAC,OAAO,EAAE,SAAS,eAAe,EAAE,CAAC;CAChD"}
@@ -0,0 +1,4 @@
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
+ export {};
4
+ //# sourceMappingURL=GraphView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GraphView.js","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphView.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
@@ -0,0 +1,15 @@
1
+ import type { Constructor } from '@cratis/fundamentals';
2
+ import type { GraphViewDefinition } from './GraphViewDefinition.js';
3
+ /**
4
+ * Represents the outcome of building the views of one graph.
5
+ */
6
+ export interface GraphViewBuildResult {
7
+ /**
8
+ * The definition of the views. It is missing when any view of the graph is invalid: a view can be read only
9
+ * together with the views it nests, so the views of a graph are emitted together or not at all.
10
+ */
11
+ readonly definition?: GraphViewDefinition;
12
+ /** The views that are invalid, and why. The error of each carries the reason code. */
13
+ readonly failures: ReadonlyMap<Constructor, Error>;
14
+ }
15
+ //# sourceMappingURL=GraphViewBuildResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GraphViewBuildResult.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphViewBuildResult.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,mBAAmB,CAAC;IAE1C,sFAAsF;IACtF,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;CACtD"}
@@ -0,0 +1,4 @@
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
+ export {};
4
+ //# sourceMappingURL=GraphViewBuildResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GraphViewBuildResult.js","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphViewBuildResult.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Represents how many related items a relation of a graph view yields.
3
+ */
4
+ export declare enum GraphViewCardinality {
5
+ /** A list of related items. A relation without any related node yields an empty list. */
6
+ Many = "many",
7
+ /** A single related item. A relation without any related node yields null. */
8
+ One = "one"
9
+ }
10
+ //# sourceMappingURL=GraphViewCardinality.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GraphViewCardinality.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphViewCardinality.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,oBAAY,oBAAoB;IAC5B,yFAAyF;IACzF,IAAI,SAAS;IAEb,8EAA8E;IAC9E,GAAG,QAAQ;CACd"}
@@ -0,0 +1,13 @@
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
+ /**
4
+ * Represents how many related items a relation of a graph view yields.
5
+ */
6
+ export var GraphViewCardinality;
7
+ (function (GraphViewCardinality) {
8
+ /** A list of related items. A relation without any related node yields an empty list. */
9
+ GraphViewCardinality["Many"] = "many";
10
+ /** A single related item. A relation without any related node yields null. */
11
+ GraphViewCardinality["One"] = "one";
12
+ })(GraphViewCardinality || (GraphViewCardinality = {}));
13
+ //# sourceMappingURL=GraphViewCardinality.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GraphViewCardinality.js","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphViewCardinality.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG;;GAEG;AACH,MAAM,CAAN,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC5B,yFAAyF;IACzF,qCAAa,CAAA;IAEb,8EAA8E;IAC9E,mCAAW,CAAA;AACf,CAAC,EANW,oBAAoB,KAApB,oBAAoB,QAM/B"}
@@ -0,0 +1,15 @@
1
+ import type { GraphView } from './GraphView.js';
2
+ import type { GraphViewSchema } from './GraphViewSchema.js';
3
+ /**
4
+ * Represents the views declared over a graph. It is the transport and conformance form of the views, shared by the
5
+ * Cratis clients: it is emitted from the declarations, never written by hand.
6
+ */
7
+ export interface GraphViewDefinition {
8
+ /** The name of the graph the views read. */
9
+ readonly graph: string;
10
+ /** The nodes and edges the views were validated against. It is written only when the serializer is asked to. */
11
+ readonly schema?: GraphViewSchema;
12
+ /** The views, sorted by name. */
13
+ readonly views: readonly GraphView[];
14
+ }
15
+ //# sourceMappingURL=GraphViewDefinition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GraphViewDefinition.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphViewDefinition.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAChC,4CAA4C;IAC5C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB,gHAAgH;IAChH,QAAQ,CAAC,MAAM,CAAC,EAAE,eAAe,CAAC;IAElC,iCAAiC;IACjC,QAAQ,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,CAAC;CACxC"}
@@ -0,0 +1,4 @@
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
+ export {};
4
+ //# sourceMappingURL=GraphViewDefinition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GraphViewDefinition.js","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphViewDefinition.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
@@ -0,0 +1,30 @@
1
+ import type { Constructor } from '@cratis/fundamentals';
2
+ import type { GraphModel } from '../GraphModel.js';
3
+ import type { GraphViewBuildResult } from './GraphViewBuildResult.js';
4
+ /**
5
+ * Validates the views declared over a graph and builds their {@link GraphViewDefinition}. Every rule of a view has a
6
+ * reason code, carried by the error that reports it. One invalid view never stops the discovery of anything else; it
7
+ * is reported, and the views of its graph are then withheld as a whole, because a view is read together with the views
8
+ * it nests.
9
+ */
10
+ export declare class GraphViewDefinitionBuilder {
11
+ private readonly _schemaWriter;
12
+ /**
13
+ * Builds the definition of the views of one graph.
14
+ * @param model - The {@link GraphModel} the views read.
15
+ * @param views - The view types that name the graph.
16
+ * @returns The {@link GraphViewBuildResult}.
17
+ */
18
+ build(model: GraphModel, views: readonly Constructor[]): GraphViewBuildResult;
19
+ private edgeInfo;
20
+ private resolve;
21
+ private directionOf;
22
+ private validateAcrossViews;
23
+ private validateEdgeProperties;
24
+ private cycleThrough;
25
+ private member;
26
+ private edgeOf;
27
+ private edgeName;
28
+ private find;
29
+ }
30
+ //# sourceMappingURL=GraphViewDefinitionBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GraphViewDefinitionBuilder.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphViewDefinitionBuilder.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAUnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AA8DtE;;;;;GAKG;AACH,qBAAa,0BAA0B;IACnC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA2B;IAEzD;;;;;OAKG;IACH,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,WAAW,EAAE,GAAG,oBAAoB,CA8C5E;IAED,OAAO,CAAC,QAAQ;IAUhB,OAAO,CAAC,OAAO;IA8Df,OAAO,CAAC,WAAW;IAenB,OAAO,CAAC,mBAAmB;IAsB3B,OAAO,CAAC,sBAAsB;IAa9B,OAAO,CAAC,YAAY;IAoBpB,OAAO,CAAC,MAAM;IAkBd,OAAO,CAAC,MAAM;IAQd,OAAO,CAAC,QAAQ;IAOhB,OAAO,CAAC,IAAI;CAIf"}