@hestia-earth/schema
Version:
Hestia Schema
67 lines (66 loc) • 2.73 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 });
exports.Indicator = exports.indicatorTermTermType = exports.IndicatorStatsDefinition = void 0;
// auto-generated content
var types_1 = require("./types");
var Term_1 = require("./Term");
var IndicatorStatsDefinition;
(function (IndicatorStatsDefinition) {
IndicatorStatsDefinition["cycles"] = "cycles";
IndicatorStatsDefinition["impactAssessments"] = "impactAssessments";
IndicatorStatsDefinition["modelled"] = "modelled";
IndicatorStatsDefinition["otherObservations"] = "otherObservations";
IndicatorStatsDefinition["regions"] = "regions";
IndicatorStatsDefinition["replications"] = "replications";
IndicatorStatsDefinition["simulated"] = "simulated";
IndicatorStatsDefinition["sites"] = "sites";
IndicatorStatsDefinition["spatial"] = "spatial";
})(IndicatorStatsDefinition = exports.IndicatorStatsDefinition || (exports.IndicatorStatsDefinition = {}));
/**
* Contains all the TermTermType with override on the Indicator.
* Note: it does not contain the default TermTermType on related Blank Nodes.
*/
exports.indicatorTermTermType = {
term: [
Term_1.TermTermType.emission,
Term_1.TermTermType.endpointIndicator,
Term_1.TermTermType.characterisedIndicator,
Term_1.TermTermType.resourceUse
],
methodModel: [
Term_1.TermTermType.model,
Term_1.TermTermType.methodEmissionResourceUse
],
all: [
Term_1.TermTermType.emission,
Term_1.TermTermType.endpointIndicator,
Term_1.TermTermType.characterisedIndicator,
Term_1.TermTermType.resourceUse,
Term_1.TermTermType.model,
Term_1.TermTermType.methodEmissionResourceUse
]
};
/**
* An emission, resource use, or characterised environmental impact indicator which is expressed per unit of [Product].
*/
var Indicator = /** @class */ (function (_super) {
__extends(Indicator, _super);
function Indicator() {
return _super !== null && _super.apply(this, arguments) || this;
}
return Indicator;
}(types_1.JSON));
exports.Indicator = Indicator;