@chix/flow
Version:
52 lines • 2.03 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var common_1 = require("../common");
var util_1 = require("../util");
var context_1 = require("./context");
var control_1 = require("./control");
var export_1 = require("./export");
var ports_1 = require("./ports");
function $Report(Base) {
return (function (_super) {
__extends(Report$, _super);
function Report$() {
return _super !== null && _super.apply(this, arguments) || this;
}
Report$.prototype.report = function () {
return {
context: this.context,
filled: this.filled,
id: this.id,
identifier: this.identifier,
outputCount: this.outputCount,
ports: this.ports,
runCount: this.runCount,
state: this.state,
status: this.status,
title: this.title,
};
};
return Report$;
}(Base));
}
exports.$Report = $Report;
(function ($Report) {
function create(Base) {
return util_1.mixin($Report, context_1.$Context.create, control_1.$Control.create, export_1.$Export.create, common_1.$Identity.create, common_1.$Meta.create, ports_1.$Ports.create, common_1.$Status.create)(Base);
}
$Report.create = create;
})($Report = exports.$Report || (exports.$Report = {}));
//# sourceMappingURL=report.js.map