@hestia-earth/schema
Version:
Hestia Schema
78 lines (77 loc) • 2.95 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.Product = exports.productTermTermType = exports.ProductStatsDefinition = void 0;
// auto-generated content
var types_1 = require("./types");
var Term_1 = require("./Term");
var ProductStatsDefinition;
(function (ProductStatsDefinition) {
ProductStatsDefinition["cycles"] = "cycles";
ProductStatsDefinition["modelled"] = "modelled";
ProductStatsDefinition["otherObservations"] = "otherObservations";
ProductStatsDefinition["regions"] = "regions";
ProductStatsDefinition["replications"] = "replications";
ProductStatsDefinition["simulated"] = "simulated";
ProductStatsDefinition["sites"] = "sites";
ProductStatsDefinition["spatial"] = "spatial";
})(ProductStatsDefinition = exports.ProductStatsDefinition || (exports.ProductStatsDefinition = {}));
/**
* Contains all the TermTermType with override on the Product.
* Note: it does not contain the default TermTermType on related Blank Nodes.
*/
exports.productTermTermType = {
term: [
Term_1.TermTermType.animalProduct,
Term_1.TermTermType.crop,
Term_1.TermTermType.cropResidue,
Term_1.TermTermType.electricity,
Term_1.TermTermType.grass,
Term_1.TermTermType.liveAnimal,
Term_1.TermTermType.liveAquaticSpecies,
Term_1.TermTermType.excreta,
Term_1.TermTermType.organicFertilizer,
Term_1.TermTermType.processedFood,
Term_1.TermTermType.other
],
methodModel: [
Term_1.TermTermType.model
],
all: [
Term_1.TermTermType.animalProduct,
Term_1.TermTermType.crop,
Term_1.TermTermType.cropResidue,
Term_1.TermTermType.electricity,
Term_1.TermTermType.grass,
Term_1.TermTermType.liveAnimal,
Term_1.TermTermType.liveAquaticSpecies,
Term_1.TermTermType.excreta,
Term_1.TermTermType.organicFertilizer,
Term_1.TermTermType.processedFood,
Term_1.TermTermType.other,
Term_1.TermTermType.model
]
};
/**
* A Product created during the [Cycle].
*/
var Product = /** @class */ (function (_super) {
__extends(Product, _super);
function Product() {
return _super !== null && _super.apply(this, arguments) || this;
}
return Product;
}(types_1.JSON));
exports.Product = Product;