@cratis/chronicle 6.14.1 → 6.14.3
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/dist/projections/CompiledProjectionDefinitions.d.ts +10 -0
- package/dist/projections/CompiledProjectionDefinitions.d.ts.map +1 -0
- package/dist/projections/CompiledProjectionDefinitions.js +4 -0
- package/dist/projections/CompiledProjectionDefinitions.js.map +1 -0
- package/dist/projections/ProjectionDefinitionCompiler.d.ts +35 -0
- package/dist/projections/ProjectionDefinitionCompiler.d.ts.map +1 -0
- package/dist/projections/ProjectionDefinitionCompiler.js +356 -0
- package/dist/projections/ProjectionDefinitionCompiler.js.map +1 -0
- package/dist/projections/Projections.d.ts +0 -21
- package/dist/projections/Projections.d.ts.map +1 -1
- package/dist/projections/Projections.js +9 -339
- package/dist/projections/Projections.js.map +1 -1
- package/dist/projections/ResolvedModelBoundMetadata.d.ts +8 -0
- package/dist/projections/ResolvedModelBoundMetadata.d.ts.map +1 -0
- package/dist/projections/ResolvedModelBoundMetadata.js +4 -0
- package/dist/projections/ResolvedModelBoundMetadata.js.map +1 -0
- package/dist/projections/canonicalStringify.d.ts +3 -0
- package/dist/projections/canonicalStringify.d.ts.map +1 -0
- package/dist/projections/canonicalStringify.js +12 -0
- package/dist/projections/canonicalStringify.js.map +1 -0
- package/dist/projections/declarative/ProjectionBuilderFor.d.ts +1 -2
- package/dist/projections/declarative/ProjectionBuilderFor.d.ts.map +1 -1
- package/dist/projections/declarative/ProjectionBuilderFor.js +3 -3
- package/dist/projections/declarative/ProjectionBuilderFor.js.map +1 -1
- package/dist/projections/modelBound/childrenAndNestedBuilder.d.ts.map +1 -1
- package/dist/projections/modelBound/childrenAndNestedBuilder.js +7 -3
- package/dist/projections/modelBound/childrenAndNestedBuilder.js.map +1 -1
- package/dist/projections/modelBound/isModelBoundProjection.d.ts +3 -0
- package/dist/projections/modelBound/isModelBoundProjection.d.ts.map +1 -0
- package/dist/projections/modelBound/isModelBoundProjection.js +9 -0
- package/dist/projections/modelBound/isModelBoundProjection.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/projections/CompiledProjectionDefinitions.ts +13 -0
- package/projections/ProjectionDefinitionCompiler.registration.spec.ts +294 -0
- package/projections/ProjectionDefinitionCompiler.ts +387 -0
- package/projections/Projections.childrenAndNested.spec.ts +47 -2
- package/projections/Projections.ts +14 -413
- package/projections/ResolvedModelBoundMetadata.ts +11 -0
- package/projections/canonicalStringify.spec.ts +29 -0
- package/projections/canonicalStringify.ts +12 -0
- package/projections/declarative/ProjectionBuilderFor.spec.ts +50 -0
- package/projections/declarative/ProjectionBuilderFor.ts +3 -3
- package/projections/modelBound/childrenAndNestedBuilder.ts +7 -3
- package/projections/modelBound/isModelBoundProjection.ts +10 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"childrenAndNestedBuilder.js","sourceRoot":"","sources":["../../../projections/modelBound/childrenAndNestedBuilder.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAe,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAwB,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAClF,OAAO,EAAE,yBAAyB,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AACzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,O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,IAAI,EAAE,QAAQ,GAAG,OAAO,CAE9D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 { hasModelBoundProperties } from '../../types/TypeDiscoverer.js';
|
|
4
|
+
import { hasFromEventMetadata } from './fromEvent.js';
|
|
5
|
+
/** Returns whether a read model declares model-bound projection metadata. */
|
|
6
|
+
export function isModelBoundProjection(type) {
|
|
7
|
+
return hasFromEventMetadata(type) || hasModelBoundProperties(type);
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=isModelBoundProjection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isModelBoundProjection.js","sourceRoot":"","sources":["../../../projections/modelBound/isModelBoundProjection.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,6EAA6E;AAC7E,MAAM,UAAU,sBAAsB,CAAC,IAAc;IACjD,OAAO,oBAAoB,CAAC,IAAI,CAAC,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;AACvE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"7.0.2","root":["../ChronicleClient.ts","../ChronicleOptions.ts","../EventStore.ts","../EventStoreName.ts","../EventStoreNamespaceName.ts","../IChronicleClient.ts","../IEventStore.ts","../Metrics.ts","../Tracing.ts","../index.ts","../artifacts/DefaultClientArtifactsProvider.ts","../artifacts/IClientArtifactsProvider.ts","../artifacts/index.ts","../artifacts/validateArtifactSchemas.ts","../auditing/Causation.ts","../auditing/CausationManager.ts","../auditing/CausationType.ts","../auditing/ICausationManager.ts","../auditing/index.ts","../compliance/ComplianceContracts.ts","../compliance/ComplianceMetadata.ts","../compliance/ComplianceMetadataResolver.ts","../compliance/ComplianceMetadataType.ts","../compliance/IPIIManager.ts","../compliance/PIIManager.ts","../compliance/PIINotSupportedOnEventSourceId.ts","../compliance/index.ts","../compliance/pii.ts","../compliance/subject.ts","../confidentiality/EncryptedNotSupportedOnEventSourceId.ts","../confidentiality/EncryptionScope.ts","../confidentiality/PIIAndEncryptedCombinedNotSupported.ts","../confidentiality/SecurityMetadata.ts","../confidentiality/SecurityMetadataResolver.ts","../confidentiality/SecurityMetadataType.ts","../confidentiality/encrypted.ts","../confidentiality/index.ts","../connection/ChronicleConnection.ts","../connection/ChronicleConnectionString.ts","../connection/ChronicleServerAddressResolver.ts","../connection/ChronicleServices.ts","../connection/ChronicleSrvResolutionError.ts","../connection/ChronicleSrvResolver.ts","../connection/CompatibilityPreflight.ts","../connection/ConnectionLifecycle.ts","../connection/DateTimeOffset.ts","../connection/Guid.ts","../connection/ILoadBalancerStrategy.ts","../connection/IncompatibleChronicleServer.ts","../connection/KernelKeepAlive.ts","../connection/LeastConnectionsLoadBalancerStrategy.ts","../connection/LoadBalancerMode.ts","../connection/LoadBalancerStrategyFactory.ts","../connection/RandomLoadBalancerStrategy.ts","../connection/RejectedChronicleCredentials.ts","../connection/RoundRobinLoadBalancerStrategy.ts","../connection/TokenProvider.ts","../connection/callResults.ts","../connection/clientVersion.ts","../connection/fetchOAuthAccessToken.ts","../connection/formatServerAddress.ts","../connection/index.ts","../correlation/CorrelationId.ts","../correlation/CorrelationIdManager.ts","../correlation/ICorrelationIdAccessor.ts","../correlation/ICorrelationIdSetter.ts","../correlation/index.ts","../eventSequences/AppendError.ts","../eventSequences/AppendOperationsBroadcaster.ts","../eventSequences/AppendOptions.ts","../eventSequences/AppendResult.ts","../eventSequences/AppendedEventWithResult.ts","../eventSequences/CompleteStreamError.ts","../eventSequences/CompleteStreamResult.ts","../eventSequences/ConcurrencyScope.ts","../eventSequences/ConcurrencyViolation.ts","../eventSequences/ConstraintViolation.ts","../eventSequences/EventForEventSourceId.ts","../eventSequences/EventLog.ts","../eventSequences/EventSequence.ts","../eventSequences/EventSequenceId.ts","../eventSequences/EventSequenceNumber.ts","../eventSequences/IEventLog.ts","../eventSequences/IEventSequence.ts","../eventSequences/ITransactionalEventSequence.ts","../eventSequences/TransactionalEventSequence.ts","../eventSequences/WaitForCompletionOptions.ts","../eventSequences/WaitForCompletionResult.ts","../eventSequences/index.ts","../eventStoreSubscriptions/EventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/EventStoreSubscriptionDefinition.ts","../eventStoreSubscriptions/EventStoreSubscriptionId.ts","../eventStoreSubscriptions/EventStoreSubscriptions.ts","../eventStoreSubscriptions/IEventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/IEventStoreSubscriptions.ts","../eventStoreSubscriptions/contracts.ts","../eventStoreSubscriptions/index.ts","../events/AppendedEvent.ts","../events/CausationEntry.ts","../events/EventContext.ts","../events/EventType.ts","../events/EventTypeGeneration.ts","../events/EventTypeId.ts","../events/EventTypes.ts","../events/IEventTypes.ts","../events/Tag.ts","../events/WireEventContext.ts","../events/eventTypeDecorator.ts","../events/filterEventsByTagDecorator.ts","../events/index.ts","../events/isRegisteredEvent.ts","../events/mergeTags.ts","../events/tagDecorator.ts","../events/toClientEventContext.ts","../events/constraints/ConstraintBuilder.ts","../events/constraints/ConstraintId.ts","../events/constraints/Constraints.ts","../events/constraints/IConstraint.ts","../events/constraints/IConstraintBuilder.ts","../events/constraints/IConstraints.ts","../events/constraints/IUniqueConstraintBuilder.ts","../events/constraints/UniqueConstraintBuilder.ts","../events/constraints/constraint.ts","../events/constraints/index.ts","../events/constraints/removeConstraint.ts","../events/constraints/unique.ts","../events/migrations/EventMigrationBuilder.ts","../events/migrations/EventMigrationPropertyBuilder.ts","../events/migrations/EventTypeMigrators.ts","../events/migrations/IEventMigrationBuilder.ts","../events/migrations/IEventMigrationPropertyBuilder.ts","../events/migrations/IEventTypeMigration.ts","../events/migrations/IEventTypeMigrators.ts","../events/migrations/InvalidMigrationGenerationGap.ts","../events/migrations/eventTypeMigration.ts","../events/migrations/index.ts","../externalServices/ExternalServiceBuilder.ts","../externalServices/ExternalServices.ts","../externalServices/IExternalServiceBuilder.ts","../externalServices/IExternalServices.ts","../externalServices/index.ts","../identities/IIdentityManager.ts","../identities/IdentityManager.ts","../identities/index.ts","../identity/IIdentityProvider.ts","../identity/Identity.ts","../identity/IdentityProvider.ts","../identity/index.ts","../jobs/IJobs.ts","../jobs/JobId.ts","../jobs/Jobs.ts","../jobs/index.ts","../observation/FailedPartition.ts","../observation/FailedPartitionAttempt.ts","../observation/FailedPartitions.ts","../observation/ICanBeNotifiedWhenPartitionReplayed.ts","../observation/ICanBeNotifiedWhenReplay.ts","../observation/IFailedPartitions.ts","../observation/IObservers.ts","../observation/ObserverId.ts","../observation/ObserverInformation.ts","../observation/ObserverRemovalOutcome.ts","../observation/ObserverRemovalResult.ts","../observation/ObserverRunningState.ts","../observation/ObserverType.ts","../observation/Observers.ts","../observation/index.ts","../observation/notifyReplayLifecycle.ts","../observation/toClientFailedPartition.ts","../observation/toObserverInformation.ts","../observation/toObserverRemovalResult.ts","../observation/toObserverRunningState.ts","../projections/GlobalHandlerPropertyNotOnVariant.ts","../projections/IProjections.ts","../projections/ProjectionId.ts","../projections/ProjectionQueryResult.ts","../projections/ProjectionState.ts","../projections/Projections.ts","../projections/UnableToQueryProjection.ts","../projections/VariantMustDeclareEntersOnEvent.ts","../projections/VariantReclassifier.ts","../projections/constantValueExpression.ts","../projections/index.ts","../projections/notSetPropertyPath.ts","../projections/declarative/AddBuilder.ts","../projections/declarative/AddChildBuilder.ts","../projections/declarative/AllSetBuilder.ts","../projections/declarative/ChildrenBuilder.ts","../projections/declarative/CompositeKeyBuilder.ts","../projections/declarative/FromBuilder.ts","../projections/declarative/FromEveryBuilder.ts","../projections/declarative/IAddBuilder.ts","../projections/declarative/IAddChildBuilder.ts","../projections/declarative/IAllSetBuilder.ts","../projections/declarative/IChildrenBuilder.ts","../projections/declarative/ICompositeKeyBuilder.ts","../projections/declarative/IFromBuilder.ts","../projections/declarative/IFromEveryBuilder.ts","../projections/declarative/IJoinBuilder.ts","../projections/declarative/INestedBuilder.ts","../projections/declarative/IProjectionBuilder.ts","../projections/declarative/IProjectionBuilderFor.ts","../projections/declarative/IProjectionFor.ts","../projections/declarative/IReadModelPropertiesBuilder.ts","../projections/declarative/IRemovedWithBuilder.ts","../projections/declarative/IRemovedWithJoinBuilder.ts","../projections/declarative/ISetBuilder.ts","../projections/declarative/ISubtractBuilder.ts","../projections/declarative/JoinBuilder.ts","../projections/declarative/NestedBuilder.ts","../projections/declarative/ProjectionBuilderCore.ts","../projections/declarative/ProjectionBuilderFor.ts","../projections/declarative/RemovedWithBuilder.ts","../projections/declarative/RemovedWithJoinBuilder.ts","../projections/declarative/SetBuilder.ts","../projections/declarative/SubtractBuilder.ts","../projections/declarative/index.ts","../projections/declarative/projection.ts","../projections/modelBound/FromEventMetadata.ts","../projections/modelBound/FromEventOptions.ts","../projections/modelBound/addFrom.ts","../projections/modelBound/childrenAndNestedBuilder.ts","../projections/modelBound/childrenFrom.ts","../projections/modelBound/clearWith.ts","../projections/modelBound/count.ts","../projections/modelBound/decrement.ts","../projections/modelBound/entersOn.ts","../projections/modelBound/eventSequence.ts","../projections/modelBound/fromAll.ts","../projections/modelBound/fromEvent.ts","../projections/modelBound/fromEvery.ts","../projections/modelBound/globalFor.ts","../projections/modelBound/increment.ts","../projections/modelBound/index.ts","../projections/modelBound/join.ts","../projections/modelBound/nested.ts","../projections/modelBound/noAutoMap.ts","../projections/modelBound/notRewindable.ts","../projections/modelBound/passive.ts","../projections/modelBound/removedWith.ts","../projections/modelBound/removedWithJoin.ts","../projections/modelBound/setFrom.ts","../projections/modelBound/setFromContext.ts","../projections/modelBound/setValue.ts","../projections/modelBound/subtractFrom.ts","../projections/modelBound/variantOf.ts","../reactors/IReactors.ts","../reactors/ReactorId.ts","../reactors/ReactorResultHandler.ts","../reactors/ReactorSideEffects.ts","../reactors/Reactors.ts","../reactors/index.ts","../reactors/onceOnly.ts","../reactors/reactor.ts","../reactors/replay.ts","../readModels/IMaterializedReadModels.ts","../readModels/IReadModels.ts","../readModels/MaterializedReadModels.ts","../readModels/ReadModelChangeset.ts","../readModels/ReadModelId.ts","../readModels/ReadModelSnapshot.ts","../readModels/ReadModelSubjectResolver.ts","../readModels/ReadModels.ts","../readModels/assertUniqueReadModelIds.ts","../readModels/buildReadModelDefinition.ts","../readModels/deserializeReadModel.ts","../readModels/index.ts","../readModels/indexDecorator.ts","../readModels/readModel.ts","../readModels/rootReadModelTypes.ts","../reducers/IReducers.ts","../reducers/ReducerEventDispatcher.ts","../reducers/ReducerEventHandler.ts","../reducers/ReducerId.ts","../reducers/Reducers.ts","../reducers/index.ts","../reducers/reducer.ts","../schemas/JsonSchema.ts","../schemas/JsonSchemaGenerator.ts","../schemas/createDeferredSchema.ts","../schemas/index.ts","../schemas/jsonSchemaProperty.ts","../seeding/EventSeeding.ts","../seeding/ICanSeedEvents.ts","../seeding/IEventSeeding.ts","../seeding/IEventSeedingBuilder.ts","../seeding/IEventSeedingScopeBuilder.ts","../seeding/index.ts","../seeding/seeder.ts","../sinks/WellKnownSinks.ts","../sinks/index.ts","../testing/ReadModelScenario.ts","../testing/ReadModelScenarioGiven.ts","../testing/ReadModelScenarioGivenBuilder.ts","../testing/index.ts","../transactions/IUnitOfWork.ts","../transactions/IUnitOfWorkManager.ts","../transactions/NoUnitOfWorkHasBeenStarted.ts","../transactions/UnitOfWork.ts","../transactions/UnitOfWorkManager.ts","../transactions/index.ts","../types/DecoratorType.ts","../types/TypeDiscoverer.ts","../types/TypeIntrospector.ts","../types/conceptValueType.ts","../types/index.ts","../types/modelBoundProperty.ts","../types/modelBoundPropertyMetadata.ts","../types/propertyDecoratorMetadata.ts","../types/standardDecoratorMetadata.ts","../webhooks/IWebhook.ts","../webhooks/IWebhookDefinitionBuilder.ts","../webhooks/IWebhooks.ts","../webhooks/WebhookDefinitionBuilder.ts","../webhooks/WebhookId.ts","../webhooks/WebhookTargetUrl.ts","../webhooks/Webhooks.ts","../webhooks/index.ts","../webhooks/webhook.ts"],"packageJsons":["../package.json","../../node_modules/@bufbuild/protobuf/dist/esm/package.json","../../node_modules/@bufbuild/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/package.json","../../node_modules/@cratis/fundamentals/dist/esm/package.json","../../node_modules/@cratis/fundamentals/package.json","../../node_modules/@grpc/grpc-js/package.json","../../node_modules/@grpc/proto-loader/package.json","../../node_modules/@js-sdsl/ordered-map/package.json","../../node_modules/@opentelemetry/api/package.json","../../node_modules/@types/node/package.json","../../node_modules/glob/dist/esm/package.json","../../node_modules/glob/package.json","../../node_modules/long/package.json","../../node_modules/long/umd/package.json","../../node_modules/lru-cache/dist/esm/package.json","../../node_modules/lru-cache/package.json","../../node_modules/minimatch/dist/esm/package.json","../../node_modules/minimatch/package.json","../../node_modules/minipass/dist/esm/package.json","../../node_modules/minipass/package.json","../../node_modules/nice-grpc-common/package.json","../../node_modules/nice-grpc/package.json","../../node_modules/path-scurry/dist/esm/package.json","../../node_modules/path-scurry/package.json","../../node_modules/protobufjs/package.json","../../node_modules/reflect-metadata/package.json","../../node_modules/ts-error/package.json","../../node_modules/undici-types/package.json","../../node_modules/undici/package.json"],"missingPackageJsons":["../../node_modules/@bufbuild/protobuf/dist/esm/codegenv1/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/reflect/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wire/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/package.json","../../node_modules/@bufbuild/protobuf/wire/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/protobuf-net/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/package.json","../../node_modules/@cratis/chronicle.contracts/dist/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/reflect/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wire/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/wire/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/nice-grpc-common/package.json","../../node_modules/@cratis/fundamentals/dist/esm/geospatial/package.json","../../node_modules/@cratis/fundamentals/dist/esm/json/package.json","../../node_modules/@grpc/grpc-js/build/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/package.json","../../node_modules/@grpc/grpc-js/build/src/package.json","../../node_modules/@grpc/proto-loader/build/package.json","../../node_modules/@grpc/proto-loader/build/src/package.json","../../node_modules/@js-sdsl/ordered-map/dist/esm/package.json","../../node_modules/@js-sdsl/ordered-map/dist/package.json","../../node_modules/@opentelemetry/api/build/package.json","../../node_modules/@opentelemetry/api/build/src/api/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/internal/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/package.json","../../node_modules/@opentelemetry/api/build/src/common/package.json","../../node_modules/@opentelemetry/api/build/src/context/package.json","../../node_modules/@opentelemetry/api/build/src/diag/package.json","../../node_modules/@opentelemetry/api/build/src/metrics/package.json","../../node_modules/@opentelemetry/api/build/src/package.json","../../node_modules/@opentelemetry/api/build/src/propagation/package.json","../../node_modules/@opentelemetry/api/build/src/trace/internal/package.json","../../node_modules/@opentelemetry/api/build/src/trace/package.json","../../node_modules/@types/assert/package.json","../../node_modules/@types/assert/strict/package.json","../../node_modules/@types/async_hooks/package.json","../../node_modules/@types/buffer/package.json","../../node_modules/@types/child_process/package.json","../../node_modules/@types/cluster/package.json","../../node_modules/@types/console/package.json","../../node_modules/@types/constants/package.json","../../node_modules/@types/crypto/package.json","../../node_modules/@types/dgram/package.json","../../node_modules/@types/diagnostics_channel/package.json","../../node_modules/@types/dns/package.json","../../node_modules/@types/dns/promises/package.json","../../node_modules/@types/domain/package.json","../../node_modules/@types/events/package.json","../../node_modules/@types/fs/package.json","../../node_modules/@types/fs/promises/package.json","../../node_modules/@types/http/package.json","../../node_modules/@types/http2/package.json","../../node_modules/@types/https/package.json","../../node_modules/@types/inspector/package.json","../../node_modules/@types/inspector/promises/package.json","../../node_modules/@types/module/package.json","../../node_modules/@types/net/package.json","../../node_modules/@types/node/assert/package.json","../../node_modules/@types/node/dns/package.json","../../node_modules/@types/node/fs/package.json","../../node_modules/@types/node/inspector/package.json","../../node_modules/@types/node/path/package.json","../../node_modules/@types/node/readline/package.json","../../node_modules/@types/node/stream/package.json","../../node_modules/@types/node/test/package.json","../../node_modules/@types/node/timers/package.json","../../node_modules/@types/node/util/package.json","../../node_modules/@types/node/web-globals/package.json","../../node_modules/@types/node/zlib/package.json","../../node_modules/@types/os/package.json","../../node_modules/@types/path/package.json","../../node_modules/@types/path/posix/package.json","../../node_modules/@types/path/win32/package.json","../../node_modules/@types/perf_hooks/package.json","../../node_modules/@types/process/package.json","../../node_modules/@types/punycode/package.json","../../node_modules/@types/querystring/package.json","../../node_modules/@types/readline/package.json","../../node_modules/@types/readline/promises/package.json","../../node_modules/@types/repl/package.json","../../node_modules/@types/stream/consumers/package.json","../../node_modules/@types/stream/iter/package.json","../../node_modules/@types/stream/package.json","../../node_modules/@types/stream/promises/package.json","../../node_modules/@types/stream/web/package.json","../../node_modules/@types/string_decoder/package.json","../../node_modules/@types/timers/package.json","../../node_modules/@types/timers/promises/package.json","../../node_modules/@types/tls/package.json","../../node_modules/@types/trace_events/package.json","../../node_modules/@types/tty/package.json","../../node_modules/@types/url/package.json","../../node_modules/@types/util/package.json","../../node_modules/@types/util/types/package.json","../../node_modules/@types/v8/package.json","../../node_modules/@types/vm/package.json","../../node_modules/@types/wasi/package.json","../../node_modules/@types/worker_threads/package.json","../../node_modules/@types/zlib/package.json","../../node_modules/assert/package.json","../../node_modules/assert/strict/package.json","../../node_modules/async_hooks/package.json","../../node_modules/buffer/package.json","../../node_modules/child_process/package.json","../../node_modules/cluster/package.json","../../node_modules/console/package.json","../../node_modules/constants/package.json","../../node_modules/crypto/package.json","../../node_modules/dgram/package.json","../../node_modules/diagnostics_channel/package.json","../../node_modules/dns/package.json","../../node_modules/dns/promises/package.json","../../node_modules/domain/package.json","../../node_modules/events/package.json","../../node_modules/fs/package.json","../../node_modules/fs/promises/package.json","../../node_modules/http/package.json","../../node_modules/http2/package.json","../../node_modules/https/package.json","../../node_modules/inspector/package.json","../../node_modules/inspector/promises/package.json","../../node_modules/module/package.json","../../node_modules/net/package.json","../../node_modules/nice-grpc-common/lib/client/package.json","../../node_modules/nice-grpc-common/lib/package.json","../../node_modules/nice-grpc-common/lib/server/package.json","../../node_modules/nice-grpc/lib/client/package.json","../../node_modules/nice-grpc/lib/package.json","../../node_modules/nice-grpc/lib/server/package.json","../../node_modules/nice-grpc/lib/service-definitions/package.json","../../node_modules/nice-grpc/lib/utils/package.json","../../node_modules/os/package.json","../../node_modules/path/package.json","../../node_modules/path/posix/package.json","../../node_modules/path/win32/package.json","../../node_modules/perf_hooks/package.json","../../node_modules/process/package.json","../../node_modules/protobufjs/ext/descriptor/package.json","../../node_modules/protobufjs/ext/package.json","../../node_modules/protobufjs/node_modules/@types/long/package.json","../../node_modules/protobufjs/node_modules/long/package.json","../../node_modules/punycode/package.json","../../node_modules/querystring/package.json","../../node_modules/readline/package.json","../../node_modules/readline/promises/package.json","../../node_modules/repl/package.json","../../node_modules/stream/consumers/package.json","../../node_modules/stream/iter/package.json","../../node_modules/stream/package.json","../../node_modules/stream/promises/package.json","../../node_modules/stream/web/package.json","../../node_modules/string_decoder/package.json","../../node_modules/timers/package.json","../../node_modules/timers/promises/package.json","../../node_modules/tls/package.json","../../node_modules/trace_events/package.json","../../node_modules/ts-error/lib/package.json","../../node_modules/tty/package.json","../../node_modules/undici/types/package.json","../../node_modules/url/package.json","../../node_modules/util/package.json","../../node_modules/util/types/package.json","../../node_modules/v8/package.json","../../node_modules/vm/package.json","../../node_modules/wasi/package.json","../../node_modules/worker_threads/package.json","../../node_modules/zlib/package.json"]}
|
|
1
|
+
{"version":"7.0.2","root":["../ChronicleClient.ts","../ChronicleOptions.ts","../EventStore.ts","../EventStoreName.ts","../EventStoreNamespaceName.ts","../IChronicleClient.ts","../IEventStore.ts","../Metrics.ts","../Tracing.ts","../index.ts","../artifacts/DefaultClientArtifactsProvider.ts","../artifacts/IClientArtifactsProvider.ts","../artifacts/index.ts","../artifacts/validateArtifactSchemas.ts","../auditing/Causation.ts","../auditing/CausationManager.ts","../auditing/CausationType.ts","../auditing/ICausationManager.ts","../auditing/index.ts","../compliance/ComplianceContracts.ts","../compliance/ComplianceMetadata.ts","../compliance/ComplianceMetadataResolver.ts","../compliance/ComplianceMetadataType.ts","../compliance/IPIIManager.ts","../compliance/PIIManager.ts","../compliance/PIINotSupportedOnEventSourceId.ts","../compliance/index.ts","../compliance/pii.ts","../compliance/subject.ts","../confidentiality/EncryptedNotSupportedOnEventSourceId.ts","../confidentiality/EncryptionScope.ts","../confidentiality/PIIAndEncryptedCombinedNotSupported.ts","../confidentiality/SecurityMetadata.ts","../confidentiality/SecurityMetadataResolver.ts","../confidentiality/SecurityMetadataType.ts","../confidentiality/encrypted.ts","../confidentiality/index.ts","../connection/ChronicleConnection.ts","../connection/ChronicleConnectionString.ts","../connection/ChronicleServerAddressResolver.ts","../connection/ChronicleServices.ts","../connection/ChronicleSrvResolutionError.ts","../connection/ChronicleSrvResolver.ts","../connection/CompatibilityPreflight.ts","../connection/ConnectionLifecycle.ts","../connection/DateTimeOffset.ts","../connection/Guid.ts","../connection/ILoadBalancerStrategy.ts","../connection/IncompatibleChronicleServer.ts","../connection/KernelKeepAlive.ts","../connection/LeastConnectionsLoadBalancerStrategy.ts","../connection/LoadBalancerMode.ts","../connection/LoadBalancerStrategyFactory.ts","../connection/RandomLoadBalancerStrategy.ts","../connection/RejectedChronicleCredentials.ts","../connection/RoundRobinLoadBalancerStrategy.ts","../connection/TokenProvider.ts","../connection/callResults.ts","../connection/clientVersion.ts","../connection/fetchOAuthAccessToken.ts","../connection/formatServerAddress.ts","../connection/index.ts","../correlation/CorrelationId.ts","../correlation/CorrelationIdManager.ts","../correlation/ICorrelationIdAccessor.ts","../correlation/ICorrelationIdSetter.ts","../correlation/index.ts","../eventSequences/AppendError.ts","../eventSequences/AppendOperationsBroadcaster.ts","../eventSequences/AppendOptions.ts","../eventSequences/AppendResult.ts","../eventSequences/AppendedEventWithResult.ts","../eventSequences/CompleteStreamError.ts","../eventSequences/CompleteStreamResult.ts","../eventSequences/ConcurrencyScope.ts","../eventSequences/ConcurrencyViolation.ts","../eventSequences/ConstraintViolation.ts","../eventSequences/EventForEventSourceId.ts","../eventSequences/EventLog.ts","../eventSequences/EventSequence.ts","../eventSequences/EventSequenceId.ts","../eventSequences/EventSequenceNumber.ts","../eventSequences/IEventLog.ts","../eventSequences/IEventSequence.ts","../eventSequences/ITransactionalEventSequence.ts","../eventSequences/TransactionalEventSequence.ts","../eventSequences/WaitForCompletionOptions.ts","../eventSequences/WaitForCompletionResult.ts","../eventSequences/index.ts","../eventStoreSubscriptions/EventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/EventStoreSubscriptionDefinition.ts","../eventStoreSubscriptions/EventStoreSubscriptionId.ts","../eventStoreSubscriptions/EventStoreSubscriptions.ts","../eventStoreSubscriptions/IEventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/IEventStoreSubscriptions.ts","../eventStoreSubscriptions/contracts.ts","../eventStoreSubscriptions/index.ts","../events/AppendedEvent.ts","../events/CausationEntry.ts","../events/EventContext.ts","../events/EventType.ts","../events/EventTypeGeneration.ts","../events/EventTypeId.ts","../events/EventTypes.ts","../events/IEventTypes.ts","../events/Tag.ts","../events/WireEventContext.ts","../events/eventTypeDecorator.ts","../events/filterEventsByTagDecorator.ts","../events/index.ts","../events/isRegisteredEvent.ts","../events/mergeTags.ts","../events/tagDecorator.ts","../events/toClientEventContext.ts","../events/constraints/ConstraintBuilder.ts","../events/constraints/ConstraintId.ts","../events/constraints/Constraints.ts","../events/constraints/IConstraint.ts","../events/constraints/IConstraintBuilder.ts","../events/constraints/IConstraints.ts","../events/constraints/IUniqueConstraintBuilder.ts","../events/constraints/UniqueConstraintBuilder.ts","../events/constraints/constraint.ts","../events/constraints/index.ts","../events/constraints/removeConstraint.ts","../events/constraints/unique.ts","../events/migrations/EventMigrationBuilder.ts","../events/migrations/EventMigrationPropertyBuilder.ts","../events/migrations/EventTypeMigrators.ts","../events/migrations/IEventMigrationBuilder.ts","../events/migrations/IEventMigrationPropertyBuilder.ts","../events/migrations/IEventTypeMigration.ts","../events/migrations/IEventTypeMigrators.ts","../events/migrations/InvalidMigrationGenerationGap.ts","../events/migrations/eventTypeMigration.ts","../events/migrations/index.ts","../externalServices/ExternalServiceBuilder.ts","../externalServices/ExternalServices.ts","../externalServices/IExternalServiceBuilder.ts","../externalServices/IExternalServices.ts","../externalServices/index.ts","../identities/IIdentityManager.ts","../identities/IdentityManager.ts","../identities/index.ts","../identity/IIdentityProvider.ts","../identity/Identity.ts","../identity/IdentityProvider.ts","../identity/index.ts","../jobs/IJobs.ts","../jobs/JobId.ts","../jobs/Jobs.ts","../jobs/index.ts","../observation/FailedPartition.ts","../observation/FailedPartitionAttempt.ts","../observation/FailedPartitions.ts","../observation/ICanBeNotifiedWhenPartitionReplayed.ts","../observation/ICanBeNotifiedWhenReplay.ts","../observation/IFailedPartitions.ts","../observation/IObservers.ts","../observation/ObserverId.ts","../observation/ObserverInformation.ts","../observation/ObserverRemovalOutcome.ts","../observation/ObserverRemovalResult.ts","../observation/ObserverRunningState.ts","../observation/ObserverType.ts","../observation/Observers.ts","../observation/index.ts","../observation/notifyReplayLifecycle.ts","../observation/toClientFailedPartition.ts","../observation/toObserverInformation.ts","../observation/toObserverRemovalResult.ts","../observation/toObserverRunningState.ts","../projections/CompiledProjectionDefinitions.ts","../projections/GlobalHandlerPropertyNotOnVariant.ts","../projections/IProjections.ts","../projections/ProjectionDefinitionCompiler.ts","../projections/ProjectionId.ts","../projections/ProjectionQueryResult.ts","../projections/ProjectionState.ts","../projections/Projections.ts","../projections/ResolvedModelBoundMetadata.ts","../projections/UnableToQueryProjection.ts","../projections/VariantMustDeclareEntersOnEvent.ts","../projections/VariantReclassifier.ts","../projections/canonicalStringify.ts","../projections/constantValueExpression.ts","../projections/index.ts","../projections/notSetPropertyPath.ts","../projections/declarative/AddBuilder.ts","../projections/declarative/AddChildBuilder.ts","../projections/declarative/AllSetBuilder.ts","../projections/declarative/ChildrenBuilder.ts","../projections/declarative/CompositeKeyBuilder.ts","../projections/declarative/FromBuilder.ts","../projections/declarative/FromEveryBuilder.ts","../projections/declarative/IAddBuilder.ts","../projections/declarative/IAddChildBuilder.ts","../projections/declarative/IAllSetBuilder.ts","../projections/declarative/IChildrenBuilder.ts","../projections/declarative/ICompositeKeyBuilder.ts","../projections/declarative/IFromBuilder.ts","../projections/declarative/IFromEveryBuilder.ts","../projections/declarative/IJoinBuilder.ts","../projections/declarative/INestedBuilder.ts","../projections/declarative/IProjectionBuilder.ts","../projections/declarative/IProjectionBuilderFor.ts","../projections/declarative/IProjectionFor.ts","../projections/declarative/IReadModelPropertiesBuilder.ts","../projections/declarative/IRemovedWithBuilder.ts","../projections/declarative/IRemovedWithJoinBuilder.ts","../projections/declarative/ISetBuilder.ts","../projections/declarative/ISubtractBuilder.ts","../projections/declarative/JoinBuilder.ts","../projections/declarative/NestedBuilder.ts","../projections/declarative/ProjectionBuilderCore.ts","../projections/declarative/ProjectionBuilderFor.ts","../projections/declarative/RemovedWithBuilder.ts","../projections/declarative/RemovedWithJoinBuilder.ts","../projections/declarative/SetBuilder.ts","../projections/declarative/SubtractBuilder.ts","../projections/declarative/index.ts","../projections/declarative/projection.ts","../projections/modelBound/FromEventMetadata.ts","../projections/modelBound/FromEventOptions.ts","../projections/modelBound/addFrom.ts","../projections/modelBound/childrenAndNestedBuilder.ts","../projections/modelBound/childrenFrom.ts","../projections/modelBound/clearWith.ts","../projections/modelBound/count.ts","../projections/modelBound/decrement.ts","../projections/modelBound/entersOn.ts","../projections/modelBound/eventSequence.ts","../projections/modelBound/fromAll.ts","../projections/modelBound/fromEvent.ts","../projections/modelBound/fromEvery.ts","../projections/modelBound/globalFor.ts","../projections/modelBound/increment.ts","../projections/modelBound/index.ts","../projections/modelBound/isModelBoundProjection.ts","../projections/modelBound/join.ts","../projections/modelBound/nested.ts","../projections/modelBound/noAutoMap.ts","../projections/modelBound/notRewindable.ts","../projections/modelBound/passive.ts","../projections/modelBound/removedWith.ts","../projections/modelBound/removedWithJoin.ts","../projections/modelBound/setFrom.ts","../projections/modelBound/setFromContext.ts","../projections/modelBound/setValue.ts","../projections/modelBound/subtractFrom.ts","../projections/modelBound/variantOf.ts","../reactors/IReactors.ts","../reactors/ReactorId.ts","../reactors/ReactorResultHandler.ts","../reactors/ReactorSideEffects.ts","../reactors/Reactors.ts","../reactors/index.ts","../reactors/onceOnly.ts","../reactors/reactor.ts","../reactors/replay.ts","../readModels/IMaterializedReadModels.ts","../readModels/IReadModels.ts","../readModels/MaterializedReadModels.ts","../readModels/ReadModelChangeset.ts","../readModels/ReadModelId.ts","../readModels/ReadModelSnapshot.ts","../readModels/ReadModelSubjectResolver.ts","../readModels/ReadModels.ts","../readModels/assertUniqueReadModelIds.ts","../readModels/buildReadModelDefinition.ts","../readModels/deserializeReadModel.ts","../readModels/index.ts","../readModels/indexDecorator.ts","../readModels/readModel.ts","../readModels/rootReadModelTypes.ts","../reducers/IReducers.ts","../reducers/ReducerEventDispatcher.ts","../reducers/ReducerEventHandler.ts","../reducers/ReducerId.ts","../reducers/Reducers.ts","../reducers/index.ts","../reducers/reducer.ts","../schemas/JsonSchema.ts","../schemas/JsonSchemaGenerator.ts","../schemas/createDeferredSchema.ts","../schemas/index.ts","../schemas/jsonSchemaProperty.ts","../seeding/EventSeeding.ts","../seeding/ICanSeedEvents.ts","../seeding/IEventSeeding.ts","../seeding/IEventSeedingBuilder.ts","../seeding/IEventSeedingScopeBuilder.ts","../seeding/index.ts","../seeding/seeder.ts","../sinks/WellKnownSinks.ts","../sinks/index.ts","../testing/ReadModelScenario.ts","../testing/ReadModelScenarioGiven.ts","../testing/ReadModelScenarioGivenBuilder.ts","../testing/index.ts","../transactions/IUnitOfWork.ts","../transactions/IUnitOfWorkManager.ts","../transactions/NoUnitOfWorkHasBeenStarted.ts","../transactions/UnitOfWork.ts","../transactions/UnitOfWorkManager.ts","../transactions/index.ts","../types/DecoratorType.ts","../types/TypeDiscoverer.ts","../types/TypeIntrospector.ts","../types/conceptValueType.ts","../types/index.ts","../types/modelBoundProperty.ts","../types/modelBoundPropertyMetadata.ts","../types/propertyDecoratorMetadata.ts","../types/standardDecoratorMetadata.ts","../webhooks/IWebhook.ts","../webhooks/IWebhookDefinitionBuilder.ts","../webhooks/IWebhooks.ts","../webhooks/WebhookDefinitionBuilder.ts","../webhooks/WebhookId.ts","../webhooks/WebhookTargetUrl.ts","../webhooks/Webhooks.ts","../webhooks/index.ts","../webhooks/webhook.ts"],"packageJsons":["../package.json","../../node_modules/@bufbuild/protobuf/dist/esm/package.json","../../node_modules/@bufbuild/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/package.json","../../node_modules/@cratis/fundamentals/dist/esm/package.json","../../node_modules/@cratis/fundamentals/package.json","../../node_modules/@grpc/grpc-js/package.json","../../node_modules/@grpc/proto-loader/package.json","../../node_modules/@js-sdsl/ordered-map/package.json","../../node_modules/@opentelemetry/api/package.json","../../node_modules/@types/node/package.json","../../node_modules/glob/dist/esm/package.json","../../node_modules/glob/package.json","../../node_modules/long/package.json","../../node_modules/long/umd/package.json","../../node_modules/lru-cache/dist/esm/package.json","../../node_modules/lru-cache/package.json","../../node_modules/minimatch/dist/esm/package.json","../../node_modules/minimatch/package.json","../../node_modules/minipass/dist/esm/package.json","../../node_modules/minipass/package.json","../../node_modules/nice-grpc-common/package.json","../../node_modules/nice-grpc/package.json","../../node_modules/path-scurry/dist/esm/package.json","../../node_modules/path-scurry/package.json","../../node_modules/protobufjs/package.json","../../node_modules/reflect-metadata/package.json","../../node_modules/ts-error/package.json","../../node_modules/undici-types/package.json","../../node_modules/undici/package.json"],"missingPackageJsons":["../../node_modules/@bufbuild/protobuf/dist/esm/codegenv1/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/reflect/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wire/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/package.json","../../node_modules/@bufbuild/protobuf/wire/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/protobuf-net/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/package.json","../../node_modules/@cratis/chronicle.contracts/dist/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/reflect/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wire/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/wire/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/nice-grpc-common/package.json","../../node_modules/@cratis/fundamentals/dist/esm/geospatial/package.json","../../node_modules/@cratis/fundamentals/dist/esm/json/package.json","../../node_modules/@grpc/grpc-js/build/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/package.json","../../node_modules/@grpc/grpc-js/build/src/package.json","../../node_modules/@grpc/proto-loader/build/package.json","../../node_modules/@grpc/proto-loader/build/src/package.json","../../node_modules/@js-sdsl/ordered-map/dist/esm/package.json","../../node_modules/@js-sdsl/ordered-map/dist/package.json","../../node_modules/@opentelemetry/api/build/package.json","../../node_modules/@opentelemetry/api/build/src/api/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/internal/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/package.json","../../node_modules/@opentelemetry/api/build/src/common/package.json","../../node_modules/@opentelemetry/api/build/src/context/package.json","../../node_modules/@opentelemetry/api/build/src/diag/package.json","../../node_modules/@opentelemetry/api/build/src/metrics/package.json","../../node_modules/@opentelemetry/api/build/src/package.json","../../node_modules/@opentelemetry/api/build/src/propagation/package.json","../../node_modules/@opentelemetry/api/build/src/trace/internal/package.json","../../node_modules/@opentelemetry/api/build/src/trace/package.json","../../node_modules/@types/assert/package.json","../../node_modules/@types/assert/strict/package.json","../../node_modules/@types/async_hooks/package.json","../../node_modules/@types/buffer/package.json","../../node_modules/@types/child_process/package.json","../../node_modules/@types/cluster/package.json","../../node_modules/@types/console/package.json","../../node_modules/@types/constants/package.json","../../node_modules/@types/crypto/package.json","../../node_modules/@types/dgram/package.json","../../node_modules/@types/diagnostics_channel/package.json","../../node_modules/@types/dns/package.json","../../node_modules/@types/dns/promises/package.json","../../node_modules/@types/domain/package.json","../../node_modules/@types/events/package.json","../../node_modules/@types/fs/package.json","../../node_modules/@types/fs/promises/package.json","../../node_modules/@types/http/package.json","../../node_modules/@types/http2/package.json","../../node_modules/@types/https/package.json","../../node_modules/@types/inspector/package.json","../../node_modules/@types/inspector/promises/package.json","../../node_modules/@types/module/package.json","../../node_modules/@types/net/package.json","../../node_modules/@types/node/assert/package.json","../../node_modules/@types/node/dns/package.json","../../node_modules/@types/node/fs/package.json","../../node_modules/@types/node/inspector/package.json","../../node_modules/@types/node/path/package.json","../../node_modules/@types/node/readline/package.json","../../node_modules/@types/node/stream/package.json","../../node_modules/@types/node/test/package.json","../../node_modules/@types/node/timers/package.json","../../node_modules/@types/node/util/package.json","../../node_modules/@types/node/web-globals/package.json","../../node_modules/@types/node/zlib/package.json","../../node_modules/@types/os/package.json","../../node_modules/@types/path/package.json","../../node_modules/@types/path/posix/package.json","../../node_modules/@types/path/win32/package.json","../../node_modules/@types/perf_hooks/package.json","../../node_modules/@types/process/package.json","../../node_modules/@types/punycode/package.json","../../node_modules/@types/querystring/package.json","../../node_modules/@types/readline/package.json","../../node_modules/@types/readline/promises/package.json","../../node_modules/@types/repl/package.json","../../node_modules/@types/stream/consumers/package.json","../../node_modules/@types/stream/iter/package.json","../../node_modules/@types/stream/package.json","../../node_modules/@types/stream/promises/package.json","../../node_modules/@types/stream/web/package.json","../../node_modules/@types/string_decoder/package.json","../../node_modules/@types/timers/package.json","../../node_modules/@types/timers/promises/package.json","../../node_modules/@types/tls/package.json","../../node_modules/@types/trace_events/package.json","../../node_modules/@types/tty/package.json","../../node_modules/@types/url/package.json","../../node_modules/@types/util/package.json","../../node_modules/@types/util/types/package.json","../../node_modules/@types/v8/package.json","../../node_modules/@types/vm/package.json","../../node_modules/@types/wasi/package.json","../../node_modules/@types/worker_threads/package.json","../../node_modules/@types/zlib/package.json","../../node_modules/assert/package.json","../../node_modules/assert/strict/package.json","../../node_modules/async_hooks/package.json","../../node_modules/buffer/package.json","../../node_modules/child_process/package.json","../../node_modules/cluster/package.json","../../node_modules/console/package.json","../../node_modules/constants/package.json","../../node_modules/crypto/package.json","../../node_modules/dgram/package.json","../../node_modules/diagnostics_channel/package.json","../../node_modules/dns/package.json","../../node_modules/dns/promises/package.json","../../node_modules/domain/package.json","../../node_modules/events/package.json","../../node_modules/fs/package.json","../../node_modules/fs/promises/package.json","../../node_modules/http/package.json","../../node_modules/http2/package.json","../../node_modules/https/package.json","../../node_modules/inspector/package.json","../../node_modules/inspector/promises/package.json","../../node_modules/module/package.json","../../node_modules/net/package.json","../../node_modules/nice-grpc-common/lib/client/package.json","../../node_modules/nice-grpc-common/lib/package.json","../../node_modules/nice-grpc-common/lib/server/package.json","../../node_modules/nice-grpc/lib/client/package.json","../../node_modules/nice-grpc/lib/package.json","../../node_modules/nice-grpc/lib/server/package.json","../../node_modules/nice-grpc/lib/service-definitions/package.json","../../node_modules/nice-grpc/lib/utils/package.json","../../node_modules/os/package.json","../../node_modules/path/package.json","../../node_modules/path/posix/package.json","../../node_modules/path/win32/package.json","../../node_modules/perf_hooks/package.json","../../node_modules/process/package.json","../../node_modules/protobufjs/ext/descriptor/package.json","../../node_modules/protobufjs/ext/package.json","../../node_modules/protobufjs/node_modules/@types/long/package.json","../../node_modules/protobufjs/node_modules/long/package.json","../../node_modules/punycode/package.json","../../node_modules/querystring/package.json","../../node_modules/readline/package.json","../../node_modules/readline/promises/package.json","../../node_modules/repl/package.json","../../node_modules/stream/consumers/package.json","../../node_modules/stream/iter/package.json","../../node_modules/stream/package.json","../../node_modules/stream/promises/package.json","../../node_modules/stream/web/package.json","../../node_modules/string_decoder/package.json","../../node_modules/timers/package.json","../../node_modules/timers/promises/package.json","../../node_modules/tls/package.json","../../node_modules/trace_events/package.json","../../node_modules/ts-error/lib/package.json","../../node_modules/tty/package.json","../../node_modules/undici/types/package.json","../../node_modules/url/package.json","../../node_modules/util/package.json","../../node_modules/util/types/package.json","../../node_modules/v8/package.json","../../node_modules/vm/package.json","../../node_modules/wasi/package.json","../../node_modules/worker_threads/package.json","../../node_modules/zlib/package.json"]}
|
package/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
import type { ProjectionDefinition } from '@cratis/chronicle.contracts';
|
|
5
|
+
import type { buildReadModelDefinition } from '../readModels/buildReadModelDefinition.js';
|
|
6
|
+
|
|
7
|
+
/** Connection-independent contracts produced for projection registration. */
|
|
8
|
+
export interface CompiledProjectionDefinitions {
|
|
9
|
+
/** The final wire definitions, including variant cross-wiring and LastUpdated hashes. */
|
|
10
|
+
readonly definitions: ProjectionDefinition[];
|
|
11
|
+
/** Read models registered before the projections. */
|
|
12
|
+
readonly readModels: ReturnType<typeof buildReadModelDefinition>[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
import 'reflect-metadata';
|
|
5
|
+
import { readFileSync } from 'node:fs';
|
|
6
|
+
import { field, Constructor } from '@cratis/fundamentals';
|
|
7
|
+
import { chai, describe, it, vi } from 'vitest';
|
|
8
|
+
import type { IClientArtifactsProvider } from '../artifacts/index.js';
|
|
9
|
+
import type { ChronicleConnection } from '../connection/index.js';
|
|
10
|
+
import { eventType } from '../events/eventTypeDecorator.js';
|
|
11
|
+
import { IProjectionBuilderFor } from './declarative/IProjectionBuilderFor.js';
|
|
12
|
+
import { IProjectionFor } from './declarative/IProjectionFor.js';
|
|
13
|
+
import { projection } from './declarative/projection.js';
|
|
14
|
+
import { addFrom } from './modelBound/addFrom.js';
|
|
15
|
+
import { childrenFrom } from './modelBound/childrenFrom.js';
|
|
16
|
+
import { clearWith } from './modelBound/clearWith.js';
|
|
17
|
+
import { count } from './modelBound/count.js';
|
|
18
|
+
import { decrement } from './modelBound/decrement.js';
|
|
19
|
+
import { entersOn } from './modelBound/entersOn.js';
|
|
20
|
+
import { eventSequence } from './modelBound/eventSequence.js';
|
|
21
|
+
import { fromAll } from './modelBound/fromAll.js';
|
|
22
|
+
import { fromEvent } from './modelBound/fromEvent.js';
|
|
23
|
+
import { fromEvery } from './modelBound/fromEvery.js';
|
|
24
|
+
import { globalFor } from './modelBound/globalFor.js';
|
|
25
|
+
import { increment } from './modelBound/increment.js';
|
|
26
|
+
import { isModelBoundProjection } from './modelBound/isModelBoundProjection.js';
|
|
27
|
+
import { join } from './modelBound/join.js';
|
|
28
|
+
import { nested } from './modelBound/nested.js';
|
|
29
|
+
import { noAutoMap } from './modelBound/noAutoMap.js';
|
|
30
|
+
import { notRewindable } from './modelBound/notRewindable.js';
|
|
31
|
+
import { passive } from './modelBound/passive.js';
|
|
32
|
+
import { removedWith } from './modelBound/removedWith.js';
|
|
33
|
+
import { removedWithJoin } from './modelBound/removedWithJoin.js';
|
|
34
|
+
import { setFrom } from './modelBound/setFrom.js';
|
|
35
|
+
import { setFromContext } from './modelBound/setFromContext.js';
|
|
36
|
+
import { setValue } from './modelBound/setValue.js';
|
|
37
|
+
import { subtractFrom } from './modelBound/subtractFrom.js';
|
|
38
|
+
import { variantOf } from './modelBound/variantOf.js';
|
|
39
|
+
import { ProjectionDefinitionCompiler } from './ProjectionDefinitionCompiler.js';
|
|
40
|
+
import { Projections } from './Projections.js';
|
|
41
|
+
|
|
42
|
+
class ItemCreated { name!: string; quantity!: number; }
|
|
43
|
+
eventType()(ItemCreated);
|
|
44
|
+
class ItemUpdated { name!: string; quantity!: number; }
|
|
45
|
+
eventType()(ItemUpdated);
|
|
46
|
+
class ItemRemoved {}
|
|
47
|
+
eventType()(ItemRemoved);
|
|
48
|
+
class DescriptionCleared {}
|
|
49
|
+
eventType()(DescriptionCleared);
|
|
50
|
+
class LineAdded { productId!: string; }
|
|
51
|
+
eventType()(LineAdded);
|
|
52
|
+
class Joined { name!: string; }
|
|
53
|
+
eventType()(Joined);
|
|
54
|
+
class Opened { title!: string; }
|
|
55
|
+
eventType()(Opened);
|
|
56
|
+
class Published { url!: string; }
|
|
57
|
+
eventType()(Published);
|
|
58
|
+
class TitleChanged { title!: string; }
|
|
59
|
+
eventType()(TitleChanged);
|
|
60
|
+
|
|
61
|
+
class Flat { id!: string; name!: string; }
|
|
62
|
+
setFrom(ItemCreated, 'name')(Flat.prototype, 'name');
|
|
63
|
+
fromEvent(ItemCreated)(Flat);
|
|
64
|
+
class AutoMapped { id!: string; name!: string; quantity!: number; }
|
|
65
|
+
noAutoMap(AutoMapped.prototype, 'quantity');
|
|
66
|
+
fromEvent(ItemCreated)(AutoMapped);
|
|
67
|
+
class Totals { id!: string; quantity!: number; removed!: number; count!: number; }
|
|
68
|
+
addFrom(ItemCreated, 'quantity')(Totals.prototype, 'quantity');
|
|
69
|
+
subtractFrom(ItemUpdated, 'quantity')(Totals.prototype, 'removed');
|
|
70
|
+
count(ItemCreated)(Totals.prototype, 'count');
|
|
71
|
+
fromEvent(ItemCreated)(Totals);
|
|
72
|
+
class Removable { id!: string; name!: string; }
|
|
73
|
+
fromEvent(ItemCreated)(Removable);
|
|
74
|
+
removedWith(ItemRemoved)(Removable);
|
|
75
|
+
class Line { productId!: string; }
|
|
76
|
+
class WithChildren { id!: string; lines!: Line[]; }
|
|
77
|
+
childrenFrom(LineAdded, undefined, 'productId')(WithChildren.prototype, 'lines');
|
|
78
|
+
field(Array, { enumerable: true, genericArguments: [Line] })(WithChildren.prototype, 'lines');
|
|
79
|
+
fromEvent(ItemCreated)(WithChildren);
|
|
80
|
+
class WithJoin { id!: string; name!: string; }
|
|
81
|
+
join(Joined, 'name')(WithJoin.prototype, 'name');
|
|
82
|
+
fromEvent(ItemCreated)(WithJoin);
|
|
83
|
+
class Every { id!: string; name!: string; }
|
|
84
|
+
fromEvery('name')(Every.prototype, 'name');
|
|
85
|
+
fromEvent(ItemCreated)(Every);
|
|
86
|
+
|
|
87
|
+
class PassiveModel { id!: string; name!: string; }
|
|
88
|
+
field(String)(PassiveModel.prototype, 'name');
|
|
89
|
+
setFrom(ItemCreated, 'name')(PassiveModel.prototype, 'name');
|
|
90
|
+
fromEvent(ItemCreated)(PassiveModel);
|
|
91
|
+
passive(PassiveModel);
|
|
92
|
+
|
|
93
|
+
class Detail { description!: string; }
|
|
94
|
+
setFrom(ItemCreated, 'name')(Detail.prototype, 'description');
|
|
95
|
+
clearWith(DescriptionCleared)(Detail.prototype, 'description');
|
|
96
|
+
fromEvent(ItemCreated)(Detail);
|
|
97
|
+
clearWith(ItemRemoved)(Detail);
|
|
98
|
+
class WithNested { id!: string; detail!: Detail; title!: string; }
|
|
99
|
+
field(Detail)(WithNested.prototype, 'detail');
|
|
100
|
+
nested(WithNested.prototype, 'detail');
|
|
101
|
+
clearWith(ItemUpdated)(WithNested.prototype, 'detail');
|
|
102
|
+
clearWith(ItemRemoved)(WithNested.prototype, 'title');
|
|
103
|
+
fromEvent(ItemCreated)(WithNested);
|
|
104
|
+
|
|
105
|
+
class WithRemovedJoin { id!: string; name!: string; }
|
|
106
|
+
removedWithJoin(ItemRemoved, 'productId')(WithRemovedJoin);
|
|
107
|
+
removedWithJoin(TitleChanged, 'title')(WithRemovedJoin.prototype, 'name');
|
|
108
|
+
fromEvent(ItemCreated)(WithRemovedJoin);
|
|
109
|
+
|
|
110
|
+
class CustomKeys { id!: string; }
|
|
111
|
+
fromEvent(ItemCreated, { key: 'productId', parentKey: 'ownerId' })(CustomKeys);
|
|
112
|
+
class ConstantKeys { id!: string; }
|
|
113
|
+
fromEvent(ItemCreated, { constantKey: 'one', parentKey: 'ownerId' })(ConstantKeys);
|
|
114
|
+
|
|
115
|
+
class NoMapping { id!: string; name!: string; }
|
|
116
|
+
noAutoMap(NoMapping);
|
|
117
|
+
fromEvent(ItemCreated)(NoMapping);
|
|
118
|
+
class NoRewind { id!: string; }
|
|
119
|
+
notRewindable(NoRewind);
|
|
120
|
+
fromEvent(ItemCreated)(NoRewind);
|
|
121
|
+
class OtherSequence { id!: string; }
|
|
122
|
+
eventSequence('custom-sequence')(OtherSequence);
|
|
123
|
+
fromEvent(ItemCreated)(OtherSequence);
|
|
124
|
+
|
|
125
|
+
class MappingOptions { id!: string; context!: string; state!: string; increments!: number; decrements!: number; all!: string; }
|
|
126
|
+
field(String)(MappingOptions.prototype, 'context');
|
|
127
|
+
field(Number)(MappingOptions.prototype, 'increments');
|
|
128
|
+
setFromContext(ItemCreated, 'eventSourceId')(MappingOptions.prototype, 'context');
|
|
129
|
+
setValue(ItemUpdated, 'ready')(MappingOptions.prototype, 'state');
|
|
130
|
+
increment(ItemCreated)(MappingOptions.prototype, 'increments');
|
|
131
|
+
decrement(ItemUpdated)(MappingOptions.prototype, 'decrements');
|
|
132
|
+
fromAll('name')(MappingOptions.prototype, 'all');
|
|
133
|
+
fromEvent(ItemCreated)(MappingOptions);
|
|
134
|
+
|
|
135
|
+
class Identity {}
|
|
136
|
+
class Draft { id!: string; title!: string; }
|
|
137
|
+
setFrom(Opened, 'title')(Draft.prototype, 'title');
|
|
138
|
+
variantOf(Identity, 'id')(Draft);
|
|
139
|
+
entersOn(Opened)(Draft);
|
|
140
|
+
fromEvent(Opened)(Draft);
|
|
141
|
+
class Public { id!: string; url!: string; title!: string; }
|
|
142
|
+
setFrom(Published, 'url')(Public.prototype, 'url');
|
|
143
|
+
setFrom(TitleChanged, 'title')(Public.prototype, 'title');
|
|
144
|
+
variantOf(Identity, 'id')(Public);
|
|
145
|
+
entersOn(Published)(Public);
|
|
146
|
+
fromEvent(Published)(Public);
|
|
147
|
+
fromEvent(TitleChanged)(Public);
|
|
148
|
+
class KeyedVariant { id!: string; title!: string; }
|
|
149
|
+
variantOf(Identity, 'id')(KeyedVariant);
|
|
150
|
+
entersOn(Opened, 'productId')(KeyedVariant);
|
|
151
|
+
fromEvent(Opened)(KeyedVariant);
|
|
152
|
+
class SharedTitle { title!: string; }
|
|
153
|
+
setFrom(TitleChanged, 'title')(SharedTitle.prototype, 'title');
|
|
154
|
+
globalFor(Identity)(SharedTitle);
|
|
155
|
+
|
|
156
|
+
class Declarative { id!: string; name!: string; quantity!: number; lines!: Line[]; }
|
|
157
|
+
class DeclarativeProjection implements IProjectionFor<Declarative> {
|
|
158
|
+
define(builder: IProjectionBuilderFor<Declarative>): void {
|
|
159
|
+
builder.from(ItemCreated, from => from.set(model => model.name).to(event => event.name))
|
|
160
|
+
.join(Joined, joined => joined.on(model => model.name).set(model => model.name).to(event => event.name))
|
|
161
|
+
.fromEvery(every => every.set(model => model.name).toEventContextProperty('eventType'))
|
|
162
|
+
.removedWith(ItemRemoved)
|
|
163
|
+
.children<Line>(model => model.lines, children => children.from(LineAdded))
|
|
164
|
+
.autoMap();
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
projection('Declarative', Declarative)(DeclarativeProjection);
|
|
168
|
+
class AnotherDeclarativeProjection implements IProjectionFor<Declarative> {
|
|
169
|
+
define(builder: IProjectionBuilderFor<Declarative>): void {
|
|
170
|
+
builder.from(ItemUpdated);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
projection('AnotherDeclarative', Declarative)(AnotherDeclarativeProjection);
|
|
174
|
+
|
|
175
|
+
class DeclarativeDraft { id!: string; title!: string; }
|
|
176
|
+
class DeclarativeDraftProjection implements IProjectionFor<DeclarativeDraft> {
|
|
177
|
+
define(builder: IProjectionBuilderFor<DeclarativeDraft>): void {
|
|
178
|
+
builder.variantOf(Identity, model => model.id).entersOn(Opened).from(Opened);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
projection('DeclarativeDraft', DeclarativeDraft)(DeclarativeDraftProjection);
|
|
182
|
+
class DeclarativePublic { id!: string; url!: string; }
|
|
183
|
+
class DeclarativePublicProjection implements IProjectionFor<DeclarativePublic> {
|
|
184
|
+
define(builder: IProjectionBuilderFor<DeclarativePublic>): void {
|
|
185
|
+
builder.variantOf(Identity, model => model.id).entersOn(Published).from(Published).from(TitleChanged);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
projection('DeclarativePublic', DeclarativePublic)(DeclarativePublicProjection);
|
|
189
|
+
|
|
190
|
+
class Inferred { uniqueTitle!: string; }
|
|
191
|
+
field(String)(Inferred.prototype, 'uniqueTitle');
|
|
192
|
+
class InferredProjection implements IProjectionFor<Inferred> {
|
|
193
|
+
define(builder: IProjectionBuilderFor<Inferred>): void {
|
|
194
|
+
builder.from(Opened, from => from.set(model => model.uniqueTitle).to(event => event.title));
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
projection()(InferredProjection);
|
|
198
|
+
|
|
199
|
+
const cases = [
|
|
200
|
+
{ name: 'flat', readModels: [Flat], projections: [], globalForHandlers: [] },
|
|
201
|
+
{ name: 'passive-with-fields', readModels: [PassiveModel], projections: [], globalForHandlers: [] },
|
|
202
|
+
{ name: 'nested-and-clear', readModels: [WithNested], projections: [], globalForHandlers: [] },
|
|
203
|
+
{ name: 'removed-with-join', readModels: [WithRemovedJoin], projections: [], globalForHandlers: [] },
|
|
204
|
+
{ name: 'custom-keys', readModels: [CustomKeys, ConstantKeys], projections: [], globalForHandlers: [] },
|
|
205
|
+
{ name: 'no-auto-map', readModels: [NoMapping], projections: [], globalForHandlers: [] },
|
|
206
|
+
{ name: 'not-rewindable', readModels: [NoRewind], projections: [], globalForHandlers: [] },
|
|
207
|
+
{ name: 'event-sequence', readModels: [OtherSequence], projections: [], globalForHandlers: [] },
|
|
208
|
+
{ name: 'mapping-options-with-fields', readModels: [MappingOptions], projections: [], globalForHandlers: [] },
|
|
209
|
+
{ name: 'enters-on-key', readModels: [KeyedVariant], projections: [], globalForHandlers: [] },
|
|
210
|
+
{ name: 'declarative-inferred-with-fields', readModels: [Inferred], projections: [InferredProjection], globalForHandlers: [] },
|
|
211
|
+
{ name: 'automap-exclusion', readModels: [AutoMapped], projections: [], globalForHandlers: [] },
|
|
212
|
+
{ name: 'arithmetic', readModels: [Totals], projections: [], globalForHandlers: [] },
|
|
213
|
+
{ name: 'removed-with', readModels: [Removable], projections: [], globalForHandlers: [] },
|
|
214
|
+
{ name: 'children', readModels: [WithChildren], projections: [], globalForHandlers: [] },
|
|
215
|
+
{ name: 'join', readModels: [WithJoin], projections: [], globalForHandlers: [] },
|
|
216
|
+
{ name: 'from-every', readModels: [Every], projections: [], globalForHandlers: [] },
|
|
217
|
+
{ name: 'model-bound-variants', readModels: [Draft, Public], projections: [], globalForHandlers: [SharedTitle] },
|
|
218
|
+
{ name: 'declarative', readModels: [Declarative], projections: [DeclarativeProjection], globalForHandlers: [] },
|
|
219
|
+
{ name: 'declarative-variants', readModels: [DeclarativeDraft, DeclarativePublic], projections: [DeclarativeDraftProjection, DeclarativePublicProjection], globalForHandlers: [] }
|
|
220
|
+
];
|
|
221
|
+
|
|
222
|
+
function artifactsFor(testCase: typeof cases[number]): IClientArtifactsProvider {
|
|
223
|
+
return {
|
|
224
|
+
projections: testCase.projections as Constructor[],
|
|
225
|
+
readModels: testCase.readModels as Constructor[],
|
|
226
|
+
globalForHandlers: testCase.globalForHandlers as Constructor[],
|
|
227
|
+
eventTypes: [ItemCreated, ItemUpdated, ItemRemoved, LineAdded, Joined, Opened, Published, TitleChanged],
|
|
228
|
+
reactors: [], reducers: [], seeders: [], constraints: [], webhooks: [], eventTypeMigrations: []
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
function serializeContract(value: unknown): string {
|
|
233
|
+
return JSON.stringify(value, (_key, member: unknown) => typeof member === 'bigint' ? member.toString() : member);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
async function captureRegistration(artifacts: IClientArtifactsProvider): Promise<string> {
|
|
237
|
+
const registerMock = vi.fn().mockResolvedValue(undefined);
|
|
238
|
+
const registerManyMock = vi.fn().mockResolvedValue(undefined);
|
|
239
|
+
const connection = {
|
|
240
|
+
projections: { register: registerMock },
|
|
241
|
+
readModels: { registerMany: registerManyMock }
|
|
242
|
+
} as unknown as ChronicleConnection;
|
|
243
|
+
await new Projections('test-store', 'test-namespace', connection, artifacts, 'test-sink').register();
|
|
244
|
+
return serializeContract({
|
|
245
|
+
readModels: registerManyMock.mock.calls.map(call => call[0].ReadModels).flat(),
|
|
246
|
+
projections: registerMock.mock.calls.map(call => call[0].Projections).flat()
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
chai.should();
|
|
251
|
+
|
|
252
|
+
const goldenUrl = new URL('./ProjectionDefinitionCompiler.registration.golden.json', import.meta.url);
|
|
253
|
+
|
|
254
|
+
describe('projection registration payload', () => {
|
|
255
|
+
for (const testCase of cases) {
|
|
256
|
+
it(`should match the registration golden for ${testCase.name}`, async () => {
|
|
257
|
+
const actual = await captureRegistration(artifactsFor(testCase));
|
|
258
|
+
const goldens = JSON.parse(readFileSync(goldenUrl, 'utf8')) as Array<{ name: string; payload: string }>;
|
|
259
|
+
actual.should.equal(goldens.find(candidate => candidate.name === testCase.name)?.payload);
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
it(`should send the compiler's definitions and read-model schemas for ${testCase.name}`, async () => {
|
|
263
|
+
const artifacts = artifactsFor(testCase);
|
|
264
|
+
const compiled = new ProjectionDefinitionCompiler(artifacts, 'test-sink').compile(
|
|
265
|
+
artifacts.projections,
|
|
266
|
+
artifacts.readModels.filter(isModelBoundProjection)
|
|
267
|
+
);
|
|
268
|
+
const compiledPayload = serializeContract({ readModels: compiled.readModels, projections: compiled.definitions });
|
|
269
|
+
compiledPayload.should.equal(await captureRegistration(artifacts));
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
it('should hash nested model-bound mappings after compiling the final definition', () => {
|
|
274
|
+
const hashFor = (propertyExpression: string): string => {
|
|
275
|
+
class HashedProjection { id!: string; name!: string; }
|
|
276
|
+
setFrom(ItemCreated, propertyExpression)(HashedProjection.prototype, 'name');
|
|
277
|
+
fromEvent(ItemCreated)(HashedProjection);
|
|
278
|
+
const artifacts = artifactsFor(cases[0]);
|
|
279
|
+
artifacts.readModels = [HashedProjection];
|
|
280
|
+
const definition = new ProjectionDefinitionCompiler(artifacts, 'test-sink').compile([], [HashedProjection]).definitions[0];
|
|
281
|
+
return definition.LastUpdated.Value;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
hashFor('name').should.not.equal(hashFor('quantity'));
|
|
285
|
+
hashFor('name').should.equal(hashFor('name'));
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
it('should reject multiple projections for one read model', () => {
|
|
289
|
+
const artifacts = artifactsFor(cases.find(testCase => testCase.name === 'declarative')!);
|
|
290
|
+
(() => new ProjectionDefinitionCompiler(artifacts, 'test-sink').compile(
|
|
291
|
+
[DeclarativeProjection, AnotherDeclarativeProjection], []
|
|
292
|
+
)).should.throw("Read model id 'Declarative' has multiple projections.");
|
|
293
|
+
});
|
|
294
|
+
});
|