UNPKG

@knora/api

Version:

JavaScript library that handles API requests to Knora

65 lines 2.74 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"); /** * A request to create a group. */ var CreateGroupRequest = /** @class */ (function () { function CreateGroupRequest() { /** * A description of a user group */ this.description = undefined; /** * The name of the enclosing object. */ this.name = ""; /** * The IRI of a project. */ this.project = ""; /** * Exists and is true if users can add themselves to the project or group. */ this.selfjoin = false; /** * The status of the user / group / project. It is false if the entity has been deactivated (deleted). */ this.status = false; } __decorate([ json2typescript_1.JsonProperty("description", String, true), __metadata("design:type", String) ], CreateGroupRequest.prototype, "description", void 0); __decorate([ json2typescript_1.JsonProperty("name", String), __metadata("design:type", String) ], CreateGroupRequest.prototype, "name", void 0); __decorate([ json2typescript_1.JsonProperty("project", String), __metadata("design:type", String) ], CreateGroupRequest.prototype, "project", void 0); __decorate([ json2typescript_1.JsonProperty("selfjoin", Boolean), __metadata("design:type", Boolean) ], CreateGroupRequest.prototype, "selfjoin", void 0); __decorate([ json2typescript_1.JsonProperty("status", Boolean), __metadata("design:type", Boolean) ], CreateGroupRequest.prototype, "status", void 0); CreateGroupRequest = __decorate([ json2typescript_1.JsonObject("CreateGroupRequest") ], CreateGroupRequest); return CreateGroupRequest; }()); exports.CreateGroupRequest = CreateGroupRequest; //# sourceMappingURL=create-group-request.js.map