@cratis/chronicle 0.0.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/EventStore.ts +41 -19
- package/IEventStore.ts +24 -8
- package/README.md +1 -1
- package/artifacts/DefaultClientArtifactsProvider.ts +11 -2
- package/artifacts/IClientArtifactsProvider.ts +8 -2
- package/auditing/Causation.ts +29 -0
- package/auditing/CausationManager.ts +51 -0
- package/auditing/CausationType.ts +38 -0
- package/auditing/ICausationManager.ts +29 -0
- package/auditing/index.ts +15 -0
- package/connection/ChronicleConnection.ts +314 -216
- package/connection/ChronicleConnectionString.ts +327 -1
- package/connection/ChronicleServices.ts +42 -1
- package/connection/Guid.ts +27 -1
- package/connection/TokenProvider.ts +128 -6
- package/correlation/CorrelationId.ts +33 -0
- package/correlation/CorrelationIdManager.ts +30 -0
- package/correlation/ICorrelationIdAccessor.ts +15 -0
- package/correlation/ICorrelationIdSetter.ts +21 -0
- package/correlation/index.ts +15 -0
- package/dist/EventStore.d.ts +16 -8
- package/dist/EventStore.d.ts.map +1 -1
- package/dist/EventStore.js +28 -12
- package/dist/EventStore.js.map +1 -1
- package/dist/IEventStore.d.ts +20 -8
- package/dist/IEventStore.d.ts.map +1 -1
- package/dist/artifacts/DefaultClientArtifactsProvider.d.ts +4 -1
- package/dist/artifacts/DefaultClientArtifactsProvider.d.ts.map +1 -1
- package/dist/artifacts/DefaultClientArtifactsProvider.js +9 -2
- package/dist/artifacts/DefaultClientArtifactsProvider.js.map +1 -1
- package/dist/artifacts/IClientArtifactsProvider.d.ts +6 -2
- package/dist/artifacts/IClientArtifactsProvider.d.ts.map +1 -1
- package/dist/auditing/Causation.d.ts +22 -0
- package/dist/auditing/Causation.d.ts.map +1 -0
- package/dist/auditing/Causation.js +30 -0
- package/dist/auditing/Causation.js.map +1 -0
- package/dist/auditing/CausationManager.d.ts +23 -0
- package/dist/auditing/CausationManager.d.ts.map +1 -0
- package/dist/auditing/CausationManager.js +45 -0
- package/dist/auditing/CausationManager.js.map +1 -0
- package/dist/auditing/CausationType.d.ts +30 -0
- package/dist/auditing/CausationType.d.ts.map +1 -0
- package/dist/auditing/CausationType.js +36 -0
- package/dist/auditing/CausationType.js.map +1 -0
- package/dist/auditing/ICausationManager.d.ts +24 -0
- package/dist/auditing/ICausationManager.d.ts.map +1 -0
- package/dist/auditing/ICausationManager.js +4 -0
- package/dist/auditing/ICausationManager.js.map +1 -0
- package/dist/auditing/index.d.ts +11 -0
- package/dist/auditing/index.d.ts.map +1 -0
- package/dist/auditing/index.js +12 -0
- package/dist/auditing/index.js.map +1 -0
- package/dist/connection/ChronicleConnection.d.ts +49 -78
- package/dist/connection/ChronicleConnection.d.ts.map +1 -1
- package/dist/connection/ChronicleConnection.js +140 -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 +23 -1
- package/dist/connection/ChronicleServices.d.ts.map +1 -1
- package/dist/connection/Guid.d.ts +8 -1
- package/dist/connection/Guid.d.ts.map +1 -1
- package/dist/connection/Guid.js +22 -1
- 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 +23 -0
- package/dist/correlation/CorrelationId.d.ts.map +1 -0
- package/dist/correlation/CorrelationId.js +32 -0
- package/dist/correlation/CorrelationId.js.map +1 -0
- package/dist/correlation/CorrelationIdManager.d.ts +17 -0
- package/dist/correlation/CorrelationIdManager.d.ts.map +1 -0
- package/dist/correlation/CorrelationIdManager.js +24 -0
- package/dist/correlation/CorrelationIdManager.js.map +1 -0
- package/dist/correlation/ICorrelationIdAccessor.d.ts +12 -0
- package/dist/correlation/ICorrelationIdAccessor.d.ts.map +1 -0
- package/dist/correlation/ICorrelationIdAccessor.js +4 -0
- package/dist/correlation/ICorrelationIdAccessor.js.map +1 -0
- package/dist/correlation/ICorrelationIdSetter.d.ts +17 -0
- package/dist/correlation/ICorrelationIdSetter.d.ts.map +1 -0
- package/dist/correlation/ICorrelationIdSetter.js +4 -0
- package/dist/correlation/ICorrelationIdSetter.js.map +1 -0
- package/dist/correlation/index.d.ts +11 -0
- package/dist/correlation/index.d.ts.map +1 -0
- package/dist/correlation/index.js +11 -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/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.map +1 -0
- package/dist/events/constraints/IUniqueConstraintBuilder.js.map +1 -0
- package/dist/events/constraints/UniqueConstraintBuilder.d.ts.map +1 -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 +21 -0
- package/dist/identity/IIdentityProvider.d.ts.map +1 -0
- package/dist/identity/IIdentityProvider.js +4 -0
- package/dist/identity/IIdentityProvider.js.map +1 -0
- package/dist/identity/Identity.d.ts +37 -0
- package/dist/identity/Identity.d.ts.map +1 -0
- package/dist/identity/Identity.js +60 -0
- package/dist/identity/Identity.js.map +1 -0
- package/dist/identity/IdentityProvider.d.ts +15 -0
- package/dist/identity/IdentityProvider.d.ts.map +1 -0
- package/dist/identity/IdentityProvider.js +23 -0
- package/dist/identity/IdentityProvider.js.map +1 -0
- package/dist/identity/index.d.ts +10 -0
- package/dist/identity/index.d.ts.map +1 -0
- package/dist/identity/index.js +11 -0
- package/dist/identity/index.js.map +1 -0
- package/dist/index.d.ts +35 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +35 -8
- 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 +44 -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 +74 -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 +35 -0
- package/dist/projections/declarative/projection.d.ts.map +1 -0
- package/dist/projections/declarative/projection.js +40 -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 +34 -0
- package/dist/projections/modelBound/index.d.ts.map +1 -0
- package/dist/projections/modelBound/index.js +20 -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 +35 -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/ReadModelId.d.ts.map +1 -0
- package/dist/readModels/ReadModelId.js.map +1 -0
- package/dist/readModels/index.d.ts.map +1 -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 +64 -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 +40 -0
- package/dist/reducers/Reducers.d.ts.map +1 -0
- package/dist/reducers/Reducers.js +337 -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.map +1 -0
- package/dist/schemas/JsonSchemaGenerator.js +104 -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/sinks/WellKnownSinks.d.ts +15 -0
- package/dist/sinks/WellKnownSinks.d.ts.map +1 -0
- package/dist/sinks/WellKnownSinks.js +17 -0
- package/dist/sinks/WellKnownSinks.js.map +1 -0
- package/dist/sinks/index.d.ts +2 -0
- package/dist/sinks/index.d.ts.map +1 -0
- package/dist/sinks/index.js +4 -0
- package/dist/sinks/index.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 +6 -2
- package/dist/types/DecoratorType.d.ts.map +1 -1
- package/dist/types/DecoratorType.js +6 -2
- package/dist/types/DecoratorType.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/events/EventContext.ts +28 -0
- package/events/EventTypes.ts +186 -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/identity/IIdentityProvider.ts +26 -0
- package/identity/Identity.ts +61 -0
- package/identity/IdentityProvider.ts +28 -0
- package/identity/index.ts +14 -0
- package/index.ts +56 -8
- 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 +104 -3
- package/projections/Projections.ts +518 -0
- package/projections/declarative/ProjectionBuilderFor.ts +294 -0
- package/projections/declarative/projection.ts +63 -0
- package/projections/modelBound/index.ts +36 -0
- package/projections/modelBound/setFromContext.ts +59 -0
- package/reactors/Reactors.ts +321 -0
- package/readModels/readModel.ts +89 -0
- package/reducers/Reducers.ts +386 -0
- package/schemas/JsonSchemaGenerator.ts +124 -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/sinks/WellKnownSinks.ts +21 -0
- package/sinks/index.ts +4 -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 +8 -2
- 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 -372
- package/EventSequences/EventSequenceNumber.ts +0 -38
- package/EventSequences/IEventSequence.ts +0 -47
- package/EventSequences/index.ts +0 -13
- 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 -463
- package/Projections/declarative/ProjectionBuilderFor.ts +0 -277
- package/Projections/declarative/projection.ts +0 -59
- package/Projections/modelBound/index.ts +0 -38
- package/Projections/modelBound/modelBound.ts +0 -59
- package/Projections/modelBound/setFromContext.ts +0 -41
- package/Reactors/Reactors.ts +0 -320
- package/ReadModels/readModel.ts +0 -89
- package/Reducers/Reducers.ts +0 -322
- package/Schemas/JsonSchemaGenerator.ts +0 -107
- 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 -337
- 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.map +0 -1
- package/dist/Events/Constraints/IUniqueConstraintBuilder.js.map +0 -1
- package/dist/Events/Constraints/UniqueConstraintBuilder.d.ts.map +0 -1
- 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/Grpc.d.ts +0 -19
- package/dist/Grpc.d.ts.map +0 -1
- package/dist/Grpc.js +0 -33
- package/dist/Grpc.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 +0 -36
- package/dist/Projections/Projections.d.ts.map +0 -1
- package/dist/Projections/Projections.js +0 -390
- 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 +0 -68
- package/dist/Projections/declarative/ProjectionBuilderFor.d.ts.map +0 -1
- package/dist/Projections/declarative/ProjectionBuilderFor.js +0 -207
- 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 +0 -31
- package/dist/Projections/declarative/projection.d.ts.map +0 -1
- package/dist/Projections/declarative/projection.js +0 -39
- 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 +0 -36
- package/dist/Projections/modelBound/index.d.ts.map +0 -1
- package/dist/Projections/modelBound/index.js +0 -21
- 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/modelBound.d.ts +0 -31
- package/dist/Projections/modelBound/modelBound.d.ts.map +0 -1
- package/dist/Projections/modelBound/modelBound.js +0 -39
- package/dist/Projections/modelBound/modelBound.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 -23
- package/dist/Projections/modelBound/setFromContext.d.ts.map +0 -1
- package/dist/Projections/modelBound/setFromContext.js +0 -30
- 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 -279
- 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.map +0 -1
- 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 -38
- package/dist/Reducers/Reducers.d.ts.map +0 -1
- package/dist/Reducers/Reducers.js +0 -279
- 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.map +0 -1
- package/dist/Schemas/JsonSchemaGenerator.js +0 -90
- 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/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.d.ts +0 -0
- /package/dist/{Events/Constraints → events/constraints}/IUniqueConstraintBuilder.js +0 -0
- /package/dist/{Events/Constraints → events/constraints}/UniqueConstraintBuilder.d.ts +0 -0
- /package/dist/{Events/Constraints → events/constraints}/UniqueConstraintBuilder.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/{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}/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/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}/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/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/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/{ReadModels → readModels}/index.d.ts +0 -0
- /package/dist/{ReadModels → readModels}/index.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}/JsonSchemaGenerator.d.ts +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}/IUniqueConstraintBuilder.ts +0 -0
- /package/{Events/Constraints → events/constraints}/UniqueConstraintBuilder.ts +0 -0
- /package/{Events/Constraints → events/constraints}/constraint.ts +0 -0
- /package/{Events/Constraints → events/constraints}/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}/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/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/{ReadModels → readModels}/index.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,117 +1,88 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type
|
|
1
|
+
import type { ChannelCredentials } from '@grpc/grpc-js';
|
|
2
|
+
import { type ConnectionServiceClient } from '@cratis/chronicle.contracts';
|
|
3
|
+
import { ChronicleConnectionString } from './ChronicleConnectionString';
|
|
4
|
+
import { ChronicleServices } from './ChronicleServices';
|
|
3
5
|
/**
|
|
4
|
-
*
|
|
5
|
-
* during reconnect while keeping a stable object reference for consumers.
|
|
6
|
+
* Configuration options for Chronicle connection.
|
|
6
7
|
*/
|
|
7
|
-
export
|
|
8
|
-
private readonly _options;
|
|
9
|
-
private _inner;
|
|
10
|
-
private _authenticatedConnectionService?;
|
|
8
|
+
export interface ChronicleConnectionOptions {
|
|
11
9
|
/**
|
|
12
|
-
*
|
|
13
|
-
* @param _options - Connection options used to create and recreate the underlying connection.
|
|
10
|
+
* The connection string used to connect to Chronicle.
|
|
14
11
|
*/
|
|
15
|
-
|
|
12
|
+
connectionString?: string | ChronicleConnectionString;
|
|
16
13
|
/**
|
|
17
|
-
*
|
|
14
|
+
* The host and port of the Chronicle server. Used if connectionString is not provided.
|
|
18
15
|
*/
|
|
19
|
-
|
|
16
|
+
serverAddress?: string;
|
|
20
17
|
/**
|
|
21
|
-
*
|
|
18
|
+
* Optional gRPC credentials. Defaults to credentials based on the connection string.
|
|
22
19
|
*/
|
|
23
|
-
|
|
20
|
+
credentials?: ChannelCredentials;
|
|
24
21
|
/**
|
|
25
|
-
*
|
|
22
|
+
* Optional connection timeout in milliseconds. Defaults to 10000.
|
|
26
23
|
*/
|
|
27
|
-
|
|
24
|
+
connectTimeout?: number;
|
|
28
25
|
/**
|
|
29
|
-
*
|
|
26
|
+
* Optional maximum receive message size in bytes.
|
|
30
27
|
*/
|
|
31
|
-
|
|
28
|
+
maxReceiveMessageSize?: number;
|
|
32
29
|
/**
|
|
33
|
-
*
|
|
30
|
+
* Optional maximum send message size in bytes.
|
|
34
31
|
*/
|
|
35
|
-
|
|
32
|
+
maxSendMessageSize?: number;
|
|
36
33
|
/**
|
|
37
|
-
*
|
|
34
|
+
* Optional correlation ID for tracking requests.
|
|
38
35
|
*/
|
|
39
|
-
|
|
36
|
+
correlationId?: string;
|
|
40
37
|
/**
|
|
41
|
-
*
|
|
38
|
+
* Optional authentication authority URL. If not set, uses the Chronicle server itself.
|
|
42
39
|
*/
|
|
43
|
-
|
|
40
|
+
authority?: string;
|
|
44
41
|
/**
|
|
45
|
-
*
|
|
42
|
+
* Optional management port for authentication endpoint. Defaults to 8080.
|
|
46
43
|
*/
|
|
44
|
+
managementPort?: number;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Manages the gRPC connection to Chronicle and exposes the generated service clients.
|
|
48
|
+
*/
|
|
49
|
+
export declare class ChronicleConnection implements ChronicleServices {
|
|
50
|
+
private readonly _options;
|
|
51
|
+
private _channel;
|
|
52
|
+
private _services;
|
|
53
|
+
private _connections;
|
|
54
|
+
private readonly _connectionString;
|
|
55
|
+
private readonly _tokenProvider;
|
|
56
|
+
private _isConnected;
|
|
57
|
+
constructor(_options: ChronicleConnectionOptions);
|
|
58
|
+
get connectionString(): ChronicleConnectionString;
|
|
59
|
+
get isConnected(): boolean;
|
|
60
|
+
get eventStores(): import("@cratis/chronicle.contracts").EventStoresClient<{}>;
|
|
61
|
+
get namespaces(): import("@cratis/chronicle.contracts").NamespacesClient<{}>;
|
|
62
|
+
get recommendations(): import("@cratis/chronicle.contracts").RecommendationsClient<{}>;
|
|
63
|
+
get identities(): import("@cratis/chronicle.contracts").IdentitiesClient<{}>;
|
|
64
|
+
get eventSequences(): import("@cratis/chronicle.contracts").EventSequencesClient<{}>;
|
|
47
65
|
get eventTypes(): import("@cratis/chronicle.contracts").EventTypesClient<{}>;
|
|
48
|
-
/**
|
|
49
|
-
* Constraints service.
|
|
50
|
-
*/
|
|
51
66
|
get constraints(): import("@cratis/chronicle.contracts").ConstraintsClient<{}>;
|
|
52
|
-
/**
|
|
53
|
-
* Observers service.
|
|
54
|
-
*/
|
|
55
67
|
get observers(): import("@cratis/chronicle.contracts").ObserversClient<{}>;
|
|
56
|
-
/**
|
|
57
|
-
* Failed partitions service.
|
|
58
|
-
*/
|
|
59
68
|
get failedPartitions(): import("@cratis/chronicle.contracts").FailedPartitionsClient<{}>;
|
|
60
|
-
/**
|
|
61
|
-
* Reactors service.
|
|
62
|
-
*/
|
|
63
69
|
get reactors(): import("@cratis/chronicle.contracts").ReactorsClient<{}>;
|
|
64
|
-
/**
|
|
65
|
-
* Reducers service.
|
|
66
|
-
*/
|
|
67
70
|
get reducers(): import("@cratis/chronicle.contracts").ReducersClient<{}>;
|
|
68
|
-
/**
|
|
69
|
-
* Projections service.
|
|
70
|
-
*/
|
|
71
71
|
get projections(): import("@cratis/chronicle.contracts").ProjectionsClient<{}>;
|
|
72
|
-
/**
|
|
73
|
-
* Read models service.
|
|
74
|
-
*/
|
|
75
72
|
get readModels(): import("@cratis/chronicle.contracts").ReadModelsClient<{}>;
|
|
76
|
-
/**
|
|
77
|
-
* Jobs service.
|
|
78
|
-
*/
|
|
79
73
|
get jobs(): import("@cratis/chronicle.contracts").JobsClient<{}>;
|
|
80
|
-
|
|
81
|
-
* Event seeding service.
|
|
82
|
-
*/
|
|
74
|
+
get webhooks(): import("@cratis/chronicle.contracts").WebhooksClient<{}>;
|
|
83
75
|
get eventSeeding(): import("@cratis/chronicle.contracts").EventSeedingClient<{}>;
|
|
84
|
-
/**
|
|
85
|
-
* Server service.
|
|
86
|
-
*/
|
|
87
76
|
get server(): import("@cratis/chronicle.contracts").ServerClient<{}>;
|
|
88
|
-
/**
|
|
89
|
-
* Connection service — used to register this client with the kernel keep-alive mechanism.
|
|
90
|
-
* Uses an authenticated client (same auth middleware as all other services).
|
|
91
|
-
*/
|
|
92
77
|
get connections(): ConnectionServiceClient;
|
|
93
|
-
/**
|
|
94
|
-
* Connects the current inner connection.
|
|
95
|
-
*/
|
|
96
78
|
connect(): Promise<void>;
|
|
97
|
-
/**
|
|
98
|
-
* Recreates the inner connection (new gRPC channel) without calling connect().
|
|
99
|
-
* Use this before probing with a real RPC call to ensure a fresh IDLE channel.
|
|
100
|
-
*/
|
|
101
79
|
resetChannel(): void;
|
|
102
|
-
/**
|
|
103
|
-
* Recreates and connects the inner connection.
|
|
104
|
-
*/
|
|
105
80
|
reconnect(): Promise<void>;
|
|
106
|
-
/**
|
|
107
|
-
* Disconnects the current inner connection.
|
|
108
|
-
*/
|
|
109
81
|
disconnect(): void;
|
|
110
|
-
/**
|
|
111
|
-
* Disposes the current inner connection.
|
|
112
|
-
*/
|
|
113
82
|
dispose(): void;
|
|
114
|
-
private
|
|
83
|
+
private createClients;
|
|
84
|
+
private createTokenProvider;
|
|
85
|
+
private createOAuthTokenProvider;
|
|
86
|
+
private createAuthMiddleware;
|
|
115
87
|
}
|
|
116
|
-
export type { ChronicleConnectionOptions } from '@cratis/chronicle.contracts';
|
|
117
88
|
//# sourceMappingURL=ChronicleConnection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChronicleConnection.d.ts","sourceRoot":"","sources":["../../connection/ChronicleConnection.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"ChronicleConnection.d.ts","sourceRoot":"","sources":["../../connection/ChronicleConnection.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAW,kBAAkB,EAAkB,MAAM,eAAe,CAAC;AACjF,OAAO,EAmBH,KAAK,uBAAuB,EAC/B,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EAAsB,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,yBAAyB,CAAC;IAEtD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;IAEjC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;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
1
1
|
// Copyright (c) Cratis. All rights reserved.
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
-
import {
|
|
4
|
-
import { createClientFactory } from 'nice-grpc';
|
|
3
|
+
import { ConnectionServiceDefinition, ConstraintsDefinition, EventSeedingDefinition, EventSequencesDefinition, EventStoresDefinition, EventTypesDefinition, FailedPartitionsDefinition, IdentitiesDefinition, JobsDefinition, NamespacesDefinition, ObserversDefinition, ProjectionsDefinition, ReactorsDefinition, ReadModelsDefinition, RecommendationsDefinition, ReducersDefinition, ServerDefinition, WebhooksDefinition } from '@cratis/chronicle.contracts';
|
|
4
|
+
import { createChannel, createClientFactory, waitForChannelReady } from 'nice-grpc';
|
|
5
|
+
import { Metadata } from 'nice-grpc-common';
|
|
6
|
+
import { AuthenticationMode, ChronicleConnectionString } from './ChronicleConnectionString';
|
|
7
|
+
import { NoOpTokenProvider, OAuthTokenProvider } from './TokenProvider';
|
|
5
8
|
/**
|
|
6
|
-
*
|
|
7
|
-
* during reconnect while keeping a stable object reference for consumers.
|
|
9
|
+
* Manages the gRPC connection to Chronicle and exposes the generated service clients.
|
|
8
10
|
*/
|
|
9
11
|
export class ChronicleConnection {
|
|
10
12
|
_options;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
_channel;
|
|
14
|
+
_services;
|
|
15
|
+
_connections;
|
|
16
|
+
_connectionString;
|
|
17
|
+
_tokenProvider;
|
|
18
|
+
_isConnected = false;
|
|
17
19
|
constructor(_options) {
|
|
18
20
|
this._options = _options;
|
|
19
|
-
|
|
21
|
+
if (_options.connectionString) {
|
|
22
|
+
this._connectionString = typeof _options.connectionString === 'string'
|
|
23
|
+
? new ChronicleConnectionString(_options.connectionString)
|
|
24
|
+
: _options.connectionString;
|
|
25
|
+
}
|
|
26
|
+
else if (_options.serverAddress) {
|
|
27
|
+
this._connectionString = new ChronicleConnectionString(`chronicle://${_options.serverAddress}`);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
this._connectionString = ChronicleConnectionString.Default;
|
|
31
|
+
}
|
|
32
|
+
this._tokenProvider = this.createTokenProvider();
|
|
33
|
+
this.createClients();
|
|
20
34
|
}
|
|
21
|
-
/**
|
|
22
|
-
* Gets the connection string currently used by the inner connection.
|
|
23
|
-
*/
|
|
24
35
|
get connectionString() {
|
|
25
|
-
return this.
|
|
36
|
+
return this._connectionString;
|
|
26
37
|
}
|
|
27
|
-
/**
|
|
28
|
-
* Gets whether the current inner connection is connected.
|
|
29
|
-
*/
|
|
30
38
|
get isConnected() {
|
|
31
|
-
return this.
|
|
39
|
+
return this._isConnected;
|
|
32
40
|
}
|
|
33
|
-
/**
|
|
34
|
-
* Event stores service.
|
|
35
|
-
*/
|
|
36
41
|
get eventStores() {
|
|
37
|
-
return this.
|
|
42
|
+
return this._services.eventStores;
|
|
38
43
|
}
|
|
39
|
-
/**
|
|
40
|
-
* Namespaces service.
|
|
41
|
-
*/
|
|
42
44
|
get namespaces() {
|
|
43
|
-
return this.
|
|
45
|
+
return this._services.namespaces;
|
|
44
46
|
}
|
|
45
|
-
/**
|
|
46
|
-
* Recommendations service.
|
|
47
|
-
*/
|
|
48
47
|
get recommendations() {
|
|
49
|
-
return this.
|
|
48
|
+
return this._services.recommendations;
|
|
50
49
|
}
|
|
51
|
-
/**
|
|
52
|
-
* Identities service.
|
|
53
|
-
*/
|
|
54
50
|
get identities() {
|
|
55
|
-
return this.
|
|
51
|
+
return this._services.identities;
|
|
56
52
|
}
|
|
57
|
-
/**
|
|
58
|
-
* Event sequences service.
|
|
59
|
-
*/
|
|
60
53
|
get eventSequences() {
|
|
61
|
-
return this.
|
|
54
|
+
return this._services.eventSequences;
|
|
62
55
|
}
|
|
63
|
-
/**
|
|
64
|
-
* Event types service.
|
|
65
|
-
*/
|
|
66
56
|
get eventTypes() {
|
|
67
|
-
return this.
|
|
57
|
+
return this._services.eventTypes;
|
|
68
58
|
}
|
|
69
|
-
/**
|
|
70
|
-
* Constraints service.
|
|
71
|
-
*/
|
|
72
59
|
get constraints() {
|
|
73
|
-
return this.
|
|
60
|
+
return this._services.constraints;
|
|
74
61
|
}
|
|
75
|
-
/**
|
|
76
|
-
* Observers service.
|
|
77
|
-
*/
|
|
78
62
|
get observers() {
|
|
79
|
-
return this.
|
|
63
|
+
return this._services.observers;
|
|
80
64
|
}
|
|
81
|
-
/**
|
|
82
|
-
* Failed partitions service.
|
|
83
|
-
*/
|
|
84
65
|
get failedPartitions() {
|
|
85
|
-
return this.
|
|
66
|
+
return this._services.failedPartitions;
|
|
86
67
|
}
|
|
87
|
-
/**
|
|
88
|
-
* Reactors service.
|
|
89
|
-
*/
|
|
90
68
|
get reactors() {
|
|
91
|
-
return this.
|
|
69
|
+
return this._services.reactors;
|
|
92
70
|
}
|
|
93
|
-
/**
|
|
94
|
-
* Reducers service.
|
|
95
|
-
*/
|
|
96
71
|
get reducers() {
|
|
97
|
-
return this.
|
|
72
|
+
return this._services.reducers;
|
|
98
73
|
}
|
|
99
|
-
/**
|
|
100
|
-
* Projections service.
|
|
101
|
-
*/
|
|
102
74
|
get projections() {
|
|
103
|
-
return this.
|
|
75
|
+
return this._services.projections;
|
|
104
76
|
}
|
|
105
|
-
/**
|
|
106
|
-
* Read models service.
|
|
107
|
-
*/
|
|
108
77
|
get readModels() {
|
|
109
|
-
return this.
|
|
78
|
+
return this._services.readModels;
|
|
110
79
|
}
|
|
111
|
-
/**
|
|
112
|
-
* Jobs service.
|
|
113
|
-
*/
|
|
114
80
|
get jobs() {
|
|
115
|
-
return this.
|
|
81
|
+
return this._services.jobs;
|
|
82
|
+
}
|
|
83
|
+
get webhooks() {
|
|
84
|
+
return this._services.webhooks;
|
|
116
85
|
}
|
|
117
|
-
/**
|
|
118
|
-
* Event seeding service.
|
|
119
|
-
*/
|
|
120
86
|
get eventSeeding() {
|
|
121
|
-
return this.
|
|
87
|
+
return this._services.eventSeeding;
|
|
122
88
|
}
|
|
123
|
-
/**
|
|
124
|
-
* Server service.
|
|
125
|
-
*/
|
|
126
89
|
get server() {
|
|
127
|
-
return this.
|
|
90
|
+
return this._services.server;
|
|
128
91
|
}
|
|
129
|
-
/**
|
|
130
|
-
* Connection service — used to register this client with the kernel keep-alive mechanism.
|
|
131
|
-
* Uses an authenticated client (same auth middleware as all other services).
|
|
132
|
-
*/
|
|
133
92
|
get connections() {
|
|
134
|
-
|
|
135
|
-
// The inner connectionService lacks auth middleware. Create a properly
|
|
136
|
-
// authenticated client using the same factory pattern as createServices().
|
|
137
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
138
|
-
const inner = this._inner;
|
|
139
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
140
|
-
const factory = createClientFactory().use(inner.createAuthMiddleware());
|
|
141
|
-
this._authenticatedConnectionService = factory.create(ConnectionServiceDefinition, inner.channel);
|
|
142
|
-
}
|
|
143
|
-
return this._authenticatedConnectionService;
|
|
93
|
+
return this._connections;
|
|
144
94
|
}
|
|
145
|
-
/**
|
|
146
|
-
* Connects the current inner connection.
|
|
147
|
-
*/
|
|
148
95
|
async connect() {
|
|
149
|
-
|
|
96
|
+
const deadline = new Date(Date.now() + (this._options.connectTimeout ?? 10_000));
|
|
97
|
+
await waitForChannelReady(this._channel, deadline);
|
|
98
|
+
this._isConnected = true;
|
|
150
99
|
}
|
|
151
|
-
/**
|
|
152
|
-
* Recreates the inner connection (new gRPC channel) without calling connect().
|
|
153
|
-
* Use this before probing with a real RPC call to ensure a fresh IDLE channel.
|
|
154
|
-
*/
|
|
155
100
|
resetChannel() {
|
|
156
101
|
try {
|
|
157
|
-
this.
|
|
102
|
+
this._channel.close();
|
|
158
103
|
}
|
|
159
104
|
catch {
|
|
160
|
-
// Best-effort
|
|
105
|
+
// Best-effort shutdown before recreating the channel.
|
|
161
106
|
}
|
|
162
|
-
this.
|
|
163
|
-
this.
|
|
107
|
+
this._isConnected = false;
|
|
108
|
+
this.createClients();
|
|
164
109
|
}
|
|
165
|
-
/**
|
|
166
|
-
* Recreates and connects the inner connection.
|
|
167
|
-
*/
|
|
168
110
|
async reconnect() {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
catch {
|
|
173
|
-
// Best-effort disconnect before re-creating the channel.
|
|
174
|
-
}
|
|
175
|
-
this._inner = this.createInnerConnection();
|
|
176
|
-
await this._inner.connect();
|
|
111
|
+
this.resetChannel();
|
|
112
|
+
await this.connect();
|
|
177
113
|
}
|
|
178
|
-
/**
|
|
179
|
-
* Disconnects the current inner connection.
|
|
180
|
-
*/
|
|
181
114
|
disconnect() {
|
|
182
|
-
this.
|
|
115
|
+
this._isConnected = false;
|
|
116
|
+
this._channel.close();
|
|
183
117
|
}
|
|
184
|
-
/**
|
|
185
|
-
* Disposes the current inner connection.
|
|
186
|
-
*/
|
|
187
118
|
dispose() {
|
|
188
|
-
this.
|
|
119
|
+
this.disconnect();
|
|
189
120
|
}
|
|
190
|
-
|
|
191
|
-
|
|
121
|
+
createClients() {
|
|
122
|
+
const channelOptions = {};
|
|
123
|
+
if (this._options.maxReceiveMessageSize !== undefined) {
|
|
124
|
+
channelOptions['grpc.max_receive_message_length'] = this._options.maxReceiveMessageSize;
|
|
125
|
+
}
|
|
126
|
+
if (this._options.maxSendMessageSize !== undefined) {
|
|
127
|
+
channelOptions['grpc.max_send_message_length'] = this._options.maxSendMessageSize;
|
|
128
|
+
}
|
|
129
|
+
const serverAddress = `${this._connectionString.serverAddress.host}:${this._connectionString.serverAddress.port}`;
|
|
130
|
+
const credentials = this._options.credentials ?? this._connectionString.createCredentials();
|
|
131
|
+
this._channel = createChannel(serverAddress, credentials, channelOptions);
|
|
132
|
+
const factory = createClientFactory().use(this.createAuthMiddleware());
|
|
133
|
+
this._services = {
|
|
134
|
+
eventStores: factory.create(EventStoresDefinition, this._channel),
|
|
135
|
+
namespaces: factory.create(NamespacesDefinition, this._channel),
|
|
136
|
+
recommendations: factory.create(RecommendationsDefinition, this._channel),
|
|
137
|
+
identities: factory.create(IdentitiesDefinition, this._channel),
|
|
138
|
+
eventSequences: factory.create(EventSequencesDefinition, this._channel),
|
|
139
|
+
eventTypes: factory.create(EventTypesDefinition, this._channel),
|
|
140
|
+
constraints: factory.create(ConstraintsDefinition, this._channel),
|
|
141
|
+
observers: factory.create(ObserversDefinition, this._channel),
|
|
142
|
+
failedPartitions: factory.create(FailedPartitionsDefinition, this._channel),
|
|
143
|
+
reactors: factory.create(ReactorsDefinition, this._channel),
|
|
144
|
+
reducers: factory.create(ReducersDefinition, this._channel),
|
|
145
|
+
projections: factory.create(ProjectionsDefinition, this._channel),
|
|
146
|
+
readModels: factory.create(ReadModelsDefinition, this._channel),
|
|
147
|
+
jobs: factory.create(JobsDefinition, this._channel),
|
|
148
|
+
webhooks: factory.create(WebhooksDefinition, this._channel),
|
|
149
|
+
eventSeeding: factory.create(EventSeedingDefinition, this._channel),
|
|
150
|
+
server: factory.create(ServerDefinition, this._channel)
|
|
151
|
+
};
|
|
152
|
+
this._connections = factory.create(ConnectionServiceDefinition, this._channel);
|
|
153
|
+
}
|
|
154
|
+
createTokenProvider() {
|
|
155
|
+
const hasUsername = !!this._connectionString.username;
|
|
156
|
+
const hasPassword = !!this._connectionString.password;
|
|
157
|
+
const hasApiKey = !!this._connectionString.apiKey;
|
|
158
|
+
if (hasApiKey) {
|
|
159
|
+
return new NoOpTokenProvider();
|
|
160
|
+
}
|
|
161
|
+
if (hasUsername !== hasPassword) {
|
|
162
|
+
throw new Error('Connection string must contain both username and password, or neither');
|
|
163
|
+
}
|
|
164
|
+
if (hasUsername && hasPassword) {
|
|
165
|
+
return this.createOAuthTokenProvider(this._connectionString.username, this._connectionString.password);
|
|
166
|
+
}
|
|
167
|
+
return this.createOAuthTokenProvider(ChronicleConnectionString.DEVELOPMENT_CLIENT, ChronicleConnectionString.DEVELOPMENT_CLIENT_SECRET);
|
|
168
|
+
}
|
|
169
|
+
createOAuthTokenProvider(username, password) {
|
|
170
|
+
const managementPort = this._options.managementPort ?? 8080;
|
|
171
|
+
let authorityHost;
|
|
172
|
+
let authorityPort;
|
|
173
|
+
if (this._options.authority) {
|
|
174
|
+
const authority = new URL(this._options.authority);
|
|
175
|
+
authorityHost = authority.hostname;
|
|
176
|
+
authorityPort = authority.port ? parseInt(authority.port, 10) : managementPort;
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
authorityHost = this._connectionString.serverAddress.host;
|
|
180
|
+
authorityPort = managementPort;
|
|
181
|
+
}
|
|
182
|
+
const scheme = this._connectionString.disableTls ? 'http' : 'https';
|
|
183
|
+
return new OAuthTokenProvider(`${scheme}://${authorityHost}:${authorityPort}/connect/token`, username, password);
|
|
184
|
+
}
|
|
185
|
+
createAuthMiddleware() {
|
|
186
|
+
const tokenProvider = this._tokenProvider;
|
|
187
|
+
const connectionString = this._connectionString;
|
|
188
|
+
return async function* authMiddleware(call, options) {
|
|
189
|
+
const token = await tokenProvider.getAccessToken();
|
|
190
|
+
if (token) {
|
|
191
|
+
const metadata = options.metadata ? Metadata(options.metadata) : Metadata();
|
|
192
|
+
metadata.set('authorization', `Bearer ${token}`);
|
|
193
|
+
options.metadata = metadata;
|
|
194
|
+
}
|
|
195
|
+
else if (connectionString.authenticationMode === AuthenticationMode.ApiKey && connectionString.apiKey) {
|
|
196
|
+
const metadata = options.metadata ? Metadata(options.metadata) : Metadata();
|
|
197
|
+
metadata.set('api-key', connectionString.apiKey);
|
|
198
|
+
options.metadata = metadata;
|
|
199
|
+
}
|
|
200
|
+
return yield* call.next(call.request, options);
|
|
201
|
+
};
|
|
192
202
|
}
|
|
193
203
|
}
|
|
194
204
|
//# sourceMappingURL=ChronicleConnection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChronicleConnection.js","sourceRoot":"","sources":["../../connection/ChronicleConnection.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;
|
|
1
|
+
{"version":3,"file":"ChronicleConnection.js","s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;YAChC,CAAC;YAED,OAAO,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACnD,CAAC,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,2 +1,79 @@
|
|
|
1
|
-
|
|
1
|
+
import * as grpc from '@grpc/grpc-js';
|
|
2
|
+
/**
|
|
3
|
+
* Authentication mode for Chronicle connection.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum AuthenticationMode {
|
|
6
|
+
ClientCredentials = "ClientCredentials",
|
|
7
|
+
ApiKey = "ApiKey"
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Represents a server address with host and port.
|
|
11
|
+
*/
|
|
12
|
+
export interface ChronicleServerAddress {
|
|
13
|
+
host: string;
|
|
14
|
+
port: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Builder for constructing Chronicle connection strings.
|
|
18
|
+
*/
|
|
19
|
+
export declare class ChronicleConnectionStringBuilder {
|
|
20
|
+
private static readonly _defaultPort;
|
|
21
|
+
private static readonly _hostKey;
|
|
22
|
+
private static readonly _portKey;
|
|
23
|
+
private static readonly _usernameKey;
|
|
24
|
+
private static readonly _passwordKey;
|
|
25
|
+
private static readonly _schemeKey;
|
|
26
|
+
private static readonly _apiKeyKey;
|
|
27
|
+
private static readonly _disableTlsKey;
|
|
28
|
+
private static readonly _certificatePathKey;
|
|
29
|
+
private static readonly _certificatePasswordKey;
|
|
30
|
+
private readonly _properties;
|
|
31
|
+
constructor(connectionString?: string);
|
|
32
|
+
get host(): string;
|
|
33
|
+
set host(value: string);
|
|
34
|
+
get port(): number;
|
|
35
|
+
set port(value: number);
|
|
36
|
+
get username(): string | undefined;
|
|
37
|
+
set username(value: string | undefined);
|
|
38
|
+
get password(): string | undefined;
|
|
39
|
+
set password(value: string | undefined);
|
|
40
|
+
get scheme(): string;
|
|
41
|
+
set scheme(value: string);
|
|
42
|
+
get authenticationMode(): AuthenticationMode;
|
|
43
|
+
get apiKey(): string | undefined;
|
|
44
|
+
set apiKey(value: string | undefined);
|
|
45
|
+
get disableTls(): boolean;
|
|
46
|
+
set disableTls(value: boolean);
|
|
47
|
+
get certificatePath(): string | undefined;
|
|
48
|
+
set certificatePath(value: string | undefined);
|
|
49
|
+
get certificatePassword(): string | undefined;
|
|
50
|
+
set certificatePassword(value: string | undefined);
|
|
51
|
+
build(): string;
|
|
52
|
+
private parseConnectionString;
|
|
53
|
+
private parseUrl;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Represents a Chronicle connection string.
|
|
57
|
+
*/
|
|
58
|
+
export declare class ChronicleConnectionString {
|
|
59
|
+
static readonly DEVELOPMENT_CLIENT = "chronicle-dev-client";
|
|
60
|
+
static readonly DEVELOPMENT_CLIENT_SECRET = "chronicle-dev-secret";
|
|
61
|
+
static readonly Default: ChronicleConnectionString;
|
|
62
|
+
static readonly Development: ChronicleConnectionString;
|
|
63
|
+
private readonly _builder;
|
|
64
|
+
private readonly _serverAddress;
|
|
65
|
+
constructor(connectionString: string);
|
|
66
|
+
get serverAddress(): ChronicleServerAddress;
|
|
67
|
+
get username(): string | undefined;
|
|
68
|
+
get password(): string | undefined;
|
|
69
|
+
get authenticationMode(): AuthenticationMode;
|
|
70
|
+
get apiKey(): string | undefined;
|
|
71
|
+
get disableTls(): boolean;
|
|
72
|
+
get certificatePath(): string | undefined;
|
|
73
|
+
get certificatePassword(): string | undefined;
|
|
74
|
+
withCredentials(username: string, password: string): ChronicleConnectionString;
|
|
75
|
+
withApiKey(apiKey: string): ChronicleConnectionString;
|
|
76
|
+
createCredentials(): grpc.ChannelCredentials;
|
|
77
|
+
toString(): string;
|
|
78
|
+
}
|
|
2
79
|
//# sourceMappingURL=ChronicleConnectionString.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChronicleConnectionString.d.ts","sourceRoot":"","sources":["../../connection/ChronicleConnectionString.ts"],"names":[],"mappings":"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