@cratis/chronicle 6.62.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.
- package/ChronicleClient.ts +86 -3
- package/artifacts/DefaultClientArtifactsProvider.ts +5 -0
- package/artifacts/IClientArtifactsProvider.ts +3 -0
- package/connection/ConnectionLifecycle.ts +42 -1
- package/dist/ChronicleClient.d.ts +28 -1
- package/dist/ChronicleClient.d.ts.map +1 -1
- package/dist/ChronicleClient.js +71 -3
- package/dist/ChronicleClient.js.map +1 -1
- package/dist/artifacts/DefaultClientArtifactsProvider.d.ts +2 -0
- package/dist/artifacts/DefaultClientArtifactsProvider.d.ts.map +1 -1
- package/dist/artifacts/DefaultClientArtifactsProvider.js +4 -0
- package/dist/artifacts/DefaultClientArtifactsProvider.js.map +1 -1
- package/dist/artifacts/IClientArtifactsProvider.d.ts +2 -0
- package/dist/artifacts/IClientArtifactsProvider.d.ts.map +1 -1
- package/dist/connection/ConnectionLifecycle.d.ts +24 -0
- package/dist/connection/ConnectionLifecycle.d.ts.map +1 -1
- package/dist/connection/ConnectionLifecycle.js +40 -1
- package/dist/connection/ConnectionLifecycle.js.map +1 -1
- package/dist/observation/ObservationReconnectBackoff.d.ts +64 -0
- package/dist/observation/ObservationReconnectBackoff.d.ts.map +1 -0
- package/dist/observation/ObservationReconnectBackoff.js +75 -0
- package/dist/observation/ObservationReconnectBackoff.js.map +1 -0
- package/dist/observation/ObservationStreamOutcome.d.ts +10 -0
- package/dist/observation/ObservationStreamOutcome.d.ts.map +1 -0
- package/dist/observation/ObservationStreamOutcome.js +4 -0
- package/dist/observation/ObservationStreamOutcome.js.map +1 -0
- package/dist/observation/classifyStreamError.d.ts +25 -0
- package/dist/observation/classifyStreamError.d.ts.map +1 -0
- package/dist/observation/classifyStreamError.js +55 -0
- package/dist/observation/classifyStreamError.js.map +1 -0
- package/dist/observation/for_ObservationReconnectBackoff/given/a_backoff.d.ts +13 -0
- package/dist/observation/for_ObservationReconnectBackoff/given/a_backoff.d.ts.map +1 -0
- package/dist/observation/for_ObservationReconnectBackoff/given/a_backoff.js +25 -0
- package/dist/observation/for_ObservationReconnectBackoff/given/a_backoff.js.map +1 -0
- package/dist/observation/for_ObservationReconnectBackoff/given/a_scripted_stream.d.ts +27 -0
- package/dist/observation/for_ObservationReconnectBackoff/given/a_scripted_stream.d.ts.map +1 -0
- package/dist/observation/for_ObservationReconnectBackoff/given/a_scripted_stream.js +36 -0
- package/dist/observation/for_ObservationReconnectBackoff/given/a_scripted_stream.js.map +1 -0
- package/dist/projections/for_Graphs/given/a_discovered_graph.d.ts +2 -1
- package/dist/projections/for_Graphs/given/a_discovered_graph.d.ts.map +1 -1
- package/dist/projections/for_Graphs/given/a_discovered_graph.js +3 -2
- package/dist/projections/for_Graphs/given/a_discovered_graph.js.map +1 -1
- package/dist/projections/for_Graphs/given/a_graph_with_views.d.ts +40 -0
- package/dist/projections/for_Graphs/given/a_graph_with_views.d.ts.map +1 -0
- package/dist/projections/for_Graphs/given/a_graph_with_views.js +80 -0
- package/dist/projections/for_Graphs/given/a_graph_with_views.js.map +1 -0
- package/dist/projections/for_Graphs/given/organization.d.ts +2 -1
- package/dist/projections/for_Graphs/given/organization.d.ts.map +1 -1
- package/dist/projections/for_Graphs/given/organization.js +3 -2
- package/dist/projections/for_Graphs/given/organization.js.map +1 -1
- package/dist/projections/graphs/Graphs.d.ts +5 -0
- package/dist/projections/graphs/Graphs.d.ts.map +1 -1
- package/dist/projections/graphs/Graphs.js +43 -0
- package/dist/projections/graphs/Graphs.js.map +1 -1
- package/dist/projections/graphs/IGraphs.d.ts +9 -2
- package/dist/projections/graphs/IGraphs.d.ts.map +1 -1
- package/dist/projections/graphs/index.d.ts +1 -0
- package/dist/projections/graphs/index.d.ts.map +1 -1
- package/dist/projections/graphs/index.js +1 -0
- package/dist/projections/graphs/index.js.map +1 -1
- package/dist/projections/graphs/views/AmbiguousDirection.d.ts +16 -0
- package/dist/projections/graphs/views/AmbiguousDirection.d.ts.map +1 -0
- package/dist/projections/graphs/views/AmbiguousDirection.js +21 -0
- package/dist/projections/graphs/views/AmbiguousDirection.js.map +1 -0
- package/dist/projections/graphs/views/DuplicateViewName.d.ts +16 -0
- package/dist/projections/graphs/views/DuplicateViewName.d.ts.map +1 -0
- package/dist/projections/graphs/views/DuplicateViewName.js +21 -0
- package/dist/projections/graphs/views/DuplicateViewName.js.map +1 -0
- package/dist/projections/graphs/views/EdgeNotIncidentOnRoot.d.ts +17 -0
- package/dist/projections/graphs/views/EdgeNotIncidentOnRoot.d.ts.map +1 -0
- package/dist/projections/graphs/views/EdgeNotIncidentOnRoot.js +22 -0
- package/dist/projections/graphs/views/EdgeNotIncidentOnRoot.js.map +1 -0
- package/dist/projections/graphs/views/EdgePropertyViewNotUsedAsTarget.d.ts +14 -0
- package/dist/projections/graphs/views/EdgePropertyViewNotUsedAsTarget.d.ts.map +1 -0
- package/dist/projections/graphs/views/EdgePropertyViewNotUsedAsTarget.js +19 -0
- package/dist/projections/graphs/views/EdgePropertyViewNotUsedAsTarget.js.map +1 -0
- package/dist/projections/graphs/views/EdgePropertyViewSharedAcrossEdges.d.ts +15 -0
- package/dist/projections/graphs/views/EdgePropertyViewSharedAcrossEdges.d.ts.map +1 -0
- package/dist/projections/graphs/views/EdgePropertyViewSharedAcrossEdges.js +20 -0
- package/dist/projections/graphs/views/EdgePropertyViewSharedAcrossEdges.js.map +1 -0
- package/dist/projections/graphs/views/FollowsOptions.d.ts +16 -0
- package/dist/projections/graphs/views/FollowsOptions.d.ts.map +1 -0
- package/dist/projections/graphs/views/FollowsOptions.js +4 -0
- package/dist/projections/graphs/views/FollowsOptions.js.map +1 -0
- package/dist/projections/graphs/views/GraphEdgeDirection.d.ts +10 -0
- package/dist/projections/graphs/views/GraphEdgeDirection.d.ts.map +1 -0
- package/dist/projections/graphs/views/GraphEdgeDirection.js +13 -0
- package/dist/projections/graphs/views/GraphEdgeDirection.js.map +1 -0
- package/dist/projections/graphs/views/GraphView.d.ts +13 -0
- package/dist/projections/graphs/views/GraphView.d.ts.map +1 -0
- package/dist/projections/graphs/views/GraphView.js +4 -0
- package/dist/projections/graphs/views/GraphView.js.map +1 -0
- package/dist/projections/graphs/views/GraphViewBuildResult.d.ts +15 -0
- package/dist/projections/graphs/views/GraphViewBuildResult.d.ts.map +1 -0
- package/dist/projections/graphs/views/GraphViewBuildResult.js +4 -0
- package/dist/projections/graphs/views/GraphViewBuildResult.js.map +1 -0
- package/dist/projections/graphs/views/GraphViewCardinality.d.ts +10 -0
- package/dist/projections/graphs/views/GraphViewCardinality.d.ts.map +1 -0
- package/dist/projections/graphs/views/GraphViewCardinality.js +13 -0
- package/dist/projections/graphs/views/GraphViewCardinality.js.map +1 -0
- package/dist/projections/graphs/views/GraphViewDefinition.d.ts +15 -0
- package/dist/projections/graphs/views/GraphViewDefinition.d.ts.map +1 -0
- package/dist/projections/graphs/views/GraphViewDefinition.js +4 -0
- package/dist/projections/graphs/views/GraphViewDefinition.js.map +1 -0
- package/dist/projections/graphs/views/GraphViewDefinitionBuilder.d.ts +30 -0
- package/dist/projections/graphs/views/GraphViewDefinitionBuilder.d.ts.map +1 -0
- package/dist/projections/graphs/views/GraphViewDefinitionBuilder.js +259 -0
- package/dist/projections/graphs/views/GraphViewDefinitionBuilder.js.map +1 -0
- package/dist/projections/graphs/views/GraphViewDefinitionSerializer.d.ts +21 -0
- package/dist/projections/graphs/views/GraphViewDefinitionSerializer.d.ts.map +1 -0
- package/dist/projections/graphs/views/GraphViewDefinitionSerializer.js +77 -0
- package/dist/projections/graphs/views/GraphViewDefinitionSerializer.js.map +1 -0
- package/dist/projections/graphs/views/GraphViewEdgeReference.d.ts +6 -0
- package/dist/projections/graphs/views/GraphViewEdgeReference.d.ts.map +1 -0
- package/dist/projections/graphs/views/GraphViewEdgeReference.js +4 -0
- package/dist/projections/graphs/views/GraphViewEdgeReference.js.map +1 -0
- package/dist/projections/graphs/views/GraphViewMember.d.ts +8 -0
- package/dist/projections/graphs/views/GraphViewMember.d.ts.map +1 -0
- package/dist/projections/graphs/views/GraphViewMember.js +4 -0
- package/dist/projections/graphs/views/GraphViewMember.js.map +1 -0
- package/dist/projections/graphs/views/GraphViewMemberKind.d.ts +12 -0
- package/dist/projections/graphs/views/GraphViewMemberKind.d.ts.map +1 -0
- package/dist/projections/graphs/views/GraphViewMemberKind.js +15 -0
- package/dist/projections/graphs/views/GraphViewMemberKind.js.map +1 -0
- package/dist/projections/graphs/views/GraphViewMemberMetadata.d.ts +22 -0
- package/dist/projections/graphs/views/GraphViewMemberMetadata.d.ts.map +1 -0
- package/dist/projections/graphs/views/GraphViewMemberMetadata.js +4 -0
- package/dist/projections/graphs/views/GraphViewMemberMetadata.js.map +1 -0
- package/dist/projections/graphs/views/GraphViewPropertyMember.d.ts +13 -0
- package/dist/projections/graphs/views/GraphViewPropertyMember.d.ts.map +1 -0
- package/dist/projections/graphs/views/GraphViewPropertyMember.js +4 -0
- package/dist/projections/graphs/views/GraphViewPropertyMember.js.map +1 -0
- package/dist/projections/graphs/views/GraphViewReason.d.ts +33 -0
- package/dist/projections/graphs/views/GraphViewReason.d.ts.map +1 -0
- package/dist/projections/graphs/views/GraphViewReason.js +36 -0
- package/dist/projections/graphs/views/GraphViewReason.js.map +1 -0
- package/dist/projections/graphs/views/GraphViewRelationMember.d.ts +21 -0
- package/dist/projections/graphs/views/GraphViewRelationMember.d.ts.map +1 -0
- package/dist/projections/graphs/views/GraphViewRelationMember.js +4 -0
- package/dist/projections/graphs/views/GraphViewRelationMember.js.map +1 -0
- package/dist/projections/graphs/views/GraphViewSchema.d.ts +10 -0
- package/dist/projections/graphs/views/GraphViewSchema.d.ts.map +1 -0
- package/dist/projections/graphs/views/GraphViewSchema.js +4 -0
- package/dist/projections/graphs/views/GraphViewSchema.js.map +1 -0
- package/dist/projections/graphs/views/GraphViewSchemaEdge.d.ts +14 -0
- package/dist/projections/graphs/views/GraphViewSchemaEdge.d.ts.map +1 -0
- package/dist/projections/graphs/views/GraphViewSchemaEdge.js +4 -0
- package/dist/projections/graphs/views/GraphViewSchemaEdge.js.map +1 -0
- package/dist/projections/graphs/views/GraphViewSchemaNode.d.ts +10 -0
- package/dist/projections/graphs/views/GraphViewSchemaNode.d.ts.map +1 -0
- package/dist/projections/graphs/views/GraphViewSchemaNode.js +4 -0
- package/dist/projections/graphs/views/GraphViewSchemaNode.js.map +1 -0
- package/dist/projections/graphs/views/GraphViewSerializerOptions.d.ts +9 -0
- package/dist/projections/graphs/views/GraphViewSerializerOptions.d.ts.map +1 -0
- package/dist/projections/graphs/views/GraphViewSerializerOptions.js +4 -0
- package/dist/projections/graphs/views/GraphViewSerializerOptions.js.map +1 -0
- package/dist/projections/graphs/views/RecursiveView.d.ts +15 -0
- package/dist/projections/graphs/views/RecursiveView.d.ts.map +1 -0
- package/dist/projections/graphs/views/RecursiveView.js +20 -0
- package/dist/projections/graphs/views/RecursiveView.js.map +1 -0
- package/dist/projections/graphs/views/RelationTargetNotAView.d.ts +16 -0
- package/dist/projections/graphs/views/RelationTargetNotAView.d.ts.map +1 -0
- package/dist/projections/graphs/views/RelationTargetNotAView.js +21 -0
- package/dist/projections/graphs/views/RelationTargetNotAView.js.map +1 -0
- package/dist/projections/graphs/views/TargetLabelMismatch.d.ts +18 -0
- package/dist/projections/graphs/views/TargetLabelMismatch.d.ts.map +1 -0
- package/dist/projections/graphs/views/TargetLabelMismatch.js +23 -0
- package/dist/projections/graphs/views/TargetLabelMismatch.js.map +1 -0
- package/dist/projections/graphs/views/UnknownEdge.d.ts +16 -0
- package/dist/projections/graphs/views/UnknownEdge.d.ts.map +1 -0
- package/dist/projections/graphs/views/UnknownEdge.js +21 -0
- package/dist/projections/graphs/views/UnknownEdge.js.map +1 -0
- package/dist/projections/graphs/views/UnknownEdgeProperty.d.ts +17 -0
- package/dist/projections/graphs/views/UnknownEdgeProperty.d.ts.map +1 -0
- package/dist/projections/graphs/views/UnknownEdgeProperty.js +22 -0
- package/dist/projections/graphs/views/UnknownEdgeProperty.js.map +1 -0
- package/dist/projections/graphs/views/UnknownNodeProperty.d.ts +17 -0
- package/dist/projections/graphs/views/UnknownNodeProperty.d.ts.map +1 -0
- package/dist/projections/graphs/views/UnknownNodeProperty.js +22 -0
- package/dist/projections/graphs/views/UnknownNodeProperty.js.map +1 -0
- package/dist/projections/graphs/views/ViewIsAlsoSchema.d.ts +14 -0
- package/dist/projections/graphs/views/ViewIsAlsoSchema.d.ts.map +1 -0
- package/dist/projections/graphs/views/ViewIsAlsoSchema.js +19 -0
- package/dist/projections/graphs/views/ViewIsAlsoSchema.js.map +1 -0
- package/dist/projections/graphs/views/ViewOfMetadata.d.ts +8 -0
- package/dist/projections/graphs/views/ViewOfMetadata.d.ts.map +1 -0
- package/dist/projections/graphs/views/ViewOfMetadata.js +4 -0
- package/dist/projections/graphs/views/ViewOfMetadata.js.map +1 -0
- package/dist/projections/graphs/views/ViewOfOptions.d.ts +6 -0
- package/dist/projections/graphs/views/ViewOfOptions.d.ts.map +1 -0
- package/dist/projections/graphs/views/ViewOfOptions.js +4 -0
- package/dist/projections/graphs/views/ViewOfOptions.js.map +1 -0
- package/dist/projections/graphs/views/ViewRootNotANode.d.ts +16 -0
- package/dist/projections/graphs/views/ViewRootNotANode.d.ts.map +1 -0
- package/dist/projections/graphs/views/ViewRootNotANode.js +21 -0
- package/dist/projections/graphs/views/ViewRootNotANode.js.map +1 -0
- package/dist/projections/graphs/views/declareGraphViewMember.d.ts +17 -0
- package/dist/projections/graphs/views/declareGraphViewMember.d.ts.map +1 -0
- package/dist/projections/graphs/views/declareGraphViewMember.js +31 -0
- package/dist/projections/graphs/views/declareGraphViewMember.js.map +1 -0
- package/dist/projections/graphs/views/follows.d.ts +13 -0
- package/dist/projections/graphs/views/follows.d.ts.map +1 -0
- package/dist/projections/graphs/views/follows.js +24 -0
- package/dist/projections/graphs/views/follows.js.map +1 -0
- package/dist/projections/graphs/views/fromEdge.d.ts +10 -0
- package/dist/projections/graphs/views/fromEdge.d.ts.map +1 -0
- package/dist/projections/graphs/views/fromEdge.js +15 -0
- package/dist/projections/graphs/views/fromEdge.js.map +1 -0
- package/dist/projections/graphs/views/index.d.ts +41 -0
- package/dist/projections/graphs/views/index.d.ts.map +1 -0
- package/dist/projections/graphs/views/index.js +28 -0
- package/dist/projections/graphs/views/index.js.map +1 -0
- package/dist/projections/graphs/views/viewKey.d.ts +8 -0
- package/dist/projections/graphs/views/viewKey.d.ts.map +1 -0
- package/dist/projections/graphs/views/viewKey.js +13 -0
- package/dist/projections/graphs/views/viewKey.js.map +1 -0
- package/dist/projections/graphs/views/viewOf.d.ts +22 -0
- package/dist/projections/graphs/views/viewOf.d.ts.map +1 -0
- package/dist/projections/graphs/views/viewOf.js +41 -0
- package/dist/projections/graphs/views/viewOf.js.map +1 -0
- package/dist/projections/graphs/views/viewProperty.d.ts +9 -0
- package/dist/projections/graphs/views/viewProperty.d.ts.map +1 -0
- package/dist/projections/graphs/views/viewProperty.js +14 -0
- package/dist/projections/graphs/views/viewProperty.js.map +1 -0
- package/dist/reactors/Reactors.d.ts +15 -5
- package/dist/reactors/Reactors.d.ts.map +1 -1
- package/dist/reactors/Reactors.js +95 -18
- package/dist/reactors/Reactors.js.map +1 -1
- package/dist/reactors/for_Reactors/when_reconnecting_the_observation_stream/given/a_reactor_whose_stream_ends.d.ts +26 -0
- package/dist/reactors/for_Reactors/when_reconnecting_the_observation_stream/given/a_reactor_whose_stream_ends.d.ts.map +1 -0
- package/dist/reactors/for_Reactors/when_reconnecting_the_observation_stream/given/a_reactor_whose_stream_ends.js +64 -0
- package/dist/reactors/for_Reactors/when_reconnecting_the_observation_stream/given/a_reactor_whose_stream_ends.js.map +1 -0
- package/dist/reducers/Reducers.d.ts +11 -5
- package/dist/reducers/Reducers.d.ts.map +1 -1
- package/dist/reducers/Reducers.js +93 -19
- package/dist/reducers/Reducers.js.map +1 -1
- package/dist/reducers/for_Reducers/when_reconnecting_the_observation_stream/given/a_reducer_whose_stream_ends.d.ts +25 -0
- package/dist/reducers/for_Reducers/when_reconnecting_the_observation_stream/given/a_reducer_whose_stream_ends.d.ts.map +1 -0
- package/dist/reducers/for_Reducers/when_reconnecting_the_observation_stream/given/a_reducer_whose_stream_ends.js +70 -0
- package/dist/reducers/for_Reducers/when_reconnecting_the_observation_stream/given/a_reducer_whose_stream_ends.js.map +1 -0
- package/dist/testing/InProcessAppendMetadata.d.ts +30 -0
- package/dist/testing/InProcessAppendMetadata.d.ts.map +1 -0
- package/dist/testing/InProcessAppendMetadata.js +107 -0
- package/dist/testing/InProcessAppendMetadata.js.map +1 -0
- package/dist/testing/InProcessBatchAppend.d.ts +62 -0
- package/dist/testing/InProcessBatchAppend.d.ts.map +1 -0
- package/dist/testing/InProcessBatchAppend.js +131 -0
- package/dist/testing/InProcessBatchAppend.js.map +1 -0
- package/dist/testing/InProcessEventPayload.d.ts +23 -0
- package/dist/testing/InProcessEventPayload.d.ts.map +1 -0
- package/dist/testing/InProcessEventPayload.js +94 -0
- package/dist/testing/InProcessEventPayload.js.map +1 -0
- package/dist/testing/InProcessEventReadCriteria.d.ts +9 -0
- package/dist/testing/InProcessEventReadCriteria.d.ts.map +1 -0
- package/dist/testing/InProcessEventReadCriteria.js +4 -0
- package/dist/testing/InProcessEventReadCriteria.js.map +1 -0
- package/dist/testing/InProcessEventReadFilter.d.ts +14 -0
- package/dist/testing/InProcessEventReadFilter.d.ts.map +1 -0
- package/dist/testing/InProcessEventReadFilter.js +31 -0
- package/dist/testing/InProcessEventReadFilter.js.map +1 -0
- package/dist/testing/InProcessEventSequence.d.ts +8 -5
- package/dist/testing/InProcessEventSequence.d.ts.map +1 -1
- package/dist/testing/InProcessEventSequence.js +59 -275
- package/dist/testing/InProcessEventSequence.js.map +1 -1
- package/dist/testing/InProcessEventSequenceEnvironment.d.ts +13 -0
- package/dist/testing/InProcessEventSequenceEnvironment.d.ts.map +1 -0
- package/dist/testing/InProcessEventSequenceEnvironment.js +4 -0
- package/dist/testing/InProcessEventSequenceEnvironment.js.map +1 -0
- package/dist/testing/InProcessSingleAppend.d.ts +34 -0
- package/dist/testing/InProcessSingleAppend.d.ts.map +1 -0
- package/dist/testing/InProcessSingleAppend.js +95 -0
- package/dist/testing/InProcessSingleAppend.js.map +1 -0
- package/dist/testing/projections/ProjectionCapabilities.d.ts +0 -8
- package/dist/testing/projections/ProjectionCapabilities.d.ts.map +1 -1
- package/dist/testing/projections/ProjectionCapabilities.js +21 -312
- package/dist/testing/projections/ProjectionCapabilities.js.map +1 -1
- package/dist/testing/projections/ProjectionCapabilityReject.d.ts +3 -0
- package/dist/testing/projections/ProjectionCapabilityReject.d.ts.map +1 -0
- package/dist/testing/projections/ProjectionCapabilityReject.js +4 -0
- package/dist/testing/projections/ProjectionCapabilityReject.js.map +1 -0
- package/dist/testing/projections/ProjectionCapabilityReporter.d.ts +12 -0
- package/dist/testing/projections/ProjectionCapabilityReporter.d.ts.map +1 -0
- package/dist/testing/projections/ProjectionCapabilityReporter.js +33 -0
- package/dist/testing/projections/ProjectionCapabilityReporter.js.map +1 -0
- package/dist/testing/projections/ProjectionDefinitionCapabilities.d.ts +11 -0
- package/dist/testing/projections/ProjectionDefinitionCapabilities.d.ts.map +1 -0
- package/dist/testing/projections/ProjectionDefinitionCapabilities.js +45 -0
- package/dist/testing/projections/ProjectionDefinitionCapabilities.js.map +1 -0
- package/dist/testing/projections/ProjectionEventSchemaResolver.d.ts +13 -0
- package/dist/testing/projections/ProjectionEventSchemaResolver.d.ts.map +1 -0
- package/dist/testing/projections/ProjectionEventSchemaResolver.js +22 -0
- package/dist/testing/projections/ProjectionEventSchemaResolver.js.map +1 -0
- package/dist/testing/projections/ProjectionExpressionCapabilities.d.ts +19 -0
- package/dist/testing/projections/ProjectionExpressionCapabilities.d.ts.map +1 -0
- package/dist/testing/projections/ProjectionExpressionCapabilities.js +103 -0
- package/dist/testing/projections/ProjectionExpressionCapabilities.js.map +1 -0
- package/dist/testing/projections/ProjectionInitialValueCapabilities.d.ts +16 -0
- package/dist/testing/projections/ProjectionInitialValueCapabilities.d.ts.map +1 -0
- package/dist/testing/projections/ProjectionInitialValueCapabilities.js +72 -0
- package/dist/testing/projections/ProjectionInitialValueCapabilities.js.map +1 -0
- package/dist/testing/projections/ProjectionMappingCapabilities.d.ts +21 -0
- package/dist/testing/projections/ProjectionMappingCapabilities.d.ts.map +1 -0
- package/dist/testing/projections/ProjectionMappingCapabilities.js +86 -0
- package/dist/testing/projections/ProjectionMappingCapabilities.js.map +1 -0
- package/dist/testing/projections/ProjectionMappingValidation.d.ts +9 -0
- package/dist/testing/projections/ProjectionMappingValidation.d.ts.map +1 -0
- package/dist/testing/projections/ProjectionMappingValidation.js +4 -0
- package/dist/testing/projections/ProjectionMappingValidation.js.map +1 -0
- package/dist/testing/projections/ProjectionReadModelCapabilities.d.ts +11 -0
- package/dist/testing/projections/ProjectionReadModelCapabilities.d.ts.map +1 -0
- package/dist/testing/projections/ProjectionReadModelCapabilities.js +40 -0
- package/dist/testing/projections/ProjectionReadModelCapabilities.js.map +1 -0
- package/dist/testing/projections/ProjectionRootCapabilities.d.ts +20 -0
- package/dist/testing/projections/ProjectionRootCapabilities.d.ts.map +1 -0
- package/dist/testing/projections/ProjectionRootCapabilities.js +73 -0
- package/dist/testing/projections/ProjectionRootCapabilities.js.map +1 -0
- package/dist/testing/projections/ProjectionScalarConverter.d.ts +21 -0
- package/dist/testing/projections/ProjectionScalarConverter.d.ts.map +1 -0
- package/dist/testing/projections/ProjectionScalarConverter.js +105 -0
- package/dist/testing/projections/ProjectionScalarConverter.js.map +1 -0
- package/dist/testing/projections/ProjectionSchemaCapabilities.d.ts +26 -0
- package/dist/testing/projections/ProjectionSchemaCapabilities.d.ts.map +1 -0
- package/dist/testing/projections/ProjectionSchemaCapabilities.js +109 -0
- package/dist/testing/projections/ProjectionSchemaCapabilities.js.map +1 -0
- package/dist/testing/projections/ProjectionValueConverter.d.ts +5 -0
- package/dist/testing/projections/ProjectionValueConverter.d.ts.map +1 -1
- package/dist/testing/projections/ProjectionValueConverter.js +36 -84
- package/dist/testing/projections/ProjectionValueConverter.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/DecoratorType.d.ts +3 -1
- package/dist/types/DecoratorType.d.ts.map +1 -1
- package/dist/types/DecoratorType.js +2 -0
- package/dist/types/DecoratorType.js.map +1 -1
- package/for_ChronicleClient/when_reconnecting/and_an_observation_stream_lost_its_session.spec.ts +212 -0
- package/observation/ObservationReconnectBackoff.ts +109 -0
- package/observation/ObservationStreamOutcome.ts +12 -0
- package/observation/classifyStreamError.ts +67 -0
- package/observation/for_ObservationReconnectBackoff/given/a_backoff.ts +29 -0
- package/observation/for_ObservationReconnectBackoff/given/a_scripted_stream.ts +52 -0
- package/observation/for_ObservationReconnectBackoff/when_a_stream_delivered_before_it_ended.spec.ts +23 -0
- package/observation/for_ObservationReconnectBackoff/when_a_stream_stayed_open_before_it_ended.spec.ts +25 -0
- package/observation/for_ObservationReconnectBackoff/when_jittering_the_delay.spec.ts +24 -0
- package/observation/for_ObservationReconnectBackoff/when_streams_keep_ending_without_working.spec.ts +24 -0
- package/observation/for_ObservationReconnectBackoff/when_the_base_delay_is_not_positive.spec.ts +18 -0
- package/observation/for_ObservationReconnectBackoff/when_the_settings_are_not_finite.spec.ts +32 -0
- package/observation/for_ObservationReconnectBackoff/when_using_the_defaults.spec.ts +29 -0
- package/observation/for_classifyStreamError/when_classifying_a_stream_error.spec.ts +36 -0
- package/package.json +2 -2
- package/projections/for_Graphs/given/a_discovered_graph.ts +3 -2
- package/projections/for_Graphs/given/a_graph_with_views.ts +91 -0
- package/projections/for_Graphs/given/organization.ts +3 -2
- package/projections/for_Graphs/given/organization_with_views.fixture.ts +129 -0
- package/projections/for_Graphs/when_building_graph_views.spec.ts +218 -0
- package/projections/for_Graphs/when_declaring_an_invalid_graph_view.spec.ts +229 -0
- package/projections/for_Graphs/when_declaring_graph_views.standard.spec.ts +49 -0
- package/projections/for_Graphs/when_discovering_graph_views.spec.ts +58 -0
- package/projections/graphs/Graphs.ts +44 -0
- package/projections/graphs/IGraphs.ts +10 -2
- package/projections/graphs/index.ts +1 -0
- package/projections/graphs/views/AmbiguousDirection.ts +23 -0
- package/projections/graphs/views/DuplicateViewName.ts +23 -0
- package/projections/graphs/views/EdgeNotIncidentOnRoot.ts +24 -0
- package/projections/graphs/views/EdgePropertyViewNotUsedAsTarget.ts +21 -0
- package/projections/graphs/views/EdgePropertyViewSharedAcrossEdges.ts +22 -0
- package/projections/graphs/views/FollowsOptions.ts +20 -0
- package/projections/graphs/views/GraphEdgeDirection.ts +13 -0
- package/projections/graphs/views/GraphView.ts +18 -0
- package/projections/graphs/views/GraphViewBuildResult.ts +19 -0
- package/projections/graphs/views/GraphViewCardinality.ts +13 -0
- package/projections/graphs/views/GraphViewDefinition.ts +20 -0
- package/projections/graphs/views/GraphViewDefinitionBuilder.ts +322 -0
- package/projections/graphs/views/GraphViewDefinitionSerializer.ts +90 -0
- package/projections/graphs/views/GraphViewEdgeReference.ts +8 -0
- package/projections/graphs/views/GraphViewMember.ts +11 -0
- package/projections/graphs/views/GraphViewMemberKind.ts +16 -0
- package/projections/graphs/views/GraphViewMemberMetadata.ts +31 -0
- package/projections/graphs/views/GraphViewPropertyMember.ts +18 -0
- package/projections/graphs/views/GraphViewReason.ts +47 -0
- package/projections/graphs/views/GraphViewRelationMember.ts +29 -0
- package/projections/graphs/views/GraphViewSchema.ts +14 -0
- package/projections/graphs/views/GraphViewSchemaEdge.ts +20 -0
- package/projections/graphs/views/GraphViewSchemaNode.ts +14 -0
- package/projections/graphs/views/GraphViewSerializerOptions.ts +11 -0
- package/projections/graphs/views/RecursiveView.ts +22 -0
- package/projections/graphs/views/RelationTargetNotAView.ts +23 -0
- package/projections/graphs/views/TargetLabelMismatch.ts +25 -0
- package/projections/graphs/views/UnknownEdge.ts +23 -0
- package/projections/graphs/views/UnknownEdgeProperty.ts +24 -0
- package/projections/graphs/views/UnknownNodeProperty.ts +24 -0
- package/projections/graphs/views/ViewIsAlsoSchema.ts +21 -0
- package/projections/graphs/views/ViewOfMetadata.ts +11 -0
- package/projections/graphs/views/ViewOfOptions.ts +8 -0
- package/projections/graphs/views/ViewRootNotANode.ts +23 -0
- package/projections/graphs/views/declareGraphViewMember.ts +36 -0
- package/projections/graphs/views/follows.ts +28 -0
- package/projections/graphs/views/fromEdge.ts +17 -0
- package/projections/graphs/views/index.ts +43 -0
- package/projections/graphs/views/viewKey.ts +15 -0
- package/projections/graphs/views/viewOf.ts +50 -0
- package/projections/graphs/views/viewProperty.ts +16 -0
- package/reactors/Reactors.ts +101 -18
- package/reactors/for_Reactors/when_reconnecting_the_observation_stream/and_a_handler_failed_with_a_lost_session.spec.ts +32 -0
- package/reactors/for_Reactors/when_reconnecting_the_observation_stream/and_a_replaced_stream_fails_late.spec.ts +28 -0
- package/reactors/for_Reactors/when_reconnecting_the_observation_stream/and_a_stream_delivered_before_it_ended.spec.ts +24 -0
- package/reactors/for_Reactors/when_reconnecting_the_observation_stream/and_a_stream_stayed_open_before_it_ended.spec.ts +23 -0
- package/reactors/for_Reactors/when_reconnecting_the_observation_stream/and_it_is_disposed_while_waiting_to_reopen.spec.ts +27 -0
- package/reactors/for_Reactors/when_reconnecting_the_observation_stream/and_streams_keep_ending_without_working.spec.ts +24 -0
- package/reactors/for_Reactors/when_reconnecting_the_observation_stream/and_the_client_reconnected_after_streams_kept_ending.spec.ts +24 -0
- package/reactors/for_Reactors/when_reconnecting_the_observation_stream/and_the_client_reconnected_while_waiting_to_reopen.spec.ts +25 -0
- package/reactors/for_Reactors/when_reconnecting_the_observation_stream/and_the_kernel_lost_the_session.spec.ts +24 -0
- package/reactors/for_Reactors/when_reconnecting_the_observation_stream/given/a_reactor_whose_stream_ends.ts +69 -0
- package/reducers/Reducers.ts +99 -19
- package/reducers/for_Reducers/when_reconnecting_the_observation_stream/and_a_reducer_failed_with_a_lost_session.spec.ts +33 -0
- package/reducers/for_Reducers/when_reconnecting_the_observation_stream/and_a_replaced_stream_fails_late.spec.ts +28 -0
- package/reducers/for_Reducers/when_reconnecting_the_observation_stream/and_a_stream_delivered_before_it_ended.spec.ts +24 -0
- package/reducers/for_Reducers/when_reconnecting_the_observation_stream/and_a_stream_stayed_open_before_it_ended.spec.ts +23 -0
- package/reducers/for_Reducers/when_reconnecting_the_observation_stream/and_it_is_disposed_while_waiting_to_reopen.spec.ts +27 -0
- package/reducers/for_Reducers/when_reconnecting_the_observation_stream/and_streams_keep_ending_without_working.spec.ts +24 -0
- package/reducers/for_Reducers/when_reconnecting_the_observation_stream/and_the_client_reconnected_after_streams_kept_ending.spec.ts +24 -0
- package/reducers/for_Reducers/when_reconnecting_the_observation_stream/and_the_client_reconnected_while_waiting_to_reopen.spec.ts +25 -0
- package/reducers/for_Reducers/when_reconnecting_the_observation_stream/and_the_kernel_lost_the_session.spec.ts +24 -0
- package/reducers/for_Reducers/when_reconnecting_the_observation_stream/given/a_reducer_whose_stream_ends.ts +69 -0
- package/testing/InProcessAppendMetadata.ts +119 -0
- package/testing/InProcessBatchAppend.ts +142 -0
- package/testing/InProcessEventPayload.ts +100 -0
- package/testing/InProcessEventReadCriteria.ts +11 -0
- package/testing/InProcessEventReadFilter.ts +37 -0
- package/testing/InProcessEventSequence.ts +63 -257
- package/testing/InProcessEventSequenceEnvironment.ts +16 -0
- package/testing/InProcessSingleAppend.ts +99 -0
- package/testing/for_InProcessEventSequence/when_preserving_validation_and_commit_order.spec.ts +95 -0
- package/testing/projections/ProjectionCapabilities.ts +23 -279
- package/testing/projections/ProjectionCapabilityReject.ts +5 -0
- package/testing/projections/ProjectionCapabilityReporter.ts +31 -0
- package/testing/projections/ProjectionDefinitionCapabilities.ts +45 -0
- package/testing/projections/ProjectionEventSchemaResolver.ts +23 -0
- package/testing/projections/ProjectionExpressionCapabilities.ts +101 -0
- package/testing/projections/ProjectionInitialValueCapabilities.ts +73 -0
- package/testing/projections/ProjectionMappingCapabilities.ts +85 -0
- package/testing/projections/ProjectionMappingValidation.ts +12 -0
- package/testing/projections/ProjectionReadModelCapabilities.ts +42 -0
- package/testing/projections/ProjectionRootCapabilities.ts +75 -0
- package/testing/projections/ProjectionScalarConverter.ts +106 -0
- package/testing/projections/ProjectionSchemaCapabilities.ts +112 -0
- package/testing/projections/ProjectionValueConverter.ts +37 -76
- package/testing/projections/for_ProjectionCapabilities/when_reporting_the_first_unsupported_operation.spec.ts +74 -0
- package/testing/projections/for_ProjectionValueConverter/when_converting_structured_and_scalar_values.spec.ts +64 -0
- package/types/DecoratorType.ts +4 -1
|
@@ -0,0 +1,80 @@
|
|
|
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 'reflect-metadata';
|
|
4
|
+
import { edge } from '../../graphs/edge.js';
|
|
5
|
+
import { edgeSource } from '../../graphs/edgeSource.js';
|
|
6
|
+
import { edgeTarget } from '../../graphs/edgeTarget.js';
|
|
7
|
+
import { graph } from '../../graphs/graph.js';
|
|
8
|
+
import { graphKey } from '../../graphs/graphKey.js';
|
|
9
|
+
import { node } from '../../graphs/node.js';
|
|
10
|
+
import { viewOf } from '../../graphs/views/viewOf.js';
|
|
11
|
+
import { discoverGraphs } from './a_discovered_graph.js';
|
|
12
|
+
/**
|
|
13
|
+
* Declares a graph of people and groups.
|
|
14
|
+
* @param graphName - The name of the graph.
|
|
15
|
+
* @returns The classes of the graph.
|
|
16
|
+
*/
|
|
17
|
+
export function anOrganization(graphName) {
|
|
18
|
+
class Person {
|
|
19
|
+
personId = '';
|
|
20
|
+
name = '';
|
|
21
|
+
}
|
|
22
|
+
graph(graphName)(Person);
|
|
23
|
+
node()(Person);
|
|
24
|
+
graphKey()(Person.prototype, 'personId');
|
|
25
|
+
class Group {
|
|
26
|
+
groupId = '';
|
|
27
|
+
name = '';
|
|
28
|
+
}
|
|
29
|
+
graph(graphName)(Group);
|
|
30
|
+
node()(Group);
|
|
31
|
+
graphKey()(Group.prototype, 'groupId');
|
|
32
|
+
class MemberOf {
|
|
33
|
+
personId = '';
|
|
34
|
+
groupId = '';
|
|
35
|
+
since = '';
|
|
36
|
+
}
|
|
37
|
+
graph(graphName)(MemberOf);
|
|
38
|
+
edge('MEMBER_OF')(MemberOf);
|
|
39
|
+
edgeSource(Person)(MemberOf.prototype, 'personId');
|
|
40
|
+
edgeTarget(Group)(MemberOf.prototype, 'groupId');
|
|
41
|
+
class Knows {
|
|
42
|
+
fromId = '';
|
|
43
|
+
toId = '';
|
|
44
|
+
since = '';
|
|
45
|
+
}
|
|
46
|
+
graph(graphName)(Knows);
|
|
47
|
+
edge('KNOWS')(Knows);
|
|
48
|
+
edgeSource(Person)(Knows.prototype, 'fromId');
|
|
49
|
+
edgeTarget(Person)(Knows.prototype, 'toId');
|
|
50
|
+
return { graphName, Person, Group, MemberOf, Knows, elements: [Person, Group, MemberOf, Knows] };
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Declares a view over a graph.
|
|
54
|
+
* @param graphName - The name of the graph.
|
|
55
|
+
* @param name - The name of the view, which is also the name of the class.
|
|
56
|
+
* @param root - A function returning the class of the node the view is anchored at.
|
|
57
|
+
* @param members - The members of the view, in declaration order.
|
|
58
|
+
* @returns The class of the view.
|
|
59
|
+
*/
|
|
60
|
+
export function aView(graphName, name, root, ...members) {
|
|
61
|
+
class View {
|
|
62
|
+
}
|
|
63
|
+
Object.defineProperty(View, 'name', { value: name });
|
|
64
|
+
graph(graphName)(View);
|
|
65
|
+
viewOf(root)(View);
|
|
66
|
+
for (const [property, decorator] of members)
|
|
67
|
+
decorator(View.prototype, property);
|
|
68
|
+
return View;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Discovers a graph with views, once.
|
|
72
|
+
* @param organization - The graph.
|
|
73
|
+
* @param views - The views.
|
|
74
|
+
* @returns The discovered graphs.
|
|
75
|
+
*/
|
|
76
|
+
export async function discoverViews(organization, ...views) {
|
|
77
|
+
const result = await discoverGraphs(organization.elements, [], 'Neo4j', views);
|
|
78
|
+
return result.graphs;
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=a_graph_with_views.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"a_graph_with_views.js","sourceRoot":"","sources":["../../../../projections/for_Graphs/given/a_graph_with_views.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,kBAAkB,CAAC;AAG1B,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAiBzD;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,SAAiB;IAC5C,MAAM,MAAM;QAAG,QAAQ,GAAG,EAAE,CAAC;QAAC,IAAI,GAAG,EAAE,CAAC;KAAE;IAC1C,KAAK,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACzB,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC;IACf,QAAQ,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAEzC,MAAM,KAAK;QAAG,OAAO,GAAG,EAAE,CAAC;QAAC,IAAI,GAAG,EAAE,CAAC;KAAE;IACxC,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC;IACxB,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAE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C,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;IACnB,KAAK,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,IAAI,OAAO;QAAE,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IACjF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,YAA0B,EAAE,GAAG,KAAoB;IACnF,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,YAAY,CAAC,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAC/E,OAAO,MAAM,CAAC,MAAM,CAAC;AACzB,CAAC"}
|
|
@@ -37,7 +37,8 @@ export declare class MemberOf {
|
|
|
37
37
|
* Creates a provider that finds only the given graph artifacts.
|
|
38
38
|
* @param graphElements - The nodes and edges.
|
|
39
39
|
* @param graphProjections - The fluent graph projections.
|
|
40
|
+
* @param graphViews - The views over graphs.
|
|
40
41
|
* @returns The provider.
|
|
41
42
|
*/
|
|
42
|
-
export declare function artifactsWith(graphElements: Constructor[], graphProjections?: Constructor[]): IClientArtifactsProvider;
|
|
43
|
+
export declare function artifactsWith(graphElements: Constructor[], graphProjections?: Constructor[], graphViews?: Constructor[]): IClientArtifactsProvider;
|
|
43
44
|
//# sourceMappingURL=organization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../../../projections/for_Graphs/given/organization.ts"],"names":[],"mappings":"AAGA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAa/F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIxD,qBAAa,gBAAgB;IACzB,QAAQ,SAAM;IACd,IAAI,SAAM;CACb;AAGD,qBAAa,aAAa;IACtB,QAAQ,SAAM;CACjB;AAGD,qBAAa,YAAY;IACrB,OAAO,SAAM;IACb,IAAI,SAAM;CACb;AAGD,qBAAa,WAAW;IACpB,QAAQ,SAAM;IACd,OAAO,SAAM;CAChB;AAGD,qBAAa,aAAa;IACtB,QAAQ,SAAM;IACd,OAAO,SAAM;CAChB;AAGD,qBAAa,MAAM;IACf,QAAQ,SAAM;IACd,IAAI,SAAM;CACb;AAOD,qBAAa,KAAK;IACd,OAAO,SAAM;IACb,IAAI,SAAM;CACb;AAMD,qBAAa,QAAQ;IACjB,QAAQ,SAAM;IACd,OAAO,SAAM;IACb,KAAK,OAAc;CACtB;AAUD
|
|
1
|
+
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../../../projections/for_Graphs/given/organization.ts"],"names":[],"mappings":"AAGA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAa/F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIxD,qBAAa,gBAAgB;IACzB,QAAQ,SAAM;IACd,IAAI,SAAM;CACb;AAGD,qBAAa,aAAa;IACtB,QAAQ,SAAM;CACjB;AAGD,qBAAa,YAAY;IACrB,OAAO,SAAM;IACb,IAAI,SAAM;CACb;AAGD,qBAAa,WAAW;IACpB,QAAQ,SAAM;IACd,OAAO,SAAM;CAChB;AAGD,qBAAa,aAAa;IACtB,QAAQ,SAAM;IACd,OAAO,SAAM;CAChB;AAGD,qBAAa,MAAM;IACf,QAAQ,SAAM;IACd,IAAI,SAAM;CACb;AAOD,qBAAa,KAAK;IACd,OAAO,SAAM;IACb,IAAI,SAAM;CACb;AAMD,qBAAa,QAAQ;IACjB,QAAQ,SAAM;IACd,OAAO,SAAM;IACb,KAAK,OAAc;CACtB;AAUD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,aAAa,EAAE,WAAW,EAAE,EAAE,gBAAgB,GAAE,WAAW,EAAO,EAAE,UAAU,GAAE,WAAW,EAAO,GAAG,wBAAwB,CAK1J"}
|
|
@@ -73,12 +73,13 @@ edgeRemovedWith(MemberRemoved, { sourceKey: 'personId', targetKey: 'groupId' })(
|
|
|
73
73
|
* Creates a provider that finds only the given graph artifacts.
|
|
74
74
|
* @param graphElements - The nodes and edges.
|
|
75
75
|
* @param graphProjections - The fluent graph projections.
|
|
76
|
+
* @param graphViews - The views over graphs.
|
|
76
77
|
* @returns The provider.
|
|
77
78
|
*/
|
|
78
|
-
export function artifactsWith(graphElements, graphProjections = []) {
|
|
79
|
+
export function artifactsWith(graphElements, graphProjections = [], graphViews = []) {
|
|
79
80
|
return {
|
|
80
81
|
eventTypes: [], readModels: [], reactors: [], reducers: [], seeders: [], constraints: [], projections: [],
|
|
81
|
-
webhooks: [], eventTypeMigrations: [], globalForHandlers: [], graphElements, graphProjections
|
|
82
|
+
webhooks: [], eventTypeMigrations: [], globalForHandlers: [], graphElements, graphProjections, graphViews
|
|
82
83
|
};
|
|
83
84
|
}
|
|
84
85
|
//# sourceMappingURL=organization.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../../../projections/for_Graphs/given/organization.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAA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AS,EAAE,OAAO,CAAC,CAAC;AACzC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,CAAC;AAChC,IAAI,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;AAC5B,UAAU,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;AACnD,UAAU,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AACjD,cAAc,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AACrE,QAAQ,CAAC,WAAW,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;AACjF,eAAe,CAAC,aAAa,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;AAE1F;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,aAA4B,EAAE,gBAAgB,GAAkB,EAAE,EAAE,UAAU,GAAkB,EAAE;IAC5H,OAAO;QACH,UAAU,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE;QACzG,QAAQ,EAAE,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,aAAa,EAAE,gBAAgB,EAAE,UAAU;KAC5G,CAAC;AACN,CAAC"}
|
|
@@ -3,6 +3,7 @@ import type { IClientArtifactsProvider } from '../../artifacts/index.js';
|
|
|
3
3
|
import type { ChronicleConnection } from '../../connection/index.js';
|
|
4
4
|
import type { GraphRegistration } from './GraphRegistration.js';
|
|
5
5
|
import type { IGraphs } from './IGraphs.js';
|
|
6
|
+
import type { GraphViewDefinition } from './views/GraphViewDefinition.js';
|
|
6
7
|
/**
|
|
7
8
|
* Implements {@link IGraphs}, discovering the graphs an application declares, with the decorators and with the fluent
|
|
8
9
|
* builder, and registering them with the Chronicle Kernel.
|
|
@@ -15,6 +16,7 @@ export declare class Graphs implements IGraphs {
|
|
|
15
16
|
private readonly _failures;
|
|
16
17
|
private readonly _logger;
|
|
17
18
|
private _registrations;
|
|
19
|
+
private _viewDefinitions;
|
|
18
20
|
/**
|
|
19
21
|
* Creates a new {@link Graphs} instance.
|
|
20
22
|
* @param _eventStore - The event store name.
|
|
@@ -26,6 +28,8 @@ export declare class Graphs implements IGraphs {
|
|
|
26
28
|
/** @inheritdoc */
|
|
27
29
|
get registrations(): readonly GraphRegistration[];
|
|
28
30
|
/** @inheritdoc */
|
|
31
|
+
get viewDefinitions(): readonly GraphViewDefinition[];
|
|
32
|
+
/** @inheritdoc */
|
|
29
33
|
get failures(): ReadonlyMap<Constructor, Error>;
|
|
30
34
|
/** @inheritdoc */
|
|
31
35
|
discover(): Promise<void>;
|
|
@@ -33,6 +37,7 @@ export declare class Graphs implements IGraphs {
|
|
|
33
37
|
register(): Promise<void>;
|
|
34
38
|
private modelBoundGraphs;
|
|
35
39
|
private fluentGraphs;
|
|
40
|
+
private discoverViews;
|
|
36
41
|
private tryRead;
|
|
37
42
|
private fail;
|
|
38
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Graphs.d.ts","sourceRoot":"","sources":["../../../projections/graphs/Graphs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAYrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,KAAK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C,IAAI,CAAC,CAoB9B;IAED,kBAAkB;IACZ,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAkB9B;IAED,OAAO,CAAC,gBAAgB;IA+BxB,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,aAAa;IA+BrB,OAAO,CAAC,OAAO;IAQf,OAAO,CAAC,IAAI;CAKf"}
|
|
@@ -12,6 +12,9 @@ import { getEdgeMetadata } from './edge.js';
|
|
|
12
12
|
import { getGraphProjectionMetadata } from './graphProjection.js';
|
|
13
13
|
import { getNodeMetadata } from './node.js';
|
|
14
14
|
import { ModelBoundGraphReader } from './ModelBoundGraphReader.js';
|
|
15
|
+
import { GraphViewDefinitionBuilder } from './views/GraphViewDefinitionBuilder.js';
|
|
16
|
+
import { getViewOfMetadata } from './views/viewOf.js';
|
|
17
|
+
import { ViewRootNotANode } from './views/ViewRootNotANode.js';
|
|
15
18
|
/**
|
|
16
19
|
* Implements {@link IGraphs}, discovering the graphs an application declares, with the decorators and with the fluent
|
|
17
20
|
* builder, and registering them with the Chronicle Kernel.
|
|
@@ -24,6 +27,7 @@ export class Graphs {
|
|
|
24
27
|
_failures = new Map();
|
|
25
28
|
_logger;
|
|
26
29
|
_registrations = [];
|
|
30
|
+
_viewDefinitions = [];
|
|
27
31
|
/**
|
|
28
32
|
* Creates a new {@link Graphs} instance.
|
|
29
33
|
* @param _eventStore - The event store name.
|
|
@@ -43,6 +47,10 @@ export class Graphs {
|
|
|
43
47
|
return this._registrations;
|
|
44
48
|
}
|
|
45
49
|
/** @inheritdoc */
|
|
50
|
+
get viewDefinitions() {
|
|
51
|
+
return this._viewDefinitions;
|
|
52
|
+
}
|
|
53
|
+
/** @inheritdoc */
|
|
46
54
|
get failures() {
|
|
47
55
|
return this._failures;
|
|
48
56
|
}
|
|
@@ -52,18 +60,21 @@ export class Graphs {
|
|
|
52
60
|
const builder = new GraphDefinitionBuilder();
|
|
53
61
|
const registrations = [];
|
|
54
62
|
const names = new Set();
|
|
63
|
+
const models = new Map();
|
|
55
64
|
for (const declared of [...this.modelBoundGraphs(), ...this.fluentGraphs()]) {
|
|
56
65
|
try {
|
|
57
66
|
if (names.has(declared.model.name))
|
|
58
67
|
throw new GraphDeclaredMoreThanOnce(declared.model.name);
|
|
59
68
|
registrations.push(builder.build(declared.model, declared.projectionId, this._graphSinkTypeId));
|
|
60
69
|
names.add(declared.model.name);
|
|
70
|
+
models.set(declared.model.name, declared.model);
|
|
61
71
|
}
|
|
62
72
|
catch (error) {
|
|
63
73
|
this.fail(declared.source, error);
|
|
64
74
|
}
|
|
65
75
|
}
|
|
66
76
|
this._registrations = registrations;
|
|
77
|
+
this._viewDefinitions = this.discoverViews(models);
|
|
67
78
|
this._logger.debug('Graph discovery complete', { graphCount: registrations.length, failureCount: this._failures.size });
|
|
68
79
|
}
|
|
69
80
|
/** @inheritdoc */
|
|
@@ -127,6 +138,38 @@ export class Graphs {
|
|
|
127
138
|
}
|
|
128
139
|
return result;
|
|
129
140
|
}
|
|
141
|
+
discoverViews(models) {
|
|
142
|
+
const byGraph = new Map();
|
|
143
|
+
for (const type of this._clientArtifacts.graphViews ?? []) {
|
|
144
|
+
this.tryRead(type, () => {
|
|
145
|
+
const graph = ModelBoundGraphReader.graphNameOf(type);
|
|
146
|
+
byGraph.set(graph, [...(byGraph.get(graph) ?? []), type]);
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
const builder = new GraphViewDefinitionBuilder();
|
|
150
|
+
const definitions = [];
|
|
151
|
+
for (const [graph, views] of byGraph) {
|
|
152
|
+
const model = models.get(graph);
|
|
153
|
+
if (model === undefined) {
|
|
154
|
+
// The graph is not registered, so a view has nothing to read. Why is reported for the graph itself.
|
|
155
|
+
for (const view of views)
|
|
156
|
+
this.tryRead(view, () => { throw new ViewRootNotANode(view, graph, getViewOfMetadata(view).root()); });
|
|
157
|
+
continue;
|
|
158
|
+
}
|
|
159
|
+
try {
|
|
160
|
+
const result = builder.build(model, views);
|
|
161
|
+
for (const [view, failure] of result.failures)
|
|
162
|
+
this.fail(view, failure);
|
|
163
|
+
if (result.definition !== undefined)
|
|
164
|
+
definitions.push(result.definition);
|
|
165
|
+
}
|
|
166
|
+
catch (error) {
|
|
167
|
+
for (const view of views)
|
|
168
|
+
this.fail(view, error);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
return definitions;
|
|
172
|
+
}
|
|
130
173
|
tryRead(type, read) {
|
|
131
174
|
try {
|
|
132
175
|
read();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Graphs.js","sourceRoot":"","sources":["../../../projections/graphs/Graphs.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAKrG,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAInF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAIrE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Graphs.js","sourceRoot":"","sources":["../../../projections/graphs/Graphs.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAKrG,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO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AAE,IAAgB;QAC/C,IAAI,CAAC;YACD,IAAI,EAAE,CAAC;QACX,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAC3B,CAAC;IACL,CAAC;IAEO,IAAI,CAAC,IAAiB,EAAE,KAAc;QAC1C,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC1E,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,oCAAoC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;CACJ"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Constructor } from '@cratis/fundamentals';
|
|
2
2
|
import type { GraphRegistration } from './GraphRegistration.js';
|
|
3
|
+
import type { GraphViewDefinition } from './views/GraphViewDefinition.js';
|
|
3
4
|
/**
|
|
4
5
|
* Defines a system for the property graphs an application declares, with the decorators and with the fluent builder,
|
|
5
6
|
* including discovery and registration with the Chronicle Kernel.
|
|
@@ -8,8 +9,14 @@ export interface IGraphs {
|
|
|
8
9
|
/** Gets the registrations found by the last call to {@link IGraphs.discover}. */
|
|
9
10
|
readonly registrations: readonly GraphRegistration[];
|
|
10
11
|
/**
|
|
11
|
-
* Gets the
|
|
12
|
-
*
|
|
12
|
+
* Gets the definitions of the views declared over the graphs, one per graph that has views, as found by the last
|
|
13
|
+
* call to {@link IGraphs.discover}. The definitions are not registered with the kernel. Optional so
|
|
14
|
+
* implementations written before graph views keep working.
|
|
15
|
+
*/
|
|
16
|
+
readonly viewDefinitions?: readonly GraphViewDefinition[];
|
|
17
|
+
/**
|
|
18
|
+
* Gets the declarations that could not be turned into a registration, and why, including views that break
|
|
19
|
+
* the rules of a view. One invalid graph or view does not take the rest of the graphs down with it.
|
|
13
20
|
*/
|
|
14
21
|
readonly failures: ReadonlyMap<Constructor, Error>;
|
|
15
22
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGraphs.d.ts","sourceRoot":"","sources":["../../../projections/graphs/IGraphs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"IGraphs.d.ts","sourceRoot":"","sources":["../../../projections/graphs/IGraphs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAE1E;;;GAGG;AACH,MAAM,WAAW,OAAO;IACpB,iFAAiF;IACjF,QAAQ,CAAC,aAAa,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAErD;;;;OAIG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;IAE1D;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IAEnD;;;OAGG;IACH,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1B;;;;OAIG;IACH,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7B"}
|
|
@@ -46,4 +46,5 @@ export { GraphKeyPropertyNotFound } from './GraphKeyPropertyNotFound.js';
|
|
|
46
46
|
export { GraphElementCannotBeReadModel } from './GraphElementCannotBeReadModel.js';
|
|
47
47
|
export { GraphHasDuplicateElement } from './GraphHasDuplicateElement.js';
|
|
48
48
|
export { GraphDeclaredMoreThanOnce } from './GraphDeclaredMoreThanOnce.js';
|
|
49
|
+
export * from './views/index.js';
|
|
49
50
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../projections/graphs/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAClD,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAClD,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AACnF,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACpE,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACpE,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC9D,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AACnF,YAAY,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC5F,OAAO,EAAE,QAAQ,EAAE,m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iB,CAAC;AAClD,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,cAAc,kBAAkB,CAAC"}
|
|
@@ -25,4 +25,5 @@ export { GraphKeyPropertyNotFound } from './GraphKeyPropertyNotFound.js';
|
|
|
25
25
|
export { GraphElementCannotBeReadModel } from './GraphElementCannotBeReadModel.js';
|
|
26
26
|
export { GraphHasDuplicateElement } from './GraphHasDuplicateElement.js';
|
|
27
27
|
export { GraphDeclaredMoreThanOnce } from './GraphDeclaredMoreThanOnce.js';
|
|
28
|
+
export * from './views/index.js';
|
|
28
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../projections/graphs/index.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,K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E,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GraphViewReason } from './GraphViewReason.js';
|
|
2
|
+
/**
|
|
3
|
+
* Error raised when a relation follows an edge that starts and ends at the same label without saying in which direction.
|
|
4
|
+
*/
|
|
5
|
+
export declare class AmbiguousDirection extends Error {
|
|
6
|
+
/** The stable reason code of the rule that was broken. */
|
|
7
|
+
readonly reason = GraphViewReason.AmbiguousDirection;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new {@link AmbiguousDirection}.
|
|
10
|
+
* @param view - The view type.
|
|
11
|
+
* @param member - The name of the member.
|
|
12
|
+
* @param edge - The edge type.
|
|
13
|
+
*/
|
|
14
|
+
constructor(view: Function, member: string, edge: string);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=AmbiguousDirection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AmbiguousDirection.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/AmbiguousDirection.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;IACzC,0DAA0D;IAC1D,QAAQ,CAAC,MAAM,sCAAsC;IAErD;;;;;OAKG;IACH,YAAY,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAGvD;CACJ"}
|
|
@@ -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 a relation follows an edge that starts and ends at the same label without saying in which direction.
|
|
6
|
+
*/
|
|
7
|
+
export class AmbiguousDirection extends Error {
|
|
8
|
+
/** The stable reason code of the rule that was broken. */
|
|
9
|
+
reason = GraphViewReason.AmbiguousDirection;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new {@link AmbiguousDirection}.
|
|
12
|
+
* @param view - The view type.
|
|
13
|
+
* @param member - The name of the member.
|
|
14
|
+
* @param edge - The edge type.
|
|
15
|
+
*/
|
|
16
|
+
constructor(view, member, edge) {
|
|
17
|
+
super(`The member '${member}' of the view '${view.name}' follows '${edge}', which starts and ends at the same label. State the direction.`);
|
|
18
|
+
this.name = 'AmbiguousDirection';
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=AmbiguousDirection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AmbiguousDirection.js","sourceRoot":"","sources":["../../../../projections/graphs/views/AmbiguousDirection.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IACzC,0DAA0D;IACjD,MAAM,GAAG,eAAe,CAAC,kBAAkB,CAAC;IAErD;;;;;OAKG;IACH,YAAY,IAAc,EAAE,MAAc,EAAE,IAAY;QACpD,KAAK,CAAC,eAAe,MAAM,kBAAkB,IAAI,CAAC,IAAI,cAAc,IAAI,kEAAkE,CAAC,CAAC;QAC5I,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;IACrC,CAAC;CACJ"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GraphViewReason } from './GraphViewReason.js';
|
|
2
|
+
/**
|
|
3
|
+
* Error raised when two views of a graph have the same name.
|
|
4
|
+
*/
|
|
5
|
+
export declare class DuplicateViewName extends Error {
|
|
6
|
+
/** The stable reason code of the rule that was broken. */
|
|
7
|
+
readonly reason = GraphViewReason.DuplicateViewName;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new {@link DuplicateViewName}.
|
|
10
|
+
* @param view - The view type that repeats the name.
|
|
11
|
+
* @param graph - The name of the graph.
|
|
12
|
+
* @param name - The name of the view.
|
|
13
|
+
*/
|
|
14
|
+
constructor(view: Function, graph: string, name: string);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=DuplicateViewName.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DuplicateViewName.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/DuplicateViewName.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,KAAK;IACxC,0DAA0D;IAC1D,QAAQ,CAAC,MAAM,qCAAqC;IAEpD;;;;;OAKG;IACH,YAAY,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAGtD;CACJ"}
|
|
@@ -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"}
|