@dolittle/sdk.protobuf
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
30 lines • 1.61 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.FailureId = void 0;
const concepts_1 = require("@dolittle/concepts");
const rudiments_1 = require("@dolittle/rudiments");
/**
* Represents the unique identifier for a {Failure}.
*/
class FailureId extends concepts_1.ConceptAs {
/**
* Initialises a new instance of the {@link FailureId} class.
* @param {Guid} id - The failure id.
*/
constructor(id) {
super(id, '@dolittle/sdk.protobuf.FailureId');
}
/**
* Creates a {@link FailureId} from a {@link Guid} or a {@link string}.
* @param {string | Guid} id - The failure id.
* @returns {FailureId} The failure id concept.
*/
static from(id) {
return new FailureId(rudiments_1.Guid.as(id));
}
;
}
exports.FailureId = FailureId;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRmFpbHVyZUlkLmpzIiwic291cmNlUm9vdCI6Ii4uLyIsInNvdXJjZXMiOlsiRmFpbHVyZUlkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwrQ0FBK0M7QUFDL0MscUdBQXFHOzs7QUFFckcsaURBQStDO0FBQy9DLG1EQUEyQztBQUUzQzs7R0FFRztBQUNILE1BQWEsU0FBVSxTQUFRLG9CQUFtRDtJQUM5RTs7O09BR0c7SUFDSCxZQUFZLEVBQVE7UUFDaEIsS0FBSyxDQUFDLEVBQUUsRUFBRSxrQ0FBa0MsQ0FBQyxDQUFDO0lBQ2xELENBQUM7SUFFRDs7OztPQUlHO0lBQ0gsTUFBTSxDQUFDLElBQUksQ0FBQyxFQUFpQjtRQUN6QixPQUFPLElBQUksU0FBUyxDQUFDLGdCQUFJLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUM7SUFDdEMsQ0FBQztJQUFBLENBQUM7Q0FDTDtBQWpCRCw4QkFpQkMifQ==