UNPKG

@dasch-swiss/dsp-js

Version:

JavaScript library that handles API requests to Knora

89 lines 3.15 kB
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); }; import { JsonObject, JsonProperty } from "json2typescript"; /** * Represents a Knora user. * * @category Model Admin */ var User = /** @class */ (function () { function User() { /** * The email address and login name of a user. */ this.email = ""; /** * The user's family name. */ this.familyName = ""; /** * The user's given name. */ this.givenName = ""; /** * The ISO 639-1 code of the user's preferred language. */ this.lang = ""; /** * An encrypted credential for access */ this.password = undefined; /** * The status of the user / group / project. It is false if the entity has been deactivated (deleted). */ this.status = false; /** * Exists and is true if the user is a member of the SystemAdmin group. */ this.systemAdmin = undefined; /** * The username and login name of a user. */ this.username = ""; } __decorate([ JsonProperty("email", String), __metadata("design:type", String) ], User.prototype, "email", void 0); __decorate([ JsonProperty("familyName", String), __metadata("design:type", String) ], User.prototype, "familyName", void 0); __decorate([ JsonProperty("givenName", String), __metadata("design:type", String) ], User.prototype, "givenName", void 0); __decorate([ JsonProperty("lang", String), __metadata("design:type", String) ], User.prototype, "lang", void 0); __decorate([ JsonProperty("password", String, true), __metadata("design:type", String) ], User.prototype, "password", void 0); __decorate([ JsonProperty("status", Boolean), __metadata("design:type", Boolean) ], User.prototype, "status", void 0); __decorate([ JsonProperty("systemAdmin", Boolean, true), __metadata("design:type", Boolean) ], User.prototype, "systemAdmin", void 0); __decorate([ JsonProperty("username", String), __metadata("design:type", String) ], User.prototype, "username", void 0); User = __decorate([ JsonObject("User") ], User); return User; }()); export { User }; //# sourceMappingURL=user.js.map