UNPKG

@dolittle/sdk.projections

Version:

Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.

29 lines 2.02 kB
"use strict"; // 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.OnDecoratedProjectionMethod = void 0; /** * Represents projection methods decorated with the on decorator. */ class OnDecoratedProjectionMethod { /** * Initializes a new instance of {@link OnDecoratedMethod}. * @param {Constructor<any>} owner - Owner of the method. * @param {Constructor<any> | EventTypeIdLike} eventTypeOrId - Type or event type id of event it handles. * @param {Generation | undefined} generation - Generation of the event or undefined. * @param {KeySelector} keySelector - The key selector to use for this event type. * @param {ProjectionClassOnMethod} method - The actual method that handles the event. * @param {string} name - The name of the method. */ constructor(owner, eventTypeOrId, generation, keySelector, method, name) { this.owner = owner; this.eventTypeOrId = eventTypeOrId; this.generation = generation; this.keySelector = keySelector; this.method = method; this.name = name; } } exports.OnDecoratedProjectionMethod = OnDecoratedProjectionMethod; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT25EZWNvcmF0ZWRQcm9qZWN0aW9uTWV0aG9kLmpzIiwic291cmNlUm9vdCI6Ii4uLyIsInNvdXJjZXMiOlsiQnVpbGRlcnMvT25EZWNvcmF0ZWRQcm9qZWN0aW9uTWV0aG9kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwrQ0FBK0M7QUFDL0MscUdBQXFHOzs7QUFVckc7O0dBRUc7QUFDSCxNQUFhLDJCQUEyQjtJQUVwQzs7Ozs7Ozs7T0FRRztJQUNILFlBQ2EsS0FBdUIsRUFDdkIsYUFBaUQsRUFDakQsVUFBa0MsRUFDbEMsV0FBd0IsRUFDeEIsTUFBK0IsRUFDL0IsSUFBWTtRQUxaLFVBQUssR0FBTCxLQUFLLENBQWtCO1FBQ3ZCLGtCQUFhLEdBQWIsYUFBYSxDQUFvQztRQUNqRCxlQUFVLEdBQVYsVUFBVSxDQUF3QjtRQUNsQyxnQkFBVyxHQUFYLFdBQVcsQ0FBYTtRQUN4QixXQUFNLEdBQU4sTUFBTSxDQUF5QjtRQUMvQixTQUFJLEdBQUosSUFBSSxDQUFRO0lBQ3pCLENBQUM7Q0FDSjtBQW5CRCxrRUFtQkMifQ==