@cratis/chronicle 6.63.0 → 6.65.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/README.md +1 -1
- package/artifacts/DefaultClientArtifactsProvider.ts +5 -0
- package/artifacts/IClientArtifactsProvider.ts +3 -0
- package/connection/ChronicleConnection.ts +17 -7
- package/connection/ChronicleConnectionString.spec.ts +85 -0
- package/connection/ChronicleConnectionString.ts +186 -12
- package/connection/ChronicleTlsMaterial.spec.ts +160 -0
- package/connection/ChronicleTlsMaterial.ts +121 -0
- package/connection/CompatibilityPreflight.ts +9 -1
- package/connection/LeastConnectionsLoadBalancerStrategy.ts +4 -2
- package/connection/LoadBalancerStrategyFactory.ts +7 -2
- package/connection/TokenProvider.ts +4 -1
- package/connection/fetchOAuthAccessToken.ts +4 -2
- package/connection/for_CompatibilityPreflight/when_verifying/with_the_check_skipped.spec.ts +23 -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/connection/ChronicleConnection.d.ts +1 -0
- package/dist/connection/ChronicleConnection.d.ts.map +1 -1
- package/dist/connection/ChronicleConnection.js +15 -7
- package/dist/connection/ChronicleConnection.js.map +1 -1
- package/dist/connection/ChronicleConnectionString.d.ts +50 -1
- package/dist/connection/ChronicleConnectionString.d.ts.map +1 -1
- package/dist/connection/ChronicleConnectionString.js +154 -12
- package/dist/connection/ChronicleConnectionString.js.map +1 -1
- package/dist/connection/ChronicleTlsMaterial.d.ts +54 -0
- package/dist/connection/ChronicleTlsMaterial.d.ts.map +1 -0
- package/dist/connection/ChronicleTlsMaterial.js +88 -0
- package/dist/connection/ChronicleTlsMaterial.js.map +1 -0
- package/dist/connection/CompatibilityPreflight.d.ts +2 -1
- package/dist/connection/CompatibilityPreflight.d.ts.map +1 -1
- package/dist/connection/CompatibilityPreflight.js +6 -1
- package/dist/connection/CompatibilityPreflight.js.map +1 -1
- package/dist/connection/LeastConnectionsLoadBalancerStrategy.d.ts +2 -1
- package/dist/connection/LeastConnectionsLoadBalancerStrategy.d.ts.map +1 -1
- package/dist/connection/LeastConnectionsLoadBalancerStrategy.js +3 -2
- package/dist/connection/LeastConnectionsLoadBalancerStrategy.js.map +1 -1
- package/dist/connection/LoadBalancerStrategyFactory.d.ts +2 -1
- package/dist/connection/LoadBalancerStrategyFactory.d.ts.map +1 -1
- package/dist/connection/LoadBalancerStrategyFactory.js +3 -2
- package/dist/connection/LoadBalancerStrategyFactory.js.map +1 -1
- package/dist/connection/TokenProvider.d.ts +4 -1
- package/dist/connection/TokenProvider.d.ts.map +1 -1
- package/dist/connection/TokenProvider.js +5 -1
- package/dist/connection/TokenProvider.js.map +1 -1
- package/dist/connection/fetchOAuthAccessToken.d.ts +2 -1
- package/dist/connection/fetchOAuthAccessToken.d.ts.map +1 -1
- package/dist/connection/fetchOAuthAccessToken.js +3 -2
- package/dist/connection/fetchOAuthAccessToken.js.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/for_ChronicleOptions/when_configuring_keep_alive/with_skip_keep_alive.spec.ts +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 @@
|
|
|
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"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { TypeIntrospector } from '../../../types/index.js';
|
|
5
|
+
import { decorateProperty, getPropertyMetadata } from '../../../types/propertyDecoratorMetadata.js';
|
|
6
|
+
const METADATA_KEY = 'chronicle:graph:view:member';
|
|
7
|
+
/**
|
|
8
|
+
* Creates a property decorator that declares a member of a graph view. Members are read in the order they are declared.
|
|
9
|
+
* @param metadata - What the member is.
|
|
10
|
+
* @returns A property decorator.
|
|
11
|
+
*/
|
|
12
|
+
export function declareGraphViewMember(metadata) {
|
|
13
|
+
return decorateProperty((target, propertyKey) => {
|
|
14
|
+
const key = propertyKey.toString();
|
|
15
|
+
if (Reflect.getOwnMetadata(METADATA_KEY, target, key) !== undefined) {
|
|
16
|
+
throw new TypeError(`The member '${key}' of a graph view can be declared as one kind of member only.`);
|
|
17
|
+
}
|
|
18
|
+
TypeIntrospector.trackProperty(target.constructor, key);
|
|
19
|
+
Reflect.defineMetadata(METADATA_KEY, metadata, target, key);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves the metadata stored by the member decorators of a graph view on a property.
|
|
24
|
+
* @param target - The class prototype.
|
|
25
|
+
* @param propertyKey - The property name.
|
|
26
|
+
* @returns The metadata, or undefined when the property is not a member of a view.
|
|
27
|
+
*/
|
|
28
|
+
export function getGraphViewMemberMetadata(target, propertyKey) {
|
|
29
|
+
return getPropertyMetadata(METADATA_KEY, target, propertyKey);
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=declareGraphViewMember.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"declareGraphViewMember.js","sourceRoot":"","sources":["../../../../projections/graphs/views/declareGraphViewMember.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAmC,MAAM,6CAA6C,CAAC;AAGrI,MAAM,YAAY,GAAG,6BAA6B,CAAC;AAEnD;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CAAC,QAAiC;IACpE,OAAO,gBAAgB,CAAC,CAAC,MAAc,EAAE,WAA4B,EAAE,EAAE;QACrE,MAAM,GAAG,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAC;QACnC,IAAI,OAAO,CAAC,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,CAAC,KAAK,SAAS,EAAE,CAAC;YAClE,MAAM,IAAI,SAAS,CAAC,eAAe,GAAG,+DAA+D,CAAC,CAAC;QAC3G,CAAC;QAED,gBAAgB,CAAC,aAAa,CAAE,MAAoC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;QACvF,OAAO,CAAC,cAAc,CAAC,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;AACP,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,0BAA0B,CAAC,MAAc,EAAE,WAAmB;IAC1E,OAAO,mBAAmB,CAA0B,YAAY,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;AAC3F,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ChroniclePropertyDecorator } from '../../../types/propertyDecoratorMetadata.js';
|
|
2
|
+
import type { FollowsOptions } from './FollowsOptions.js';
|
|
3
|
+
import type { GraphViewEdgeReference } from './GraphViewEdgeReference.js';
|
|
4
|
+
/**
|
|
5
|
+
* Property decorator that declares a member of a graph view that follows one edge type to a nested view.
|
|
6
|
+
* @param edge - The edge to follow: a function returning the edge class, or the edge type string.
|
|
7
|
+
* @param view - A function returning the class of the nested view.
|
|
8
|
+
* @param options - The cardinality, which is many by default, and the direction, which is derived unless the edge
|
|
9
|
+
* starts and ends at the same label.
|
|
10
|
+
* @returns A property decorator.
|
|
11
|
+
*/
|
|
12
|
+
export declare function follows(edge: GraphViewEdgeReference, view: () => Function, options?: FollowsOptions): ChroniclePropertyDecorator;
|
|
13
|
+
//# sourceMappingURL=follows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"follows.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/follows.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAI1E;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,QAAQ,EAAE,OAAO,GAAE,cAAmB,GAAG,0BAA0B,CASpI"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { GraphViewCardinality } from './GraphViewCardinality.js';
|
|
4
|
+
import { GraphViewMemberKind } from './GraphViewMemberKind.js';
|
|
5
|
+
import { declareGraphViewMember } from './declareGraphViewMember.js';
|
|
6
|
+
/**
|
|
7
|
+
* Property decorator that declares a member of a graph view that follows one edge type to a nested view.
|
|
8
|
+
* @param edge - The edge to follow: a function returning the edge class, or the edge type string.
|
|
9
|
+
* @param view - A function returning the class of the nested view.
|
|
10
|
+
* @param options - The cardinality, which is many by default, and the direction, which is derived unless the edge
|
|
11
|
+
* starts and ends at the same label.
|
|
12
|
+
* @returns A property decorator.
|
|
13
|
+
*/
|
|
14
|
+
export function follows(edge, view, options = {}) {
|
|
15
|
+
return declareGraphViewMember({
|
|
16
|
+
kind: GraphViewMemberKind.Relation,
|
|
17
|
+
isKey: false,
|
|
18
|
+
edge,
|
|
19
|
+
view,
|
|
20
|
+
direction: options.direction,
|
|
21
|
+
cardinality: options.cardinality ?? GraphViewCardinality.Many
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=follows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"follows.js","sourceRoot":"","sources":["../../../../projections/graphs/views/follows.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAIrG,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;;;;;;;GAOG;AACH,MAAM,UAAU,OAAO,CAAC,IAA4B,EAAE,IAAoB,EAAE,OAAO,GAAmB,EAAE;IACpG,OAAO,sBAAsB,CAAC;QAC1B,IAAI,EAAE,mBAAmB,CAAC,QAAQ;QAClC,KAAK,EAAE,KAAK;QACZ,IAAI;QACJ,IAAI;QACJ,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,oBAAoB,CAAC,IAAI;KAChE,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ChroniclePropertyDecorator } from '../../../types/propertyDecoratorMetadata.js';
|
|
2
|
+
/**
|
|
3
|
+
* Property decorator that declares a member of a graph view that reads a property of the edge that was followed to
|
|
4
|
+
* reach the view. It is valid only in a view that is the target of relations of exactly one edge type.
|
|
5
|
+
* @param source - The name of the property of the edge. It is matched without regard to case. When missing, the
|
|
6
|
+
* name of the member is matched against the properties of the edge.
|
|
7
|
+
* @returns A property decorator.
|
|
8
|
+
*/
|
|
9
|
+
export declare function fromEdge(source?: string): ChroniclePropertyDecorator;
|
|
10
|
+
//# sourceMappingURL=fromEdge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fromEdge.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/fromEdge.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAI9F;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,0BAA0B,CAEpE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { GraphViewMemberKind } from './GraphViewMemberKind.js';
|
|
4
|
+
import { declareGraphViewMember } from './declareGraphViewMember.js';
|
|
5
|
+
/**
|
|
6
|
+
* Property decorator that declares a member of a graph view that reads a property of the edge that was followed to
|
|
7
|
+
* reach the view. It is valid only in a view that is the target of relations of exactly one edge type.
|
|
8
|
+
* @param source - The name of the property of the edge. It is matched without regard to case. When missing, the
|
|
9
|
+
* name of the member is matched against the properties of the edge.
|
|
10
|
+
* @returns A property decorator.
|
|
11
|
+
*/
|
|
12
|
+
export function fromEdge(source) {
|
|
13
|
+
return declareGraphViewMember({ kind: GraphViewMemberKind.EdgeProperty, isKey: false, source });
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=fromEdge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fromEdge.js","sourceRoot":"","sources":["../../../../projections/graphs/views/fromEdge.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAGrG,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CAAC,MAAe;IACpC,OAAO,sBAAsB,CAAC,EAAE,IAAI,EAAE,mBAAmB,CAAC,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;AACpG,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export { viewOf, getViewOfMetadata } from './viewOf.js';
|
|
2
|
+
export type { ViewOfOptions } from './ViewOfOptions.js';
|
|
3
|
+
export type { ViewOfMetadata } from './ViewOfMetadata.js';
|
|
4
|
+
export { viewKey } from './viewKey.js';
|
|
5
|
+
export { viewProperty } from './viewProperty.js';
|
|
6
|
+
export { fromEdge } from './fromEdge.js';
|
|
7
|
+
export { follows } from './follows.js';
|
|
8
|
+
export type { FollowsOptions } from './FollowsOptions.js';
|
|
9
|
+
export { getGraphViewMemberMetadata } from './declareGraphViewMember.js';
|
|
10
|
+
export type { GraphViewMemberMetadata } from './GraphViewMemberMetadata.js';
|
|
11
|
+
export type { GraphViewEdgeReference } from './GraphViewEdgeReference.js';
|
|
12
|
+
export { GraphViewMemberKind } from './GraphViewMemberKind.js';
|
|
13
|
+
export { GraphEdgeDirection } from './GraphEdgeDirection.js';
|
|
14
|
+
export { GraphViewCardinality } from './GraphViewCardinality.js';
|
|
15
|
+
export { GraphViewReason } from './GraphViewReason.js';
|
|
16
|
+
export type { GraphViewDefinition } from './GraphViewDefinition.js';
|
|
17
|
+
export type { GraphView } from './GraphView.js';
|
|
18
|
+
export type { GraphViewMember } from './GraphViewMember.js';
|
|
19
|
+
export type { GraphViewPropertyMember } from './GraphViewPropertyMember.js';
|
|
20
|
+
export type { GraphViewRelationMember } from './GraphViewRelationMember.js';
|
|
21
|
+
export type { GraphViewBuildResult } from './GraphViewBuildResult.js';
|
|
22
|
+
export { GraphViewDefinitionBuilder } from './GraphViewDefinitionBuilder.js';
|
|
23
|
+
export { GraphViewDefinitionSerializer } from './GraphViewDefinitionSerializer.js';
|
|
24
|
+
export { ViewRootNotANode } from './ViewRootNotANode.js';
|
|
25
|
+
export { ViewIsAlsoSchema } from './ViewIsAlsoSchema.js';
|
|
26
|
+
export { DuplicateViewName } from './DuplicateViewName.js';
|
|
27
|
+
export { UnknownNodeProperty } from './UnknownNodeProperty.js';
|
|
28
|
+
export { UnknownEdge } from './UnknownEdge.js';
|
|
29
|
+
export { UnknownEdgeProperty } from './UnknownEdgeProperty.js';
|
|
30
|
+
export { EdgeNotIncidentOnRoot } from './EdgeNotIncidentOnRoot.js';
|
|
31
|
+
export { AmbiguousDirection } from './AmbiguousDirection.js';
|
|
32
|
+
export { TargetLabelMismatch } from './TargetLabelMismatch.js';
|
|
33
|
+
export { RelationTargetNotAView } from './RelationTargetNotAView.js';
|
|
34
|
+
export { RecursiveView } from './RecursiveView.js';
|
|
35
|
+
export { EdgePropertyViewNotUsedAsTarget } from './EdgePropertyViewNotUsedAsTarget.js';
|
|
36
|
+
export { EdgePropertyViewSharedAcrossEdges } from './EdgePropertyViewSharedAcrossEdges.js';
|
|
37
|
+
export type { GraphViewSchema } from './GraphViewSchema.js';
|
|
38
|
+
export type { GraphViewSchemaNode } from './GraphViewSchemaNode.js';
|
|
39
|
+
export type { GraphViewSchemaEdge } from './GraphViewSchemaEdge.js';
|
|
40
|
+
export type { GraphViewSerializerOptions } from './GraphViewSerializerOptions.js';
|
|
41
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,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,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,YAAY,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,YAAY,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,YAAY,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
export { viewOf, getViewOfMetadata } from './viewOf.js';
|
|
4
|
+
export { viewKey } from './viewKey.js';
|
|
5
|
+
export { viewProperty } from './viewProperty.js';
|
|
6
|
+
export { fromEdge } from './fromEdge.js';
|
|
7
|
+
export { follows } from './follows.js';
|
|
8
|
+
export { getGraphViewMemberMetadata } from './declareGraphViewMember.js';
|
|
9
|
+
export { GraphViewMemberKind } from './GraphViewMemberKind.js';
|
|
10
|
+
export { GraphEdgeDirection } from './GraphEdgeDirection.js';
|
|
11
|
+
export { GraphViewCardinality } from './GraphViewCardinality.js';
|
|
12
|
+
export { GraphViewReason } from './GraphViewReason.js';
|
|
13
|
+
export { GraphViewDefinitionBuilder } from './GraphViewDefinitionBuilder.js';
|
|
14
|
+
export { GraphViewDefinitionSerializer } from './GraphViewDefinitionSerializer.js';
|
|
15
|
+
export { ViewRootNotANode } from './ViewRootNotANode.js';
|
|
16
|
+
export { ViewIsAlsoSchema } from './ViewIsAlsoSchema.js';
|
|
17
|
+
export { DuplicateViewName } from './DuplicateViewName.js';
|
|
18
|
+
export { UnknownNodeProperty } from './UnknownNodeProperty.js';
|
|
19
|
+
export { UnknownEdge } from './UnknownEdge.js';
|
|
20
|
+
export { UnknownEdgeProperty } from './UnknownEdgeProperty.js';
|
|
21
|
+
export { EdgeNotIncidentOnRoot } from './EdgeNotIncidentOnRoot.js';
|
|
22
|
+
export { AmbiguousDirection } from './AmbiguousDirection.js';
|
|
23
|
+
export { TargetLabelMismatch } from './TargetLabelMismatch.js';
|
|
24
|
+
export { RelationTargetNotAView } from './RelationTargetNotAView.js';
|
|
25
|
+
export { RecursiveView } from './RecursiveView.js';
|
|
26
|
+
export { EdgePropertyViewNotUsedAsTarget } from './EdgePropertyViewNotUsedAsTarget.js';
|
|
27
|
+
export { EdgePropertyViewSharedAcrossEdges } from './EdgePropertyViewSharedAcrossEdges.js';
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projections/graphs/views/index.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGxD,OAAO,EA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,wCAAwC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ChroniclePropertyDecorator } from '../../../types/propertyDecoratorMetadata.js';
|
|
2
|
+
/**
|
|
3
|
+
* Property decorator that declares the member of a graph view that holds the key of the root node. The member reads
|
|
4
|
+
* whatever property the node uses as its key, so the view does not repeat the name of it.
|
|
5
|
+
* @returns A property decorator.
|
|
6
|
+
*/
|
|
7
|
+
export declare function viewKey(): ChroniclePropertyDecorator;
|
|
8
|
+
//# sourceMappingURL=viewKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewKey.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/viewKey.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAI9F;;;;GAIG;AACH,wBAAgB,OAAO,IAAI,0BAA0B,CAEpD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
import { GraphViewMemberKind } from './GraphViewMemberKind.js';
|
|
4
|
+
import { declareGraphViewMember } from './declareGraphViewMember.js';
|
|
5
|
+
/**
|
|
6
|
+
* Property decorator that declares the member of a graph view that holds the key of the root node. The member reads
|
|
7
|
+
* whatever property the node uses as its key, so the view does not repeat the name of it.
|
|
8
|
+
* @returns A property decorator.
|
|
9
|
+
*/
|
|
10
|
+
export function viewKey() {
|
|
11
|
+
return declareGraphViewMember({ kind: GraphViewMemberKind.Property, isKey: true });
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=viewKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewKey.js","sourceRoot":"","sources":["../../../../projections/graphs/views/viewKey.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAGrG,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;;;;GAIG;AACH,MAAM,UAAU,OAAO;IACnB,OAAO,sBAAsB,CAAC,EAAE,IAAI,EAAE,mBAAmB,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AACvF,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
2
|
+
import type { ChronicleClassDecorator } from '../../../types/standardDecoratorMetadata.js';
|
|
3
|
+
import type { ViewOfMetadata } from './ViewOfMetadata.js';
|
|
4
|
+
import type { ViewOfOptions } from './ViewOfOptions.js';
|
|
5
|
+
/**
|
|
6
|
+
* Class decorator that marks a class as a view over a property graph. A view is a read model that is anchored at one
|
|
7
|
+
* node. Its members are properties of that node (viewKey and viewProperty), relations along declared edges to other
|
|
8
|
+
* views (follows) and properties of the edge that was followed (fromEdge). Name the graph with the graph decorator.
|
|
9
|
+
* A view only declares what is read; the class is never a node or an edge.
|
|
10
|
+
* @param root - A function returning the class of the node the view is anchored at. It is resolved when the views
|
|
11
|
+
* are validated, so the classes can be declared in any order.
|
|
12
|
+
* @param options - The name of the view, which defaults to the name of the class.
|
|
13
|
+
* @returns A class decorator.
|
|
14
|
+
*/
|
|
15
|
+
export declare function viewOf(root: () => Function, options?: ViewOfOptions): ChronicleClassDecorator;
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves the metadata stored by the viewOf decorator.
|
|
18
|
+
* @param target - The class constructor.
|
|
19
|
+
* @returns The metadata, or undefined when the class is not a view.
|
|
20
|
+
*/
|
|
21
|
+
export declare function getViewOfMetadata(target: Function): ViewOfMetadata | undefined;
|
|
22
|
+
//# sourceMappingURL=viewOf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewOf.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/viewOf.ts"],"names":[],"mappings":"AAGA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAIxD;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,QAAQ,EAAE,OAAO,GAAE,aAAkB,GAAG,uBAAuB,CAkBjG;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,QAAQ,GAAG,cAAc,GAAG,SAAS,CAE9E"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { DecoratorType, TypeDiscoverer } from '../../../types/index.js';
|
|
5
|
+
const METADATA_KEY = 'chronicle:graph:view';
|
|
6
|
+
/**
|
|
7
|
+
* Class decorator that marks a class as a view over a property graph. A view is a read model that is anchored at one
|
|
8
|
+
* node. Its members are properties of that node (viewKey and viewProperty), relations along declared edges to other
|
|
9
|
+
* views (follows) and properties of the edge that was followed (fromEdge). Name the graph with the graph decorator.
|
|
10
|
+
* A view only declares what is read; the class is never a node or an edge.
|
|
11
|
+
* @param root - A function returning the class of the node the view is anchored at. It is resolved when the views
|
|
12
|
+
* are validated, so the classes can be declared in any order.
|
|
13
|
+
* @param options - The name of the view, which defaults to the name of the class.
|
|
14
|
+
* @returns A class decorator.
|
|
15
|
+
*/
|
|
16
|
+
export function viewOf(root, options = {}) {
|
|
17
|
+
return (target) => {
|
|
18
|
+
const type = target;
|
|
19
|
+
const metadata = { root, name: options.name ?? type.name };
|
|
20
|
+
Reflect.defineMetadata(METADATA_KEY, metadata, target);
|
|
21
|
+
// Discovery is keyed by name. Views of different graphs may share a class name, so they must not replace each other.
|
|
22
|
+
const registered = TypeDiscoverer.default.getTypesByDecoratorType(DecoratorType.GraphView);
|
|
23
|
+
if (!registered.includes(type)) {
|
|
24
|
+
let key = type.name;
|
|
25
|
+
let suffix = 2;
|
|
26
|
+
while (TypeDiscoverer.default.getTypeByDecoratorTypeAndName(DecoratorType.GraphView, key) !== undefined) {
|
|
27
|
+
key = `${type.name}#${suffix++}`;
|
|
28
|
+
}
|
|
29
|
+
TypeDiscoverer.default.register(DecoratorType.GraphView, type, key);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Retrieves the metadata stored by the viewOf decorator.
|
|
35
|
+
* @param target - The class constructor.
|
|
36
|
+
* @returns The metadata, or undefined when the class is not a view.
|
|
37
|
+
*/
|
|
38
|
+
export function getViewOfMetadata(target) {
|
|
39
|
+
return Reflect.getMetadata(METADATA_KEY, target);
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=viewOf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewOf.js","sourceRoot":"","sources":["../../../../projections/graphs/views/viewOf.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAKxE,MAAM,YAAY,GAAG,sBAAsB,CAAC;AAE5C;;;;;;;;;GASG;AACH,MAAM,UAAU,MAAM,CAAC,IAAoB,EAAE,OAAO,GAAkB,EAAE;IACpE,OAAO,CAAC,MAAc,EAAE,EAAE;QACtB,MAAM,IAAI,GAAG,MAAkB,CAAC;QAChC,MAAM,QAAQ,GAAmB,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;QAC3E,OAAO,CAAC,cAAc,CAAC,YAAY,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;QAEvD,qHAAqH;QACrH,MAAM,UAAU,GAAG,cAAc,CAAC,OAAO,CAAC,uBAAuB,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;QAC3F,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAmB,CAAC,EAAE,CAAC;YAC5C,IAAI,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC;YACpB,IAAI,MAAM,GAAG,CAAC,CAAC;YACf,OAAO,cAAc,CAAC,OAAO,CAAC,6BAA6B,CAAC,aAAa,CAAC,SAAS,EAAE,GAAG,CAAC,KAAK,SAAS,EAAE,CAAC;gBACtG,GAAG,GAAG,GAAG,IAAI,CAAC,IAAI,IAAI,MAAM,EAAE,EAAE,CAAC;YACrC,CAAC;YAED,cAAc,CAAC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,SAAS,EAAE,IAAmB,EAAE,GAAG,CAAC,CAAC;QACvF,CAAC;IACL,CAAC,CAAC;AACN,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,MAAgB;IAC9C,OAAO,OAAO,CAAC,WAAW,CAAC,YAAY,EAAE,MAAM,CAA+B,CAAC;AACnF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ChroniclePropertyDecorator } from '../../../types/propertyDecoratorMetadata.js';
|
|
2
|
+
/**
|
|
3
|
+
* Property decorator that declares a member of a graph view that reads a property of the root node.
|
|
4
|
+
* @param source - The name of the property of the node. It is matched without regard to case. When missing, the
|
|
5
|
+
* name of the member is matched against the properties of the node.
|
|
6
|
+
* @returns A property decorator.
|
|
7
|
+
*/
|
|
8
|
+
export declare function viewProperty(source?: string): ChroniclePropertyDecorator;
|
|
9
|
+
//# sourceMappingURL=viewProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewProperty.d.ts","sourceRoot":"","sources":["../../../../projections/graphs/views/viewProperty.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAI9F;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,0BAA0B,CAExE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 { GraphViewMemberKind } from './GraphViewMemberKind.js';
|
|
4
|
+
import { declareGraphViewMember } from './declareGraphViewMember.js';
|
|
5
|
+
/**
|
|
6
|
+
* Property decorator that declares a member of a graph view that reads a property of the root node.
|
|
7
|
+
* @param source - The name of the property of the node. It is matched without regard to case. When missing, the
|
|
8
|
+
* name of the member is matched against the properties of the node.
|
|
9
|
+
* @returns A property decorator.
|
|
10
|
+
*/
|
|
11
|
+
export function viewProperty(source) {
|
|
12
|
+
return declareGraphViewMember({ kind: GraphViewMemberKind.Property, isKey: false, source });
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=viewProperty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewProperty.js","sourceRoot":"","sources":["../../../../projections/graphs/views/viewProperty.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAGrG,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,MAAe;IACxC,OAAO,sBAAsB,CAAC,EAAE,IAAI,EAAE,mBAAmB,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;AAChG,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Guid } from '@cratis/fundamentals';
|
|
2
|
+
import { Identity } from '../identity/Identity.js';
|
|
3
|
+
import type { prepareSingleAppend } from '../eventSequences/prepareSingleAppend.js';
|
|
4
|
+
import type { AppendOptions } from '../eventSequences/AppendOptions.js';
|
|
5
|
+
import type { EventForEventSourceId } from '../eventSequences/EventForEventSourceId.js';
|
|
6
|
+
import type { InProcessEventSequenceEnvironment } from './InProcessEventSequenceEnvironment.js';
|
|
7
|
+
/** Prepares only the metadata domain proven by the in-process append fixtures. */
|
|
8
|
+
export declare class InProcessAppendMetadata {
|
|
9
|
+
private readonly environment;
|
|
10
|
+
constructor(environment: InProcessEventSequenceEnvironment);
|
|
11
|
+
batch(options?: AppendOptions): void;
|
|
12
|
+
entry(entry: EventForEventSourceId): void;
|
|
13
|
+
guid(value: string | Guid, operation: string): void;
|
|
14
|
+
checkedDate(value: Date, operation: string): Date;
|
|
15
|
+
source(source: string, operation: string): void;
|
|
16
|
+
private subject;
|
|
17
|
+
private validSubject;
|
|
18
|
+
private tags;
|
|
19
|
+
unsupportedOptions(options?: AppendOptions): boolean;
|
|
20
|
+
storedSubject(subject: string | undefined, eventSourceId: string): string;
|
|
21
|
+
private batchKeys;
|
|
22
|
+
private unknown;
|
|
23
|
+
private validTime;
|
|
24
|
+
private stringTags;
|
|
25
|
+
private entryObject;
|
|
26
|
+
private optionsObject;
|
|
27
|
+
ambientContext(identity: Identity, chain: ReturnType<typeof prepareSingleAppend>['causationChain']): boolean;
|
|
28
|
+
private emptyRoot;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=InProcessAppendMetadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InProcessAppendMetadata.d.ts","sourceRoot":"","sources":["../../testing/InProcessAppendMetadata.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAExF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG,kFAAkF;AAClF,qBAAa,uBAAuB;IACpB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAAxC,YAA6B,WAAW,EAAE,iCAAiC,EAAI;IAE/E,KAAK,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CASnC;IAED,KAAK,CAAC,KAAK,EAAE,qBAAqB,GAAG,IAAI,CASxC;IAED,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAKlD;IAED,WAAW,CAAC,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAKhD;IAED,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAI9C;IAED,OAAO,CAAC,OAAO;IAMf,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,IAAI;IAMZ,kBAAkB,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAGnD;IAED,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CAGxE;IAED,OAAO,CAAC,SAAS;IAOjB,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,aAAa;IAIrB,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAE3G;IAED,OAAO,CAAC,SAAS;CAGpB"}
|
|
@@ -0,0 +1,107 @@
|
|
|
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 { Guid } from '@cratis/fundamentals';
|
|
4
|
+
import { toContractsGuid } from '../connection/Guid.js';
|
|
5
|
+
import { Identity } from '../identity/Identity.js';
|
|
6
|
+
import { hasNamedTags } from './singleAppendRoute.js';
|
|
7
|
+
/** Prepares only the metadata domain proven by the in-process append fixtures. */
|
|
8
|
+
export class InProcessAppendMetadata {
|
|
9
|
+
environment;
|
|
10
|
+
constructor(environment) {
|
|
11
|
+
this.environment = environment;
|
|
12
|
+
}
|
|
13
|
+
batch(options) {
|
|
14
|
+
if (options === undefined)
|
|
15
|
+
return;
|
|
16
|
+
if (!this.optionsObject(options)) {
|
|
17
|
+
throw this.environment.unsupported('appendMany.options', this.environment.sequenceId, 'Append options must be an object.');
|
|
18
|
+
}
|
|
19
|
+
if (hasNamedTags(options.namedTags))
|
|
20
|
+
throw this.environment.unsupported('appendMany.namedTags', this.environment.sequenceId, 'Named tags are not fixture-backed.');
|
|
21
|
+
this.batchKeys(options);
|
|
22
|
+
this.subject(options);
|
|
23
|
+
this.tags(options);
|
|
24
|
+
}
|
|
25
|
+
entry(entry) {
|
|
26
|
+
if (!this.entryObject(entry) || this.unknown(entry, ['eventSourceId', 'event', 'eventSourceType', 'eventStreamType', 'eventStreamId', 'subject', 'occurred', 'tags', 'namedTags'])) {
|
|
27
|
+
throw this.environment.unsupported('appendMany.entry', this.environment.sequenceId, 'Unrecognized per-entry metadata.');
|
|
28
|
+
}
|
|
29
|
+
if (hasNamedTags(entry.namedTags))
|
|
30
|
+
throw this.environment.unsupported('appendMany.namedTags', this.environment.sequenceId, 'Named tags are not fixture-backed.');
|
|
31
|
+
if (entry.occurred !== undefined)
|
|
32
|
+
this.checkedDate(entry.occurred, 'appendMany.occurred');
|
|
33
|
+
this.subject(entry);
|
|
34
|
+
this.tags(entry);
|
|
35
|
+
}
|
|
36
|
+
guid(value, operation) {
|
|
37
|
+
try {
|
|
38
|
+
toContractsGuid(Guid.as(value));
|
|
39
|
+
if (!/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i.test(value.toString()))
|
|
40
|
+
throw new Error('Invalid GUID.');
|
|
41
|
+
}
|
|
42
|
+
catch {
|
|
43
|
+
throw this.environment.unsupported(operation, this.environment.sequenceId, 'Correlation ID must be a valid GUID.');
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
checkedDate(value, operation) {
|
|
47
|
+
if (!(value instanceof Date) || !this.validTime(value)) {
|
|
48
|
+
throw this.environment.unsupported(operation, this.environment.sequenceId, 'Occurrence must be within UTC years 1–9999 at millisecond precision.');
|
|
49
|
+
}
|
|
50
|
+
return new Date(value);
|
|
51
|
+
}
|
|
52
|
+
source(source, operation) {
|
|
53
|
+
if (typeof source !== 'string' || !/^[A-Za-z0-9_-]+$/.test(source)) {
|
|
54
|
+
throw this.environment.unsupported(operation, String(source), 'Only simple source identifiers are fixture-backed.');
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
subject(metadata) {
|
|
58
|
+
if (!this.validSubject(metadata)) {
|
|
59
|
+
throw this.environment.unsupported('appendMany.subject', this.environment.sequenceId, 'Subject must be a string.');
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
validSubject(metadata) {
|
|
63
|
+
return metadata.subject === undefined || metadata.subject === null || typeof metadata.subject === 'string';
|
|
64
|
+
}
|
|
65
|
+
tags(metadata) {
|
|
66
|
+
if (metadata.tags && !this.stringTags(metadata)) {
|
|
67
|
+
throw this.environment.unsupported('appendMany.tags', this.environment.sequenceId, 'Only plain string tags are fixture-backed.');
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
unsupportedOptions(options) {
|
|
71
|
+
if (options?.concurrencyScope !== undefined || options?.concurrencyScopes !== undefined)
|
|
72
|
+
return true;
|
|
73
|
+
return options?.eventSourceId !== undefined;
|
|
74
|
+
}
|
|
75
|
+
storedSubject(subject, eventSourceId) {
|
|
76
|
+
// Match the kernel's string.IsNullOrWhiteSpace, including U+0085 but not U+FEFF.
|
|
77
|
+
return subject && !/^\p{White_Space}*$/u.test(subject) ? subject : eventSourceId;
|
|
78
|
+
}
|
|
79
|
+
batchKeys(options) {
|
|
80
|
+
const allowed = ['correlationId', 'sourceType', 'streamType', 'streamId', 'subject', 'occurred', 'tags', 'namedTags'];
|
|
81
|
+
if (this.unknown(options, allowed) || this.unsupportedOptions(options)) {
|
|
82
|
+
throw this.environment.unsupported('appendMany.options', this.environment.sequenceId, 'Concurrency and unrecognized metadata are not fixture-backed.');
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
unknown(value, allowed) {
|
|
86
|
+
return Reflect.ownKeys(value).some(key => !allowed.includes(String(key)));
|
|
87
|
+
}
|
|
88
|
+
validTime(value) {
|
|
89
|
+
return !Number.isNaN(value.getTime()) && value.getUTCFullYear() >= 1 && value.getUTCFullYear() <= 9999;
|
|
90
|
+
}
|
|
91
|
+
stringTags(metadata) {
|
|
92
|
+
return Array.isArray(metadata.tags) && !metadata.tags.some(tag => typeof tag !== 'string');
|
|
93
|
+
}
|
|
94
|
+
entryObject(value) {
|
|
95
|
+
return !!value && typeof value === 'object';
|
|
96
|
+
}
|
|
97
|
+
optionsObject(value) {
|
|
98
|
+
return this.entryObject(value) && !Array.isArray(value);
|
|
99
|
+
}
|
|
100
|
+
ambientContext(identity, chain) {
|
|
101
|
+
return identity === Identity.system && this.emptyRoot(chain);
|
|
102
|
+
}
|
|
103
|
+
emptyRoot(chain) {
|
|
104
|
+
return chain.length === 2 && Object.keys(chain[0].properties).length === 0;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=InProcessAppendMetadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InProcessAppendMetadata.js","sourceRoot":"","sources":["../../testing/InProcessAppendMetadata.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE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