UNPKG

@serenity-js/core

Version:

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

23 lines 1.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ActivityRelatedArtifactGenerated = 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 ArtifactGenerated_js_1 = require("./ArtifactGenerated.js"); /** * @group Events */ class ActivityRelatedArtifactGenerated extends ArtifactGenerated_js_1.ArtifactGenerated { activityId; static fromJSON(o) { return new ActivityRelatedArtifactGenerated(index_js_1.CorrelationId.fromJSON(o.sceneId), index_js_1.CorrelationId.fromJSON(o.activityId), index_js_1.Name.fromJSON(o.name), index_js_1.Artifact.fromJSON(o.artifact), index_js_2.Timestamp.fromJSON(o.timestamp)); } constructor(sceneId, activityId, name, artifact, timestamp) { super(sceneId, name, artifact, timestamp); this.activityId = activityId; (0, tiny_types_1.ensure)('activityId', activityId, (0, tiny_types_1.isDefined)()); } } exports.ActivityRelatedArtifactGenerated = ActivityRelatedArtifactGenerated; //# sourceMappingURL=ActivityRelatedArtifactGenerated.js.map