UNPKG

@knora/api

Version:

JavaScript library that handles API requests to Knora

90 lines 3.49 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 string_literal_1 = require("./string-literal"); /** * Represents a project that uses Knora. */ var Project = /** @class */ (function () { function Project() { /** * Project keywords. */ this.keywords = []; /** * The path to the projects's logo. */ this.logo = undefined; /** * The longname of a Knora project. */ this.longname = undefined; /** * A description of a project. */ this.description = []; /** * Exists and is true if users can add themselves to the project or group. */ this.selfjoin = false; /** * The unique short code of a Knora project. */ this.shortcode = ""; /** * The unique shortname of a Knora project. */ this.shortname = ""; /** * The status of the user / group / project. It is false if the entity has been deactivated (deleted). */ this.status = false; } __decorate([ json2typescript_1.JsonProperty("keywords", [String]), __metadata("design:type", Array) ], Project.prototype, "keywords", void 0); __decorate([ json2typescript_1.JsonProperty("logo", String, true), __metadata("design:type", String) ], Project.prototype, "logo", void 0); __decorate([ json2typescript_1.JsonProperty("longname", String, true), __metadata("design:type", String) ], Project.prototype, "longname", void 0); __decorate([ json2typescript_1.JsonProperty("description", [string_literal_1.StringLiteral]), __metadata("design:type", Array) ], Project.prototype, "description", void 0); __decorate([ json2typescript_1.JsonProperty("selfjoin", Boolean), __metadata("design:type", Boolean) ], Project.prototype, "selfjoin", void 0); __decorate([ json2typescript_1.JsonProperty("shortcode", String), __metadata("design:type", String) ], Project.prototype, "shortcode", void 0); __decorate([ json2typescript_1.JsonProperty("shortname", String), __metadata("design:type", String) ], Project.prototype, "shortname", void 0); __decorate([ json2typescript_1.JsonProperty("status", Boolean), __metadata("design:type", Boolean) ], Project.prototype, "status", void 0); Project = __decorate([ json2typescript_1.JsonObject("Project") ], Project); return Project; }()); exports.Project = Project; //# sourceMappingURL=project.js.map