UNPKG

@serenity-js/core

Version:

The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure

26 lines 1.13 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AsyncOperationAborted = void 0; const tiny_types_1 = require("tiny-types"); const index_js_1 = require("../model/index.js"); const index_js_2 = require("../screenplay/index.js"); const DomainEvent_js_1 = require("./DomainEvent.js"); /** * @group Events */ class AsyncOperationAborted extends DomainEvent_js_1.DomainEvent { description; correlationId; static fromJSON(o) { return new AsyncOperationAborted(index_js_1.Description.fromJSON(o.description), index_js_1.CorrelationId.fromJSON(o.correlationId), index_js_2.Timestamp.fromJSON(o.timestamp)); } constructor(description, correlationId, timestamp) { super(timestamp); this.description = description; this.correlationId = correlationId; (0, tiny_types_1.ensure)('description', description, (0, tiny_types_1.isDefined)()); (0, tiny_types_1.ensure)('correlationId', correlationId, (0, tiny_types_1.isDefined)()); } } exports.AsyncOperationAborted = AsyncOperationAborted; //# sourceMappingURL=AsyncOperationAborted.js.map