UNPKG

@knora/api

Version:

JavaScript library that handles API requests to Knora

41 lines 2.08 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; Object.defineProperty(exports, "__esModule", { value: true }); var json2typescript_1 = require("json2typescript"); var Constants_1 = require("../Constants"); var date_time_stamp_converter_1 = require("../custom-converters/date-time-stamp-converter"); var ReadOntology = /** @class */ (function () { function ReadOntology() { this.id = ""; this.label = ""; this.lastModificationDate = undefined; this.properties = {}; this.classes = {}; } __decorate([ json2typescript_1.JsonProperty("@id", String), __metadata("design:type", String) ], ReadOntology.prototype, "id", void 0); __decorate([ json2typescript_1.JsonProperty(Constants_1.Constants.Label, String), __metadata("design:type", String) ], ReadOntology.prototype, "label", void 0); __decorate([ json2typescript_1.JsonProperty(Constants_1.Constants.LastModificationDate, date_time_stamp_converter_1.DateTimeStampConverter, true), __metadata("design:type", String) ], ReadOntology.prototype, "lastModificationDate", void 0); ReadOntology = __decorate([ json2typescript_1.JsonObject("ReadOntology") ], ReadOntology); return ReadOntology; }()); exports.ReadOntology = ReadOntology; //# sourceMappingURL=read-ontology.js.map