@dolittle/sdk.projections
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
23 lines • 1.45 kB
JavaScript
;
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProjectionContext = void 0;
/**
* Represents the context of a projection.
*/
class ProjectionContext {
/**
* Initializes a new instance of {@link ProjectionContext}.
* @param {boolean} wasCreatedFromInitialState - Whether the projection state was created from the initial state or retrieved from a persisted state.
* @param {Key} key - The projection key.
* @param {EventContext} eventContext - The context of the event.
*/
constructor(wasCreatedFromInitialState, key, eventContext) {
this.wasCreatedFromInitialState = wasCreatedFromInitialState;
this.key = key;
this.eventContext = eventContext;
}
}
exports.ProjectionContext = ProjectionContext;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJvamVjdGlvbkNvbnRleHQuanMiLCJzb3VyY2VSb290IjoiLi4vIiwic291cmNlcyI6WyJQcm9qZWN0aW9uQ29udGV4dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsK0NBQStDO0FBQy9DLHFHQUFxRzs7O0FBTXJHOztHQUVHO0FBQ0gsTUFBYSxpQkFBaUI7SUFFMUI7Ozs7O09BS0c7SUFDSCxZQUNhLDBCQUFtQyxFQUNuQyxHQUFRLEVBQ1IsWUFBMEI7UUFGMUIsK0JBQTBCLEdBQTFCLDBCQUEwQixDQUFTO1FBQ25DLFFBQUcsR0FBSCxHQUFHLENBQUs7UUFDUixpQkFBWSxHQUFaLFlBQVksQ0FBYztJQUN2QyxDQUFDO0NBQ0o7QUFiRCw4Q0FhQyJ9