@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.
- package/artifacts/DefaultClientArtifactsProvider.ts +5 -0
- package/artifacts/IClientArtifactsProvider.ts +3 -0
- 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/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/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/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/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,21 @@
|
|
|
1
|
+
import type { GraphEdgeDirection } from './GraphEdgeDirection.js';
|
|
2
|
+
import type { GraphViewCardinality } from './GraphViewCardinality.js';
|
|
3
|
+
import type { GraphViewMemberKind } from './GraphViewMemberKind.js';
|
|
4
|
+
/**
|
|
5
|
+
* Represents a member of a view that follows one edge type in one direction to a nested view.
|
|
6
|
+
*/
|
|
7
|
+
export interface GraphViewRelationMember {
|
|
8
|
+
/** The name of the member. */
|
|
9
|
+
readonly name: string;
|
|
10
|
+
/** The kind of the member. */
|
|
11
|
+
readonly kind: GraphViewMemberKind.Relation;
|
|
12
|
+
/** The edge type that is followed, for example MEMBER_OF. */
|
|
13
|
+
readonly edge: string;
|
|
14
|
+
/** The direction in which the edge is followed, seen from the root node of the view. */
|
|
15
|
+
readonly direction: GraphEdgeDirection;
|
|
16
|
+
/** Whether the relation yields a list or a single item. */
|
|
17
|
+
readonly cardinality: GraphViewCardinality;
|
|
18
|
+
/** The name of the nested view. */
|
|
19
|
+
readonly view: string;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=GraphViewRelationMember.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphViewRelationMember.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphViewRelationMember.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,8BAA8B;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,8BAA8B;IAC9B,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC,QAAQ,CAAC;IAE5C,6DAA6D;IAC7D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,wFAAwF;IACxF,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC;IAEvC,2DAA2D;IAC3D,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;IAE3C,mCAAmC;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphViewRelationMember.js","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphViewRelationMember.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { GraphViewSchemaEdge } from './GraphViewSchemaEdge.js';
|
|
2
|
+
import type { GraphViewSchemaNode } from './GraphViewSchemaNode.js';
|
|
3
|
+
/** Represents the nodes and edges of the graph the views were validated against. */
|
|
4
|
+
export interface GraphViewSchema {
|
|
5
|
+
/** The nodes. */
|
|
6
|
+
readonly nodes: readonly GraphViewSchemaNode[];
|
|
7
|
+
/** The edges. */
|
|
8
|
+
readonly edges: readonly GraphViewSchemaEdge[];
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=GraphViewSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphViewSchema.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphViewSchema.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,oFAAoF;AACpF,MAAM,WAAW,eAAe;IAC5B,iBAAiB;IACjB,QAAQ,CAAC,KAAK,EAAE,SAAS,mBAAmB,EAAE,CAAC;IAE/C,iBAAiB;IACjB,QAAQ,CAAC,KAAK,EAAE,SAAS,mBAAmB,EAAE,CAAC;CAClD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphViewSchema.js","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphViewSchema.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Represents an edge of the graph the views were validated against. */
|
|
2
|
+
export interface GraphViewSchemaEdge {
|
|
3
|
+
/** The edge type, for example MEMBER_OF. */
|
|
4
|
+
readonly type: string;
|
|
5
|
+
/** The label of the node the edge starts at. */
|
|
6
|
+
readonly source: string;
|
|
7
|
+
/** The label of the node the edge ends at. */
|
|
8
|
+
readonly target: string;
|
|
9
|
+
/** The name of the property that identifies the edge, for an identified edge. */
|
|
10
|
+
readonly identifiedBy?: string;
|
|
11
|
+
/** The names of the properties of the edge. */
|
|
12
|
+
readonly properties: readonly string[];
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=GraphViewSchemaEdge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphViewSchemaEdge.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphViewSchemaEdge.ts"],"names":[],"mappings":"AAGA,wEAAwE;AACxE,MAAM,WAAW,mBAAmB;IAChC,4CAA4C;IAC5C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,gDAAgD;IAChD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,8CAA8C;IAC9C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,iFAAiF;IACjF,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAE/B,+CAA+C;IAC/C,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphViewSchemaEdge.js","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphViewSchemaEdge.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Represents a node of the graph the views were validated against. */
|
|
2
|
+
export interface GraphViewSchemaNode {
|
|
3
|
+
/** The node label. */
|
|
4
|
+
readonly label: string;
|
|
5
|
+
/** The name of the property that holds the key of the node. */
|
|
6
|
+
readonly key: string;
|
|
7
|
+
/** The names of the properties of the node. */
|
|
8
|
+
readonly properties: readonly string[];
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=GraphViewSchemaNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphViewSchemaNode.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphViewSchemaNode.ts"],"names":[],"mappings":"AAGA,uEAAuE;AACvE,MAAM,WAAW,mBAAmB;IAChC,sBAAsB;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB,+DAA+D;IAC/D,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB,+CAA+C;IAC/C,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphViewSchemaNode.js","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphViewSchemaNode.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Options of the {@link GraphViewDefinitionSerializer}. */
|
|
2
|
+
export interface GraphViewSerializerOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Whether to also write the schema, the nodes and edges the views were validated against, between the graph and
|
|
5
|
+
* the views. It is the form of the shared conformance fixture. Defaults to false.
|
|
6
|
+
*/
|
|
7
|
+
readonly includeSchema?: boolean;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=GraphViewSerializerOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphViewSerializerOptions.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphViewSerializerOptions.ts"],"names":[],"mappings":"AAGA,4DAA4D;AAC5D,MAAM,WAAW,0BAA0B;IACvC;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;CACpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphViewSerializerOptions.js","sourceRoot":"","sources":["../../../../projections/graphs/views/GraphViewSerializerOptions.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GraphViewReason } from './GraphViewReason.js';
|
|
2
|
+
/**
|
|
3
|
+
* Error raised when a view contains itself, directly or transitively.
|
|
4
|
+
*/
|
|
5
|
+
export declare class RecursiveView extends Error {
|
|
6
|
+
/** The stable reason code of the rule that was broken. */
|
|
7
|
+
readonly reason = GraphViewReason.RecursiveView;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new {@link RecursiveView}.
|
|
10
|
+
* @param view - The view type.
|
|
11
|
+
* @param path - The names of the views that make the cycle, starting and ending with the view.
|
|
12
|
+
*/
|
|
13
|
+
constructor(view: Function, path: readonly string[]);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=RecursiveView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecursiveView.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/RecursiveView.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,qBAAa,aAAc,SAAQ,KAAK;IACpC,0DAA0D;IAC1D,QAAQ,CAAC,MAAM,iCAAiC;IAEhD;;;;OAIG;IACH,YAAY,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,EAGlD;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 contains itself, directly or transitively.
|
|
6
|
+
*/
|
|
7
|
+
export class RecursiveView extends Error {
|
|
8
|
+
/** The stable reason code of the rule that was broken. */
|
|
9
|
+
reason = GraphViewReason.RecursiveView;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new {@link RecursiveView}.
|
|
12
|
+
* @param view - The view type.
|
|
13
|
+
* @param path - The names of the views that make the cycle, starting and ending with the view.
|
|
14
|
+
*/
|
|
15
|
+
constructor(view, path) {
|
|
16
|
+
super(`The view '${view.name}' contains itself: ${path.join(' -> ')}. Nesting must be finite.`);
|
|
17
|
+
this.name = 'RecursiveView';
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=RecursiveView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecursiveView.js","sourceRoot":"","sources":["../../../../projections/graphs/views/RecursiveView.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,KAAK;IACpC,0DAA0D;IACjD,MAAM,GAAG,eAAe,CAAC,aAAa,CAAC;IAEhD;;;;OAIG;IACH,YAAY,IAAc,EAAE,IAAuB;QAC/C,KAAK,CAAC,aAAa,IAAI,CAAC,IAAI,sBAAsB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC;QAChG,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAChC,CAAC;CACJ"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GraphViewReason } from './GraphViewReason.js';
|
|
2
|
+
/**
|
|
3
|
+
* Error raised when the target of a relation is not a declared view of the graph.
|
|
4
|
+
*/
|
|
5
|
+
export declare class RelationTargetNotAView extends Error {
|
|
6
|
+
/** The stable reason code of the rule that was broken. */
|
|
7
|
+
readonly reason = GraphViewReason.RelationTargetNotAView;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new {@link RelationTargetNotAView}.
|
|
10
|
+
* @param view - The view type.
|
|
11
|
+
* @param member - The name of the member.
|
|
12
|
+
* @param target - The type that is not a view of the graph.
|
|
13
|
+
*/
|
|
14
|
+
constructor(view: Function, member: string, target: Function);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=RelationTargetNotAView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationTargetNotAView.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/RelationTargetNotAView.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,KAAK;IAC7C,0DAA0D;IAC1D,QAAQ,CAAC,MAAM,0CAA0C;IAEzD;;;;;OAKG;IACH,YAAY,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAG3D;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 the target of a relation is not a declared view of the graph.
|
|
6
|
+
*/
|
|
7
|
+
export class RelationTargetNotAView extends Error {
|
|
8
|
+
/** The stable reason code of the rule that was broken. */
|
|
9
|
+
reason = GraphViewReason.RelationTargetNotAView;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new {@link RelationTargetNotAView}.
|
|
12
|
+
* @param view - The view type.
|
|
13
|
+
* @param member - The name of the member.
|
|
14
|
+
* @param target - The type that is not a view of the graph.
|
|
15
|
+
*/
|
|
16
|
+
constructor(view, member, target) {
|
|
17
|
+
super(`The member '${member}' of the view '${view.name}' yields '${target.name}', which is not a view of the graph. Declare it with viewOf and the same graph.`);
|
|
18
|
+
this.name = 'RelationTargetNotAView';
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=RelationTargetNotAView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationTargetNotAView.js","sourceRoot":"","sources":["../../../../projections/graphs/views/RelationTargetNotAView.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,OAAO,sBAAuB,SAAQ,KAAK;IAC7C,0DAA0D;IACjD,MAAM,GAAG,eAAe,CAAC,sBAAsB,CAAC;IAEzD;;;;;OAKG;IACH,YAAY,IAAc,EAAE,MAAc,EAAE,MAAgB;QACxD,KAAK,CAAC,eAAe,MAAM,kBAAkB,IAAI,CAAC,IAAI,aAAa,MAAM,CAAC,IAAI,iFAAiF,CAAC,CAAC;QACjK,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;IACzC,CAAC;CACJ"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { GraphViewReason } from './GraphViewReason.js';
|
|
2
|
+
/**
|
|
3
|
+
* Error raised when the root of the target view of a relation is not the label at the far end of the edge.
|
|
4
|
+
*/
|
|
5
|
+
export declare class TargetLabelMismatch extends Error {
|
|
6
|
+
/** The stable reason code of the rule that was broken. */
|
|
7
|
+
readonly reason = GraphViewReason.TargetLabelMismatch;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new {@link TargetLabelMismatch}.
|
|
10
|
+
* @param view - The view type.
|
|
11
|
+
* @param member - The name of the member.
|
|
12
|
+
* @param target - The target view type.
|
|
13
|
+
* @param expected - The label at the far end of the edge.
|
|
14
|
+
* @param actual - The label of the root of the target view.
|
|
15
|
+
*/
|
|
16
|
+
constructor(view: Function, member: string, target: Function, expected: string, actual: string);
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=TargetLabelMismatch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TargetLabelMismatch.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/TargetLabelMismatch.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,KAAK;IAC1C,0DAA0D;IAC1D,QAAQ,CAAC,MAAM,uCAAuC;IAEtD;;;;;;;OAOG;IACH,YAAY,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAG7F;CACJ"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 the root of the target view of a relation is not the label at the far end of the edge.
|
|
6
|
+
*/
|
|
7
|
+
export class TargetLabelMismatch extends Error {
|
|
8
|
+
/** The stable reason code of the rule that was broken. */
|
|
9
|
+
reason = GraphViewReason.TargetLabelMismatch;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new {@link TargetLabelMismatch}.
|
|
12
|
+
* @param view - The view type.
|
|
13
|
+
* @param member - The name of the member.
|
|
14
|
+
* @param target - The target view type.
|
|
15
|
+
* @param expected - The label at the far end of the edge.
|
|
16
|
+
* @param actual - The label of the root of the target view.
|
|
17
|
+
*/
|
|
18
|
+
constructor(view, member, target, expected, actual) {
|
|
19
|
+
super(`The member '${member}' of the view '${view.name}' reaches '${expected}', but the view '${target.name}' is anchored at '${actual}'.`);
|
|
20
|
+
this.name = 'TargetLabelMismatch';
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=TargetLabelMismatch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TargetLabelMismatch.js","sourceRoot":"","sources":["../../../../projections/graphs/views/TargetLabelMismatch.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IAC1C,0DAA0D;IACjD,MAAM,GAAG,eAAe,CAAC,mBAAmB,CAAC;IAEtD;;;;;;;OAOG;IACH,YAAY,IAAc,EAAE,MAAc,EAAE,MAAgB,EAAE,QAAgB,EAAE,MAAc;QAC1F,KAAK,CAAC,eAAe,MAAM,kBAAkB,IAAI,CAAC,IAAI,cAAc,QAAQ,oBAAoB,MAAM,CAAC,IAAI,qBAAqB,MAAM,IAAI,CAAC,CAAC;QAC5I,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;IACtC,CAAC;CACJ"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GraphViewReason } from './GraphViewReason.js';
|
|
2
|
+
/**
|
|
3
|
+
* Error raised when a relation of a view names an edge type the graph does not declare.
|
|
4
|
+
*/
|
|
5
|
+
export declare class UnknownEdge extends Error {
|
|
6
|
+
/** The stable reason code of the rule that was broken. */
|
|
7
|
+
readonly reason = GraphViewReason.UnknownEdge;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new {@link UnknownEdge}.
|
|
10
|
+
* @param view - The view type.
|
|
11
|
+
* @param member - The name of the member.
|
|
12
|
+
* @param edge - The edge that is not declared.
|
|
13
|
+
*/
|
|
14
|
+
constructor(view: Function, member: string, edge: string);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=UnknownEdge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnknownEdge.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/UnknownEdge.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;IAClC,0DAA0D;IAC1D,QAAQ,CAAC,MAAM,+BAA+B;IAE9C;;;;;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 of a view names an edge type the graph does not declare.
|
|
6
|
+
*/
|
|
7
|
+
export class UnknownEdge extends Error {
|
|
8
|
+
/** The stable reason code of the rule that was broken. */
|
|
9
|
+
reason = GraphViewReason.UnknownEdge;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new {@link UnknownEdge}.
|
|
12
|
+
* @param view - The view type.
|
|
13
|
+
* @param member - The name of the member.
|
|
14
|
+
* @param edge - The edge that is not declared.
|
|
15
|
+
*/
|
|
16
|
+
constructor(view, member, edge) {
|
|
17
|
+
super(`The member '${member}' of the view '${view.name}' follows '${edge}', which is not an edge of the graph.`);
|
|
18
|
+
this.name = 'UnknownEdge';
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=UnknownEdge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnknownEdge.js","sourceRoot":"","sources":["../../../../projections/graphs/views/UnknownEdge.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,KAAK;IAClC,0DAA0D;IACjD,MAAM,GAAG,eAAe,CAAC,WAAW,CAAC;IAE9C;;;;;OAKG;IACH,YAAY,IAAc,EAAE,MAAc,EAAE,IAAY;QACpD,KAAK,CAAC,eAAe,MAAM,kBAAkB,IAAI,CAAC,IAAI,cAAc,IAAI,uCAAuC,CAAC,CAAC;QACjH,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;IAC9B,CAAC;CACJ"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GraphViewReason } from './GraphViewReason.js';
|
|
2
|
+
/**
|
|
3
|
+
* Error raised when an edge property member of a view names a property the edge does not declare.
|
|
4
|
+
*/
|
|
5
|
+
export declare class UnknownEdgeProperty extends Error {
|
|
6
|
+
/** The stable reason code of the rule that was broken. */
|
|
7
|
+
readonly reason = GraphViewReason.UnknownEdgeProperty;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new {@link UnknownEdgeProperty}.
|
|
10
|
+
* @param view - The view type.
|
|
11
|
+
* @param member - The name of the member.
|
|
12
|
+
* @param edge - The edge type that is followed to reach the view.
|
|
13
|
+
* @param source - The name of the property that is not declared.
|
|
14
|
+
*/
|
|
15
|
+
constructor(view: Function, member: string, edge: string, source: string);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=UnknownEdgeProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnknownEdgeProperty.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/UnknownEdgeProperty.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,KAAK;IAC1C,0DAA0D;IAC1D,QAAQ,CAAC,MAAM,uCAAuC;IAEtD;;;;;;OAMG;IACH,YAAY,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAGvE;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 an edge property member of a view names a property the edge does not declare.
|
|
6
|
+
*/
|
|
7
|
+
export class UnknownEdgeProperty extends Error {
|
|
8
|
+
/** The stable reason code of the rule that was broken. */
|
|
9
|
+
reason = GraphViewReason.UnknownEdgeProperty;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new {@link UnknownEdgeProperty}.
|
|
12
|
+
* @param view - The view type.
|
|
13
|
+
* @param member - The name of the member.
|
|
14
|
+
* @param edge - The edge type that is followed to reach the view.
|
|
15
|
+
* @param source - The name of the property that is not declared.
|
|
16
|
+
*/
|
|
17
|
+
constructor(view, member, edge, source) {
|
|
18
|
+
super(`The member '${member}' of the view '${view.name}' reads '${source}', which is not a property of the edge '${edge}'.`);
|
|
19
|
+
this.name = 'UnknownEdgeProperty';
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=UnknownEdgeProperty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnknownEdgeProperty.js","sourceRoot":"","sources":["../../../../projections/graphs/views/UnknownEdgeProperty.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IAC1C,0DAA0D;IACjD,MAAM,GAAG,eAAe,CAAC,mBAAmB,CAAC;IAEtD;;;;;;OAMG;IACH,YAAY,IAAc,EAAE,MAAc,EAAE,IAAY,EAAE,MAAc;QACpE,KAAK,CAAC,eAAe,MAAM,kBAAkB,IAAI,CAAC,IAAI,YAAY,MAAM,2CAA2C,IAAI,IAAI,CAAC,CAAC;QAC7H,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;IACtC,CAAC;CACJ"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GraphViewReason } from './GraphViewReason.js';
|
|
2
|
+
/**
|
|
3
|
+
* Error raised when a property member of a view names a property the root node does not declare.
|
|
4
|
+
*/
|
|
5
|
+
export declare class UnknownNodeProperty extends Error {
|
|
6
|
+
/** The stable reason code of the rule that was broken. */
|
|
7
|
+
readonly reason = GraphViewReason.UnknownNodeProperty;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new {@link UnknownNodeProperty}.
|
|
10
|
+
* @param view - The view type.
|
|
11
|
+
* @param member - The name of the member.
|
|
12
|
+
* @param node - The label of the root node.
|
|
13
|
+
* @param source - The name of the property that is not declared.
|
|
14
|
+
*/
|
|
15
|
+
constructor(view: Function, member: string, node: string, source: string);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=UnknownNodeProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnknownNodeProperty.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/UnknownNodeProperty.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,KAAK;IAC1C,0DAA0D;IAC1D,QAAQ,CAAC,MAAM,uCAAuC;IAEtD;;;;;;OAMG;IACH,YAAY,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAGvE;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 property member of a view names a property the root node does not declare.
|
|
6
|
+
*/
|
|
7
|
+
export class UnknownNodeProperty extends Error {
|
|
8
|
+
/** The stable reason code of the rule that was broken. */
|
|
9
|
+
reason = GraphViewReason.UnknownNodeProperty;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new {@link UnknownNodeProperty}.
|
|
12
|
+
* @param view - The view type.
|
|
13
|
+
* @param member - The name of the member.
|
|
14
|
+
* @param node - The label of the root node.
|
|
15
|
+
* @param source - The name of the property that is not declared.
|
|
16
|
+
*/
|
|
17
|
+
constructor(view, member, node, source) {
|
|
18
|
+
super(`The member '${member}' of the view '${view.name}' reads '${source}', which is not a property of the node '${node}'.`);
|
|
19
|
+
this.name = 'UnknownNodeProperty';
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=UnknownNodeProperty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnknownNodeProperty.js","sourceRoot":"","sources":["../../../../projections/graphs/views/UnknownNodeProperty.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IAC1C,0DAA0D;IACjD,MAAM,GAAG,eAAe,CAAC,mBAAmB,CAAC;IAEtD;;;;;;OAMG;IACH,YAAY,IAAc,EAAE,MAAc,EAAE,IAAY,EAAE,MAAc;QACpE,KAAK,CAAC,eAAe,MAAM,kBAAkB,IAAI,CAAC,IAAI,YAAY,MAAM,2CAA2C,IAAI,IAAI,CAAC,CAAC;QAC7H,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;IACtC,CAAC;CACJ"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GraphViewReason } from './GraphViewReason.js';
|
|
2
|
+
/**
|
|
3
|
+
* Error raised when a view type is also a node or an edge.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ViewIsAlsoSchema extends Error {
|
|
6
|
+
/** The stable reason code of the rule that was broken. */
|
|
7
|
+
readonly reason = GraphViewReason.ViewIsAlsoSchema;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new {@link ViewIsAlsoSchema}.
|
|
10
|
+
* @param view - The view type.
|
|
11
|
+
*/
|
|
12
|
+
constructor(view: Function);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=ViewIsAlsoSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewIsAlsoSchema.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/ViewIsAlsoSchema.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,KAAK;IACvC,0DAA0D;IAC1D,QAAQ,CAAC,MAAM,oCAAoC;IAEnD;;;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 type is also a node or an edge.
|
|
6
|
+
*/
|
|
7
|
+
export class ViewIsAlsoSchema extends Error {
|
|
8
|
+
/** The stable reason code of the rule that was broken. */
|
|
9
|
+
reason = GraphViewReason.ViewIsAlsoSchema;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new {@link ViewIsAlsoSchema}.
|
|
12
|
+
* @param view - The view type.
|
|
13
|
+
*/
|
|
14
|
+
constructor(view) {
|
|
15
|
+
super(`The view '${view.name}' is also a node or an edge. A view is a read model over the graph and cannot be part of its schema.`);
|
|
16
|
+
this.name = 'ViewIsAlsoSchema';
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=ViewIsAlsoSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewIsAlsoSchema.js","sourceRoot":"","sources":["../../../../projections/graphs/views/ViewIsAlsoSchema.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACvC,0DAA0D;IACjD,MAAM,GAAG,eAAe,CAAC,gBAAgB,CAAC;IAEnD;;;OAGG;IACH,YAAY,IAAc;QACtB,KAAK,CAAC,aAAa,IAAI,CAAC,IAAI,sGAAsG,CAAC,CAAC;QACpI,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACnC,CAAC;CACJ"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Metadata stored by the viewOf class decorator. */
|
|
2
|
+
export interface ViewOfMetadata {
|
|
3
|
+
/** A function returning the class of the node the view is anchored at. */
|
|
4
|
+
readonly root: () => Function;
|
|
5
|
+
/** The name of the view. */
|
|
6
|
+
readonly name: string;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=ViewOfMetadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewOfMetadata.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/ViewOfMetadata.ts"],"names":[],"mappings":"AAGA,qDAAqD;AACrD,MAAM,WAAW,cAAc;IAC3B,0EAA0E;IAC1E,QAAQ,CAAC,IAAI,EAAE,MAAM,QAAQ,CAAC;IAE9B,4BAA4B;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewOfMetadata.js","sourceRoot":"","sources":["../../../../projections/graphs/views/ViewOfMetadata.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewOfOptions.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/ViewOfOptions.ts"],"names":[],"mappings":"AAGA,uCAAuC;AACvC,MAAM,WAAW,aAAa;IAC1B,iGAAiG;IACjG,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewOfOptions.js","sourceRoot":"","sources":["../../../../projections/graphs/views/ViewOfOptions.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GraphViewReason } from './GraphViewReason.js';
|
|
2
|
+
/**
|
|
3
|
+
* Error raised when the root of a view is not a node declared in the graph of the view.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ViewRootNotANode extends Error {
|
|
6
|
+
/** The stable reason code of the rule that was broken. */
|
|
7
|
+
readonly reason = GraphViewReason.ViewRootNotANode;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new {@link ViewRootNotANode}.
|
|
10
|
+
* @param view - The view type.
|
|
11
|
+
* @param graph - The name of the graph.
|
|
12
|
+
* @param root - The type the view is anchored at.
|
|
13
|
+
*/
|
|
14
|
+
constructor(view: Function, graph: string, root: Function);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=ViewRootNotANode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewRootNotANode.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/ViewRootNotANode.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,KAAK;IACvC,0DAA0D;IAC1D,QAAQ,CAAC,MAAM,oCAAoC;IAEnD;;;;;OAKG;IACH,YAAY,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAGxD;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 the root of a view is not a node declared in the graph of the view.
|
|
6
|
+
*/
|
|
7
|
+
export class ViewRootNotANode extends Error {
|
|
8
|
+
/** The stable reason code of the rule that was broken. */
|
|
9
|
+
reason = GraphViewReason.ViewRootNotANode;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new {@link ViewRootNotANode}.
|
|
12
|
+
* @param view - The view type.
|
|
13
|
+
* @param graph - The name of the graph.
|
|
14
|
+
* @param root - The type the view is anchored at.
|
|
15
|
+
*/
|
|
16
|
+
constructor(view, graph, root) {
|
|
17
|
+
super(`The view '${view.name}' is anchored at '${root.name}', which is not a node of the graph '${graph}'.`);
|
|
18
|
+
this.name = 'ViewRootNotANode';
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=ViewRootNotANode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewRootNotANode.js","sourceRoot":"","sources":["../../../../projections/graphs/views/ViewRootNotANode.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACvC,0DAA0D;IACjD,MAAM,GAAG,eAAe,CAAC,gBAAgB,CAAC;IAEnD;;;;;OAKG;IACH,YAAY,IAAc,EAAE,KAAa,EAAE,IAAc;QACrD,KAAK,CAAC,aAAa,IAAI,CAAC,IAAI,qBAAqB,IAAI,CAAC,IAAI,wCAAwC,KAAK,IAAI,CAAC,CAAC;QAC7G,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACnC,CAAC;CACJ"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
2
|
+
import { type ChroniclePropertyDecorator } from '../../../types/propertyDecoratorMetadata.js';
|
|
3
|
+
import type { GraphViewMemberMetadata } from './GraphViewMemberMetadata.js';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a property decorator that declares a member of a graph view. Members are read in the order they are declared.
|
|
6
|
+
* @param metadata - What the member is.
|
|
7
|
+
* @returns A property decorator.
|
|
8
|
+
*/
|
|
9
|
+
export declare function declareGraphViewMember(metadata: GraphViewMemberMetadata): ChroniclePropertyDecorator;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves the metadata stored by the member decorators of a graph view on a property.
|
|
12
|
+
* @param target - The class prototype.
|
|
13
|
+
* @param propertyKey - The property name.
|
|
14
|
+
* @returns The metadata, or undefined when the property is not a member of a view.
|
|
15
|
+
*/
|
|
16
|
+
export declare function getGraphViewMemberMetadata(target: object, propertyKey: string): GraphViewMemberMetadata | undefined;
|
|
17
|
+
//# sourceMappingURL=declareGraphViewMember.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"declareGraphViewMember.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/declareGraphViewMember.ts"],"names":[],"mappings":"AAGA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAyC,KAAK,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACrI,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAI5E;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,uBAAuB,GAAG,0BAA0B,CAUpG;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,uBAAuB,GAAG,SAAS,CAEnH"}
|