@cratis/chronicle 0.1.0 → 0.2.1
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/EventStore.ts +49 -19
- package/IEventStore.ts +32 -8
- package/README.md +1 -1
- package/artifacts/DefaultClientArtifactsProvider.ts +14 -0
- package/artifacts/IClientArtifactsProvider.ts +9 -0
- package/compliance/ComplianceContracts.ts +63 -0
- package/compliance/ComplianceMetadata.ts +19 -0
- package/compliance/ComplianceMetadataResolver.ts +51 -0
- package/compliance/ComplianceMetadataType.ts +36 -0
- package/compliance/index.ts +7 -0
- package/compliance/pii.ts +115 -0
- package/connection/ChronicleConnection.ts +332 -216
- package/connection/ChronicleConnectionString.ts +327 -1
- package/connection/ChronicleServices.ts +48 -1
- package/connection/Guid.ts +2 -4
- package/connection/TokenProvider.ts +128 -6
- package/dist/EventStore.d.ts +20 -8
- package/dist/EventStore.d.ts.map +1 -1
- package/dist/EventStore.js +34 -12
- package/dist/EventStore.js.map +1 -1
- package/dist/IEventStore.d.ts +26 -8
- package/dist/IEventStore.d.ts.map +1 -1
- package/dist/artifacts/DefaultClientArtifactsProvider.d.ts +5 -0
- package/dist/artifacts/DefaultClientArtifactsProvider.d.ts.map +1 -1
- package/dist/artifacts/DefaultClientArtifactsProvider.js +11 -0
- package/dist/artifacts/DefaultClientArtifactsProvider.js.map +1 -1
- package/dist/artifacts/IClientArtifactsProvider.d.ts +6 -0
- package/dist/artifacts/IClientArtifactsProvider.d.ts.map +1 -1
- package/dist/auditing/Causation.d.ts.map +1 -0
- package/dist/auditing/Causation.js.map +1 -0
- package/dist/auditing/CausationManager.d.ts.map +1 -0
- package/dist/auditing/CausationManager.js.map +1 -0
- package/dist/auditing/CausationType.d.ts.map +1 -0
- package/dist/auditing/CausationType.js.map +1 -0
- package/dist/auditing/ICausationManager.d.ts.map +1 -0
- package/dist/auditing/ICausationManager.js.map +1 -0
- package/dist/auditing/index.d.ts.map +1 -0
- package/dist/auditing/index.js.map +1 -0
- package/dist/compliance/ComplianceContracts.d.ts +56 -0
- package/dist/compliance/ComplianceContracts.d.ts.map +1 -0
- package/dist/compliance/ComplianceContracts.js +25 -0
- package/dist/compliance/ComplianceContracts.js.map +1 -0
- package/dist/compliance/ComplianceMetadata.d.ts +15 -0
- package/dist/compliance/ComplianceMetadata.d.ts.map +1 -0
- package/dist/compliance/ComplianceMetadata.js +4 -0
- package/dist/compliance/ComplianceMetadata.js.map +1 -0
- package/dist/compliance/ComplianceMetadataResolver.d.ts +27 -0
- package/dist/compliance/ComplianceMetadataResolver.d.ts.map +1 -0
- package/dist/compliance/ComplianceMetadataResolver.js +45 -0
- package/dist/compliance/ComplianceMetadataResolver.js.map +1 -0
- package/dist/compliance/ComplianceMetadataType.d.ts +24 -0
- package/dist/compliance/ComplianceMetadataType.d.ts.map +1 -0
- package/dist/compliance/ComplianceMetadataType.js +32 -0
- package/dist/compliance/ComplianceMetadataType.js.map +1 -0
- package/dist/compliance/index.d.ts +5 -0
- package/dist/compliance/index.d.ts.map +1 -0
- package/dist/compliance/index.js +6 -0
- package/dist/compliance/index.js.map +1 -0
- package/dist/compliance/pii.d.ts +69 -0
- package/dist/compliance/pii.d.ts.map +1 -0
- package/dist/compliance/pii.js +106 -0
- package/dist/compliance/pii.js.map +1 -0
- package/dist/connection/ChronicleConnection.d.ts +52 -78
- package/dist/connection/ChronicleConnection.d.ts.map +1 -1
- package/dist/connection/ChronicleConnection.js +154 -130
- package/dist/connection/ChronicleConnection.js.map +1 -1
- package/dist/connection/ChronicleConnectionString.d.ts +78 -1
- package/dist/connection/ChronicleConnectionString.d.ts.map +1 -1
- package/dist/connection/ChronicleConnectionString.js +251 -1
- package/dist/connection/ChronicleConnectionString.js.map +1 -1
- package/dist/connection/ChronicleServices.d.ts +28 -1
- package/dist/connection/ChronicleServices.d.ts.map +1 -1
- package/dist/connection/Guid.d.ts.map +1 -1
- package/dist/connection/Guid.js +2 -4
- package/dist/connection/Guid.js.map +1 -1
- package/dist/connection/TokenProvider.d.ts +37 -3
- package/dist/connection/TokenProvider.d.ts.map +1 -1
- package/dist/connection/TokenProvider.js +95 -1
- package/dist/connection/TokenProvider.js.map +1 -1
- package/dist/correlation/CorrelationId.d.ts.map +1 -0
- package/dist/correlation/CorrelationId.js.map +1 -0
- package/dist/correlation/CorrelationIdManager.d.ts.map +1 -0
- package/dist/correlation/CorrelationIdManager.js.map +1 -0
- package/dist/correlation/ICorrelationIdAccessor.d.ts.map +1 -0
- package/dist/correlation/ICorrelationIdAccessor.js.map +1 -0
- package/dist/correlation/ICorrelationIdSetter.d.ts.map +1 -0
- package/dist/correlation/ICorrelationIdSetter.js.map +1 -0
- package/dist/correlation/index.d.ts.map +1 -0
- package/dist/correlation/index.js.map +1 -0
- package/dist/eventSequences/AppendError.d.ts.map +1 -0
- package/dist/eventSequences/AppendError.js.map +1 -0
- package/dist/eventSequences/AppendOptions.d.ts +14 -0
- package/dist/eventSequences/AppendOptions.d.ts.map +1 -0
- package/dist/eventSequences/AppendOptions.js.map +1 -0
- package/dist/eventSequences/AppendResult.d.ts.map +1 -0
- package/dist/eventSequences/AppendResult.js.map +1 -0
- package/dist/eventSequences/ConcurrencyScope.d.ts +19 -0
- package/dist/eventSequences/ConcurrencyScope.d.ts.map +1 -0
- package/dist/eventSequences/ConcurrencyScope.js +4 -0
- package/dist/eventSequences/ConcurrencyScope.js.map +1 -0
- package/dist/eventSequences/ConstraintViolation.d.ts.map +1 -0
- package/dist/eventSequences/ConstraintViolation.js.map +1 -0
- package/dist/eventSequences/EventForEventSourceId.d.ts +10 -0
- package/dist/eventSequences/EventForEventSourceId.d.ts.map +1 -0
- package/dist/eventSequences/EventForEventSourceId.js +4 -0
- package/dist/eventSequences/EventForEventSourceId.js.map +1 -0
- package/dist/eventSequences/EventLog.d.ts +12 -0
- package/dist/eventSequences/EventLog.d.ts.map +1 -0
- package/dist/eventSequences/EventLog.js +14 -0
- package/dist/eventSequences/EventLog.js.map +1 -0
- package/dist/eventSequences/EventSequence.d.ts +34 -0
- package/dist/eventSequences/EventSequence.d.ts.map +1 -0
- package/dist/eventSequences/EventSequence.js +365 -0
- package/dist/eventSequences/EventSequence.js.map +1 -0
- package/dist/eventSequences/EventSequenceId.d.ts.map +1 -0
- package/dist/eventSequences/EventSequenceId.js.map +1 -0
- package/dist/eventSequences/EventSequenceNumber.d.ts +26 -0
- package/dist/eventSequences/EventSequenceNumber.d.ts.map +1 -0
- package/dist/eventSequences/EventSequenceNumber.js +36 -0
- package/dist/eventSequences/EventSequenceNumber.js.map +1 -0
- package/dist/eventSequences/IEventLog.d.ts.map +1 -0
- package/dist/eventSequences/IEventLog.js.map +1 -0
- package/dist/eventSequences/IEventSequence.d.ts +51 -0
- package/dist/eventSequences/IEventSequence.d.ts.map +1 -0
- package/dist/eventSequences/IEventSequence.js.map +1 -0
- package/dist/eventSequences/ITransactionalEventSequence.d.ts +21 -0
- package/dist/eventSequences/ITransactionalEventSequence.d.ts.map +1 -0
- package/dist/eventSequences/ITransactionalEventSequence.js +4 -0
- package/dist/eventSequences/ITransactionalEventSequence.js.map +1 -0
- package/dist/eventSequences/TransactionalEventSequence.d.ts +19 -0
- package/dist/eventSequences/TransactionalEventSequence.d.ts.map +1 -0
- package/dist/eventSequences/TransactionalEventSequence.js +28 -0
- package/dist/eventSequences/TransactionalEventSequence.js.map +1 -0
- package/dist/eventSequences/index.d.ts +15 -0
- package/dist/eventSequences/index.d.ts.map +1 -0
- package/dist/eventSequences/index.js +8 -0
- package/dist/eventSequences/index.js.map +1 -0
- package/dist/eventStoreSubscriptions/EventStoreSubscriptionBuilder.d.ts +20 -0
- package/dist/eventStoreSubscriptions/EventStoreSubscriptionBuilder.d.ts.map +1 -0
- package/dist/eventStoreSubscriptions/EventStoreSubscriptionBuilder.js +41 -0
- package/dist/eventStoreSubscriptions/EventStoreSubscriptionBuilder.js.map +1 -0
- package/dist/eventStoreSubscriptions/EventStoreSubscriptionDefinition.d.ts +12 -0
- package/dist/eventStoreSubscriptions/EventStoreSubscriptionDefinition.d.ts.map +1 -0
- package/dist/eventStoreSubscriptions/EventStoreSubscriptionDefinition.js +16 -0
- package/dist/eventStoreSubscriptions/EventStoreSubscriptionDefinition.js.map +1 -0
- package/dist/eventStoreSubscriptions/EventStoreSubscriptionId.d.ts +10 -0
- package/dist/eventStoreSubscriptions/EventStoreSubscriptionId.d.ts.map +1 -0
- package/dist/eventStoreSubscriptions/EventStoreSubscriptionId.js +16 -0
- package/dist/eventStoreSubscriptions/EventStoreSubscriptionId.js.map +1 -0
- package/dist/eventStoreSubscriptions/EventStoreSubscriptions.d.ts +21 -0
- package/dist/eventStoreSubscriptions/EventStoreSubscriptions.d.ts.map +1 -0
- package/dist/eventStoreSubscriptions/EventStoreSubscriptions.js +60 -0
- package/dist/eventStoreSubscriptions/EventStoreSubscriptions.js.map +1 -0
- package/dist/eventStoreSubscriptions/IEventStoreSubscriptionBuilder.d.ts +20 -0
- package/dist/eventStoreSubscriptions/IEventStoreSubscriptionBuilder.d.ts.map +1 -0
- package/dist/eventStoreSubscriptions/IEventStoreSubscriptionBuilder.js +4 -0
- package/dist/eventStoreSubscriptions/IEventStoreSubscriptionBuilder.js.map +1 -0
- package/dist/eventStoreSubscriptions/IEventStoreSubscriptions.d.ts +21 -0
- package/dist/eventStoreSubscriptions/IEventStoreSubscriptions.d.ts.map +1 -0
- package/dist/eventStoreSubscriptions/IEventStoreSubscriptions.js +4 -0
- package/dist/eventStoreSubscriptions/IEventStoreSubscriptions.js.map +1 -0
- package/dist/eventStoreSubscriptions/contracts.d.ts +71 -0
- package/dist/eventStoreSubscriptions/contracts.d.ts.map +1 -0
- package/dist/eventStoreSubscriptions/contracts.js +310 -0
- package/dist/eventStoreSubscriptions/contracts.js.map +1 -0
- package/dist/eventStoreSubscriptions/index.d.ts +7 -0
- package/dist/eventStoreSubscriptions/index.d.ts.map +1 -0
- package/dist/eventStoreSubscriptions/index.js +7 -0
- package/dist/eventStoreSubscriptions/index.js.map +1 -0
- package/dist/events/AppendedEvent.d.ts.map +1 -0
- package/dist/events/AppendedEvent.js.map +1 -0
- package/dist/events/CausationEntry.d.ts.map +1 -0
- package/dist/events/CausationEntry.js.map +1 -0
- package/dist/events/EventContext.d.ts +20 -0
- package/dist/events/EventContext.d.ts.map +1 -0
- package/dist/events/EventContext.js.map +1 -0
- package/dist/events/EventType.d.ts.map +1 -0
- package/dist/events/EventType.js.map +1 -0
- package/dist/events/EventTypeGeneration.d.ts.map +1 -0
- package/dist/events/EventTypeGeneration.js.map +1 -0
- package/dist/events/EventTypeId.d.ts.map +1 -0
- package/dist/events/EventTypeId.js.map +1 -0
- package/dist/events/EventTypes.d.ts +35 -0
- package/dist/events/EventTypes.d.ts.map +1 -0
- package/dist/events/EventTypes.js +157 -0
- package/dist/events/EventTypes.js.map +1 -0
- package/dist/events/IEventTypes.d.ts.map +1 -0
- package/dist/events/IEventTypes.js.map +1 -0
- package/dist/events/constraints/ConstraintBuilder.d.ts.map +1 -0
- package/dist/events/constraints/ConstraintBuilder.js.map +1 -0
- package/dist/events/constraints/ConstraintId.d.ts.map +1 -0
- package/dist/events/constraints/ConstraintId.js.map +1 -0
- package/dist/events/constraints/Constraints.d.ts.map +1 -0
- package/dist/events/constraints/Constraints.js.map +1 -0
- package/dist/events/constraints/IConstraint.d.ts.map +1 -0
- package/dist/events/constraints/IConstraint.js.map +1 -0
- package/dist/events/constraints/IConstraintBuilder.d.ts.map +1 -0
- package/dist/events/constraints/IConstraintBuilder.js.map +1 -0
- package/dist/events/constraints/IConstraints.d.ts.map +1 -0
- package/dist/events/constraints/IConstraints.js.map +1 -0
- package/dist/events/constraints/IUniqueConstraintBuilder.d.ts +45 -0
- package/dist/events/constraints/IUniqueConstraintBuilder.d.ts.map +1 -0
- package/dist/events/constraints/IUniqueConstraintBuilder.js.map +1 -0
- package/dist/events/constraints/UniqueConstraintBuilder.d.ts +36 -0
- package/dist/events/constraints/UniqueConstraintBuilder.d.ts.map +1 -0
- package/dist/events/constraints/UniqueConstraintBuilder.js +61 -0
- package/dist/events/constraints/UniqueConstraintBuilder.js.map +1 -0
- package/dist/events/constraints/constraint.d.ts.map +1 -0
- package/dist/events/constraints/constraint.js.map +1 -0
- package/dist/events/constraints/index.d.ts.map +1 -0
- package/dist/events/constraints/index.js.map +1 -0
- package/dist/events/eventTypeDecorator.d.ts +71 -0
- package/dist/events/eventTypeDecorator.d.ts.map +1 -0
- package/dist/events/eventTypeDecorator.js +86 -0
- package/dist/events/eventTypeDecorator.js.map +1 -0
- package/dist/events/index.d.ts +13 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +10 -0
- package/dist/events/index.js.map +1 -0
- package/dist/events/migrations/EventMigrationBuilder.d.ts +16 -0
- package/dist/events/migrations/EventMigrationBuilder.d.ts.map +1 -0
- package/dist/events/migrations/EventMigrationBuilder.js +27 -0
- package/dist/events/migrations/EventMigrationBuilder.js.map +1 -0
- package/dist/events/migrations/EventMigrationPropertyBuilder.d.ts +20 -0
- package/dist/events/migrations/EventMigrationPropertyBuilder.d.ts.map +1 -0
- package/dist/events/migrations/EventMigrationPropertyBuilder.js +54 -0
- package/dist/events/migrations/EventMigrationPropertyBuilder.js.map +1 -0
- package/dist/events/migrations/EventTypeMigrators.d.ts +21 -0
- package/dist/events/migrations/EventTypeMigrators.d.ts.map +1 -0
- package/dist/events/migrations/EventTypeMigrators.js +41 -0
- package/dist/events/migrations/EventTypeMigrators.js.map +1 -0
- package/dist/events/migrations/IEventMigrationBuilder.d.ts +12 -0
- package/dist/events/migrations/IEventMigrationBuilder.d.ts.map +1 -0
- package/dist/events/migrations/IEventMigrationBuilder.js +4 -0
- package/dist/events/migrations/IEventMigrationBuilder.js.map +1 -0
- package/dist/events/migrations/IEventMigrationPropertyBuilder.d.ts +37 -0
- package/dist/events/migrations/IEventMigrationPropertyBuilder.d.ts.map +1 -0
- package/dist/events/migrations/IEventMigrationPropertyBuilder.js +4 -0
- package/dist/events/migrations/IEventMigrationPropertyBuilder.js.map +1 -0
- package/dist/events/migrations/IEventTypeMigration.d.ts +17 -0
- package/dist/events/migrations/IEventTypeMigration.d.ts.map +1 -0
- package/dist/events/migrations/IEventTypeMigration.js +4 -0
- package/dist/events/migrations/IEventTypeMigration.js.map +1 -0
- package/dist/events/migrations/IEventTypeMigrators.d.ts +17 -0
- package/dist/events/migrations/IEventTypeMigrators.d.ts.map +1 -0
- package/dist/events/migrations/IEventTypeMigrators.js +4 -0
- package/dist/events/migrations/IEventTypeMigrators.js.map +1 -0
- package/dist/events/migrations/InvalidMigrationGenerationGap.d.ts +7 -0
- package/dist/events/migrations/InvalidMigrationGenerationGap.d.ts.map +1 -0
- package/dist/events/migrations/InvalidMigrationGenerationGap.js +12 -0
- package/dist/events/migrations/InvalidMigrationGenerationGap.js.map +1 -0
- package/dist/events/migrations/eventTypeMigration.d.ts +33 -0
- package/dist/events/migrations/eventTypeMigration.d.ts.map +1 -0
- package/dist/events/migrations/eventTypeMigration.js +52 -0
- package/dist/events/migrations/eventTypeMigration.js.map +1 -0
- package/dist/events/migrations/index.d.ts +11 -0
- package/dist/events/migrations/index.d.ts.map +1 -0
- package/dist/events/migrations/index.js +8 -0
- package/dist/events/migrations/index.js.map +1 -0
- package/dist/identity/IIdentityProvider.d.ts.map +1 -0
- package/dist/identity/IIdentityProvider.js.map +1 -0
- package/dist/identity/Identity.d.ts.map +1 -0
- package/dist/identity/Identity.js.map +1 -0
- package/dist/identity/IdentityProvider.d.ts.map +1 -0
- package/dist/identity/IdentityProvider.js.map +1 -0
- package/dist/identity/index.d.ts.map +1 -0
- package/dist/identity/index.js.map +1 -0
- package/dist/index.d.ts +38 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +38 -11
- package/dist/index.js.map +1 -1
- package/dist/jobs/IJobs.d.ts +41 -0
- package/dist/jobs/IJobs.d.ts.map +1 -0
- package/dist/jobs/IJobs.js +4 -0
- package/dist/jobs/IJobs.js.map +1 -0
- package/dist/jobs/JobId.d.ts +17 -0
- package/dist/jobs/JobId.d.ts.map +1 -0
- package/dist/jobs/JobId.js +25 -0
- package/dist/jobs/JobId.js.map +1 -0
- package/dist/jobs/Jobs.d.ts +35 -0
- package/dist/jobs/Jobs.d.ts.map +1 -0
- package/dist/jobs/Jobs.js +71 -0
- package/dist/jobs/Jobs.js.map +1 -0
- package/dist/jobs/index.d.ts +4 -0
- package/dist/jobs/index.d.ts.map +1 -0
- package/dist/jobs/index.js +5 -0
- package/dist/jobs/index.js.map +1 -0
- package/dist/observation/ObserverId.d.ts.map +1 -0
- package/dist/observation/ObserverId.js.map +1 -0
- package/dist/observation/ObserverRunningState.d.ts.map +1 -0
- package/dist/observation/ObserverRunningState.js.map +1 -0
- package/dist/observation/index.d.ts.map +1 -0
- package/dist/observation/index.js.map +1 -0
- package/dist/projections/IProjections.d.ts.map +1 -0
- package/dist/projections/IProjections.js.map +1 -0
- package/dist/projections/ProjectionId.d.ts.map +1 -0
- package/dist/projections/ProjectionId.js.map +1 -0
- package/dist/projections/Projections.d.ts.map +1 -0
- package/dist/projections/Projections.js +441 -0
- package/dist/projections/Projections.js.map +1 -0
- package/dist/projections/declarative/AllSetBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/AllSetBuilder.js.map +1 -0
- package/dist/projections/declarative/FromBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/FromBuilder.js.map +1 -0
- package/dist/projections/declarative/FromEveryBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/FromEveryBuilder.js.map +1 -0
- package/dist/projections/declarative/IAddBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/IAddBuilder.js.map +1 -0
- package/dist/projections/declarative/IAddChildBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/IAddChildBuilder.js.map +1 -0
- package/dist/projections/declarative/IAllSetBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/IAllSetBuilder.js.map +1 -0
- package/dist/projections/declarative/IChildrenBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/IChildrenBuilder.js.map +1 -0
- package/dist/projections/declarative/ICompositeKeyBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/ICompositeKeyBuilder.js.map +1 -0
- package/dist/projections/declarative/IFromBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/IFromBuilder.js.map +1 -0
- package/dist/projections/declarative/IFromEveryBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/IFromEveryBuilder.js.map +1 -0
- package/dist/projections/declarative/IJoinBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/IJoinBuilder.js.map +1 -0
- package/dist/projections/declarative/INestedBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/INestedBuilder.js.map +1 -0
- package/dist/projections/declarative/IProjectionBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/IProjectionBuilder.js.map +1 -0
- package/dist/projections/declarative/IProjectionBuilderFor.d.ts.map +1 -0
- package/dist/projections/declarative/IProjectionBuilderFor.js.map +1 -0
- package/dist/projections/declarative/IProjectionFor.d.ts.map +1 -0
- package/dist/projections/declarative/IProjectionFor.js.map +1 -0
- package/dist/projections/declarative/IReadModelPropertiesBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/IReadModelPropertiesBuilder.js.map +1 -0
- package/dist/projections/declarative/IRemovedWithBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/IRemovedWithBuilder.js.map +1 -0
- package/dist/projections/declarative/IRemovedWithJoinBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/IRemovedWithJoinBuilder.js.map +1 -0
- package/dist/projections/declarative/ISetBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/ISetBuilder.js.map +1 -0
- package/dist/projections/declarative/ISubtractBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/ISubtractBuilder.js.map +1 -0
- package/dist/projections/declarative/JoinBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/JoinBuilder.js.map +1 -0
- package/dist/projections/declarative/ProjectionBuilderFor.d.ts.map +1 -0
- package/dist/projections/declarative/ProjectionBuilderFor.js +223 -0
- package/dist/projections/declarative/ProjectionBuilderFor.js.map +1 -0
- package/dist/projections/declarative/RemovedWithBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/RemovedWithBuilder.js.map +1 -0
- package/dist/projections/declarative/RemovedWithJoinBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/RemovedWithJoinBuilder.js.map +1 -0
- package/dist/projections/declarative/SetBuilder.d.ts.map +1 -0
- package/dist/projections/declarative/SetBuilder.js.map +1 -0
- package/dist/projections/declarative/index.d.ts.map +1 -0
- package/dist/projections/declarative/index.js.map +1 -0
- package/dist/projections/declarative/projection.d.ts.map +1 -0
- package/dist/projections/declarative/projection.js.map +1 -0
- package/dist/projections/index.d.ts.map +1 -0
- package/dist/projections/index.js.map +1 -0
- package/dist/projections/modelBound/FromEventMetadata.d.ts.map +1 -0
- package/dist/projections/modelBound/FromEventMetadata.js.map +1 -0
- package/dist/projections/modelBound/FromEventOptions.d.ts.map +1 -0
- package/dist/projections/modelBound/FromEventOptions.js.map +1 -0
- package/dist/projections/modelBound/addFrom.d.ts.map +1 -0
- package/dist/projections/modelBound/addFrom.js.map +1 -0
- package/dist/projections/modelBound/childrenFrom.d.ts.map +1 -0
- package/dist/projections/modelBound/childrenFrom.js.map +1 -0
- package/dist/projections/modelBound/clearWith.d.ts.map +1 -0
- package/dist/projections/modelBound/clearWith.js.map +1 -0
- package/dist/projections/modelBound/count.d.ts.map +1 -0
- package/dist/projections/modelBound/count.js.map +1 -0
- package/dist/projections/modelBound/decrement.d.ts.map +1 -0
- package/dist/projections/modelBound/decrement.js.map +1 -0
- package/dist/projections/modelBound/fromEvent.d.ts.map +1 -0
- package/dist/projections/modelBound/fromEvent.js.map +1 -0
- package/dist/projections/modelBound/fromEvery.d.ts.map +1 -0
- package/dist/projections/modelBound/fromEvery.js.map +1 -0
- package/dist/projections/modelBound/increment.d.ts.map +1 -0
- package/dist/projections/modelBound/increment.js.map +1 -0
- package/dist/projections/modelBound/index.d.ts.map +1 -0
- package/dist/projections/modelBound/index.js.map +1 -0
- package/dist/projections/modelBound/join.d.ts.map +1 -0
- package/dist/projections/modelBound/join.js.map +1 -0
- package/dist/projections/modelBound/nested.d.ts.map +1 -0
- package/dist/projections/modelBound/nested.js.map +1 -0
- package/dist/projections/modelBound/notRewindable.d.ts.map +1 -0
- package/dist/projections/modelBound/notRewindable.js.map +1 -0
- package/dist/projections/modelBound/removedWith.d.ts.map +1 -0
- package/dist/projections/modelBound/removedWith.js.map +1 -0
- package/dist/projections/modelBound/removedWithJoin.d.ts.map +1 -0
- package/dist/projections/modelBound/removedWithJoin.js.map +1 -0
- package/dist/projections/modelBound/setFrom.d.ts.map +1 -0
- package/dist/projections/modelBound/setFrom.js.map +1 -0
- package/dist/projections/modelBound/setFromContext.d.ts +26 -0
- package/dist/projections/modelBound/setFromContext.d.ts.map +1 -0
- package/dist/projections/modelBound/setFromContext.js.map +1 -0
- package/dist/projections/modelBound/setValue.d.ts.map +1 -0
- package/dist/projections/modelBound/setValue.js.map +1 -0
- package/dist/projections/modelBound/subtractFrom.d.ts.map +1 -0
- package/dist/projections/modelBound/subtractFrom.js.map +1 -0
- package/dist/reactors/IReactors.d.ts.map +1 -0
- package/dist/reactors/IReactors.js.map +1 -0
- package/dist/reactors/ReactorId.d.ts.map +1 -0
- package/dist/reactors/ReactorId.js.map +1 -0
- package/dist/reactors/Reactors.d.ts.map +1 -0
- package/dist/reactors/Reactors.js +280 -0
- package/dist/reactors/Reactors.js.map +1 -0
- package/dist/reactors/index.d.ts.map +1 -0
- package/dist/reactors/index.js.map +1 -0
- package/dist/reactors/reactor.d.ts.map +1 -0
- package/dist/reactors/reactor.js.map +1 -0
- package/dist/readModels/IMaterializedReadModels.d.ts +23 -0
- package/dist/readModels/IMaterializedReadModels.d.ts.map +1 -0
- package/dist/readModels/IMaterializedReadModels.js +4 -0
- package/dist/readModels/IMaterializedReadModels.js.map +1 -0
- package/dist/readModels/IReadModels.d.ts +75 -0
- package/dist/readModels/IReadModels.d.ts.map +1 -0
- package/dist/readModels/IReadModels.js +4 -0
- package/dist/readModels/IReadModels.js.map +1 -0
- package/dist/readModels/MaterializedReadModels.d.ts +25 -0
- package/dist/readModels/MaterializedReadModels.d.ts.map +1 -0
- package/dist/readModels/MaterializedReadModels.js +125 -0
- package/dist/readModels/MaterializedReadModels.js.map +1 -0
- package/dist/readModels/ReadModelChangeset.d.ts +14 -0
- package/dist/readModels/ReadModelChangeset.d.ts.map +1 -0
- package/dist/readModels/ReadModelChangeset.js +4 -0
- package/dist/readModels/ReadModelChangeset.js.map +1 -0
- package/dist/readModels/ReadModelId.d.ts.map +1 -0
- package/dist/readModels/ReadModelId.js.map +1 -0
- package/dist/readModels/ReadModelSnapshot.d.ts +15 -0
- package/dist/readModels/ReadModelSnapshot.d.ts.map +1 -0
- package/dist/readModels/ReadModelSnapshot.js +4 -0
- package/dist/readModels/ReadModelSnapshot.js.map +1 -0
- package/dist/readModels/ReadModels.d.ts +42 -0
- package/dist/readModels/ReadModels.d.ts.map +1 -0
- package/dist/readModels/ReadModels.js +270 -0
- package/dist/readModels/ReadModels.js.map +1 -0
- package/dist/readModels/index.d.ts +10 -0
- package/dist/readModels/index.d.ts.map +1 -0
- package/dist/readModels/index.js +7 -0
- package/dist/readModels/index.js.map +1 -0
- package/dist/readModels/readModel.d.ts +33 -0
- package/dist/readModels/readModel.d.ts.map +1 -0
- package/dist/readModels/readModel.js +44 -0
- package/dist/readModels/readModel.js.map +1 -0
- package/dist/reducers/IReducers.d.ts.map +1 -0
- package/dist/reducers/IReducers.js.map +1 -0
- package/dist/reducers/ReducerId.d.ts.map +1 -0
- package/dist/reducers/ReducerId.js.map +1 -0
- package/dist/reducers/Reducers.d.ts +41 -0
- package/dist/reducers/Reducers.d.ts.map +1 -0
- package/dist/reducers/Reducers.js +344 -0
- package/dist/reducers/Reducers.js.map +1 -0
- package/dist/reducers/index.d.ts.map +1 -0
- package/dist/reducers/index.js.map +1 -0
- package/dist/reducers/reducer.d.ts.map +1 -0
- package/dist/reducers/reducer.js.map +1 -0
- package/dist/schemas/JsonSchema.d.ts.map +1 -0
- package/dist/schemas/JsonSchema.js.map +1 -0
- package/dist/schemas/JsonSchemaGenerator.d.ts +35 -0
- package/dist/schemas/JsonSchemaGenerator.d.ts.map +1 -0
- package/dist/schemas/JsonSchemaGenerator.js +156 -0
- package/dist/schemas/JsonSchemaGenerator.js.map +1 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/jsonSchemaProperty.d.ts.map +1 -0
- package/dist/schemas/jsonSchemaProperty.js.map +1 -0
- package/dist/seeding/EventSeeding.d.ts +40 -0
- package/dist/seeding/EventSeeding.d.ts.map +1 -0
- package/dist/seeding/EventSeeding.js +150 -0
- package/dist/seeding/EventSeeding.js.map +1 -0
- package/dist/seeding/ICanSeedEvents.d.ts +12 -0
- package/dist/seeding/ICanSeedEvents.d.ts.map +1 -0
- package/dist/seeding/ICanSeedEvents.js +4 -0
- package/dist/seeding/ICanSeedEvents.js.map +1 -0
- package/dist/seeding/IEventSeeding.d.ts +17 -0
- package/dist/seeding/IEventSeeding.d.ts.map +1 -0
- package/dist/seeding/IEventSeeding.js +4 -0
- package/dist/seeding/IEventSeeding.js.map +1 -0
- package/dist/seeding/IEventSeedingBuilder.d.ts +30 -0
- package/dist/seeding/IEventSeedingBuilder.d.ts.map +1 -0
- package/dist/seeding/IEventSeedingBuilder.js +4 -0
- package/dist/seeding/IEventSeedingBuilder.js.map +1 -0
- package/dist/seeding/IEventSeedingScopeBuilder.d.ts +20 -0
- package/dist/seeding/IEventSeedingScopeBuilder.d.ts.map +1 -0
- package/dist/seeding/IEventSeedingScopeBuilder.js +4 -0
- package/dist/seeding/IEventSeedingScopeBuilder.js.map +1 -0
- package/dist/seeding/index.d.ts +8 -0
- package/dist/seeding/index.d.ts.map +1 -0
- package/dist/seeding/index.js +5 -0
- package/dist/seeding/index.js.map +1 -0
- package/dist/seeding/seeder.d.ts +28 -0
- package/dist/seeding/seeder.d.ts.map +1 -0
- package/dist/seeding/seeder.js +37 -0
- package/dist/seeding/seeder.js.map +1 -0
- package/dist/transactions/IUnitOfWork.d.ts +45 -0
- package/dist/transactions/IUnitOfWork.d.ts.map +1 -0
- package/dist/transactions/IUnitOfWork.js +4 -0
- package/dist/transactions/IUnitOfWork.js.map +1 -0
- package/dist/transactions/IUnitOfWorkManager.d.ts +29 -0
- package/dist/transactions/IUnitOfWorkManager.d.ts.map +1 -0
- package/dist/transactions/IUnitOfWorkManager.js +4 -0
- package/dist/transactions/IUnitOfWorkManager.js.map +1 -0
- package/dist/transactions/NoUnitOfWorkHasBeenStarted.d.ts +10 -0
- package/dist/transactions/NoUnitOfWorkHasBeenStarted.d.ts.map +1 -0
- package/dist/transactions/NoUnitOfWorkHasBeenStarted.js +14 -0
- package/dist/transactions/NoUnitOfWorkHasBeenStarted.js.map +1 -0
- package/dist/transactions/UnitOfWork.d.ts +36 -0
- package/dist/transactions/UnitOfWork.d.ts.map +1 -0
- package/dist/transactions/UnitOfWork.js +102 -0
- package/dist/transactions/UnitOfWork.js.map +1 -0
- package/dist/transactions/UnitOfWorkManager.d.ts +25 -0
- package/dist/transactions/UnitOfWorkManager.d.ts.map +1 -0
- package/dist/transactions/UnitOfWorkManager.js +57 -0
- package/dist/transactions/UnitOfWorkManager.js.map +1 -0
- package/dist/transactions/index.d.ts +6 -0
- package/dist/transactions/index.d.ts.map +1 -0
- package/dist/transactions/index.js +6 -0
- package/dist/transactions/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/DecoratorType.d.ts +7 -1
- package/dist/types/DecoratorType.d.ts.map +1 -1
- package/dist/types/DecoratorType.js +6 -0
- package/dist/types/DecoratorType.js.map +1 -1
- package/dist/types/TypeIntrospector.d.ts +11 -1
- package/dist/types/TypeIntrospector.d.ts.map +1 -1
- package/dist/types/TypeIntrospector.js +29 -3
- package/dist/types/TypeIntrospector.js.map +1 -1
- package/dist/webhooks/IWebhook.d.ts +12 -0
- package/dist/webhooks/IWebhook.d.ts.map +1 -0
- package/dist/webhooks/IWebhook.js +4 -0
- package/dist/webhooks/IWebhook.js.map +1 -0
- package/dist/webhooks/IWebhookDefinitionBuilder.d.ts +58 -0
- package/dist/webhooks/IWebhookDefinitionBuilder.d.ts.map +1 -0
- package/dist/webhooks/IWebhookDefinitionBuilder.js +4 -0
- package/dist/webhooks/IWebhookDefinitionBuilder.js.map +1 -0
- package/dist/webhooks/IWebhooks.d.ts +34 -0
- package/dist/webhooks/IWebhooks.d.ts.map +1 -0
- package/dist/webhooks/IWebhooks.js +4 -0
- package/dist/webhooks/IWebhooks.js.map +1 -0
- package/dist/webhooks/WebhookDefinitionBuilder.d.ts +49 -0
- package/dist/webhooks/WebhookDefinitionBuilder.d.ts.map +1 -0
- package/dist/webhooks/WebhookDefinitionBuilder.js +122 -0
- package/dist/webhooks/WebhookDefinitionBuilder.js.map +1 -0
- package/dist/webhooks/WebhookId.d.ts +10 -0
- package/dist/webhooks/WebhookId.d.ts.map +1 -0
- package/dist/webhooks/WebhookId.js +16 -0
- package/dist/webhooks/WebhookId.js.map +1 -0
- package/dist/webhooks/WebhookTargetUrl.d.ts +10 -0
- package/dist/webhooks/WebhookTargetUrl.d.ts.map +1 -0
- package/dist/webhooks/WebhookTargetUrl.js +16 -0
- package/dist/webhooks/WebhookTargetUrl.js.map +1 -0
- package/dist/webhooks/Webhooks.d.ts +38 -0
- package/dist/webhooks/Webhooks.d.ts.map +1 -0
- package/dist/webhooks/Webhooks.js +92 -0
- package/dist/webhooks/Webhooks.js.map +1 -0
- package/dist/webhooks/index.d.ts +10 -0
- package/dist/webhooks/index.d.ts.map +1 -0
- package/dist/webhooks/index.js +8 -0
- package/dist/webhooks/index.js.map +1 -0
- package/dist/webhooks/webhook.d.ts +41 -0
- package/dist/webhooks/webhook.d.ts.map +1 -0
- package/dist/webhooks/webhook.js +44 -0
- package/dist/webhooks/webhook.js.map +1 -0
- package/eventSequences/AppendOptions.ts +19 -0
- package/eventSequences/ConcurrencyScope.ts +27 -0
- package/eventSequences/EventForEventSourceId.ts +13 -0
- package/eventSequences/EventLog.ts +23 -0
- package/eventSequences/EventSequence.ts +413 -0
- package/eventSequences/EventSequenceNumber.ts +38 -0
- package/eventSequences/IEventSequence.ts +60 -0
- package/eventSequences/ITransactionalEventSequence.ts +26 -0
- package/eventSequences/TransactionalEventSequence.ts +34 -0
- package/eventSequences/index.ts +17 -0
- package/eventStoreSubscriptions/EventStoreSubscriptionBuilder.ts +52 -0
- package/eventStoreSubscriptions/EventStoreSubscriptionDefinition.ts +16 -0
- package/eventStoreSubscriptions/EventStoreSubscriptionId.ts +14 -0
- package/eventStoreSubscriptions/EventStoreSubscriptions.ts +74 -0
- package/eventStoreSubscriptions/IEventStoreSubscriptionBuilder.ts +24 -0
- package/eventStoreSubscriptions/IEventStoreSubscriptions.ts +29 -0
- package/eventStoreSubscriptions/contracts.ts +372 -0
- package/eventStoreSubscriptions/index.ts +9 -0
- package/events/EventContext.ts +28 -0
- package/events/EventTypes.ts +186 -0
- package/events/constraints/IUniqueConstraintBuilder.ts +53 -0
- package/events/constraints/UniqueConstraintBuilder.ts +85 -0
- package/events/eventTypeDecorator.ts +147 -0
- package/events/index.ts +15 -0
- package/events/migrations/EventMigrationBuilder.ts +31 -0
- package/events/migrations/EventMigrationPropertyBuilder.ts +77 -0
- package/events/migrations/EventTypeMigrators.ts +48 -0
- package/events/migrations/IEventMigrationBuilder.ts +15 -0
- package/events/migrations/IEventMigrationPropertyBuilder.ts +57 -0
- package/events/migrations/IEventTypeMigration.ts +21 -0
- package/events/migrations/IEventTypeMigrators.ts +21 -0
- package/events/migrations/InvalidMigrationGenerationGap.ts +19 -0
- package/events/migrations/eventTypeMigration.ts +82 -0
- package/events/migrations/index.ts +13 -0
- package/index.ts +61 -11
- package/jobs/IJobs.ts +49 -0
- package/jobs/JobId.ts +25 -0
- package/jobs/Jobs.ts +81 -0
- package/jobs/index.ts +6 -0
- package/package.json +115 -4
- package/projections/Projections.ts +518 -0
- package/projections/declarative/ProjectionBuilderFor.ts +294 -0
- package/projections/modelBound/setFromContext.ts +59 -0
- package/reactors/Reactors.ts +321 -0
- package/readModels/IMaterializedReadModels.ts +27 -0
- package/readModels/IReadModels.ts +87 -0
- package/readModels/MaterializedReadModels.ts +151 -0
- package/readModels/ReadModelChangeset.ts +19 -0
- package/readModels/ReadModelSnapshot.ts +21 -0
- package/readModels/ReadModels.ts +333 -0
- package/readModels/index.ts +12 -0
- package/readModels/readModel.ts +67 -0
- package/reducers/Reducers.ts +395 -0
- package/schemas/JsonSchemaGenerator.ts +184 -0
- package/seeding/EventSeeding.ts +176 -0
- package/seeding/ICanSeedEvents.ts +15 -0
- package/seeding/IEventSeeding.ts +21 -0
- package/seeding/IEventSeedingBuilder.ts +35 -0
- package/seeding/IEventSeedingScopeBuilder.ts +23 -0
- package/seeding/index.ts +10 -0
- package/seeding/seeder.ts +54 -0
- package/transactions/IUnitOfWork.ts +56 -0
- package/transactions/IUnitOfWorkManager.ts +36 -0
- package/transactions/NoUnitOfWorkHasBeenStarted.ts +14 -0
- package/transactions/UnitOfWork.ts +132 -0
- package/transactions/UnitOfWorkManager.ts +70 -0
- package/transactions/index.ts +8 -0
- package/types/DecoratorType.ts +10 -1
- package/types/TypeIntrospector.ts +32 -3
- package/webhooks/IWebhook.ts +15 -0
- package/webhooks/IWebhookDefinitionBuilder.ts +68 -0
- package/webhooks/IWebhooks.ts +45 -0
- package/webhooks/WebhookDefinitionBuilder.ts +144 -0
- package/webhooks/WebhookId.ts +14 -0
- package/webhooks/WebhookTargetUrl.ts +14 -0
- package/webhooks/Webhooks.ts +125 -0
- package/webhooks/index.ts +12 -0
- package/webhooks/webhook.ts +83 -0
- package/EventSequences/AppendOptions.ts +0 -15
- package/EventSequences/EventLog.ts +0 -21
- package/EventSequences/EventSequence.ts +0 -370
- package/EventSequences/EventSequenceNumber.ts +0 -38
- package/EventSequences/IEventSequence.ts +0 -47
- package/EventSequences/index.ts +0 -13
- package/Events/Constraints/IUniqueConstraintBuilder.ts +0 -52
- package/Events/Constraints/UniqueConstraintBuilder.ts +0 -97
- package/Events/EventContext.ts +0 -28
- package/Events/EventTypes.ts +0 -95
- package/Events/eventTypeDecorator.ts +0 -147
- package/Events/index.ts +0 -14
- package/Projections/Projections.ts +0 -518
- package/Projections/declarative/ProjectionBuilderFor.ts +0 -294
- package/Projections/modelBound/setFromContext.ts +0 -59
- package/Reactors/Reactors.ts +0 -321
- package/ReadModels/index.ts +0 -6
- package/ReadModels/readModel.ts +0 -89
- package/Reducers/Reducers.ts +0 -386
- package/Schemas/JsonSchemaGenerator.ts +0 -124
- package/dist/Auditing/Causation.d.ts.map +0 -1
- package/dist/Auditing/Causation.js.map +0 -1
- package/dist/Auditing/CausationManager.d.ts.map +0 -1
- package/dist/Auditing/CausationManager.js.map +0 -1
- package/dist/Auditing/CausationType.d.ts.map +0 -1
- package/dist/Auditing/CausationType.js.map +0 -1
- package/dist/Auditing/ICausationManager.d.ts.map +0 -1
- package/dist/Auditing/ICausationManager.js.map +0 -1
- package/dist/Auditing/index.d.ts.map +0 -1
- package/dist/Auditing/index.js.map +0 -1
- package/dist/Correlation/CorrelationId.d.ts.map +0 -1
- package/dist/Correlation/CorrelationId.js.map +0 -1
- package/dist/Correlation/CorrelationIdManager.d.ts.map +0 -1
- package/dist/Correlation/CorrelationIdManager.js.map +0 -1
- package/dist/Correlation/ICorrelationIdAccessor.d.ts.map +0 -1
- package/dist/Correlation/ICorrelationIdAccessor.js.map +0 -1
- package/dist/Correlation/ICorrelationIdSetter.d.ts.map +0 -1
- package/dist/Correlation/ICorrelationIdSetter.js.map +0 -1
- package/dist/Correlation/index.d.ts.map +0 -1
- package/dist/Correlation/index.js.map +0 -1
- package/dist/EventSequences/AppendError.d.ts.map +0 -1
- package/dist/EventSequences/AppendError.js.map +0 -1
- package/dist/EventSequences/AppendOptions.d.ts +0 -11
- package/dist/EventSequences/AppendOptions.d.ts.map +0 -1
- package/dist/EventSequences/AppendOptions.js.map +0 -1
- package/dist/EventSequences/AppendResult.d.ts.map +0 -1
- package/dist/EventSequences/AppendResult.js.map +0 -1
- package/dist/EventSequences/ConstraintViolation.d.ts.map +0 -1
- package/dist/EventSequences/ConstraintViolation.js.map +0 -1
- package/dist/EventSequences/EventLog.d.ts +0 -11
- package/dist/EventSequences/EventLog.d.ts.map +0 -1
- package/dist/EventSequences/EventLog.js +0 -14
- package/dist/EventSequences/EventLog.js.map +0 -1
- package/dist/EventSequences/EventSequence.d.ts +0 -27
- package/dist/EventSequences/EventSequence.d.ts.map +0 -1
- package/dist/EventSequences/EventSequence.js +0 -336
- package/dist/EventSequences/EventSequence.js.map +0 -1
- package/dist/EventSequences/EventSequenceId.d.ts.map +0 -1
- package/dist/EventSequences/EventSequenceId.js.map +0 -1
- package/dist/EventSequences/EventSequenceNumber.d.ts +0 -26
- package/dist/EventSequences/EventSequenceNumber.d.ts.map +0 -1
- package/dist/EventSequences/EventSequenceNumber.js +0 -36
- package/dist/EventSequences/EventSequenceNumber.js.map +0 -1
- package/dist/EventSequences/IEventLog.d.ts.map +0 -1
- package/dist/EventSequences/IEventLog.js.map +0 -1
- package/dist/EventSequences/IEventSequence.d.ts +0 -40
- package/dist/EventSequences/IEventSequence.d.ts.map +0 -1
- package/dist/EventSequences/IEventSequence.js.map +0 -1
- package/dist/EventSequences/index.d.ts +0 -11
- package/dist/EventSequences/index.d.ts.map +0 -1
- package/dist/EventSequences/index.js +0 -7
- package/dist/EventSequences/index.js.map +0 -1
- package/dist/Events/AppendedEvent.d.ts.map +0 -1
- package/dist/Events/AppendedEvent.js.map +0 -1
- package/dist/Events/CausationEntry.d.ts.map +0 -1
- package/dist/Events/CausationEntry.js.map +0 -1
- package/dist/Events/Constraints/ConstraintBuilder.d.ts.map +0 -1
- package/dist/Events/Constraints/ConstraintBuilder.js.map +0 -1
- package/dist/Events/Constraints/ConstraintId.d.ts.map +0 -1
- package/dist/Events/Constraints/ConstraintId.js.map +0 -1
- package/dist/Events/Constraints/Constraints.d.ts.map +0 -1
- package/dist/Events/Constraints/Constraints.js.map +0 -1
- package/dist/Events/Constraints/IConstraint.d.ts.map +0 -1
- package/dist/Events/Constraints/IConstraint.js.map +0 -1
- package/dist/Events/Constraints/IConstraintBuilder.d.ts.map +0 -1
- package/dist/Events/Constraints/IConstraintBuilder.js.map +0 -1
- package/dist/Events/Constraints/IConstraints.d.ts.map +0 -1
- package/dist/Events/Constraints/IConstraints.js.map +0 -1
- package/dist/Events/Constraints/IUniqueConstraintBuilder.d.ts +0 -44
- package/dist/Events/Constraints/IUniqueConstraintBuilder.d.ts.map +0 -1
- package/dist/Events/Constraints/IUniqueConstraintBuilder.js.map +0 -1
- package/dist/Events/Constraints/UniqueConstraintBuilder.d.ts +0 -42
- package/dist/Events/Constraints/UniqueConstraintBuilder.d.ts.map +0 -1
- package/dist/Events/Constraints/UniqueConstraintBuilder.js +0 -72
- package/dist/Events/Constraints/UniqueConstraintBuilder.js.map +0 -1
- package/dist/Events/Constraints/constraint.d.ts.map +0 -1
- package/dist/Events/Constraints/constraint.js.map +0 -1
- package/dist/Events/Constraints/index.d.ts.map +0 -1
- package/dist/Events/Constraints/index.js.map +0 -1
- package/dist/Events/EventContext.d.ts +0 -20
- package/dist/Events/EventContext.d.ts.map +0 -1
- package/dist/Events/EventContext.js.map +0 -1
- package/dist/Events/EventType.d.ts.map +0 -1
- package/dist/Events/EventType.js.map +0 -1
- package/dist/Events/EventTypeGeneration.d.ts.map +0 -1
- package/dist/Events/EventTypeGeneration.js.map +0 -1
- package/dist/Events/EventTypeId.d.ts.map +0 -1
- package/dist/Events/EventTypeId.js.map +0 -1
- package/dist/Events/EventTypes.d.ts +0 -33
- package/dist/Events/EventTypes.d.ts.map +0 -1
- package/dist/Events/EventTypes.js +0 -83
- package/dist/Events/EventTypes.js.map +0 -1
- package/dist/Events/IEventTypes.d.ts.map +0 -1
- package/dist/Events/IEventTypes.js.map +0 -1
- package/dist/Events/eventTypeDecorator.d.ts +0 -71
- package/dist/Events/eventTypeDecorator.d.ts.map +0 -1
- package/dist/Events/eventTypeDecorator.js +0 -86
- package/dist/Events/eventTypeDecorator.js.map +0 -1
- package/dist/Events/index.d.ts +0 -12
- package/dist/Events/index.d.ts.map +0 -1
- package/dist/Events/index.js +0 -9
- package/dist/Events/index.js.map +0 -1
- package/dist/Identity/IIdentityProvider.d.ts.map +0 -1
- package/dist/Identity/IIdentityProvider.js.map +0 -1
- package/dist/Identity/Identity.d.ts.map +0 -1
- package/dist/Identity/Identity.js.map +0 -1
- package/dist/Identity/IdentityProvider.d.ts.map +0 -1
- package/dist/Identity/IdentityProvider.js.map +0 -1
- package/dist/Identity/index.d.ts.map +0 -1
- package/dist/Identity/index.js.map +0 -1
- package/dist/Observation/ObserverId.d.ts.map +0 -1
- package/dist/Observation/ObserverId.js.map +0 -1
- package/dist/Observation/ObserverRunningState.d.ts.map +0 -1
- package/dist/Observation/ObserverRunningState.js.map +0 -1
- package/dist/Observation/index.d.ts.map +0 -1
- package/dist/Observation/index.js.map +0 -1
- package/dist/Projections/IProjections.d.ts.map +0 -1
- package/dist/Projections/IProjections.js.map +0 -1
- package/dist/Projections/ProjectionId.d.ts.map +0 -1
- package/dist/Projections/ProjectionId.js.map +0 -1
- package/dist/Projections/Projections.d.ts.map +0 -1
- package/dist/Projections/Projections.js +0 -441
- package/dist/Projections/Projections.js.map +0 -1
- package/dist/Projections/declarative/AllSetBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/AllSetBuilder.js.map +0 -1
- package/dist/Projections/declarative/FromBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/FromBuilder.js.map +0 -1
- package/dist/Projections/declarative/FromEveryBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/FromEveryBuilder.js.map +0 -1
- package/dist/Projections/declarative/IAddBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/IAddBuilder.js.map +0 -1
- package/dist/Projections/declarative/IAddChildBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/IAddChildBuilder.js.map +0 -1
- package/dist/Projections/declarative/IAllSetBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/IAllSetBuilder.js.map +0 -1
- package/dist/Projections/declarative/IChildrenBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/IChildrenBuilder.js.map +0 -1
- package/dist/Projections/declarative/ICompositeKeyBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/ICompositeKeyBuilder.js.map +0 -1
- package/dist/Projections/declarative/IFromBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/IFromBuilder.js.map +0 -1
- package/dist/Projections/declarative/IFromEveryBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/IFromEveryBuilder.js.map +0 -1
- package/dist/Projections/declarative/IJoinBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/IJoinBuilder.js.map +0 -1
- package/dist/Projections/declarative/INestedBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/INestedBuilder.js.map +0 -1
- package/dist/Projections/declarative/IProjectionBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/IProjectionBuilder.js.map +0 -1
- package/dist/Projections/declarative/IProjectionBuilderFor.d.ts.map +0 -1
- package/dist/Projections/declarative/IProjectionBuilderFor.js.map +0 -1
- package/dist/Projections/declarative/IProjectionFor.d.ts.map +0 -1
- package/dist/Projections/declarative/IProjectionFor.js.map +0 -1
- package/dist/Projections/declarative/IReadModelPropertiesBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/IReadModelPropertiesBuilder.js.map +0 -1
- package/dist/Projections/declarative/IRemovedWithBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/IRemovedWithBuilder.js.map +0 -1
- package/dist/Projections/declarative/IRemovedWithJoinBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/IRemovedWithJoinBuilder.js.map +0 -1
- package/dist/Projections/declarative/ISetBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/ISetBuilder.js.map +0 -1
- package/dist/Projections/declarative/ISubtractBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/ISubtractBuilder.js.map +0 -1
- package/dist/Projections/declarative/JoinBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/JoinBuilder.js.map +0 -1
- package/dist/Projections/declarative/ProjectionBuilderFor.d.ts.map +0 -1
- package/dist/Projections/declarative/ProjectionBuilderFor.js +0 -223
- package/dist/Projections/declarative/ProjectionBuilderFor.js.map +0 -1
- package/dist/Projections/declarative/RemovedWithBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/RemovedWithBuilder.js.map +0 -1
- package/dist/Projections/declarative/RemovedWithJoinBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/RemovedWithJoinBuilder.js.map +0 -1
- package/dist/Projections/declarative/SetBuilder.d.ts.map +0 -1
- package/dist/Projections/declarative/SetBuilder.js.map +0 -1
- package/dist/Projections/declarative/index.d.ts.map +0 -1
- package/dist/Projections/declarative/index.js.map +0 -1
- package/dist/Projections/declarative/projection.d.ts.map +0 -1
- package/dist/Projections/declarative/projection.js.map +0 -1
- package/dist/Projections/index.d.ts.map +0 -1
- package/dist/Projections/index.js.map +0 -1
- package/dist/Projections/modelBound/FromEventMetadata.d.ts.map +0 -1
- package/dist/Projections/modelBound/FromEventMetadata.js.map +0 -1
- package/dist/Projections/modelBound/FromEventOptions.d.ts.map +0 -1
- package/dist/Projections/modelBound/FromEventOptions.js.map +0 -1
- package/dist/Projections/modelBound/addFrom.d.ts.map +0 -1
- package/dist/Projections/modelBound/addFrom.js.map +0 -1
- package/dist/Projections/modelBound/childrenFrom.d.ts.map +0 -1
- package/dist/Projections/modelBound/childrenFrom.js.map +0 -1
- package/dist/Projections/modelBound/clearWith.d.ts.map +0 -1
- package/dist/Projections/modelBound/clearWith.js.map +0 -1
- package/dist/Projections/modelBound/count.d.ts.map +0 -1
- package/dist/Projections/modelBound/count.js.map +0 -1
- package/dist/Projections/modelBound/decrement.d.ts.map +0 -1
- package/dist/Projections/modelBound/decrement.js.map +0 -1
- package/dist/Projections/modelBound/fromEvent.d.ts.map +0 -1
- package/dist/Projections/modelBound/fromEvent.js.map +0 -1
- package/dist/Projections/modelBound/fromEvery.d.ts.map +0 -1
- package/dist/Projections/modelBound/fromEvery.js.map +0 -1
- package/dist/Projections/modelBound/increment.d.ts.map +0 -1
- package/dist/Projections/modelBound/increment.js.map +0 -1
- package/dist/Projections/modelBound/index.d.ts.map +0 -1
- package/dist/Projections/modelBound/index.js.map +0 -1
- package/dist/Projections/modelBound/join.d.ts.map +0 -1
- package/dist/Projections/modelBound/join.js.map +0 -1
- package/dist/Projections/modelBound/nested.d.ts.map +0 -1
- package/dist/Projections/modelBound/nested.js.map +0 -1
- package/dist/Projections/modelBound/notRewindable.d.ts.map +0 -1
- package/dist/Projections/modelBound/notRewindable.js.map +0 -1
- package/dist/Projections/modelBound/removedWith.d.ts.map +0 -1
- package/dist/Projections/modelBound/removedWith.js.map +0 -1
- package/dist/Projections/modelBound/removedWithJoin.d.ts.map +0 -1
- package/dist/Projections/modelBound/removedWithJoin.js.map +0 -1
- package/dist/Projections/modelBound/setFrom.d.ts.map +0 -1
- package/dist/Projections/modelBound/setFrom.js.map +0 -1
- package/dist/Projections/modelBound/setFromContext.d.ts +0 -26
- package/dist/Projections/modelBound/setFromContext.d.ts.map +0 -1
- package/dist/Projections/modelBound/setFromContext.js.map +0 -1
- package/dist/Projections/modelBound/setValue.d.ts.map +0 -1
- package/dist/Projections/modelBound/setValue.js.map +0 -1
- package/dist/Projections/modelBound/subtractFrom.d.ts.map +0 -1
- package/dist/Projections/modelBound/subtractFrom.js.map +0 -1
- package/dist/Reactors/IReactors.d.ts.map +0 -1
- package/dist/Reactors/IReactors.js.map +0 -1
- package/dist/Reactors/ReactorId.d.ts.map +0 -1
- package/dist/Reactors/ReactorId.js.map +0 -1
- package/dist/Reactors/Reactors.d.ts.map +0 -1
- package/dist/Reactors/Reactors.js +0 -280
- package/dist/Reactors/Reactors.js.map +0 -1
- package/dist/Reactors/index.d.ts.map +0 -1
- package/dist/Reactors/index.js.map +0 -1
- package/dist/Reactors/reactor.d.ts.map +0 -1
- package/dist/Reactors/reactor.js.map +0 -1
- package/dist/ReadModels/ReadModelId.d.ts.map +0 -1
- package/dist/ReadModels/ReadModelId.js.map +0 -1
- package/dist/ReadModels/index.d.ts +0 -4
- package/dist/ReadModels/index.d.ts.map +0 -1
- package/dist/ReadModels/index.js +0 -5
- package/dist/ReadModels/index.js.map +0 -1
- package/dist/ReadModels/readModel.d.ts +0 -33
- package/dist/ReadModels/readModel.d.ts.map +0 -1
- package/dist/ReadModels/readModel.js +0 -64
- package/dist/ReadModels/readModel.js.map +0 -1
- package/dist/Reducers/IReducers.d.ts.map +0 -1
- package/dist/Reducers/IReducers.js.map +0 -1
- package/dist/Reducers/ReducerId.d.ts.map +0 -1
- package/dist/Reducers/ReducerId.js.map +0 -1
- package/dist/Reducers/Reducers.d.ts +0 -40
- package/dist/Reducers/Reducers.d.ts.map +0 -1
- package/dist/Reducers/Reducers.js +0 -337
- package/dist/Reducers/Reducers.js.map +0 -1
- package/dist/Reducers/index.d.ts.map +0 -1
- package/dist/Reducers/index.js.map +0 -1
- package/dist/Reducers/reducer.d.ts.map +0 -1
- package/dist/Reducers/reducer.js.map +0 -1
- package/dist/Schemas/JsonSchema.d.ts.map +0 -1
- package/dist/Schemas/JsonSchema.js.map +0 -1
- package/dist/Schemas/JsonSchemaGenerator.d.ts +0 -26
- package/dist/Schemas/JsonSchemaGenerator.d.ts.map +0 -1
- package/dist/Schemas/JsonSchemaGenerator.js +0 -104
- package/dist/Schemas/JsonSchemaGenerator.js.map +0 -1
- package/dist/Schemas/index.d.ts.map +0 -1
- package/dist/Schemas/index.js.map +0 -1
- package/dist/Schemas/jsonSchemaProperty.d.ts.map +0 -1
- package/dist/Schemas/jsonSchemaProperty.js.map +0 -1
- /package/{Auditing → auditing}/Causation.ts +0 -0
- /package/{Auditing → auditing}/CausationManager.ts +0 -0
- /package/{Auditing → auditing}/CausationType.ts +0 -0
- /package/{Auditing → auditing}/ICausationManager.ts +0 -0
- /package/{Auditing → auditing}/index.ts +0 -0
- /package/{Correlation → correlation}/CorrelationId.ts +0 -0
- /package/{Correlation → correlation}/CorrelationIdManager.ts +0 -0
- /package/{Correlation → correlation}/ICorrelationIdAccessor.ts +0 -0
- /package/{Correlation → correlation}/ICorrelationIdSetter.ts +0 -0
- /package/{Correlation → correlation}/index.ts +0 -0
- /package/dist/{Auditing → auditing}/Causation.d.ts +0 -0
- /package/dist/{Auditing → auditing}/Causation.js +0 -0
- /package/dist/{Auditing → auditing}/CausationManager.d.ts +0 -0
- /package/dist/{Auditing → auditing}/CausationManager.js +0 -0
- /package/dist/{Auditing → auditing}/CausationType.d.ts +0 -0
- /package/dist/{Auditing → auditing}/CausationType.js +0 -0
- /package/dist/{Auditing → auditing}/ICausationManager.d.ts +0 -0
- /package/dist/{Auditing → auditing}/ICausationManager.js +0 -0
- /package/dist/{Auditing → auditing}/index.d.ts +0 -0
- /package/dist/{Auditing → auditing}/index.js +0 -0
- /package/dist/{Correlation → correlation}/CorrelationId.d.ts +0 -0
- /package/dist/{Correlation → correlation}/CorrelationId.js +0 -0
- /package/dist/{Correlation → correlation}/CorrelationIdManager.d.ts +0 -0
- /package/dist/{Correlation → correlation}/CorrelationIdManager.js +0 -0
- /package/dist/{Correlation → correlation}/ICorrelationIdAccessor.d.ts +0 -0
- /package/dist/{Correlation → correlation}/ICorrelationIdAccessor.js +0 -0
- /package/dist/{Correlation → correlation}/ICorrelationIdSetter.d.ts +0 -0
- /package/dist/{Correlation → correlation}/ICorrelationIdSetter.js +0 -0
- /package/dist/{Correlation → correlation}/index.d.ts +0 -0
- /package/dist/{Correlation → correlation}/index.js +0 -0
- /package/dist/{EventSequences → eventSequences}/AppendError.d.ts +0 -0
- /package/dist/{EventSequences → eventSequences}/AppendError.js +0 -0
- /package/dist/{EventSequences → eventSequences}/AppendOptions.js +0 -0
- /package/dist/{EventSequences → eventSequences}/AppendResult.d.ts +0 -0
- /package/dist/{EventSequences → eventSequences}/AppendResult.js +0 -0
- /package/dist/{EventSequences → eventSequences}/ConstraintViolation.d.ts +0 -0
- /package/dist/{EventSequences → eventSequences}/ConstraintViolation.js +0 -0
- /package/dist/{EventSequences → eventSequences}/EventSequenceId.d.ts +0 -0
- /package/dist/{EventSequences → eventSequences}/EventSequenceId.js +0 -0
- /package/dist/{EventSequences → eventSequences}/IEventLog.d.ts +0 -0
- /package/dist/{EventSequences → eventSequences}/IEventLog.js +0 -0
- /package/dist/{EventSequences → eventSequences}/IEventSequence.js +0 -0
- /package/dist/{Events → events}/AppendedEvent.d.ts +0 -0
- /package/dist/{Events → events}/AppendedEvent.js +0 -0
- /package/dist/{Events → events}/CausationEntry.d.ts +0 -0
- /package/dist/{Events → events}/CausationEntry.js +0 -0
- /package/dist/{Events → events}/EventContext.js +0 -0
- /package/dist/{Events → events}/EventType.d.ts +0 -0
- /package/dist/{Events → events}/EventType.js +0 -0
- /package/dist/{Events → events}/EventTypeGeneration.d.ts +0 -0
- /package/dist/{Events → events}/EventTypeGeneration.js +0 -0
- /package/dist/{Events → events}/EventTypeId.d.ts +0 -0
- /package/dist/{Events → events}/EventTypeId.js +0 -0
- /package/dist/{Events → events}/IEventTypes.d.ts +0 -0
- /package/dist/{Events → events}/IEventTypes.js +0 -0
- /package/dist/{Events/Constraints → events/constraints}/ConstraintBuilder.d.ts +0 -0
- /package/dist/{Events/Constraints → events/constraints}/ConstraintBuilder.js +0 -0
- /package/dist/{Events/Constraints → events/constraints}/ConstraintId.d.ts +0 -0
- /package/dist/{Events/Constraints → events/constraints}/ConstraintId.js +0 -0
- /package/dist/{Events/Constraints → events/constraints}/Constraints.d.ts +0 -0
- /package/dist/{Events/Constraints → events/constraints}/Constraints.js +0 -0
- /package/dist/{Events/Constraints → events/constraints}/IConstraint.d.ts +0 -0
- /package/dist/{Events/Constraints → events/constraints}/IConstraint.js +0 -0
- /package/dist/{Events/Constraints → events/constraints}/IConstraintBuilder.d.ts +0 -0
- /package/dist/{Events/Constraints → events/constraints}/IConstraintBuilder.js +0 -0
- /package/dist/{Events/Constraints → events/constraints}/IConstraints.d.ts +0 -0
- /package/dist/{Events/Constraints → events/constraints}/IConstraints.js +0 -0
- /package/dist/{Events/Constraints → events/constraints}/IUniqueConstraintBuilder.js +0 -0
- /package/dist/{Events/Constraints → events/constraints}/constraint.d.ts +0 -0
- /package/dist/{Events/Constraints → events/constraints}/constraint.js +0 -0
- /package/dist/{Events/Constraints → events/constraints}/index.d.ts +0 -0
- /package/dist/{Events/Constraints → events/constraints}/index.js +0 -0
- /package/dist/{Identity → identity}/IIdentityProvider.d.ts +0 -0
- /package/dist/{Identity → identity}/IIdentityProvider.js +0 -0
- /package/dist/{Identity → identity}/Identity.d.ts +0 -0
- /package/dist/{Identity → identity}/Identity.js +0 -0
- /package/dist/{Identity → identity}/IdentityProvider.d.ts +0 -0
- /package/dist/{Identity → identity}/IdentityProvider.js +0 -0
- /package/dist/{Identity → identity}/index.d.ts +0 -0
- /package/dist/{Identity → identity}/index.js +0 -0
- /package/dist/{Observation → observation}/ObserverId.d.ts +0 -0
- /package/dist/{Observation → observation}/ObserverId.js +0 -0
- /package/dist/{Observation → observation}/ObserverRunningState.d.ts +0 -0
- /package/dist/{Observation → observation}/ObserverRunningState.js +0 -0
- /package/dist/{Observation → observation}/index.d.ts +0 -0
- /package/dist/{Observation → observation}/index.js +0 -0
- /package/dist/{Projections → projections}/IProjections.d.ts +0 -0
- /package/dist/{Projections → projections}/IProjections.js +0 -0
- /package/dist/{Projections → projections}/ProjectionId.d.ts +0 -0
- /package/dist/{Projections → projections}/ProjectionId.js +0 -0
- /package/dist/{Projections → projections}/Projections.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/AllSetBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/AllSetBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/FromBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/FromBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/FromEveryBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/FromEveryBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/IAddBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/IAddBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/IAddChildBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/IAddChildBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/IAllSetBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/IAllSetBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/IChildrenBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/IChildrenBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/ICompositeKeyBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/ICompositeKeyBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/IFromBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/IFromBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/IFromEveryBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/IFromEveryBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/IJoinBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/IJoinBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/INestedBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/INestedBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/IProjectionBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/IProjectionBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/IProjectionBuilderFor.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/IProjectionBuilderFor.js +0 -0
- /package/dist/{Projections → projections}/declarative/IProjectionFor.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/IProjectionFor.js +0 -0
- /package/dist/{Projections → projections}/declarative/IReadModelPropertiesBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/IReadModelPropertiesBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/IRemovedWithBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/IRemovedWithBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/IRemovedWithJoinBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/IRemovedWithJoinBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/ISetBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/ISetBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/ISubtractBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/ISubtractBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/JoinBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/JoinBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/ProjectionBuilderFor.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/RemovedWithBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/RemovedWithBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/RemovedWithJoinBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/RemovedWithJoinBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/SetBuilder.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/SetBuilder.js +0 -0
- /package/dist/{Projections → projections}/declarative/index.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/index.js +0 -0
- /package/dist/{Projections → projections}/declarative/projection.d.ts +0 -0
- /package/dist/{Projections → projections}/declarative/projection.js +0 -0
- /package/dist/{Projections → projections}/index.d.ts +0 -0
- /package/dist/{Projections → projections}/index.js +0 -0
- /package/dist/{Projections → projections}/modelBound/FromEventMetadata.d.ts +0 -0
- /package/dist/{Projections → projections}/modelBound/FromEventMetadata.js +0 -0
- /package/dist/{Projections → projections}/modelBound/FromEventOptions.d.ts +0 -0
- /package/dist/{Projections → projections}/modelBound/FromEventOptions.js +0 -0
- /package/dist/{Projections → projections}/modelBound/addFrom.d.ts +0 -0
- /package/dist/{Projections → projections}/modelBound/addFrom.js +0 -0
- /package/dist/{Projections → projections}/modelBound/childrenFrom.d.ts +0 -0
- /package/dist/{Projections → projections}/modelBound/childrenFrom.js +0 -0
- /package/dist/{Projections → projections}/modelBound/clearWith.d.ts +0 -0
- /package/dist/{Projections → projections}/modelBound/clearWith.js +0 -0
- /package/dist/{Projections → projections}/modelBound/count.d.ts +0 -0
- /package/dist/{Projections → projections}/modelBound/count.js +0 -0
- /package/dist/{Projections → projections}/modelBound/decrement.d.ts +0 -0
- /package/dist/{Projections → projections}/modelBound/decrement.js +0 -0
- /package/dist/{Projections → projections}/modelBound/fromEvent.d.ts +0 -0
- /package/dist/{Projections → projections}/modelBound/fromEvent.js +0 -0
- /package/dist/{Projections → projections}/modelBound/fromEvery.d.ts +0 -0
- /package/dist/{Projections → projections}/modelBound/fromEvery.js +0 -0
- /package/dist/{Projections → projections}/modelBound/increment.d.ts +0 -0
- /package/dist/{Projections → projections}/modelBound/increment.js +0 -0
- /package/dist/{Projections → projections}/modelBound/index.d.ts +0 -0
- /package/dist/{Projections → projections}/modelBound/index.js +0 -0
- /package/dist/{Projections → projections}/modelBound/join.d.ts +0 -0
- /package/dist/{Projections → projections}/modelBound/join.js +0 -0
- /package/dist/{Projections → projections}/modelBound/nested.d.ts +0 -0
- /package/dist/{Projections → projections}/modelBound/nested.js +0 -0
- /package/dist/{Projections → projections}/modelBound/notRewindable.d.ts +0 -0
- /package/dist/{Projections → projections}/modelBound/notRewindable.js +0 -0
- /package/dist/{Projections → projections}/modelBound/removedWith.d.ts +0 -0
- /package/dist/{Projections → projections}/modelBound/removedWith.js +0 -0
- /package/dist/{Projections → projections}/modelBound/removedWithJoin.d.ts +0 -0
- /package/dist/{Projections → projections}/modelBound/removedWithJoin.js +0 -0
- /package/dist/{Projections → projections}/modelBound/setFrom.d.ts +0 -0
- /package/dist/{Projections → projections}/modelBound/setFrom.js +0 -0
- /package/dist/{Projections → projections}/modelBound/setFromContext.js +0 -0
- /package/dist/{Projections → projections}/modelBound/setValue.d.ts +0 -0
- /package/dist/{Projections → projections}/modelBound/setValue.js +0 -0
- /package/dist/{Projections → projections}/modelBound/subtractFrom.d.ts +0 -0
- /package/dist/{Projections → projections}/modelBound/subtractFrom.js +0 -0
- /package/dist/{Reactors → reactors}/IReactors.d.ts +0 -0
- /package/dist/{Reactors → reactors}/IReactors.js +0 -0
- /package/dist/{Reactors → reactors}/ReactorId.d.ts +0 -0
- /package/dist/{Reactors → reactors}/ReactorId.js +0 -0
- /package/dist/{Reactors → reactors}/Reactors.d.ts +0 -0
- /package/dist/{Reactors → reactors}/index.d.ts +0 -0
- /package/dist/{Reactors → reactors}/index.js +0 -0
- /package/dist/{Reactors → reactors}/reactor.d.ts +0 -0
- /package/dist/{Reactors → reactors}/reactor.js +0 -0
- /package/dist/{ReadModels → readModels}/ReadModelId.d.ts +0 -0
- /package/dist/{ReadModels → readModels}/ReadModelId.js +0 -0
- /package/dist/{Reducers → reducers}/IReducers.d.ts +0 -0
- /package/dist/{Reducers → reducers}/IReducers.js +0 -0
- /package/dist/{Reducers → reducers}/ReducerId.d.ts +0 -0
- /package/dist/{Reducers → reducers}/ReducerId.js +0 -0
- /package/dist/{Reducers → reducers}/index.d.ts +0 -0
- /package/dist/{Reducers → reducers}/index.js +0 -0
- /package/dist/{Reducers → reducers}/reducer.d.ts +0 -0
- /package/dist/{Reducers → reducers}/reducer.js +0 -0
- /package/dist/{Schemas → schemas}/JsonSchema.d.ts +0 -0
- /package/dist/{Schemas → schemas}/JsonSchema.js +0 -0
- /package/dist/{Schemas → schemas}/index.d.ts +0 -0
- /package/dist/{Schemas → schemas}/index.js +0 -0
- /package/dist/{Schemas → schemas}/jsonSchemaProperty.d.ts +0 -0
- /package/dist/{Schemas → schemas}/jsonSchemaProperty.js +0 -0
- /package/{EventSequences → eventSequences}/AppendError.ts +0 -0
- /package/{EventSequences → eventSequences}/AppendResult.ts +0 -0
- /package/{EventSequences → eventSequences}/ConstraintViolation.ts +0 -0
- /package/{EventSequences → eventSequences}/EventSequenceId.ts +0 -0
- /package/{EventSequences → eventSequences}/IEventLog.ts +0 -0
- /package/{Events → events}/AppendedEvent.ts +0 -0
- /package/{Events → events}/CausationEntry.ts +0 -0
- /package/{Events → events}/EventType.ts +0 -0
- /package/{Events → events}/EventTypeGeneration.ts +0 -0
- /package/{Events → events}/EventTypeId.ts +0 -0
- /package/{Events → events}/IEventTypes.ts +0 -0
- /package/{Events/Constraints → events/constraints}/ConstraintBuilder.ts +0 -0
- /package/{Events/Constraints → events/constraints}/ConstraintId.ts +0 -0
- /package/{Events/Constraints → events/constraints}/Constraints.ts +0 -0
- /package/{Events/Constraints → events/constraints}/IConstraint.ts +0 -0
- /package/{Events/Constraints → events/constraints}/IConstraintBuilder.ts +0 -0
- /package/{Events/Constraints → events/constraints}/IConstraints.ts +0 -0
- /package/{Events/Constraints → events/constraints}/constraint.ts +0 -0
- /package/{Events/Constraints → events/constraints}/index.ts +0 -0
- /package/{Identity → identity}/IIdentityProvider.ts +0 -0
- /package/{Identity → identity}/Identity.ts +0 -0
- /package/{Identity → identity}/IdentityProvider.ts +0 -0
- /package/{Identity → identity}/index.ts +0 -0
- /package/{Observation → observation}/ObserverId.ts +0 -0
- /package/{Observation → observation}/ObserverRunningState.ts +0 -0
- /package/{Observation → observation}/index.ts +0 -0
- /package/{Projections → projections}/IProjections.ts +0 -0
- /package/{Projections → projections}/ProjectionId.ts +0 -0
- /package/{Projections → projections}/declarative/AllSetBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/FromBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/FromEveryBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/IAddBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/IAddChildBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/IAllSetBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/IChildrenBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/ICompositeKeyBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/IFromBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/IFromEveryBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/IJoinBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/INestedBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/IProjectionBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/IProjectionBuilderFor.ts +0 -0
- /package/{Projections → projections}/declarative/IProjectionFor.ts +0 -0
- /package/{Projections → projections}/declarative/IReadModelPropertiesBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/IRemovedWithBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/IRemovedWithJoinBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/ISetBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/ISubtractBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/JoinBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/RemovedWithBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/RemovedWithJoinBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/SetBuilder.ts +0 -0
- /package/{Projections → projections}/declarative/index.ts +0 -0
- /package/{Projections → projections}/declarative/projection.ts +0 -0
- /package/{Projections → projections}/index.ts +0 -0
- /package/{Projections → projections}/modelBound/FromEventMetadata.ts +0 -0
- /package/{Projections → projections}/modelBound/FromEventOptions.ts +0 -0
- /package/{Projections → projections}/modelBound/addFrom.ts +0 -0
- /package/{Projections → projections}/modelBound/childrenFrom.ts +0 -0
- /package/{Projections → projections}/modelBound/clearWith.ts +0 -0
- /package/{Projections → projections}/modelBound/count.ts +0 -0
- /package/{Projections → projections}/modelBound/decrement.ts +0 -0
- /package/{Projections → projections}/modelBound/fromEvent.ts +0 -0
- /package/{Projections → projections}/modelBound/fromEvery.ts +0 -0
- /package/{Projections → projections}/modelBound/increment.ts +0 -0
- /package/{Projections → projections}/modelBound/index.ts +0 -0
- /package/{Projections → projections}/modelBound/join.ts +0 -0
- /package/{Projections → projections}/modelBound/nested.ts +0 -0
- /package/{Projections → projections}/modelBound/notRewindable.ts +0 -0
- /package/{Projections → projections}/modelBound/removedWith.ts +0 -0
- /package/{Projections → projections}/modelBound/removedWithJoin.ts +0 -0
- /package/{Projections → projections}/modelBound/setFrom.ts +0 -0
- /package/{Projections → projections}/modelBound/setValue.ts +0 -0
- /package/{Projections → projections}/modelBound/subtractFrom.ts +0 -0
- /package/{Reactors → reactors}/IReactors.ts +0 -0
- /package/{Reactors → reactors}/ReactorId.ts +0 -0
- /package/{Reactors → reactors}/index.ts +0 -0
- /package/{Reactors → reactors}/reactor.ts +0 -0
- /package/{ReadModels → readModels}/ReadModelId.ts +0 -0
- /package/{Reducers → reducers}/IReducers.ts +0 -0
- /package/{Reducers → reducers}/ReducerId.ts +0 -0
- /package/{Reducers → reducers}/index.ts +0 -0
- /package/{Reducers → reducers}/reducer.ts +0 -0
- /package/{Schemas → schemas}/JsonSchema.ts +0 -0
- /package/{Schemas → schemas}/index.ts +0 -0
- /package/{Schemas → schemas}/jsonSchemaProperty.ts +0 -0
|
@@ -1,86 +0,0 @@
|
|
|
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 { EventType } from './EventType';
|
|
5
|
-
import { EventTypeId } from './EventTypeId';
|
|
6
|
-
import { EventTypeGeneration } from './EventTypeGeneration';
|
|
7
|
-
import { DecoratorType, TypeDiscoverer, TypeIntrospector } from '../types';
|
|
8
|
-
import { JsonSchemaGenerator } from '../Schemas';
|
|
9
|
-
/** Metadata key used to store event type information on a class. */
|
|
10
|
-
const EVENT_TYPE_METADATA_KEY = 'chronicle:eventType';
|
|
11
|
-
export function eventType(idOrGenerationOrTombstone, generationOrTombstone, tombstone = false) {
|
|
12
|
-
let id = '';
|
|
13
|
-
let generation = EventTypeGeneration.firstValue;
|
|
14
|
-
let isTombstone = false;
|
|
15
|
-
if (typeof idOrGenerationOrTombstone === 'string') {
|
|
16
|
-
id = idOrGenerationOrTombstone;
|
|
17
|
-
if (typeof generationOrTombstone === 'number') {
|
|
18
|
-
generation = generationOrTombstone;
|
|
19
|
-
}
|
|
20
|
-
if (typeof generationOrTombstone === 'boolean') {
|
|
21
|
-
isTombstone = generationOrTombstone;
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
isTombstone = tombstone;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
else if (typeof idOrGenerationOrTombstone === 'number') {
|
|
28
|
-
generation = idOrGenerationOrTombstone;
|
|
29
|
-
if (typeof generationOrTombstone === 'boolean') {
|
|
30
|
-
isTombstone = generationOrTombstone;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
else if (typeof idOrGenerationOrTombstone === 'boolean') {
|
|
34
|
-
isTombstone = idOrGenerationOrTombstone;
|
|
35
|
-
}
|
|
36
|
-
return (target) => {
|
|
37
|
-
const constructor = target;
|
|
38
|
-
const eventTypeId = new EventTypeId(id || constructor.name);
|
|
39
|
-
const eventTypeInstance = new EventType(eventTypeId, new EventTypeGeneration(generation), isTombstone);
|
|
40
|
-
const members = TypeIntrospector.getMembers(constructor);
|
|
41
|
-
const metadata = {
|
|
42
|
-
eventType: eventTypeInstance,
|
|
43
|
-
members,
|
|
44
|
-
schema: JsonSchemaGenerator.generate(constructor, members)
|
|
45
|
-
};
|
|
46
|
-
Reflect.defineMetadata(EVENT_TYPE_METADATA_KEY, metadata, target);
|
|
47
|
-
TypeDiscoverer.default.register(DecoratorType.EventType, constructor, eventTypeId.value);
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Gets the {@link EventType} associated with a class decorated with {@link eventType}.
|
|
52
|
-
* @param target - The class constructor to retrieve the event type for.
|
|
53
|
-
* @returns The associated EventType, or EventType.unknown if not decorated.
|
|
54
|
-
*/
|
|
55
|
-
export function getEventTypeFor(target) {
|
|
56
|
-
return getEventTypeMetadata(target)?.eventType ?? EventType.unknown;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Checks whether a class has been decorated with {@link eventType}.
|
|
60
|
-
* @param target - The class constructor to check.
|
|
61
|
-
* @returns True if the class has an event type decorator; false otherwise.
|
|
62
|
-
*/
|
|
63
|
-
export function hasEventType(target) {
|
|
64
|
-
return getEventTypeMetadata(target) !== undefined;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Gets the metadata associated with a class decorated with {@link eventType}.
|
|
68
|
-
* @param target - The class constructor to retrieve metadata for.
|
|
69
|
-
* @returns The associated metadata, or undefined if not decorated.
|
|
70
|
-
*/
|
|
71
|
-
export function getEventTypeMetadata(target) {
|
|
72
|
-
return Reflect.getMetadata(EVENT_TYPE_METADATA_KEY, target);
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Generates a JSON schema for the provided event type class.
|
|
76
|
-
* @param target - The event class constructor to generate schema for.
|
|
77
|
-
* @returns The generated JSON schema.
|
|
78
|
-
*/
|
|
79
|
-
export function getEventTypeJsonSchemaFor(target) {
|
|
80
|
-
const metadata = getEventTypeMetadata(target);
|
|
81
|
-
if (metadata) {
|
|
82
|
-
return metadata.schema;
|
|
83
|
-
}
|
|
84
|
-
return JsonSchemaGenerator.createEmptySchema(target.name);
|
|
85
|
-
}
|
|
86
|
-
//# sourceMappingURL=eventTypeDecorator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eventTypeDecorator.js","sourceRoot":"","sources":["../../Events/eventTypeDecorator.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC3E,OAAO,EAAc,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAE7D,oEAAoE;AACpE,MAAM,uBAAuB,GAAG,qBAAqB,CAAC;AAgDtD,MAAM,UAAU,SAAS,CACrB,yBAAqD,EACrD,qBAAwC,EACxC,YAAqB,KAAK;IAE1B,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,IAAI,UAAU,GAAG,mBAAmB,CAAC,UAAU,CAAC;IAChD,IAAI,WAAW,GAAG,KAAK,CAAC;IAExB,IAAI,OAAO,yBAAyB,KAAK,QAAQ,EAAE,CAAC;QAChD,EAAE,GAAG,yBAAyB,CAAC;QAC/B,IAAI,OAAO,qBAAqB,KAAK,QAAQ,EAAE,CAAC;YAC5C,UAAU,GAAG,qBAAqB,CAAC;QACvC,CAAC;QACD,IAAI,OAAO,qBAAqB,KAAK,SAAS,EAAE,CAAC;YAC7C,WAAW,GAAG,qBAAqB,CAAC;QACxC,CAAC;aAAM,CAAC;YACJ,WAAW,GAAG,SAAS,CAAC;QAC5B,CAAC;IACL,CAAC;SAAM,IAAI,OAAO,yBAAyB,KAAK,QAAQ,EAAE,CAAC;QACvD,UAAU,GAAG,yBAAyB,CAAC;QACvC,IAAI,OAAO,qBAAqB,KAAK,SAAS,EAAE,CAAC;YAC7C,WAAW,GAAG,qBAAqB,CAAC;QACxC,CAAC;IACL,CAAC;SAAM,IAAI,OAAO,yBAAyB,KAAK,SAAS,EAAE,CAAC;QACxD,WAAW,GAAG,yBAAyB,CAAC;IAC5C,CAAC;IAED,OAAO,CAAC,MAAc,EAAE,EAAE;QACtB,MAAM,WAAW,GAAG,MAAkB,CAAC;QACvC,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC,EAAE,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;QAC5D,MAAM,iBAAiB,GAAG,IAAI,SAAS,CAAC,WAAW,EAAE,IAAI,mBAAmB,CAAC,UAAU,CAAC,EAAE,WAAW,CAAC,CAAC;QACvG,MAAM,OAAO,GAAG,gBAAgB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QACzD,MAAM,QAAQ,GAAsB;YAChC,SAAS,EAAE,iBAAiB;YAC5B,OAAO;YACP,MAAM,EAAE,mBAAmB,CAAC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;SAC7D,CAAC;QACF,OAAO,CAAC,cAAc,CAAC,uBAAuB,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;QAClE,cAAc,CAAC,OAAO,CAAC,QAAQ,CAC3B,aAAa,CAAC,SAAS,EACvB,WAA0B,EAC1B,WAAW,CAAC,KAAK,CACpB,CAAC;IACN,CAAC,CAAC;AACN,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,MAAgB;IAC5C,OAAO,oBAAoB,CAAC,MAAM,CAAC,EAAE,SAAS,IAAI,SAAS,CAAC,OAAO,CAAC;AACxE,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,MAAgB;IACzC,OAAO,oBAAoB,CAAC,MAAM,CAAC,KAAK,SAAS,CAAC;AACtD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,MAAgB;IACjD,OAAO,OAAO,CAAC,WAAW,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAAC;AAChE,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CAAC,MAAgB;IACtD,MAAM,QAAQ,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAC9C,IAAI,QAAQ,EAAE,CAAC;QACX,OAAO,QAAQ,CAAC,MAAM,CAAC;IAC3B,CAAC;IAED,OAAO,mBAAmB,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC9D,CAAC"}
|
package/dist/Events/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export { EventType } from './EventType';
|
|
2
|
-
export { EventTypeId } from './EventTypeId';
|
|
3
|
-
export { EventTypeGeneration } from './EventTypeGeneration';
|
|
4
|
-
export { eventType, getEventTypeFor, hasEventType, getEventTypeMetadata, getEventTypeJsonSchemaFor } from './eventTypeDecorator';
|
|
5
|
-
export type { EventTypeMetadata } from './eventTypeDecorator';
|
|
6
|
-
export type { EventContext } from './EventContext';
|
|
7
|
-
export type { CausationEntry } from './CausationEntry';
|
|
8
|
-
export type { AppendedEvent } from './AppendedEvent';
|
|
9
|
-
export type { IEventTypes } from './IEventTypes';
|
|
10
|
-
export { EventTypes } from './EventTypes';
|
|
11
|
-
export * from './Constraints';
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../Events/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACjI,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,cAAc,eAAe,CAAC"}
|
package/dist/Events/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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 { EventType } from './EventType';
|
|
4
|
-
export { EventTypeId } from './EventTypeId';
|
|
5
|
-
export { EventTypeGeneration } from './EventTypeGeneration';
|
|
6
|
-
export { eventType, getEventTypeFor, hasEventType, getEventTypeMetadata, getEventTypeJsonSchemaFor } from './eventTypeDecorator';
|
|
7
|
-
export { EventTypes } from './EventTypes';
|
|
8
|
-
export * from './Constraints';
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
package/dist/Events/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Events/index.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAMjI,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,cAAc,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IIdentityProvider.d.ts","sourceRoot":"","sources":["../../Identity/IIdentityProvider.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;OAGG;IACH,UAAU,IAAI,QAAQ,CAAC;IAEvB;;;OAGG;IACH,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAE7C;;OAEG;IACH,oBAAoB,IAAI,IAAI,CAAC;CAChC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IIdentityProvider.js","sourceRoot":"","sources":["../../Identity/IIdentityProvider.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Identity.d.ts","sourceRoot":"","sources":["../../Identity/Identity.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,qBAAa,QAAQ;IAwBb,QAAQ,CAAC,OAAO,EAAE,MAAM;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM;IACrB,QAAQ,CAAC,QAAQ,EAAE,MAAM;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,QAAQ;IA1BlC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,MAAM,WAAkF;IAExG;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,OAAO,WAAkF;IAEzG;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,MAAM,WAAgF;IAEtG;;;;;;OAMG;gBAEU,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,QAAQ,GAAE,MAAW,EACrB,UAAU,CAAC,EAAE,QAAQ,YAAA;IAGlC;;;;OAIG;IACH,iBAAiB,IAAI,QAAQ;CAkBhC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Identity.js","sourceRoot":"","sources":["../../Identity/Identity.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG;;;GAGG;AACH,MAAM,OAAO,QAAQ;IAwBJ;IACA;IACA;IACA;IA1Bb;;OAEG;IACH,MAAM,CAAU,MAAM,GAAG,IAAI,QAAQ,CAAC,sCAAsC,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;IAExG;;OAEG;IACH,MAAM,CAAU,OAAO,GAAG,IAAI,QAAQ,CAAC,sCAAsC,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;IAEzG;;OAEG;IACH,MAAM,CAAU,MAAM,GAAG,IAAI,QAAQ,CAAC,sCAAsC,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;IAEtG;;;;;;OAMG;IACH,YACa,OAAe,EACf,IAAY,EACZ,WAAmB,EAAE,EACrB,UAAqB;QAHrB,YAAO,GAAP,OAAO,CAAQ;QACf,SAAI,GAAJ,IAAI,CAAQ;QACZ,aAAQ,GAAR,QAAQ,CAAa;QACrB,eAAU,GAAV,UAAU,CAAW;IAC/B,CAAC;IAEJ;;;;OAIG;IACH,iBAAiB;QACb,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;QAC/B,MAAM,KAAK,GAAe,EAAE,CAAC;QAC7B,IAAI,OAAO,GAAyB,IAAI,CAAC;QACzC,OAAO,OAAO,KAAK,SAAS,EAAE,CAAC;YAC3B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC7B,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBAC1B,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACxB,CAAC;YACD,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC;QACjC,CAAC;QAED,IAAI,MAA4B,CAAC;QACjC,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YACzC,MAAM,GAAG,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QACtF,CAAC;QACD,OAAO,MAAO,CAAC;IACnB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityProvider.d.ts","sourceRoot":"","sources":["../../Identity/IdentityProvider.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD;;GAEG;AACH,qBAAa,gBAAiB,YAAW,iBAAiB;IACtD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAqC;IAE9D,kBAAkB;IAClB,UAAU,IAAI,QAAQ;IAItB,kBAAkB;IAClB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;IAI5C,kBAAkB;IAClB,oBAAoB,IAAI,IAAI;CAG/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityProvider.js","sourceRoot":"","sources":["../../Identity/IdentityProvider.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC;;GAEG;AACH,MAAM,OAAO,gBAAgB;IACR,QAAQ,GAAG,IAAI,iBAAiB,EAAY,CAAC;IAE9D,kBAAkB;IAClB,UAAU;QACN,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,QAAQ,CAAC,MAAM,CAAC;IACvD,CAAC;IAED,kBAAkB;IAClB,kBAAkB,CAAC,QAAkB;QACjC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;IAED,kBAAkB;IAClB,oBAAoB;QAChB,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;CACJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../Identity/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,kBAAyB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Identity/index.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ObserverId.d.ts","sourceRoot":"","sources":["../../Observation/ObserverId.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,qBAAa,UAAU;IACP,QAAQ,CAAC,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM;IAElC,kBAAkB;IAClB,QAAQ,IAAI,MAAM;CAGrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ObserverId.js","sourceRoot":"","sources":["../../Observation/ObserverId.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG;;GAEG;AACH,MAAM,OAAO,UAAU;IACE;IAArB,YAAqB,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;IAAG,CAAC;IAEtC,kBAAkB;IAClB,QAAQ;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;CACJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ObserverRunningState.d.ts","sourceRoot":"","sources":["../../Observation/ObserverRunningState.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,oBAAY,oBAAoB;IAC5B,2CAA2C;IAC3C,OAAO,YAAY;IAEnB,yDAAyD;IACzD,WAAW,gBAAgB;IAE3B,2DAA2D;IAC3D,SAAS,cAAc;IAEvB,8CAA8C;IAC9C,QAAQ,aAAa;IAErB,kDAAkD;IAClD,MAAM,WAAW;IAEjB,wDAAwD;IACxD,MAAM,WAAW;IAEjB,kDAAkD;IAClD,OAAO,YAAY;IAEnB,yCAAyC;IACzC,MAAM,WAAW;IAEjB,0CAA0C;IAC1C,YAAY,iBAAiB;CAChC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ObserverRunningState.js","sourceRoot":"","sources":["../../Observation/ObserverRunningState.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG;;GAEG;AACH,MAAM,CAAN,IAAY,oBA2BX;AA3BD,WAAY,oBAAoB;IAC5B,2CAA2C;IAC3C,2CAAmB,CAAA;IAEnB,yDAAyD;IACzD,mDAA2B,CAAA;IAE3B,2DAA2D;IAC3D,+CAAuB,CAAA;IAEvB,8CAA8C;IAC9C,6CAAqB,CAAA;IAErB,kDAAkD;IAClD,yCAAiB,CAAA;IAEjB,wDAAwD;IACxD,yCAAiB,CAAA;IAEjB,kDAAkD;IAClD,2CAAmB,CAAA;IAEnB,yCAAyC;IACzC,yCAAiB,CAAA;IAEjB,0CAA0C;IAC1C,qDAA6B,CAAA;AACjC,CAAC,EA3BW,oBAAoB,KAApB,oBAAoB,QA2B/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../Observation/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Observation/index.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IProjections.d.ts","sourceRoot":"","sources":["../../Projections/IProjections.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;;OAGG;IACH,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1B;;;OAGG;IACH,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IProjections.js","sourceRoot":"","sources":["../../Projections/IProjections.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectionId.d.ts","sourceRoot":"","sources":["../../Projections/ProjectionId.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,qBAAa,YAAY;IACT,QAAQ,CAAC,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM;IAElC,kBAAkB;IAClB,QAAQ,IAAI,MAAM;CAGrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectionId.js","sourceRoot":"","sources":["../../Projections/ProjectionId.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG;;GAEG;AACH,MAAM,OAAO,YAAY;IACA;IAArB,YAAqB,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;IAAG,CAAC;IAEtC,kBAAkB;IAClB,QAAQ;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;CACJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Projections.d.ts","sourceRoot":"","sources":["../../Projections/Projections.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAOpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AA+B9C;;;GAGG;AACH,qBAAa,WAAY,YAAW,YAAY;IAWxC,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAZrC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAkC;IAC/D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAkC;IAE9D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA8E;IAEtG;;;OAGG;gBAEkB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,mBAAmB,EAChC,gBAAgB,EAAE,wBAAwB;IAG/D,kBAAkB;IACZ,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAoC/B,kBAAkB;IACZ,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;YAiCjB,iBAAiB;IA8B/B,OAAO,CAAC,yBAAyB;IAgCjC,OAAO,CAAC,kBAAkB;IAe1B,OAAO,CAAC,0BAA0B;IA6BlC,OAAO,CAAC,wBAAwB;IAoBhC,OAAO,CAAC,yBAAyB;IAsIjC,OAAO,CAAC,yBAAyB;IAcjC,OAAO,CAAC,sCAAsC;IA2B9C,OAAO,CAAC,eAAe;IAuBvB,OAAO,CAAC,eAAe;IAuBvB,OAAO,CAAC,mBAAmB;IAY3B,OAAO,CAAC,kBAAkB;IAI1B;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;CASnC"}
|
|
@@ -1,441 +0,0 @@
|
|
|
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 { diag } from '@opentelemetry/api';
|
|
4
|
-
import { AutoMap, ProjectionOwner } from '@cratis/chronicle.contracts';
|
|
5
|
-
import { toContractsGuid } from '../connection/Guid';
|
|
6
|
-
import { EventSequenceId } from '../EventSequences/EventSequenceId';
|
|
7
|
-
import { getEventTypeFor } from '../Events/eventTypeDecorator';
|
|
8
|
-
import { getReadModelMetadata } from '../ReadModels';
|
|
9
|
-
import { WellKnownSinks } from '../sinks';
|
|
10
|
-
import { TypeIntrospector } from '../types';
|
|
11
|
-
import { getProjectionMetadata } from './declarative/projection';
|
|
12
|
-
import { ProjectionBuilderFor } from './declarative/ProjectionBuilderFor';
|
|
13
|
-
import { getAddFromMetadata } from './modelBound/addFrom';
|
|
14
|
-
import { getChildrenFromMetadata } from './modelBound/childrenFrom';
|
|
15
|
-
import { getClearWithClassMetadata, getClearWithPropertyMetadata } from './modelBound/clearWith';
|
|
16
|
-
import { getCountMetadata } from './modelBound/count';
|
|
17
|
-
import { getDecrementMetadata } from './modelBound/decrement';
|
|
18
|
-
import { getFromEveryMetadata } from './modelBound/fromEvery';
|
|
19
|
-
import { getFromEventMetadata, hasFromEventMetadata } from './modelBound/fromEvent';
|
|
20
|
-
import { getIncrementMetadata } from './modelBound/increment';
|
|
21
|
-
import { getJoinMetadata } from './modelBound/join';
|
|
22
|
-
import { ProjectionId } from './ProjectionId';
|
|
23
|
-
import { isNested } from './modelBound/nested';
|
|
24
|
-
import { isNotRewindable } from './modelBound/notRewindable';
|
|
25
|
-
import { getRemovedWithClassMetadata, getRemovedWithPropertyMetadata } from './modelBound/removedWith';
|
|
26
|
-
import { getRemovedWithJoinClassMetadata, getRemovedWithJoinPropertyMetadata } from './modelBound/removedWithJoin';
|
|
27
|
-
import { getSetFromMetadata } from './modelBound/setFrom';
|
|
28
|
-
import { getSetFromContextMetadata } from './modelBound/setFromContext';
|
|
29
|
-
import { getSetValueMetadata } from './modelBound/setValue';
|
|
30
|
-
import { getSubtractFromMetadata } from './modelBound/subtractFrom';
|
|
31
|
-
/**
|
|
32
|
-
* Implements {@link IProjections}, managing discovery and registration of projections
|
|
33
|
-
* with the Chronicle Kernel.
|
|
34
|
-
*/
|
|
35
|
-
export class Projections {
|
|
36
|
-
_eventStore;
|
|
37
|
-
_connection;
|
|
38
|
-
_clientArtifacts;
|
|
39
|
-
_declarative = new Map();
|
|
40
|
-
_modelBound = new Map();
|
|
41
|
-
_logger = diag.createComponentLogger({ namespace: '@cratis/chronicle/Projections' });
|
|
42
|
-
/**
|
|
43
|
-
* Creates a new {@link Projections} instance.
|
|
44
|
-
* @param _clientArtifacts - Provider for discovered client artifact types.
|
|
45
|
-
*/
|
|
46
|
-
constructor(_eventStore, _connection, _clientArtifacts) {
|
|
47
|
-
this._eventStore = _eventStore;
|
|
48
|
-
this._connection = _connection;
|
|
49
|
-
this._clientArtifacts = _clientArtifacts;
|
|
50
|
-
}
|
|
51
|
-
/** @inheritdoc */
|
|
52
|
-
async discover() {
|
|
53
|
-
this._declarative.clear();
|
|
54
|
-
this._modelBound.clear();
|
|
55
|
-
const declarativeTypes = this._clientArtifacts.projections;
|
|
56
|
-
const readModelTypes = this._clientArtifacts.readModels;
|
|
57
|
-
this._logger.debug('Discovering projections', { declarativeCount: declarativeTypes.length, readModelCount: readModelTypes.length });
|
|
58
|
-
for (const type of declarativeTypes) {
|
|
59
|
-
const metadata = getProjectionMetadata(type);
|
|
60
|
-
if (metadata) {
|
|
61
|
-
this._logger.debug('Discovered declarative projection', { projectionId: metadata.id.value, type: type.name });
|
|
62
|
-
this._declarative.set(metadata.id.value, type);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
for (const type of readModelTypes) {
|
|
66
|
-
if (!hasFromEventMetadata(type)) {
|
|
67
|
-
continue;
|
|
68
|
-
}
|
|
69
|
-
const metadata = this.resolveModelBoundMetadata(type);
|
|
70
|
-
if (!metadata) {
|
|
71
|
-
this._logger.debug('Read model has @fromEvent but no model-bound metadata resolved', { type: type.name });
|
|
72
|
-
continue;
|
|
73
|
-
}
|
|
74
|
-
this._logger.debug('Discovered model-bound projection', { projectionId: metadata.id.value, type: type.name });
|
|
75
|
-
if (!this._modelBound.has(metadata.id.value)) {
|
|
76
|
-
this._modelBound.set(metadata.id.value, type);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
this._logger.debug('Projection discovery complete', { declarativeCount: this._declarative.size, modelBoundCount: this._modelBound.size });
|
|
80
|
-
}
|
|
81
|
-
/** @inheritdoc */
|
|
82
|
-
async register() {
|
|
83
|
-
if (this._declarative.size === 0 && this._modelBound.size === 0) {
|
|
84
|
-
await this.discover();
|
|
85
|
-
}
|
|
86
|
-
this._logger.info('Registering projections', { declarativeCount: this._declarative.size, modelBoundCount: this._modelBound.size });
|
|
87
|
-
const projections = [
|
|
88
|
-
...Array.from(this._declarative.values()).map(type => this.buildDeclarativeDefinition(type)),
|
|
89
|
-
...Array.from(this._modelBound.values()).map(type => this.buildModelBoundDefinition(type))
|
|
90
|
-
];
|
|
91
|
-
if (projections.length === 0) {
|
|
92
|
-
this._logger.info('No projections to register');
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
const readModels = this.buildReadModelDefinitions(projections);
|
|
96
|
-
if (readModels.length > 0) {
|
|
97
|
-
await this._connection.readModels.registerMany({
|
|
98
|
-
EventStore: this._eventStore,
|
|
99
|
-
Owner: 1,
|
|
100
|
-
ReadModels: readModels,
|
|
101
|
-
Source: 1
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
for (const projection of projections) {
|
|
105
|
-
const identifier = String(projection.Identifier ?? '<unknown>');
|
|
106
|
-
await this.registerWithRetry(projection, identifier);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
async registerWithRetry(projection, identifier, maxAttempts = 5) {
|
|
110
|
-
let delay = 2000;
|
|
111
|
-
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
112
|
-
try {
|
|
113
|
-
this._logger.info('Registering projection', { identifier, readModel: projection.ReadModel, attempt });
|
|
114
|
-
await this._connection.projections.register({
|
|
115
|
-
EventStore: this._eventStore,
|
|
116
|
-
Owner: ProjectionOwner.PROJECTION_OWNER_Client,
|
|
117
|
-
Projections: [projection]
|
|
118
|
-
});
|
|
119
|
-
this._logger.info('Projection registered successfully', { identifier });
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
122
|
-
catch (error) {
|
|
123
|
-
const msg = String(error);
|
|
124
|
-
const isTransient = msg.includes('UNKNOWN') || msg.includes('UNAVAILABLE') || msg.includes('INTERNAL');
|
|
125
|
-
if (!isTransient || attempt === maxAttempts) {
|
|
126
|
-
throw new Error(`Failed to register projection '${identifier}' after ${attempt} attempt(s): ${msg}`);
|
|
127
|
-
}
|
|
128
|
-
this._logger.warn('Projection registration failed with transient error, retrying', {
|
|
129
|
-
identifier,
|
|
130
|
-
attempt,
|
|
131
|
-
nextAttemptInMs: delay,
|
|
132
|
-
error: msg
|
|
133
|
-
});
|
|
134
|
-
await new Promise(resolve => setTimeout(resolve, delay));
|
|
135
|
-
delay = Math.min(delay * 2, 15000);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
buildReadModelDefinitions(projections) {
|
|
140
|
-
const byReadModel = new Map();
|
|
141
|
-
for (const projection of projections) {
|
|
142
|
-
const readModelIdentifier = projection.ReadModel;
|
|
143
|
-
if (!readModelIdentifier || byReadModel.has(readModelIdentifier)) {
|
|
144
|
-
continue;
|
|
145
|
-
}
|
|
146
|
-
byReadModel.set(readModelIdentifier, {
|
|
147
|
-
Type: {
|
|
148
|
-
Identifier: readModelIdentifier,
|
|
149
|
-
Generation: 1
|
|
150
|
-
},
|
|
151
|
-
ContainerName: readModelIdentifier,
|
|
152
|
-
DisplayName: readModelIdentifier,
|
|
153
|
-
Sink: {
|
|
154
|
-
ConfigurationId: toContractsGuid(WellKnownSinks.Null),
|
|
155
|
-
TypeId: toContractsGuid(WellKnownSinks.MongoDB)
|
|
156
|
-
},
|
|
157
|
-
Schema: this.getReadModelSchema(readModelIdentifier),
|
|
158
|
-
Indexes: [],
|
|
159
|
-
ObserverType: 2,
|
|
160
|
-
ObserverIdentifier: projection.Identifier,
|
|
161
|
-
Owner: 1,
|
|
162
|
-
Source: 1
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
return Array.from(byReadModel.values());
|
|
166
|
-
}
|
|
167
|
-
getReadModelSchema(readModelIdentifier) {
|
|
168
|
-
for (const type of this._clientArtifacts.readModels) {
|
|
169
|
-
const metadata = getReadModelMetadata(type);
|
|
170
|
-
if (!metadata) {
|
|
171
|
-
continue;
|
|
172
|
-
}
|
|
173
|
-
if (metadata.id.value === readModelIdentifier || type.name === readModelIdentifier) {
|
|
174
|
-
return JSON.stringify(metadata.schema);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
return '{}';
|
|
178
|
-
}
|
|
179
|
-
buildDeclarativeDefinition(type) {
|
|
180
|
-
const metadata = getProjectionMetadata(type);
|
|
181
|
-
if (!metadata) {
|
|
182
|
-
throw new Error(`Type '${type.name}' is missing declarative projection metadata.`);
|
|
183
|
-
}
|
|
184
|
-
const builder = new ProjectionBuilderFor();
|
|
185
|
-
const instance = new type();
|
|
186
|
-
instance.define(builder);
|
|
187
|
-
const definition = builder.build(metadata.id.value, type.name);
|
|
188
|
-
const explicitReadModelIdentifier = definition.ReadModel;
|
|
189
|
-
if (explicitReadModelIdentifier === type.name) {
|
|
190
|
-
// Use explicit readModelType from decorator if provided
|
|
191
|
-
if (metadata.readModelType) {
|
|
192
|
-
const rm = getReadModelMetadata(metadata.readModelType);
|
|
193
|
-
definition.ReadModel = rm?.id.value ?? metadata.readModelType.name;
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
const inferredReadModelIdentifier = this.inferReadModelIdentifier(builder.getMappedReadModelProperties());
|
|
197
|
-
if (inferredReadModelIdentifier) {
|
|
198
|
-
definition.ReadModel = inferredReadModelIdentifier;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
definition.LastUpdated = { Value: this.computeStableLastUpdated(definition) };
|
|
203
|
-
return definition;
|
|
204
|
-
}
|
|
205
|
-
inferReadModelIdentifier(mappedProperties) {
|
|
206
|
-
if (mappedProperties.length === 0) {
|
|
207
|
-
return undefined;
|
|
208
|
-
}
|
|
209
|
-
const matchingReadModels = this._clientArtifacts.readModels
|
|
210
|
-
.map(type => ({ type, metadata: getReadModelMetadata(type) }))
|
|
211
|
-
.filter(candidate => candidate.metadata)
|
|
212
|
-
.filter(candidate => {
|
|
213
|
-
const readModelProperties = Array.from(candidate.metadata.members.keys());
|
|
214
|
-
return mappedProperties.every(property => readModelProperties.includes(property));
|
|
215
|
-
});
|
|
216
|
-
if (matchingReadModels.length !== 1) {
|
|
217
|
-
return undefined;
|
|
218
|
-
}
|
|
219
|
-
return matchingReadModels[0].metadata.id.value;
|
|
220
|
-
}
|
|
221
|
-
buildModelBoundDefinition(type) {
|
|
222
|
-
const metadata = this.resolveModelBoundMetadata(type);
|
|
223
|
-
if (!metadata) {
|
|
224
|
-
throw new Error(`Type '${type.name}' is missing model-bound projection metadata.`);
|
|
225
|
-
}
|
|
226
|
-
const properties = TypeIntrospector.getTrackedProperties(type);
|
|
227
|
-
const prototype = type.prototype;
|
|
228
|
-
const fromByEventType = new Map();
|
|
229
|
-
const joinByEventType = new Map();
|
|
230
|
-
const removedWithByEventType = new Map();
|
|
231
|
-
const removedWithJoinByEventType = new Map();
|
|
232
|
-
const fromEvents = getFromEventMetadata(type);
|
|
233
|
-
for (const fromEvent of fromEvents) {
|
|
234
|
-
const eventType = this.toContractEventType(fromEvent.eventType);
|
|
235
|
-
const eventKey = this.getEventTypeMapKey(eventType);
|
|
236
|
-
fromByEventType.set(eventKey, {
|
|
237
|
-
Key: eventType,
|
|
238
|
-
Value: {
|
|
239
|
-
Properties: {},
|
|
240
|
-
Key: fromEvent.constantKey ?? fromEvent.key ?? '$eventSourceId',
|
|
241
|
-
ParentKey: fromEvent.parentKey ?? ''
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
const clearWithClass = getClearWithClassMetadata(type);
|
|
246
|
-
if (clearWithClass.length > 0) {
|
|
247
|
-
throw new Error(`Model-bound projection '${type.name}' uses @clearWith on class level, which is not implemented yet.`);
|
|
248
|
-
}
|
|
249
|
-
const removedWithClass = getRemovedWithClassMetadata(type);
|
|
250
|
-
for (const removed of removedWithClass) {
|
|
251
|
-
const eventType = this.toContractEventType(removed.eventType);
|
|
252
|
-
removedWithByEventType.set(this.getEventTypeMapKey(eventType), {
|
|
253
|
-
Key: eventType,
|
|
254
|
-
Value: { Key: removed.key ?? '$eventSourceId', ParentKey: removed.parentKey ?? '' }
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
const removedWithJoinClass = getRemovedWithJoinClassMetadata(type);
|
|
258
|
-
for (const removed of removedWithJoinClass) {
|
|
259
|
-
const eventType = this.toContractEventType(removed.eventType);
|
|
260
|
-
removedWithJoinByEventType.set(this.getEventTypeMapKey(eventType), {
|
|
261
|
-
Key: eventType,
|
|
262
|
-
Value: { Key: removed.key ?? '$eventSourceId' }
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
for (const property of properties) {
|
|
266
|
-
this.throwIfUnsupportedModelBoundDecorators(type.name, prototype, property);
|
|
267
|
-
for (const mapping of getSetFromMetadata(prototype, property)) {
|
|
268
|
-
const entry = this.ensureFromEntry(fromByEventType, mapping.eventType);
|
|
269
|
-
entry.Value.Properties[property] = mapping.eventPropertyName ?? property;
|
|
270
|
-
}
|
|
271
|
-
for (const mapping of getSetFromContextMetadata(prototype, property)) {
|
|
272
|
-
const entry = this.ensureFromEntry(fromByEventType, mapping.eventType);
|
|
273
|
-
entry.Value.Properties[property] = mapping.contextPropertyName ?? property;
|
|
274
|
-
}
|
|
275
|
-
for (const mapping of getSetValueMetadata(prototype, property)) {
|
|
276
|
-
const entry = this.ensureFromEntry(fromByEventType, mapping.eventType);
|
|
277
|
-
entry.Value.Properties[property] = JSON.stringify(mapping.value);
|
|
278
|
-
}
|
|
279
|
-
for (const mapping of getJoinMetadata(prototype, property)) {
|
|
280
|
-
const entry = this.ensureJoinEntry(joinByEventType, mapping.eventType);
|
|
281
|
-
entry.Value.On = mapping.on ?? entry.Value.On;
|
|
282
|
-
entry.Value.Properties[property] = mapping.eventPropertyName ?? property;
|
|
283
|
-
}
|
|
284
|
-
const fromEvery = getFromEveryMetadata(prototype, property);
|
|
285
|
-
if (fromEvery) {
|
|
286
|
-
// Applied later to projection.All
|
|
287
|
-
}
|
|
288
|
-
for (const removed of getRemovedWithPropertyMetadata(prototype, property)) {
|
|
289
|
-
const eventType = this.toContractEventType(removed.eventType);
|
|
290
|
-
removedWithByEventType.set(this.getEventTypeMapKey(eventType), {
|
|
291
|
-
Key: eventType,
|
|
292
|
-
Value: { Key: removed.key ?? '$eventSourceId', ParentKey: removed.parentKey ?? '' }
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
for (const removed of getRemovedWithJoinPropertyMetadata(prototype, property)) {
|
|
296
|
-
const eventType = this.toContractEventType(removed.eventType);
|
|
297
|
-
removedWithJoinByEventType.set(this.getEventTypeMapKey(eventType), {
|
|
298
|
-
Key: eventType,
|
|
299
|
-
Value: { Key: removed.key ?? '$eventSourceId' }
|
|
300
|
-
});
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
const allProperties = {};
|
|
304
|
-
for (const property of properties) {
|
|
305
|
-
const fromEvery = getFromEveryMetadata(prototype, property);
|
|
306
|
-
if (fromEvery) {
|
|
307
|
-
allProperties[property] = fromEvery.contextProperty
|
|
308
|
-
? fromEvery.contextProperty
|
|
309
|
-
: (fromEvery.property ?? property);
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
const definition = {
|
|
313
|
-
EventSequenceId: metadata.eventSequenceId ?? EventSequenceId.eventLog.value,
|
|
314
|
-
Identifier: metadata.id.value,
|
|
315
|
-
ReadModel: metadata.readModelIdentifier,
|
|
316
|
-
IsActive: true,
|
|
317
|
-
IsRewindable: !isNotRewindable(type),
|
|
318
|
-
InitialModelState: '{}',
|
|
319
|
-
From: Array.from(fromByEventType.values()),
|
|
320
|
-
Join: Array.from(joinByEventType.values()),
|
|
321
|
-
Children: {},
|
|
322
|
-
FromEvery: [],
|
|
323
|
-
All: {
|
|
324
|
-
Properties: allProperties,
|
|
325
|
-
IncludeChildren: false,
|
|
326
|
-
AutoMap: AutoMap.Inherit
|
|
327
|
-
},
|
|
328
|
-
RemovedWith: Array.from(removedWithByEventType.values()),
|
|
329
|
-
RemovedWithJoin: Array.from(removedWithJoinByEventType.values()),
|
|
330
|
-
LastUpdated: { Value: '' },
|
|
331
|
-
Tags: [],
|
|
332
|
-
AutoMap: AutoMap.Enabled,
|
|
333
|
-
Nested: {}
|
|
334
|
-
};
|
|
335
|
-
definition.LastUpdated = { Value: this.computeStableLastUpdated(definition) };
|
|
336
|
-
return definition;
|
|
337
|
-
}
|
|
338
|
-
resolveModelBoundMetadata(type) {
|
|
339
|
-
const readModelMetadata = getReadModelMetadata(type);
|
|
340
|
-
if (readModelMetadata && hasFromEventMetadata(type)) {
|
|
341
|
-
return {
|
|
342
|
-
id: new ProjectionId(readModelMetadata.id.value),
|
|
343
|
-
eventSequenceId: undefined,
|
|
344
|
-
readModelIdentifier: readModelMetadata.id.value
|
|
345
|
-
};
|
|
346
|
-
}
|
|
347
|
-
return undefined;
|
|
348
|
-
}
|
|
349
|
-
throwIfUnsupportedModelBoundDecorators(typeName, prototype, property) {
|
|
350
|
-
if (getAddFromMetadata(prototype, property).length > 0) {
|
|
351
|
-
throw new Error(`Model-bound projection '${typeName}' uses @addFrom on '${property}', which is not implemented yet.`);
|
|
352
|
-
}
|
|
353
|
-
if (getSubtractFromMetadata(prototype, property).length > 0) {
|
|
354
|
-
throw new Error(`Model-bound projection '${typeName}' uses @subtractFrom on '${property}', which is not implemented yet.`);
|
|
355
|
-
}
|
|
356
|
-
if (getIncrementMetadata(prototype, property).length > 0) {
|
|
357
|
-
throw new Error(`Model-bound projection '${typeName}' uses @increment on '${property}', which is not implemented yet.`);
|
|
358
|
-
}
|
|
359
|
-
if (getDecrementMetadata(prototype, property).length > 0) {
|
|
360
|
-
throw new Error(`Model-bound projection '${typeName}' uses @decrement on '${property}', which is not implemented yet.`);
|
|
361
|
-
}
|
|
362
|
-
if (getCountMetadata(prototype, property).length > 0) {
|
|
363
|
-
throw new Error(`Model-bound projection '${typeName}' uses @count on '${property}', which is not implemented yet.`);
|
|
364
|
-
}
|
|
365
|
-
if (getChildrenFromMetadata(prototype, property).length > 0) {
|
|
366
|
-
throw new Error(`Model-bound projection '${typeName}' uses @childrenFrom on '${property}', which is not implemented yet.`);
|
|
367
|
-
}
|
|
368
|
-
if (isNested(prototype, property)) {
|
|
369
|
-
throw new Error(`Model-bound projection '${typeName}' uses @nested on '${property}', which is not implemented yet.`);
|
|
370
|
-
}
|
|
371
|
-
if (getClearWithPropertyMetadata(prototype, property).length > 0) {
|
|
372
|
-
throw new Error(`Model-bound projection '${typeName}' uses @clearWith on '${property}', which is not implemented yet.`);
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
ensureFromEntry(fromByEventType, eventTypeConstructor) {
|
|
376
|
-
const eventType = this.toContractEventType(eventTypeConstructor);
|
|
377
|
-
const key = this.getEventTypeMapKey(eventType);
|
|
378
|
-
const existing = fromByEventType.get(key);
|
|
379
|
-
if (existing) {
|
|
380
|
-
return existing;
|
|
381
|
-
}
|
|
382
|
-
const created = {
|
|
383
|
-
Key: eventType,
|
|
384
|
-
Value: {
|
|
385
|
-
Properties: {},
|
|
386
|
-
Key: '$eventSourceId',
|
|
387
|
-
ParentKey: ''
|
|
388
|
-
}
|
|
389
|
-
};
|
|
390
|
-
fromByEventType.set(key, created);
|
|
391
|
-
return created;
|
|
392
|
-
}
|
|
393
|
-
ensureJoinEntry(joinByEventType, eventTypeConstructor) {
|
|
394
|
-
const eventType = this.toContractEventType(eventTypeConstructor);
|
|
395
|
-
const key = this.getEventTypeMapKey(eventType);
|
|
396
|
-
const existing = joinByEventType.get(key);
|
|
397
|
-
if (existing) {
|
|
398
|
-
return existing;
|
|
399
|
-
}
|
|
400
|
-
const created = {
|
|
401
|
-
Key: eventType,
|
|
402
|
-
Value: {
|
|
403
|
-
On: '',
|
|
404
|
-
Properties: {},
|
|
405
|
-
Key: '$eventSourceId'
|
|
406
|
-
}
|
|
407
|
-
};
|
|
408
|
-
joinByEventType.set(key, created);
|
|
409
|
-
return created;
|
|
410
|
-
}
|
|
411
|
-
toContractEventType(eventTypeConstructor) {
|
|
412
|
-
const eventType = getEventTypeFor(eventTypeConstructor);
|
|
413
|
-
if (eventType.id.value === '') {
|
|
414
|
-
throw new Error(`Event type '${eventTypeConstructor.name}' is not decorated with @eventType().`);
|
|
415
|
-
}
|
|
416
|
-
return {
|
|
417
|
-
Id: eventType.id.value,
|
|
418
|
-
Generation: eventType.generation.value,
|
|
419
|
-
Tombstone: false
|
|
420
|
-
};
|
|
421
|
-
}
|
|
422
|
-
getEventTypeMapKey(eventType) {
|
|
423
|
-
return `${eventType.Id}:${eventType.Generation}:${eventType.Tombstone ? '1' : '0'}`;
|
|
424
|
-
}
|
|
425
|
-
/**
|
|
426
|
-
* Computes a stable, deterministic ISO timestamp from the projection definition content,
|
|
427
|
-
* excluding the LastUpdated field itself. This ensures the server does not interpret
|
|
428
|
-
* a repeated registration of an unchanged definition as a definition change, which
|
|
429
|
-
* would otherwise trigger an unnecessary auto-replay.
|
|
430
|
-
*/
|
|
431
|
-
computeStableLastUpdated(definition) {
|
|
432
|
-
const { LastUpdated: _omit, ...rest } = definition;
|
|
433
|
-
const content = JSON.stringify(rest, Object.keys(rest).sort());
|
|
434
|
-
let hash = 5381;
|
|
435
|
-
for (let i = 0; i < content.length; i++) {
|
|
436
|
-
hash = ((hash << 5) + hash + content.charCodeAt(i)) >>> 0;
|
|
437
|
-
}
|
|
438
|
-
return new Date(hash * 1000).toISOString();
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
//# sourceMappingURL=Projections.js.map
|