UNPKG

@hestia-earth/schema

Version:
84 lines (83 loc) 2.91 kB
"use strict"; 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.sourceFields = exports.Source = exports.sourceTermTermType = exports.SourceOriginalLicense = void 0; // auto-generated content var types_1 = require("./types"); var Term_1 = require("./Term"); var SourceOriginalLicense; (function (SourceOriginalLicense) { SourceOriginalLicense["CC-BY"] = "CC-BY"; SourceOriginalLicense["CC-BY-NC"] = "CC-BY-NC"; SourceOriginalLicense["CC-BY-NC-ND"] = "CC-BY-NC-ND"; SourceOriginalLicense["CC-BY-NC-SA"] = "CC-BY-NC-SA"; SourceOriginalLicense["CC-BY-ND"] = "CC-BY-ND"; SourceOriginalLicense["CC-BY-SA"] = "CC-BY-SA"; SourceOriginalLicense["CC0"] = "CC0"; SourceOriginalLicense["GNU-FDL"] = "GNU-FDL"; SourceOriginalLicense["no public license"] = "no public license"; SourceOriginalLicense["other public license"] = "other public license"; })(SourceOriginalLicense = exports.SourceOriginalLicense || (exports.SourceOriginalLicense = {})); /** * Contains all the TermTermType with override on the Source. * Note: it does not contain the default TermTermType on related Blank Nodes. */ exports.sourceTermTermType = { sampleDesign: [ Term_1.TermTermType.sampleDesign ], experimentDesign: [ Term_1.TermTermType.experimentDesign ], all: [ Term_1.TermTermType.sampleDesign, Term_1.TermTermType.experimentDesign ] }; /** * The Source of these data. */ var Source = /** @class */ (function (_super) { __extends(Source, _super); function Source() { return _super !== null && _super.apply(this, arguments) || this; } return Source; }(types_1.JSON)); exports.Source = Source; exports.sourceFields = [ 'name', 'bibliography', 'metaAnalyses', 'uploadBy', 'uploadNotes', 'validationDate', 'validationBy', 'intendedApplication', 'studyReasons', 'intendedAudience', 'comparativeAssertions', 'sampleDesign', 'weightingMethod', 'experimentDesign', 'originalLicense', 'dataPrivate', 'originalId', 'schemaVersion', 'createdAt', 'updatedAt' ];