UNPKG

nestjs-event-sourcing-lib

Version:

A comprehensive Event Sourcing and CQRS library for NestJS applications

25 lines 1.49 kB
/** * nest-event-sourcing * * A comprehensive Event Sourcing and CQRS library for NestJS applications * * @author Your Name * @license MIT */ export { Event } from './core/event'; export { Command } from './core/command'; export { AggregateRoot } from './core/aggregate-root'; export { Projection } from './core/projection'; export { EventStore, BaseEventStore, EventStoreConnectionOptions, SaveEventsResult, GetEventsOptions, GetEventsResult, AggregateSnapshot, EventStoreStats, EventStoreConnectionError, EventStoreSaveError, EventStoreLoadError, } from './core/event-store.interface'; export { CommandHandler } from './services/command.handler'; export { EventBus } from './services/event.publisher'; export * from './event-stores/postgres.event-store'; export * from './event-stores/mongodb.event-store'; export * from './event-stores/prisma.event-store'; export { AggregateRoot as AggregateRootDecorator } from './decorators/aggregate.decorator'; export { CommandHandler as CommandHandlerDecorator, Command as CommandDecorator } from './decorators/command.decorator'; export { OnEvent, Event as EventDecorator } from './decorators/event.decorator'; export { Projection as ProjectionDecorator } from './decorators/projection.decorator'; export { EventSourcingModule, EventStoreConfig, EventSourcingModuleOptions, EventSourcingModuleAsyncOptions, EVENT_STORE_TOKEN, } from './event-sourcing.module'; export * from './event-sourcing.module'; //# sourceMappingURL=index.d.ts.map