@hestia-earth/schema
Version:
Hestia Schema
115 lines (114 loc) • 4.91 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.ImpactAssessment = exports.impactAssessmentTermTermType = exports.ImpactAssessmentAllocationMethod = void 0;
// auto-generated content
var types_1 = require("./types");
var Term_1 = require("./Term");
var ImpactAssessmentAllocationMethod;
(function (ImpactAssessmentAllocationMethod) {
ImpactAssessmentAllocationMethod["economic"] = "economic";
ImpactAssessmentAllocationMethod["energy"] = "energy";
ImpactAssessmentAllocationMethod["mass"] = "mass";
ImpactAssessmentAllocationMethod["none"] = "none";
ImpactAssessmentAllocationMethod["noneRequired"] = "noneRequired";
ImpactAssessmentAllocationMethod["systemExpansion"] = "systemExpansion";
})(ImpactAssessmentAllocationMethod = exports.ImpactAssessmentAllocationMethod || (exports.ImpactAssessmentAllocationMethod = {}));
/**
* Contains all the TermTermType with override on the ImpactAssessment.
* Note: it does not contain the default TermTermType on related Blank Nodes.
*/
exports.impactAssessmentTermTermType = {
product: [
Term_1.TermTermType.antibiotic,
Term_1.TermTermType.electricity,
Term_1.TermTermType.fuel,
Term_1.TermTermType.material,
Term_1.TermTermType.inorganicFertilizer,
Term_1.TermTermType.organicFertilizer,
Term_1.TermTermType.pesticideAI,
Term_1.TermTermType.pesticideBrandName,
Term_1.TermTermType.other,
Term_1.TermTermType.soilAmendment,
Term_1.TermTermType.water,
Term_1.TermTermType.animalProduct,
Term_1.TermTermType.crop,
Term_1.TermTermType.grass,
Term_1.TermTermType.cropResidue,
Term_1.TermTermType.excreta,
Term_1.TermTermType.liveAnimal,
Term_1.TermTermType.liveAquaticSpecies,
Term_1.TermTermType.processedFood
],
country: [
Term_1.TermTermType.region
],
region: [
Term_1.TermTermType.region
],
emissionsResourceUse: { term: [
Term_1.TermTermType.characterisedIndicator,
Term_1.TermTermType.emission,
Term_1.TermTermType.resourceUse
] },
impacts: { term: [
Term_1.TermTermType.characterisedIndicator
] },
endpoints: { term: [
Term_1.TermTermType.endpointIndicator
] },
all: [
Term_1.TermTermType.antibiotic,
Term_1.TermTermType.electricity,
Term_1.TermTermType.fuel,
Term_1.TermTermType.material,
Term_1.TermTermType.inorganicFertilizer,
Term_1.TermTermType.organicFertilizer,
Term_1.TermTermType.pesticideAI,
Term_1.TermTermType.pesticideBrandName,
Term_1.TermTermType.other,
Term_1.TermTermType.soilAmendment,
Term_1.TermTermType.water,
Term_1.TermTermType.animalProduct,
Term_1.TermTermType.crop,
Term_1.TermTermType.grass,
Term_1.TermTermType.cropResidue,
Term_1.TermTermType.excreta,
Term_1.TermTermType.liveAnimal,
Term_1.TermTermType.liveAquaticSpecies,
Term_1.TermTermType.processedFood,
Term_1.TermTermType.region,
Term_1.TermTermType.characterisedIndicator,
Term_1.TermTermType.emission,
Term_1.TermTermType.resourceUse,
Term_1.TermTermType.endpointIndicator
]
};
/**
* The emissions, resource uses, and environmental impacts created during the production of one unit of a [Product] from a [Cycle]. The functional unit is defined by the units of the [product](#product). If there are more than one Product in the Cycle, allocation is used to apportion these impacts across the Products.
*/
var ImpactAssessment = /** @class */ (function (_super) {
__extends(ImpactAssessment, _super);
function ImpactAssessment() {
var _this = _super !== null && _super.apply(this, arguments) || this;
/**
* The quantity of the [product](#product) that this Impact Assessment is expressed per. The units are determined by the Term of the product (e.g., 1kg for [Wheat, grain](/term/wheatGrain), or 1 head for a [Pig](/term/pig)).
*/
_this.functionalUnitQuantity = 1;
return _this;
}
return ImpactAssessment;
}(types_1.JSON));
exports.ImpactAssessment = ImpactAssessment;