@hestia-earth/schema
Version:
HESTIA Schema
32 lines (31 loc) • 2.16 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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
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.Completeness = void 0;
// auto-generated content
var types_1 = require("./types");
/**
* How complete the data describing the [Inputs](/schema/Input), [Products](/schema/Product), [Animals](/schema/Animal), and key [Practices](/schema/Practice) are. Each field in Completeness corresponds to one or more <code>[termTypes](/schema/Term#termType)</code> in the Glossary. If an area is marked complete, this means that the types and quantities of all the items within the <code>termType(s)</code> covered by the Completeness area are recorded and if they are not recorded, this means they were not present. Use of all data in the HESTIA format must therefore be interpreted in light of completeness: if completeness is <code>true</code> for a <code>termType</code>, but no data are provided for a term in that <code>termType</code>, that means the quantity of that item was zero. For quantity, completeness can be marked as <code>true</code> if either the total quantity is provided or both the minimum and maximum are provided.
*/
var Completeness = /** @class */ (function (_super) {
__extends(Completeness, _super);
function Completeness() {
return _super !== null && _super.apply(this, arguments) || this;
}
return Completeness;
}(types_1.JSON));
exports.Completeness = Completeness;