UNPKG

@hestia-earth/schema

Version:
80 lines (79 loc) 2.37 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.organisationFields = exports.Organisation = exports.organisationUniquenessFields = exports.organisationTermTermType = void 0; // auto-generated content var types_1 = require("./types"); var Term_1 = require("./Term"); /** * Contains all the TermTermType with override on the Organisation. * Note: it does not contain the default TermTermType on related Blank Nodes. */ exports.organisationTermTermType = { country: [ Term_1.TermTermType.region ], region: [ Term_1.TermTermType.region ], all: [ Term_1.TermTermType.region ] }; /** * Contains all the fields that make the blank nodes unique. */ exports.organisationUniquenessFields = { infrastructure: ['term.@id'] }; /** * The organisation which manages the [Site(s)](/schema/Site). */ var Organisation = /** @class */ (function (_super) { __extends(Organisation, _super); function Organisation() { return _super !== null && _super.apply(this, arguments) || this; } return Organisation; }(types_1.JSON)); exports.Organisation = Organisation; exports.organisationFields = [ 'name', 'description', 'boundary', 'boundaryArea', 'area', 'latitude', 'longitude', 'streetAddress', 'city', 'region', 'country', 'postOfficeBoxNumber', 'postalCode', 'website', 'glnNumber', 'startDate', 'endDate', 'infrastructure', 'dataPrivate', 'originalId', 'uploadBy', 'schemaVersion', 'createdAt', 'updatedAt' ];