@dasch-swiss/dsp-js
Version:
TypeScript client library for DSP-API
81 lines • 2.38 kB
JavaScript
import { __decorate, __metadata } from "tslib";
import { JsonObject, JsonProperty } from 'json2typescript';
import { StringLiteral } from './string-literal';
/**
* Represents a project that uses Knora.
*
* @category Model Admin
*/
let Project = class Project {
constructor() {
/**
* 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([
JsonProperty('keywords', [String]),
__metadata("design:type", Array)
], Project.prototype, "keywords", void 0);
__decorate([
JsonProperty('logo', String, true),
__metadata("design:type", String)
], Project.prototype, "logo", void 0);
__decorate([
JsonProperty('longname', String, true),
__metadata("design:type", String)
], Project.prototype, "longname", void 0);
__decorate([
JsonProperty('description', [StringLiteral]),
__metadata("design:type", Array)
], Project.prototype, "description", void 0);
__decorate([
JsonProperty('selfjoin', Boolean),
__metadata("design:type", Object)
], Project.prototype, "selfjoin", void 0);
__decorate([
JsonProperty('shortcode', String),
__metadata("design:type", Object)
], Project.prototype, "shortcode", void 0);
__decorate([
JsonProperty('shortname', String),
__metadata("design:type", Object)
], Project.prototype, "shortname", void 0);
__decorate([
JsonProperty('status', Boolean),
__metadata("design:type", Object)
], Project.prototype, "status", void 0);
Project = __decorate([
JsonObject('Project')
], Project);
export { Project };
//# sourceMappingURL=project.js.map