@cratis/chronicle 0.1.0 → 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 +14 -0
- package/artifacts/IClientArtifactsProvider.ts +9 -0
- package/connection/ChronicleConnection.ts +314 -216
- package/connection/ChronicleConnectionString.ts +327 -1
- package/connection/ChronicleServices.ts +42 -1
- package/connection/Guid.ts +2 -4
- package/connection/TokenProvider.ts +128 -6
- 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 +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/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.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/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.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 +34 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +34 -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/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.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.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/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/index.ts +55 -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 +103 -2
- 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/readModel.ts +89 -0
- package/reducers/Reducers.ts +386 -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/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/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/readModel.ts +0 -89
- package/Reducers/Reducers.ts +0 -386
- 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.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/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.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.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.map +0 -1
- 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.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/{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/{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}/Reducers.d.ts +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}/JsonSchemaGenerator.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}/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/{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/{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}/JsonSchemaGenerator.ts +0 -0
- /package/{Schemas → schemas}/index.ts +0 -0
- /package/{Schemas → schemas}/jsonSchemaProperty.ts +0 -0
|
@@ -1,4 +1,254 @@
|
|
|
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
|
-
|
|
3
|
+
import * as grpc from '@grpc/grpc-js';
|
|
4
|
+
/**
|
|
5
|
+
* Authentication mode for Chronicle connection.
|
|
6
|
+
*/
|
|
7
|
+
export var AuthenticationMode;
|
|
8
|
+
(function (AuthenticationMode) {
|
|
9
|
+
AuthenticationMode["ClientCredentials"] = "ClientCredentials";
|
|
10
|
+
AuthenticationMode["ApiKey"] = "ApiKey";
|
|
11
|
+
})(AuthenticationMode || (AuthenticationMode = {}));
|
|
12
|
+
/**
|
|
13
|
+
* Builder for constructing Chronicle connection strings.
|
|
14
|
+
*/
|
|
15
|
+
export class ChronicleConnectionStringBuilder {
|
|
16
|
+
static _defaultPort = 35000;
|
|
17
|
+
static _hostKey = 'Host';
|
|
18
|
+
static _portKey = 'Port';
|
|
19
|
+
static _usernameKey = 'Username';
|
|
20
|
+
static _passwordKey = 'Password';
|
|
21
|
+
static _schemeKey = 'Scheme';
|
|
22
|
+
static _apiKeyKey = 'apiKey';
|
|
23
|
+
static _disableTlsKey = 'disableTls';
|
|
24
|
+
static _certificatePathKey = 'certificatePath';
|
|
25
|
+
static _certificatePasswordKey = 'certificatePassword';
|
|
26
|
+
_properties = new Map();
|
|
27
|
+
constructor(connectionString) {
|
|
28
|
+
if (connectionString) {
|
|
29
|
+
this.parseConnectionString(connectionString);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
get host() {
|
|
33
|
+
return this._properties.get(ChronicleConnectionStringBuilder._hostKey) || 'localhost';
|
|
34
|
+
}
|
|
35
|
+
set host(value) {
|
|
36
|
+
this._properties.set(ChronicleConnectionStringBuilder._hostKey, value);
|
|
37
|
+
}
|
|
38
|
+
get port() {
|
|
39
|
+
const port = this._properties.get(ChronicleConnectionStringBuilder._portKey);
|
|
40
|
+
return port ? parseInt(port, 10) : ChronicleConnectionStringBuilder._defaultPort;
|
|
41
|
+
}
|
|
42
|
+
set port(value) {
|
|
43
|
+
this._properties.set(ChronicleConnectionStringBuilder._portKey, value.toString());
|
|
44
|
+
}
|
|
45
|
+
get username() {
|
|
46
|
+
return this._properties.get(ChronicleConnectionStringBuilder._usernameKey);
|
|
47
|
+
}
|
|
48
|
+
set username(value) {
|
|
49
|
+
if (value) {
|
|
50
|
+
this._properties.set(ChronicleConnectionStringBuilder._usernameKey, value);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
this._properties.delete(ChronicleConnectionStringBuilder._usernameKey);
|
|
54
|
+
}
|
|
55
|
+
get password() {
|
|
56
|
+
return this._properties.get(ChronicleConnectionStringBuilder._passwordKey);
|
|
57
|
+
}
|
|
58
|
+
set password(value) {
|
|
59
|
+
if (value) {
|
|
60
|
+
this._properties.set(ChronicleConnectionStringBuilder._passwordKey, value);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
this._properties.delete(ChronicleConnectionStringBuilder._passwordKey);
|
|
64
|
+
}
|
|
65
|
+
get scheme() {
|
|
66
|
+
return this._properties.get(ChronicleConnectionStringBuilder._schemeKey) || 'chronicle';
|
|
67
|
+
}
|
|
68
|
+
set scheme(value) {
|
|
69
|
+
this._properties.set(ChronicleConnectionStringBuilder._schemeKey, value);
|
|
70
|
+
}
|
|
71
|
+
get authenticationMode() {
|
|
72
|
+
const hasClientCredentials = !!this.username && !!this.password;
|
|
73
|
+
const hasApiKey = !!this.apiKey;
|
|
74
|
+
if (hasClientCredentials && hasApiKey) {
|
|
75
|
+
throw new Error('Cannot specify both username/password and apiKey in the connection string');
|
|
76
|
+
}
|
|
77
|
+
if (hasClientCredentials) {
|
|
78
|
+
return AuthenticationMode.ClientCredentials;
|
|
79
|
+
}
|
|
80
|
+
if (hasApiKey) {
|
|
81
|
+
return AuthenticationMode.ApiKey;
|
|
82
|
+
}
|
|
83
|
+
throw new Error('No authentication method specified. Provide either username/password or apiKey in the connection string');
|
|
84
|
+
}
|
|
85
|
+
get apiKey() {
|
|
86
|
+
return this._properties.get(ChronicleConnectionStringBuilder._apiKeyKey);
|
|
87
|
+
}
|
|
88
|
+
set apiKey(value) {
|
|
89
|
+
if (value) {
|
|
90
|
+
this._properties.set(ChronicleConnectionStringBuilder._apiKeyKey, value);
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
this._properties.delete(ChronicleConnectionStringBuilder._apiKeyKey);
|
|
94
|
+
}
|
|
95
|
+
get disableTls() {
|
|
96
|
+
return this._properties.get(ChronicleConnectionStringBuilder._disableTlsKey) === 'true';
|
|
97
|
+
}
|
|
98
|
+
set disableTls(value) {
|
|
99
|
+
this._properties.set(ChronicleConnectionStringBuilder._disableTlsKey, value.toString());
|
|
100
|
+
}
|
|
101
|
+
get certificatePath() {
|
|
102
|
+
return this._properties.get(ChronicleConnectionStringBuilder._certificatePathKey);
|
|
103
|
+
}
|
|
104
|
+
set certificatePath(value) {
|
|
105
|
+
if (value) {
|
|
106
|
+
this._properties.set(ChronicleConnectionStringBuilder._certificatePathKey, value);
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
this._properties.delete(ChronicleConnectionStringBuilder._certificatePathKey);
|
|
110
|
+
}
|
|
111
|
+
get certificatePassword() {
|
|
112
|
+
return this._properties.get(ChronicleConnectionStringBuilder._certificatePasswordKey);
|
|
113
|
+
}
|
|
114
|
+
set certificatePassword(value) {
|
|
115
|
+
if (value) {
|
|
116
|
+
this._properties.set(ChronicleConnectionStringBuilder._certificatePasswordKey, value);
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
this._properties.delete(ChronicleConnectionStringBuilder._certificatePasswordKey);
|
|
120
|
+
}
|
|
121
|
+
build() {
|
|
122
|
+
let result = `${this.scheme}://`;
|
|
123
|
+
if (this.username) {
|
|
124
|
+
result += this.username;
|
|
125
|
+
if (this.password) {
|
|
126
|
+
result += `:${this.password}`;
|
|
127
|
+
}
|
|
128
|
+
result += '@';
|
|
129
|
+
}
|
|
130
|
+
result += this.host;
|
|
131
|
+
result += `:${this.port}`;
|
|
132
|
+
const queryParameters = [];
|
|
133
|
+
if (this.apiKey) {
|
|
134
|
+
queryParameters.push(`apiKey=${encodeURIComponent(this.apiKey)}`);
|
|
135
|
+
}
|
|
136
|
+
if (this.disableTls) {
|
|
137
|
+
queryParameters.push('disableTls=true');
|
|
138
|
+
}
|
|
139
|
+
if (this.certificatePath) {
|
|
140
|
+
queryParameters.push(`certificatePath=${encodeURIComponent(this.certificatePath)}`);
|
|
141
|
+
}
|
|
142
|
+
if (this.certificatePassword) {
|
|
143
|
+
queryParameters.push(`certificatePassword=${encodeURIComponent(this.certificatePassword)}`);
|
|
144
|
+
}
|
|
145
|
+
for (const [key, value] of this._properties) {
|
|
146
|
+
if (key !== ChronicleConnectionStringBuilder._hostKey &&
|
|
147
|
+
key !== ChronicleConnectionStringBuilder._portKey &&
|
|
148
|
+
key !== ChronicleConnectionStringBuilder._usernameKey &&
|
|
149
|
+
key !== ChronicleConnectionStringBuilder._passwordKey &&
|
|
150
|
+
key !== ChronicleConnectionStringBuilder._schemeKey &&
|
|
151
|
+
key !== ChronicleConnectionStringBuilder._apiKeyKey &&
|
|
152
|
+
key !== ChronicleConnectionStringBuilder._disableTlsKey &&
|
|
153
|
+
key !== ChronicleConnectionStringBuilder._certificatePathKey &&
|
|
154
|
+
key !== ChronicleConnectionStringBuilder._certificatePasswordKey) {
|
|
155
|
+
queryParameters.push(`${encodeURIComponent(key)}=${encodeURIComponent(value)}`);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
if (queryParameters.length > 0) {
|
|
159
|
+
result += `?${queryParameters.join('&')}`;
|
|
160
|
+
}
|
|
161
|
+
return result;
|
|
162
|
+
}
|
|
163
|
+
parseConnectionString(connectionString) {
|
|
164
|
+
if (connectionString.startsWith('chronicle://') ||
|
|
165
|
+
connectionString.startsWith('chronicle+srv://')) {
|
|
166
|
+
this.parseUrl(connectionString);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
parseUrl(value) {
|
|
170
|
+
try {
|
|
171
|
+
const parsed = new URL(value);
|
|
172
|
+
this.scheme = parsed.protocol.replace(':', '');
|
|
173
|
+
this.host = parsed.hostname;
|
|
174
|
+
if (parsed.port) {
|
|
175
|
+
this.port = parseInt(parsed.port, 10);
|
|
176
|
+
}
|
|
177
|
+
if (parsed.username) {
|
|
178
|
+
this.username = decodeURIComponent(parsed.username);
|
|
179
|
+
if (parsed.password) {
|
|
180
|
+
this.password = decodeURIComponent(parsed.password);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
for (const [key, queryValue] of new URLSearchParams(parsed.search)) {
|
|
184
|
+
this._properties.set(key, decodeURIComponent(queryValue));
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
catch (error) {
|
|
188
|
+
throw new Error(`Invalid Chronicle connection string: ${error}`);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Represents a Chronicle connection string.
|
|
194
|
+
*/
|
|
195
|
+
export class ChronicleConnectionString {
|
|
196
|
+
static DEVELOPMENT_CLIENT = 'chronicle-dev-client';
|
|
197
|
+
static DEVELOPMENT_CLIENT_SECRET = 'chronicle-dev-secret';
|
|
198
|
+
static Default = new ChronicleConnectionString('chronicle://localhost:35000');
|
|
199
|
+
static Development = new ChronicleConnectionString(`chronicle://${ChronicleConnectionString.DEVELOPMENT_CLIENT}:${ChronicleConnectionString.DEVELOPMENT_CLIENT_SECRET}@localhost:35000`);
|
|
200
|
+
_builder;
|
|
201
|
+
_serverAddress;
|
|
202
|
+
constructor(connectionString) {
|
|
203
|
+
this._builder = new ChronicleConnectionStringBuilder(connectionString);
|
|
204
|
+
this._serverAddress = {
|
|
205
|
+
host: this._builder.host,
|
|
206
|
+
port: this._builder.port
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
get serverAddress() {
|
|
210
|
+
return this._serverAddress;
|
|
211
|
+
}
|
|
212
|
+
get username() {
|
|
213
|
+
return this._builder.username;
|
|
214
|
+
}
|
|
215
|
+
get password() {
|
|
216
|
+
return this._builder.password;
|
|
217
|
+
}
|
|
218
|
+
get authenticationMode() {
|
|
219
|
+
return this._builder.authenticationMode;
|
|
220
|
+
}
|
|
221
|
+
get apiKey() {
|
|
222
|
+
return this._builder.apiKey;
|
|
223
|
+
}
|
|
224
|
+
get disableTls() {
|
|
225
|
+
return this._builder.disableTls;
|
|
226
|
+
}
|
|
227
|
+
get certificatePath() {
|
|
228
|
+
return this._builder.certificatePath;
|
|
229
|
+
}
|
|
230
|
+
get certificatePassword() {
|
|
231
|
+
return this._builder.certificatePassword;
|
|
232
|
+
}
|
|
233
|
+
withCredentials(username, password) {
|
|
234
|
+
const builder = new ChronicleConnectionStringBuilder(this.toString());
|
|
235
|
+
builder.username = username;
|
|
236
|
+
builder.password = password;
|
|
237
|
+
return new ChronicleConnectionString(builder.build());
|
|
238
|
+
}
|
|
239
|
+
withApiKey(apiKey) {
|
|
240
|
+
const builder = new ChronicleConnectionStringBuilder(this.toString());
|
|
241
|
+
builder.apiKey = apiKey;
|
|
242
|
+
return new ChronicleConnectionString(builder.build());
|
|
243
|
+
}
|
|
244
|
+
createCredentials() {
|
|
245
|
+
if (this.disableTls) {
|
|
246
|
+
return grpc.credentials.createInsecure();
|
|
247
|
+
}
|
|
248
|
+
return grpc.credentials.createSsl();
|
|
249
|
+
}
|
|
250
|
+
toString() {
|
|
251
|
+
return this._builder.build();
|
|
252
|
+
}
|
|
253
|
+
}
|
|
4
254
|
//# sourceMappingURL=ChronicleConnectionString.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChronicleConnectionString.js","sourceRoot":"","sources":["../../connection/ChronicleConnectionString.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ChronicleConnectionString.js","sourceRoot":"","sources":["../../connection/ChronicleConnectionString.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AAEtC;;GAEG;AACH,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,6DAAuC,CAAA;IACvC,uCAAiB,CAAA;AACrB,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B;AAUD;;GAEG;AACH,MAAM,OAAO,gCAAgC;IACjC,MAAM,CAAU,YAAY,GAAG,KAAK,CAAC;IACrC,MAAM,CAAU,QAAQ,GAAG,MAAM,CAAC;IAClC,MAAM,CAAU,QAAQ,GAAG,MAAM,CAAC;IAClC,MAAM,CAAU,YAAY,GAAG,UAAU,CAAC;IAC1C,MAAM,CAAU,YAAY,GAAG,UAAU,CAAC;IAC1C,MAAM,CAAU,UAAU,GAAG,QAAQ,CAAC;IACtC,MAAM,CAAU,UAAU,GAAG,QAAQ,CAAC;IACtC,MAAM,CAAU,cAAc,GAAG,YAAY,CAAC;IAC9C,MAAM,CAAU,mBAAmB,GAAG,iBAAiB,CAAC;IACxD,MAAM,CAAU,uBAAuB,GAAG,qBAAqB,CAAC;IAEvD,WAAW,GAAG,IAAI,GAAG,EAAkB,CAAC;IAEzD,YAAY,gBAAyB;QACjC,IAAI,gBAAgB,EAAE,CAAC;YACnB,IAAI,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;QACjD,CAAC;IACL,CAAC;IAED,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,gCAAgC,CAAC,QAAQ,CAAC,IAAI,WAAW,CAAC;IAC1F,CAAC;IAED,IAAI,IAAI,CAAC,KAAa;QACl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IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC;IACpC,CAAC;IAED,IAAI,eAAe;QACf,OAAO,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC;IACzC,CAAC;IAED,IAAI,mBAAmB;QACnB,OAAO,IAAI,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IAC7C,CAAC;IAED,eAAe,CAAC,QAAgB,EAAE,QAAgB;QAC9C,MAAM,OAAO,GAAG,IAAI,gCAAgC,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QACtE,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC5B,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC5B,OAAO,IAAI,yBAAyB,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED,UAAU,CAAC,MAAc;QACrB,MAAM,OAAO,GAAG,IAAI,gCAAgC,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QACtE,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;QACxB,OAAO,IAAI,yBAAyB,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED,iBAAiB;QACb,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YAClB,OAAO,IAAI,CAAC,WAAW,CAAC,cAAc,EAAE,CAAC;QAC7C,CAAC;QAED,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC;IACxC,CAAC;IAED,QAAQ;QACJ,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;IACjC,CAAC"}
|
|
@@ -1,2 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ConstraintsClient, EventSeedingClient, EventSequencesClient, EventStoresClient, EventTypesClient, FailedPartitionsClient, IdentitiesClient, JobsClient, NamespacesClient, ObserversClient, ProjectionsClient, ReactorsClient, ReadModelsClient, RecommendationsClient, ReducersClient, ServerClient, WebhooksClient } from '@cratis/chronicle.contracts';
|
|
2
|
+
/**
|
|
3
|
+
* Represents all Chronicle gRPC services.
|
|
4
|
+
*/
|
|
5
|
+
export interface ChronicleServices {
|
|
6
|
+
eventStores: EventStoresClient;
|
|
7
|
+
namespaces: NamespacesClient;
|
|
8
|
+
recommendations: RecommendationsClient;
|
|
9
|
+
identities: IdentitiesClient;
|
|
10
|
+
eventSequences: EventSequencesClient;
|
|
11
|
+
eventTypes: EventTypesClient;
|
|
12
|
+
constraints: ConstraintsClient;
|
|
13
|
+
observers: ObserversClient;
|
|
14
|
+
failedPartitions: FailedPartitionsClient;
|
|
15
|
+
reactors: ReactorsClient;
|
|
16
|
+
reducers: ReducersClient;
|
|
17
|
+
projections: ProjectionsClient;
|
|
18
|
+
readModels: ReadModelsClient;
|
|
19
|
+
jobs: JobsClient;
|
|
20
|
+
webhooks: WebhooksClient;
|
|
21
|
+
eventSeeding: EventSeedingClient;
|
|
22
|
+
server: ServerClient;
|
|
23
|
+
}
|
|
2
24
|
//# sourceMappingURL=ChronicleServices.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChronicleServices.d.ts","sourceRoot":"","sources":["../../connection/ChronicleServices.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ChronicleServices.d.ts","sourceRoot":"","sources":["../../connection/ChronicleServices.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACR,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,cAAc,EACjB,MAAM,6BAA6B,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,WAAW,EAAE,iBAAiB,CAAC;IAC/B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,eAAe,EAAE,qBAAqB,CAAC;IACvC,UAAU,EAAE,gBAAgB,CAAC;IAC7B,cAAc,EAAE,oBAAoB,CAAC;IACrC,UAAU,EAAE,gBAAgB,CAAC;IAC7B,WAAW,EAAE,iBAAiB,CAAC;IAC/B,SAAS,EAAE,eAAe,CAAC;IAC3B,gBAAgB,EAAE,sBAAsB,CAAC;IACzC,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,EAAE,cAAc,CAAC;IACzB,WAAW,EAAE,iBAAiB,CAAC;IAC/B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,cAAc,CAAC;IACzB,YAAY,EAAE,kBAAkB,CAAC;IACjC,MAAM,EAAE,YAAY,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Guid.d.ts","sourceRoot":"","sources":["../../connection/Guid.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,IAAI,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,eAAe,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"Guid.d.ts","sourceRoot":"","sources":["../../connection/Guid.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,IAAI,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,eAAe,GAAG,aAAa,CAiBpE"}
|
package/dist/connection/Guid.js
CHANGED
|
@@ -17,11 +17,9 @@ export function toContractsGuid(guid) {
|
|
|
17
17
|
lo |= BigInt(bytes[index]) << BigInt(index * 8);
|
|
18
18
|
hi |= BigInt(bytes[index + 8]) << BigInt(index * 8);
|
|
19
19
|
}
|
|
20
|
-
// The runtime accepts strings for fixed64 values, which preserves the exact
|
|
21
|
-
// 64-bit payload instead of truncating through Number.
|
|
22
20
|
return {
|
|
23
|
-
lo
|
|
24
|
-
hi
|
|
21
|
+
lo,
|
|
22
|
+
hi
|
|
25
23
|
};
|
|
26
24
|
}
|
|
27
25
|
//# sourceMappingURL=Guid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Guid.js","sourceRoot":"","sources":["../../connection/Guid.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAGrG,OAAO,EAAE,IAAI,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,IAAqB;IACjD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,eAAe,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC;IAC9D,IAAI,KAAK,CAAC,MAAM,KAAK,EAAE,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,iBAAiB,IAAI,CAAC,QAAQ,EAAE,uBAAuB,CAAC,CAAC;IAC7E,CAAC;IAED,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;QACrC,EAAE,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QAChD,EAAE,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IACxD,CAAC;IAED,
|
|
1
|
+
{"version":3,"file":"Guid.js","sourceRoot":"","sources":["../../connection/Guid.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAGrG,OAAO,EAAE,IAAI,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,IAAqB;IACjD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,eAAe,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC;IAC9D,IAAI,KAAK,CAAC,MAAM,KAAK,EAAE,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,iBAAiB,IAAI,CAAC,QAAQ,EAAE,uBAAuB,CAAC,CAAC;IAC7E,CAAC;IAED,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;QACrC,EAAE,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QAChD,EAAE,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IACxD,CAAC;IAED,OAAO;QACH,EAAE;QACF,EAAE;KACL,CAAC;AACN,CAAC"}
|
|
@@ -1,5 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Interface for providing authentication tokens.
|
|
3
|
+
*/
|
|
4
|
+
export interface ITokenProvider {
|
|
5
|
+
/**
|
|
6
|
+
* Gets the current access token.
|
|
7
|
+
* @returns Promise resolving to the access token or undefined if not available.
|
|
8
|
+
*/
|
|
9
|
+
getAccessToken(): Promise<string | undefined>;
|
|
10
|
+
/**
|
|
11
|
+
* Refreshes the access token by clearing cached tokens and obtaining a new one.
|
|
12
|
+
* @returns Promise resolving to the new access token or undefined if not available.
|
|
13
|
+
*/
|
|
14
|
+
refresh(): Promise<string | undefined>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* No-op token provider for when authentication is not required.
|
|
18
|
+
*/
|
|
19
|
+
export declare class NoOpTokenProvider implements ITokenProvider {
|
|
20
|
+
getAccessToken(): Promise<string | undefined>;
|
|
21
|
+
refresh(): Promise<string | undefined>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* OAuth token provider using client credentials flow.
|
|
25
|
+
*/
|
|
26
|
+
export declare class OAuthTokenProvider implements ITokenProvider {
|
|
27
|
+
private readonly _tokenEndpoint;
|
|
28
|
+
private readonly _clientId;
|
|
29
|
+
private readonly _clientSecret;
|
|
30
|
+
private _accessToken?;
|
|
31
|
+
private _tokenExpiry;
|
|
32
|
+
private _refreshPromise?;
|
|
33
|
+
constructor(_tokenEndpoint: string, _clientId: string, _clientSecret: string);
|
|
34
|
+
getAccessToken(): Promise<string | undefined>;
|
|
35
|
+
refresh(): Promise<string | undefined>;
|
|
36
|
+
private fetchAccessToken;
|
|
37
|
+
}
|
|
4
38
|
export type TokenProvider = ITokenProvider;
|
|
5
39
|
//# sourceMappingURL=TokenProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenProvider.d.ts","sourceRoot":"","sources":["../../connection/TokenProvider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TokenProvider.d.ts","sourceRoot":"","sources":["../../connection/TokenProvider.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B;;;OAGG;IACH,cAAc,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAE9C;;;OAGG;IACH,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC1C;AAED;;GAEG;AACH,qBAAa,iBAAkB,YAAW,cAAc;IAC9C,cAAc,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAI7C,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;CAG/C;AAOD;;GAEG;AACH,qBAAa,kBAAmB,YAAW,cAAc;IAMjD,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAPlC,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,eAAe,CAAC,CAA8B;gBAGjC,cAAc,EAAE,MAAM,EACtB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM;IAGpC,cAAc,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAiB7C,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;YAM9B,gBAAgB;CAmDjC;AAED,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC"}
|
|
@@ -1,4 +1,98 @@
|
|
|
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
|
-
|
|
3
|
+
import * as http from 'http';
|
|
4
|
+
import * as https from 'https';
|
|
5
|
+
const TOKEN_EXPIRY_BUFFER_SECONDS = 60;
|
|
6
|
+
const DEFAULT_TOKEN_EXPIRY_SECONDS = 3600;
|
|
7
|
+
/**
|
|
8
|
+
* No-op token provider for when authentication is not required.
|
|
9
|
+
*/
|
|
10
|
+
export class NoOpTokenProvider {
|
|
11
|
+
async getAccessToken() {
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
async refresh() {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* OAuth token provider using client credentials flow.
|
|
20
|
+
*/
|
|
21
|
+
export class OAuthTokenProvider {
|
|
22
|
+
_tokenEndpoint;
|
|
23
|
+
_clientId;
|
|
24
|
+
_clientSecret;
|
|
25
|
+
_accessToken;
|
|
26
|
+
_tokenExpiry = new Date(0);
|
|
27
|
+
_refreshPromise;
|
|
28
|
+
constructor(_tokenEndpoint, _clientId, _clientSecret) {
|
|
29
|
+
this._tokenEndpoint = _tokenEndpoint;
|
|
30
|
+
this._clientId = _clientId;
|
|
31
|
+
this._clientSecret = _clientSecret;
|
|
32
|
+
}
|
|
33
|
+
async getAccessToken() {
|
|
34
|
+
if (this._accessToken && new Date() < this._tokenExpiry) {
|
|
35
|
+
return this._accessToken;
|
|
36
|
+
}
|
|
37
|
+
if (this._refreshPromise) {
|
|
38
|
+
return this._refreshPromise;
|
|
39
|
+
}
|
|
40
|
+
this._refreshPromise = this.fetchAccessToken();
|
|
41
|
+
try {
|
|
42
|
+
return await this._refreshPromise;
|
|
43
|
+
}
|
|
44
|
+
finally {
|
|
45
|
+
this._refreshPromise = undefined;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
async refresh() {
|
|
49
|
+
this._accessToken = undefined;
|
|
50
|
+
this._tokenExpiry = new Date(0);
|
|
51
|
+
return this.getAccessToken();
|
|
52
|
+
}
|
|
53
|
+
async fetchAccessToken() {
|
|
54
|
+
const params = new URLSearchParams();
|
|
55
|
+
params.append('grant_type', 'client_credentials');
|
|
56
|
+
params.append('client_id', this._clientId);
|
|
57
|
+
params.append('client_secret', this._clientSecret);
|
|
58
|
+
const body = params.toString();
|
|
59
|
+
return new Promise((resolve, reject) => {
|
|
60
|
+
const url = new URL(this._tokenEndpoint);
|
|
61
|
+
const httpModule = url.protocol === 'https:' ? https : http;
|
|
62
|
+
const req = httpModule.request(url, {
|
|
63
|
+
method: 'POST',
|
|
64
|
+
headers: {
|
|
65
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
66
|
+
'Content-Length': Buffer.byteLength(body)
|
|
67
|
+
}
|
|
68
|
+
}, response => {
|
|
69
|
+
let data = '';
|
|
70
|
+
response.on('data', chunk => {
|
|
71
|
+
data += chunk;
|
|
72
|
+
});
|
|
73
|
+
response.on('end', () => {
|
|
74
|
+
if (response.statusCode !== 200) {
|
|
75
|
+
reject(new Error(`Token request failed with status ${response.statusCode}: ${data}`));
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
try {
|
|
79
|
+
const tokenResponse = JSON.parse(data);
|
|
80
|
+
this._accessToken = tokenResponse.access_token;
|
|
81
|
+
const expiresInSeconds = tokenResponse.expires_in || DEFAULT_TOKEN_EXPIRY_SECONDS;
|
|
82
|
+
this._tokenExpiry = new Date(Date.now() + (expiresInSeconds - TOKEN_EXPIRY_BUFFER_SECONDS) * 1000);
|
|
83
|
+
resolve(this._accessToken);
|
|
84
|
+
}
|
|
85
|
+
catch (error) {
|
|
86
|
+
reject(new Error(`Failed to parse token response: ${error instanceof Error ? error.message : String(error)}`));
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
req.on('error', error => {
|
|
91
|
+
reject(new Error(`Token request failed: ${error.message}`));
|
|
92
|
+
});
|
|
93
|
+
req.write(body);
|
|
94
|
+
req.end();
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
4
98
|
//# sourceMappingURL=TokenProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenProvider.js","sourceRoot":"","sources":["../../connection/TokenProvider.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;
|
|
1
|
+
{"version":3,"file":"TokenProvider.js","sourceRoot":"","sources":["../../connection/TokenProvider.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG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M,gBAA6D;IAEnF;;;OAGG;IACH,MAAM,CAAC,MAAM,IAAI,aAAa;IAI9B;;;OAGG;gBACkB,KAAK,EAAE,MAAM;IAElC,kBAAkB;IAClB,QAAQ,IAAI,MAAM;CAGrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CorrelationId.js","sourceRoot":"","sources":["../../correlation/CorrelationId.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C;;GAEG;AACH,MAAM,OAAO,aAAa;IAkBD;IAjBrB;;OAEG;IACH,MAAM,CAAU,MAAM,GAAG,IAAI,aAAa,CAAC,sCAAsC,CAAC,CAAC;IAEnF;;;OAGG;IACH,MAAM,CAAC,MAAM;QACT,OAAO,IAAI,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC;IAED;;;OAGG;IACH,YAAqB,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;IAAG,CAAC;IAEtC,kBAAkB;IAClB,QAAQ;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CorrelationIdManager.d.ts","sourceRoot":"","sources":["../../correlation/CorrelationIdManager.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D;;;GAGG;AACH,qBAAa,oBAAqB,YAAW,sBAAsB,EAAE,oBAAoB;IACrF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA0C;IAEnE,kBAAkB;IAClB,IAAI,OAAO,IAAI,aAAa,CAE3B;IAED,kBAAkB;IAClB,UAAU,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI;IAI9C,kBAAkB;IAClB,KAAK,IAAI,IAAI;CAGhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CorrelationIdManager.js","sourceRoot":"","sources":["../../correlation/CorrelationIdManager.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD;;;GAGG;AACH,MAAM,OAAO,oBAAoB;IACZ,QAAQ,GAAG,IAAI,iBAAiB,EAAiB,CAAC;IAEnE,kBAAkB;IAClB,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,aAAa,CAAC,MAAM,EAAE,CAAC;IAC9D,CAAC;IAED,kBAAkB;IAClB,UAAU,CAAC,aAA4B;QACnC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;IAC3C,CAAC;IAED,kBAAkB;IAClB,KAAK;QACD,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC;IACpD,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICorrelationIdAccessor.d.ts","sourceRoot":"","sources":["../../correlation/ICorrelationIdAccessor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;CACnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICorrelationIdAccessor.js","sourceRoot":"","sources":["../../correlation/ICorrelationIdAccessor.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICorrelationIdSetter.d.ts","sourceRoot":"","sources":["../../correlation/ICorrelationIdSetter.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;OAGG;IACH,UAAU,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IAE/C;;;OAGG;IACH,KAAK,IAAI,IAAI,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICorrelationIdSetter.js","sourceRoot":"","sources":["../../correlation/ICorrelationIdSetter.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../correlation/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,oBAAoB,sBAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../correlation/index.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,oBAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppendError.d.ts","sourceRoot":"","sources":["../../eventSequences/AppendError.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB,gDAAgD;IAChD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppendError.js","sourceRoot":"","sources":["../../eventSequences/AppendError.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Guid } from '@cratis/fundamentals';
|
|
2
|
+
import type { ConcurrencyScope } from './ConcurrencyScope';
|
|
3
|
+
/**
|
|
4
|
+
* Options for appending an event to an event sequence.
|
|
5
|
+
*/
|
|
6
|
+
export interface AppendOptions {
|
|
7
|
+
/** Optional correlation identifier for tracking the append operation. */
|
|
8
|
+
correlationId?: string | Guid;
|
|
9
|
+
/** Optional explicit sequence number to use for the event. */
|
|
10
|
+
eventSourceId?: string;
|
|
11
|
+
/** Optional concurrency scope to use for append operations. */
|
|
12
|
+
concurrencyScope?: ConcurrencyScope;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=AppendOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppendOptions.d.ts","sourceRoot":"","sources":["../../eventSequences/AppendOptions.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,yEAAyE;IACzE,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B,8DAA8D;IAC9D,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppendOptions.js","sourceRoot":"","sources":["../../eventSequences/AppendOptions.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppendResult.d.ts","sourceRoot":"","sources":["../../eventSequences/AppendResult.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,0DAA0D;IAC1D,QAAQ,CAAC,cAAc,EAAE,mBAAmB,CAAC;IAE7C,mDAAmD;IACnD,QAAQ,CAAC,oBAAoB,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC;IAElE,qDAAqD;IACrD,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IAE5C,mEAAmE;IACnE,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppendResult.js","sourceRoot":"","sources":["../../eventSequences/AppendResult.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { EventType } from '../events';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a concurrency scope for append operations.
|
|
4
|
+
*/
|
|
5
|
+
export interface ConcurrencyScope {
|
|
6
|
+
/** The expected sequence number used for concurrency validation. */
|
|
7
|
+
sequenceNumber: bigint;
|
|
8
|
+
/** Whether to include event source identifier as part of the scope. */
|
|
9
|
+
eventSourceId?: boolean;
|
|
10
|
+
/** Optional event stream type to scope to. */
|
|
11
|
+
eventStreamType?: string;
|
|
12
|
+
/** Optional event stream identifier to scope to. */
|
|
13
|
+
eventStreamId?: string;
|
|
14
|
+
/** Optional event source type to scope to. */
|
|
15
|
+
eventSourceType?: string;
|
|
16
|
+
/** Optional event types to scope to. */
|
|
17
|
+
eventTypes?: EventType[];
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=ConcurrencyScope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConcurrencyScope.d.ts","sourceRoot":"","sources":["../../eventSequences/ConcurrencyScope.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,oEAAoE;IACpE,cAAc,EAAE,MAAM,CAAC;IAEvB,uEAAuE;IACvE,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,8CAA8C;IAC9C,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,oDAAoD;IACpD,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,8CAA8C;IAC9C,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,wCAAwC;IACxC,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConcurrencyScope.js","sourceRoot":"","sources":["../../eventSequences/ConcurrencyScope.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConstraintViolation.d.ts","sourceRoot":"","sources":["../../eventSequences/ConstraintViolation.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,mDAAmD;IACnD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAE9B,6BAA6B;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,8CAA8C;IAC9C,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConstraintViolation.js","sourceRoot":"","sources":["../../eventSequences/ConstraintViolation.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents an event paired with the event source identifier it belongs to.
|
|
3
|
+
*/
|
|
4
|
+
export interface EventForEventSourceId {
|
|
5
|
+
/** The event source identifier for the event. */
|
|
6
|
+
readonly eventSourceId: string;
|
|
7
|
+
/** The event payload to append. */
|
|
8
|
+
readonly event: object;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=EventForEventSourceId.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventForEventSourceId.d.ts","sourceRoot":"","sources":["../../eventSequences/EventForEventSourceId.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,iDAAiD;IACjD,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAE/B,mCAAmC;IACnC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CAC1B"}
|