import { DateTime } from 'luxon'; import { ExecutionContext } from '@dolittle/sdk.execution'; import { AggregateRootId } from '../AggregateRootId'; import { AggregateRootVersion } from '../AggregateRootVersion'; import { EventLogSequenceNumber } from '../EventLogSequenceNumber'; import { EventType } from '../EventType'; import { EventSourceId } from '../EventSourceId'; import { CommittedEvent } from './CommittedEvent'; /** * Represents an event that was applied to an Event Source by an Aggregate Root and is committed to the Event Store. */ export declare class CommittedAggregateEvent extends CommittedEvent { readonly eventLogSequenceNumber: EventLogSequenceNumber; readonly occurred: DateTime; readonly eventSourceId: EventSourceId; readonly aggregateRootId: AggregateRootId; readonly aggregateRootVersion: AggregateRootVersion; readonly executionContext: ExecutionContext; readonly type: EventType; readonly content: any; readonly isPublic: boolean; /** * Initializes a new instance of {@link CommittedEvent}. * @param {EventLogSequenceNumber} eventLogSequenceNumber - The sequence number in the event log. * @param {DateTime} occurred - Timestamp for when it occurred. * @param {EventSourceId} eventSourceId - Identifier of the event source. * @param {AggregateRootId} aggregateRootId - Identifier of the aggregate root. * @param {AggregateRootVersion} aggregateRootVersion - The version of the aggregate root that applied the event. * @param {ExecutionContext} executionContext - The execution context in which the event happened. * @param {EventType} type - Type of event. * @param {*} content - Actual content of the event. * @param {boolean} isPublic - Whether or not the event is a public event. */ constructor(eventLogSequenceNumber: EventLogSequenceNumber, occurred: DateTime, eventSourceId: EventSourceId, aggregateRootId: AggregateRootId, aggregateRootVersion: AggregateRootVersion, executionContext: ExecutionContext, type: EventType, content: any, isPublic: boolean); } //# sourceMappingURL=CommittedAggregateEvent.d.ts.map